Skip to content

Latest commit

 

History

159 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IExecWhitelist Smart contract

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.

Install

npm run ci
npm run compile

Test

npm run test
# with coverage
npm run coverage

Scripts

deploy

deploys 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 arbitrumSepolia

NB: you may want to verify the deployed contract code on the block explorer

npm run verify -- arbitrumSepolia

To verify a contract before deployment, you should set the deployment-id as input

transferOwnership

transfer the ownership of an IExecWhitelist contract to a new owner

Required environment variables:

  • CONTRACT_ADDRESS: IExecWhitelist smart contract address
  • NEW_OWNER_ADDRESS: new owner address
  • PRIVATE_KEY: IExecWhitelist smart contract owner private key
npm run transferOwnership

addResourceToWhitelist

add an address to an IExecWhitelist contract

Required environment variables:

  • CONTRACT_ADDRESS: IExecWhitelist smart contract address
  • ADDRESS_TO_ADD: address to add
  • PRIVATE_KEY: IExecWhitelist smart contract owner private key
npm run addResourceToWhitelist

removeResourceFromWhitelist

remove an address from an IExecWhitelist contract

Required environment variables:

  • CONTRACT_ADDRESS: IExecWhitelist smart contract address
  • ADDRESS_TO_REMOVE: address to remove
  • PRIVATE_KEY: IExecWhitelist smart contract owner private key
npm run removeResourceFromWhitelist

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages