1.0.7 • Published 1 year ago

@kimanikelly/core-contracts v1.0.7

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
1 year ago

@kimanikelly/contracts

Node.js CI Node.js Package

Contract Documentation

Installation

git clone https://github.com/kimanikelly/contracts.git

Install Dependencies

npm i

Testing

npx hardhat test

or

npm test

NPM Package

Installation

npm i @kimanikelly/core-contracts

Example

Deployment

A .env file has to be configured fro testnet deployment.

  • Create a .env file by running the command
touch .env
  • Use the .env.example file as a template to input the credentials needed for testnet deployment inside the .env file.

  • Verify GOERLI_URL=https://goerli.infura.io/v3/<YOUR INFURA KEY> has a valid key.

  • Verify the PRIVATE_KEY=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1 is a valid wallet private key.

Token Localhost Deployment

  • Open one terminal and run the command npx hardhat node to start the local node.

  • Open another terminal and run the command npm run token-local to 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-goerli to 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 node to start the local node.

  • Open another terminal and run the command npm run ttBank-local to 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-goerli to deploy TTBank.sol to Goerli.

  • The Goerli address will print to the terminal.