基于区块链的毕业设计Ethereum Contract Metadata – 以太坊合同元数据

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Ethereum Contract Metadata – 以太坊合同元数据 是一篇很好的国外资料

Ethereum Contract Metadata Ethereum Contract Metadata - <a href=以太坊eth合同元数据”>

Ethereum Contract Metadata - <a href=以太坊eth合同元数据”>

A mapping of checksummed ethereum addresses to metadata, like names, and images of those addresses’ logos.

All address keys follow the EIP 55 address checksum format.

This repository is effectively frozen. We recommend that developers of new tokens use EIP 747 to ask the user’s permission to display your tokens in their wallet. This reduces the dangers of airdrop-based phishing, and reduces administrative overhead from managing this list.

Usage

You can install from npm with npm install eth-contract-metadata and use it in your code like this:

import contractMap from 'eth-contract-metadata' import ethJSUtil from 'ethereumjs-util' const { toChecksumAddress } = ethJSUtil  function imageElFor (address) {   const metadata = contractMap[toChecksumAddress(address)]   if (metadata?.logo) {     const fileName = metadata.logo     const path = `${__dirname}/images/contract/${fileName}`     const img = document.createElement('img')     img.src = path     img.style.width = '100%'     return img   } }  imageElFor ("0x06012c8cf97BEaD5deAe237070F9587f8E7A266d")

Submission Process

Maintaining this list is a considerable chore, and it is not our highest priority. We do not guarantee inclusion in this list on any urgent timeline. We are actively looking for fair and safe ways to maintain a list like this in a decentralized way, because maintaining it is a large and security-delicate task.

  1. Fork this repository.
  2. Add your logo image in a web-safe format to the images folder.
  3. Add an entry to the contract-map.json file with the specified address as the key, and the image file’s name as the value.

Criteria:

  • The icon should be small, square, but high resolution, ideally a vector/svg.
  • Do not add your entry to the end of the JSON map, messing with the trailing comma. Your pull request should only be an addition of lines, and any line removals should be deliberate deprecations of those logos.
  • PR should include link to official project website referencing the suggested address.
  • Project website should include explanation of project.
  • Project should have clear signs of activity, either traffic on the network, activity on GitHub, or community buzz.
  • Nice to have a verified source code on a block explorer like Etherscan.
  • Must have a ‘NEUTRAL’ reputation or ‘OK’ reputation on Etherscan.

A sample submission:

{   "0x6090A6e47849629b7245Dfa1Ca21D94cd15878Ef": {     "name": "ENS Registrar",     "logo": "ens.svg"   } }

Tokens should include a field "erc20": true, and can include additional fields:

  • symbol (a five-character or less ticker symbol)
  • decimals (precision of the tokens stored)

A full list of permitted fields can be found in the permitted-fields.json file.

We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products. Learn more.


Ethereum Contract Metadata Ethereum Contract Metadata - <a href=以太坊eth合同元数据”>

Ethereum Contract Metadata - <a href=以太坊eth合同元数据”>

以太坊eth地址校验和到元数据的映射,比如这些地址的徽标的名称和图像。

所有地址键都遵循EIP 55地址校验和格式。

此存储库已被有效冻结。我们建议新代币的开发者使用EIP 747请求用户允许在其钱包中显示您的代币。这减少了基于空投的网络钓鱼的危险,并减少了管理此列表的管理开销。

Usage

您可以使用npm从npm安装eth contract元数据,然后在代码中这样使用它:

import contractMap from 'eth-contract-metadata' import ethJSUtil from 'ethereumjs-util' const { toChecksumAddress } = ethJSUtil  function imageElFor (address) {   const metadata = contractMap[toChecksumAddress(address)]   if (metadata?.logo) {     const fileName = metadata.logo     const path = `${__dirname}/images/contract/${fileName}`     const img = document.createElement('img')     img.src = path     img.style.width = '100%'     return img   } }  imageElFor ("0x06012c8cf97BEaD5deAe237070F9587f8E7A266d")

Submission Process

维护这个列表是一项相当繁重的工作,它不是我们的最高优先级。我们不保证在任何紧急时间内都会被列入这份名单。我们正在积极寻找公平和安全的办法,以分散的方式维持这样一个名单,因为维持这一名单是一项庞大而安全的任务。

  1. 将web安全格式的徽标图像添加到“图像”文件夹中。
  2. 在合同中添加条目-地图.json以指定地址为键,图像文件名为值的文件。
  3. 图标应该是小的、方形的,但分辨率很高,最好是一个vector/svg。

标准:

  • 不要将条目添加到JSON映射的末尾,这样会弄乱后面的逗号。你的拉取请求只应该是添加行,任何行删除都应该是对这些徽标的故意弃用。
  • PR应包括指向官方项目网站的链接,参考建议的地址。
  • 项目网站应包括项目说明。
  • 项目应该有明显的活动迹象,要么是网络上的流量,要么是GitHub上的活动,要么是社区的嗡嗡声。
  • 很高兴在像Etherscan这样的块资源管理器上有一个经过验证的源代码。
  • 在Etherscan上必须具有“中立”或“正常”声誉。
  • 符号(不超过5个字符的股票代码)

示例提交:

{   "0x6090A6e47849629b7245Dfa1Ca21D94cd15878Ef": {     "name": "ENS Registrar",     "logo": "ens.svg"   } }

令牌应包括字段“erc20”:true,并且可以包括其他字段:

  • 小数(存储的令牌的精度)
  • decimals (precision of the tokens stored)

允许字段的完整列表可在“允许”中找到-字段.json文件。

我们使用可选的第三方分析cookies来了解您如何使用GitHub.com网站所以我们可以制造更好的产品。了解更多。

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

www.interchains.cc

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

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 !
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Ethereum Contract Metadata – 以太坊合同元数据

提供最优质的资源集合

立即查看 了解详情