Sitelet https://github.com/w5pand/Proxy
Skip to content
 
 

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

如何初始化

  1. 部署Registry合约
  2. 部署逻辑合约的初始版本(V1),并确保它继承了Upgradeable合约
  3. 向Registry合约中注册这个最初版本(V1)的地址
  4. 要求Registry合约创建一个UpgradeabilityProxy实例
  5. 调用你的UpgrageabilityProxy实例来升级到你最初版本(V1)

如何升级

  1. 部署一个继承了你最初版本合约的新版本(V2),V2必须继承V1
  2. 向Registry中注册合约的新版本V2
  3. 调用你的UpgradeabilityProxy实例来升级到最新注册的版本

如何调用

对proxy套用当前版本的逻辑合约的ABI,正常调用方法

如何转移proxy合约所有权

调用Registry中的transferProxyOwnership方法进行所有权转移;

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages