This project is a smart contract that will be deployed on bellecour blockchain to allow whitelisting next dapp versions without asking the end-user to resign an other grant access (or a dataset sell order) to the desired dapp.
npm run ci
npm run compile
npm run test
# with coverage
npm run coverage
deploys a IExecWhitelist
contract on bellecour, stores the deployed address in .smart-contract-address
Required environment variables:
PRIVATE_KEY
: deployer private keyIS_VERIFICATION_API_V2
: Set tofalse
if you are not verifying the contract on the Etherscan explorer.
npm run deploy -- --network arbitrumSepolia --deployment-id arbitrumSepolia
NB: you may want to verify the deployed contract code on the block explorer
npm run verify -- arbitrumSepoliaTo verify a contract before deployment, you should set the
deployment-id
as input
transfer the ownership of an IExecWhitelist
contract deployed on bellecour to a new owner
Required environment variables:
CONTRACT_ADDRESS
:IExecWhitelist
smart contract addressNEW_OWNER_ADDRESS
: new owner addressPRIVATE_KEY
:IExecWhitelist
smart contract owner private key
npm run transferOwnership
add an address to an IExecWhitelist
contract deployed on bellecour
Required environment variables:
CONTRACT_ADDRESS
:IExecWhitelist
smart contract addressADDRESS_TO_ADD
: address to addPRIVATE_KEY
:IExecWhitelist
smart contract owner private key
npm run addResourceToWhitelist
remove an address from an IExecWhitelist
contract deployed on bellecour
Required environment variables:
CONTRACT_ADDRESS
:IExecWhitelist
smart contract addressADDRESS_TO_REMOVE
: address to removePRIVATE_KEY
:IExecWhitelist
smart contract owner private key
npm run removeResourceFromWhitelist