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:
WALLET_PRIVATE_KEY
: deployer private key
npm run deploy
NB: you may want to verify the deployed contract code on the block explorer
npm run verify -- --network bellecour $(cat .smart-contract-address)
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 addressWALLET_PRIVATE_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 addWALLET_PRIVATE_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 removeWALLET_PRIVATE_KEY
:IExecWhitelist
smart contract owner private key
npm run removeResourceFromWhitelist