Coder Social home page Coder Social logo

coins-registry's Introduction

LiquidSwap Coin Registry

We are developing our own Coin Registry file format for LiquidSwap, which contains all the information about the pools in which tokens can be exchanged.

An example of a JSON file you can see here example.json

File description

Field Description Note
name Preset name string, required, example: Custom Preset
image Preset image string, example: https://example.com/images/my-preset.svg
version Semver preset version object, required.
version.major Semver Major version number, required, example: 1
version.minor Semver Minor version number, required, example: 0
version.patch Semver Patch version number, required, example: 0
tokens[] A list of all tokens that are present in the pools array, required.
tokens[].title Fullname of the token string, required, example: Ethereum
tokens[].chainId Network ChainID number, required, example: 97.
Aptos Devnet - 97
tokens[].symbol Native Token symbol string, required, example: ETH.
This is the symbol of the token, which is specified when deploying the contract
tokens[].alias Visible Token symbol string, example: WETH.
This is the symbol of the token that will be visible to the user
tokens[].image Token image string, example: https://example.com/images/my-token.svg
tokens[].type Aptos type string, required, example: 0xb4d7b2466d211c1f4629e8340bb1a9e75e7f8fb38cc145c54c5c9f9d5017a318::CoinsExtended::ETH
pools[] List of pools array, required.
pools[].chainId Network ChainID number, required, example: 97.
Aptos Devnet - 97
pools[].address Pool owner (creator) address string, required, example: 0xb4d7b2466d211c1f4629e8340bb1a9e75e7f8fb38cc145c54c5c9f9d5017a318
pools[].module Address of the module in which the pool is registered string, required, example: 0x43417434fd869edee76cca2a4d2301e528a1551b1d719b75c350c3c97d15b8b9.
Only one module address is currently available
pools[].tokens[] Token addresses used in the pool array, required.
The first two tokens should be sorted alphabetically according to their symbol from smallest to largest
pools[].tokens[][0] First token string, required, example: 0xb4d7b2466d211c1f4629e8340bb1a9e75e7f8fb38cc145c54c5c9f9d5017a318::CoinsExtended::ETH
pools[].tokens[][1] Second token string, required, example: 0xb4d7b2466d211c1f4629e8340bb1a9e75e7f8fb38cc145c54c5c9f9d5017a318::CoinsExtended::USDC
pools[].tokens[][2] LP token string, required, example: 0xb4d7b2466d211c1f4629e8340bb1a9e75e7f8fb38cc145c54c5c9f9d5017a318::LP::LP<0xb4d7b2466d211c1f4629e8340bb1a9e75e7f8fb38cc145c54c5c9f9d5017a318::CoinsExtended::ETH, 0xb4d7b2466d211c1f4629e8340bb1a9e75e7f8fb38cc145c54c5c9f9d5017a318::CoinsExtended::USDC>

Contribution

You are welcome to fork the current repository and do an PR.

The current repository maintaining under MIT license.

License

MIT.

coins-registry's People

Contributors

borispovod avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.