Commit Graph

66 Commits

Author SHA1 Message Date
Adam R
5dc4b993ca
[Internal] Add nsfw tag (tag, not status) (#11536)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-07-08 21:01:32 +02:00
Adam R
41037d09f0
[Internal] Allow assets to exist with no logo, info only (typically spam) (#11530)
* Allow assets to exist with no logo, info only (typically spam)

* Allow missing logo only for spam assets

* Lint fix

* Remove logo for a few spam tokens

* Revert "Remove logo for a few spam tokens"

This reverts commit 95e93cd7b2e9c3c03f4e8369f59a5c56c593e13d.

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-07-08 17:40:16 +02:00
Adam R
62f50817bb
Add new nsfw tag (#11525)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-07-08 16:20:02 +02:00
Adam R
6d5682e43f
[Internal] Coin info type should be lowercase 'coin' (#11234)
* Coin info type should be lowercase 'coin'

* Make coin info types lowercase 'coin'

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-07-04 07:35:54 +02:00
Adam R
e5a5a0abed
[Internal] Remove source_code, whitepaper fields (#10891)
* Remove all source_code and whitepaper fields (moved to links section)

* Move white_paper fields to links section

* Add checks for source_code, whitepaper fields

* Whitepaper fixes

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-06-28 17:49:10 +02:00
Adam R
6572a691df
[Internal] Remove socials sections from info.json's (#10876)
* Remove socials sections from info.json's

* Update error message if socials is present

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-06-28 11:24:55 +02:00
Adam R
6a5dfc94b5
Links check: fix for prefix check (#10786)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-06-26 22:02:27 +02:00
Adam R
e3d5d8ed79
[Internal] Coin info's: Include in checks; perform socials->links migration (#10707)
* Include coin info.json's in checks as well

* Put all chain coin cheks into one check step

* Socials->links adaptation in coin info.json's

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-06-25 11:12:11 +02:00
Adam R
5a4dfb324a
[Internal] Duplicate info from 'socials' to 'links' (#10639)
* Handle fields, 1

* Few more fields

* Discord field, fixes

* Facebook, youtube fields

* Telegram_news, docs, ignored fields

* New fields Coinmarketcap & coingecko, better handling of handles.

* Code to commit links into info.json, commented out

* Add checks for new links fields

* Minor log fixes

* Extra check for URLs must start with https://

* Duplicate info from 'socials' to 'links'.

* Fix for one links (was not array)

* Revert asset-infos, except checking

* Lint fix

* Fix discord.gg .com//invite links

* Add error for lone socials section (w/o links)

* Remove empty socials section

* Manual fix of some socials sections.

* Check for invalid fields in links.

* Lint fix

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-06-24 10:58:38 +02:00
Adam R
fbaa48e748
Add missing info files for Waves tokens (#9271)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-06-03 16:21:12 +02:00
Adam R
af1d3e1f4e
[Internal] Token missing info cleanup: eos, theta, tomochain, xdai, tron (#8444)
* [Internal] Token missing info cleanup: eos, theta, tomochain, xdai, tron

* Add explorerUrl generation

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-05-20 14:33:44 +02:00
Adam R
2c716b8aa3
Enforce that info file must be present for all tokens (with some exceptions). (#8439)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-05-20 12:10:48 +02:00
Adam R
f905bad945
[Internal] Change all explorers to standard explorer (#7655)
* In fix, overwrite Explorer to computed version.

* Ignore case-only diff

* Add VeChain explorer

* Revert "Add VeChain explorer"

This reverts commit 0a0b22c6beda4648c41cf307bbb9b4f421d7d773.

* Add VeChain explorer template

* Update thundertoken explorer

* Lint fix

* Lint fix

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-05-10 15:08:10 +02:00
Adam R
fb85a400be
Type should be all-caps (#6629)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-04-20 16:05:09 +02:00
Adam R
87750b5f9d
Enforce that info.id field matches exactly folder name (i.e. in checksum format) (#6077)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-03-25 14:28:56 +01:00
Adam R
2d771a60b1
Remove unused import; Lint fix (#6039)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-03-23 16:33:59 +01:00
Adam R
6b22d924be
[Internal] Tag values config in typed file (#6016)
* Tag values config in typed file.

* Lint fix

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-03-22 11:33:21 +01:00
Adam R
63c1dcaf1a
[Internal] Add check for tags field (array) (#5960)
* Add check for tags field (array)

* Lint fix

* Using reduce() instead of forEach() for checking all values

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-03-18 00:27:21 +01:00
Adam R
1042aa9e63
[Internal] Add check for valid values of status field (#5951)
* Add check for valid values of status field

* Ad dmissing new file

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-03-17 11:51:03 +01:00
Adam R
a957795c20
[Internal] Add check and fix id field (#5904)
* Add check for existence of id field.

* Fix id field if it differs from address.

* Fix a few tokens with casing differences.

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-03-12 19:01:29 +01:00
Adam R
e5cc13e032
[Internal] Assets fix script: format all JSON files, not only eth-fork info files (#5853)
* Assets fix script: format all JSON files, not only eth-fork info files.

* More debug message

* Cleanup

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-03-08 11:38:22 +01:00
Adam R
c8f7520574
Update pacakeswap API provider. (#5766)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-03-01 16:02:06 +01:00
Adam R
76ccac3437
[Internal] Info type files: accept both casing, in fix make it uppercase (#5762)
* Info type files: accept both casing, in fix make it uppercase.

* Minor, to re-trigger CI

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-03-01 15:46:10 +01:00
Adam R
a6ab7933a9
[Internal] Add checks for dapps folder files, extension, casing, image size (#5725)
* Add checks for dapps folder files, extension and casing.

* Add checks for dapps logo dimansions/size.

* Reduce size of large dapps logos

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-26 12:39:39 +01:00
Adam R
4104360d9a
[Internal] Re-init history ALL changes (#5682)
* Disable full change support

* Reset history

* Init history, version 2 with ALL changes.

* Take out changeCount field; extra trim

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-24 10:06:56 +01:00
Adam R
2a8fcc707c
[Internal] Filter changed files to blockchains and dapps folders (#5668)
* Merge fix and history build into one.

* Filter chganged files to blockchains and dapps foldersx).

* Debug github.ref

* Fix echo

* Debug

* Debug

* Remove

* Debug

* Debug

* Setup history conditions

* Cleanup

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-23 11:00:47 +01:00
Adam R
a7db1a3509
History update: add Readme, make build green when there is not change (#5660)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-22 17:48:47 +01:00
Catenocrypt
fdefb587e0 Ignore history files form changes to prevent endless loop 2021-02-22 17:26:16 +01:00
Adam R
a189c05c4f
[Internal] Update version to 2 (#5654)
* Update version to 2

* Full change limit is above 40 files

* Updated 2.json

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-22 16:34:14 +01:00
Adam R
159cec7043
[Internal] Infrastructure for change management (history) (#5653)
* Infrastructure for change management (history).

* Always take latest commit from master

* Allow history folder.

* Lint fixes

* Error handling, do not update LATEST if version writing failed

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-22 16:25:32 +01:00
Adam R
2c895b6df9
[Internal] More prominent error markers (#5652)
* Central place for error/warning markers

* More prominent error marker.

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-22 12:55:52 +01:00
Adam R
c41a67d7f6
Adjust token type / chain check; case insensitive (#5537)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-09 23:43:12 +01:00
Adam R
a987c49d9b
[Internal] Add status field to all info files (#5514)
* Add status field to all info files (where missing, with value active).

* Enforce check for field status.

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-08 11:38:26 +01:00
Adam R
dd56b0122a
[Internal] Enforce values for type in info files (#5513)
* Generate missing info files for ETC tokens.

* Add missing waves info files

* Revert

* Fix wanchain ID casing.

* Enforce values for type in info files.

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-08 11:23:34 +01:00
Adam R
617df987fd
[Internal] Add missing info files (#5511)
* Generate missing info files for ETC tokens.

* Add missing waves info files

* Revert

* Fix wanchain ID casing.

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-08 11:08:45 +01:00
Adam R
38ed414425
Add check for missing info files, only warning for now. (#5509)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-08 10:28:04 +01:00
Adam R
55c5a48652
Enforce value of the ID field. (#5488)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-05 11:59:21 +01:00
Adam R
19e8a5c9ab
[Internal] Extend checking fields in info files. (#5483)
* Rearrange info field checks.

* Fill missing id field in some infos; enable check for filled id field.

* Minor script change

* Fill missing type field in some infos; enable check for filled type field.

* Enable check for filled symbol type.

* Enable check for decimals field.

* Enable check for filled description field.

* Enforce non-empty website field.

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-04 17:47:14 +01:00
Adam R
03028a6712
[Internal] Generate info.json for each token where it was missing (#5432)
* ExplorerUrl switch fix

* ExplorerUrl export fix

* Generate info.json for each token where it was missing.

* Replace placeholder text for description to a dash.

* Add id field; reorder tags.

* Add id fields.

* Fill website from info from ethplorer.

* Complete blockchain info.jsons (with symbol, decimals; auto update).

* Complete blockchain info.jsons (with symbol, decimals, status; manual update).

* Rename short_description to description in all info.json files.

* Tomochain explorer urls.

* ExplorerUrls (kava, ontology, gochain).

* Few leftover short_description field rename.

* Set missing website to empty.

* Merge fixes

* Fix duplicate description fields.

* Remove long descriptions from chain info.json files.

* Duplicate description fields; last 5 instances.

* Add warning for too long description

* Shorten some long descriptions.

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-03 23:42:15 +01:00
Adam R
bb47ec5f3c
[Internal] Rename short_description to description in all info.json files (#5461)
* Rename short_description to description in all info.json files.

* Adjust check of fields

* Adjust field check

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-03 09:59:29 -08:00
Adam R
bf24ea2d8b
[Internal] Tokenlist pairs update: Only manual update; use exclude/include config; no tokenlist_base (#5451)
* Force include and exclude implementation.

* Rename update to updateAuto

* UpdateManual hooks

* UpdateManual hook fix

* Update existing tokenlist.json file, use exclude/include config.

* Force include only pairs against the main currency.

* PS config adjustment

* Remove tokenlist_base files

* Lint fix

* Remove all pairs first.

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-01 16:45:55 +01:00
Adam R
187b8e240a
Add id field to each info.json. (#5447)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-01 12:12:30 +01:00
Adam R
5efd533fdc
[Internal] Fix for running in Action; Adjust token validity check (#5429)
* Extra logs

* External Updates

* Move token validity check, cheksumFormat ID is available only later.

* External Updates

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-01-29 08:26:38 +01:00
Adam R
88f26b09d1
[Internal] Retrieve trading pairs from PancakeSwap (#5355)
* Retrieve trading pairs from PancakeSwap.

* Retrieve trading pairs from Uniswap.

* Add doc link

* Lint fix

* Include decimals

* Move binance tokenlist generation to BinanceAction.

* Generate smartChain tokenlist, from base and pancakeswap pairs.

* Fix array types in tokenlists.ts

* Common writeToFile method, sort.

* Type fixes

* Revert tokenlist.json to master

* Include pairs with allowlisted coins only.

* Move assetID functions to common asset.ts

* Use common assetID functions.

* Use dynamic generation time.

* Keep constant generation time; Version in tokenlist.

* Count additions

* Update tokenlist version and timestamp if needed before save.

* No counting is needed in addXxxIfNeeded() functions.

* Tokenlist timestamp: take over if previous

* Update ethereum tokenlist with pairs from Uniswap.

* Increase query limit to 400 pairs.

* iDecimals always number, add decimal fields to Eth also.

* Include only pairs with primary tokens, add pair info to primary token only.

* Update base tokenlist (BSC) to current full list, in order not to remove any coins.

* Update base tokenlist (ETH) to current full list, in order not to remove any coins.

* Move out pair checks into common code.

* Add checks for volume and txCount.

* Assets tokenlist: Adjust token names for added tokens.

* Move parameters to central config.ts

* Nicer query string, compact

* Prevent change if subgraph API fails

* Reduce max limit in Pancakeswap query, with 400 often times out.

* Stricter error handling

* Reduce code duplication.

* Minor comment

* Display number of original tokens

* Lint fix

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-01-29 07:45:43 +01:00
Adam R
6ba5809679
Proper version update (#5379)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-01-25 15:35:52 +01:00
Adam R
072eb40c33
[Internal] Binance tokenlist update changes (#5377)
* Update tokenlist version and timestamp if needed before save, move assetID functions to common asset.ts.

* Lint fixes

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-01-25 15:23:03 +01:00
Adam R
0c98779e0c
[Internal] Tokenlists.json: Common save, type fixes (#5358)
* Move binance tokenlist generation to BinanceAction.

* Fix array types in tokenlists.ts

* Common writeToFile method, sort.

* Type fixes

* Revert tokenlist.json to master

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-01-23 01:31:03 +01:00
Adam R
0f1909110d
[Internal] Adjust binance tokenlist generation, fix array types (#5357)
* Move binance tokenlist generation to BinanceAction.

* Fix array types in tokenlists.ts

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-01-23 01:04:56 +01:00
Adam R
3876862de4
[internal] Add Solana token infrastructure, Serum token. (#5000)
* Add Solana token infrastructure, Serum token.

* Use CoinType constants for chains

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2020-12-07 11:56:44 +01:00
Catenocrypt
c8a9340dff Revert "Add Solana token infrastructure, Serum token."
This reverts commit 652717b761.
2020-12-04 13:00:41 +01:00