Make your self accountable by betting on your goals!
Table of Contents
- Used technologies and Prerequisites
- Clone Repo
- Verify
- Test
- Contracts deployed and verified
- Runnig Light Node
- software architecture
-node:14.x0
-hardhat: ^2.9.1
git clone https://github.com/Darjusch/fitup
In the root folder of the project:
npm i
ℹ️ Make sure to provide netwrok_url and account secerts to secret.js or env-var before trying to deploy on custome or remote networ network
npx hardhat run scripts/deploy.js --network NETWORKNAME
Verify contract automatically using etherscan
npx hardhat --network NETWORKNAME verify CONTRACTADDRESS
-
npx hardhat test
-
Check test coverage
npx hardhat coverage
(20.04.2022)
Rinkeby: https://rinkeby.etherscan.io/address/0x7bce3ccc9f14ecf400803c21743643bc830d9105
Ropsten: 0xd02C26Ae5c09F13186dbf670e29C003A6c01b917
PolygonMumbai: 0x94b3B62495a62E6806220d614af0dc261624e01f
BinanceTestnet: 0x068E565aaE43979aB6dfE58FdBE67E98477Ef1D9
ArbitrumTestnet: 0x068E565aaE43979aB6dfE58FdBE67E98477Ef1D9
ℹ️ Running EVM light node is not necceassry but it gives you insight on how the etherum network manage transaction to test the smart contract locally before deploymnent.
ℹ️ For more Info about etherum light node please visit Geth*
1- Install geth following this guide
2- Initializing Clef init clef
ℹ️ (Clef is an Account managment tool to sign transactions) for more infor visit here
3- To run the light node, follow this guide step by step!
ℹ️ The guide above use Goerli testnet! If you want to use different testnet like ropsten or even the Etherum mainnet follow the step below:
- Change the cainID when starting clef! Find a list of chainIds here
clef --keystore geth-tutorial/keystore --configdir geth-tutorial/clef --chainid {CHAIN_ID_NUMBER}
- Change the network name when starting Geth!
geth --datadir geth-tutorial --signer=geth-tutorial/clef/clef.ipc --{NETWORK_NAME} --syncmode light --http
ℹ️Make sure the cainId and network name Matches!!