A decentralized application where users can coordinate a group funding effort. If the users cooperate, the money is collected in a second smart contract. If they defect, the worst that can happen is everyone gets their money back.
- Node (v18 LTS)
- Yarn (v1 or v2+)
- Git
To get started, clone the repository to your local machine:
git clone https://github.com/dianakocsis/decentralized-staking
-
Navigate to the cloned directory:
cd decentralized-staking
-
Copy the .env.example files to create a new .env file and fill in the necessary details:
cp .env.example .env
cd frontend cp .env.example .env
-
Install Dependencies
To install project dependencies, run the following commands:
yarn install cd frontend && yarn install cd ..
-
Start Local Blockchain
In a new terminal, start the local blockchain:
yarn chain
-
Deploy Contracts (In another tab)
Open another terminal tab and deploy the contracts:
yarn deploy
-
Start the Aplication (In another tab)
Finally, in a new terminal tab, start the application:
yarn start
Contract | Address Etherscan Link |
---|---|
Staker | https://sepolia.etherscan.io/address/0xc43E47625DF5B6B5D0ad6C1C137ec5a68CBaD485 |
ExampleExternalContract | https://sepolia.etherscan.io/address/0xcB73e0BB591e9e3F2684b0C68312Cb0149B2c6ca |