yarn
yarn build
yarn test
The tests can be run in "debug mode" as follows:
DEBUG=* yarn test
Choose the network and gas price in wei for the deployment. After replacing these values, run:
NETWORK='rinkeby'
GAS_PRICE_WEI='1000000000'
yarn deploy --network $NETWORK --gasprice $GAS_PRICE_WEI
New files containing details of this deployment will be created in the deployment
folder.
These files should be committed to this repository.
ETHERSCAN_API_KEY=<Your Key>
npx hardhat etherscan-verify --network $NETWORK
This package additonally contains a networks.json
file at the root with the
address of each deployed contract as well the hash of the Ethereum transaction
used to create the contract.
Gas consumption can be reported using by setting the REPORT_GAS
flag when running tests as
REPORT_GAS=1 yarn test
This repo contains scripts to manage the list of authenticated solvers in all networks the contract has been deployed.
The scripts are called with:
yarn solvers command [arg ...]
Here is a list of available commands.
The commands flagged with [*] require the private key of the authentication contract owner to be available to the script, for example by exporting it with
export PK=<private key>
.
add $ADDRESS
[*]. Adds the address to the list of registered solvers.remove $ADDRESS
[*]. Removes the address from the list of registered solvers.check $ADDRESS
. Checks if the given address is in the list of registered solvers.
For example, adding the address 0x0000000000000000000000000000000000000042
to
the solver list:
export PK=<private key>
yarn solvers add 0x0000000000000000000000000000000000000042