Skip to content

Instantly share code, notes, and snippets.

@neelsalunke
neelsalunke / Crowdfunding.sol
Created July 6, 2022 08:03
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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.5.0 < 0.9.0;
contract Crowdfunding{
mapping(address=>uint) public contributors; //to know which contributors have donated how much through hash addresses
address public manager;
uint public minimumContribution;
uint public deadline;
uint public target;
uint public raisedAmount;
@neelsalunke
neelsalunke / README.txt
Created July 6, 2022 07:59
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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX DEFAULT WORKSPACE
Remix default workspace is present when:
i. Remix loads for the very first time
ii. A new workspace is created
iii. There are no files existing in the File Explorer
This workspace contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.