Skip to content

prolingua/transparentproxy-hardhat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample TransparentProxy Project

#install the dependencies: npm install

#compile: npx hardhat compile

  • create .env file with: PRIVATE_KEY={the private key of an account} API_KEY={the etherscan api key}

  • deploy Box: npx hardhat run --network testnet scripts/deploy_box_v1.js

  • This will deploy TransparentProxy, ProxyAdmin and Box.
  • Using the testnet ftmscan, check the transactions on the account which deploys the SC.
  • There should be 3 transactions: the creation of Box, ProxyAdmin and TransparentProxy
  • upgrade to BoxV2:
  • change the value of PROXY in upgrade_box_v2.js with the address of TransparentUpgradeableProxy
  • run: npx hardhat run --network testnet scripts/upgrade_box_v2.js
  • verify and publish the proxy admin, proxy and implementation: npx hardhat verify --network testnet {the address of Box Proxy}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors