The Initia Registry serves as a central repository containing crucial metadata for chains within the Initia ecosystem. It houses configuration files such as chain.json and assetlist.json, which are vital for initiating and interacting with nodes, as well as understanding the available assets on each chain. Additionally, the registry includes *.schema.json files in the root directory, outlining the recommended metadata structure. These schemas are dynamic, subject to revisions based on evolving user needs, and may include optional fields beyond the current schema specifications.
Adding Minitia to Initia Registry
Fork the Repository: Begin by forking the repository where the Initia Registry is hosted.
Add a New Directory: Create a directory named after the chain you intend to add.
Include Necessary Files:
chain.json: Populate this file with the metadata of the chain.
assetlist.json: Include metadata concerning the assets available on the chain.
initia-minitia.json: Provide metadata about the IBC connections and channels, ensuring the file name adheres to the alphabetical order of the chain names, e.g., Achain-Bchain.json.
Create a Pull Request: Submit your modifications for review to merge them into the main repository.
chain.json
A sample chain.json includes the following information.
Asset Lists are inspired by the Token Lists project on Ethereum which helps discoverability of ERC-20 tokens by providing a mapping between ERC-20 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.
The assetlist JSON Schema can be found here.
An example assetlist json contains the following structure:
The metadata contained in these files represents a path abstraction between two IBC-connected networks. This information is particularly useful when relaying packets and acknowledgments across chains.
This schema also allows us to provide helpful info to describe open channels.
Note: when creating these files, please ensure the chains in both the file name and the references of chain-1 and chain-2 in the json file are in alphabetical order. Ex: Achain-Zchain.json. The chain names used must match name of the chain's directory here in the chain-registry.
An example ibc metadata file contains the following structure:
The Initia Registry is pivotal in supporting the seamless operation and integration of various chains and assets within the Initia ecosystem. By maintaining detailed and standardized metadata, it ensures that developers and users have access to up-to-date and necessary information for effective interaction with the blockchain network.