Vault contract with deposit/withdraw of ETH & mint/burn of native tokens
- It is suite of contracts - token, vault.
- For more, refer Wiki.
$ npm install
$ npx hardhat compile
$ npx hardhat test
// on terminal-1
$ npx hardhat node
// on terminal-2
$ npx hardhat run deployment/hardhat/deploy_hardhat.ts --network localhost1
- Environment variables
- Create a
.env
file with its values:
- Create a
INFURA_API_KEY=[YOUR_INFURA_API_KEY_HERE]
DEPLOYER_PRIVATE_KEY=[YOUR_DEPLOYER_PRIVATE_KEY_without_0x]
REPORT_GAS=<true_or_false>
- Deploy the contracts
$ npx hardhat run deployment/testnet/Rinkeby/deploy_testnet_rinkeby.ts --network rinkeby
- Environment variables
- Create a
.env
file with its values:
- Create a
INFURA_API_KEY=[YOUR_INFURA_API_KEY_HERE]
DEPLOYER_PRIVATE_KEY=[YOUR_DEPLOYER_PRIVATE_KEY_without_0x]
REPORT_GAS=<true_or_false>
- Deploy the token on one-chain
$ npx hardhat run deployment/testnet/ETH/deploy_mainnet_eth.ts --network mainnet