您当前的位置: 首页 >  ar

mutourend

暂无认证

  • 1浏览

    0关注

    661博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Dark Forest & the Diamond Standard

mutourend 发布时间:2022-02-24 11:29:56 ,浏览量:1

1. 引言

近期,Dark Forest发布了v6, Round 5。相比于之前版本,最大的不同是将其proxy/upgrade系统基于EIP-2535-Diamonds, Multi-Facet Proxy 进行了重构。从而解决之前版本中,添加新feature容易hit contract size limit的问题。

Diamond为一种Solidity代理模式,可由一个gateway contract来proxy calls and storage to any number of other contracts。可为合约使用者提供单一的接口,并支持feature set grow into many contracts。在合约部署之后,还支持对其进行替换 或 功能扩展。

详细可参看代码:

  • https://github.com/darkforest-eth/eth

在这里插入图片描述

参考资料

[1] Dark Forest & the Diamond Standard [2] Diamonds #2535 [3] EIP-2535-Diamonds, Multi-Facet Proxy

关注
打赏
1664532908
查看更多评论
立即登录/注册

微信扫码登录

0.0375s