dev-protocol / template-repos-ts-sol

Template repository for using TypeScript and Solidity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

template-repos-ts-sol

Installation

yarn

Verifying a deployed contracts

For a contract with no constructor arguments

Run hardhat-etherscan

yarn hardhat verify --network <NETWORK_NAME> <CONTRACT_ADDRESS>

For a contract with constructor arguments

  1. Create an arguments declaration file
// cat ./scripts/arguments.js
module.exports = [
	'arguments 1',
	'arguments 2',
	'arguments 3',
	...
]
  1. Run hardhat-etherscan
yarn hardhat verify --network <NETWORK_NAME> <CONTRACT_ADDRESS> --contract <PATH_TO_CONTRACT>:<CONTRACT_NAME> --constructor-args ./scripts/arguments.js

About

Template repository for using TypeScript and Solidity

License:Mozilla Public License 2.0


Languages

Language:TypeScript 77.6%Language:JavaScript 14.1%Language:Solidity 7.3%Language:Shell 1.0%