feat(core): an asset registry that maps our asset ids to Intents ids
ci / gate (push) Has been cancelled
ci / gate (push) Has been cancelled
assets.toml beside the chain profiles: what the wallet holds (QTC, PLK, DEV; none on NEAR Intents yet, which is why the Quantus leg of a swap is its own child) and the transit legs it only passes value through (BTC, wNEAR, USDC on NEAR, XLM), each with its Intents asset id from GET /v0/tokens. AssetRegistry parses it, refuses a duplicate asset or an Intents id claimed twice, and answers intents_id with SwapError::UnsupportedPair naming the asset for anything it cannot map, rather than guessing. A saved token list pins that every mapped asset resolves to exactly one live id with the same symbol and decimals. Closes #36 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014ftBXYuba8ARhQeF74oUgW
This commit is contained in:
Generated
+1
@@ -6797,6 +6797,7 @@ dependencies = [
|
||||
"blake2",
|
||||
"bs58",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"thiserror 2.0.18",
|
||||
"tokio",
|
||||
"toml 0.8.2",
|
||||
|
||||
@@ -18,3 +18,6 @@ bs58.workspace = true
|
||||
serde.workspace = true
|
||||
toml.workspace = true
|
||||
tokio.workspace = true
|
||||
|
||||
[dev-dependencies]
|
||||
serde_json.workspace = true
|
||||
|
||||
@@ -0,0 +1,261 @@
|
||||
//! The asset registry: our asset ids to display metadata and the
|
||||
//! identifiers other systems use. Shipped as TOML (`assets.toml`) beside
|
||||
//! the chain profiles. The swap module resolves through it and refuses an
|
||||
//! asset it cannot map, naming the asset, rather than guessing an id.
|
||||
|
||||
use serde::Deserialize;
|
||||
use wallet_entities::{AssetId, AssetInfo, AssetKind, ChainId};
|
||||
|
||||
use crate::ports::SwapError;
|
||||
|
||||
const SHIPPED: &str = include_str!("assets.toml");
|
||||
|
||||
/// One registry entry.
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct AssetEntry {
|
||||
pub info: AssetInfo,
|
||||
/// The NEAR Intents asset id, when the asset is on Intents.
|
||||
pub intents: Option<String>,
|
||||
/// A fiat ramp provider's symbol code, when one is chosen.
|
||||
pub ramp: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
struct File {
|
||||
#[serde(default)]
|
||||
asset: Vec<Row>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
struct Row {
|
||||
chain: String,
|
||||
kind: String,
|
||||
contract: Option<String>,
|
||||
pallet_id: Option<u32>,
|
||||
symbol: String,
|
||||
decimals: u8,
|
||||
intents: Option<String>,
|
||||
ramp: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum AssetRegistryError {
|
||||
#[error("assets.toml: {0}")]
|
||||
Parse(String),
|
||||
#[error("assets.toml: {0}")]
|
||||
Invalid(String),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct AssetRegistry {
|
||||
entries: Vec<AssetEntry>,
|
||||
}
|
||||
|
||||
impl AssetRegistry {
|
||||
/// The registry compiled into the binary.
|
||||
pub fn shipped() -> Result<Self, AssetRegistryError> {
|
||||
Self::from_toml(SHIPPED)
|
||||
}
|
||||
|
||||
pub fn from_toml(text: &str) -> Result<Self, AssetRegistryError> {
|
||||
let file: File =
|
||||
toml::from_str(text).map_err(|e| AssetRegistryError::Parse(e.to_string()))?;
|
||||
let mut entries = Vec::with_capacity(file.asset.len());
|
||||
for row in file.asset {
|
||||
let kind = match row.kind.as_str() {
|
||||
"native" => AssetKind::Native,
|
||||
"nep141" => AssetKind::Nep141(row.contract.clone().ok_or_else(|| {
|
||||
AssetRegistryError::Invalid(format!(
|
||||
"{} nep141 asset has no contract",
|
||||
row.symbol
|
||||
))
|
||||
})?),
|
||||
"pallet" => AssetKind::PalletAsset(row.pallet_id.ok_or_else(|| {
|
||||
AssetRegistryError::Invalid(format!(
|
||||
"{} pallet asset has no pallet_id",
|
||||
row.symbol
|
||||
))
|
||||
})?),
|
||||
other => {
|
||||
return Err(AssetRegistryError::Invalid(format!(
|
||||
"{}: unknown kind {other:?}",
|
||||
row.symbol
|
||||
)));
|
||||
}
|
||||
};
|
||||
let id = AssetId {
|
||||
chain: ChainId(row.chain),
|
||||
kind,
|
||||
};
|
||||
if entries.iter().any(|e: &AssetEntry| e.info.id == id) {
|
||||
return Err(AssetRegistryError::Invalid(format!(
|
||||
"{} is listed twice",
|
||||
describe(&id)
|
||||
)));
|
||||
}
|
||||
if let Some(i) = &row.intents
|
||||
&& entries
|
||||
.iter()
|
||||
.any(|e: &AssetEntry| e.intents.as_deref() == Some(i))
|
||||
{
|
||||
return Err(AssetRegistryError::Invalid(format!(
|
||||
"intents id {i} is claimed by two assets"
|
||||
)));
|
||||
}
|
||||
entries.push(AssetEntry {
|
||||
info: AssetInfo {
|
||||
id,
|
||||
symbol: row.symbol,
|
||||
decimals: row.decimals,
|
||||
},
|
||||
intents: row.intents,
|
||||
ramp: row.ramp,
|
||||
});
|
||||
}
|
||||
Ok(Self { entries })
|
||||
}
|
||||
|
||||
pub fn iter(&self) -> impl Iterator<Item = &AssetEntry> {
|
||||
self.entries.iter()
|
||||
}
|
||||
|
||||
pub fn get(&self, id: &AssetId) -> Option<&AssetEntry> {
|
||||
self.entries.iter().find(|e| &e.info.id == id)
|
||||
}
|
||||
|
||||
/// The NEAR Intents id for an asset, or `UnsupportedPair` naming the
|
||||
/// asset: one the registry does not list, or one it lists without an
|
||||
/// Intents id (every post-quantum asset, today).
|
||||
pub fn intents_id(&self, id: &AssetId) -> Result<&str, SwapError> {
|
||||
self.get(id)
|
||||
.and_then(|e| e.intents.as_deref())
|
||||
.ok_or_else(|| SwapError::UnsupportedPair(describe(id)))
|
||||
}
|
||||
|
||||
/// The asset an Intents id belongs to, if any.
|
||||
pub fn by_intents_id(&self, intents: &str) -> Option<&AssetEntry> {
|
||||
self.entries
|
||||
.iter()
|
||||
.find(|e| e.intents.as_deref() == Some(intents))
|
||||
}
|
||||
}
|
||||
|
||||
/// An asset for an error message: `quantus/native`, `near/nep141:wrap.near`.
|
||||
pub fn describe(id: &AssetId) -> String {
|
||||
match &id.kind {
|
||||
AssetKind::Native => format!("{}/native", id.chain.0),
|
||||
AssetKind::PalletAsset(n) => format!("{}/pallet:{n}", id.chain.0),
|
||||
AssetKind::Nep141(c) => format!("{}/nep141:{c}", id.chain.0),
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
/// One row of Intents' `GET /v0/tokens`, as saved in the fixture.
|
||||
#[derive(Debug, Deserialize)]
|
||||
struct IntentsToken {
|
||||
#[serde(rename = "assetId")]
|
||||
asset_id: String,
|
||||
decimals: u8,
|
||||
symbol: String,
|
||||
}
|
||||
|
||||
fn intents_tokens() -> Vec<IntentsToken> {
|
||||
let bytes = std::fs::read(concat!(
|
||||
env!("CARGO_MANIFEST_DIR"),
|
||||
"/tests/fixtures/intents-tokens.json"
|
||||
))
|
||||
.unwrap();
|
||||
serde_json::from_slice(&bytes).unwrap()
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn the_shipped_registry_parses_and_names_what_the_wallet_holds() {
|
||||
let r = AssetRegistry::shipped().unwrap();
|
||||
let qtc = r
|
||||
.get(&AssetId {
|
||||
chain: ChainId("quantus".into()),
|
||||
kind: AssetKind::Native,
|
||||
})
|
||||
.unwrap();
|
||||
assert_eq!((qtc.info.symbol.as_str(), qtc.info.decimals), ("QTC", 12));
|
||||
assert!(
|
||||
qtc.intents.is_none(),
|
||||
"no post-quantum asset is on Intents yet"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn every_mapped_asset_resolves_to_exactly_one_live_intents_id() {
|
||||
let r = AssetRegistry::shipped().unwrap();
|
||||
let live = intents_tokens();
|
||||
for e in r.iter().filter(|e| e.intents.is_some()) {
|
||||
let id = e.intents.as_deref().unwrap();
|
||||
let hits: Vec<_> = live.iter().filter(|t| t.asset_id == id).collect();
|
||||
assert_eq!(
|
||||
hits.len(),
|
||||
1,
|
||||
"{} maps to {id}, seen {} times",
|
||||
e.info.symbol,
|
||||
hits.len()
|
||||
);
|
||||
assert_eq!(
|
||||
hits[0].decimals, e.info.decimals,
|
||||
"{}: decimals",
|
||||
e.info.symbol
|
||||
);
|
||||
assert_eq!(hits[0].symbol, e.info.symbol, "{}: symbol", e.info.symbol);
|
||||
assert_eq!(r.by_intents_id(id).unwrap().info.id, e.info.id);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn an_unmapped_asset_is_refused_by_name() {
|
||||
let r = AssetRegistry::shipped().unwrap();
|
||||
let qtc = AssetId {
|
||||
chain: ChainId("quantus".into()),
|
||||
kind: AssetKind::Native,
|
||||
};
|
||||
assert!(matches!(
|
||||
r.intents_id(&qtc),
|
||||
Err(SwapError::UnsupportedPair(ref a)) if a == "quantus/native"
|
||||
));
|
||||
let unknown = AssetId {
|
||||
chain: ChainId("near".into()),
|
||||
kind: AssetKind::Nep141("nobody.near".into()),
|
||||
};
|
||||
assert!(matches!(
|
||||
r.intents_id(&unknown),
|
||||
Err(SwapError::UnsupportedPair(ref a)) if a == "near/nep141:nobody.near"
|
||||
));
|
||||
assert_eq!(
|
||||
r.intents_id(&AssetId {
|
||||
chain: ChainId("bitcoin".into()),
|
||||
kind: AssetKind::Native
|
||||
})
|
||||
.unwrap(),
|
||||
"nep141:btc.omft.near"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_duplicate_or_half_described_row_is_refused() {
|
||||
let twice = "[[asset]]\nchain='a'\nkind='native'\nsymbol='A'\ndecimals=1\n[[asset]]\nchain='a'\nkind='native'\nsymbol='A'\ndecimals=1\n";
|
||||
assert!(matches!(
|
||||
AssetRegistry::from_toml(twice),
|
||||
Err(AssetRegistryError::Invalid(_))
|
||||
));
|
||||
let no_contract = "[[asset]]\nchain='near'\nkind='nep141'\nsymbol='X'\ndecimals=1\n";
|
||||
assert!(matches!(
|
||||
AssetRegistry::from_toml(no_contract),
|
||||
Err(AssetRegistryError::Invalid(_))
|
||||
));
|
||||
let shared_id = "[[asset]]\nchain='a'\nkind='native'\nsymbol='A'\ndecimals=1\nintents='x'\n[[asset]]\nchain='b'\nkind='native'\nsymbol='B'\ndecimals=1\nintents='x'\n";
|
||||
assert!(matches!(
|
||||
AssetRegistry::from_toml(shared_id),
|
||||
Err(AssetRegistryError::Invalid(_))
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
# The asset registry (blackbeard/wallet #36): every asset the wallet can
|
||||
# hold or move through, with the identifiers other systems know it by.
|
||||
# Shipped with the binary; the swap module resolves through it and refuses
|
||||
# an asset it cannot map rather than guessing.
|
||||
#
|
||||
# chain the wallet's chain id; a chain with a profile for something the
|
||||
# wallet holds, or a transit chain (bitcoin, near, stellar) the
|
||||
# wallet only ever passes value through
|
||||
# kind "native", or "nep141" with a contract, or "pallet" with an id
|
||||
# intents the NEAR Intents asset id from GET /v0/tokens, when it has one.
|
||||
# Post-quantum chains have none yet; that is the whole reason the
|
||||
# Quantus leg of a swap is its own child (#42).
|
||||
# ramp a fiat ramp provider's symbol code, when one is chosen (#44)
|
||||
|
||||
# ---- what the wallet holds ---------------------------------------------------
|
||||
|
||||
[[asset]]
|
||||
chain = "quantus"
|
||||
kind = "native"
|
||||
symbol = "QTC"
|
||||
decimals = 12
|
||||
|
||||
[[asset]]
|
||||
chain = "planck"
|
||||
kind = "native"
|
||||
symbol = "PLK"
|
||||
decimals = 12
|
||||
|
||||
[[asset]]
|
||||
chain = "dev"
|
||||
kind = "native"
|
||||
symbol = "DEV"
|
||||
decimals = 12
|
||||
|
||||
# ---- transit legs: classical chains the wallet never holds keys for ----------
|
||||
|
||||
[[asset]]
|
||||
chain = "bitcoin"
|
||||
kind = "native"
|
||||
symbol = "BTC"
|
||||
decimals = 8
|
||||
intents = "nep141:btc.omft.near"
|
||||
|
||||
[[asset]]
|
||||
chain = "near"
|
||||
kind = "nep141"
|
||||
contract = "wrap.near"
|
||||
symbol = "wNEAR"
|
||||
decimals = 24
|
||||
intents = "nep141:wrap.near"
|
||||
|
||||
[[asset]]
|
||||
chain = "near"
|
||||
kind = "nep141"
|
||||
contract = "17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1"
|
||||
symbol = "USDC"
|
||||
decimals = 6
|
||||
intents = "nep141:17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1"
|
||||
|
||||
[[asset]]
|
||||
chain = "stellar"
|
||||
kind = "native"
|
||||
symbol = "XLM"
|
||||
decimals = 7
|
||||
intents = "nep245:v2_1.omni.hot.tg:1100_111bzQBB5v7AhLyPMDwS8uJgQV24KaAPXtwyVWu2KXbbfQU6NXRCz"
|
||||
@@ -11,6 +11,7 @@
|
||||
//! [`KeyScheme`] takes seed bytes and returns signatures; nothing here hands a
|
||||
//! secret key to anything that could serialise it.
|
||||
|
||||
pub mod assets;
|
||||
pub mod backup;
|
||||
pub mod paths;
|
||||
pub mod ports;
|
||||
|
||||
@@ -293,8 +293,9 @@ pub enum SwapStatus {
|
||||
pub enum SwapError {
|
||||
#[error("provider unavailable: {0}")]
|
||||
Unavailable(String),
|
||||
#[error("unsupported pair")]
|
||||
UnsupportedPair,
|
||||
/// An asset the registry cannot map to the provider, named.
|
||||
#[error("unsupported asset: {0}")]
|
||||
UnsupportedPair(String),
|
||||
#[error("{0}")]
|
||||
Other(String),
|
||||
}
|
||||
|
||||
@@ -0,0 +1,353 @@
|
||||
[
|
||||
{
|
||||
"assetId": "nep141:wrap.near",
|
||||
"decimals": 24,
|
||||
"blockchain": "near",
|
||||
"symbol": "wNEAR",
|
||||
"contractAddress": "wrap.near",
|
||||
"coingeckoId": "wrapped-near"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:eth.bridge.near",
|
||||
"decimals": 18,
|
||||
"blockchain": "near",
|
||||
"symbol": "ETH",
|
||||
"contractAddress": "eth.bridge.near",
|
||||
"coingeckoId": "ethereum"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1",
|
||||
"decimals": 6,
|
||||
"blockchain": "near",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:eth-0xdac17f958d2ee523a2206206994597c13d831ec7.omft.near",
|
||||
"decimals": 6,
|
||||
"blockchain": "eth",
|
||||
"symbol": "USDT",
|
||||
"contractAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
|
||||
"coingeckoId": "tether"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:eth-0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.omft.near",
|
||||
"decimals": 6,
|
||||
"blockchain": "eth",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:eth.omft.near",
|
||||
"decimals": 18,
|
||||
"blockchain": "eth",
|
||||
"symbol": "ETH",
|
||||
"coingeckoId": "ethereum"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:abs.omdep.near",
|
||||
"decimals": 18,
|
||||
"blockchain": "abs",
|
||||
"symbol": "ETH",
|
||||
"coingeckoId": "ethereum"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:btc.omft.near",
|
||||
"decimals": 8,
|
||||
"blockchain": "btc",
|
||||
"symbol": "BTC",
|
||||
"coingeckoId": "bitcoin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:nbtc.bridge.near",
|
||||
"decimals": 8,
|
||||
"blockchain": "near",
|
||||
"symbol": "BTC",
|
||||
"contractAddress": "nbtc.bridge.near",
|
||||
"coingeckoId": "bitcoin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:sol.omft.near",
|
||||
"decimals": 9,
|
||||
"blockchain": "sol",
|
||||
"symbol": "SOL",
|
||||
"coingeckoId": "solana"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:1100_111bzQBB5v7AhLyPMDwS8uJgQV24KaAPXtwyVWu2KXbbfQU6NXRCz",
|
||||
"decimals": 7,
|
||||
"blockchain": "stellar",
|
||||
"symbol": "XLM",
|
||||
"coingeckoId": "stellar"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:tron-d28a265909efecdcee7c5028585214ea0b96f015.omft.near",
|
||||
"decimals": 6,
|
||||
"blockchain": "tron",
|
||||
"symbol": "USDT",
|
||||
"contractAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
|
||||
"coingeckoId": "tether"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:sol-c800a4bd850783ccb82c2b2c7e84175443606352.omft.near",
|
||||
"decimals": 6,
|
||||
"blockchain": "sol",
|
||||
"symbol": "USDT",
|
||||
"contractAddress": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
|
||||
"coingeckoId": "tether"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:usdt.tether-token.near",
|
||||
"decimals": 6,
|
||||
"blockchain": "near",
|
||||
"symbol": "USDT",
|
||||
"contractAddress": "usdt.tether-token.near",
|
||||
"coingeckoId": "tether"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:arb.omft.near",
|
||||
"decimals": 18,
|
||||
"blockchain": "arb",
|
||||
"symbol": "ETH",
|
||||
"coingeckoId": "ethereum"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:arb-0xaf88d065e77c8cc2239327c5edb3a432268e5831.omft.near",
|
||||
"decimals": 6,
|
||||
"blockchain": "arb",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:base.omft.near",
|
||||
"decimals": 18,
|
||||
"blockchain": "base",
|
||||
"symbol": "ETH",
|
||||
"coingeckoId": "ethereum"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:base-0x833589fcd6edb6e08f4c7c32d4f71b54bda02913.omft.near",
|
||||
"decimals": 6,
|
||||
"blockchain": "base",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:sol-5ce3bf3a31af18be40ba30f721101b4341690186.omft.near",
|
||||
"decimals": 6,
|
||||
"blockchain": "sol",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:gnosis-0x2a22f9c3b484c3629090feed35f17ff8f88f76f0.omft.near",
|
||||
"decimals": 6,
|
||||
"blockchain": "gnosis",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "0x2a22f9c3b484c3629090feed35f17ff8f88f76f0",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:gnosis-0x4ecaba5870353805a9f068101a40e0f32ed605c6.omft.near",
|
||||
"decimals": 6,
|
||||
"blockchain": "gnosis",
|
||||
"symbol": "USDT",
|
||||
"contractAddress": "0x4ecaba5870353805a9f068101a40e0f32ed605c6",
|
||||
"coingeckoId": "tether"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:137_qiStmoQJDQPTebaPjgx5VBxZv6L",
|
||||
"decimals": 6,
|
||||
"blockchain": "pol",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:137_3hpYoaLtt8MP1Z2GH1U473DMRKgr",
|
||||
"decimals": 6,
|
||||
"blockchain": "pol",
|
||||
"symbol": "USDT",
|
||||
"contractAddress": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
|
||||
"coingeckoId": "tether"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:56_2w93GqMcEmQFDru84j3HZZWt557r",
|
||||
"decimals": 18,
|
||||
"blockchain": "bsc",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:56_2CMMyVTGZkeyNZTSvS5sarzfir6g",
|
||||
"decimals": 18,
|
||||
"blockchain": "bsc",
|
||||
"symbol": "USDT",
|
||||
"contractAddress": "0x55d398326f99059ff775485246999027b3197955",
|
||||
"coingeckoId": "tether"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:aptos-88cb7619440a914fe6400149a12b443c3ac21d59.omft.near",
|
||||
"decimals": 6,
|
||||
"blockchain": "aptos",
|
||||
"symbol": "USDT",
|
||||
"contractAddress": "0x357b0b74bc833e95a115ad22604854d6b0fca151cecd94111770e5d6ffc9dc2b",
|
||||
"coingeckoId": "tether"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:aptos-34ee497f210c5a511e8d5b53bc56d75b63612bb5.omft.near",
|
||||
"decimals": 6,
|
||||
"blockchain": "aptos",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:10_11111111111111111111",
|
||||
"decimals": 18,
|
||||
"blockchain": "op",
|
||||
"symbol": "ETH",
|
||||
"coingeckoId": "ethereum"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:10_359RPSJVdTxwTJT9TyGssr2rFoWo",
|
||||
"decimals": 6,
|
||||
"blockchain": "op",
|
||||
"symbol": "USDT",
|
||||
"contractAddress": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
|
||||
"coingeckoId": "tether"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:10_A2ewyUyDp6qsue1jqZsGypkCxRJ",
|
||||
"decimals": 6,
|
||||
"blockchain": "op",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:43114_372BeH7ENZieCaabwkbWkBiTTgXp",
|
||||
"decimals": 6,
|
||||
"blockchain": "avax",
|
||||
"symbol": "USDT",
|
||||
"contractAddress": "0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7",
|
||||
"coingeckoId": "tether"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:43114_3atVJH3r5c4GqiSYmg9fECvjc47o",
|
||||
"decimals": 6,
|
||||
"blockchain": "avax",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:1117_3tsdfyziyc7EJbP2aULWSKU4toBaAcN4FdTgfm5W1mC4ouR",
|
||||
"decimals": 6,
|
||||
"blockchain": "ton",
|
||||
"symbol": "USDT",
|
||||
"contractAddress": "EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",
|
||||
"coingeckoId": "tether"
|
||||
},
|
||||
{
|
||||
"assetId": "nep141:sui-c1b81ecaf27933252d31a963bc5e9458f13c18ce.omft.near",
|
||||
"decimals": 6,
|
||||
"blockchain": "sui",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:1100_111bzQBB65GxAPAVoxqmMcgYo5oS3txhqs1Uh1cgahKQUeTUq1TJu",
|
||||
"decimals": 7,
|
||||
"blockchain": "stellar",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:56_SZzgw3HSudhZcTwPWUTi2RJB19t",
|
||||
"decimals": 18,
|
||||
"blockchain": "bsc",
|
||||
"symbol": "NEAR",
|
||||
"contractAddress": "0x1fa4a73a3f0133f0025378af00236f3abdee5d63",
|
||||
"coingeckoId": "near"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:143_2dmLwYWkCQKyTjeUPAsGJuiVLbFx",
|
||||
"decimals": 6,
|
||||
"blockchain": "monad",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "0x754704bc059f8c67012fed69bc8a327a5aafb603",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:196_2dK9kLNR7Ekq7su8FxNGiUW3djTw",
|
||||
"decimals": 6,
|
||||
"blockchain": "xlayer",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "0x74b7f16337b8972027f6196a17a631ac6de26d22",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:534352_11111111111111111111",
|
||||
"decimals": 18,
|
||||
"blockchain": "scroll",
|
||||
"symbol": "ETH",
|
||||
"coingeckoId": "ethereum"
|
||||
},
|
||||
{
|
||||
"assetId": "nep245:v2_1.omni.hot.tg:534352_4RG3Q2wFsMQmd45m5m89RjsLfupA",
|
||||
"decimals": 6,
|
||||
"blockchain": "scroll",
|
||||
"symbol": "USDT",
|
||||
"contractAddress": "0xf55bec9cafdbe8730f096aa55dad6d22d44099df",
|
||||
"coingeckoId": "tether"
|
||||
},
|
||||
{
|
||||
"assetId": "1cs_v1:aptos:aptos-fa:0x0b0b819dcf8d9517ed14195a95adfae6a49bfdb49de33a532ca0aa7ee588e8e0",
|
||||
"decimals": 8,
|
||||
"blockchain": "aptos",
|
||||
"symbol": "BTC",
|
||||
"contractAddress": "0x0b0b819dcf8d9517ed14195a95adfae6a49bfdb49de33a532ca0aa7ee588e8e0",
|
||||
"coingeckoId": "bitcoin"
|
||||
},
|
||||
{
|
||||
"assetId": "1cs_v1:hypercore:hip1:0x6d1e7cde53ba9467b783cb7c530ce054",
|
||||
"decimals": 8,
|
||||
"blockchain": "hypercore",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "0x6d1e7cde53ba9467b783cb7c530ce054",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "1cs_v1:hypercore:erc20:0xb88339CB7199b77E23DB6E890353E22632Ba630f",
|
||||
"decimals": 6,
|
||||
"blockchain": "hypercore",
|
||||
"symbol": "USDC",
|
||||
"contractAddress": "0xb88339CB7199b77E23DB6E890353E22632Ba630f",
|
||||
"coingeckoId": "usd-coin"
|
||||
},
|
||||
{
|
||||
"assetId": "1cs_v1:aptos:aptos-fa:0xb07cf73714a0980fd589e1602ea98fc9c18b8c9c82b828ad3662ee873629be1d",
|
||||
"decimals": 8,
|
||||
"blockchain": "aptos",
|
||||
"symbol": "ETH",
|
||||
"contractAddress": "0xb07cf73714a0980fd589e1602ea98fc9c18b8c9c82b828ad3662ee873629be1d",
|
||||
"coingeckoId": "ethereum"
|
||||
},
|
||||
{
|
||||
"assetId": "1cs_v1:aptos:aptos-fa:0x0d829a23c3a3760e2fed60ca24d83cee8943f7c61859608ae0726fdb2e4f2784",
|
||||
"decimals": 8,
|
||||
"blockchain": "aptos",
|
||||
"symbol": "SOL",
|
||||
"contractAddress": "0x0d829a23c3a3760e2fed60ca24d83cee8943f7c61859608ae0726fdb2e4f2784",
|
||||
"coingeckoId": "solana"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user