@sentio/sdk-bundle 2.61.0-rc.2 → 2.61.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/aptos/builtin/0x1.js +5 -7
- package/lib/aptos/builtin/0x3.js +6 -8
- package/lib/aptos/builtin/0x4.js +6 -8
- package/lib/aptos/builtin/index.js +7 -9
- package/lib/aptos/builtin/index.js.map +1 -1
- package/lib/aptos/ext/index.js +5 -7
- package/lib/aptos/ext/index.js.map +1 -1
- package/lib/aptos/index.js +5 -7
- package/lib/btc/index.js +2 -3
- package/lib/btc/index.js.map +1 -1
- package/lib/{chunk-OD6FL4VS.js → chunk-3U72IHGI.js} +3 -5
- package/lib/{chunk-OD6FL4VS.js.map → chunk-3U72IHGI.js.map} +1 -1
- package/lib/{chunk-4BUIMDJ2.js → chunk-63C2SM23.js} +3 -5
- package/lib/{chunk-4BUIMDJ2.js.map → chunk-63C2SM23.js.map} +1 -1
- package/lib/{chunk-43HP4DQZ.js → chunk-B4NQDXHJ.js} +51 -3
- package/lib/chunk-B4NQDXHJ.js.map +1 -0
- package/lib/{chunk-SA6EVEF3.js → chunk-FSFHO32Q.js} +8 -12
- package/lib/{chunk-SA6EVEF3.js.map → chunk-FSFHO32Q.js.map} +1 -1
- package/lib/{chunk-DHPXVIOI.js → chunk-GXWFPPVN.js} +3 -5
- package/lib/{chunk-DHPXVIOI.js.map → chunk-GXWFPPVN.js.map} +1 -1
- package/lib/{chunk-742S42NO.js → chunk-HFODIGHI.js} +449 -1
- package/lib/chunk-HFODIGHI.js.map +1 -0
- package/lib/{chunk-63RPKHNV.js → chunk-JM77GOBI.js} +5 -5
- package/lib/{chunk-GNJ4FJ6M.js → chunk-NEDO74L4.js} +2 -2
- package/lib/{chunk-AIRBHETL.js → chunk-NF66PTSR.js} +4 -4
- package/lib/{chunk-Y4VWRXPJ.js → chunk-O2FX3ST4.js} +2 -2
- package/lib/{chunk-5LEP7IFP.js → chunk-OUQN675E.js} +16 -16
- package/lib/{chunk-2UBTY7RU.js → chunk-P4MCMQEQ.js} +2 -2
- package/lib/{chunk-LP3F7TLM.js → chunk-PSLT5TLU.js} +554 -3
- package/lib/chunk-PSLT5TLU.js.map +1 -0
- package/lib/{chunk-C33DZMWZ.js → chunk-RNKAUU7M.js} +3 -3
- package/lib/{chunk-KORR4KWH.js → chunk-RQEJ6VYV.js} +1684 -267
- package/lib/chunk-RQEJ6VYV.js.map +1 -0
- package/lib/{chunk-DNXKWX3C.js → chunk-TBCNZKOI.js} +15 -15
- package/lib/{chunk-23ATGE5K.js → chunk-V7GMUFEU.js} +11 -11
- package/lib/{chunk-GQ543QK7.js → chunk-VOZ7XW36.js} +2 -2
- package/lib/{chunk-XBLI6KNQ.js → chunk-W5VWFQZQ.js} +18 -18
- package/lib/{chunk-6RTCDLBK.js → chunk-XLNIFS5I.js} +2 -2
- package/lib/eth/builtin/eacaggregatorproxy.js +2 -3
- package/lib/eth/builtin/erc1155.js +3 -4
- package/lib/eth/builtin/erc20.js +2 -3
- package/lib/eth/builtin/erc721.js +2 -3
- package/lib/eth/builtin/index.js +4 -5
- package/lib/eth/builtin/index.js.map +1 -1
- package/lib/eth/builtin/weth9.js +3 -4
- package/lib/eth/index.js +2 -3
- package/lib/fuel/index.js +2 -3
- package/lib/iota/builtin/0x1.js +11 -6
- package/lib/iota/builtin/0x2.js +12 -7
- package/lib/iota/builtin/0x3.js +13 -8
- package/lib/iota/builtin/index.js +13 -8
- package/lib/iota/builtin/index.js.map +1 -1
- package/lib/iota/ext/index.js +5 -8
- package/lib/iota/ext/index.js.map +1 -1
- package/lib/iota/index.js +10 -5
- package/lib/stark/index.js +2 -4
- package/lib/stark/index.js.map +1 -1
- package/lib/sui/builtin/0x1.js +9 -13
- package/lib/sui/builtin/0x2.js +10 -14
- package/lib/sui/builtin/0x3.js +11 -15
- package/lib/sui/builtin/index.js +11 -15
- package/lib/sui/builtin/index.js.map +1 -1
- package/lib/sui/ext/index.js +5 -7
- package/lib/sui/ext/index.js.map +1 -1
- package/lib/sui/index.js +10 -14
- package/lib/testing/index.js +18 -23
- package/lib/testing/index.js.map +1 -1
- package/lib/utils/index.js +2 -3
- package/package.json +2 -2
- package/lib/chunk-43HP4DQZ.js.map +0 -1
- package/lib/chunk-742S42NO.js.map +0 -1
- package/lib/chunk-KORR4KWH.js.map +0 -1
- package/lib/chunk-LP3F7TLM.js.map +0 -1
- package/lib/chunk-OZTZ5YWM.js +0 -456
- package/lib/chunk-OZTZ5YWM.js.map +0 -1
- package/lib/chunk-P7O6NN6M.js +0 -562
- package/lib/chunk-P7O6NN6M.js.map +0 -1
- package/lib/chunk-XEXUSO2Q.js +0 -1469
- package/lib/chunk-XEXUSO2Q.js.map +0 -1
- package/lib/chunk-Z2CE3JTO.js +0 -56
- package/lib/chunk-Z2CE3JTO.js.map +0 -1
- /package/lib/{chunk-63RPKHNV.js.map → chunk-JM77GOBI.js.map} +0 -0
- /package/lib/{chunk-GNJ4FJ6M.js.map → chunk-NEDO74L4.js.map} +0 -0
- /package/lib/{chunk-AIRBHETL.js.map → chunk-NF66PTSR.js.map} +0 -0
- /package/lib/{chunk-Y4VWRXPJ.js.map → chunk-O2FX3ST4.js.map} +0 -0
- /package/lib/{chunk-5LEP7IFP.js.map → chunk-OUQN675E.js.map} +0 -0
- /package/lib/{chunk-2UBTY7RU.js.map → chunk-P4MCMQEQ.js.map} +0 -0
- /package/lib/{chunk-C33DZMWZ.js.map → chunk-RNKAUU7M.js.map} +0 -0
- /package/lib/{chunk-DNXKWX3C.js.map → chunk-TBCNZKOI.js.map} +0 -0
- /package/lib/{chunk-23ATGE5K.js.map → chunk-V7GMUFEU.js.map} +0 -0
- /package/lib/{chunk-GQ543QK7.js.map → chunk-VOZ7XW36.js.map} +0 -0
- /package/lib/{chunk-XBLI6KNQ.js.map → chunk-W5VWFQZQ.js.map} +0 -0
- /package/lib/{chunk-6RTCDLBK.js.map → chunk-XLNIFS5I.js.map} +0 -0
|
@@ -22,7 +22,17 @@ import {
|
|
|
22
22
|
tuple,
|
|
23
23
|
union,
|
|
24
24
|
unknown
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-P4MCMQEQ.js";
|
|
26
|
+
import {
|
|
27
|
+
fetch as fetch2
|
|
28
|
+
} from "./chunk-HFODIGHI.js";
|
|
29
|
+
import {
|
|
30
|
+
getPriceByType
|
|
31
|
+
} from "./chunk-63C2SM23.js";
|
|
32
|
+
import {
|
|
33
|
+
SPLITTER,
|
|
34
|
+
accountTypeString
|
|
35
|
+
} from "./chunk-N3RF2ACU.js";
|
|
26
36
|
import {
|
|
27
37
|
__name
|
|
28
38
|
} from "./chunk-R7PMHHKJ.js";
|
|
@@ -5150,6 +5160,540 @@ function getRpcEndpoint(network) {
|
|
|
5150
5160
|
__name(getRpcEndpoint, "getRpcEndpoint");
|
|
5151
5161
|
import("node:process").then((p) => p.stdout.write(""));
|
|
5152
5162
|
|
|
5163
|
+
// src/iota/ext/coin.ts
|
|
5164
|
+
import { SuiChainId as SuiChainId2 } from "@sentio/chain";
|
|
5165
|
+
var WHITELISTED_COINS = /* @__PURE__ */ new Map();
|
|
5166
|
+
async function initCoinList() {
|
|
5167
|
+
let list = DEFAULT_LIST.coinlist;
|
|
5168
|
+
try {
|
|
5169
|
+
const resp = await fetch2("https://raw.githubusercontent.com/solflare-wallet/iota-coinlist/master/sui-coinlist.json");
|
|
5170
|
+
list = (await resp.json()).coinlist;
|
|
5171
|
+
} catch (e) {
|
|
5172
|
+
console.warn("Can't not fetch newest coin list, use default list");
|
|
5173
|
+
}
|
|
5174
|
+
setCoinList(list);
|
|
5175
|
+
}
|
|
5176
|
+
__name(initCoinList, "initCoinList");
|
|
5177
|
+
function setCoinList(list) {
|
|
5178
|
+
for (const info of list) {
|
|
5179
|
+
if (info.address.startsWith("0x2::coin::Coin")) {
|
|
5180
|
+
continue;
|
|
5181
|
+
}
|
|
5182
|
+
if (info.network !== "mainnet") {
|
|
5183
|
+
continue;
|
|
5184
|
+
}
|
|
5185
|
+
let bridge = "native";
|
|
5186
|
+
if (info.name.includes("Celer")) {
|
|
5187
|
+
bridge = "Celer";
|
|
5188
|
+
}
|
|
5189
|
+
if (info.name.includes("LayerZero")) {
|
|
5190
|
+
bridge = "LayerZero";
|
|
5191
|
+
}
|
|
5192
|
+
if (info.name.includes("Wormhole")) {
|
|
5193
|
+
bridge = "Wormhole";
|
|
5194
|
+
}
|
|
5195
|
+
WHITELISTED_COINS.set(info.address, {
|
|
5196
|
+
type: info.address,
|
|
5197
|
+
symbol: info.symbol,
|
|
5198
|
+
decimals: info.decimals,
|
|
5199
|
+
bridge
|
|
5200
|
+
});
|
|
5201
|
+
}
|
|
5202
|
+
}
|
|
5203
|
+
__name(setCoinList, "setCoinList");
|
|
5204
|
+
function whitelistCoins() {
|
|
5205
|
+
return WHITELISTED_COINS;
|
|
5206
|
+
}
|
|
5207
|
+
__name(whitelistCoins, "whitelistCoins");
|
|
5208
|
+
function whiteListed(coin) {
|
|
5209
|
+
const [addr, module, type] = coin.split(SPLITTER);
|
|
5210
|
+
const normalized = [accountTypeString(addr), module, type].join(SPLITTER);
|
|
5211
|
+
return WHITELISTED_COINS.has(normalized);
|
|
5212
|
+
}
|
|
5213
|
+
__name(whiteListed, "whiteListed");
|
|
5214
|
+
function getCoinInfo(type) {
|
|
5215
|
+
const r = WHITELISTED_COINS.get(type);
|
|
5216
|
+
if (!r) {
|
|
5217
|
+
const parts = type.split("::");
|
|
5218
|
+
return {
|
|
5219
|
+
type,
|
|
5220
|
+
symbol: parts[2],
|
|
5221
|
+
decimals: 8,
|
|
5222
|
+
bridge: "native"
|
|
5223
|
+
};
|
|
5224
|
+
}
|
|
5225
|
+
return r;
|
|
5226
|
+
}
|
|
5227
|
+
__name(getCoinInfo, "getCoinInfo");
|
|
5228
|
+
var COIN_METADATA_CACHE = /* @__PURE__ */ new Map();
|
|
5229
|
+
async function getCoinInfoWithFallback(type, network) {
|
|
5230
|
+
const r = WHITELISTED_COINS.get(type);
|
|
5231
|
+
if (!r) {
|
|
5232
|
+
network = network || SuiChainId2.IOTA_MAINNET;
|
|
5233
|
+
const key = network + "_" + type;
|
|
5234
|
+
let promise = COIN_METADATA_CACHE.get(key);
|
|
5235
|
+
if (!promise) {
|
|
5236
|
+
const client = getClient2(network);
|
|
5237
|
+
promise = client.getCoinMetadata({ coinType: type });
|
|
5238
|
+
COIN_METADATA_CACHE.set(key, promise);
|
|
5239
|
+
}
|
|
5240
|
+
const meta = await promise;
|
|
5241
|
+
if (meta === null) {
|
|
5242
|
+
throw Error("Coin not existed " + key);
|
|
5243
|
+
}
|
|
5244
|
+
const parts = type.split(SPLITTER);
|
|
5245
|
+
return {
|
|
5246
|
+
type,
|
|
5247
|
+
symbol: meta.symbol,
|
|
5248
|
+
decimals: meta.decimals,
|
|
5249
|
+
bridge: "native"
|
|
5250
|
+
};
|
|
5251
|
+
}
|
|
5252
|
+
return r;
|
|
5253
|
+
}
|
|
5254
|
+
__name(getCoinInfoWithFallback, "getCoinInfoWithFallback");
|
|
5255
|
+
async function getPrice(coinType, timestamp) {
|
|
5256
|
+
if (!whiteListed(coinType)) {
|
|
5257
|
+
return 0;
|
|
5258
|
+
}
|
|
5259
|
+
const date = new Date(timestamp / 1e3);
|
|
5260
|
+
try {
|
|
5261
|
+
return await getPriceByType(SuiChainId2.IOTA_MAINNET, coinType, date) || 0;
|
|
5262
|
+
} catch (error) {
|
|
5263
|
+
console.log(JSON.stringify(error));
|
|
5264
|
+
throw error;
|
|
5265
|
+
}
|
|
5266
|
+
}
|
|
5267
|
+
__name(getPrice, "getPrice");
|
|
5268
|
+
async function calculateValueInUsd(n, coinInfo, timestamp) {
|
|
5269
|
+
const price = await getPrice(coinInfo.type, timestamp);
|
|
5270
|
+
const amount = n.scaleDown(coinInfo.decimals);
|
|
5271
|
+
return amount.multipliedBy(price);
|
|
5272
|
+
}
|
|
5273
|
+
__name(calculateValueInUsd, "calculateValueInUsd");
|
|
5274
|
+
var DEFAULT_LIST = {
|
|
5275
|
+
name: "Iota Coin List",
|
|
5276
|
+
timestamp: "2022-12-01T13:34:30.145Z",
|
|
5277
|
+
logoURI: "https://s2.coinmarketcap.com/static/img/coins/128x128/20947.png",
|
|
5278
|
+
coinlist: [
|
|
5279
|
+
{
|
|
5280
|
+
network: "mainnet",
|
|
5281
|
+
address: "0x2::coin::Coin<0x2::sui::SUI>",
|
|
5282
|
+
symbol: "SUI",
|
|
5283
|
+
name: "Iota Coin",
|
|
5284
|
+
decimals: 9,
|
|
5285
|
+
logoURI: "https://cryptototem.com/wp-content/uploads/2022/08/SUI-logo.jpg",
|
|
5286
|
+
tags: [],
|
|
5287
|
+
extensions: {
|
|
5288
|
+
coingeckoId: "iota"
|
|
5289
|
+
}
|
|
5290
|
+
},
|
|
5291
|
+
{
|
|
5292
|
+
network: "testnet",
|
|
5293
|
+
address: "0x2::coin::Coin<0x2::sui::SUI>",
|
|
5294
|
+
symbol: "SUI",
|
|
5295
|
+
name: "Iota Coin",
|
|
5296
|
+
decimals: 9,
|
|
5297
|
+
logoURI: "https://cryptototem.com/wp-content/uploads/2022/08/SUI-logo.jpg",
|
|
5298
|
+
tags: [],
|
|
5299
|
+
extensions: {
|
|
5300
|
+
coingeckoId: "iota"
|
|
5301
|
+
}
|
|
5302
|
+
},
|
|
5303
|
+
{
|
|
5304
|
+
network: "devnet",
|
|
5305
|
+
address: "0x2::coin::Coin<0x2::sui::SUI>",
|
|
5306
|
+
symbol: "SUI",
|
|
5307
|
+
name: "Iota Coin",
|
|
5308
|
+
decimals: 9,
|
|
5309
|
+
logoURI: "https://cryptototem.com/wp-content/uploads/2022/08/SUI-logo.jpg",
|
|
5310
|
+
tags: [],
|
|
5311
|
+
extensions: {
|
|
5312
|
+
coingeckoId: "iota"
|
|
5313
|
+
}
|
|
5314
|
+
},
|
|
5315
|
+
{
|
|
5316
|
+
network: "mainnet",
|
|
5317
|
+
address: "0x2::sui::SUI",
|
|
5318
|
+
symbol: "SUI",
|
|
5319
|
+
name: "Iota Coin",
|
|
5320
|
+
decimals: 9,
|
|
5321
|
+
logoURI: "https://cryptototem.com/wp-content/uploads/2022/08/SUI-logo.jpg",
|
|
5322
|
+
tags: [],
|
|
5323
|
+
extensions: {
|
|
5324
|
+
coingeckoId: "iota"
|
|
5325
|
+
}
|
|
5326
|
+
},
|
|
5327
|
+
{
|
|
5328
|
+
network: "testnet",
|
|
5329
|
+
address: "0x2::sui::SUI",
|
|
5330
|
+
symbol: "SUI",
|
|
5331
|
+
name: "Iota Coin",
|
|
5332
|
+
decimals: 9,
|
|
5333
|
+
logoURI: "https://cryptototem.com/wp-content/uploads/2022/08/SUI-logo.jpg",
|
|
5334
|
+
tags: [],
|
|
5335
|
+
extensions: {
|
|
5336
|
+
coingeckoId: "iota"
|
|
5337
|
+
}
|
|
5338
|
+
},
|
|
5339
|
+
{
|
|
5340
|
+
network: "devnet",
|
|
5341
|
+
address: "0x2::sui::SUI",
|
|
5342
|
+
symbol: "SUI",
|
|
5343
|
+
name: "Iota Coin",
|
|
5344
|
+
decimals: 9,
|
|
5345
|
+
logoURI: "https://cryptototem.com/wp-content/uploads/2022/08/SUI-logo.jpg",
|
|
5346
|
+
tags: [],
|
|
5347
|
+
extensions: {
|
|
5348
|
+
coingeckoId: "iota"
|
|
5349
|
+
}
|
|
5350
|
+
},
|
|
5351
|
+
{
|
|
5352
|
+
network: "testnet",
|
|
5353
|
+
address: "0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestTEST",
|
|
5354
|
+
symbol: "TEST",
|
|
5355
|
+
name: "Test Token",
|
|
5356
|
+
logoURI: "https://suiswap.app/images/token/suiswap-test.svg",
|
|
5357
|
+
tags: [],
|
|
5358
|
+
decimals: 8,
|
|
5359
|
+
extensions: {}
|
|
5360
|
+
},
|
|
5361
|
+
{
|
|
5362
|
+
network: "testnet",
|
|
5363
|
+
address: "0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestUSDT",
|
|
5364
|
+
symbol: "USDT",
|
|
5365
|
+
name: "Tether",
|
|
5366
|
+
logoURI: "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/BQcdHdAQW1hczDbBi9hiegXAR7A98Q9jx3X3iBBBDiq4/logo.png",
|
|
5367
|
+
tags: [],
|
|
5368
|
+
decimals: 8,
|
|
5369
|
+
extensions: {
|
|
5370
|
+
coingeckoId: "tether"
|
|
5371
|
+
}
|
|
5372
|
+
},
|
|
5373
|
+
{
|
|
5374
|
+
network: "testnet",
|
|
5375
|
+
address: "0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestUSDC",
|
|
5376
|
+
symbol: "USDC",
|
|
5377
|
+
name: "USD Coin",
|
|
5378
|
+
logoURI: "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/logo.png",
|
|
5379
|
+
decimals: 8,
|
|
5380
|
+
tags: [],
|
|
5381
|
+
extensions: {
|
|
5382
|
+
coingeckoId: "usd-coin"
|
|
5383
|
+
}
|
|
5384
|
+
},
|
|
5385
|
+
{
|
|
5386
|
+
network: "testnet",
|
|
5387
|
+
address: "0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestSOL",
|
|
5388
|
+
symbol: "SOL",
|
|
5389
|
+
name: "Solana",
|
|
5390
|
+
logoURI: "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/So11111111111111111111111111111111111111112/logo.png",
|
|
5391
|
+
decimals: 8,
|
|
5392
|
+
extensions: {
|
|
5393
|
+
coingeckoId: "solana"
|
|
5394
|
+
}
|
|
5395
|
+
},
|
|
5396
|
+
{
|
|
5397
|
+
network: "testnet",
|
|
5398
|
+
address: "0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestBTC",
|
|
5399
|
+
symbol: "BTC",
|
|
5400
|
+
name: "Bitcoin",
|
|
5401
|
+
logoURI: "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/9n4nbM75f5Ui33ZbPYXn59EwSgE8CGsHtAeTH5YFeJ9E/logo.png",
|
|
5402
|
+
decimals: 8,
|
|
5403
|
+
tags: [],
|
|
5404
|
+
extensions: {
|
|
5405
|
+
coingeckoId: "bitcoin"
|
|
5406
|
+
}
|
|
5407
|
+
},
|
|
5408
|
+
{
|
|
5409
|
+
network: "testnet",
|
|
5410
|
+
address: "0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestDAI",
|
|
5411
|
+
symbol: "DAI",
|
|
5412
|
+
name: "DAI",
|
|
5413
|
+
logoURI: "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/FYpdBuyAHSbdaAyD1sKkxyLWbAP8uUW9h6uvdhK74ij1/logo.png",
|
|
5414
|
+
decimals: 8,
|
|
5415
|
+
tags: [],
|
|
5416
|
+
extensions: {
|
|
5417
|
+
coingeckoId: "dai"
|
|
5418
|
+
}
|
|
5419
|
+
},
|
|
5420
|
+
{
|
|
5421
|
+
network: "testnet",
|
|
5422
|
+
address: "0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestBNB",
|
|
5423
|
+
symbol: "BNB",
|
|
5424
|
+
name: "BNB",
|
|
5425
|
+
logoURI: "https://assets.coingecko.com/coins/images/825/large/bnb-icon2_2x.png",
|
|
5426
|
+
decimals: 8,
|
|
5427
|
+
tags: [],
|
|
5428
|
+
extensions: {
|
|
5429
|
+
coingeckoId: "binancecoin"
|
|
5430
|
+
}
|
|
5431
|
+
},
|
|
5432
|
+
{
|
|
5433
|
+
network: "testnet",
|
|
5434
|
+
address: "0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestETH",
|
|
5435
|
+
symbol: "ETH",
|
|
5436
|
+
name: "Ethereum",
|
|
5437
|
+
logoURI: "https://assets.coingecko.com/coins/images/279/large/ethereum.png",
|
|
5438
|
+
decimals: 8,
|
|
5439
|
+
tags: [],
|
|
5440
|
+
extensions: {
|
|
5441
|
+
coingeckoId: "ethereum"
|
|
5442
|
+
}
|
|
5443
|
+
},
|
|
5444
|
+
{
|
|
5445
|
+
network: "testnet",
|
|
5446
|
+
address: "0x31b14985adb91360ed90a5786cb0956c83e7f275a8ae6123f38adab9d2b792b1::usdc::USDC",
|
|
5447
|
+
symbol: "USDC",
|
|
5448
|
+
name: "USD Coin",
|
|
5449
|
+
logoURI: "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/logo.png",
|
|
5450
|
+
decimals: 8,
|
|
5451
|
+
tags: [],
|
|
5452
|
+
extensions: {
|
|
5453
|
+
coingeckoId: "usd-coin"
|
|
5454
|
+
}
|
|
5455
|
+
},
|
|
5456
|
+
{
|
|
5457
|
+
network: "devnet",
|
|
5458
|
+
address: "0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestTEST",
|
|
5459
|
+
symbol: "TEST",
|
|
5460
|
+
name: "Test Token",
|
|
5461
|
+
logoURI: "https://suiswap.app/images/token/suiswap-test.svg",
|
|
5462
|
+
tags: [],
|
|
5463
|
+
decimals: 8,
|
|
5464
|
+
extensions: {}
|
|
5465
|
+
},
|
|
5466
|
+
{
|
|
5467
|
+
network: "devnet",
|
|
5468
|
+
address: "0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestUSDT",
|
|
5469
|
+
symbol: "USDT",
|
|
5470
|
+
name: "Tether",
|
|
5471
|
+
logoURI: "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/BQcdHdAQW1hczDbBi9hiegXAR7A98Q9jx3X3iBBBDiq4/logo.png",
|
|
5472
|
+
tags: [],
|
|
5473
|
+
decimals: 8,
|
|
5474
|
+
extensions: {
|
|
5475
|
+
coingeckoId: "tether"
|
|
5476
|
+
}
|
|
5477
|
+
},
|
|
5478
|
+
{
|
|
5479
|
+
network: "devnet",
|
|
5480
|
+
address: "0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestUSDC",
|
|
5481
|
+
symbol: "USDC",
|
|
5482
|
+
name: "USD Coin",
|
|
5483
|
+
logoURI: "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/logo.png",
|
|
5484
|
+
decimals: 8,
|
|
5485
|
+
tags: [],
|
|
5486
|
+
extensions: {
|
|
5487
|
+
coingeckoId: "usd-coin"
|
|
5488
|
+
}
|
|
5489
|
+
},
|
|
5490
|
+
{
|
|
5491
|
+
network: "devnet",
|
|
5492
|
+
address: "0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestSOL",
|
|
5493
|
+
symbol: "SOL",
|
|
5494
|
+
name: "Solana",
|
|
5495
|
+
logoURI: "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/So11111111111111111111111111111111111111112/logo.png",
|
|
5496
|
+
decimals: 8,
|
|
5497
|
+
extensions: {
|
|
5498
|
+
coingeckoId: "solana"
|
|
5499
|
+
}
|
|
5500
|
+
},
|
|
5501
|
+
{
|
|
5502
|
+
network: "devnet",
|
|
5503
|
+
address: "0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestBTC",
|
|
5504
|
+
symbol: "BTC",
|
|
5505
|
+
name: "Bitcoin",
|
|
5506
|
+
logoURI: "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/9n4nbM75f5Ui33ZbPYXn59EwSgE8CGsHtAeTH5YFeJ9E/logo.png",
|
|
5507
|
+
decimals: 8,
|
|
5508
|
+
tags: [],
|
|
5509
|
+
extensions: {
|
|
5510
|
+
coingeckoId: "bitcoin"
|
|
5511
|
+
}
|
|
5512
|
+
},
|
|
5513
|
+
{
|
|
5514
|
+
network: "devnet",
|
|
5515
|
+
address: "0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestDAI",
|
|
5516
|
+
symbol: "DAI",
|
|
5517
|
+
name: "DAI",
|
|
5518
|
+
logoURI: "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/FYpdBuyAHSbdaAyD1sKkxyLWbAP8uUW9h6uvdhK74ij1/logo.png",
|
|
5519
|
+
decimals: 8,
|
|
5520
|
+
tags: [],
|
|
5521
|
+
extensions: {
|
|
5522
|
+
coingeckoId: "dai"
|
|
5523
|
+
}
|
|
5524
|
+
},
|
|
5525
|
+
{
|
|
5526
|
+
network: "devnet",
|
|
5527
|
+
address: "0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestBNB",
|
|
5528
|
+
symbol: "BNB",
|
|
5529
|
+
name: "BNB",
|
|
5530
|
+
logoURI: "https://assets.coingecko.com/coins/images/825/large/bnb-icon2_2x.png",
|
|
5531
|
+
decimals: 8,
|
|
5532
|
+
tags: [],
|
|
5533
|
+
extensions: {
|
|
5534
|
+
coingeckoId: "binancecoin"
|
|
5535
|
+
}
|
|
5536
|
+
},
|
|
5537
|
+
{
|
|
5538
|
+
network: "devnet",
|
|
5539
|
+
address: "0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestETH",
|
|
5540
|
+
symbol: "ETH",
|
|
5541
|
+
name: "Ethereum",
|
|
5542
|
+
logoURI: "https://assets.coingecko.com/coins/images/279/large/ethereum.png",
|
|
5543
|
+
decimals: 8,
|
|
5544
|
+
tags: [],
|
|
5545
|
+
extensions: {
|
|
5546
|
+
coingeckoId: "ethereum"
|
|
5547
|
+
}
|
|
5548
|
+
},
|
|
5549
|
+
{
|
|
5550
|
+
network: "mainnet",
|
|
5551
|
+
address: "0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",
|
|
5552
|
+
symbol: "wETH",
|
|
5553
|
+
name: "Wrapped Ethereum (Wormhole)",
|
|
5554
|
+
decimals: 8,
|
|
5555
|
+
logoURI: "https://assets.coingecko.com/coins/images/279/large/ethereum.png",
|
|
5556
|
+
tags: [],
|
|
5557
|
+
extensions: {
|
|
5558
|
+
coingeckoId: "ethereum"
|
|
5559
|
+
}
|
|
5560
|
+
},
|
|
5561
|
+
{
|
|
5562
|
+
network: "mainnet",
|
|
5563
|
+
address: "0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",
|
|
5564
|
+
symbol: "wUSDT",
|
|
5565
|
+
name: "Tether (Wormhole)",
|
|
5566
|
+
decimals: 6,
|
|
5567
|
+
logoURI: "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/BQcdHdAQW1hczDbBi9hiegXAR7A98Q9jx3X3iBBBDiq4/logo.png",
|
|
5568
|
+
tags: [],
|
|
5569
|
+
extensions: {
|
|
5570
|
+
coingeckoId: "tether"
|
|
5571
|
+
}
|
|
5572
|
+
},
|
|
5573
|
+
{
|
|
5574
|
+
network: "mainnet",
|
|
5575
|
+
address: "0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",
|
|
5576
|
+
symbol: "wUSDC",
|
|
5577
|
+
name: "USD Coin (Wormhole)",
|
|
5578
|
+
decimals: 6,
|
|
5579
|
+
logoURI: "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/logo.png",
|
|
5580
|
+
tags: [],
|
|
5581
|
+
extensions: {
|
|
5582
|
+
coingeckoId: "usd-coin"
|
|
5583
|
+
}
|
|
5584
|
+
},
|
|
5585
|
+
{
|
|
5586
|
+
network: "mainnet",
|
|
5587
|
+
address: "0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",
|
|
5588
|
+
symbol: "wCELO",
|
|
5589
|
+
name: "Celo (Wormhole)",
|
|
5590
|
+
decimals: 8,
|
|
5591
|
+
logoURI: "https://assets.coingecko.com/coins/images/11090/large/InjXBNx9_400x400.jpg",
|
|
5592
|
+
tags: [],
|
|
5593
|
+
extensions: {
|
|
5594
|
+
coingeckoId: "celo"
|
|
5595
|
+
}
|
|
5596
|
+
},
|
|
5597
|
+
{
|
|
5598
|
+
network: "mainnet",
|
|
5599
|
+
address: "0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",
|
|
5600
|
+
symbol: "wMATIC",
|
|
5601
|
+
name: "Wrapped Matic (Wormhole)",
|
|
5602
|
+
decimals: 8,
|
|
5603
|
+
logoURI: "https://assets.coingecko.com/coins/images/4713/large/matic-token-icon.png",
|
|
5604
|
+
tags: [],
|
|
5605
|
+
extensions: {
|
|
5606
|
+
coingeckoId: "matic-network"
|
|
5607
|
+
}
|
|
5608
|
+
},
|
|
5609
|
+
{
|
|
5610
|
+
network: "mainnet",
|
|
5611
|
+
address: "0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",
|
|
5612
|
+
symbol: "wBNB",
|
|
5613
|
+
name: "Wrapped BNB (Wormhole)",
|
|
5614
|
+
decimals: 8,
|
|
5615
|
+
logoURI: "https://assets.coingecko.com/coins/images/825/large/bnb-icon2_2x.png",
|
|
5616
|
+
tags: [],
|
|
5617
|
+
extensions: {
|
|
5618
|
+
coingeckoId: "binancecoin"
|
|
5619
|
+
}
|
|
5620
|
+
},
|
|
5621
|
+
{
|
|
5622
|
+
network: "mainnet",
|
|
5623
|
+
address: "0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",
|
|
5624
|
+
symbol: "wBTC",
|
|
5625
|
+
name: "Wrapped Bitcoin (Wormhole)",
|
|
5626
|
+
decimals: 8,
|
|
5627
|
+
logoURI: "https://assets.coingecko.com/coins/images/1/large/bitcoin.png",
|
|
5628
|
+
tags: [],
|
|
5629
|
+
extensions: {
|
|
5630
|
+
coingeckoId: "bitcoin"
|
|
5631
|
+
}
|
|
5632
|
+
},
|
|
5633
|
+
{
|
|
5634
|
+
network: "mainnet",
|
|
5635
|
+
address: "0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",
|
|
5636
|
+
symbol: "wAVAX",
|
|
5637
|
+
name: "Wrapped AVAX (Wormhole)",
|
|
5638
|
+
decimals: 8,
|
|
5639
|
+
logoURI: "https://assets.coingecko.com/coins/images/12559/large/Avalanche_Circle_RedWhite_Trans.png",
|
|
5640
|
+
tags: [],
|
|
5641
|
+
extensions: {
|
|
5642
|
+
coingeckoId: "avalanche-2"
|
|
5643
|
+
}
|
|
5644
|
+
},
|
|
5645
|
+
{
|
|
5646
|
+
network: "mainnet",
|
|
5647
|
+
address: "0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",
|
|
5648
|
+
symbol: "wFTM",
|
|
5649
|
+
name: "Wrapped Fantom (Wormhole)",
|
|
5650
|
+
decimals: 8,
|
|
5651
|
+
logoURI: "https://assets.coingecko.com/coins/images/4001/large/Fantom_round.png",
|
|
5652
|
+
tags: [],
|
|
5653
|
+
extensions: {
|
|
5654
|
+
coingeckoId: "fantom"
|
|
5655
|
+
}
|
|
5656
|
+
},
|
|
5657
|
+
{
|
|
5658
|
+
network: "mainnet",
|
|
5659
|
+
address: "0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",
|
|
5660
|
+
symbol: "wGLMR",
|
|
5661
|
+
name: "Wrapped GLMR (Wormhole)",
|
|
5662
|
+
decimals: 8,
|
|
5663
|
+
logoURI: "https://assets.coingecko.com/coins/images/22459/large/glmr.png",
|
|
5664
|
+
tags: [],
|
|
5665
|
+
extensions: {
|
|
5666
|
+
coingeckoId: "moonbeam"
|
|
5667
|
+
}
|
|
5668
|
+
},
|
|
5669
|
+
{
|
|
5670
|
+
network: "mainnet",
|
|
5671
|
+
address: "0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",
|
|
5672
|
+
symbol: "wSOL",
|
|
5673
|
+
name: "Wrapped Solana (Wormhole)",
|
|
5674
|
+
decimals: 8,
|
|
5675
|
+
logoURI: "https://assets.coingecko.com/coins/images/4128/large/solana.png",
|
|
5676
|
+
tags: [],
|
|
5677
|
+
extensions: {
|
|
5678
|
+
coingeckoId: "solana"
|
|
5679
|
+
}
|
|
5680
|
+
},
|
|
5681
|
+
{
|
|
5682
|
+
network: "mainnet",
|
|
5683
|
+
address: "0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",
|
|
5684
|
+
symbol: "wUSDCsol",
|
|
5685
|
+
name: "USD Coin Solana (Wormhole)",
|
|
5686
|
+
decimals: 6,
|
|
5687
|
+
logoURI: "https://assets.coingecko.com/coins/images/6319/large/USD_Coin_icon.png",
|
|
5688
|
+
tags: [],
|
|
5689
|
+
extensions: {
|
|
5690
|
+
coingeckoId: "usd-coin"
|
|
5691
|
+
}
|
|
5692
|
+
}
|
|
5693
|
+
]
|
|
5694
|
+
};
|
|
5695
|
+
import("node:process").then((p) => p.stdout.write(""));
|
|
5696
|
+
|
|
5153
5697
|
export {
|
|
5154
5698
|
normalizeIotaAddress,
|
|
5155
5699
|
normalizeIotaObjectId,
|
|
@@ -5158,6 +5702,13 @@ export {
|
|
|
5158
5702
|
IotaClient,
|
|
5159
5703
|
IotaNetwork,
|
|
5160
5704
|
getClient2 as getClient,
|
|
5161
|
-
getRpcEndpoint
|
|
5705
|
+
getRpcEndpoint,
|
|
5706
|
+
initCoinList,
|
|
5707
|
+
whitelistCoins,
|
|
5708
|
+
whiteListed,
|
|
5709
|
+
getCoinInfo,
|
|
5710
|
+
getCoinInfoWithFallback,
|
|
5711
|
+
getPrice,
|
|
5712
|
+
calculateValueInUsd
|
|
5162
5713
|
};
|
|
5163
|
-
//# sourceMappingURL=chunk-
|
|
5714
|
+
//# sourceMappingURL=chunk-PSLT5TLU.js.map
|