Giter Site home page Giter Site logo

assetlists's Introduction

Asset Lists

Asset Lists are inspired by the Token Lists project on Ethereum which helps discoverability of ERC20 tokens by providing a mapping between erc20 contract addresses and their associated metadata.

Asset lists are a similar mechanism to allow frontends and other UIs to fetch metadata associated with Cosmos SDK denoms, especially for assets sent over IBC.

This standard is a work in progress. You'll notice that the format of assets in the assetlist.json structure is a strict superset json representation of the banktypes.DenomMetadata from the Cosmos SDK. This is purposefully done so that this standard may eventually be migrated into a Cosmos SDK module in the future, so it can be easily maintained on chain instead of on Github.

Some keywords here are reserved:

  • osmosis-frontier keyword requires that a pool ID be defined. It is used to keep track of which tokens appear on Osmosis Frontier.
  • osmosis-main keyword requires that 'osmosis-frontier' be defined, and also requires either: Osmosis governance to approve that the token be shown on app.osmosis.zone (Main site), or that the token is incentivized by Osmosis--which is also approved by Osmosis governance. It is used to keep track of which tokens appear on Osmosis Main.
  • osmosis-info keyword requires that a pool ID be defined and >=$10,000 USD-worth of liquidity of the token on Osmosis. It is used to filter which assets will appear on the Osmosis Info site and queryable by the API.

The assetlist JSON Schema can be found here

An example assetlist json contains the following structure:

{
    "chain_id": "steak-chain-1",
    "assets": [
        {
            "description": "The native token of Steak Chain",
            "denom_units": [
                {
                    "denom": "usteak",
                    "exponent": 0,
                    "aliases": []
                },
                {
                    "denom": "steak",
                    "exponent": 6,
                    "aliases": []
                }
            ],
            "base": "usteak",
            "display": "steak",
            "symbol": "STK",
            "ibc": {
                "source_channel": "channel-35",
                "dst_channel": "channel-1",
                "source_denom": "ustk"
            },
            "logo_URIs": {
                "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/fubar/images/stk.png",
                "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/fubar/images/stk.svg"
            },
            "keywords": [
                "osmosis-main",
                "osmosis-frontier",
                "osmosis-info"
            ],
            "pools": {
              "OSMO": 991
            }
        },
        {
            "description": "Foocoin is the native token of the Foochain",
            "denom_units": [
                {
                    "denom": "ibc/6ED71011FFBD0D137AFDB6AC574E9E100F61BA3DD44A8C05ECCE7E59D40A7B3E",
                    "exponent": 0,
                    "aliases": ["ufoocoin"]
                },
                {
                    "denom": "foocoin",
                    "exponent": 6,
                    "aliases": []
                }
            ],
            "base": "ibc/6ED71011FFBD0D137AFDB6AC574E9E100F61BA3DD44A8C05ECCE7E59D40A7B3E",
            "display": "foocoin",
            "symbol": "FOO",
            "ibc": {
                "source_channel": "channel-35",
                "dst_channel": "channel-1",
                "source_denom": "ufoocoin"
            },
            "logo_URIs": {
                "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/fubar/images/foo.png",
                "svg": ""
            },
            "coingecko_id": "foocoin-token",
            "keywords": [
                "osmosis-frontier"
            ],
            "pools": {
              "OSMO": 992
            }
        }
    ]
}

assetlists's People

Contributors

sunnya97 avatar ibrarmakaveli avatar jeremyparish69 avatar jasbanza avatar dogemos avatar raulbernal avatar doggystylez avatar hannydevelop avatar mdyring avatar jayjay-crypto avatar imperator-co avatar the0developer avatar zmanian avatar yurist-85 avatar puneet2019 avatar tac0turtle avatar maghermit avatar johnnywyles avatar devgeodb avatar dylanschultzie avatar dimiandre avatar albertandrejev avatar tarekawwad avatar faneaatiku avatar steveliupai avatar riccardom avatar reza2870 avatar racoon-supply-rac avatar oxygene76 avatar masterpi-2124 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.