Explanation of Processing adamant-wallets (all coin information for ADAMANT client applications) #23
Replies: 2 comments
-
|
Thanks for the detailed explanation of how adamant-wallets consolidates and merges crypto information for ADAMANT apps. I see several important points here:
|
Beta Was this translation helpful? Give feedback.
-
|
The multi-chain token handling is indeed the strongest point. Having a unified identity for tokens like USDT while still carrying chain-specific details is exactly what users expect, and it gives developers a predictable way to access those details without reinventing merging logic. All in all, the model may not be mathematically perfect, but it’s pragmatic and developer-friendly — and that’s what matters most for consistent UX across platforms. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
adamant-walletsconsolidates all coin information for ADAMANT client applications.This document explains how to create coins/tokens and how values for tokens across different blockchains are merged inside client apps.
The client app is responsible for correctly processing
adamant-wallets, providing developers with a convenient, unified data structure.The proposed structure of
adamant-walletsis not perfect (because token information is merged from different folders), but alternatives have their own trade-offs. That’s why we describe it as is — no structural changes are proposed.📖 Read also:
adamant-walletsREADMETerminology
Crypto — a general term which includes both coins and tokens.
Each crypto has:
Coin — a crypto that exists on its own blockchain (chain).
Examples:
ADM,BTC,DOGE,DASH,KLYToken — a crypto that exists on some blockchain.
STORJ,USDTMain Coin — every blockchain has one.
It shares common properties for all tokens on the chain and is used to pay fees for token transfers.
ETHBNBETH.Token Type per Blockchain
ERC20BEP20Multi-chain Tokens — a token may exist on multiple blockchains.
Example:
ERC20BEP20It’s the same token with the same value and general info, but stored and transferred on different chains.
Basic Structure of
adamant-wallets/generalfolder./blockchainsfolder.Example:
/general/USDT/info.json— general info about USDT/blockchains/ethereum/USDT/info.json— USDT on EthereumThe
/blockchains/{chain}/info.jsonfile:Property Sources for a Token
Any token on any blockchain has four sources of properties.
They are merged in the following priority (from high → low):
/blockchains/ethereum/USDT/info.json— specific token on specific blockchain/blockchains/ethereum/info.json— shared token info for this blockchain/general/ethereum/info.json— info from blockchain’s main coin/general/USDT/info.json— general token infoExample: USDT on Ethereum merges all of these, with (1) overriding (2), etc.
Creating Coins and Tokens in Apps
Create Coins
/general./general/{crypto}/info.json.statusis not active.typeis notcoin.createCoin = true, create a coin.ADM,BTC.Create Tokens
/blockchains./blockchains/ethereum,/blockchains/binanceSmartChain/blockchains/{blockchain}/info.json.statusis not active.mainCoin./general/{mainCoin}/info.json.{blockchain}(e.g.,USDT,STORJ)./general/{token}/info.json.type = token./blockchains/{blockchain}/{token}/info.json.statusis not active.USDT,USDC,DAI.Data Object for a Crypto
After parsing
adamant-wallets, the app holds a data object with info on all coins and tokens across chains.Because properties are already merged, retrieving data is convenient:
✅ This ensures ADAMANT apps can handle multiple blockchains and tokens consistently.
Beta Was this translation helpful? Give feedback.
All reactions