This project is a smart contract that allows 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 the target network, stores the deployed address in .smart-contract-address
Required environment variables:
PRIVATE_KEY: deployer private key
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 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
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
Required environment variables:
CONTRACT_ADDRESS:IExecWhitelistsmart contract addressADDRESS_TO_REMOVE: address to removePRIVATE_KEY:IExecWhitelistsmart contract owner private key
npm run removeResourceFromWhitelist