LOADING

加载过慢请开启缓存 浏览器默认开启

w33d's blog

Harbor for the last emo boy

Code review: Openzeppelin-AccessControlEnumerable

2023/6/26

概述:

合约的作用是扩展了 OpenZeppelin Contracts 中的访问控制合约(AccessControl),使其具备了角色成员的枚举功能。具体而言,该合约提供了以下功能:

  1. 支持枚举角色成员:可以根据角色获取具有该角色的账户列表,以及获取角色成员的数量。
  2. 重写了 supportsInterface 函数,使合约能够判断是否支持 IAccessControlEnumerable 接口。
  3. 重写了 _grantRole_revokeRole 函数,用于在授予和撤销角色时更新角色成员的地址集合。
阅读全文

Code review: Openzeppelin - AccessControlDefaultAdminRules

2023/6/26

概述:

这是一个扩展自OpenZeppelin的AccessControl合约,实现了特殊规则来管理DEFAULT_ADMIN_ROLE角色的持有者。该角色是系统中具有特权权限的其他角色的管理者。

阅读全文

AIGC: An Ode to Creativity - Meditation: A Journey into the Abyss

2023/6/26

I am drawn to the dark, the profound. Each glance I cast upon these works evokes an inexplicable sense of familiarity. This sensation does not originate from within me but is the unique allure of these pieces.

阅读全文

Code review: Openzeppelin - AccessControlCrossChain

2023/6/26

概述:

这个名为 AccessControlCrossChain 的 Solidity 合约是一个 OpenZeppelin Contracts 库中 AccessControlCrossChainEnabled 两个合约的扩展,它提供了跨链访问管理的支持。它为每个角色实现了等效的“别名”角色,用于限制来自其他链的调用。该合约的主要目的是保护不同链上由不同实体控制的相同地址的多个合约之间的冲突。

阅读全文

Code review: Openzeppelin - AccessControl

2023/6/25

概述:

这个合约的作用是实现基于角色的访问控制(RBAC)机制,可以通过定义角色和角色成员之间的关系,来限制合约中特定函数的访问权限。

阅读全文

后记

2023/6/25

命运,这坚定无比的力,展现其设计不曾蹉跎。结果早已我心明如昼,但我抗拒接受,愿留在模糊不定而非确定答案的美妙。唉,自我欺瞒的闹剧多么徒劳无益。

阅读全文

Epilogue

2023/6/25

Fate, an unwavering force, unfurls its design without falter. The outcome that now materializes was known to me from the outset, though I resisted accepting it, preferring the allure of uncertainty over a definitive answer. Alas, the futile charade of self-delusion.

阅读全文

Hello World

2023/6/25

Behold the inaugural dispatch from me, (or as I'm known in other circles, w33d, the last emo boy). As the future unfurls its uncertain scroll, updates shall materialize in synchronicity with destiny. I shall pen down an array of personal minutiae, musings on the art of programming (with a strong likelihood of our conversation being in the dialects of Solidity or Python), and an assortment of discursive thoughts.

Do remember to cast your subscription, lest you miss our shared journey. XD!

阅读全文
1 2 3
avatar
last emo boy

A Foolishly Obstinate Individual