Table of Contents
Contract Address
0xf6aF8E8a436A036E763928dCF96f2B367e8E25B3
Blockchain technology enables decentralized applications (DApps) or smart contracts. Staking is an amazing opportunity in Blockchain space which enable users to stake their asset/token to get APY%.
Staking smart contract, EVM Compatible Generate APY in 4 terms. a. One Month b. Three Months c. Six Months d. One Year
- Solidity
- Node.js
- Openzeppelin
- Truffle Suite
- Hardhat
- Ehers.js
- Chai - as testing library.
To get a local copy up and running follow these simple steps.
This is an example of how to list things you need to use the software and how to install them.
- npm
npm install npm@latest -g
- Clone the repo
git clone https://github.com/rafiulhc/crypto-staking-smart-contract.git
- Install NPM packages
npm install
Change the secret variables as process.env.SECRET_KEY and process.env.ALCHEMY provided by API provider if deploy to mainnet (Ethereum, Binance, Fantom, Avalanche etc.) or remote testnet(rinkeby, ropsten, goerli etc.)
npx hardhat compile
npx hardhat run --network mainnet scripts/deploy.js
npx hardhat compile
npx hardhat run --network localhost scripts/deploy.js
npx hardhat test
After running the commands in terminal should show the tests results....
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
None
Rafiul Hasan - Linkedin Twitter - rafiul.hasan.chowdhury@gmail.com
Project Link: [https://github.com/rafiulhc/crypto-staking-smart-contract.git](https://github.com/rafiulhc/crypto-staking-smart-contract.git