Commit Graph

9 Commits

Author SHA1 Message Date
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
de0ea4b7d9
[Internal] Update ETH & BSC trading pairs from external API (#5450)
* Update ETH & BSC trading pairs from external API

* Typo

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-01 16:16:14 +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
Viktor Radchenko
9b41a52182
Add token list support for pairs on binance chain (#4428)
* Add token list support for pairs on binance chain

* Update tokenlists.ts

* Update tokenlists.ts

* Update tokenlists.ts

* Fix asset for bnb pair

* Update package-lock.json

* Add models for token list

* Add BinanceMarket
2020-10-13 18:20:42 -07:00
Adam R
68e0cc6d90
[internal] Set up Linting (#4040)
* Add ESLint infrastructure.

* Lint auto fixes.

* Lint fixes.

* Lint fixes.

* Add Lint to CI builds.

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2020-09-18 16:39:31 +02:00
Adam R
56da272f19
Remove Coinmarketcap mapping and logic. (#3717)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2020-08-31 18:25:21 +02:00
Adam R
1e0b7f5d60
[internal] Simplify script/config, make it typed. (#3487)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2020-08-19 22:59:05 +02:00
Catenocrypt
c7ce933653 Revert "Simplify script/config, make it typed."
This reverts commit c3ecf50d16.
2020-08-19 22:35:36 +02:00
Catenocrypt
c3ecf50d16 Simplify script/config, make it typed. 2020-08-19 22:34:28 +02:00