@kimanikelly/core-contracts v1.0.7
@kimanikelly/contracts
Contract Documentation
Installation
git clone https://github.com/kimanikelly/contracts.gitInstall Dependencies
npm iTesting
npx hardhat testor
npm testNPM Package
Installation
npm i @kimanikelly/core-contractsExample
Deployment
A .env file has to be configured fro testnet deployment.
- Create a
.envfile by running the command
touch .envUse the
.env.examplefile as a template to input the credentials needed for testnet deployment inside the.envfile.Verify
GOERLI_URL=https://goerli.infura.io/v3/<YOUR INFURA KEY>has a valid key.Verify the
PRIVATE_KEY=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1is a valid wallet private key.
Token Localhost Deployment
Open one terminal and run the command
npx hardhat nodeto start the local node.Open another terminal and run the command
npm run token-localto deploy Token.sol locally.The localhost address will print to the terminal.
Token Goerli Deployment
Open one terminal and run the command
npm run token-goerlito deploy Token.sol to Goerli.The Goerli address will print to the terminal.
TTBank Localhost Deployment
Open one terminal and run the command
npx hardhat nodeto start the local node.Open another terminal and run the command
npm run ttBank-localto deploy TTBank.sol locally.The localhost address will print to the terminal.
TTBank Goerli Deployment
Open one terminal and run the command
npm run ttBank-goerlito deploy TTBank.sol to Goerli.The Goerli address will print to the terminal.