This package contains the Synapse Protocol Token and Chain Constants
npm install synapse-constants
With Yarn:
yarn add synapse-constants
To restrict the assets and chains that are imported, you can create a "custom bridge list". From the set of all tokens imported from "bridgeable.ts" you can import specific tokens and use that as the custom list you use in your application. The same can be done for chains
For maintenance, when new tokens are added to the bridge the following steps should be taken.
- Regenerate bridgeMaps.ts
yarn maps:generate
-
Update Bridgeable.ts with the new token addresses (check all other variables like decimals/ symbols etc. )
-
Repackage and webpack all of the data
yarn compile
- Republish the npm package (make sure to update the version)
npm publish
TODO:
- add the basic structure of the token type and the chain type to show accessibility for token logos, chain logos, and any additional information.