Skip to content

jbx-protocol/juice-contracts-v1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

71fd42a ยท Dec 12, 2022
Dec 10, 2021
Sep 28, 2021
Dec 12, 2022
Feb 16, 2022
Jan 10, 2022
Dec 21, 2021
Nov 1, 2021
Sep 24, 2021
Dec 10, 2021
Nov 21, 2021
Sep 15, 2021
Sep 15, 2021
Sep 18, 2021
Sep 15, 2021
Nov 21, 2021
Jan 10, 2022
Jun 10, 2022
Nov 21, 2021

Repository files navigation

juice-contracts-v1

Develop

To deploy the contracts to a local blockchain, run the following:

yarn chain --network hardhat

To run tests (all, unit, integration):

yarn test
yarn test:unit
yarn test:integration

You can also filter by version, test name, etc.:

yarn test:unit --grep "ProxyPaymentAddressManager"

Verification

To verify the contracts on Etherscan, make sure you have an ETHERSCAN_API_KEY set in your ./.env file. Then run the following:

npx hardhat --network $network etherscan-verify

This will verify all of the deployed contracts in ./deployments.

If you encounter an error along the lines of the following, compile the problematic contract(s) in isolation first and verify one-by-one:

Error in plugin @nomiclabs/hardhat-etherscan: Source code exceeds max accepted (500k chars) length.

To compile in isolation:

npx hardhat compile:one Tickets