Skip to content

Instantly share code, notes, and snippets.

View trinhvandat's full-sized avatar
🏠
Working from home

Trịnh Văn Đạt trinhvandat

🏠
Working from home
View GitHub Profile
@trinhvandat
trinhvandat / FundDecentralize.sol
Created April 7, 2023 18:07
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.2 <0.9.0;
import "hardhat/console.sol";
contract FundDecentralize {
/*================= STRUCT =====================*/
struct Member {
string name;
@trinhvandat
trinhvandat / MoneyFund.sol
Created March 29, 2023 17:08
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// compiler version must be greater than or equal to 0.8.17 and less than 0.9.0
pragma solidity ^0.8.17;
contract MoneyFund {
struct Participant {
string fullName;
int piority;
uint joinedDate;