Skip to content

bahurum/v1-core

Repository files navigation

Porter Smart Contracts Porter Smart Contracts

app docs discord blog twitter

V1

Smart Contracts powering the Porter protocol.

Development

For local development there are environment variables necessary to enable some hardhat plugins.

Deployment

Using hardhat-deploy all of the scripts in the ./deploy folder are run.

Deploying to rinkeby

npx hardhat deploy --network rinkeby

Verification

Verify deployed contracts with hardhat-etherscan.

npx hardhat verify <address>

Testing

Running the test suite

npx hardhat test

Fork testing requires first running the mainnet-fork

npx hardhat node

and making the target for testing the local node

npx hardhat test --network localhost

Other useful commands

npx hardhat help
npx hardhat compile # create contract artifacts
npx hardhat clean # removes artifacts and maybe other things
npx hardhat coverage # runs the contract coverage report
npx eslint '**/*.{js,ts}' --fix
npx prettier '**/*.{json,sol,md,ts}' --write
npx solhint 'contracts/**/*.sol' --fix

Releases

No releases published

Packages

No packages published