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 compilenpm run test
# with coverage
npm run coveragedeploys 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 tofalseif you are not verifying the contract on the Etherscan explorer.
npm run deploy -- --network arbitrumSepolia --deployment-id arbitrumSepoliaNB: 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-idas input
transfer the ownership of an IExecWhitelist contract deployed on bellecour to a new owner
Required environment variables:
CONTRACT_ADDRESS:IExecWhitelistsmart contract addressNEW_OWNER_ADDRESS: new owner addressPRIVATE_KEY:IExecWhitelistsmart contract owner private key
npm run transferOwnershipadd an address to an IExecWhitelist contract deployed on bellecour
Required environment variables:
CONTRACT_ADDRESS:IExecWhitelistsmart contract addressADDRESS_TO_ADD: address to addPRIVATE_KEY:IExecWhitelistsmart contract owner private key
npm run addResourceToWhitelistremove an address from an IExecWhitelist contract deployed on bellecour
Required environment variables:
CONTRACT_ADDRESS:IExecWhitelistsmart contract addressADDRESS_TO_REMOVE: address to removePRIVATE_KEY:IExecWhitelistsmart contract owner private key
npm run removeResourceFromWhitelist