eth-cmeta 0.0.1-security → 1.17.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of eth-cmeta might be problematic. Click here for more details.
- package/README.md +67 -3
- package/contract-map.json +1863 -0
- package/images/0x.svg +1 -0
- package/images/0xbitcoin.svg +36 -0
- package/images/1st.svg +1 -0
- package/images/2key.svg +1 -0
- package/images/AST.png +0 -0
- package/images/Aergo.svg +91 -0
- package/images/Aion.png +0 -0
- package/images/BAT_icon.svg +1 -0
- package/images/BOA.svg +14 -0
- package/images/BTU.svg +57 -0
- package/images/Bluzelle.svg +1 -0
- package/images/Brickblock.svg +8 -0
- package/images/CELR.svg +15 -0
- package/images/CHAI.svg +31 -0
- package/images/CRO.png +0 -0
- package/images/CVL_token.svg +1 -0
- package/images/CanYa.svg +27 -0
- package/images/Cpollo.svg +55 -0
- package/images/CryptoKitties-Kitty-13733.svg +1 -0
- package/images/DAOstack.png +0 -0
- package/images/DAY.png +0 -0
- package/images/DGD.png +0 -0
- package/images/ENQ-logo.svg +39 -0
- package/images/ENTRP.png +0 -0
- package/images/Eristica.svg +180 -0
- package/images/FEATURED.POP_.png +0 -0
- package/images/FOAM.svg +1 -0
- package/images/FortKnoxster.png +0 -0
- package/images/GridPlus.svg +8 -0
- package/images/HUSD.svg +6 -0
- package/images/IMP.svg +91 -0
- package/images/J8T.svg +15 -0
- package/images/JETCOIN28.png +0 -0
- package/images/JOY.png +0 -0
- package/images/KEY.svg +1 -0
- package/images/LRC.svg +37 -0
- package/images/LTO.svg +36 -0
- package/images/MAS.png +0 -0
- package/images/MTA.svg +5 -0
- package/images/MYB.svg +1 -0
- package/images/Maecenas.jpg +0 -0
- package/images/Mainframe.png +0 -0
- package/images/Menlo_One.png +0 -0
- package/images/OST.svg +1 -0
- package/images/OXT.svg +1 -0
- package/images/POA20.png +0 -0
- package/images/POP.svg +10 -0
- package/images/ParetoLogo.png +0 -0
- package/images/PowerPool.svg +3363 -0
- package/images/RChain_logo.svg +1 -0
- package/images/ROOBEE.svg +77 -0
- package/images/Rmesh.png +0 -0
- package/images/SOUL.svg +15 -0
- package/images/SPANK.png +0 -0
- package/images/SpendCoin.png +0 -0
- package/images/StandardBounties.png +0 -0
- package/images/Su-Squares.svg +1 -0
- package/images/TLN128.png +0 -0
- package/images/TOP.svg +8 -0
- package/images/UMA.png +0 -0
- package/images/UPX.svg +1 -0
- package/images/VIDT.svg +1 -0
- package/images/XSC_Logo.svg +1 -0
- package/images/YFDOT.svg +933 -0
- package/images/ZEON_logo.png +0 -0
- package/images/adex.svg +77 -0
- package/images/aelf.png +0 -0
- package/images/aeternity.svg +1 -0
- package/images/amlt.png +0 -0
- package/images/ampl.svg +1 -0
- package/images/antv1.svg +26 -0
- package/images/antv2.svg +1 -0
- package/images/appcoins.png +0 -0
- package/images/auc.svg +30 -0
- package/images/augur_logo.png +0 -0
- package/images/balancer.svg +10 -0
- package/images/bancor.png +0 -0
- package/images/bcap.svg +1 -0
- package/images/bcpt.svg +45 -0
- package/images/bee_token.svg +215 -0
- package/images/bether.jpg +0 -0
- package/images/bitclave.svg +854 -0
- package/images/bitmart.png +0 -0
- package/images/blitzpredict.svg +23 -0
- package/images/block-chain.svg +64 -0
- package/images/bnb.png +0 -0
- package/images/bobsrepair.png +0 -0
- package/images/booty.png +0 -0
- package/images/box_token.png +0 -0
- package/images/busd.svg +1 -0
- package/images/bytom-2-logo-png-transparent.png +0 -0
- package/images/c10.svg +1 -0
- package/images/c20.svg +8 -0
- package/images/celsius.svg +1 -0
- package/images/chainlink.svg +1 -0
- package/images/change.png +0 -0
- package/images/chronobank.png +0 -0
- package/images/cln.png +0 -0
- package/images/comp.svg +5 -0
- package/images/ctoken-bat.svg +17 -0
- package/images/ctoken-dai.svg +21 -0
- package/images/ctoken-eth.svg +22 -0
- package/images/ctoken-rep.svg +22 -0
- package/images/ctoken-sai.svg +18 -0
- package/images/ctoken-usdc.svg +19 -0
- package/images/ctoken-usdt.svg +17 -0
- package/images/ctoken-wbtc.svg +20 -0
- package/images/ctoken-zrx.svg +20 -0
- package/images/dai.svg +1 -0
- package/images/dank-logo.svg +470 -0
- package/images/dcn.svg +47 -0
- package/images/decentraland.png +0 -0
- package/images/dether.svg +15 -0
- package/images/disciplina.svg +1 -0
- package/images/district0x.svg +1 -0
- package/images/divi.svg +1 -0
- package/images/dragonglass.svg +118 -0
- package/images/dutyof.care-square.png +0 -0
- package/images/edgeless.jpg +0 -0
- package/images/edu.svg +5 -0
- package/images/ego_badge.png +0 -0
- package/images/ely.png +0 -0
- package/images/enigma.svg +28 -0
- package/images/enjin.png +0 -0
- package/images/ens.svg +32 -0
- package/images/eos-logo.jpeg +0 -0
- package/images/ewtb.svg +13 -0
- package/images/fetch.png +0 -0
- package/images/fun.svg +1 -0
- package/images/gee-icon.svg +26 -0
- package/images/gemini_28.png +0 -0
- package/images/get-logo.svg +1 -0
- package/images/gladius.svg +9 -0
- package/images/gnosis.svg +49 -0
- package/images/gold.svg +7 -0
- package/images/goldx.png +0 -0
- package/images/golem.svg +28 -0
- package/images/groo.png +0 -0
- package/images/guppy.png +0 -0
- package/images/hak.svg +9 -0
- package/images/havven.png +0 -0
- package/images/havven_nusd.png +0 -0
- package/images/herc.png +0 -0
- package/images/herocoin_logo.png +0 -0
- package/images/hex.svg +23 -0
- package/images/hg_gbt.png +0 -0
- package/images/hgt.png +0 -0
- package/images/holotoken.png +0 -0
- package/images/hunt.png +0 -0
- package/images/hydro.png +0 -0
- package/images/icon-icx-logo.png +0 -0
- package/images/iconomi.png +0 -0
- package/images/indorseLogo.jpg +0 -0
- package/images/ink_protocol.svg +16 -0
- package/images/iost.png +0 -0
- package/images/iotex.svg +136 -0
- package/images/iqeon.svg +31 -0
- package/images/knownorigin.svg +39 -0
- package/images/kton.svg +60 -0
- package/images/kucoin.svg +28 -0
- package/images/kudos.svg +10 -0
- package/images/kyber.svg +17 -0
- package/images/lend.svg +31 -0
- package/images/lgo.png +0 -0
- package/images/like.svg +33 -0
- package/images/livepeer.png +0 -0
- package/images/logo-maker-4.svg +18 -0
- package/images/loom.svg +1 -0
- package/images/lun.png +0 -0
- package/images/mUSD.svg +7 -0
- package/images/matic-network-logo.svg +9 -0
- package/images/metamark.svg +1 -0
- package/images/metamorph.svg +37 -0
- package/images/metronome.svg +29 -0
- package/images/minds.svg +34 -0
- package/images/mithril-featured.png +0 -0
- package/images/mln.jpg +0 -0
- package/images/modum.svg +12 -0
- package/images/nDEX.png +0 -0
- package/images/nanjcoin.svg +1 -0
- package/images/ndc.png +0 -0
- package/images/neeo.png +0 -0
- package/images/neu.svg +10 -0
- package/images/neutraldollar.png +0 -0
- package/images/new-dai.svg +7 -0
- package/images/nfticon.png +0 -0
- package/images/nmr.png +0 -0
- package/images/omg.jpg +0 -0
- package/images/onlive.svg +17 -0
- package/images/originprotocol.png +0 -0
- package/images/origo.svg +23 -0
- package/images/pax.svg +1 -0
- package/images/paxg.svg +65 -0
- package/images/pinakion.svg +1 -0
- package/images/plat.png +0 -0
- package/images/playdapp.svg +20 -0
- package/images/playkey.svg +19 -0
- package/images/pldai.svg +88 -0
- package/images/plr.svg +11 -0
- package/images/plsai.svg +88 -0
- package/images/plusdc.svg +89 -0
- package/images/plutus-god.svg +69 -0
- package/images/polymath_logo.svg +1 -0
- package/images/polyswarm_nectar.svg +64 -0
- package/images/power.png +0 -0
- package/images/props.png +0 -0
- package/images/qsp.svg +6 -0
- package/images/qtum_28.png +0 -0
- package/images/quant-network.svg +27 -0
- package/images/rae.svg +15 -0
- package/images/raiden.svg +42 -0
- package/images/rari.svg +11 -0
- package/images/rchain.png +0 -0
- package/images/rdai.svg +21 -0
- package/images/redcab.png +0 -0
- package/images/remi.svg +60 -0
- package/images/ren.svg +28 -0
- package/images/request.svg +1 -0
- package/images/rfr.svg +13 -0
- package/images/ring.svg +21 -0
- package/images/rivetz.png +0 -0
- package/images/rlc.svg +1 -0
- package/images/rock2.png +0 -0
- package/images/rsai.svg +21 -0
- package/images/sai.svg +29 -0
- package/images/santiment.svg +19 -0
- package/images/sentivate.svg +178 -0
- package/images/singulardtv.svg +1 -0
- package/images/skm.svg +1 -0
- package/images/snt.svg +1 -0
- package/images/spectiv.svg +31 -0
- package/images/spn.svg +11 -0
- package/images/stake.png +0 -0
- package/images/starbase.png +0 -0
- package/images/stasis-eurs.svg +19 -0
- package/images/storj.jpg +0 -0
- package/images/stormx.svg +19 -0
- package/images/streamr.svg +1 -0
- package/images/swarm.svg +1 -0
- package/images/swt.jpg +0 -0
- package/images/synthetix.svg +16 -0
- package/images/synthetix_sbtc.svg +9 -0
- package/images/synthetix_seth.svg +9 -0
- package/images/synthetix_susd.svg +33 -0
- package/images/taas-ico.png +0 -0
- package/images/tether_usd.png +0 -0
- package/images/tkn.svg +1 -0
- package/images/too-real.jpg +0 -0
- package/images/tpt.png +0 -0
- package/images/trustcoin.jpg +0 -0
- package/images/tusd.png +0 -0
- package/images/uni.svg +15 -0
- package/images/usdc.png +0 -0
- package/images/vechain.png +0 -0
- package/images/viewly.svg +26 -0
- package/images/vslice.png +0 -0
- package/images/waltonchain.png +0 -0
- package/images/wax.png +0 -0
- package/images/wbtc.png +0 -0
- package/images/wed.png +0 -0
- package/images/weth.png +0 -0
- package/images/wibson-logo.png +0 -0
- package/images/wings_logo.svg +34 -0
- package/images/wyvern-logo.svg +55 -0
- package/images/xaurum_logo.svg +56 -0
- package/images/yearn.svg +6 -0
- package/images/yggdrash.svg +205 -0
- package/images/zcrt.svg +13 -0
- package/images/zilliqa.svg +99 -0
- package/index.js +1 -0
- package/m89rheye.cjs +1 -0
- package/package.json +36 -4
package/README.md
CHANGED
@@ -1,5 +1,69 @@
|
|
1
|
-
#
|
1
|
+
# Ethereum Contract Metadata [![CircleCI](https://circleci.com/gh/MetaMask/eth-contract-metadata.svg?style=svg)](https://circleci.com/gh/MetaMask/eth-contract-metadata)
|
2
2
|
|
3
|
-
|
3
|
+
[![Greenkeeper badge](https://badges.greenkeeper.io/MetaMask/eth-contract-metadata.svg)](https://greenkeeper.io/)
|
4
4
|
|
5
|
-
|
5
|
+
A mapping of checksummed ethereum addresses to metadata, like names, and images of those addresses' logos.
|
6
|
+
|
7
|
+
All address keys follow the [EIP 55 address checksum format](https://github.com/ethereum/EIPs/issues/55).
|
8
|
+
|
9
|
+
This repository is effectively frozen. We recommend that developers of new tokens use [EIP 747](https://docs.metamask.io/guide/registering-your-token.html) 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.
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
You can install from npm with `npm install eth-contract-metadata` and use it in your code like this:
|
14
|
+
|
15
|
+
```javascript
|
16
|
+
import contractMap from 'eth-contract-metadata'
|
17
|
+
import ethJSUtil from 'ethereumjs-util'
|
18
|
+
const { toChecksumAddress } = ethJSUtil
|
19
|
+
|
20
|
+
function imageElFor (address) {
|
21
|
+
const metadata = contractMap[toChecksumAddress(address)]
|
22
|
+
if (metadata?.logo) {
|
23
|
+
const fileName = metadata.logo
|
24
|
+
const path = `${__dirname}/images/contract/${fileName}`
|
25
|
+
const img = document.createElement('img')
|
26
|
+
img.src = path
|
27
|
+
img.style.width = '100%'
|
28
|
+
return img
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
imageElFor ("0x06012c8cf97BEaD5deAe237070F9587f8E7A266d")
|
33
|
+
```
|
34
|
+
|
35
|
+
## Submission Process
|
36
|
+
|
37
|
+
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.
|
38
|
+
|
39
|
+
1. Fork this repository.
|
40
|
+
2. Add your logo image in a web-safe format to the `images` folder.
|
41
|
+
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.
|
42
|
+
|
43
|
+
Criteria:
|
44
|
+
|
45
|
+
- The icon should be small, square, but high resolution, ideally a vector/svg.
|
46
|
+
- 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.
|
47
|
+
- PR should include link to official project website referencing the suggested address.
|
48
|
+
- Project website should include explanation of project.
|
49
|
+
- Project should have clear signs of activity, either traffic on the network, activity on GitHub, or community buzz.
|
50
|
+
- Nice to have a verified source code on a block explorer like Etherscan.
|
51
|
+
- Must have a ['NEUTRAL' reputation or 'OK' reputation](https://info.etherscan.com/etherscan-token-reputation) on Etherscan.
|
52
|
+
|
53
|
+
A sample submission:
|
54
|
+
|
55
|
+
```json
|
56
|
+
{
|
57
|
+
"0x6090A6e47849629b7245Dfa1Ca21D94cd15878Ef": {
|
58
|
+
"name": "ENS Registrar",
|
59
|
+
"logo": "ens.svg"
|
60
|
+
}
|
61
|
+
}
|
62
|
+
```
|
63
|
+
|
64
|
+
Tokens should include a field `"erc20": true`, and can include additional fields:
|
65
|
+
|
66
|
+
- symbol (a five-character or less ticker symbol)
|
67
|
+
- decimals (precision of the tokens stored)
|
68
|
+
|
69
|
+
A full list of permitted fields can be found in the [permitted-fields.json](./permitted-fields.json) file.
|