0.0.11 • Published 3 years ago

@upshot-tech/upshot-contracts v0.0.11

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Solidity Template

My favourite setup for writing Solidity smart contracts.

This is a GitHub template, which means you can reuse it as many times as you want. You can do that by clicking the "Use this template" button at the top of the page.

Usage

Pre Requisites

Before running any command, make sure to install dependencies:

$ yarn install

Compile

Compile the smart contracts with Hardhat:

$ yarn compile

TypeChain

Compile the smart contracts and generate TypeChain artifacts:

$ yarn typechain

Lint Solidity

Lint the Solidity code:

$ yarn lint:sol

Lint TypeScript

Lint the TypeScript code:

$ yarn lint:ts

Test

Run the Mocha tests:

$ yarn test

Coverage

Generate the code coverage report:

$ yarn coverage

Clean

Delete the smart contract artifacts, the coverage reports and the Hardhat cache:

$ yarn clean

Deploy

Deploy smart contracts

$ yarn deploy --network [networkName]

Verify

Verify smart contracts on Etherscan

$ yarn verify --network [networkName] [deployedContractAddress] "firstConstuctorArgument" "secondConstructorArg"
0.0.11

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.5

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago