List of smart contracts for Favecoin
-
Open remix online compiler Remix
-
In the file explorer, on the left-hand side,
contracts
-> right click ->New File
->FAVE.sol
-> Paste/flattened_contracts/FAVE.sol
->Ctrl+s
-
Compile the contracts (
Blue Button
) -
From the left-panel, click
Deploy & run transactions
-
For FAVE.sol -> Deploy -> specify the initialSupply value, you can use
0x2c781f708c50a0000000
=> 210000 FAVE Coins
- We can follow above steps or we can also add scripts in the package json for mainnet deployment
Execute from the root of the project:
truffle-flattener contracts/FAVE.sol --output flattened_contracts/FAVE.sol
-
npm i -g ganache-cli
-
Open a terminal
ganache-cli
-
Open another terminal
-
npm run compile
-
npm run test
-
-
Generate coverage report
npm run coverage
-
To view coverage report
- Open coverage/index.html