calldata / carcar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage

Pre Requisites

Before running any command, make sure to install dependencies:

$ yarn install

env variable configuation

$ copy .env.example .env

change MNEMONIC and INFURA_API_KEY with yours

Compile

Compile the smart contracts with Hardhat:

$ yarn compile

Test

Run the Mocha tests:

$ yarn test

Deploy contract to netowrk (requires Mnemonic and infura API key)

npx hardhat run --network rinkeby ./scripts/deploy.ts

Validate a contract with etherscan (requires API ke)

npx hardhat verify --network <network> <DEPLOYED_CONTRACT_ADDRESS> "Constructor argument 1"

About

License:MIT License


Languages

Language:Solidity 56.6%Language:TypeScript 43.1%Language:Shell 0.3%