Skip to content

Commit

Permalink
New repo format. Big changes (trustwallet#502)
Browse files Browse the repository at this point in the history
* Add checksum address to tezos validators

* Rename tron validators and assets

* Optimised images with calibre/image-actions

* Uppercase BNB coins

* Rename waves

* Checksum TT addresses

* Checksum POA addresses

* Checksum ETC addresses

* Checksum Ethreum and POA addresses

* Add ethereum-checksum-address

* Add BEP2 logos

* remove

* Fix Ethereum test

* Checksum Tomo

* Checksum Wanchain

* Update ALGO logo

* Update test

* Update readme

* Remove callisto from verify tokens

* Update logo.png

* Rename tezos

* Add web3

* Add new BEP2 images

* Uppercase blacklist BEp2

* pdate fetchin opensea nft addreses

* test

* new

* to checksum

* Update package

* Exclude callisto from test

* Checksum the rest

* To checksum script

* remove

* remove

* remove

* Add

* Add jest

* Use jest

* Breezecoin (BRZE)

* Test using Jest

* Remove mongoose

* Update scritps

* 999

* Move dep to dev

* Optimised images with calibre/image-actions

* Uppercase

* To checksum

* new

* Add babel

* Checksum

* Move helper meethods to sepaarate file for future reuse

* rename vthor

* Move js => typescript

* Add ts-node

* Add default lists

* Init blacklist

* Fetch opensea assets

* Add more helpers

* fethc opensea nonerc20 for blacklist

* Add list command

* script: checksum BEP2

* Rename to ts

* Remove old blacklist

* Update whitelist and blacklist

* Remove tezos validator due to end of service

Closes trustwallet#581

* script: generate white and black lists

* Add Stakenow to Tezos

* Arch Crypton Game (ARCG)

* Optimised images with calibre/image-actions

* Update list

* many updates

* Optimised images with calibre/image-actions

* Add daps

* Optimised images with calibre/image-actions

* Update Ethereum blacklist

* Utilize trustwallet/types

* Remove duplicate

* Reflex (RFX)

* Remove lowercased
  • Loading branch information
vikmeup authored and kolya182 committed Nov 8, 2019
1 parent bee1d88 commit d64a55e
Show file tree
Hide file tree
Showing 4,237 changed files with 14,371 additions and 2,412 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
34 changes: 20 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Hello and welcome to Trust Wallet assets info contribution guide. We appreciate your effort to open-source.
Token repository [https://github.com/trustwallet/assets](https://github.com/trustwallet/assets) (repo) is a source of images used by [Trust Wallet](https://trustwallet.com/) including:

1. [ERC20](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md) tokens on Ethereum compatible networks supported by Trust Wallet such as:
1. [ERC20](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md), ERC223 tokens on Ethereum compatible networks supported by Trust Wallet such as:
- [Ethereum (ETH)](https://ethereum.org/)
- [Ethereum Classic (ETC)](https://ethereumclassic.org/)
- [POA Network (POA)](https://poa.network/)
Expand All @@ -21,9 +21,9 @@ Token repository [https://github.com/trustwallet/assets](https://github.com/trus

5. dApp images available in `Browser` section in Trust Wallet and at https://dapps.trustwallet.com and bookmarks icons. [read requirments](#dApp-image-naming-requirments)

6. Staking validators info avalible on [Trust Wallet Staking Platform](https://github.com/trustwallet/developer/blob/master/platform/staking.md)
6. Staking validators info available on [Trust Wallet Staking Platform](https://github.com/trustwallet/developer/blob/master/platform/staking.md)

7. Coming soon: token info, token price, blacklisted and whitelisted tokens (mostly scam/spam ones)
7. Coming soon: token info, token price

<center><img src='https://raw.githubusercontent.com/trustwallet/assets/master/media/trust-wallet.png'></center>

Expand Down Expand Up @@ -51,32 +51,36 @@ Token repository [https://github.com/trustwallet/assets](https://github.com/trus

`blockchains` folder contains many subfolders and represents chains e.g. `ethereum`, `binance` ...

`assets` folder contains token folders named by smart contract address in `lowercase register` and inside of it `logo.png` - image representation
`assets` folder contains token folders named by smart contract address in `checksum address` for Ethreum like networks and inside of it `logo.png` - image representation. Note: Lowercased or uppercased contract addresses considered invalid. You can find checksum address by searching on [ etherscan.io](https://etherscan.io), for example stablecoin [DAI](https://etherscan.io/address/0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359) checksum address located at the top left corner of the page and has both uppercase and lowercase characters. Or [convert Ethereum address to Checksum address](https://piyolab.github.io/sushiether/RunScrapboxCode/?web3=1.0.0-beta.33&code=https://scrapbox.io/api/code/sushiether/web3.js_-_Ethereum_%E3%81%AE%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%82%92%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF%E3%82%B5%E3%83%A0%E4%BB%98%E3%81%8D%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%81%AB%E5%A4%89%E6%8F%9B%E3%81%99%E3%82%8B/demo.js). For other networks address must be specified as it was originated on a chain, e.g TRON TRC10: `1002000`, TRON TRC20: `TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t` etc ...

`info` folder contains for now only `logo.png` that represents coin image

`validators` folder contains folders: `assets` same structure as above and `list.json` information about validators.

`blacklist.json` and `whitelist.json` files you may find in folders like `tron`, `ethereum` but not limited to, contain list of address approved based on many criterias (TODO add criterias) and disapproved based on factors such as scam, outdated, abandoned contracts etc ... .


```
.
├── blockchains
│ └──ethereum
│ │ └──assets
│ │ │ └──0x0a2d9370cf74da3fd3df5d764e394ca8205c50b6 // address folder
│ │ │ └──0x0a2D9370cF74Da3FD3dF5d764e394Ca8205C50B6 // address folder
│ │ │ └──logo.png // address logo
│ │ └──info
│ │ └──logo.png // coin logo
| |
| └──binance
│ │ └──assets
│ │ │ └──one-5f9
│ │ │ └──ONE-5F9
│ │ │ └──logo.png
│ │ └──info
│ │ └──logo.png
| └──tron
│ | └──assets
│ | │ └──1002000
│ | │ | └──logo.png
| | | └──tgbhcodq1jrwb3zywmfwsrth4rwbil2mzh
| | | └──TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t
| | | └──logo.png
| | |
│ | └──info
Expand All @@ -100,9 +104,11 @@ Token repository [https://github.com/trustwallet/assets](https://github.com/trus
Uploading:
1. Ethereum ERC20 [token folder](https://github.com/trustwallet/assets/tree/master/blockchains/ethereum/assets)
2. Binance DEX BEP2 token [token folder](https://github.com/trustwallet/assets/tree/master/blockchains/binance/assets)
3. TRON TRC10 token [token folder](https://github.com/trustwallet/assets/tree/master/blockchains/tron/assets)
4. Add Cosmos validator info and image [](https://github.com/trustwallet/assets/tree/master/blockchains/cosmos/validators)
5. Add Tezos validator info and image [](https://github.com/trustwallet/assets/tree/master/blockchains/tezos/validators)
3. TRON TRC10, TRC20 token [token folder](https://github.com/trustwallet/assets/tree/master/blockchains/tron/assets)
4. Add Cosmos validator image [](https://github.com/trustwallet/assets/tree/master/blockchains/cosmos/validators)
5. Add Tezos validator info [](https://github.com/trustwallet/assets/tree/master/blockchains/tezos/validators/list.json)
6. Add Ethereum contract address to blacklist [](https://github.com/trustwallet/assets/tree/master/blockchains/ethereum/blacklist.json)
7. Add TRON TRC10 ID or TRC20 owner contract address to whitelist [](https://github.com/trustwallet/assets/tree/master/blockchains/tron/whitelist.json)


## How To Add Asset
Expand Down Expand Up @@ -149,7 +155,7 @@ Both clients, Android and iOS keep old image cache for up to 7 days. In order to
## How to use it? (For Developers)
Base URL for token image:
```js
https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/<contract_address_lowercase>/logo.png
https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/<contract_address_checksum>/logo.png
```

Base URL for coin image:
Expand All @@ -166,12 +172,12 @@ https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/bitcoin/

ERC20:
```js
https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x006bea43baa3f7a6f765f14f10a1a1b08334ef45/logo.png
https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x006BeA43Baa3f7A6f765F14f10A1a1b08334EF45/logo.png
```

BEP-2:
```js
https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/binance/assets/ankr-e97/logo.png
https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/binance/assets/ANKR-E97/logo.png
```

TRC-10:
Expand All @@ -181,7 +187,7 @@ https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/ass

TRC-20:
```js
https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/assets/tg37muxruah1e8dwsrrmoq79bnzn1yhztb/logo.png
https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tron/assets/TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t/logo.png
```

## Used in Applications
Expand Down
Binary file modified blockchains/algorand/info/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added blockchains/binance/assets/BCH-1FD/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added blockchains/binance/assets/JDXU-706/logo.png
File renamed without changes
Binary file added blockchains/binance/assets/KAVA-10C/logo.png
File renamed without changes
File renamed without changes
Binary file added blockchains/binance/assets/LTC-F07/logo.png
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
12 changes: 6 additions & 6 deletions blockchains/binance/blacklist.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
"awc-8b2",
"bolt-762",
"bcpt-645",
"usds.b-c27",
"wish-e50"
]
"AWC-8B2",
"BOLT-762",
"BCPT-645",
"USDS.B-c27",
"WITH-E50"
]
129 changes: 129 additions & 0 deletions blockchains/binance/whitelist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
[
"AERGO-46B",
"ZEBI-84F",
"ANKR-E97",
"ARN-71B",
"ARPA-575",
"ART-3C9",
"AVA-645",
"AWC-986",
"AXPR-777",
"BAW-DFB",
"BCH-1FD",
"BCPT-95A",
"BET-844",
"BETX-A0C",
"BGBP-CF3",
"BHFT-BBE",
"BKBT-3A6",
"BLINK-9C6",
"BNB",
"BOLT-4C6",
"BST2-2F2",
"BTCB-1DE",
"BTTB-D31",
"BUSD-BD1",
"BZNT-464",
"CAN-677",
"CAS-167",
"CBIX-3C9",
"CBM-4B2",
"CHZ-ECD",
"CNNS-E16",
"COS-2E4",
"COTI-CBB",
"COVA-218",
"CRPT-8C9",
"CSM-734",
"DEEP-9D3",
"DEFI-FA5",
"DOS-120",
"DREP-7D2",
"DUSK-45E",
"EBST-783",
"ECO-083",
"EET-45C",
"ENTRP-C8D",
"EQL-586",
"ERD-D06",
"EVT-49B",
"FRM-DE7",
"FSN-E14",
"FTM-A64",
"GIV-94E",
"GMAT-FC8",
"GTEX-71B",
"GTO-908",
"HNST-3C9",
"HYN-F21",
"IDRTB-178",
"IRIS-D88",
"JDXU-706",
"KAT-7BB",
"KAVA-10C",
"LBA-340",
"ALA-DCD",
"LOKI-6A9",
"LTC-F07",
"LTO-BDF",
"MATIC-84A",
"MCASH-869",
"MDAB-D42",
"MEDB-87E",
"MEETONE-031",
"MITH-C76",
"MITX-CAA",
"MTV-4C6",
"MTXLT-286",
"MVL-7B0",
"MZK-2C7",
"NEW-09E",
"NEXO-A84",
"NODE-F3A",
"NOW-E68",
"NPXB-1E8",
"NPXSXEM-89C",
"ONE-5F9",
"OWTX-A6B",
"PCAT-4BB",
"PHB-2DF",
"PHV-4A1",
"PIBNB-43C",
"PLG-D8D",
"PVT-554",
"PYN-C37",
"QBX-38C",
"RAVEN-F66",
"RUNE-B1A",
"SHR-DB6",
"SLV-986",
"SPNDB-916",
"SWIPE.B-DC0",
"TAUDB-888",
"TCADB-888",
"TGBPB-888",
"THKDB-888",
"TM2-0C4",
"TOMOB-4BC",
"TOP-491",
"TRUE-D84",
"TRXB-2E6",
"TUSDB-888",
"UGAS-B0C",
"UND-EBC",
"UPX-F3E",
"USDH-5B5",
"USDSB-1AC",
"VDX-A17",
"VIDT-F53",
"VNDC-DB9",
"VOTE-FD4",
"VRAB-B56",
"WICC-01D",
"WINB-41F",
"WISH-2D5",
"XBASE-CD2",
"XNS-760",
"XRP-BF2",
"LIT-099"
]
Diff not rendered.
1 change: 1 addition & 0 deletions blockchains/callisto/blacklist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions blockchains/callisto/whitelist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Diff not rendered.
1 change: 1 addition & 0 deletions blockchains/classic/blacklist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
83 changes: 83 additions & 0 deletions blockchains/classic/whitelist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
[
"0x0000000000b3F879cb30FE243b4Dfee438691c04",
"0x085B0FDf115aA9E16AE1Bddd396CE1F993c52220",
"0x0b6f824FAB88281ea8bd883bdfC1F586743F92FA",
"0x0DC554d2BBc8f4Cda0577CeD2CD86c54689Af3Db",
"0x0f54903F62Dc03DFBE1d99064B41a65D461F61b9",
"0x1178d40896cf784Db203eB40f159D78Ab6E99a29",
"0x15c56f9edE6a53AFaFF8505D88F47B03b57B52AB",
"0x169a4d7aB1244eB57433082B94d8ded5BB97483f",
"0x171040cd10f204F3b257e45b41ce65D36150558C",
"0x17CDb23E6151Dca9A75457d3d795CC5A63648949",
"0x1BE6D61B1103D91F7f86D47e6ca0429259A15ff0",
"0x1ce1b789E291FFA8812D03fa7E67e538f91f132d",
"0x1e797Ce986C3CFF4472F7D38d5C4aba55DfEFE40",
"0x1Fe3164dA6B47C52349E98c14440879A42852D71",
"0x22B3f1d789B189fDd2040d7d5B59568a291Ef611",
"0x24ccaAaE74041985e3D75712D5cce63b0bD9C4A3",
"0x2B682bd9d5c31E67a95cbdF0292017C02E51923C",
"0x33E89a9db4F5a44d80A3E9d2Bdff6c168cbbd15c",
"0x3a6979EAB0ad99549158c05F2635C3B85dCAf5e2",
"0x3E6eC3A0A995d3c58d3854AaE41C77C687C07E7f",
"0x4479B4e96252B829934bA0f8fb8f5c96883DA7E5",
"0x45e42D659D9f9466cD5DF622506033145a9b89Bc",
"0x477964C7B2CDFe2653b0D89469e40D8A5eeF9E52",
"0x4970515788ab15d4De4E9f8ed1E1079f6d25dC77",
"0x4a3a14d47634E0712B1Aa33f17EC31316a0D5BAB",
"0x4dF86FD5bf250D692C503592Bde3d3E9087F6232",
"0x4fab5005176F5E4c00988623c35107cCB40dC19D",
"0x5046E6b2C9D11458bC3718e0cF5Bc8557bCCf5dc",
"0x50fA6146E86deAd56bf9E8e4655DFc2b5235D355",
"0x51396a258BAe60D1fDE2a4Be900371f3B9C52c43",
"0x55b9a11c2e8351b4Ffc7b11561148bfaC9977855",
"0x5BEb463647b1Fd55D3F876E9b042c27Aa63F4bA8",
"0x64fd6EeB4c86A66b0CfeEAFeC11FbC57A2993E67",
"0x651074850053b7FaCf7F7200068B29A2E3525B40",
"0x690D4d5e3722e140fCa16e25E7A579588D93eB75",
"0x6A37eC2C49E2FB35F9c029128e996f46928dDecC",
"0x6ADa6F48C815689502C43eC1a59F1b5DD3C04E1F",
"0x6FD253A6D78df35f2D932aCf4bCEF4bB650a2263",
"0x76d0184CF511788032A74a1FB91146e63F43dd53",
"0x7b355c571FEde83F152E9585143306C0d2b53193",
"0x876A68D9efbc3CadaA886e9868D93737035F717C",
"0x88d60255F917e3eb94eaE199d827DAd837fac4cB",
"0x8900f34372f27Ebb5881D4eC6b35844A3655CCFc",
"0x8E100855e6647bd24F1A32999c4A6C91497C9f62",
"0x935E058102AFa0CC3c29Af024AF3208Ba521bcB0",
"0x9946C9C519638740EAc4Ee3Aa9f20eBe1Ce36c2c",
"0x9a145BABB0315F461eD40cB8Cd17523A039e0370",
"0x9aBcecb1CB8e174b4d158021c9C710c81a989487",
"0x9c5D60F5D1493F3FA05cdE2403b4Bd4B9CF01057",
"0xAC55641Cbb734bdf6510d1bBd62E240c2409040f",
"0xAf4D36C8c744F345E060345b6eAf4E899eC7547c",
"0xAfe6851C1D9ee2E759ACDEE8cFC827E22a9eC5d7",
"0xb81BbB68D2C32398e628f5183D1cfe9f24dFb678",
"0xB932b16ccc42917dF3608bfC1519e948b42fdFD9",
"0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413",
"0xc2A4CE7835c7b6de4F3F15303E25b3eF0bB43bDF",
"0xC2E0bC52D1995dF11949425cfdf78D0B6D2cfE0a",
"0xc658E8372DaFFf26caa7439B95a1fF723baaef6E",
"0xC66eA802717bFb9833400264Dd12c2bCeAa34a6d",
"0xC68dDd84fDC77506A5b7AB43B8E13DBA0AF74Ff4",
"0xC8671e3eAAd0793de26c4a7Ba5ca10a992a80c7A",
"0xc98333457471f82871B0193D0E4F03C6D7D7dFF8",
"0xca08DaeC07f11d9375cA64478e83a12fC35B09d2",
"0xCA68fE57A0E9987F940Ebcc65fe5F96E7bC30128",
"0xD1c10d433C888E6d1841fF924d0CE45157f0d5Cd",
"0xD1eBe08dAe15E604B043789cb140be646E0bd27b",
"0xD4729a47FFDBDd190a015BB0C29fC613c5aD3cFE",
"0xD507fAa6B65cF9E970d67cd108B224162495de30",
"0xdEb7ade9417f98AFbB60cd6b4a49d4B002AB79c9",
"0xDF23a076b82a08cEFe696346DB702BBDD86838Bf",
"0xDF9AaC76b722B08511A4C561607A9bf3AfA62E49",
"0xdfd0A6BeD91d7609a0d84389Dcb7AAb5877e6AfA",
"0xE0B7927c4aF23765Cb51314A0E0521A9645F0E2A",
"0xe37B29Ce789CFa51b72c64c93e0d7E2D7BA46681",
"0xe9506979c9FA6f34b93846792c2d4aad7974ea55",
"0xeceaDBB8441AA28b76D8c756EE873aC574068204",
"0xf8af8f48ba1743ccb0001778070e4ce189225e90",
"0xf962Ce2544f9e22da3DAE54b2A3040db7867f029",
"0xFC07d3E0e36330a151c09384C3aD45e745227688",
"0xFF197d0558aa9CD8fF788c7f0d4A1A48E1c399D6",
"0xFf8596169865c7cc1458b1c0eCCAFd4092C7F10f"
]
1 change: 1 addition & 0 deletions blockchains/eos/blacklist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
3 changes: 3 additions & 0 deletions blockchains/eos/whitelist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"volentixgsys"
]
Diff not rendered.
Loading

0 comments on commit d64a55e

Please sign in to comment.