address-list – 通讯录区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,address-list – 通讯录区块链毕设代写 是一篇很好的国外资料

address-list

Summary

This is a simple list of admin-controlled addresses, forming an

        (address -> uint256 metadata) 

on-chain mapping data type.

Overview

The primary use is for creating on-chain filtering lists, or creating contract<->contract proxy routes. A key motivation was mirroring the off-chain Token Lists with similar on-chain infrastructure.

Anybody may create and administer their own token list (“AddressList”), using a provided factory contract.

Beyond the usual whitelist filtering, on-chain token lists can be used to publish personal token lists, a list of all tokens in the Compound, Synthetix or Yearn universe, and more.

Features

  • Fast
  • O(1) queries, addition and removal
  • Admin-specified metadata value associated with each address. uint256. Cannot be zero.
  • Role-based access control (RBAC), to separate list admin duties from list owner.

Metadata

As described in the summary, an AddressList is an on-chain (address,uint256) mapping utility.

In the simple case, the metadata value is set to one (1), to indicate presence in the set of addresses.

In more complex examples, this can be used in forwarding and proxy scenarios as an on-chain (address,address) mapping, or even an on-chain (uint256,address) mapping if you don’t mind a few ugly casts.

The only requirements are that both key (address) and value (uint256) must be non-zero.

Role in governance

One use case for AddressList is as a administered list, for an otherwise decentralized system. For example, a permissionless asset management system, with no owner, that relies on a administered token whitelist provided by AddressList. The gateway into this example system is provided by an administrative multi-sig or DAO managing a list of token addresses.

Administration

Token lists are administered by a list administrator, so delegated to the LIST_ADMIN role. This is initially the contract owner – the Ethereum account that called the factory contract.

See the OpenZeppelin RBAC documentation for further information about administering roles.


address-list

Summary

This is a simple list of admin-controlled addresses, forming an

        (address -> uint256 metadata) 

on-chain mapping data type.

Overview

The primary use is for creating on-chain filtering lists, or creating contract<->contract proxy routes. A key motivation was mirroring the off-chain Token Lists with similar on-chain infrastructure.

Anybody may create and administer their own token list (“AddressList”), using a provided factory contract.

Beyond the usual whitelist filtering, on-chain token lists can be used to publish personal token lists, a list of all tokens in the Compound, Synthetix or Yearn universe, and more.

Features

  • Fast
  • O(1) queries, addition and removal
  • Admin-specified metadata value associated with each address. uint256. Cannot be zero.
  • Role-based access control (RBAC), to separate list admin duties from list owner.

Metadata

As described in the summary, an AddressList is an on-chain (address,uint256) mapping utility.

In the simple case, the metadata value is set to one (1), to indicate presence in the set of addresses.

In more complex examples, this can be used in forwarding and proxy scenarios as an on-chain (address,address) mapping, or even an on-chain (uint256,address) mapping if you don’t mind a few ugly casts.

The only requirements are that both key (address) and value (uint256) must be non-zero.

Role in governance

One use case for AddressList is as a administered list, for an otherwise decentralized system. For example, a permissionless asset management system, with no owner, that relies on a administered token whitelist provided by AddressList. The gateway into this example system is provided by an administrative multi-sig or DAO managing a list of token addresses.

Administration

Token lists are administered by a list administrator, so delegated to the LIST_ADMIN role. This is initially the contract owner – the Ethereum account that called the factory contract.

See the OpenZeppelin RBAC documentation for further information about administering roles.

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/17699.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 !
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » address-list – 通讯录区块链毕设代写

提供最优质的资源集合

立即查看 了解详情