Skip to content

dataxfi/scripts

Repository files navigation

Scripts to automate DataX jobs

AutoUpdateTokens.js

Automatically fetch a new token list every midnight (time local to host server) and update a list of tokens in repo (for each supported chain).

  1. install dependencies with yarn install
  2. run yarn tsc to compile your typescript
  3. run yarn start to run the script

Supported Chains

1: mainnet 4: rinkeby 56: bsc 137: polygon 246: energyweb 1285: moonriver

Manual Verification

You can checkout ManualVerification.md for instructions on how to use Postman to manually verify your token lists are being created correctly.

Adding a chain

Keep in mind the PR's for adding a chain directly to this repository will only be accepted if they are supported on Datapolis, and will only work if there is an Ocean Protocol subgraph for that chain.

The file naming convention for token lists is standard in this repository as well as funcitons in datax.js:

chain<chainId>

You can add a chain to this script by just adding the chainId to the array passed to the main function, as well as adding the chain name to the chains object here The token list will then be created and kept in this repository.

Extensive changes to the request body, etc., are best done on a fork.

About

Scripts to automate DataX jobs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •