@sentio/sdk-bundle 2.57.7 → 2.57.8-rc.1

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.
Files changed (74) hide show
  1. package/lib/aptos/builtin/0x1.js +1 -1
  2. package/lib/aptos/builtin/0x3.js +1 -1
  3. package/lib/aptos/builtin/0x4.js +1 -1
  4. package/lib/aptos/builtin/index.js +1 -1
  5. package/lib/aptos/builtin/index.js.map +1 -1
  6. package/lib/aptos/ext/index.js +1 -1
  7. package/lib/aptos/ext/index.js.map +1 -1
  8. package/lib/aptos/index.js +1 -1
  9. package/lib/chunk-5AMCSNP7.js +7 -0
  10. package/lib/{chunk-WKFPJMXF.js.map → chunk-5AMCSNP7.js.map} +1 -1
  11. package/lib/{chunk-DWDJMSCJ.js → chunk-5F7WBLI4.js} +2 -2
  12. package/lib/{chunk-GXO7DCHZ.js → chunk-6CDEUHBK.js} +2 -2
  13. package/lib/{chunk-GXO7DCHZ.js.map → chunk-6CDEUHBK.js.map} +1 -1
  14. package/lib/chunk-AVNDNZMN.js +32 -0
  15. package/lib/{chunk-4XU3L3GP.js.map → chunk-AVNDNZMN.js.map} +1 -1
  16. package/lib/{chunk-AEDJCR64.js → chunk-B3F4WQRS.js} +2 -2
  17. package/lib/chunk-GTB5ZIMY.js +3 -0
  18. package/lib/{chunk-NRVSYA3B.js.map → chunk-GTB5ZIMY.js.map} +1 -1
  19. package/lib/{chunk-DJGKCH6U.js → chunk-GV7ZOJAQ.js} +2 -2
  20. package/lib/{chunk-DJGKCH6U.js.map → chunk-GV7ZOJAQ.js.map} +1 -1
  21. package/lib/{chunk-E4QNFY3U.js → chunk-LBW4DXQE.js} +2 -2
  22. package/lib/{chunk-LQC7CDVY.js → chunk-LWWZWZ4F.js} +2 -2
  23. package/lib/chunk-MPOOAJHZ.js +6 -0
  24. package/lib/{chunk-VJVZRE4N.js.map → chunk-MPOOAJHZ.js.map} +1 -1
  25. package/lib/{chunk-6NEMCBBH.js → chunk-OZNKQEYB.js} +2 -2
  26. package/lib/{chunk-6NEMCBBH.js.map → chunk-OZNKQEYB.js.map} +1 -1
  27. package/lib/{chunk-53EDEVTE.js → chunk-Q2FNRM5C.js} +2 -2
  28. package/lib/{chunk-53EDEVTE.js.map → chunk-Q2FNRM5C.js.map} +1 -1
  29. package/lib/{chunk-5HKPVFEF.js → chunk-QP5BWTK3.js} +2 -2
  30. package/lib/{chunk-6JYMR42Q.js → chunk-TJSPP6SM.js} +15 -15
  31. package/lib/{chunk-6JYMR42Q.js.map → chunk-TJSPP6SM.js.map} +1 -1
  32. package/lib/chunk-WO6IV4SO.js +499 -0
  33. package/lib/{chunk-WE2XH6H5.js.map → chunk-WO6IV4SO.js.map} +1 -1
  34. package/lib/chunk-WU52LDUL.js +6 -0
  35. package/lib/{chunk-UXGHKVAC.js.map → chunk-WU52LDUL.js.map} +1 -1
  36. package/lib/eth/builtin/eacaggregatorproxy.js +1 -1
  37. package/lib/eth/builtin/erc1155.js +1 -1
  38. package/lib/eth/builtin/erc20.js +1 -1
  39. package/lib/eth/builtin/erc721.js +1 -1
  40. package/lib/eth/builtin/index.js +1 -1
  41. package/lib/eth/builtin/index.js.map +1 -1
  42. package/lib/eth/builtin/weth9.js +1 -1
  43. package/lib/eth/index.js +1 -1
  44. package/lib/fuel/index.js +1 -1
  45. package/lib/solana/builtin/index.js +1 -1
  46. package/lib/solana/builtin/index.js.map +1 -1
  47. package/lib/solana/index.js +1 -1
  48. package/lib/stark/index.js +14 -14
  49. package/lib/stark/index.js.map +1 -1
  50. package/lib/sui/builtin/0x1.js +1 -1
  51. package/lib/sui/builtin/0x2.js +1 -1
  52. package/lib/sui/builtin/0x3.js +1 -1
  53. package/lib/sui/builtin/index.js +1 -1
  54. package/lib/sui/builtin/index.js.map +1 -1
  55. package/lib/sui/ext/index.js +1 -1
  56. package/lib/sui/ext/index.js.map +1 -1
  57. package/lib/sui/index.js +1 -1
  58. package/lib/testing/index.js +15 -15
  59. package/lib/testing/index.js.map +1 -1
  60. package/lib/utils/index.js +1 -1
  61. package/package.json +3 -2
  62. package/lib/chunk-4XU3L3GP.js +0 -32
  63. package/lib/chunk-NLNLOORO.js +0 -3
  64. package/lib/chunk-NLNLOORO.js.map +0 -1
  65. package/lib/chunk-NRVSYA3B.js +0 -3
  66. package/lib/chunk-UXGHKVAC.js +0 -6
  67. package/lib/chunk-VJVZRE4N.js +0 -6
  68. package/lib/chunk-WE2XH6H5.js +0 -499
  69. package/lib/chunk-WKFPJMXF.js +0 -7
  70. /package/lib/{chunk-DWDJMSCJ.js.map → chunk-5F7WBLI4.js.map} +0 -0
  71. /package/lib/{chunk-AEDJCR64.js.map → chunk-B3F4WQRS.js.map} +0 -0
  72. /package/lib/{chunk-E4QNFY3U.js.map → chunk-LBW4DXQE.js.map} +0 -0
  73. /package/lib/{chunk-LQC7CDVY.js.map → chunk-LWWZWZ4F.js.map} +0 -0
  74. /package/lib/{chunk-5HKPVFEF.js.map → chunk-QP5BWTK3.js.map} +0 -0
@@ -1,3 +0,0 @@
1
- import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{a as l,d as x}from"./chunk-G5BIPHMS.js";var k=x(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});d.getChainType=d.ChainId=d.BTCChainId=d.StarknetChainId=d.CosmosChainId=d.FuelChainId=d.SolanaChainId=d.SuiChainId=d.AptosChainId=d.EthChainId=d.ChainType=void 0;var A;(function(n){n.SOLANA="solana",n.SUI="sui",n.APTOS="aptos",n.ETH="evm",n.BTC="btc"})(A||(d.ChainType=A={}));var I;(function(n){n.ETHEREUM="1",n.OPTIMISM="10",n.CRONOS="25",n.BSC="56",n.BSC_TESTNET="97",n.POLYGON="137",n.MANTA_PACIFIC="169",n.XLAYER_TESTNET="195",n.XLAYER_MAINNET="196",n.OP_BNB_MAINNET="204",n.SONIC_MAINNET="146",n.SONIC_TESTNET="57054",n.B2_MAINNET="223",n.FANTOM="250",n.FRAXTAL="252",n.KUCOIN="321",n.CRONOS_ZKEVM="388",n.ZKSYNC_ERA="324",n.CRONOS_TESTNET="338",n.ASTAR="592",n.DERIVE="957",n.POLYGON_ZKEVM="1101",n.CONFLUX="1030",n.METIS="1088",n.MOONBEAM="1284",n.UNICHAIN_SEPOLIA="1301",n.SEI="1329",n.SONEIUM_TESTNET="1946",n.SONEIUM_MAINNET="1868",n.SWELL_TESTNET="1924",n.SWELL_MAINNET="1923",n.TAC_TESTNET="2390",n.KARAK="2410",n.BEVM="11501",n.MERLIN_MAINNET="4200",n.MANTLE="5000",n.BASE="8453",n.MONAD_TESTNET="10143",n.HOLESKY="17000",n.ASTAR_ZKEVM="3776",n.MODE="34443",n.ARBITRUM="42161",n.AVALANCHE="43114",n.ZIRCUIT_TESTNET="48899",n.ZIRCUIT_MAINNET="48900",n.BOB="60808",n.LINEA="59144",n.BERACHAIN="80094",n.BLAST="81457",n.CHILIZ="88888",n.TAIKO="167000",n.TAIKO_TESTNET="167008",n.BITLAYER="200901",n.SCROLL="534352",n.ZKLINK_NOVA="810180",n.SEPOLIA="11155111",n.CORN_MAIZENET="21000000",n.AURORA="1313161554",n.BLAST_SEPOLIA="168587773"})(I||(d.EthChainId=I={}));var C;(function(n){n.APTOS_MAINNET="aptos_mainnet",n.APTOS_TESTNET="aptos_testnet",n.APTOS_MOVEMENT_TESTNET="aptos_movement_testnet",n.APTOS_MOVEMENT_MAINNET="aptos_movement_mainnet"})(C||(d.AptosChainId=C={}));var S;(function(n){n.SUI_MAINNET="sui_mainnet",n.SUI_TESTNET="sui_testnet"})(S||(d.SuiChainId=S={}));var m;(function(n){n.SOLANA_MAINNET="sol_mainnet",n.SOLANA_DEVNET="sol_devnet",n.SOLANA_TESTNET="sol_testnet",n.SOLANA_PYTH="sol_pyth"})(m||(d.SolanaChainId=m={}));var N;(function(n){n.FUEL_MAINNET="fuel_mainnet",n.FUEL_TESTNET="fuel_testnet"})(N||(d.FuelChainId=N={}));var f;(function(n){n.INJECTIVE_MAINNET="injective_mainnet",n.INJECTIVE_TESTNET="injective_testnet"})(f||(d.CosmosChainId=f={}));var u;(function(n){n.STARKNET_MAINNET="starknet_mainnet",n.STARKNET_SEPOLIA="starknet_sepolia"})(u||(d.StarknetChainId=u={}));var b;(function(n){n.BTC_MAINNET="btc_mainnet",n.BTC_TESTNET="btc_testnet"})(b||(d.BTCChainId=b={}));d.ChainId={...I,...C,...S,...m,...N,...f,...u,...b};function y(n){let o=String(n).toLowerCase();return o.startsWith("sol")?A.SOLANA:o.startsWith("sui")?A.SUI:o.startsWith("apt")?A.APTOS:o.startsWith("btc")?A.BTC:A.ETH}l(y,"getChainType");d.getChainType=y});var M=x(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.getChainBlockscoutUrl=p.getChainExternalUrl=p.SolanaChainInfo=p.AptosChainInfo=p.BTCChainInfo=p.EthChainInfo=p.EthVariation=p.ExplorerApiType=void 0;var e=k(),t;(function(n){n.ETHERSCAN="etherscan",n.BLOCKSCOUT="blockscout",n.L2_SCAN="l2scan",n.OK_LINK="oklink",n.UNKNOWN="unknown"})(t||(p.ExplorerApiType=t={}));var r;(function(n){n[n.DEFAULT=0]="DEFAULT",n[n.ARBITRUM=1]="ARBITRUM",n[n.OPTIMISM=2]="OPTIMISM",n[n.ZKSYNC=3]="ZKSYNC",n[n.POLYGON_ZKEVM=4]="POLYGON_ZKEVM",n[n.SUBSTRATE=5]="SUBSTRATE"})(r||(p.EthVariation=r={}));p.EthChainInfo={[e.EthChainId.ETHEREUM]:{name:"Ethereum",slug:"mainnet",chainId:e.EthChainId.ETHEREUM,variation:r.DEFAULT,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",tokenSymbol:"ETH",tokenDecimals:18,explorerApiType:t.ETHERSCAN,explorerUrl:"https://etherscan.io",explorerApi:"https://api.etherscan.io",blockscoutUrl:"https://eth.blockscout.com"},[e.EthChainId.SEPOLIA]:{name:"Sepolia",slug:"sepolia",chainId:e.EthChainId.SEPOLIA,mainnetChainId:e.EthChainId.ETHEREUM,variation:r.DEFAULT,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x1ef5f52bdbe11af2377c58ecc914a8c72ea807cf",tokenSymbol:"ETH",tokenDecimals:18,explorerApiType:t.ETHERSCAN,explorerUrl:"https://sepolia.etherscan.io",explorerApi:"https://api-sepolia.etherscan.io",blockscoutUrl:"https://eth-sepolia.blockscout.com"},[e.EthChainId.HOLESKY]:{name:"Holesky",slug:"holesky",chainId:e.EthChainId.HOLESKY,mainnetChainId:e.EthChainId.ETHEREUM,variation:r.DEFAULT,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x94373a4919B3240D86eA41593D5eBa789FEF3848",tokenSymbol:"ETH",tokenDecimals:18,explorerApiType:t.ETHERSCAN,explorerUrl:"https://holesky.etherscan.io",explorerApi:"https://api-holesky.etherscan.io",blockscoutUrl:"https://eth-holesky.blockscout.com"},[e.EthChainId.BSC]:{name:"Binance Smart Chain",slug:"bsc",chainId:e.EthChainId.BSC,variation:r.DEFAULT,priceTokenAddress:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",tokenSymbol:"BNB",tokenDecimals:18,explorerApiType:t.ETHERSCAN,explorerUrl:"https://bscscan.com",explorerApi:"https://api.bscscan.com"},[e.EthChainId.BSC_TESTNET]:{name:"Binance Smart Chain Testnet",slug:"bsc-testnet",chainId:e.EthChainId.BSC_TESTNET,mainnetChainId:e.EthChainId.BSC,variation:r.DEFAULT,priceTokenAddress:"0xae13d989dac2f0debff460ac112a837c89baa7cd",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0xae13d989dac2f0debff460ac112a837c89baa7cd",tokenSymbol:"tBNB",tokenDecimals:18,explorerApiType:t.ETHERSCAN,explorerUrl:"https://testnet.bscscan.com",explorerApi:"https://api-testnet.bscscan.com"},[e.EthChainId.OP_BNB_MAINNET]:{name:"opBNB Mainnet",slug:"opbnb",chainId:e.EthChainId.OP_BNB_MAINNET,variation:r.OPTIMISM,priceTokenAddress:"0x4200000000000000000000000000000000000006",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x4200000000000000000000000000000000000006",tokenSymbol:"BNB",tokenDecimals:18,explorerUrl:"https://opbnb.bscscan.com",explorerApiType:t.ETHERSCAN,explorerApi:"https://api-opbnb.bscscan.com"},[e.EthChainId.POLYGON]:{name:"Polygon",slug:"matic",chainId:e.EthChainId.POLYGON,variation:r.DEFAULT,priceTokenAddress:"0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",tokenSymbol:"MATIC",tokenDecimals:18,explorerApiType:t.ETHERSCAN,explorerUrl:"https://polygonscan.com",explorerApi:"https://api.polygonscan.com"},[e.EthChainId.ARBITRUM]:{name:"Arbitrum",slug:"arbitrum-one",chainId:e.EthChainId.ARBITRUM,variation:r.ARBITRUM,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",tokenSymbol:"ETH",tokenDecimals:18,explorerApiType:t.ETHERSCAN,explorerUrl:"https://arbiscan.io",explorerApi:"https://api.arbiscan.io"},[e.EthChainId.AVALANCHE]:{name:"Avalanche",slug:"avalanche",chainId:e.EthChainId.AVALANCHE,variation:r.DEFAULT,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",tokenSymbol:"ETH",tokenDecimals:18,explorerApiType:t.ETHERSCAN,explorerUrl:"https://snowtrace.io",explorerApi:"https://api.routescan.io/v2/network/mainnet/evm/43114/etherscan"},[e.EthChainId.POLYGON_ZKEVM]:{name:"Polygon zkEVM",chainId:e.EthChainId.POLYGON_ZKEVM,slug:"polygon-zkevm",variation:r.POLYGON_ZKEVM,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x4F9A0e7FD2Bf6067db6994CF12E4495Df938E6e9",tokenSymbol:"ETH",tokenDecimals:18,explorerApiType:t.ETHERSCAN,explorerUrl:"https://zkevm.polygonscan.com",explorerApi:"https://api-zkevm.polygonscan.com"},[e.EthChainId.MOONBEAM]:{name:"Moonbeam",slug:"moonbeam",chainId:e.EthChainId.MOONBEAM,variation:r.SUBSTRATE,priceTokenAddress:"0xacc15dc74880c9944775448304b263d191c6077f",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0xacc15dc74880c9944775448304b263d191c6077f",tokenSymbol:"GLMR",tokenDecimals:18,explorerApiType:t.ETHERSCAN,explorerUrl:"https://moonscan.io",explorerApi:"https://api-moonbeam.moonscan.io"},[e.EthChainId.ASTAR]:{name:"Astar",slug:"astar",chainId:e.EthChainId.ASTAR,variation:r.SUBSTRATE,priceTokenAddress:"0xaeaaf0e2c81af264101b9129c00f4440ccf0f720",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0xaeaaf0e2c81af264101b9129c00f4440ccf0f720",tokenSymbol:"ASTR",tokenDecimals:18,explorerApiType:t.BLOCKSCOUT,explorerUrl:"https://astar.blockscout.com",explorerApi:"https://astar.blockscout.com"},[e.EthChainId.ASTAR_ZKEVM]:{name:"Astar zkEVM",slug:"astar-zkevm",chainId:e.EthChainId.ASTAR_ZKEVM,variation:r.POLYGON_ZKEVM,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0xE9CC37904875B459Fa5D0FE37680d36F1ED55e38",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://astar-zkevm.explorer.startale.com",explorerApiType:t.BLOCKSCOUT,explorerApi:"https://astar-zkevm.explorer.startale.com"},[e.EthChainId.LINEA]:{name:"Linea",slug:"linea",chainId:e.EthChainId.LINEA,variation:r.DEFAULT,priceTokenAddress:"0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://lineascan.build",explorerApiType:t.ETHERSCAN,explorerApi:"https://api.lineascan.build"},[e.EthChainId.SCROLL]:{name:"Scroll",slug:"scroll",chainId:e.EthChainId.SCROLL,variation:r.DEFAULT,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x5300000000000000000000000000000000000004",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://scrollscan.com",explorerApiType:t.ETHERSCAN,explorerApi:"https://api.scrollscan.com"},[e.EthChainId.TAIKO]:{name:"Taiko Mainnet",slug:"taiko",chainId:e.EthChainId.TAIKO,variation:r.DEFAULT,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0xA51894664A773981C6C112C43ce576f315d5b1B6",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://taikoscan.io",explorerApiType:t.ETHERSCAN,explorerApi:"https://api.taikoscan.io"},[e.EthChainId.TAIKO_TESTNET]:{name:"Taiko Testnet",slug:"taiko-hekla-testnet",chainId:e.EthChainId.TAIKO_TESTNET,mainnetChainId:e.EthChainId.TAIKO,variation:r.DEFAULT,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0xae2C46ddb314B9Ba743C6dEE4878F151881333D9",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://hekla.taikoscan.io",explorerApiType:t.ETHERSCAN,explorerApi:"https://api-hekla.taikoscan.io"},[e.EthChainId.XLAYER_TESTNET]:{name:"X Layer Testnet",slug:"xlayer-sepolia",chainId:e.EthChainId.XLAYER_TESTNET,mainnetChainId:e.EthChainId.XLAYER_MAINNET,variation:r.POLYGON_ZKEVM,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0xa749ad81913cdc19881ebeb64631df72be708335",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://www.oklink.com/xlayer-test",explorerApiType:t.OK_LINK,explorerApi:"https://www.oklink.com/api/v5/explorer"},[e.EthChainId.XLAYER_MAINNET]:{name:"X Layer Mainnet",slug:"xlayer-mainnet",chainId:e.EthChainId.XLAYER_MAINNET,variation:r.POLYGON_ZKEVM,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x5a77f1443d16ee5761d310e38b62f77f726bc71c",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://www.oklink.com/xlayer",explorerApiType:t.OK_LINK,explorerApi:"https://www.oklink.com/api/v5/explorer"},[e.EthChainId.BLAST]:{name:"Blast Mainnet",slug:"blast-mainnet",chainId:e.EthChainId.BLAST,variation:r.OPTIMISM,priceTokenAddress:"0x4300000000000000000000000000000000000004",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x4300000000000000000000000000000000000004",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://blastscan.io",explorerApiType:t.ETHERSCAN,explorerApi:"https://api.blastscan.io"},[e.EthChainId.BLAST_SEPOLIA]:{name:"Blast Mainnet",slug:"blast-testnet",chainId:e.EthChainId.BLAST_SEPOLIA,mainnetChainId:e.EthChainId.BLAST,variation:r.OPTIMISM,priceTokenAddress:"0x4200000000000000000000000000000000000023",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x4200000000000000000000000000000000000023",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://sepolia.blastscan.io",explorerApiType:t.ETHERSCAN,explorerApi:"https://api-sepolia.blastscan.io"},[e.EthChainId.BASE]:{name:"Base",slug:"base",chainId:e.EthChainId.BASE,variation:r.OPTIMISM,priceTokenAddress:"0x4200000000000000000000000000000000000006",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x4200000000000000000000000000000000000006",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://basescan.org",explorerApiType:t.ETHERSCAN,explorerApi:"https://api.basescan.org"},[e.EthChainId.ZKSYNC_ERA]:{name:"zkSync Era",slug:"zksync-era",chainId:e.EthChainId.ZKSYNC_ERA,variation:r.ZKSYNC,priceTokenAddress:"0x000000000000000000000000000000000000800A",tokenAddress:"0x000000000000000000000000000000000000800A",wrappedTokenAddress:"0x000000000000000000000000000000000000800A",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://explorer.zksync.io",explorerApiType:t.ETHERSCAN,explorerApi:"https://block-explorer-api.mainnet.zksync.io"},[e.EthChainId.ZIRCUIT_TESTNET]:{name:"Zircuit Testnet",slug:"zircuit-testnet",chainId:e.EthChainId.ZIRCUIT_TESTNET,mainnetChainId:e.EthChainId.ZIRCUIT_MAINNET,variation:r.OPTIMISM,priceTokenAddress:"0x4200000000000000000000000000000000000006",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x4200000000000000000000000000000000000006",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://explorer.testnet.zircuit.com"},[e.EthChainId.ZIRCUIT_MAINNET]:{name:"Zircuit Mainnet",slug:"zircuit",chainId:e.EthChainId.ZIRCUIT_MAINNET,variation:r.OPTIMISM,priceTokenAddress:"0x4200000000000000000000000000000000000006",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x4200000000000000000000000000000000000006",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://explorer.zircuit.com"},[e.EthChainId.FANTOM]:{name:"Fantom Opera",slug:"fantom",chainId:e.EthChainId.FANTOM,variation:r.DEFAULT,priceTokenAddress:"0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83",tokenSymbol:"WFTM",tokenDecimals:18,explorerUrl:"https://ftmscan.com",explorerApiType:t.ETHERSCAN,explorerApi:"https://api.ftmscan.com"},[e.EthChainId.OPTIMISM]:{name:"Optimism Mainnet",slug:"optimism",chainId:e.EthChainId.OPTIMISM,variation:r.OPTIMISM,priceTokenAddress:"0x4200000000000000000000000000000000000006",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x4200000000000000000000000000000000000006",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://optimistic.etherscan.io",explorerApiType:t.ETHERSCAN,explorerApi:"https://api-optimistic.etherscan.io"},[e.EthChainId.CRONOS]:{name:"Cronos Mainnet",slug:"cronos",chainId:e.EthChainId.CRONOS,variation:r.DEFAULT,priceTokenAddress:"0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23",tokenSymbol:"CRO",tokenDecimals:18,explorerUrl:"https://cronoscan.com",explorerApiType:t.ETHERSCAN,explorerApi:"https://api.cronoscan.com"},[e.EthChainId.CRONOS_TESTNET]:{name:"Cronos Testnet",slug:"cronos-testnet",chainId:e.EthChainId.CRONOS_TESTNET,mainnetChainId:e.EthChainId.CRONOS,variation:r.DEFAULT,priceTokenAddress:"0x6a3173618859c7cd40faf6921b5e9eb6a76f1fd4",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x6a3173618859c7cd40faf6921b5e9eb6a76f1fd4",tokenSymbol:"CRO",tokenDecimals:18,explorerUrl:"https://explorer.cronos.org/testnet"},[e.EthChainId.BITLAYER]:{name:"Bitlayer Mainnet",slug:"bitlayer",chainId:e.EthChainId.BITLAYER,variation:r.DEFAULT,priceTokenAddress:"0xff204e2681a6fa0e2c3fade68a1b28fb90e4fc5f",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0xff204e2681a6fa0e2c3fade68a1b28fb90e4fc5f",tokenSymbol:"BTC",tokenDecimals:18,explorerUrl:"https://www.btrscan.com",explorerApiType:t.ETHERSCAN,explorerApi:"https://api.btrscan.com/scan"},[e.EthChainId.MANTA_PACIFIC]:{name:"Manta Pacific",slug:"manta-pacific-mainnet",chainId:e.EthChainId.MANTA_PACIFIC,variation:r.OPTIMISM,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x0Dc808adcE2099A9F62AA87D9670745AbA741746",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://pacific-explorer.manta.network",explorerApiType:t.BLOCKSCOUT,explorerApi:"https://pacific-explorer.manta.network"},[e.EthChainId.MANTLE]:{name:"Mantle",slug:"mantle",chainId:e.EthChainId.MANTLE,variation:r.OPTIMISM,priceTokenAddress:"0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8",tokenSymbol:"MNT",tokenDecimals:18,explorerUrl:"https://mantlescan.xyz",explorerApiType:t.ETHERSCAN,explorerApi:"https://api.mantlescan.xyz"},[e.EthChainId.B2_MAINNET]:{name:"B2 Mainnet",slug:"b2-mainnet",chainId:e.EthChainId.B2_MAINNET,variation:r.OPTIMISM,priceTokenAddress:"0x4200000000000000000000000000000000000006",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x4200000000000000000000000000000000000006",tokenSymbol:"BTC",tokenDecimals:18,explorerUrl:"https://explorer.bsquared.network",explorerApiType:t.L2_SCAN,explorerApi:"https://explorer.bsquared.network/api"},[e.EthChainId.MODE]:{name:"Mode Mainnet",slug:"mode-mainnet",chainId:e.EthChainId.MODE,variation:r.OPTIMISM,priceTokenAddress:"0x4200000000000000000000000000000000000006",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x4200000000000000000000000000000000000006",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://modescan.io",explorerApiType:t.ETHERSCAN,explorerApi:"https://api.routescan.io/v2/network/mainnet/evm/34443/etherscan"},[e.EthChainId.BOB]:{name:"Bob Mainnet",slug:"bob",chainId:e.EthChainId.BOB,variation:r.OPTIMISM,priceTokenAddress:"0x4200000000000000000000000000000000000006",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x4200000000000000000000000000000000000006",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://explorer.gobob.xyz",explorerApiType:t.BLOCKSCOUT,explorerApi:"https://explorer.gobob.xyz"},[e.EthChainId.FRAXTAL]:{name:"Fraxtal Mainnet",slug:"frax-mainnet",chainId:e.EthChainId.FRAXTAL,variation:r.OPTIMISM,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0xFC00000000000000000000000000000000000006",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://fraxscan.com",explorerApiType:t.ETHERSCAN,explorerApi:"https://api.fraxscan.com"},[e.EthChainId.KUCOIN]:{name:"KCC Mainnet",slug:"kucoin",chainId:e.EthChainId.KUCOIN,variation:r.DEFAULT,priceTokenAddress:"0x4446Fc4eb47f2f6586f9fAAb68B3498F86C07521",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x4446Fc4eb47f2f6586f9fAAb68B3498F86C07521",tokenSymbol:"KCS",tokenDecimals:18,explorerUrl:"https://scan.kcc.io",explorerApiType:t.ETHERSCAN,explorerApi:"https://scan.kcc.io"},[e.EthChainId.CONFLUX]:{name:"Conflux eSpace",slug:"conflux-espace",chainId:e.EthChainId.CONFLUX,variation:r.DEFAULT,priceTokenAddress:"0x14b2d3bc65e74dae1030eafd8ac30c533c976a9b",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x14b2d3bc65e74dae1030eafd8ac30c533c976a9b",tokenSymbol:"CFX",tokenDecimals:18,explorerUrl:"https://evm.confluxscan.io",explorerApiType:t.ETHERSCAN,explorerApi:"https://evmapi.confluxscan.io"},[e.EthChainId.METIS]:{name:"Metis",slug:"metis",chainId:e.EthChainId.METIS,variation:r.DEFAULT,priceTokenAddress:"0x75cb093E4D61d2A2e65D8e0BBb01DE8d89b53481",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x75cb093E4D61d2A2e65D8e0BBb01DE8d89b53481",tokenSymbol:"METIS",tokenDecimals:18,explorerUrl:"https://explorer.metis.io",explorerApiType:t.ETHERSCAN,explorerApi:"https://api.routescan.io/v2/network/mainnet/evm/1088/etherscan/"},[e.EthChainId.BEVM]:{name:"BEVM",slug:"bevm",chainId:e.EthChainId.BEVM,variation:r.SUBSTRATE,priceTokenAddress:"0xB5136FEba197f5fF4B765E5b50c74db717796dcD",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0xB5136FEba197f5fF4B765E5b50c74db717796dcD",tokenSymbol:"BTC",tokenDecimals:18,explorerUrl:"https://scan.bevm.io",explorerApiType:t.BLOCKSCOUT,explorerApi:"https://scan.bevm.io"},[e.EthChainId.MERLIN_MAINNET]:{name:"Merlin Mainnet",slug:"merlin",chainId:e.EthChainId.MERLIN_MAINNET,variation:r.POLYGON_ZKEVM,priceTokenAddress:"0xF6D226f9Dc15d9bB51182815b320D3fBE324e1bA",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0xF6D226f9Dc15d9bB51182815b320D3fBE324e1bA",tokenSymbol:"BTC",tokenDecimals:18,explorerUrl:"https://scan.merlinchain.io",explorerApiType:t.L2_SCAN,explorerApi:"https://scan.merlinchain.io/api"},[e.EthChainId.CHILIZ]:{name:"Chiliz",slug:"chiliz",chainId:e.EthChainId.CHILIZ,variation:r.DEFAULT,priceTokenAddress:"0x721EF6871f1c4Efe730Dce047D40D1743B886946",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x721EF6871f1c4Efe730Dce047D40D1743B886946",tokenSymbol:"CHZ",tokenDecimals:18,explorerUrl:"https://chiliscan.com",explorerApiType:t.ETHERSCAN,explorerApi:"https://api.routescan.io/v2/network/mainnet/evm/88888/etherscan"},[e.EthChainId.ZKLINK_NOVA]:{name:"zkLink Nova",slug:"zklink-nova",chainId:e.EthChainId.ZKLINK_NOVA,variation:r.ZKSYNC,priceTokenAddress:"0x000000000000000000000000000000000000800A",tokenAddress:"0x000000000000000000000000000000000000800A",wrappedTokenAddress:"0x000000000000000000000000000000000000800A",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://explorer.zklink.io",explorerApiType:t.ETHERSCAN,explorerApi:"https://explorer-api.zklink.io"},[e.EthChainId.AURORA]:{name:"Aurora",slug:"aurora",chainId:e.EthChainId.AURORA,variation:r.DEFAULT,priceTokenAddress:"0xC9BdeEd33CD01541e1eeD10f90519d2C06Fe3feB",tokenAddress:"0x000000000000000000000000000000000000800A",wrappedTokenAddress:"0xC9BdeEd33CD01541e1eeD10f90519d2C06Fe3feB",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://explorer.aurora.dev",explorerApiType:t.BLOCKSCOUT,explorerApi:"https://explorer.aurora.dev"},[e.EthChainId.SONIC_MAINNET]:{name:"Sonic Mainnet",slug:"sonic-mainnet",chainId:e.EthChainId.SONIC_MAINNET,variation:r.DEFAULT,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x000000000000000000000000000000000000800A",tokenSymbol:"S",tokenDecimals:18,explorerUrl:"https://sonicscan.org",explorerApiType:t.ETHERSCAN,explorerApi:"https://api.sonicscan.org/api"},[e.EthChainId.SONIC_TESTNET]:{name:"Sonic Testnet",slug:"sonic-testnet",chainId:e.EthChainId.SONIC_TESTNET,mainnetChainId:e.EthChainId.SONIC_MAINNET,variation:r.DEFAULT,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x000000000000000000000000000000000000800A",tokenSymbol:"S",tokenDecimals:18,explorerUrl:"https://testnet.sonicscan.org",explorerApiType:t.ETHERSCAN,explorerApi:"https://api-testnet.sonicscan.org"},[e.EthChainId.SONEIUM_MAINNET]:{name:"Soneium Mainnet",slug:"soneium-mainnet",chainId:e.EthChainId.SONEIUM_MAINNET,variation:r.OPTIMISM,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x4200000000000000000000000000000000000006",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://soneium.blockscout.com",explorerApiType:t.BLOCKSCOUT,explorerApi:"https://soneium.blockscout.com"},[e.EthChainId.SONEIUM_TESTNET]:{name:"Soneium Testnet",slug:"soneium-minato",chainId:e.EthChainId.SONEIUM_TESTNET,mainnetChainId:e.EthChainId.SONEIUM_MAINNET,variation:r.OPTIMISM,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x728F2745410A56620B50a6E0592743450e08Cac6",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://soneium-minato.blockscout.com",explorerApiType:t.BLOCKSCOUT,explorerApi:"https://soneium-minato.blockscout.com"},[e.EthChainId.CRONOS_ZKEVM]:{name:"Cronos zkEVM",slug:"cronos-zkevm",chainId:e.EthChainId.CRONOS_ZKEVM,variation:r.ZKSYNC,priceTokenAddress:"0x000000000000000000000000000000000000800a",tokenAddress:"0x000000000000000000000000000000000000800a",wrappedTokenAddress:"0xc1bf55ee54e16229d9b369a5502bfe5fc9f20b6d",tokenSymbol:"zkCRO",tokenDecimals:18,explorerUrl:"https://explorer.zkevm.cronos.org",explorerApiType:t.ETHERSCAN,explorerApi:"https://explorer.zkevm.cronos.org"},[e.EthChainId.DERIVE]:{name:"Derive Mainnet",slug:"derive-mainnet",chainId:e.EthChainId.DERIVE,variation:r.OPTIMISM,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x15CEcd5190A43C7798dD2058308781D0662e678E",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://explorer.lyra.finance",explorerApiType:t.BLOCKSCOUT,explorerApi:"https://explorer.lyra.finance"},[e.EthChainId.UNICHAIN_SEPOLIA]:{name:"Unichain Sepolia",slug:"unichain-sepolia",chainId:e.EthChainId.UNICHAIN_SEPOLIA,variation:r.OPTIMISM,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x4200000000000000000000000000000000000006",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://unichain-sepolia.blockscout.com",explorerApiType:t.BLOCKSCOUT,explorerApi:"https://unichain-sepolia.blockscout.com"},[e.EthChainId.CORN_MAIZENET]:{name:"Corn Maizenet",slug:"corn-maizenet",chainId:e.EthChainId.CORN_MAIZENET,variation:r.OPTIMISM,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x0000000000000000000000000000000000000000",tokenSymbol:"BTCN",tokenDecimals:18,explorerUrl:"https://maizenet-explorer.usecorn.com",explorerApiType:t.BLOCKSCOUT,explorerApi:"https://maizenet-explorer.usecorn.com"},[e.EthChainId.KARAK]:{name:"Karak Mainnet",slug:"karak-mainnet",chainId:e.EthChainId.KARAK,variation:r.DEFAULT,priceTokenAddress:"0x4200000000000000000000000000000000000006",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x4200000000000000000000000000000000000006",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://explorer.karak.network",explorerApiType:t.BLOCKSCOUT,explorerApi:"https://explorer.karak.network"},[e.EthChainId.SEI]:{name:"Sei Mainnet",slug:"sei",chainId:e.EthChainId.SEI,variation:r.DEFAULT,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x0000000000000000000000000000000000000000",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://seistream.app"},[e.EthChainId.SWELL_MAINNET]:{name:"Swell Mainnet",slug:"swell-mainnet",chainId:e.EthChainId.SWELL_MAINNET,variation:r.OPTIMISM,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x0000000000000000000000000000000000000000",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://explorer.swellnetwork.io",explorerApiType:t.BLOCKSCOUT,explorerApi:"https://explorer.swellnetwork.io"},[e.EthChainId.SWELL_TESTNET]:{name:"Swell Testnet",slug:"swell-testnet",chainId:e.EthChainId.SWELL_TESTNET,mainnetChainId:e.EthChainId.SWELL_MAINNET,variation:r.OPTIMISM,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x0000000000000000000000000000000000000000",tokenSymbol:"ETH",tokenDecimals:18,explorerUrl:"https://swell-testnet-explorer.alt.technology",explorerApiType:t.BLOCKSCOUT,explorerApi:"https://swell-testnet-explorer.alt.technology"},[e.EthChainId.TAC_TESTNET]:{name:"TAC Testnet",slug:"tac-testnet",chainId:e.EthChainId.TAC_TESTNET,variation:r.DEFAULT,priceTokenAddress:"0x392D1cCB04d25fCBcA7D4fc0E429Dbc1F9fEe73F",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x392D1cCB04d25fCBcA7D4fc0E429Dbc1F9fEe73F",tokenSymbol:"TAC",tokenDecimals:18,explorerUrl:"https://turin.explorer.tac.build",explorerApiType:t.BLOCKSCOUT,explorerApi:"https://turin.explorer.tac.build"},[e.EthChainId.MONAD_TESTNET]:{name:"Monad Testnet",slug:"monad-testnet",chainId:e.EthChainId.MONAD_TESTNET,variation:r.DEFAULT,priceTokenAddress:"0x760AfE86e5de5fa0Ee542fc7B7B713e1c5425701",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x760AfE86e5de5fa0Ee542fc7B7B713e1c5425701",tokenSymbol:"MON",tokenDecimals:18,explorerUrl:"https://testnet.monadexplorer.com",explorerApiType:t.UNKNOWN},[e.EthChainId.BERACHAIN]:{name:"Berachain",slug:"berachain",chainId:e.EthChainId.BERACHAIN,variation:r.DEFAULT,priceTokenAddress:"0x0000000000000000000000000000000000000000",tokenAddress:"0x0000000000000000000000000000000000000000",wrappedTokenAddress:"0x0000000000000000000000000000000000000000",tokenSymbol:"BERA",tokenDecimals:18,explorerUrl:"https://berascan.com",explorerApi:"https://api.berascan.com",explorerApiType:t.ETHERSCAN}};function L(n,o,a){let i=a,s=p.EthChainInfo[n];if(s)return s.explorerApiType===t.L2_SCAN&&a==="block"&&(i="blocks"),`${s.explorerUrl}/${i}/${o}`}l(L,"getEVMChainScanUrl");p.BTCChainInfo={[e.BTCChainId.BTC_MAINNET]:{name:"Bitcoin Mainnet",chainId:e.BTCChainId.BTC_MAINNET,explorerUrl:"https://mempool.space"},[e.BTCChainId.BTC_TESTNET]:{name:"Bitcoin Mainnet",chainId:e.BTCChainId.BTC_TESTNET,explorerUrl:"https://mempool.space/testnet4"}};var D={block:"block",address:"address",tx:"tx",token:void 0};function v(n,o,a){let i=p.BTCChainInfo[n]?.explorerUrl,s=D[a];if(!(!i||!s))return`${i}/${s}/${o}`}l(v,"getBtcChainScanUrl");p.AptosChainInfo={[e.AptosChainId.APTOS_MAINNET]:{name:"Aptos Mainnet",chainId:e.AptosChainId.APTOS_MAINNET,explorerUrl:"https://explorer.aptoslabs.com",suffix:"?network=mainnet"},[e.AptosChainId.APTOS_TESTNET]:{name:"Aptos Testenet",chainId:e.AptosChainId.APTOS_TESTNET,explorerUrl:"https://explorer.aptoslabs.com",suffix:"?network=mainnet"},[e.AptosChainId.APTOS_MOVEMENT_MAINNET]:{name:"Movement Mainnet Aptos",chainId:e.AptosChainId.APTOS_MOVEMENT_MAINNET,explorerUrl:"https://explorer.movementnetwork.xyz",suffix:"?network=mainnet"},[e.AptosChainId.APTOS_MOVEMENT_TESTNET]:{name:"Movement Testnet Aptos",chainId:e.AptosChainId.APTOS_MOVEMENT_TESTNET,explorerUrl:"https://explorer.movementnetwork.xyz",suffix:"?network=testnet"}};var R={block:"block",address:"account",tx:"txn",token:void 0};function g(n,o,a){let{explorerUrl:i,suffix:s}=p.AptosChainInfo[n],E=R[a];if(E)return`${i}/${E}/${o}${s}`}l(g,"getAptosChainScanUrl");p.SolanaChainInfo={[e.SolanaChainId.SOLANA_MAINNET]:{name:"Solana Mainnet",chainId:e.SolanaChainId.SOLANA_MAINNET,explorerUrl:"https://solscan.io/",suffix:""},[e.SolanaChainId.SOLANA_TESTNET]:{name:"Solana Testnet",chainId:e.SolanaChainId.SOLANA_MAINNET,explorerUrl:"https://solscan.io/",suffix:"?cluster=testnet"}};var w={block:"block",address:"address",tx:"tx",token:"token"};function H(n,o,a){let{explorerUrl:i,suffix:s}=p.SolanaChainInfo[n],E=w[a];if(E)return`${i}${E}/${o}${s}`}l(H,"getSolanaChainScanUrl");var _={[e.SuiChainId.SUI_MAINNET]:{name:"Sui Mainnet",chainId:e.SuiChainId.SUI_MAINNET,explorerUrl:"https://suivision.xyz"},[e.SuiChainId.SUI_TESTNET]:{name:"Sui Testnet",chainId:e.SuiChainId.SUI_TESTNET,explorerUrl:"https://testnet.suivision.xyz"}},P={block:"checkpoint",address:"account",tx:"txblock",token:void 0};function F(n,o,a){let{explorerUrl:i}=_[n],s=P[a];if(s)return`${i}/${s}/${o}`}l(F,"getSuiChainScanUrl");function K(n,o,a){if(!n||!o||!a)return;let i=n.toString();if(Object.keys(p.EthChainInfo).includes(i))return L(i,o,a);if(Object.keys(p.BTCChainInfo).includes(i))return v(i,o,a);if(Object.keys(p.AptosChainInfo).includes(i))return g(i,o,a);if(Object.keys(p.SolanaChainInfo).includes(i))return H(i,o,a);if(Object.keys(_).includes(i))return F(i,o,a)}l(K,"getChainExternalUrl");p.getChainExternalUrl=K;function Z(n,o,a){if(!n||!o||!a)return;let i=p.EthChainInfo[n];if(i&&i.blockscoutUrl)return`${i.blockscoutUrl}/${a}/${o}`}l(Z,"getChainBlockscoutUrl");p.getChainBlockscoutUrl=Z});var B=x(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});c.getChainScanUrl=c.getChainName=c.CHAIN_MAP=void 0;var h=k(),z=M();c.CHAIN_MAP={[h.ChainId.APTOS_MOVEMENT_MAINNET]:"Movement Mainnet",[h.ChainId.APTOS_MOVEMENT_TESTNET]:"Movement Testnet",[h.ChainId.BTC_MAINNET]:"Bitcoin Mainnet",[h.ChainId.BTC_TESTNET]:"Bitcoin Testnet"};for(let[n,o]of Object.entries(h.ChainId)){if(c.CHAIN_MAP[o])continue;let a=z.EthChainInfo[o];if(a){c.CHAIN_MAP[o]=a.name;continue}let i=n.split("_");c.CHAIN_MAP[o]=i.map((s,E)=>s[0]+s.slice(1).toLowerCase()).join(" ")}function U(n){if(typeof n=="number"&&(n=n.toString()),n){let o=c.CHAIN_MAP[n];if(o)return o}return n||""}l(U,"getChainName");c.getChainName=U;function $(n,o,a){let i=U(n);if(i==="Ethereum")return a==="block"?`https://etherscan.io/block/${o}`:a==="address"?`https://etherscan.io/address/${o}`:`https://etherscan.io/tx/${o}`;if(i==="Polygon")return a==="block"?`https://polygonscan.com/block/${o}`:a==="address"?`https://polygonscan.com/address/${o}`:`https://polygonscan.com/tx/${o}`;if(i.startsWith("Aptos ")){let s="?network=mainnet";return i.includes("Testnet")?s="?network=testnet":i.includes("Devnet")&&(s="?network=devnet"),a==="block"?`https://explorer.aptoslabs.com/block/${o}/${s}`:a==="address"?`https://explorer.aptoslabs.com/account/${o}/${s}`:`https://explorer.aptoslabs.com/txn/${o}/${s}`}if(i.startsWith("Solana "))return a==="block"?`https://explorer.solana.com/block/${o}`:a==="address"?`https://explorer.solana.com/address/${o}`:`https://explorer.solana.io/tx/${o}`;if(i.startsWith("Sui "))return a==="block"?`https://suivision.xyz/checkpoint/${o}`:a==="address"?`https://suivision.xyz/account/${o}`:`https://suivision.xyz/txblock/${o}`}l($,"getChainScanUrl");c.getChainScanUrl=$});var Y=x(T=>{"use strict";var V=T&&T.__createBinding||(Object.create?function(n,o,a,i){i===void 0&&(i=a);var s=Object.getOwnPropertyDescriptor(o,a);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:l(function(){return o[a]},"get")}),Object.defineProperty(n,i,s)}:function(n,o,a,i){i===void 0&&(i=a),n[i]=o[a]}),O=T&&T.__exportStar||function(n,o){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&V(o,n,a)};Object.defineProperty(T,"__esModule",{value:!0});O(k(),T);O(M(),T);O(B(),T)});export{Y as a};
3
- //# sourceMappingURL=chunk-NLNLOORO.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../node_modules/.pnpm/@sentio+chain@3.0.2/node_modules/@sentio/chain/src/chain-id.ts","../../../node_modules/.pnpm/@sentio+chain@3.0.2/node_modules/@sentio/chain/src/chain-info.ts","../../../node_modules/.pnpm/@sentio+chain@3.0.2/node_modules/@sentio/chain/src/chain-name.ts","../../../node_modules/.pnpm/@sentio+chain@3.0.2/node_modules/@sentio/chain/src/index.ts"],"sourcesContent":["// copy from https://github.com/DefiLlama/chainlist/blob/main/constants/chainIds.js\n// and https://besu.hyperledger.org/en/stable/Concepts/NetworkID-And-ChainID/\n\nexport enum ChainType {\n SOLANA = 'solana',\n SUI = 'sui',\n APTOS = 'aptos',\n ETH = 'evm',\n BTC = 'btc'\n}\n\nexport enum EthChainId { // Any modify to this must also be modify in EthChainName\n ETHEREUM = '1',\n OPTIMISM = '10',\n CRONOS = '25',\n BSC = '56',\n BSC_TESTNET = '97',\n POLYGON = '137',\n MANTA_PACIFIC = '169',\n XLAYER_TESTNET = '195',\n XLAYER_MAINNET = '196',\n OP_BNB_MAINNET = '204',\n SONIC_MAINNET = '146',\n SONIC_TESTNET = '57054',\n B2_MAINNET = '223',\n FANTOM = '250',\n FRAXTAL = '252',\n KUCOIN = '321',\n CRONOS_ZKEVM = '388',\n ZKSYNC_ERA = '324',\n CRONOS_TESTNET = '338',\n ASTAR = '592',\n DERIVE = '957',\n POLYGON_ZKEVM = '1101',\n CONFLUX = '1030',\n METIS = '1088',\n MOONBEAM = '1284',\n UNICHAIN_SEPOLIA = '1301',\n SEI = '1329',\n SONEIUM_TESTNET = '1946',\n SONEIUM_MAINNET = '1868',\n SWELL_TESTNET = '1924',\n SWELL_MAINNET = '1923',\n TAC_TESTNET = '2390',\n KARAK = '2410',\n BEVM = '11501',\n MERLIN_MAINNET = '4200',\n MANTLE = '5000',\n BASE = '8453',\n MONAD_TESTNET = '10143',\n HOLESKY = '17000',\n ASTAR_ZKEVM = '3776',\n MODE = '34443',\n ARBITRUM = '42161',\n AVALANCHE = '43114',\n ZIRCUIT_TESTNET = '48899',\n ZIRCUIT_MAINNET = '48900',\n BOB = '60808',\n LINEA = '59144',\n BERACHAIN = '80094',\n BLAST = '81457',\n CHILIZ = '88888',\n TAIKO = '167000',\n TAIKO_TESTNET = '167008',\n BITLAYER = '200901',\n SCROLL = '534352',\n ZKLINK_NOVA = '810180',\n SEPOLIA = '11155111',\n CORN_MAIZENET = '21000000',\n AURORA = '1313161554',\n BLAST_SEPOLIA = '168587773'\n}\n\nexport enum AptosChainId {\n APTOS_MAINNET = 'aptos_mainnet',\n APTOS_TESTNET = 'aptos_testnet',\n APTOS_MOVEMENT_TESTNET = 'aptos_movement_testnet',\n APTOS_MOVEMENT_MAINNET = 'aptos_movement_mainnet'\n}\n\nexport enum SuiChainId {\n SUI_MAINNET = 'sui_mainnet',\n SUI_TESTNET = 'sui_testnet'\n}\n\nexport enum SolanaChainId {\n SOLANA_MAINNET = 'sol_mainnet',\n SOLANA_DEVNET = 'sol_devnet',\n SOLANA_TESTNET = 'sol_testnet',\n SOLANA_PYTH = 'sol_pyth'\n}\nexport enum FuelChainId {\n FUEL_MAINNET = 'fuel_mainnet',\n FUEL_TESTNET = 'fuel_testnet'\n}\n\nexport enum CosmosChainId {\n INJECTIVE_MAINNET = 'injective_mainnet',\n INJECTIVE_TESTNET = 'injective_testnet'\n}\n\nexport enum StarknetChainId {\n STARKNET_MAINNET = 'starknet_mainnet',\n STARKNET_SEPOLIA = 'starknet_sepolia'\n}\n\nexport enum BTCChainId {\n BTC_MAINNET = 'btc_mainnet',\n BTC_TESTNET = 'btc_testnet'\n}\n\nexport type ChainId =\n | EthChainId\n | AptosChainId\n | SuiChainId\n | SolanaChainId\n | FuelChainId\n | CosmosChainId\n | StarknetChainId\n | BTCChainId\nexport const ChainId = {\n ...EthChainId,\n ...AptosChainId,\n ...SuiChainId,\n ...SolanaChainId,\n ...FuelChainId,\n ...CosmosChainId,\n ...StarknetChainId,\n ...BTCChainId\n}\n\nexport function getChainType(chainId?: string | number): ChainType {\n const id = String(chainId).toLowerCase()\n if (id.startsWith('sol')) {\n return ChainType.SOLANA\n }\n if (id.startsWith('sui')) {\n return ChainType.SUI\n }\n if (id.startsWith('apt')) {\n return ChainType.APTOS\n }\n if (id.startsWith('btc')) {\n return ChainType.BTC\n }\n return ChainType.ETH\n}\n","import { AptosChainId, BTCChainId, ChainId, EthChainId, SolanaChainId, SuiChainId } from './chain-id'\n\nexport enum ExplorerApiType {\n ETHERSCAN = 'etherscan',\n BLOCKSCOUT = 'blockscout',\n L2_SCAN = 'l2scan',\n OK_LINK = 'oklink',\n UNKNOWN = 'unknown'\n}\n\nexport type ChainInfo = {\n name: string\n chainId: ChainId\n explorerUrl: string\n}\n\nexport enum EthVariation {\n DEFAULT = 0,\n ARBITRUM = 1,\n OPTIMISM = 2,\n ZKSYNC = 3,\n POLYGON_ZKEVM = 4,\n SUBSTRATE\n}\n\nexport type EthChainInfo = ChainInfo & {\n mainnetChainId?: EthChainId // if it is a testnet, this is the mainnet chain id\n chainId: EthChainId\n slug: string\n variation: EthVariation\n\n tokenAddress: string // native token address\n tokenSymbol: string // native token symbol\n tokenDecimals: number // native token decimals\n\n priceTokenAddress: string // token address for price\n wrappedTokenAddress: string // wrapped token address with contract, normally Wxxx (Wrapped xxx)\n\n explorerApiType?: ExplorerApiType\n explorerApi?: string\n blockscoutUrl?: string\n}\n\n/**\n * EVM chains\n */\nexport const EthChainInfo: Record<EthChainId | string, EthChainInfo> = {\n [EthChainId.ETHEREUM]: {\n name: 'Ethereum',\n slug: 'mainnet',\n chainId: EthChainId.ETHEREUM,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerUrl: 'https://etherscan.io',\n explorerApi: 'https://api.etherscan.io',\n blockscoutUrl: 'https://eth.blockscout.com'\n },\n [EthChainId.SEPOLIA]: {\n name: 'Sepolia',\n slug: 'sepolia',\n chainId: EthChainId.SEPOLIA,\n mainnetChainId: EthChainId.ETHEREUM,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x1ef5f52bdbe11af2377c58ecc914a8c72ea807cf',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerUrl: 'https://sepolia.etherscan.io',\n explorerApi: 'https://api-sepolia.etherscan.io',\n blockscoutUrl: 'https://eth-sepolia.blockscout.com'\n },\n [EthChainId.HOLESKY]: {\n name: 'Holesky',\n slug: 'holesky',\n chainId: EthChainId.HOLESKY,\n mainnetChainId: EthChainId.ETHEREUM,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x94373a4919B3240D86eA41593D5eBa789FEF3848',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerUrl: 'https://holesky.etherscan.io',\n explorerApi: 'https://api-holesky.etherscan.io',\n blockscoutUrl: 'https://eth-holesky.blockscout.com'\n },\n [EthChainId.BSC]: {\n name: 'Binance Smart Chain',\n slug: 'bsc',\n chainId: EthChainId.BSC,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c',\n tokenSymbol: 'BNB',\n tokenDecimals: 18,\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerUrl: 'https://bscscan.com',\n explorerApi: 'https://api.bscscan.com'\n },\n [EthChainId.BSC_TESTNET]: {\n name: 'Binance Smart Chain Testnet',\n slug: 'bsc-testnet',\n chainId: EthChainId.BSC_TESTNET,\n mainnetChainId: EthChainId.BSC,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0xae13d989dac2f0debff460ac112a837c89baa7cd',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0xae13d989dac2f0debff460ac112a837c89baa7cd',\n tokenSymbol: 'tBNB',\n tokenDecimals: 18,\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerUrl: 'https://testnet.bscscan.com',\n explorerApi: 'https://api-testnet.bscscan.com'\n },\n [EthChainId.OP_BNB_MAINNET]: {\n name: 'opBNB Mainnet',\n slug: 'opbnb',\n chainId: EthChainId.OP_BNB_MAINNET,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenSymbol: 'BNB',\n tokenDecimals: 18,\n explorerUrl: 'https://opbnb.bscscan.com',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api-opbnb.bscscan.com'\n },\n [EthChainId.POLYGON]: {\n name: 'Polygon',\n slug: 'matic',\n chainId: EthChainId.POLYGON,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', // WMATIC\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', // WMATIC\n tokenSymbol: 'MATIC',\n tokenDecimals: 18,\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerUrl: 'https://polygonscan.com',\n explorerApi: 'https://api.polygonscan.com'\n // blockscoutBlockPrefix: 'https://polygon.blockscout.com/block/',\n },\n [EthChainId.ARBITRUM]: {\n name: 'Arbitrum',\n slug: 'arbitrum-one',\n chainId: EthChainId.ARBITRUM,\n variation: EthVariation.ARBITRUM,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerUrl: 'https://arbiscan.io',\n explorerApi: 'https://api.arbiscan.io'\n },\n [EthChainId.AVALANCHE]: {\n name: 'Avalanche',\n slug: 'avalanche',\n chainId: EthChainId.AVALANCHE,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerUrl: 'https://snowtrace.io',\n explorerApi: 'https://api.routescan.io/v2/network/mainnet/evm/43114/etherscan'\n },\n [EthChainId.POLYGON_ZKEVM]: {\n name: 'Polygon zkEVM',\n chainId: EthChainId.POLYGON_ZKEVM,\n slug: 'polygon-zkevm',\n variation: EthVariation.POLYGON_ZKEVM,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x4F9A0e7FD2Bf6067db6994CF12E4495Df938E6e9',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerUrl: 'https://zkevm.polygonscan.com',\n explorerApi: 'https://api-zkevm.polygonscan.com'\n },\n [EthChainId.MOONBEAM]: {\n name: 'Moonbeam',\n slug: 'moonbeam',\n chainId: EthChainId.MOONBEAM,\n variation: EthVariation.SUBSTRATE,\n priceTokenAddress: '0xacc15dc74880c9944775448304b263d191c6077f', // WGLMR\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0xacc15dc74880c9944775448304b263d191c6077f',\n tokenSymbol: 'GLMR',\n tokenDecimals: 18,\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerUrl: 'https://moonscan.io',\n explorerApi: 'https://api-moonbeam.moonscan.io'\n },\n [EthChainId.ASTAR]: {\n name: 'Astar',\n slug: 'astar',\n chainId: EthChainId.ASTAR,\n variation: EthVariation.SUBSTRATE,\n priceTokenAddress: '0xaeaaf0e2c81af264101b9129c00f4440ccf0f720', // WASTR\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0xaeaaf0e2c81af264101b9129c00f4440ccf0f720',\n tokenSymbol: 'ASTR',\n tokenDecimals: 18,\n explorerApiType: ExplorerApiType.BLOCKSCOUT,\n explorerUrl: 'https://astar.blockscout.com',\n explorerApi: 'https://astar.blockscout.com'\n },\n [EthChainId.ASTAR_ZKEVM]: {\n name: 'Astar zkEVM',\n slug: 'astar-zkevm',\n chainId: EthChainId.ASTAR_ZKEVM,\n variation: EthVariation.POLYGON_ZKEVM,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0xE9CC37904875B459Fa5D0FE37680d36F1ED55e38',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://astar-zkevm.explorer.startale.com',\n explorerApiType: ExplorerApiType.BLOCKSCOUT,\n explorerApi: 'https://astar-zkevm.explorer.startale.com'\n },\n [EthChainId.LINEA]: {\n name: 'Linea',\n slug: 'linea',\n chainId: EthChainId.LINEA,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f', // WETH\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://lineascan.build',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api.lineascan.build'\n },\n [EthChainId.SCROLL]: {\n name: 'Scroll',\n slug: 'scroll',\n chainId: EthChainId.SCROLL,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x5300000000000000000000000000000000000004', // TODO questionable\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://scrollscan.com',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api.scrollscan.com'\n },\n [EthChainId.TAIKO]: {\n name: 'Taiko Mainnet',\n slug: 'taiko',\n chainId: EthChainId.TAIKO,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0xA51894664A773981C6C112C43ce576f315d5b1B6',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://taikoscan.io',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api.taikoscan.io'\n },\n [EthChainId.TAIKO_TESTNET]: {\n name: 'Taiko Testnet',\n slug: 'taiko-hekla-testnet',\n chainId: EthChainId.TAIKO_TESTNET,\n mainnetChainId: EthChainId.TAIKO,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0xae2C46ddb314B9Ba743C6dEE4878F151881333D9',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://hekla.taikoscan.io',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api-hekla.taikoscan.io'\n },\n [EthChainId.XLAYER_TESTNET]: {\n name: 'X Layer Testnet',\n slug: 'xlayer-sepolia',\n chainId: EthChainId.XLAYER_TESTNET,\n mainnetChainId: EthChainId.XLAYER_MAINNET,\n variation: EthVariation.POLYGON_ZKEVM,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0xa749ad81913cdc19881ebeb64631df72be708335',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://www.oklink.com/xlayer-test',\n explorerApiType: ExplorerApiType.OK_LINK,\n explorerApi: 'https://www.oklink.com/api/v5/explorer'\n },\n [EthChainId.XLAYER_MAINNET]: {\n name: 'X Layer Mainnet',\n slug: 'xlayer-mainnet',\n chainId: EthChainId.XLAYER_MAINNET,\n variation: EthVariation.POLYGON_ZKEVM,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x5a77f1443d16ee5761d310e38b62f77f726bc71c',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://www.oklink.com/xlayer',\n explorerApiType: ExplorerApiType.OK_LINK,\n explorerApi: 'https://www.oklink.com/api/v5/explorer'\n },\n [EthChainId.BLAST]: {\n name: 'Blast Mainnet',\n slug: 'blast-mainnet',\n chainId: EthChainId.BLAST,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x4300000000000000000000000000000000000004',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x4300000000000000000000000000000000000004',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://blastscan.io',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api.blastscan.io'\n },\n [EthChainId.BLAST_SEPOLIA]: {\n name: 'Blast Mainnet',\n slug: 'blast-testnet',\n chainId: EthChainId.BLAST_SEPOLIA,\n mainnetChainId: EthChainId.BLAST,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x4200000000000000000000000000000000000023',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x4200000000000000000000000000000000000023',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://sepolia.blastscan.io',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api-sepolia.blastscan.io'\n },\n [EthChainId.BASE]: {\n name: 'Base',\n slug: 'base',\n chainId: EthChainId.BASE,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://basescan.org',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api.basescan.org'\n },\n [EthChainId.ZKSYNC_ERA]: {\n name: 'zkSync Era',\n slug: 'zksync-era',\n chainId: EthChainId.ZKSYNC_ERA,\n variation: EthVariation.ZKSYNC,\n priceTokenAddress: '0x000000000000000000000000000000000000800A',\n tokenAddress: '0x000000000000000000000000000000000000800A',\n wrappedTokenAddress: '0x000000000000000000000000000000000000800A',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://explorer.zksync.io',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://block-explorer-api.mainnet.zksync.io'\n },\n [EthChainId.ZIRCUIT_TESTNET]: {\n name: 'Zircuit Testnet',\n slug: 'zircuit-testnet',\n chainId: EthChainId.ZIRCUIT_TESTNET,\n mainnetChainId: EthChainId.ZIRCUIT_MAINNET,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://explorer.testnet.zircuit.com'\n },\n [EthChainId.ZIRCUIT_MAINNET]: {\n name: 'Zircuit Mainnet',\n slug: 'zircuit',\n chainId: EthChainId.ZIRCUIT_MAINNET,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://explorer.zircuit.com'\n },\n [EthChainId.FANTOM]: {\n name: 'Fantom Opera',\n slug: 'fantom',\n chainId: EthChainId.FANTOM,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83', // WFTM\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',\n tokenSymbol: 'WFTM',\n tokenDecimals: 18,\n explorerUrl: 'https://ftmscan.com',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api.ftmscan.com'\n },\n [EthChainId.OPTIMISM]: {\n name: 'Optimism Mainnet',\n slug: 'optimism',\n chainId: EthChainId.OPTIMISM,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://optimistic.etherscan.io',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api-optimistic.etherscan.io'\n },\n [EthChainId.CRONOS]: {\n name: 'Cronos Mainnet',\n slug: 'cronos',\n chainId: EthChainId.CRONOS,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23', // WCRO\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23',\n tokenSymbol: 'CRO',\n tokenDecimals: 18,\n explorerUrl: 'https://cronoscan.com',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api.cronoscan.com'\n },\n [EthChainId.CRONOS_TESTNET]: {\n name: 'Cronos Testnet',\n slug: 'cronos-testnet',\n chainId: EthChainId.CRONOS_TESTNET,\n mainnetChainId: EthChainId.CRONOS,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x6a3173618859c7cd40faf6921b5e9eb6a76f1fd4', // WCRO\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x6a3173618859c7cd40faf6921b5e9eb6a76f1fd4',\n tokenSymbol: 'CRO',\n tokenDecimals: 18,\n explorerUrl: 'https://explorer.cronos.org/testnet'\n },\n [EthChainId.BITLAYER]: {\n name: 'Bitlayer Mainnet',\n slug: 'bitlayer',\n chainId: EthChainId.BITLAYER,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0xff204e2681a6fa0e2c3fade68a1b28fb90e4fc5f', // WBTC\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0xff204e2681a6fa0e2c3fade68a1b28fb90e4fc5f',\n tokenSymbol: 'BTC',\n tokenDecimals: 18,\n explorerUrl: 'https://www.btrscan.com',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api.btrscan.com/scan'\n },\n [EthChainId.MANTA_PACIFIC]: {\n name: 'Manta Pacific',\n slug: 'manta-pacific-mainnet',\n chainId: EthChainId.MANTA_PACIFIC,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x0Dc808adcE2099A9F62AA87D9670745AbA741746',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://pacific-explorer.manta.network',\n explorerApiType: ExplorerApiType.BLOCKSCOUT,\n explorerApi: 'https://pacific-explorer.manta.network'\n },\n [EthChainId.MANTLE]: {\n name: 'Mantle',\n slug: 'mantle',\n chainId: EthChainId.MANTLE,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8', // WMNT\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8',\n tokenSymbol: 'MNT',\n tokenDecimals: 18,\n explorerUrl: 'https://mantlescan.xyz',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api.mantlescan.xyz'\n },\n [EthChainId.B2_MAINNET]: {\n name: 'B2 Mainnet',\n slug: 'b2-mainnet',\n chainId: EthChainId.B2_MAINNET,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x4200000000000000000000000000000000000006', // WBTC\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenSymbol: 'BTC',\n tokenDecimals: 18,\n explorerUrl: 'https://explorer.bsquared.network',\n explorerApiType: ExplorerApiType.L2_SCAN,\n explorerApi: 'https://explorer.bsquared.network/api'\n },\n [EthChainId.MODE]: {\n name: 'Mode Mainnet',\n slug: 'mode-mainnet',\n chainId: EthChainId.MODE,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://modescan.io',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api.routescan.io/v2/network/mainnet/evm/34443/etherscan'\n },\n [EthChainId.BOB]: {\n name: 'Bob Mainnet',\n slug: 'bob',\n chainId: EthChainId.BOB,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://explorer.gobob.xyz',\n explorerApiType: ExplorerApiType.BLOCKSCOUT,\n explorerApi: 'https://explorer.gobob.xyz'\n },\n [EthChainId.FRAXTAL]: {\n name: 'Fraxtal Mainnet',\n slug: 'frax-mainnet',\n chainId: EthChainId.FRAXTAL,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x0000000000000000000000000000000000000000', // wfrxETH\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0xFC00000000000000000000000000000000000006',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://fraxscan.com',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api.fraxscan.com'\n },\n [EthChainId.KUCOIN]: {\n name: 'KCC Mainnet',\n slug: 'kucoin',\n chainId: EthChainId.KUCOIN,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x4446Fc4eb47f2f6586f9fAAb68B3498F86C07521', // WCCS\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x4446Fc4eb47f2f6586f9fAAb68B3498F86C07521',\n tokenSymbol: 'KCS',\n tokenDecimals: 18,\n explorerUrl: 'https://scan.kcc.io',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://scan.kcc.io'\n },\n [EthChainId.CONFLUX]: {\n name: 'Conflux eSpace',\n slug: 'conflux-espace',\n chainId: EthChainId.CONFLUX,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x14b2d3bc65e74dae1030eafd8ac30c533c976a9b', // WCFX\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x14b2d3bc65e74dae1030eafd8ac30c533c976a9b',\n tokenSymbol: 'CFX',\n tokenDecimals: 18,\n explorerUrl: 'https://evm.confluxscan.io',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://evmapi.confluxscan.io'\n },\n [EthChainId.METIS]: {\n name: 'Metis',\n slug: 'metis',\n chainId: EthChainId.METIS,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x75cb093E4D61d2A2e65D8e0BBb01DE8d89b53481', // WMETIS\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x75cb093E4D61d2A2e65D8e0BBb01DE8d89b53481',\n tokenSymbol: 'METIS',\n tokenDecimals: 18,\n explorerUrl: 'https://explorer.metis.io',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api.routescan.io/v2/network/mainnet/evm/1088/etherscan/'\n },\n [EthChainId.BEVM]: {\n name: 'BEVM',\n slug: 'bevm',\n chainId: EthChainId.BEVM,\n variation: EthVariation.SUBSTRATE,\n priceTokenAddress: '0xB5136FEba197f5fF4B765E5b50c74db717796dcD', // WBTC\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0xB5136FEba197f5fF4B765E5b50c74db717796dcD',\n tokenSymbol: 'BTC',\n tokenDecimals: 18,\n explorerUrl: 'https://scan.bevm.io',\n explorerApiType: ExplorerApiType.BLOCKSCOUT,\n explorerApi: 'https://scan.bevm.io'\n },\n [EthChainId.MERLIN_MAINNET]: {\n name: 'Merlin Mainnet',\n slug: 'merlin',\n chainId: EthChainId.MERLIN_MAINNET,\n variation: EthVariation.POLYGON_ZKEVM,\n priceTokenAddress: '0xF6D226f9Dc15d9bB51182815b320D3fBE324e1bA', // WBTC\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0xF6D226f9Dc15d9bB51182815b320D3fBE324e1bA',\n tokenSymbol: 'BTC',\n tokenDecimals: 18,\n explorerUrl: 'https://scan.merlinchain.io',\n explorerApiType: ExplorerApiType.L2_SCAN,\n explorerApi: 'https://scan.merlinchain.io/api'\n },\n [EthChainId.CHILIZ]: {\n name: 'Chiliz',\n slug: 'chiliz',\n chainId: EthChainId.CHILIZ,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x721EF6871f1c4Efe730Dce047D40D1743B886946',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x721EF6871f1c4Efe730Dce047D40D1743B886946', // WCHZ\n tokenSymbol: 'CHZ',\n tokenDecimals: 18,\n explorerUrl: 'https://chiliscan.com',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api.routescan.io/v2/network/mainnet/evm/88888/etherscan'\n },\n [EthChainId.ZKLINK_NOVA]: {\n name: 'zkLink Nova',\n slug: 'zklink-nova',\n chainId: EthChainId.ZKLINK_NOVA,\n variation: EthVariation.ZKSYNC,\n priceTokenAddress: '0x000000000000000000000000000000000000800A',\n tokenAddress: '0x000000000000000000000000000000000000800A', //special\n wrappedTokenAddress: '0x000000000000000000000000000000000000800A',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://explorer.zklink.io',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://explorer-api.zklink.io'\n },\n [EthChainId.AURORA]: {\n name: 'Aurora',\n slug: 'aurora',\n chainId: EthChainId.AURORA,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0xC9BdeEd33CD01541e1eeD10f90519d2C06Fe3feB',\n tokenAddress: '0x000000000000000000000000000000000000800A',\n wrappedTokenAddress: '0xC9BdeEd33CD01541e1eeD10f90519d2C06Fe3feB',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://explorer.aurora.dev',\n explorerApiType: ExplorerApiType.BLOCKSCOUT,\n explorerApi: 'https://explorer.aurora.dev'\n },\n [EthChainId.SONIC_MAINNET]: {\n name: 'Sonic Mainnet',\n slug: 'sonic-mainnet',\n chainId: EthChainId.SONIC_MAINNET,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x000000000000000000000000000000000000800A',\n tokenSymbol: 'S',\n tokenDecimals: 18,\n explorerUrl: 'https://sonicscan.org',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api.sonicscan.org/api'\n },\n [EthChainId.SONIC_TESTNET]: {\n name: 'Sonic Testnet',\n slug: 'sonic-testnet',\n chainId: EthChainId.SONIC_TESTNET,\n mainnetChainId: EthChainId.SONIC_MAINNET,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x000000000000000000000000000000000000800A',\n tokenSymbol: 'S',\n tokenDecimals: 18,\n explorerUrl: 'https://testnet.sonicscan.org',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://api-testnet.sonicscan.org'\n },\n [EthChainId.SONEIUM_MAINNET]: {\n name: 'Soneium Mainnet',\n slug: 'soneium-mainnet',\n chainId: EthChainId.SONEIUM_MAINNET,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://soneium.blockscout.com',\n explorerApiType: ExplorerApiType.BLOCKSCOUT,\n explorerApi: 'https://soneium.blockscout.com'\n },\n [EthChainId.SONEIUM_TESTNET]: {\n name: 'Soneium Testnet',\n slug: 'soneium-minato',\n chainId: EthChainId.SONEIUM_TESTNET,\n mainnetChainId: EthChainId.SONEIUM_MAINNET,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x728F2745410A56620B50a6E0592743450e08Cac6',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://soneium-minato.blockscout.com',\n explorerApiType: ExplorerApiType.BLOCKSCOUT,\n explorerApi: 'https://soneium-minato.blockscout.com'\n },\n [EthChainId.CRONOS_ZKEVM]: {\n name: 'Cronos zkEVM',\n slug: 'cronos-zkevm',\n chainId: EthChainId.CRONOS_ZKEVM,\n variation: EthVariation.ZKSYNC,\n priceTokenAddress: '0x000000000000000000000000000000000000800a',\n tokenAddress: '0x000000000000000000000000000000000000800a',\n wrappedTokenAddress: '0xc1bf55ee54e16229d9b369a5502bfe5fc9f20b6d',\n tokenSymbol: 'zkCRO',\n tokenDecimals: 18,\n explorerUrl: 'https://explorer.zkevm.cronos.org',\n explorerApiType: ExplorerApiType.ETHERSCAN,\n explorerApi: 'https://explorer.zkevm.cronos.org'\n },\n [EthChainId.DERIVE]: {\n name: 'Derive Mainnet',\n slug: 'derive-mainnet',\n chainId: EthChainId.DERIVE,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x15CEcd5190A43C7798dD2058308781D0662e678E',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://explorer.lyra.finance',\n explorerApiType: ExplorerApiType.BLOCKSCOUT,\n explorerApi: 'https://explorer.lyra.finance'\n },\n [EthChainId.UNICHAIN_SEPOLIA]: {\n name: 'Unichain Sepolia',\n slug: 'unichain-sepolia',\n chainId: EthChainId.UNICHAIN_SEPOLIA,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://unichain-sepolia.blockscout.com',\n explorerApiType: ExplorerApiType.BLOCKSCOUT,\n explorerApi: 'https://unichain-sepolia.blockscout.com'\n },\n [EthChainId.CORN_MAIZENET]: {\n name: 'Corn Maizenet',\n slug: 'corn-maizenet',\n chainId: EthChainId.CORN_MAIZENET,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenSymbol: 'BTCN',\n tokenDecimals: 18,\n explorerUrl: 'https://maizenet-explorer.usecorn.com',\n explorerApiType: ExplorerApiType.BLOCKSCOUT,\n explorerApi: 'https://maizenet-explorer.usecorn.com'\n },\n [EthChainId.KARAK]: {\n name: 'Karak Mainnet',\n slug: 'karak-mainnet',\n chainId: EthChainId.KARAK,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x4200000000000000000000000000000000000006',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://explorer.karak.network',\n explorerApiType: ExplorerApiType.BLOCKSCOUT,\n explorerApi: 'https://explorer.karak.network'\n },\n [EthChainId.SEI]: {\n name: 'Sei Mainnet',\n slug: 'sei',\n chainId: EthChainId.SEI,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://seistream.app'\n },\n [EthChainId.SWELL_MAINNET]: {\n name: 'Swell Mainnet',\n slug: 'swell-mainnet',\n chainId: EthChainId.SWELL_MAINNET,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://explorer.swellnetwork.io',\n explorerApiType: ExplorerApiType.BLOCKSCOUT,\n explorerApi: 'https://explorer.swellnetwork.io'\n },\n [EthChainId.SWELL_TESTNET]: {\n name: 'Swell Testnet',\n slug: 'swell-testnet',\n chainId: EthChainId.SWELL_TESTNET,\n mainnetChainId: EthChainId.SWELL_MAINNET,\n variation: EthVariation.OPTIMISM,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenSymbol: 'ETH',\n tokenDecimals: 18,\n explorerUrl: 'https://swell-testnet-explorer.alt.technology',\n explorerApiType: ExplorerApiType.BLOCKSCOUT,\n explorerApi: 'https://swell-testnet-explorer.alt.technology'\n },\n [EthChainId.TAC_TESTNET]: {\n name: 'TAC Testnet',\n slug: 'tac-testnet',\n chainId: EthChainId.TAC_TESTNET,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x392D1cCB04d25fCBcA7D4fc0E429Dbc1F9fEe73F',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x392D1cCB04d25fCBcA7D4fc0E429Dbc1F9fEe73F',\n tokenSymbol: 'TAC',\n tokenDecimals: 18,\n explorerUrl: 'https://turin.explorer.tac.build',\n explorerApiType: ExplorerApiType.BLOCKSCOUT,\n explorerApi: 'https://turin.explorer.tac.build'\n },\n [EthChainId.MONAD_TESTNET]: {\n name: 'Monad Testnet',\n slug: 'monad-testnet',\n chainId: EthChainId.MONAD_TESTNET,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x760AfE86e5de5fa0Ee542fc7B7B713e1c5425701',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x760AfE86e5de5fa0Ee542fc7B7B713e1c5425701',\n tokenSymbol: 'MON',\n tokenDecimals: 18,\n explorerUrl: 'https://testnet.monadexplorer.com',\n explorerApiType: ExplorerApiType.UNKNOWN\n },\n [EthChainId.BERACHAIN]: {\n name: 'Berachain',\n slug: 'berachain',\n chainId: EthChainId.BERACHAIN,\n variation: EthVariation.DEFAULT,\n priceTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenAddress: '0x0000000000000000000000000000000000000000',\n wrappedTokenAddress: '0x0000000000000000000000000000000000000000',\n tokenSymbol: 'BERA',\n tokenDecimals: 18,\n explorerUrl: 'https://berascan.com',\n explorerApi: 'https://api.berascan.com',\n explorerApiType: ExplorerApiType.ETHERSCAN\n },\n}\n\ntype ScanUrlSubType = 'block' | 'address' | 'tx' | 'token'\n\nfunction getEVMChainScanUrl(chainId: string | number, hash: string, subtype: ScanUrlSubType) {\n // TODO l2scan address might be different\n let subtypeStr: string = subtype\n const supportedChain = EthChainInfo[chainId as ChainId]\n if (!supportedChain) {\n return\n }\n if (supportedChain.explorerApiType === ExplorerApiType.L2_SCAN) {\n if (subtype === 'block') {\n subtypeStr = 'blocks'\n }\n }\n return `${supportedChain.explorerUrl}/${subtypeStr}/${hash}`\n}\n\n/**\n * BTC chains\n */\nexport const BTCChainInfo: Record<BTCChainId | string, ChainInfo> = {\n [BTCChainId.BTC_MAINNET]: {\n name: 'Bitcoin Mainnet',\n chainId: BTCChainId.BTC_MAINNET,\n explorerUrl: 'https://mempool.space'\n },\n [BTCChainId.BTC_TESTNET]: {\n name: 'Bitcoin Mainnet',\n chainId: BTCChainId.BTC_TESTNET,\n explorerUrl: 'https://mempool.space/testnet4'\n }\n}\n\nconst BtcSubTypePaths: Record<ScanUrlSubType, string | undefined> = {\n block: 'block',\n address: 'address',\n tx: 'tx',\n token: undefined\n}\n\nfunction getBtcChainScanUrl(chainId: string | number, hash: string, subtype: ScanUrlSubType) {\n const hostName = BTCChainInfo[chainId]?.explorerUrl\n const subPath = BtcSubTypePaths[subtype]\n if (!hostName || !subPath) {\n return\n }\n return `${hostName}/${subPath}/${hash}`\n}\n\n/**\n * Aptos chains\n */\nexport const AptosChainInfo: Record<\n AptosChainId | string,\n ChainInfo & {\n suffix: string\n }\n> = {\n [AptosChainId.APTOS_MAINNET]: {\n name: 'Aptos Mainnet',\n chainId: AptosChainId.APTOS_MAINNET,\n explorerUrl: 'https://explorer.aptoslabs.com',\n suffix: '?network=mainnet'\n },\n [AptosChainId.APTOS_TESTNET]: {\n name: 'Aptos Testenet',\n chainId: AptosChainId.APTOS_TESTNET,\n explorerUrl: 'https://explorer.aptoslabs.com',\n suffix: '?network=mainnet'\n },\n [AptosChainId.APTOS_MOVEMENT_MAINNET]: {\n name: 'Movement Mainnet Aptos',\n chainId: AptosChainId.APTOS_MOVEMENT_MAINNET,\n explorerUrl: 'https://explorer.movementnetwork.xyz',\n suffix: '?network=mainnet'\n },\n [AptosChainId.APTOS_MOVEMENT_TESTNET]: {\n name: 'Movement Testnet Aptos',\n chainId: AptosChainId.APTOS_MOVEMENT_TESTNET,\n explorerUrl: 'https://explorer.movementnetwork.xyz',\n suffix: '?network=testnet'\n }\n}\nconst AptosSubTypePaths: Record<ScanUrlSubType, string | undefined> = {\n block: 'block',\n address: 'account',\n tx: 'txn',\n token: undefined\n}\nfunction getAptosChainScanUrl(chainId: string | number, hash: string, subtype: ScanUrlSubType) {\n const { explorerUrl, suffix } = AptosChainInfo[chainId]\n const subPath = AptosSubTypePaths[subtype]\n if (!subPath) {\n return\n }\n return `${explorerUrl}/${subPath}/${hash}${suffix}`\n}\n\n/**\n * Solana\n */\nexport const SolanaChainInfo: Record<\n SolanaChainId | string,\n ChainInfo & {\n suffix: string\n }\n> = {\n [SolanaChainId.SOLANA_MAINNET]: {\n name: 'Solana Mainnet',\n chainId: SolanaChainId.SOLANA_MAINNET,\n explorerUrl: 'https://solscan.io/',\n suffix: ''\n },\n [SolanaChainId.SOLANA_TESTNET]: {\n name: 'Solana Testnet',\n chainId: SolanaChainId.SOLANA_MAINNET,\n explorerUrl: 'https://solscan.io/',\n suffix: '?cluster=testnet'\n }\n}\n\nconst SolanaSubTypePaths: Record<ScanUrlSubType, string | undefined> = {\n block: 'block',\n address: 'address',\n tx: 'tx',\n token: 'token'\n}\n\nfunction getSolanaChainScanUrl(chainId: string | number, hash: string, subtype: ScanUrlSubType) {\n const { explorerUrl, suffix } = SolanaChainInfo[chainId]\n const subPath = SolanaSubTypePaths[subtype]\n if (!subPath) {\n return\n }\n return `${explorerUrl}${subPath}/${hash}${suffix}`\n}\n\n/**\n * Sui\n */\nconst SuiChainInfo: Record<SuiChainId | string, ChainInfo> = {\n [SuiChainId.SUI_MAINNET]: {\n name: 'Sui Mainnet',\n chainId: SuiChainId.SUI_MAINNET,\n explorerUrl: 'https://suivision.xyz'\n },\n [SuiChainId.SUI_TESTNET]: {\n name: 'Sui Testnet',\n chainId: SuiChainId.SUI_TESTNET,\n explorerUrl: 'https://testnet.suivision.xyz'\n }\n}\nconst SuibSubTypePaths: Record<ScanUrlSubType, string | undefined> = {\n block: 'checkpoint',\n address: 'account',\n tx: 'txblock',\n token: undefined\n}\n\nfunction getSuiChainScanUrl(chainId: string | number, hash: string, subtype: ScanUrlSubType) {\n const { explorerUrl } = SuiChainInfo[chainId]\n const subPath = SuibSubTypePaths[subtype]\n if (!subPath) {\n return\n }\n return `${explorerUrl}/${subPath}/${hash}`\n}\n\n/**\n * Generate scan url of target chain and sub types.\n * @param chainId\n * @param hash\n * @param subtype\n * @returns\n */\nexport function getChainExternalUrl(\n chainId?: string | number,\n hash?: string,\n subtype?: ScanUrlSubType\n): string | undefined {\n if (!chainId || !hash || !subtype) {\n return\n }\n const chainIdStr = chainId.toString()\n if (Object.keys(EthChainInfo).includes(chainIdStr)) {\n // EVM\n return getEVMChainScanUrl(chainIdStr, hash, subtype)\n } else if (Object.keys(BTCChainInfo).includes(chainIdStr)) {\n // BTC\n return getBtcChainScanUrl(chainIdStr, hash, subtype)\n } else if (Object.keys(AptosChainInfo).includes(chainIdStr)) {\n // Aptos\n return getAptosChainScanUrl(chainIdStr, hash, subtype)\n } else if (Object.keys(SolanaChainInfo).includes(chainIdStr)) {\n // Solana\n return getSolanaChainScanUrl(chainIdStr, hash, subtype)\n } else if (Object.keys(SuiChainInfo).includes(chainIdStr)) {\n // Sui\n return getSuiChainScanUrl(chainIdStr, hash, subtype)\n }\n return\n}\n\nexport function getChainBlockscoutUrl(\n chainId?: string | number,\n hash?: string,\n subtype?: ScanUrlSubType\n): string | undefined {\n if (!chainId || !hash || !subtype) {\n return\n }\n const supportedChain = EthChainInfo[chainId as ChainId]\n if (!supportedChain) {\n return\n }\n if (!supportedChain.blockscoutUrl) {\n return\n }\n return `${supportedChain.blockscoutUrl}/${subtype}/${hash}`\n}\n","import { ChainId } from './chain-id'\nimport { EthChainInfo } from './chain-info'\n\nexport const CHAIN_MAP: Record<string, string> = {\n [ChainId.APTOS_MOVEMENT_MAINNET]: 'Movement Mainnet',\n [ChainId.APTOS_MOVEMENT_TESTNET]: 'Movement Testnet',\n [ChainId.BTC_MAINNET]: 'Bitcoin Mainnet',\n [ChainId.BTC_TESTNET]: 'Bitcoin Testnet'\n}\n\nfor (const [key, value] of Object.entries(ChainId)) {\n if (CHAIN_MAP[value]) {\n continue\n }\n\n const chainInfo = EthChainInfo[value]\n if (chainInfo) {\n CHAIN_MAP[value] = chainInfo.name\n continue\n }\n\n const parts = key.split('_')\n CHAIN_MAP[value] = parts\n .map((part, index) => {\n return part[0] + part.slice(1).toLowerCase()\n })\n .join(' ')\n}\n\nexport function getChainName(chainId: string | number | null | undefined): string {\n if (typeof chainId === 'number') {\n chainId = chainId.toString()\n }\n if (chainId) {\n const name = CHAIN_MAP[chainId]\n if (name) {\n return name\n }\n }\n return chainId || ''\n}\n\n/**\n * @deprecated use getChainExternalUrl instead TODO(dazhan) to clean up\n * @param chainId\n * @param hash\n * @param subtype\n * @returns\n */\nexport function getChainScanUrl(\n chainId?: string | number,\n hash?: string,\n subtype?: 'block' | 'address' | 'transaction'\n): string | undefined {\n const chainName = getChainName(chainId)\n if (chainName === 'Ethereum') {\n if (subtype === 'block') {\n return `https://etherscan.io/block/${hash}`\n } else if (subtype === 'address') {\n return `https://etherscan.io/address/${hash}`\n } else {\n return `https://etherscan.io/tx/${hash}`\n }\n }\n if (chainName === 'Polygon') {\n if (subtype === 'block') {\n return `https://polygonscan.com/block/${hash}`\n } else if (subtype === 'address') {\n return `https://polygonscan.com/address/${hash}`\n } else {\n return `https://polygonscan.com/tx/${hash}`\n }\n }\n if (chainName.startsWith('Aptos ')) {\n let suffix = '?network=mainnet'\n if (chainName.includes('Testnet')) {\n suffix = '?network=testnet'\n } else if (chainName.includes('Devnet')) {\n suffix = '?network=devnet'\n }\n\n if (subtype === 'block') {\n return `https://explorer.aptoslabs.com/block/${hash}/${suffix}`\n } else if (subtype === 'address') {\n return `https://explorer.aptoslabs.com/account/${hash}/${suffix}`\n } else {\n return `https://explorer.aptoslabs.com/txn/${hash}/${suffix}`\n }\n }\n if (chainName.startsWith('Solana ')) {\n if (subtype === 'block') {\n return `https://explorer.solana.com/block/${hash}`\n } else if (subtype === 'address') {\n return `https://explorer.solana.com/address/${hash}`\n } else {\n return `https://explorer.solana.io/tx/${hash}`\n }\n }\n if (chainName.startsWith('Sui ')) {\n if (subtype === 'block') {\n return `https://suivision.xyz/checkpoint/${hash}`\n } else if (subtype === 'address') {\n return `https://suivision.xyz/account/${hash}`\n } else {\n return `https://suivision.xyz/txblock/${hash}`\n }\n }\n return undefined\n}\n","export * from './chain-id'\nexport * from './chain-info'\nexport * from './chain-name'\n"],"mappings":";2RAGA,IAAYA,GAAZ,SAAYA,EAAS,CACnBA,EAAA,OAAA,SACAA,EAAA,IAAA,MACAA,EAAA,MAAA,QACAA,EAAA,IAAA,MACAA,EAAA,IAAA,KACF,GANYA,IAASC,EAAA,UAATD,EAAS,CAAA,EAAA,EAQrB,IAAYE,GAAZ,SAAYA,EAAU,CACpBA,EAAA,SAAA,IACAA,EAAA,SAAA,KACAA,EAAA,OAAA,KACAA,EAAA,IAAA,KACAA,EAAA,YAAA,KACAA,EAAA,QAAA,MACAA,EAAA,cAAA,MACAA,EAAA,eAAA,MACAA,EAAA,eAAA,MACAA,EAAA,eAAA,MACAA,EAAA,cAAA,MACAA,EAAA,cAAA,QACAA,EAAA,WAAA,MACAA,EAAA,OAAA,MACAA,EAAA,QAAA,MACAA,EAAA,OAAA,MACAA,EAAA,aAAA,MACAA,EAAA,WAAA,MACAA,EAAA,eAAA,MACAA,EAAA,MAAA,MACAA,EAAA,OAAA,MACAA,EAAA,cAAA,OACAA,EAAA,QAAA,OACAA,EAAA,MAAA,OACAA,EAAA,SAAA,OACAA,EAAA,iBAAA,OACAA,EAAA,IAAA,OACAA,EAAA,gBAAA,OACAA,EAAA,gBAAA,OACAA,EAAA,cAAA,OACAA,EAAA,cAAA,OACAA,EAAA,YAAA,OACAA,EAAA,MAAA,OACAA,EAAA,KAAA,QACAA,EAAA,eAAA,OACAA,EAAA,OAAA,OACAA,EAAA,KAAA,OACAA,EAAA,cAAA,QACAA,EAAA,QAAA,QACAA,EAAA,YAAA,OACAA,EAAA,KAAA,QACAA,EAAA,SAAA,QACAA,EAAA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iCD,CAAI,GACnCC,IAAY,UACd,mCAAmCD,CAAI,GAEvC,8BAA8BA,CAAI,GAG7C,GAAIE,EAAU,WAAW,QAAQ,EAAG,CAClC,IAAIC,EAAS,mBAOb,OANID,EAAU,SAAS,SAAS,EAC9BC,EAAS,mBACAD,EAAU,SAAS,QAAQ,IACpCC,EAAS,mBAGPF,IAAY,QACP,wCAAwCD,CAAI,IAAIG,CAAM,GACpDF,IAAY,UACd,0CAA0CD,CAAI,IAAIG,CAAM,GAExD,sCAAsCH,CAAI,IAAIG,CAAM,GAG/D,GAAID,EAAU,WAAW,SAAS,EAChC,OAAID,IAAY,QACP,qCAAqCD,CAAI,GACvCC,IAAY,UACd,uCAAuCD,CAAI,GAE3C,iCAAiCA,CAAI,GAGhD,GAAIE,EAAU,WAAW,MAAM,EAC7B,OAAID,IAAY,QACP,oCAAoCD,CAAI,GACtCC,IAAY,UACd,iCAAiCD,CAAI,GAErC,iCAAiCA,CAAI,EAIlD,CA3DgBF,EAAAC,EAAA,mBAAhBX,EAAA,gBAAAW,kgBCjDAK,EAAA,IAAAC,CAAA,EACAD,EAAA,IAAAC,CAAA,EACAD,EAAA,IAAAC,CAAA","names":["ChainType","exports","EthChainId","AptosChainId","SuiChainId","SolanaChainId","FuelChainId","CosmosChainId","StarknetChainId","BTCChainId","getChainType","chainId","id","__name","chain_id_1","ExplorerApiType","exports","EthVariation","getEVMChainScanUrl","chainId","hash","subtype","subtypeStr","supportedChain","__name","BtcSubTypePaths","getBtcChainScanUrl","hostName","subPath","AptosSubTypePaths","getAptosChainScanUrl","explorerUrl","suffix","SolanaSubTypePaths","getSolanaChainScanUrl","SuiChainInfo","SuibSubTypePaths","getSuiChainScanUrl","getChainExternalUrl","chainIdStr","getChainBlockscoutUrl","chain_id_1","chain_info_1","exports","key","value","chainInfo","parts","part","index","getChainName","chainId","name","__name","getChainScanUrl","hash","subtype","chainName","suffix","__exportStar","exports"]}
@@ -1,3 +0,0 @@
1
- import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{a as Yn}from"./chunk-TSEQGMTN.js";import{i as Jn}from"./chunk-VJVZRE4N.js";import{a as gt,d as Kn}from"./chunk-ZBVXDY4B.js";import{a as Xn}from"./chunk-NLNLOORO.js";import{$b as qt,_b as bt,ac as Ln,bc as Hr,cc as Ne,dc as xe,ec as Y,fc as Te,ic as ze,jc as Wn,lc as Fn,nc as Hn,uc as z,vc as Xr}from"./chunk-LZ2L3BVP.js";import{a as i,f as Gn}from"./chunk-G5BIPHMS.js";function Kr(n){if(n.length>=255)throw new TypeError("Alphabet too long");let e=new Uint8Array(256);for(let f=0;f<e.length;f++)e[f]=255;for(let f=0;f<n.length;f++){let p=n.charAt(f),m=p.charCodeAt(0);if(e[m]!==255)throw new TypeError(p+" is ambiguous");e[m]=f}let t=n.length,r=n.charAt(0),s=Math.log(t)/Math.log(256),u=Math.log(256)/Math.log(t);function a(f){if(f instanceof Uint8Array||(ArrayBuffer.isView(f)?f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):Array.isArray(f)&&(f=Uint8Array.from(f))),!(f instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(f.length===0)return"";let p=0,m=0,S=0,_=f.length;for(;S!==_&&f[S]===0;)S++,p++;let v=(_-S)*u+1>>>0,I=new Uint8Array(v);for(;S!==_;){let L=f[S],Ee=0;for(let ce=v-1;(L!==0||Ee<m)&&ce!==-1;ce--,Ee++)L+=256*I[ce]>>>0,I[ce]=L%t>>>0,L=L/t>>>0;if(L!==0)throw new Error("Non-zero carry");m=Ee,S++}let B=v-m;for(;B!==v&&I[B]===0;)B++;let $e=r.repeat(p);for(;B<v;++B)$e+=n.charAt(I[B]);return $e}i(a,"encode");function c(f){if(typeof f!="string")throw new TypeError("Expected String");if(f.length===0)return new Uint8Array;let p=0,m=0,S=0;for(;f[p]===r;)m++,p++;let _=(f.length-p)*s+1>>>0,v=new Uint8Array(_);for(;f[p];){let L=e[f.charCodeAt(p)];if(L===255)return;let Ee=0;for(let ce=_-1;(L!==0||Ee<S)&&ce!==-1;ce--,Ee++)L+=t*v[ce]>>>0,v[ce]=L%256>>>0,L=L/256>>>0;if(L!==0)throw new Error("Non-zero carry");S=Ee,p++}let I=_-S;for(;I!==_&&v[I]===0;)I++;let B=new Uint8Array(m+(_-I)),$e=m;for(;I!==_;)B[$e++]=v[I++];return B}i(c,"decodeUnsafe");function l(f){let p=c(f);if(p)return p;throw new Error("Non-base"+t+" character")}return i(l,"decode"),{encode:a,decodeUnsafe:c,decode:l}}i(Kr,"base");var Zn=Kr;var Jr="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Gt=Zn(Jr);var le=i(n=>Gt.encode(n),"toBase58"),Z=i(n=>Gt.decode(n),"fromBase58");function V(n){return Uint8Array.from(atob(n),e=>e.charCodeAt(0))}i(V,"fromBase64");var Lt=8192;function D(n){if(n.length<Lt)return btoa(String.fromCharCode(...n));let e="";for(var t=0;t<n.length;t+=Lt){let r=n.slice(t,t+Lt);e+=String.fromCharCode(...r)}return btoa(e)}i(D,"toBase64");function Ve(n){let e=n.startsWith("0x")?n.slice(2):n,t=e.length%2===0?e:`0${e}`,r=t.match(/[0-9a-fA-F]{2}/g)?.map(s=>parseInt(s,16))??[];if(r.length!==t.length/2)throw new Error(`Invalid hex string ${n}`);return Uint8Array.from(r)}i(Ve,"fromHex");function ue(n){return n.reduce((e,t)=>e+t.toString(16).padStart(2,"0"),"")}i(ue,"toHex");function qe(n){let e=[],t=0;if(n===0)return[0];for(;n>0;)e[t]=n&127,(n>>=7)&&(e[t]|=128),t+=1;return e}i(qe,"ulebEncode");function Qn(n){let e=0,t=0,r=0;for(;;){let s=n[r];if(r+=1,e|=(s&127)<<t,!(s&128))break;t+=7}return{value:e,length:r}}i(Qn,"ulebDecode");var vt=class{static{i(this,"BcsReader")}constructor(e){this.bytePosition=0,this.dataView=new DataView(e.buffer)}shift(e){return this.bytePosition+=e,this}read8(){let e=this.dataView.getUint8(this.bytePosition);return this.shift(1),e}read16(){let e=this.dataView.getUint16(this.bytePosition,!0);return this.shift(2),e}read32(){let e=this.dataView.getUint32(this.bytePosition,!0);return this.shift(4),e}read64(){let e=this.read32(),r=this.read32().toString(16)+e.toString(16).padStart(8,"0");return BigInt("0x"+r).toString(10)}read128(){let e=BigInt(this.read64()),r=BigInt(this.read64()).toString(16)+e.toString(16).padStart(16,"0");return BigInt("0x"+r).toString(10)}read256(){let e=BigInt(this.read128()),r=BigInt(this.read128()).toString(16)+e.toString(16).padStart(32,"0");return BigInt("0x"+r).toString(10)}readBytes(e){let t=this.bytePosition+this.dataView.byteOffset,r=new Uint8Array(this.dataView.buffer,t,e);return this.shift(e),r}readULEB(){let e=this.bytePosition+this.dataView.byteOffset,t=new Uint8Array(this.dataView.buffer,e),{value:r,length:s}=Qn(t);return this.shift(s),r}readVec(e){let t=this.readULEB(),r=[];for(let s=0;s<t;s++)r.push(e(this,s,t));return r}};function Wt(n,e){switch(e){case"base58":return le(n);case"base64":return D(n);case"hex":return ue(n);default:throw new Error("Unsupported encoding, supported values are: base64, hex")}}i(Wt,"encodeStr");function wt(n,e=["<",">"]){let[t,r]=e,s=[],u="",a=0;for(let c=0;c<n.length;c++){let l=n[c];if(l===t&&a++,l===r&&a--,a===0&&l===","){s.push(u.trim()),u="";continue}u+=l}return s.push(u.trim()),s}i(wt,"splitGenericParameters");var kt=class{static{i(this,"BcsWriter")}constructor({initialSize:e=1024,maxSize:t=1/0,allocateSize:r=1024}={}){this.bytePosition=0,this.size=e,this.maxSize=t,this.allocateSize=r,this.dataView=new DataView(new ArrayBuffer(e))}ensureSizeOrGrow(e){let t=this.bytePosition+e;if(t>this.size){let r=Math.min(this.maxSize,this.size+this.allocateSize);if(t>r)throw new Error(`Attempting to serialize to BCS, but buffer does not have enough size. Allocated size: ${this.size}, Max size: ${this.maxSize}, Required size: ${t}`);this.size=r;let s=new ArrayBuffer(this.size);new Uint8Array(s).set(new Uint8Array(this.dataView.buffer)),this.dataView=new DataView(s)}}shift(e){return this.bytePosition+=e,this}write8(e){return this.ensureSizeOrGrow(1),this.dataView.setUint8(this.bytePosition,Number(e)),this.shift(1)}write16(e){return this.ensureSizeOrGrow(2),this.dataView.setUint16(this.bytePosition,Number(e),!0),this.shift(2)}write32(e){return this.ensureSizeOrGrow(4),this.dataView.setUint32(this.bytePosition,Number(e),!0),this.shift(4)}write64(e){return Ft(BigInt(e),8).forEach(t=>this.write8(t)),this}write128(e){return Ft(BigInt(e),16).forEach(t=>this.write8(t)),this}write256(e){return Ft(BigInt(e),32).forEach(t=>this.write8(t)),this}writeULEB(e){return qe(e).forEach(t=>this.write8(t)),this}writeVec(e,t){return this.writeULEB(e.length),Array.from(e).forEach((r,s)=>t(this,r,s,e.length)),this}*[Symbol.iterator](){for(let e=0;e<this.bytePosition;e++)yield this.dataView.getUint8(e);return this.toBytes()}toBytes(){return new Uint8Array(this.dataView.buffer.slice(0,this.bytePosition))}toString(e){return Wt(this.toBytes(),e)}};function Ft(n,e){let t=new Uint8Array(e),r=0;for(;n>0;)t[r]=Number(n%BigInt(256)),n=n/BigInt(256),r+=1;return t}i(Ft,"toLittleEndian");var er=i(n=>{throw TypeError(n)},"__typeError"),tr=i((n,e,t)=>e.has(n)||er("Cannot "+t),"__accessCheck"),Q=i((n,e,t)=>(tr(n,e,"read from private field"),t?t.call(n):e.get(n)),"__privateGet"),_t=i((n,e,t)=>e.has(n)?er("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),"__privateAdd"),It=i((n,e,t,r)=>(tr(n,e,"write to private field"),r?r.call(n,t):e.set(n,t),t),"__privateSet"),Ge,Ye,St,ge,Yr=class nr{static{i(this,"_BcsType")}constructor(e){_t(this,Ge),_t(this,Ye),this.name=e.name,this.read=e.read,this.serializedSize=e.serializedSize??(()=>null),It(this,Ge,e.write),It(this,Ye,e.serialize??((t,r)=>{let s=new kt({initialSize:this.serializedSize(t)??void 0,...r});return Q(this,Ge).call(this,t,s),s.toBytes()})),this.validate=e.validate??(()=>{})}write(e,t){this.validate(e),Q(this,Ge).call(this,e,t)}serialize(e,t){return this.validate(e),new Et(this,Q(this,Ye).call(this,e,t))}parse(e){let t=new vt(e);return this.read(t)}fromHex(e){return this.parse(Ve(e))}fromBase58(e){return this.parse(Z(e))}fromBase64(e){return this.parse(V(e))}transform({name:e,input:t,output:r,validate:s}){return new nr({name:e??this.name,read:i(u=>r(this.read(u)),"read"),write:i((u,a)=>Q(this,Ge).call(this,t(u),a),"write"),serializedSize:i(u=>this.serializedSize(t(u)),"serializedSize"),serialize:i((u,a)=>Q(this,Ye).call(this,t(u),a),"serialize"),validate:i(u=>{s?.(u),this.validate(t(u))},"validate")})}};Ge=new WeakMap;Ye=new WeakMap;var ee=Yr,rr=Symbol.for("@mysten/serialized-bcs");function Le(n){return!!n&&typeof n=="object"&&n[rr]===!0}i(Le,"isSerializedBcs");var Et=class{static{i(this,"SerializedBcs")}constructor(e,t){_t(this,St),_t(this,ge),It(this,St,e),It(this,ge,t)}get[rr](){return!0}toBytes(){return Q(this,ge)}toHex(){return ue(Q(this,ge))}toBase64(){return D(Q(this,ge))}toBase58(){return le(Q(this,ge))}parse(){return Q(this,St).parse(Q(this,ge))}};St=new WeakMap;ge=new WeakMap;function Ze({size:n,...e}){return new ee({...e,serializedSize:i(()=>n,"serializedSize")})}i(Ze,"fixedSizeBcsType");function xt({readMethod:n,writeMethod:e,...t}){return Ze({...t,read:i(r=>r[n](),"read"),write:i((r,s)=>s[e](r),"write"),validate:i(r=>{if(r<0||r>t.maxValue)throw new TypeError(`Invalid ${t.name} value: ${r}. Expected value in range 0-${t.maxValue}`);t.validate?.(r)},"validate")})}i(xt,"uIntBcsType");function Tt({readMethod:n,writeMethod:e,...t}){return Ze({...t,read:i(r=>r[n](),"read"),write:i((r,s)=>s[e](BigInt(r)),"write"),validate:i(r=>{let s=BigInt(r);if(s<0||s>t.maxValue)throw new TypeError(`Invalid ${t.name} value: ${s}. Expected value in range 0-${t.maxValue}`);t.validate?.(s)},"validate")})}i(Tt,"bigUIntBcsType");function sr({serialize:n,...e}){let t=new ee({...e,serialize:n,write:i((r,s)=>{for(let u of t.serialize(r).toBytes())s.write8(u)},"write")});return t}i(sr,"dynamicSizeBcsType");function ir({toBytes:n,fromBytes:e,...t}){return new ee({...t,read:i(r=>{let s=r.readULEB(),u=r.readBytes(s);return e(u)},"read"),write:i((r,s)=>{let u=n(r);s.writeULEB(u.length);for(let a=0;a<u.length;a++)s.write8(u[a])},"write"),serialize:i(r=>{let s=n(r),u=qe(s.length),a=new Uint8Array(u.length+s.length);return a.set(u,0),a.set(s,u.length),a},"serialize"),validate:i(r=>{if(typeof r!="string")throw new TypeError(`Invalid ${t.name} value: ${r}. Expected string`);t.validate?.(r)},"validate")})}i(ir,"stringLikeBcsType");function or(n){let e=null;function t(){return e||(e=n()),e}return i(t,"getType"),new ee({name:"lazy",read:i(r=>t().read(r),"read"),serializedSize:i(r=>t().serializedSize(r),"serializedSize"),write:i((r,s)=>t().write(r,s),"write"),serialize:i((r,s)=>t().serialize(r,s).toBytes(),"serialize")})}i(or,"lazyBcsType");var o={u8(n){return xt({name:"u8",readMethod:"read8",writeMethod:"write8",size:1,maxValue:2**8-1,...n})},u16(n){return xt({name:"u16",readMethod:"read16",writeMethod:"write16",size:2,maxValue:2**16-1,...n})},u32(n){return xt({name:"u32",readMethod:"read32",writeMethod:"write32",size:4,maxValue:2**32-1,...n})},u64(n){return Tt({name:"u64",readMethod:"read64",writeMethod:"write64",size:8,maxValue:2n**64n-1n,...n})},u128(n){return Tt({name:"u128",readMethod:"read128",writeMethod:"write128",size:16,maxValue:2n**128n-1n,...n})},u256(n){return Tt({name:"u256",readMethod:"read256",writeMethod:"write256",size:32,maxValue:2n**256n-1n,...n})},bool(n){return Ze({name:"bool",size:1,read:i(e=>e.read8()===1,"read"),write:i((e,t)=>t.write8(e?1:0),"write"),...n,validate:i(e=>{if(n?.validate?.(e),typeof e!="boolean")throw new TypeError(`Expected boolean, found ${typeof e}`)},"validate")})},uleb128(n){return sr({name:"uleb128",read:i(e=>e.readULEB(),"read"),serialize:i(e=>Uint8Array.from(qe(e)),"serialize"),...n})},bytes(n,e){return Ze({name:`bytes[${n}]`,size:n,read:i(t=>t.readBytes(n),"read"),write:i((t,r)=>{let s=new Uint8Array(t);for(let u=0;u<n;u++)r.write8(s[u]??0)},"write"),...e,validate:i(t=>{if(e?.validate?.(t),!t||typeof t!="object"||!("length"in t))throw new TypeError(`Expected array, found ${typeof t}`);if(t.length!==n)throw new TypeError(`Expected array of length ${n}, found ${t.length}`)},"validate")})},string(n){return ir({name:"string",toBytes:i(e=>new TextEncoder().encode(e),"toBytes"),fromBytes:i(e=>new TextDecoder().decode(e),"fromBytes"),...n})},fixedArray(n,e,t){return new ee({name:`${e.name}[${n}]`,read:i(r=>{let s=new Array(n);for(let u=0;u<n;u++)s[u]=e.read(r);return s},"read"),write:i((r,s)=>{for(let u of r)e.write(u,s)},"write"),...t,validate:i(r=>{if(t?.validate?.(r),!r||typeof r!="object"||!("length"in r))throw new TypeError(`Expected array, found ${typeof r}`);if(r.length!==n)throw new TypeError(`Expected array of length ${n}, found ${r.length}`)},"validate")})},option(n){return o.enum(`Option<${n.name}>`,{None:null,Some:n}).transform({input:i(e=>e==null?{None:!0}:{Some:e},"input"),output:i(e=>e.$kind==="Some"?e.Some:null,"output")})},vector(n,e){return new ee({name:`vector<${n.name}>`,read:i(t=>{let r=t.readULEB(),s=new Array(r);for(let u=0;u<r;u++)s[u]=n.read(t);return s},"read"),write:i((t,r)=>{r.writeULEB(t.length);for(let s of t)n.write(s,r)},"write"),...e,validate:i(t=>{if(e?.validate?.(t),!t||typeof t!="object"||!("length"in t))throw new TypeError(`Expected array, found ${typeof t}`)},"validate")})},tuple(n,e){return new ee({name:`(${n.map(t=>t.name).join(", ")})`,serializedSize:i(t=>{let r=0;for(let s=0;s<n.length;s++){let u=n[s].serializedSize(t[s]);if(u==null)return null;r+=u}return r},"serializedSize"),read:i(t=>{let r=[];for(let s of n)r.push(s.read(t));return r},"read"),write:i((t,r)=>{for(let s=0;s<n.length;s++)n[s].write(t[s],r)},"write"),...e,validate:i(t=>{if(e?.validate?.(t),!Array.isArray(t))throw new TypeError(`Expected array, found ${typeof t}`);if(t.length!==n.length)throw new TypeError(`Expected array of length ${n.length}, found ${t.length}`)},"validate")})},struct(n,e,t){let r=Object.entries(e);return new ee({name:n,serializedSize:i(s=>{let u=0;for(let[a,c]of r){let l=c.serializedSize(s[a]);if(l==null)return null;u+=l}return u},"serializedSize"),read:i(s=>{let u={};for(let[a,c]of r)u[a]=c.read(s);return u},"read"),write:i((s,u)=>{for(let[a,c]of r)c.write(s[a],u)},"write"),...t,validate:i(s=>{if(t?.validate?.(s),typeof s!="object"||s==null)throw new TypeError(`Expected object, found ${typeof s}`)},"validate")})},enum(n,e,t){let r=Object.entries(e);return new ee({name:n,read:i(s=>{let u=s.readULEB(),a=r[u];if(!a)throw new TypeError(`Unknown value ${u} for enum ${n}`);let[c,l]=a;return{[c]:l?.read(s)??!0,$kind:c}},"read"),write:i((s,u)=>{let[a,c]=Object.entries(s).filter(([l])=>Object.hasOwn(e,l))[0];for(let l=0;l<r.length;l++){let[f,p]=r[l];if(f===a){u.writeULEB(l),p?.write(c,u);return}}},"write"),...t,validate:i(s=>{if(t?.validate?.(s),typeof s!="object"||s==null)throw new TypeError(`Expected object, found ${typeof s}`);let u=Object.keys(s).filter(c=>s[c]!==void 0&&Object.hasOwn(e,c));if(u.length!==1)throw new TypeError(`Expected object with one key, but found ${u.length} for type ${n}}`);let[a]=u;if(!Object.hasOwn(e,a))throw new TypeError(`Invalid enum variant ${a}`)},"validate")})},map(n,e){return o.vector(o.tuple([n,e])).transform({name:`Map<${n.name}, ${e.name}>`,input:i(t=>[...t.entries()],"input"),output:i(t=>{let r=new Map;for(let[s,u]of t)r.set(s,u);return r},"output")})},lazy(n){return or(n)}};var Ht;function Zr(n){return{lang:n?.lang??Ht?.lang,message:n?.message,abortEarly:n?.abortEarly??Ht?.abortEarly,abortPipeEarly:n?.abortPipeEarly??Ht?.abortPipeEarly}}i(Zr,"getGlobalConfig");var Qr;function es(n){return Qr?.get(n)}i(es,"getGlobalMessage");var ts;function ns(n){return ts?.get(n)}i(ns,"getSchemaMessage");var rs;function ss(n,e){return rs?.get(n)?.get(e)}i(ss,"getSpecificMessage");function ar(n){let e=typeof n;return e==="string"?`"${n}"`:e==="number"||e==="bigint"||e==="boolean"?`${n}`:e==="object"||e==="function"?(n&&Object.getPrototypeOf(n)?.constructor?.name)??"null":e}i(ar,"_stringify");function H(n,e,t,r,s){let u=s&&"input"in s?s.input:t.value,a=s?.expected??n.expects??null,c=s?.received??ar(u),l={kind:n.kind,type:n.type,input:u,expected:a,received:c,message:`Invalid ${e}: ${a?`Expected ${a} but r`:"R"}eceived ${c}`,requirement:n.requirement,path:s?.path,issues:s?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},f=n.kind==="schema",p=s?.message??n.message??ss(n.reference,l.lang)??(f?ns(l.lang):null)??r.message??es(l.lang);p&&(l.message=typeof p=="function"?p(l):p),f&&(t.typed=!1),t.issues?t.issues.push(l):t.issues=[l]}i(H,"_addIssue");function is(n,e){return Object.hasOwn(n,e)&&e!=="__proto__"&&e!=="prototype"&&e!=="constructor"}i(is,"_isValidObjectKey");var os=class extends Error{static{i(this,"ValiError")}issues;constructor(n){super(n[0].message),this.name="ValiError",this.issues=n}};function Oe(n,e){return{kind:"validation",type:"check",reference:Oe,async:!1,expects:null,requirement:n,message:e,_run(t,r){return t.typed&&!this.requirement(t.value)&&H(this,"input",t,r),t}}}i(Oe,"check");function M(n){return{kind:"validation",type:"integer",reference:M,async:!1,expects:null,requirement:Number.isInteger,message:n,_run(e,t){return e.typed&&!this.requirement(e.value)&&H(this,"integer",e,t),e}}}i(M,"integer");function Qe(n){return{kind:"transformation",type:"transform",reference:Qe,async:!1,operation:n,_run(e){return e.value=this.operation(e.value),e}}}i(Qe,"transform");function Xt(n,e,t){return typeof n.default=="function"?n.default(e,t):n.default}i(Xt,"getDefault");function et(n,e){return!n._run({typed:!1,value:e},{abortEarly:!0}).issues}i(et,"is");function y(n,e){return{kind:"schema",type:"array",reference:y,expects:"Array",async:!1,item:n,message:e,_run(t,r){let s=t.value;if(Array.isArray(s)){t.typed=!0,t.value=[];for(let u=0;u<s.length;u++){let a=s[u],c=this.item._run({typed:!1,value:a},r);if(c.issues){let l={type:"array",origin:"value",input:s,key:u,value:a};for(let f of c.issues)f.path?f.path.unshift(l):f.path=[l],t.issues?.push(f);if(t.issues||(t.issues=c.issues),r.abortEarly){t.typed=!1;break}}c.typed||(t.typed=!1),t.value.push(c.value)}}else H(this,"type",t,r);return t}}}i(y,"array");function Ot(n){return{kind:"schema",type:"bigint",reference:Ot,expects:"bigint",async:!1,message:n,_run(e,t){return typeof e.value=="bigint"?e.typed=!0:H(this,"type",e,t),e}}}i(Ot,"bigint");function je(n){return{kind:"schema",type:"boolean",reference:je,expects:"boolean",async:!1,message:n,_run(e,t){return typeof e.value=="boolean"?e.typed=!0:H(this,"type",e,t),e}}}i(je,"boolean");function Ae(n){return{kind:"schema",type:"lazy",reference:Ae,expects:"unknown",async:!1,getter:n,_run(e,t){return this.getter(e.value)._run(e,t)}}}i(Ae,"lazy");function b(n,e){return{kind:"schema",type:"literal",reference:b,expects:ar(n),async:!1,literal:n,message:e,_run(t,r){return t.value===this.literal?t.typed=!0:H(this,"type",t,r),t}}}i(b,"literal");function x(n,...e){let t={kind:"schema",type:"nullable",reference:x,expects:`${n.expects} | null`,async:!1,wrapped:n,_run(r,s){return r.value===null&&("default"in this&&(r.value=Xt(this,r,s)),r.value===null)?(r.typed=!0,r):this.wrapped._run(r,s)}};return 0 in e&&(t.default=e[0]),t}i(x,"nullable");function fe(n,...e){let t={kind:"schema",type:"nullish",reference:fe,expects:`${n.expects} | null | undefined`,async:!1,wrapped:n,_run(r,s){return(r.value===null||r.value===void 0)&&("default"in this&&(r.value=Xt(this,r,s)),r.value===null||r.value===void 0)?(r.typed=!0,r):this.wrapped._run(r,s)}};return 0 in e&&(t.default=e[0]),t}i(fe,"nullish");function A(n){return{kind:"schema",type:"number",reference:A,expects:"number",async:!1,message:n,_run(e,t){return typeof e.value=="number"&&!isNaN(e.value)?e.typed=!0:H(this,"type",e,t),e}}}i(A,"number");function d(n,e){return{kind:"schema",type:"object",reference:d,expects:"Object",async:!1,entries:n,message:e,_run(t,r){let s=t.value;if(s&&typeof s=="object"){t.typed=!0,t.value={};for(let u in this.entries){let a=s[u],c=this.entries[u]._run({typed:!1,value:a},r);if(c.issues){let l={type:"object",origin:"value",input:s,key:u,value:a};for(let f of c.issues)f.path?f.path.unshift(l):f.path=[l],t.issues?.push(f);if(t.issues||(t.issues=c.issues),r.abortEarly){t.typed=!1;break}}c.typed||(t.typed=!1),(c.value!==void 0||u in s)&&(t.value[u]=c.value)}}else H(this,"type",t,r);return t}}}i(d,"object");function $(n,...e){let t={kind:"schema",type:"optional",reference:$,expects:`${n.expects} | undefined`,async:!1,wrapped:n,_run(r,s){return r.value===void 0&&("default"in this&&(r.value=Xt(this,r,s)),r.value===void 0)?(r.typed=!0,r):this.wrapped._run(r,s)}};return 0 in e&&(t.default=e[0]),t}i($,"optional");function Ce(n,e,t){return{kind:"schema",type:"record",reference:Ce,expects:"Object",async:!1,key:n,value:e,message:t,_run(r,s){let u=r.value;if(u&&typeof u=="object"){r.typed=!0,r.value={};for(let a in u)if(is(u,a)){let c=u[a],l=this.key._run({typed:!1,value:a},s);if(l.issues){let p={type:"object",origin:"key",input:u,key:a,value:c};for(let m of l.issues)m.path=[p],r.issues?.push(m);if(r.issues||(r.issues=l.issues),s.abortEarly){r.typed=!1;break}}let f=this.value._run({typed:!1,value:c},s);if(f.issues){let p={type:"object",origin:"value",input:u,key:a,value:c};for(let m of f.issues)m.path?m.path.unshift(p):m.path=[p],r.issues?.push(m);if(r.issues||(r.issues=f.issues),s.abortEarly){r.typed=!1;break}}(!l.typed||!f.typed)&&(r.typed=!1),l.typed&&(r.value[l.value]=f.value)}}else H(this,"type",r,s);return r}}}i(Ce,"record");function w(n){return{kind:"schema",type:"string",reference:w,expects:"string",async:!1,message:n,_run(e,t){return typeof e.value=="string"?e.typed=!0:H(this,"type",e,t),e}}}i(w,"string");function tt(n,e){return{kind:"schema",type:"tuple",reference:tt,expects:"Array",async:!1,items:n,message:e,_run(t,r){let s=t.value;if(Array.isArray(s)){t.typed=!0,t.value=[];for(let u=0;u<this.items.length;u++){let a=s[u],c=this.items[u]._run({typed:!1,value:a},r);if(c.issues){let l={type:"array",origin:"value",input:s,key:u,value:a};for(let f of c.issues)f.path?f.path.unshift(l):f.path=[l],t.issues?.push(f);if(t.issues||(t.issues=c.issues),r.abortEarly){t.typed=!1;break}}c.typed||(t.typed=!1),t.value.push(c.value)}}else H(this,"type",t,r);return t}}}i(tt,"tuple");function ur(n){let e;if(n)for(let t of n)e?e.push(...t.issues):e=t.issues;return e}i(ur,"_subIssues");function P(n,e){return{kind:"schema",type:"union",reference:P,expects:[...new Set(n.map(t=>t.expects))].join(" | ")||"never",async:!1,options:n,message:e,_run(t,r){let s,u,a;for(let c of this.options){let l=c._run({typed:!1,value:t.value},r);if(l.typed)if(l.issues)u?u.push(l):u=[l];else{s=l;break}else a?a.push(l):a=[l]}if(s)return s;if(u){if(u.length===1)return u[0];H(this,"type",t,r,{issues:ur(u)}),t.typed=!0}else{if(a?.length===1)return a[0];H(this,"type",t,r,{issues:ur(a)})}return t}}}i(P,"union");function ae(){return{kind:"schema",type:"unknown",reference:ae,expects:"unknown",async:!1,_run(n){return n.typed=!0,n}}}i(ae,"unknown");function j(n,e,t){let r=n._run({typed:!1,value:e},Zr(t));if(r.issues)throw new os(r.issues);return r.value}i(j,"parse");function O(...n){return{...n[0],pipe:n,_run(e,t){for(let r=0;r<n.length;r++){if(e.issues&&(n[r].kind==="schema"||n[r].kind==="transformation")){e.typed=!1;break}(!e.issues||!t.abortEarly&&!t.abortPipeEarly)&&(e=n[r]._run(e,t))}return e}}}i(O,"pipe");var us=32;function jt(n){try{return Z(n).length===us}catch{return!1}}i(jt,"isValidTransactionDigest");var nt=32;function X(n){return as(n)&&cs(n)===nt}i(X,"isValidSuiAddress");function We(n){return X(n)}i(We,"isValidSuiObjectId");function k(n,e=!1){let t=n.toLowerCase();return!e&&t.startsWith("0x")&&(t=t.slice(2)),`0x${t.padStart(nt*2,"0")}`}i(k,"normalizeSuiAddress");function W(n,e=!1){return k(n,e)}i(W,"normalizeSuiObjectId");function as(n){return/^(0x|0X)?[a-fA-F0-9]+$/.test(n)&&n.length%2===0}i(as,"isHex");function cs(n){return/^(0x|0X)/.test(n)?(n.length-2)/2:n.length/2}i(cs,"getHexByteLength");function we(n){let e=Object.entries(n).map(([t,r])=>d({[t]:r}));return O(P(e),Qe(t=>({...t,$kind:Object.keys(t)[0]})))}i(we,"safeEnum");var Me=O(w(),Qe(n=>k(n)),Oe(X)),G=Me,ve=w(),q=O(P([w(),O(A(),M())]),Oe(n=>{try{return BigInt(n),BigInt(n)>=0&&BigInt(n)<=18446744073709551615n}catch{return!1}},"Invalid u64")),te=d({objectId:Me,version:q,digest:w()}),C=O(P([d({GasCoin:b(!0)}),d({Input:O(A(),M()),type:$(b("pure"))}),d({Input:O(A(),M()),type:$(b("object"))}),d({Result:O(A(),M())}),d({NestedResult:tt([O(A(),M()),O(A(),M())])})]),Qe(n=>({...n,$kind:Object.keys(n)[0]}))),ls=d({budget:x(q),price:x(q),owner:x(Me),payment:x(y(te))}),Xo=d({address:w(),module:w(),name:w(),typeParams:y(w())}),Kt=P([b("address"),b("bool"),b("u8"),b("u16"),b("u32"),b("u64"),b("u128"),b("u256"),d({vector:Ae(()=>Kt)}),d({datatype:d({package:w(),module:w(),type:w(),typeParameters:y(Ae(()=>Kt))})}),d({typeParameter:O(A(),M())})]),fs=d({ref:x(P([b("&"),b("&mut")])),body:Kt}),ps=d({package:G,module:w(),function:w(),typeArguments:y(w()),arguments:y(C),_argumentTypes:$(x(y(fs)))}),ds=d({name:w(),inputs:Ce(w(),P([C,y(C)])),data:Ce(w(),ae())}),hs=we({MoveCall:ps,TransferObjects:d({objects:y(C),address:C}),SplitCoins:d({coin:C,amounts:y(C)}),MergeCoins:d({destination:C,sources:y(C)}),Publish:d({modules:y(ve),dependencies:y(G)}),MakeMoveVec:d({type:x(w()),elements:y(C)}),Upgrade:d({modules:y(ve),dependencies:y(G),package:G,ticket:C}),$Intent:ds}),cr=we({ImmOrOwnedObject:te,SharedObject:d({objectId:G,initialSharedVersion:q,mutable:je()}),Receiving:te}),ms=we({Object:cr,Pure:d({bytes:ve}),UnresolvedPure:d({value:ae()}),UnresolvedObject:d({objectId:G,version:$(x(q)),digest:$(x(w())),initialSharedVersion:$(x(q))})}),Jt=we({Object:cr,Pure:d({bytes:ve})}),Yt=we({None:b(!0),Epoch:q}),Fe=d({version:b(2),sender:fe(Me),expiration:fe(Yt),gasData:ls,inputs:y(ms),commands:y(hs)});var ke={MoveCall(n){let[e,t="",r=""]="target"in n?n.target.split("::"):[n.package,n.module,n.function];return{$kind:"MoveCall",MoveCall:{package:e,module:t,function:r,typeArguments:n.typeArguments??[],arguments:n.arguments??[]}}},TransferObjects(n,e){return{$kind:"TransferObjects",TransferObjects:{objects:n.map(t=>j(C,t)),address:j(C,e)}}},SplitCoins(n,e){return{$kind:"SplitCoins",SplitCoins:{coin:j(C,n),amounts:e.map(t=>j(C,t))}}},MergeCoins(n,e){return{$kind:"MergeCoins",MergeCoins:{destination:j(C,n),sources:e.map(t=>j(C,t))}}},Publish({modules:n,dependencies:e}){return{$kind:"Publish",Publish:{modules:n.map(t=>typeof t=="string"?t:D(new Uint8Array(t))),dependencies:e.map(t=>W(t))}}},Upgrade({modules:n,dependencies:e,package:t,ticket:r}){return{$kind:"Upgrade",Upgrade:{modules:n.map(s=>typeof s=="string"?s:D(new Uint8Array(s))),dependencies:e.map(s=>W(s)),package:t,ticket:j(C,r)}}},MakeMoveVec({type:n,elements:e}){return{$kind:"MakeMoveVec",MakeMoveVec:{type:n??null,elements:e.map(t=>j(C,t))}}},Intent({name:n,inputs:e={},data:t={}}){return{$kind:"$Intent",$Intent:{name:n,inputs:Object.fromEntries(Object.entries(e).map(([r,s])=>[r,Array.isArray(s)?s.map(u=>j(C,u)):j(C,s)])),data:t}}}};var ys=/^vector<(.+)>$/,bs=/^([^:]+)::([^:]+)::([^<]+)(<(.+)>)?/,pe=class n{static{i(this,"TypeTagSerializer")}static parseFromStr(e,t=!1){if(e==="address")return{address:null};if(e==="bool")return{bool:null};if(e==="u8")return{u8:null};if(e==="u16")return{u16:null};if(e==="u32")return{u32:null};if(e==="u64")return{u64:null};if(e==="u128")return{u128:null};if(e==="u256")return{u256:null};if(e==="signer")return{signer:null};let r=e.match(ys);if(r)return{vector:n.parseFromStr(r[1],t)};let s=e.match(bs);if(s)return{struct:{address:t?k(s[1]):s[1],module:s[2],name:s[3],typeParams:s[5]===void 0?[]:n.parseStructTypeArgs(s[5],t)}};throw new Error(`Encountered unexpected token when parsing type args for ${e}`)}static parseStructTypeArgs(e,t=!1){return wt(e).map(r=>n.parseFromStr(r,t))}static tagToString(e){if("bool"in e)return"bool";if("u8"in e)return"u8";if("u16"in e)return"u16";if("u32"in e)return"u32";if("u64"in e)return"u64";if("u128"in e)return"u128";if("u256"in e)return"u256";if("address"in e)return"address";if("signer"in e)return"signer";if("vector"in e)return`vector<${n.tagToString(e.vector)}>`;if("struct"in e){let t=e.struct,r=t.typeParams.map(n.tagToString).join(", ");return`${t.address}::${t.module}::${t.name}${r?`<${r}>`:""}`}throw new Error("Invalid TypeTag")}};function gs(n){return o.u64({name:"unsafe_u64",...n}).transform({input:i(e=>e,"input"),output:i(e=>Number(e),"output")})}i(gs,"unsafe_u64");function vs(n){return o.enum("Option",{None:null,Some:n})}i(vs,"optionEnum");var U=o.bytes(nt).transform({validate:i(n=>{let e=typeof n=="string"?n:ue(n);if(!e||!X(k(e)))throw new Error(`Invalid Sui address ${e}`)},"validate"),input:i(n=>typeof n=="string"?Ve(k(n)):n,"input"),output:i(n=>k(ue(n)),"output")}),K=o.vector(o.u8()).transform({name:"ObjectDigest",input:i(n=>Z(n),"input"),output:i(n=>le(new Uint8Array(n)),"output"),validate:i(n=>{if(Z(n).length!==32)throw new Error("ObjectDigest must be 32 bytes")},"validate")}),F=o.struct("SuiObjectRef",{objectId:U,version:o.u64(),digest:K}),Zt=o.struct("SharedObjectRef",{objectId:U,initialSharedVersion:o.u64(),mutable:o.bool()}),Qt=o.enum("ObjectArg",{ImmOrOwnedObject:F,SharedObject:Zt,Receiving:F}),en=o.enum("CallArg",{Pure:o.struct("Pure",{bytes:o.vector(o.u8()).transform({input:i(n=>typeof n=="string"?V(n):n,"input"),output:i(n=>D(new Uint8Array(n)),"output")})}),Object:Qt}),tn=o.enum("TypeTag",{bool:null,u8:null,u64:null,u128:null,address:null,signer:null,vector:o.lazy(()=>tn),struct:o.lazy(()=>an),u16:null,u32:null,u256:null}),At=tn.transform({input:i(n=>typeof n=="string"?pe.parseFromStr(n,!0):n,"input"),output:i(n=>pe.tagToString(n),"output")}),ne=o.enum("Argument",{GasCoin:null,Input:o.u16(),Result:o.u16(),NestedResult:o.tuple([o.u16(),o.u16()])}),nn=o.struct("ProgrammableMoveCall",{package:U,module:o.string(),function:o.string(),typeArguments:o.vector(At),arguments:o.vector(ne)}),rn=o.enum("Command",{MoveCall:nn,TransferObjects:o.struct("TransferObjects",{objects:o.vector(ne),address:ne}),SplitCoins:o.struct("SplitCoins",{coin:ne,amounts:o.vector(ne)}),MergeCoins:o.struct("MergeCoins",{destination:ne,sources:o.vector(ne)}),Publish:o.struct("Publish",{modules:o.vector(o.vector(o.u8()).transform({input:i(n=>typeof n=="string"?V(n):n,"input"),output:i(n=>D(new Uint8Array(n)),"output")})),dependencies:o.vector(U)}),MakeMoveVec:o.struct("MakeMoveVec",{type:vs(At).transform({input:i(n=>n===null?{None:!0}:{Some:n},"input"),output:i(n=>n.Some??null,"output")}),elements:o.vector(ne)}),Upgrade:o.struct("Upgrade",{modules:o.vector(o.vector(o.u8()).transform({input:i(n=>typeof n=="string"?V(n):n,"input"),output:i(n=>D(new Uint8Array(n)),"output")})),dependencies:o.vector(U),package:U,ticket:ne})}),sn=o.struct("ProgrammableTransaction",{inputs:o.vector(en),commands:o.vector(rn)}),on=o.enum("TransactionKind",{ProgrammableTransaction:sn,ChangeEpoch:null,Genesis:null,ConsensusCommitPrologue:null}),un=o.enum("TransactionExpiration",{None:null,Epoch:gs()}),an=o.struct("StructTag",{address:U,module:o.string(),name:o.string(),typeParams:o.vector(tn)}),cn=o.struct("GasData",{payment:o.vector(F),owner:U,price:o.u64(),budget:o.u64()}),ln=o.struct("TransactionDataV1",{kind:on,sender:U,gasData:cn,expiration:un}),fn=o.enum("TransactionData",{V1:ln}),pn=o.enum("IntentScope",{TransactionData:null,TransactionEffects:null,CheckpointSummary:null,PersonalMessage:null}),dn=o.enum("IntentVersion",{V0:null}),hn=o.enum("AppId",{Sui:null}),mn=o.struct("Intent",{scope:pn,version:dn,appId:hn});function yn(n){return o.struct(`IntentMessage<${n.name}>`,{intent:mn,value:n})}i(yn,"IntentMessage");var bn=o.enum("CompressedSignature",{ED25519:o.fixedArray(64,o.u8()),Secp256k1:o.fixedArray(64,o.u8()),Secp256r1:o.fixedArray(64,o.u8()),ZkLogin:o.vector(o.u8())}),gn=o.enum("PublicKey",{ED25519:o.fixedArray(32,o.u8()),Secp256k1:o.fixedArray(33,o.u8()),Secp256r1:o.fixedArray(33,o.u8()),ZkLogin:o.vector(o.u8())}),vn=o.struct("MultiSigPkMap",{pubKey:gn,weight:o.u8()}),wn=o.struct("MultiSigPublicKey",{pk_map:o.vector(vn),threshold:o.u16()}),lr=o.struct("MultiSig",{sigs:o.vector(bn),bitmap:o.u16(),multisig_pk:wn}),ws=o.vector(o.u8()).transform({input:i(n=>typeof n=="string"?V(n):n,"input"),output:i(n=>D(new Uint8Array(n)),"output")}),kn=o.struct("SenderSignedTransaction",{intentMessage:yn(fn),txSignatures:o.vector(ws)}),fr=o.vector(kn,{name:"SenderSignedData"}),pr=o.struct("PasskeyAuthenticator",{authenticatorData:o.vector(o.u8()),clientDataJson:o.string(),userSignature:o.vector(o.u8())});var ks=o.enum("PackageUpgradeError",{UnableToFetchPackage:o.struct("UnableToFetchPackage",{packageId:U}),NotAPackage:o.struct("NotAPackage",{objectId:U}),IncompatibleUpgrade:null,DigestDoesNotMatch:o.struct("DigestDoesNotMatch",{digest:o.vector(o.u8())}),UnknownUpgradePolicy:o.struct("UnknownUpgradePolicy",{policy:o.u8()}),PackageIDDoesNotMatch:o.struct("PackageIDDoesNotMatch",{packageId:U,ticketId:U})}),Ss=o.struct("ModuleId",{address:U,name:o.string()}),dr=o.struct("MoveLocation",{module:Ss,function:o.u16(),instruction:o.u16(),functionName:o.option(o.string())}),_s=o.enum("CommandArgumentError",{TypeMismatch:null,InvalidBCSBytes:null,InvalidUsageOfPureArg:null,InvalidArgumentToPrivateEntryFunction:null,IndexOutOfBounds:o.struct("IndexOutOfBounds",{idx:o.u16()}),SecondaryIndexOutOfBounds:o.struct("SecondaryIndexOutOfBounds",{resultIdx:o.u16(),secondaryIdx:o.u16()}),InvalidResultArity:o.struct("InvalidResultArity",{resultIdx:o.u16()}),InvalidGasCoinUsage:null,InvalidValueUsage:null,InvalidObjectByValue:null,InvalidObjectByMutRef:null,SharedObjectOperationNotAllowed:null}),Is=o.enum("TypeArgumentError",{TypeNotFound:null,ConstraintNotSatisfied:null}),Es=o.enum("ExecutionFailureStatus",{InsufficientGas:null,InvalidGasObject:null,InvariantViolation:null,FeatureNotYetSupported:null,MoveObjectTooBig:o.struct("MoveObjectTooBig",{objectSize:o.u64(),maxObjectSize:o.u64()}),MovePackageTooBig:o.struct("MovePackageTooBig",{objectSize:o.u64(),maxObjectSize:o.u64()}),CircularObjectOwnership:o.struct("CircularObjectOwnership",{object:U}),InsufficientCoinBalance:null,CoinBalanceOverflow:null,PublishErrorNonZeroAddress:null,SuiMoveVerificationError:null,MovePrimitiveRuntimeError:o.option(dr),MoveAbort:o.tuple([dr,o.u64()]),VMVerificationOrDeserializationError:null,VMInvariantViolation:null,FunctionNotFound:null,ArityMismatch:null,TypeArityMismatch:null,NonEntryFunctionInvoked:null,CommandArgumentError:o.struct("CommandArgumentError",{argIdx:o.u16(),kind:_s}),TypeArgumentError:o.struct("TypeArgumentError",{argumentIdx:o.u16(),kind:Is}),UnusedValueWithoutDrop:o.struct("UnusedValueWithoutDrop",{resultIdx:o.u16(),secondaryIdx:o.u16()}),InvalidPublicFunctionReturnType:o.struct("InvalidPublicFunctionReturnType",{idx:o.u16()}),InvalidTransferObject:null,EffectsTooLarge:o.struct("EffectsTooLarge",{currentSize:o.u64(),maxSize:o.u64()}),PublishUpgradeMissingDependency:null,PublishUpgradeDependencyDowngrade:null,PackageUpgradeError:o.struct("PackageUpgradeError",{upgradeError:ks}),WrittenObjectsTooLarge:o.struct("WrittenObjectsTooLarge",{currentSize:o.u64(),maxSize:o.u64()}),CertificateDenied:null,SuiMoveVerificationTimedout:null,SharedObjectOperationNotAllowed:null,InputObjectDeleted:null,ExecutionCancelledDueToSharedObjectCongestion:o.struct("ExecutionCancelledDueToSharedObjectCongestion",{congestedObjects:o.vector(U)}),AddressDeniedForCoin:o.struct("AddressDeniedForCoin",{address:U,coinType:o.string()}),CoinTypeGlobalPause:o.struct("CoinTypeGlobalPause",{coinType:o.string()}),ExecutionCancelledDueToRandomnessUnavailable:null}),hr=o.enum("ExecutionStatus",{Success:null,Failed:o.struct("ExecutionFailed",{error:Es,command:o.option(o.u64())})}),mr=o.struct("GasCostSummary",{computationCost:o.u64(),storageCost:o.u64(),storageRebate:o.u64(),nonRefundableStorageFee:o.u64()}),He=o.enum("Owner",{AddressOwner:U,ObjectOwner:U,Shared:o.struct("Shared",{initialSharedVersion:o.u64()}),Immutable:null}),xs=o.struct("TransactionEffectsV1",{status:hr,executedEpoch:o.u64(),gasUsed:mr,modifiedAtVersions:o.vector(o.tuple([U,o.u64()])),sharedObjects:o.vector(F),transactionDigest:K,created:o.vector(o.tuple([F,He])),mutated:o.vector(o.tuple([F,He])),unwrapped:o.vector(o.tuple([F,He])),deleted:o.vector(F),unwrappedThenDeleted:o.vector(F),wrapped:o.vector(F),gasObject:o.tuple([F,He]),eventsDigest:o.option(K),dependencies:o.vector(K)}),Sn=o.tuple([o.u64(),K]),Ts=o.enum("ObjectIn",{NotExist:null,Exist:o.tuple([Sn,He])}),Os=o.enum("ObjectOut",{NotExist:null,ObjectWrite:o.tuple([K,He]),PackageWrite:Sn}),js=o.enum("IDOperation",{None:null,Created:null,Deleted:null}),As=o.struct("EffectsObjectChange",{inputState:Ts,outputState:Os,idOperation:js}),Cs=o.enum("UnchangedSharedKind",{ReadOnlyRoot:Sn,MutateDeleted:o.u64(),ReadDeleted:o.u64(),Cancelled:o.u64(),PerEpochConfig:null}),Ms=o.struct("TransactionEffectsV2",{status:hr,executedEpoch:o.u64(),gasUsed:mr,transactionDigest:K,gasObjectIndex:o.option(o.u32()),eventsDigest:o.option(K),dependencies:o.vector(K),lamportVersion:o.u64(),changedObjects:o.vector(o.tuple([U,As])),unchangedSharedObjects:o.vector(o.tuple([U,Cs])),auxDataDigest:o.option(K)}),yr=o.enum("TransactionEffects",{V1:xs,V2:Ms});var g={...o,U8:o.u8(),U16:o.u16(),U32:o.u32(),U64:o.u64(),U128:o.u128(),U256:o.u256(),ULEB128:o.uleb128(),Bool:o.bool(),String:o.string(),Address:U,AppId:hn,Argument:ne,CallArg:en,CompressedSignature:bn,GasData:cn,Intent:mn,IntentMessage:yn,IntentScope:pn,IntentVersion:dn,MultiSig:lr,MultiSigPkMap:vn,MultiSigPublicKey:wn,ObjectArg:Qt,ObjectDigest:K,ProgrammableMoveCall:nn,ProgrammableTransaction:sn,PublicKey:gn,SenderSignedData:fr,SenderSignedTransaction:kn,SharedObjectRef:Zt,StructTag:an,SuiObjectRef:F,Command:rn,TransactionData:fn,TransactionDataV1:ln,TransactionExpiration:un,TransactionKind:on,TypeTag:At,TransactionEffects:yr,PasskeyAuthenticator:pr};var _n=d({digest:w(),objectId:w(),version:P([O(A(),M()),w(),Ot()])}),Us=we({ImmOrOwned:_n,Shared:d({objectId:G,initialSharedVersion:q,mutable:je()}),Receiving:_n}),br=we({Object:Us,Pure:y(O(A(),M()))}),vr=P([d({kind:b("Input"),index:O(A(),M()),value:ae(),type:$(b("object"))}),d({kind:b("Input"),index:O(A(),M()),value:ae(),type:b("pure")})]),Ds=P([d({Epoch:O(A(),M())}),d({None:x(b(!0))})]),gr=O(P([A(),w(),Ot()]),Oe(n=>{if(!["string","number","bigint"].includes(typeof n))return!1;try{return BigInt(n),!0}catch{return!1}})),In=P([d({bool:x(b(!0))}),d({u8:x(b(!0))}),d({u64:x(b(!0))}),d({u128:x(b(!0))}),d({address:x(b(!0))}),d({signer:x(b(!0))}),d({vector:Ae(()=>In)}),d({struct:Ae(()=>Bs)}),d({u16:x(b(!0))}),d({u32:x(b(!0))}),d({u256:x(b(!0))})]),Bs=d({address:w(),module:w(),name:w(),typeParams:y(In)}),Rs=d({budget:$(gr),price:$(gr),payment:$(y(_n)),owner:$(w())}),Ps=[vr,d({kind:b("GasCoin")}),d({kind:b("Result"),index:O(A(),M())}),d({kind:b("NestedResult"),index:O(A(),M()),resultIndex:O(A(),M())})],me=P([...Ps]),$s=d({kind:b("MoveCall"),target:O(w(),Oe(n=>n.split("::").length===3)),typeArguments:y(w()),arguments:y(me)}),Ns=d({kind:b("TransferObjects"),objects:y(me),address:me}),zs=d({kind:b("SplitCoins"),coin:me,amounts:y(me)}),Vs=d({kind:b("MergeCoins"),destination:me,sources:y(me)}),qs=d({kind:b("MakeMoveVec"),type:P([d({Some:In}),d({None:x(b(!0))})]),objects:y(me)}),Gs=d({kind:b("Publish"),modules:y(y(O(A(),M()))),dependencies:y(w())}),Ls=d({kind:b("Upgrade"),modules:y(y(O(A(),M()))),dependencies:y(w()),packageId:w(),ticket:me}),Ws=[$s,Ns,zs,Vs,Gs,Ls,qs],Fs=P([...Ws]),_u=d({version:b(1),sender:$(w()),expiration:fe(Ds),gasConfig:Rs,inputs:y(vr),transactions:y(Fs)});function En(n){let e=n.inputs.map((t,r)=>{if(t.Object)return{kind:"Input",index:r,value:{Object:t.Object.ImmOrOwnedObject?{ImmOrOwned:t.Object.ImmOrOwnedObject}:t.Object.Receiving?{Receiving:{digest:t.Object.Receiving.digest,version:t.Object.Receiving.version,objectId:t.Object.Receiving.objectId}}:{Shared:{mutable:t.Object.SharedObject.mutable,initialSharedVersion:t.Object.SharedObject.initialSharedVersion,objectId:t.Object.SharedObject.objectId}}},type:"object"};if(t.Pure)return{kind:"Input",index:r,value:{Pure:Array.from(V(t.Pure.bytes))},type:"pure"};if(t.UnresolvedPure)return{kind:"Input",type:"pure",index:r,value:t.UnresolvedPure.value};if(t.UnresolvedObject)return{kind:"Input",type:"object",index:r,value:t.UnresolvedObject.objectId};throw new Error("Invalid input")});return{version:1,sender:n.sender??void 0,expiration:n.expiration?.$kind==="Epoch"?{Epoch:Number(n.expiration.Epoch)}:n.expiration?{None:!0}:null,gasConfig:{owner:n.gasData.owner??void 0,budget:n.gasData.budget??void 0,price:n.gasData.price??void 0,payment:n.gasData.payment??void 0},inputs:e,transactions:n.commands.map(t=>{if(t.MakeMoveVec)return{kind:"MakeMoveVec",type:t.MakeMoveVec.type===null?{None:!0}:{Some:pe.parseFromStr(t.MakeMoveVec.type)},objects:t.MakeMoveVec.elements.map(r=>de(r,e))};if(t.MergeCoins)return{kind:"MergeCoins",destination:de(t.MergeCoins.destination,e),sources:t.MergeCoins.sources.map(r=>de(r,e))};if(t.MoveCall)return{kind:"MoveCall",target:`${t.MoveCall.package}::${t.MoveCall.module}::${t.MoveCall.function}`,typeArguments:t.MoveCall.typeArguments,arguments:t.MoveCall.arguments.map(r=>de(r,e))};if(t.Publish)return{kind:"Publish",modules:t.Publish.modules.map(r=>Array.from(V(r))),dependencies:t.Publish.dependencies};if(t.SplitCoins)return{kind:"SplitCoins",coin:de(t.SplitCoins.coin,e),amounts:t.SplitCoins.amounts.map(r=>de(r,e))};if(t.TransferObjects)return{kind:"TransferObjects",objects:t.TransferObjects.objects.map(r=>de(r,e)),address:de(t.TransferObjects.address,e)};if(t.Upgrade)return{kind:"Upgrade",modules:t.Upgrade.modules.map(r=>Array.from(V(r))),dependencies:t.Upgrade.dependencies,packageId:t.Upgrade.package,ticket:de(t.Upgrade.ticket,e)};throw new Error(`Unknown transaction ${Object.keys(t)}`)})}}i(En,"serializeV1TransactionData");function de(n,e){if(n.$kind==="GasCoin")return{kind:"GasCoin"};if(n.$kind==="Result")return{kind:"Result",index:n.Result};if(n.$kind==="NestedResult")return{kind:"NestedResult",index:n.NestedResult[0],resultIndex:n.NestedResult[1]};if(n.$kind==="Input")return e[n.Input];throw new Error(`Invalid argument ${Object.keys(n)}`)}i(de,"convertTransactionArgument");function wr(n){return j(Fe,{version:2,sender:n.sender??null,expiration:n.expiration?"Epoch"in n.expiration?{Epoch:n.expiration.Epoch}:{None:!0}:null,gasData:{owner:n.gasConfig.owner??null,budget:n.gasConfig.budget?.toString()??null,price:n.gasConfig.price?.toString()??null,payment:n.gasConfig.payment?.map(e=>({digest:e.digest,objectId:e.objectId,version:e.version.toString()}))??null},inputs:n.inputs.map(e=>{if(e.kind==="Input"){if(et(br,e.value)){let t=j(br,e.value);if(t.Object){if(t.Object.ImmOrOwned)return{Object:{ImmOrOwnedObject:{objectId:t.Object.ImmOrOwned.objectId,version:String(t.Object.ImmOrOwned.version),digest:t.Object.ImmOrOwned.digest}}};if(t.Object.Shared)return{Object:{SharedObject:{mutable:t.Object.Shared.mutable??null,initialSharedVersion:t.Object.Shared.initialSharedVersion,objectId:t.Object.Shared.objectId}}};if(t.Object.Receiving)return{Object:{Receiving:{digest:t.Object.Receiving.digest,version:String(t.Object.Receiving.version),objectId:t.Object.Receiving.objectId}}};throw new Error("Invalid object input")}return{Pure:{bytes:D(new Uint8Array(t.Pure))}}}return e.type==="object"?{UnresolvedObject:{objectId:e.value}}:{UnresolvedPure:{value:e.value}}}throw new Error("Invalid input")}),commands:n.transactions.map(e=>{switch(e.kind){case"MakeMoveVec":return{MakeMoveVec:{type:"Some"in e.type?pe.tagToString(e.type.Some):null,elements:e.objects.map(t=>he(t))}};case"MergeCoins":return{MergeCoins:{destination:he(e.destination),sources:e.sources.map(t=>he(t))}};case"MoveCall":{let[t,r,s]=e.target.split("::");return{MoveCall:{package:t,module:r,function:s,typeArguments:e.typeArguments,arguments:e.arguments.map(u=>he(u))}}}case"Publish":return{Publish:{modules:e.modules.map(t=>D(Uint8Array.from(t))),dependencies:e.dependencies}};case"SplitCoins":return{SplitCoins:{coin:he(e.coin),amounts:e.amounts.map(t=>he(t))}};case"TransferObjects":return{TransferObjects:{objects:e.objects.map(t=>he(t)),address:he(e.address)}};case"Upgrade":return{Upgrade:{modules:e.modules.map(t=>D(Uint8Array.from(t))),dependencies:e.dependencies,package:e.packageId,ticket:he(e.ticket)}}}throw new Error(`Unknown transaction ${Object.keys(e)}`)})})}i(wr,"transactionDataFromV1");function he(n){switch(n.kind){case"GasCoin":return{GasCoin:!0};case"Result":return{Result:n.index};case"NestedResult":return{NestedResult:[n.index,n.resultIndex]};case"Input":return{Input:n.index}}}i(he,"parseV1TransactionArgument");function rt(n){return P(Object.entries(n).map(([e,t])=>d({[e]:t})))}i(rt,"enumUnion");var re=rt({GasCoin:b(!0),Input:O(A(),M()),Result:O(A(),M()),NestedResult:tt([O(A(),M()),O(A(),M())])}),Hs=d({budget:x(q),price:x(q),owner:x(Me),payment:x(y(te))}),Xs=d({package:G,module:w(),function:w(),typeArguments:y(w()),arguments:y(re)}),Ks=d({name:w(),inputs:Ce(w(),P([re,y(re)])),data:Ce(w(),ae())}),Js=rt({MoveCall:Xs,TransferObjects:d({objects:y(re),address:re}),SplitCoins:d({coin:re,amounts:y(re)}),MergeCoins:d({destination:re,sources:y(re)}),Publish:d({modules:y(ve),dependencies:y(G)}),MakeMoveVec:d({type:x(w()),elements:y(re)}),Upgrade:d({modules:y(ve),dependencies:y(G),package:G,ticket:re}),$Intent:Ks}),Ys=rt({ImmOrOwnedObject:te,SharedObject:d({objectId:G,initialSharedVersion:q,mutable:je()}),Receiving:te}),Zs=rt({Object:Ys,Pure:d({bytes:ve}),UnresolvedPure:d({value:ae()}),UnresolvedObject:d({objectId:G,version:$(x(q)),digest:$(x(w())),initialSharedVersion:$(x(q))})}),Qs=rt({None:b(!0),Epoch:q}),kr=d({version:b(2),sender:fe(Me),expiration:fe(Qs),gasData:Hs,inputs:y(Zs),commands:y(Js)});function ei(n){return{$kind:"Pure",Pure:{bytes:n instanceof Uint8Array?D(n):n.toBase64()}}}i(ei,"Pure");var se={Pure:ei,ObjectRef({objectId:n,digest:e,version:t}){return{$kind:"Object",Object:{$kind:"ImmOrOwnedObject",ImmOrOwnedObject:{digest:e,version:t,objectId:k(n)}}}},SharedObjectRef({objectId:n,mutable:e,initialSharedVersion:t}){return{$kind:"Object",Object:{$kind:"SharedObject",SharedObject:{mutable:e,initialSharedVersion:t,objectId:k(n)}}}},ReceivingRef({objectId:n,digest:e,version:t}){return{$kind:"Object",Object:{$kind:"Receiving",Receiving:{digest:e,version:t,objectId:k(n)}}}}};var ti=/^(?!.*(^(?!@)|[-.@])($|[-.@]))(?:[a-z0-9-]{0,63}(?:\.[a-z0-9-]{0,63})*)?@[a-z0-9-]{0,63}$/i,ni=/^(?!.*(^|[-.])($|[-.]))(?:[a-z0-9-]{0,63}\.)+sui$/i;function Sr(n,e="at"){let t=n.toLowerCase(),r;if(t.includes("@")){if(!ti.test(t))throw new Error(`Invalid SuiNS name ${n}`);let[s,u]=t.split("@");r=[...s?s.split("."):[],u]}else{if(!ni.test(t))throw new Error(`Invalid SuiNS name ${n}`);r=t.split(".").slice(0,-1)}return e==="dot"?`${r.join(".")}.sui`:`${r.slice(0,-1).join(".")}@${r[r.length-1]}`}i(Sr,"normalizeSuiNSName");var ri=BigInt(1e9),xn="0x1",Ct="0x2";var si=W("0x6");var Tn=`${Ct}::sui::SUI`,ii=W("0x5");Hr();Hn();var _r=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3]),Mt=class extends Wn{static{i(this,"BLAKE")}constructor(e,t,r={},s,u,a){if(super(),this.blockLen=e,this.outputLen=t,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,bt(e),bt(t),bt(s),t<0||t>s)throw new Error("outputLen bigger than keyLen");if(r.key!==void 0&&(r.key.length<1||r.key.length>s))throw new Error(`key must be up 1..${s} byte long or undefined`);if(r.salt!==void 0&&r.salt.length!==u)throw new Error(`salt must be ${u} byte long or undefined`);if(r.personalization!==void 0&&r.personalization.length!==a)throw new Error(`personalization must be ${a} byte long or undefined`);this.buffer32=Ne(this.buffer=new Uint8Array(e))}update(e){qt(this);let{blockLen:t,buffer:r,buffer32:s}=this;e=ze(e);let u=e.length,a=e.byteOffset,c=e.buffer;for(let l=0;l<u;){this.pos===t&&(xe||Te(s),this.compress(s,0,!1),xe||Te(s),this.pos=0);let f=Math.min(t-this.pos,u-l),p=a+l;if(f===t&&!(p%4)&&l+f<u){let m=new Uint32Array(c,p,Math.floor((u-l)/4));xe||Te(m);for(let S=0;l+t<u;S+=s.length,l+=t)this.length+=t,this.compress(m,S,!1);xe||Te(m);continue}r.set(e.subarray(l,l+f),this.pos),this.pos+=f,this.length+=f,l+=f}return this}digestInto(e){qt(this),Ln(e,this);let{pos:t,buffer32:r}=this;this.finished=!0,this.buffer.subarray(t).fill(0),xe||Te(r),this.compress(r,0,!0),xe||Te(r);let s=Ne(e);this.get().forEach((u,a)=>s[a]=Y(u))}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){let{buffer:t,length:r,finished:s,destroyed:u,outputLen:a,pos:c}=this;return e||(e=new this.constructor({dkLen:a})),e.set(...this.get()),e.length=r,e.finished=s,e.destroyed=u,e.outputLen=a,e.buffer.set(t),e.pos=c,e}};Xr();Hn();var N=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),h=new Uint32Array(32);function Se(n,e,t,r,s,u){let a=s[u],c=s[u+1],l=h[2*n],f=h[2*n+1],p=h[2*e],m=h[2*e+1],S=h[2*t],_=h[2*t+1],v=h[2*r],I=h[2*r+1],B=z.add3L(l,p,a);f=z.add3H(B,f,m,c),l=B|0,{Dh:I,Dl:v}={Dh:I^f,Dl:v^l},{Dh:I,Dl:v}={Dh:z.rotr32H(I,v),Dl:z.rotr32L(I,v)},{h:_,l:S}=z.add(_,S,I,v),{Bh:m,Bl:p}={Bh:m^_,Bl:p^S},{Bh:m,Bl:p}={Bh:z.rotrSH(m,p,24),Bl:z.rotrSL(m,p,24)},h[2*n]=l,h[2*n+1]=f,h[2*e]=p,h[2*e+1]=m,h[2*t]=S,h[2*t+1]=_,h[2*r]=v,h[2*r+1]=I}i(Se,"G1b");function _e(n,e,t,r,s,u){let a=s[u],c=s[u+1],l=h[2*n],f=h[2*n+1],p=h[2*e],m=h[2*e+1],S=h[2*t],_=h[2*t+1],v=h[2*r],I=h[2*r+1],B=z.add3L(l,p,a);f=z.add3H(B,f,m,c),l=B|0,{Dh:I,Dl:v}={Dh:I^f,Dl:v^l},{Dh:I,Dl:v}={Dh:z.rotrSH(I,v,16),Dl:z.rotrSL(I,v,16)},{h:_,l:S}=z.add(_,S,I,v),{Bh:m,Bl:p}={Bh:m^_,Bl:p^S},{Bh:m,Bl:p}={Bh:z.rotrBH(m,p,63),Bl:z.rotrBL(m,p,63)},h[2*n]=l,h[2*n+1]=f,h[2*e]=p,h[2*e+1]=m,h[2*t]=S,h[2*t+1]=_,h[2*r]=v,h[2*r+1]=I}i(_e,"G2b");var On=class extends Mt{static{i(this,"BLAKE2b")}constructor(e={}){super(128,e.dkLen===void 0?64:e.dkLen,e,64,16,16),this.v0l=N[0]|0,this.v0h=N[1]|0,this.v1l=N[2]|0,this.v1h=N[3]|0,this.v2l=N[4]|0,this.v2h=N[5]|0,this.v3l=N[6]|0,this.v3h=N[7]|0,this.v4l=N[8]|0,this.v4h=N[9]|0,this.v5l=N[10]|0,this.v5h=N[11]|0,this.v6l=N[12]|0,this.v6h=N[13]|0,this.v7l=N[14]|0,this.v7h=N[15]|0;let t=e.key?e.key.length:0;if(this.v0l^=this.outputLen|t<<8|65536|1<<24,e.salt){let r=Ne(ze(e.salt));this.v4l^=Y(r[0]),this.v4h^=Y(r[1]),this.v5l^=Y(r[2]),this.v5h^=Y(r[3])}if(e.personalization){let r=Ne(ze(e.personalization));this.v6l^=Y(r[0]),this.v6h^=Y(r[1]),this.v7l^=Y(r[2]),this.v7h^=Y(r[3])}if(e.key){let r=new Uint8Array(this.blockLen);r.set(ze(e.key)),this.update(r)}}get(){let{v0l:e,v0h:t,v1l:r,v1h:s,v2l:u,v2h:a,v3l:c,v3h:l,v4l:f,v4h:p,v5l:m,v5h:S,v6l:_,v6h:v,v7l:I,v7h:B}=this;return[e,t,r,s,u,a,c,l,f,p,m,S,_,v,I,B]}set(e,t,r,s,u,a,c,l,f,p,m,S,_,v,I,B){this.v0l=e|0,this.v0h=t|0,this.v1l=r|0,this.v1h=s|0,this.v2l=u|0,this.v2h=a|0,this.v3l=c|0,this.v3h=l|0,this.v4l=f|0,this.v4h=p|0,this.v5l=m|0,this.v5h=S|0,this.v6l=_|0,this.v6h=v|0,this.v7l=I|0,this.v7h=B|0}compress(e,t,r){this.get().forEach((l,f)=>h[f]=l),h.set(N,16);let{h:s,l:u}=z.fromBig(BigInt(this.length));h[24]=N[8]^u,h[25]=N[9]^s,r&&(h[28]=~h[28],h[29]=~h[29]);let a=0,c=_r;for(let l=0;l<12;l++)Se(0,4,8,12,e,t+2*c[a++]),_e(0,4,8,12,e,t+2*c[a++]),Se(1,5,9,13,e,t+2*c[a++]),_e(1,5,9,13,e,t+2*c[a++]),Se(2,6,10,14,e,t+2*c[a++]),_e(2,6,10,14,e,t+2*c[a++]),Se(3,7,11,15,e,t+2*c[a++]),_e(3,7,11,15,e,t+2*c[a++]),Se(0,5,10,15,e,t+2*c[a++]),_e(0,5,10,15,e,t+2*c[a++]),Se(1,6,11,12,e,t+2*c[a++]),_e(1,6,11,12,e,t+2*c[a++]),Se(2,7,8,13,e,t+2*c[a++]),_e(2,7,8,13,e,t+2*c[a++]),Se(3,4,9,14,e,t+2*c[a++]),_e(3,4,9,14,e,t+2*c[a++]);this.v0l^=h[0]^h[16],this.v0h^=h[1]^h[17],this.v1l^=h[2]^h[18],this.v1h^=h[3]^h[19],this.v2l^=h[4]^h[20],this.v2h^=h[5]^h[21],this.v3l^=h[6]^h[22],this.v3h^=h[7]^h[23],this.v4l^=h[8]^h[24],this.v4h^=h[9]^h[25],this.v5l^=h[10]^h[26],this.v5h^=h[11]^h[27],this.v6l^=h[12]^h[28],this.v6h^=h[13]^h[29],this.v7l^=h[14]^h[30],this.v7h^=h[15]^h[31],h.fill(0)}destroy(){this.destroyed=!0,this.buffer32.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},Ir=Fn(n=>new On(n));var oi="object",ui="ID",ai="ascii",ci="String",li="string",fi="String",pi="option",di="Option";function Er(n){let e=typeof n.body=="object"&&"datatype"in n.body?n.body.datatype:null;return!!e&&k(e.package)===k("0x2")&&e.module==="tx_context"&&e.type==="TxContext"}i(Er,"isTxContext");function Ut(n){if(typeof n=="string")switch(n){case"address":return g.Address;case"bool":return g.Bool;case"u8":return g.U8;case"u16":return g.U16;case"u32":return g.U32;case"u64":return g.U64;case"u128":return g.U128;case"u256":return g.U256;default:throw new Error(`Unknown type signature ${n}`)}if("vector"in n){if(n.vector==="u8")return g.vector(g.U8).transform({input:i(t=>typeof t=="string"?new TextEncoder().encode(t):t,"input"),output:i(t=>t,"output")});let e=Ut(n.vector);return e?g.vector(e):null}if("datatype"in n){let e=k(n.datatype.package);if(e===k(xn)){if(n.datatype.module===ai&&n.datatype.type===ci)return g.String;if(n.datatype.module===li&&n.datatype.type===fi)return g.String;if(n.datatype.module===pi&&n.datatype.type===di){let t=Ut(n.datatype.typeParameters[0]);return t?g.vector(t):null}}if(e===k(Ct)&&n.datatype.module===oi&&n.datatype.type===ui)return g.Address}return null}i(Ut,"getPureBcsSchema");function xr(n){return typeof n=="object"&&"Reference"in n?{ref:"&",body:st(n.Reference)}:typeof n=="object"&&"MutableReference"in n?{ref:"&mut",body:st(n.MutableReference)}:{ref:null,body:st(n)}}i(xr,"normalizedTypeToMoveTypeSignature");function st(n){if(typeof n=="string")switch(n){case"Address":return"address";case"Bool":return"bool";case"U8":return"u8";case"U16":return"u16";case"U32":return"u32";case"U64":return"u64";case"U128":return"u128";case"U256":return"u256";default:throw new Error(`Unexpected type ${n}`)}if("Vector"in n)return{vector:st(n.Vector)};if("Struct"in n)return{datatype:{package:n.Struct.address,module:n.Struct.module,type:n.Struct.name,typeParameters:n.Struct.typeArguments.map(st)}};if("TypeParameter"in n)return{typeParameter:n.TypeParameter};throw new Error(`Unexpected type ${JSON.stringify(n)}`)}i(st,"normalizedTypeToMoveTypeSignatureBody");var hi=50,mi=1000n,yi=5e10;async function Or(n,e,t){return await ki(n,e),await wi(n,e),e.onlyTransactionKind||(await bi(n,e),await gi(n,e),await vi(n,e)),await Si(n),await t()}i(Or,"resolveTransactionData");async function bi(n,e){n.gasConfig.price||(n.gasConfig.price=String(await it(e).getReferenceGasPrice()))}i(bi,"setGasPrice");async function gi(n,e){if(n.gasConfig.budget)return;let t=await it(e).dryRunTransactionBlock({transactionBlock:n.build({overrides:{gasData:{budget:String(yi),payment:[]}}})});if(t.effects.status.status!=="success")throw new Error(`Dry run failed, could not automatically determine a budget: ${t.effects.status.error}`,{cause:t});let r=mi*BigInt(n.gasConfig.price||1n),s=BigInt(t.effects.gasUsed.computationCost)+r,u=s+BigInt(t.effects.gasUsed.storageCost)-BigInt(t.effects.gasUsed.storageRebate);n.gasConfig.budget=String(u>s?u:s)}i(gi,"setGasBudget");async function vi(n,e){if(!n.gasConfig.payment){let r=(await it(e).getCoins({owner:n.gasConfig.owner||n.sender,coinType:Tn})).data.filter(s=>!n.inputs.find(a=>a.Object?.ImmOrOwnedObject?s.coinObjectId===a.Object.ImmOrOwnedObject.objectId:!1)).map(s=>({objectId:s.coinObjectId,digest:s.digest,version:s.version}));if(!r.length)throw new Error("No valid gas coins found for the transaction.");n.gasConfig.payment=r.map(s=>j(te,s))}}i(vi,"setGasPayment");async function wi(n,e){let t=n.inputs.filter(p=>p.UnresolvedObject&&!(p.UnresolvedObject.version||p.UnresolvedObject?.initialSharedVersion)),r=[...new Set(t.map(p=>W(p.UnresolvedObject.objectId)))],s=r.length?xi(r,hi):[],u=(await Promise.all(s.map(p=>it(e).multiGetObjects({ids:p,options:{showOwner:!0}})))).flat(),a=new Map(r.map((p,m)=>[p,u[m]])),c=Array.from(a).filter(([p,m])=>m.error).map(([p,m])=>JSON.stringify(m.error));if(c.length)throw new Error(`The following input objects are invalid: ${c.join(", ")}`);let l=u.map(p=>{if(p.error||!p.data)throw new Error(`Failed to fetch object: ${p.error}`);let m=p.data.owner,S=m&&typeof m=="object"&&"Shared"in m?m.Shared.initial_shared_version:null;return{objectId:p.data.objectId,digest:p.data.digest,version:p.data.version,initialSharedVersion:S}}),f=new Map(r.map((p,m)=>[p,l[m]]));for(let[p,m]of n.inputs.entries()){if(!m.UnresolvedObject)continue;let S,_=k(m.UnresolvedObject.objectId),v=f.get(_);m.UnresolvedObject.initialSharedVersion??v?.initialSharedVersion?S=se.SharedObjectRef({objectId:_,initialSharedVersion:m.UnresolvedObject.initialSharedVersion||v?.initialSharedVersion,mutable:_i(n,p)}):Ii(n,p)&&(S=se.ReceivingRef({objectId:_,digest:m.UnresolvedObject.digest??v?.digest,version:m.UnresolvedObject.version??v?.version})),n.inputs[n.inputs.indexOf(m)]=S??se.ObjectRef({objectId:_,digest:m.UnresolvedObject.digest??v?.digest,version:m.UnresolvedObject.version??v?.version})}}i(wi,"resolveObjectReferences");async function ki(n,e){let{inputs:t,commands:r}=n,s=[],u=new Set;r.forEach(c=>{if(c.MoveCall){if(c.MoveCall._argumentTypes)return;if(c.MoveCall.arguments.map(p=>p.$kind==="Input"?n.inputs[p.Input]:null).some(p=>p?.UnresolvedPure||p?.UnresolvedObject)){let p=`${c.MoveCall.package}::${c.MoveCall.module}::${c.MoveCall.function}`;u.add(p),s.push(c.MoveCall)}}switch(c.$kind){case"SplitCoins":c.SplitCoins.amounts.forEach(l=>{Tr(l,g.U64,n)});break;case"TransferObjects":Tr(c.TransferObjects.address,g.Address,n);break}});let a=new Map;if(u.size>0){let c=it(e);await Promise.all([...u].map(async l=>{let[f,p,m]=l.split("::"),S=await c.getNormalizedMoveFunction({package:f,module:p,function:m});a.set(l,S.parameters.map(_=>xr(_)))}))}s.length&&await Promise.all(s.map(async c=>{let l=a.get(`${c.package}::${c.module}::${c.function}`);if(!l)return;let p=l.length>0&&Er(l.at(-1))?l.slice(0,l.length-1):l;c._argumentTypes=p})),r.forEach(c=>{if(!c.MoveCall)return;let l=c.MoveCall,f=`${l.package}::${l.module}::${l.function}`,p=l._argumentTypes;if(p){if(p.length!==c.MoveCall.arguments.length)throw new Error(`Incorrect number of arguments for ${f}`);p.forEach((m,S)=>{let _=l.arguments[S];if(_.$kind!=="Input")return;let v=t[_.Input];if(!v.UnresolvedPure&&!v.UnresolvedObject)return;let I=v.UnresolvedPure?.value??v.UnresolvedObject?.objectId,B=Ut(m.body);if(B){_.type="pure",t[t.indexOf(v)]=se.Pure(B.serialize(I));return}if(typeof I!="string")throw new Error(`Expect the argument to be an object id string, got ${JSON.stringify(I,null,2)}`);_.type="object";let $e=v.UnresolvedPure?{$kind:"UnresolvedObject",UnresolvedObject:{objectId:I}}:v;t[_.Input]=$e})}})}i(ki,"normalizeInputs");function Si(n){n.inputs.forEach((e,t)=>{if(e.$kind!=="Object"&&e.$kind!=="Pure")throw new Error(`Input at index ${t} has not been resolved. Expected a Pure or Object input, but found ${JSON.stringify(e)}`)})}i(Si,"validate");function Tr(n,e,t){if(n.$kind!=="Input")return;let r=t.inputs[n.Input];r.$kind==="UnresolvedPure"&&(t.inputs[n.Input]=se.Pure(e.serialize(r.UnresolvedPure.value)))}i(Tr,"normalizeRawArgument");function _i(n,e){let t=!1;return n.getInputUses(e,(r,s)=>{if(s.MoveCall&&s.MoveCall._argumentTypes){let u=s.MoveCall.arguments.indexOf(r);t=s.MoveCall._argumentTypes[u].ref!=="&"||t}(s.$kind==="MakeMoveVec"||s.$kind==="MergeCoins"||s.$kind==="SplitCoins")&&(t=!0)}),t}i(_i,"isUsedAsMutable");function Ii(n,e){let t=!1;return n.getInputUses(e,(r,s)=>{if(s.MoveCall&&s.MoveCall._argumentTypes){let u=s.MoveCall.arguments.indexOf(r);t=Ei(s.MoveCall._argumentTypes[u])||t}}),t}i(Ii,"isUsedAsReceiving");function Ei(n){return typeof n.body!="object"||!("datatype"in n.body)?!1:n.body.datatype.package==="0x2"&&n.body.datatype.module==="transfer"&&n.body.datatype.type==="Receiving"}i(Ei,"isReceivingType");function it(n){if(!n.client)throw new Error("No sui client passed to Transaction#build, but transaction data was not sufficient to build offline.");return n.client}i(it,"getClient");function xi(n,e){return Array.from({length:Math.ceil(n.length/e)},(t,r)=>n.slice(r*e,r*e+e))}i(xi,"chunk");function jr(n){function e(t){return n(t)}return i(e,"object"),e.system=()=>e("0x5"),e.clock=()=>e("0x6"),e.random=()=>e("0x8"),e.denyList=()=>e("0x403"),e.option=({type:t,value:r})=>s=>s.moveCall({typeArguments:[t],target:`0x1::option::${r===null?"none":"some"}`,arguments:r===null?[]:[s.object(r)]}),e}i(jr,"createObjectMethods");function Ar(n){function e(t,r){if(typeof t=="string")return n(ot(t).serialize(r));if(t instanceof Uint8Array||Le(t))return n(t);throw new Error("tx.pure must be called either a bcs type name, or a serialized bcs value")}return i(e,"pure"),e.u8=t=>n(g.U8.serialize(t)),e.u16=t=>n(g.U16.serialize(t)),e.u32=t=>n(g.U32.serialize(t)),e.u64=t=>n(g.U64.serialize(t)),e.u128=t=>n(g.U128.serialize(t)),e.u256=t=>n(g.U256.serialize(t)),e.bool=t=>n(g.Bool.serialize(t)),e.string=t=>n(g.String.serialize(t)),e.address=t=>n(g.Address.serialize(t)),e.id=e.address,e.vector=(t,r)=>n(g.vector(ot(t)).serialize(r)),e.option=(t,r)=>n(g.option(ot(t)).serialize(r)),e}i(Ar,"createPure");function ot(n){switch(n){case"u8":return g.u8();case"u16":return g.u16();case"u32":return g.u32();case"u64":return g.u64();case"u128":return g.u128();case"u256":return g.u256();case"bool":return g.bool();case"string":return g.string();case"id":case"address":return g.Address}let e=n.match(/^(vector|option)<(.+)>$/);if(e){let[t,r]=e.slice(1);return t==="vector"?g.vector(ot(r)):g.option(ot(r))}throw new Error(`Invalid Pure type name: ${n}`)}i(ot,"schemaFromName");function Cr(n,e){let t=Array.from(`${n}::`).map(s=>s.charCodeAt(0)),r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),Ir(r,{dkLen:32})}i(Cr,"hashTypedData");function Mr(n){return k(n).replace("0x","")}i(Mr,"prepareSuiAddress");var Ie=class n{static{i(this,"TransactionDataBuilder")}constructor(e){this.version=2,this.sender=e?.sender??null,this.expiration=e?.expiration??null,this.inputs=e?.inputs??[],this.commands=e?.commands??[],this.gasData=e?.gasData??{budget:null,price:null,owner:null,payment:null}}static fromKindBytes(e){let r=g.TransactionKind.parse(e).ProgrammableTransaction;if(!r)throw new Error("Unable to deserialize from bytes.");return n.restore({version:2,sender:null,expiration:null,gasData:{budget:null,owner:null,payment:null,price:null},inputs:r.inputs,commands:r.commands})}static fromBytes(e){let r=g.TransactionData.parse(e)?.V1,s=r.kind.ProgrammableTransaction;if(!r||!s)throw new Error("Unable to deserialize from bytes.");return n.restore({version:2,sender:r.sender,expiration:r.expiration,gasData:r.gasData,inputs:s.inputs,commands:s.commands})}static restore(e){return e.version===2?new n(j(Fe,e)):new n(j(Fe,wr(e)))}static getDigestFromBytes(e){let t=Cr("TransactionData",e);return le(t)}get gasConfig(){return this.gasData}set gasConfig(e){this.gasData=e}build({maxSizeBytes:e=1/0,overrides:t,onlyTransactionKind:r}={}){let s=this.inputs,u=this.commands,a={ProgrammableTransaction:{inputs:s,commands:u}};if(r)return g.TransactionKind.serialize(a,{maxSize:e}).toBytes();let c=t?.expiration??this.expiration,l=t?.sender??this.sender,f={...this.gasData,...t?.gasConfig,...t?.gasData};if(!l)throw new Error("Missing transaction sender");if(!f.budget)throw new Error("Missing gas budget");if(!f.payment)throw new Error("Missing gas payment");if(!f.price)throw new Error("Missing gas price");let p={sender:Mr(l),expiration:c||{None:!0},gasData:{payment:f.payment,owner:Mr(this.gasData.owner??l),price:BigInt(f.price),budget:BigInt(f.budget)},kind:{ProgrammableTransaction:{inputs:s,commands:u}}};return g.TransactionData.serialize({V1:p},{maxSize:e}).toBytes()}addInput(e,t){let r=this.inputs.length;return this.inputs.push(t),{Input:r,type:e,$kind:"Input"}}getInputUses(e,t){this.mapArguments((r,s)=>(r.$kind==="Input"&&r.Input===e&&t(r,s),r))}mapArguments(e){for(let t of this.commands)switch(t.$kind){case"MoveCall":t.MoveCall.arguments=t.MoveCall.arguments.map(s=>e(s,t));break;case"TransferObjects":t.TransferObjects.objects=t.TransferObjects.objects.map(s=>e(s,t)),t.TransferObjects.address=e(t.TransferObjects.address,t);break;case"SplitCoins":t.SplitCoins.coin=e(t.SplitCoins.coin,t),t.SplitCoins.amounts=t.SplitCoins.amounts.map(s=>e(s,t));break;case"MergeCoins":t.MergeCoins.destination=e(t.MergeCoins.destination,t),t.MergeCoins.sources=t.MergeCoins.sources.map(s=>e(s,t));break;case"MakeMoveVec":t.MakeMoveVec.elements=t.MakeMoveVec.elements.map(s=>e(s,t));break;case"Upgrade":t.Upgrade.ticket=e(t.Upgrade.ticket,t);break;case"$Intent":let r=t.$Intent.inputs;t.$Intent.inputs={};for(let[s,u]of Object.entries(r))t.$Intent.inputs[s]=Array.isArray(u)?u.map(a=>e(a,t)):e(u,t);break;case"Publish":break;default:throw new Error(`Unexpected transaction kind: ${t.$kind}`)}}replaceCommand(e,t){if(!Array.isArray(t)){this.commands[e]=t;return}let r=t.length-1;this.commands.splice(e,1,...t),r!==0&&this.mapArguments(s=>{switch(s.$kind){case"Result":s.Result>e&&(s.Result+=r);break;case"NestedResult":s.NestedResult[0]>e&&(s.NestedResult[0]+=r);break}return s})}getDigest(){let e=this.build({onlyTransactionKind:!1});return n.getDigestFromBytes(e)}snapshot(){return j(Fe,this)}};function jn(n){if(typeof n=="string")return k(n);if(n.Object)return n.Object.ImmOrOwnedObject?k(n.Object.ImmOrOwnedObject.objectId):n.Object.Receiving?k(n.Object.Receiving.objectId):k(n.Object.SharedObject.objectId);if(n.UnresolvedObject)return k(n.UnresolvedObject.objectId)}i(jn,"getIdFromCallArg");var Br=i(n=>{throw TypeError(n)},"__typeError"),Un=i((n,e,t)=>e.has(n)||Br("Cannot "+t),"__accessCheck"),E=i((n,e,t)=>(Un(n,e,"read from private field"),t?t.call(n):e.get(n)),"__privateGet"),ut=i((n,e,t)=>e.has(n)?Br("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),"__privateAdd"),Ue=i((n,e,t,r)=>(Un(n,e,"write to private field"),r?r.call(n,t):e.set(n,t),t),"__privateSet"),ye=i((n,e,t)=>(Un(n,e,"access private method"),t),"__privateMethod"),ct,lt,De,T,ie,Dt,Dn,Cn,Bn;function Ur(n,e=1/0){let t={$kind:"Result",Result:n},r=[],s=i(u=>r[u]??(r[u]={$kind:"NestedResult",NestedResult:[n,u]}),"nestedResultFor");return new Proxy(t,{set(){throw new Error("The transaction result is a proxy, and does not support setting properties directly")},get(u,a){if(a in u)return Reflect.get(u,a);if(a===Symbol.iterator)return function*(){let l=0;for(;l<e;)yield s(l),l++};if(typeof a=="symbol")return;let c=parseInt(a,10);if(!(Number.isNaN(c)||c<0))return s(c)}})}i(Ur,"createTransactionResult");var Rr=Symbol.for("@mysten/transaction");function Bt(n){return!!n&&typeof n=="object"&&n[Rr]===!0}i(Bt,"isTransaction");var Dr={buildPlugins:new Map,serializationPlugins:new Map},An=Symbol.for("@mysten/transaction/registry");function at(){try{let n=globalThis;return n[An]||(n[An]=Dr),n[An]}catch{return Dr}}i(at,"getGlobalPluginRegistry");var Ti=class Mn{static{i(this,"_Transaction")}constructor(){ut(this,ie),ut(this,ct),ut(this,lt),ut(this,De,new Map),ut(this,T),this.object=jr(t=>{if(typeof t=="function")return this.object(t(this));if(typeof t=="object"&&et(C,t))return t;let r=jn(t),s=E(this,T).inputs.find(u=>r===jn(u));return s?.Object?.SharedObject&&typeof t=="object"&&t.Object?.SharedObject&&(s.Object.SharedObject.mutable=s.Object.SharedObject.mutable||t.Object.SharedObject.mutable),s?{$kind:"Input",Input:E(this,T).inputs.indexOf(s),type:"object"}:E(this,T).addInput("object",typeof t=="string"?{$kind:"UnresolvedObject",UnresolvedObject:{objectId:k(t)}}:t)});let e=at();Ue(this,T,new Ie),Ue(this,lt,[...e.buildPlugins.values()]),Ue(this,ct,[...e.serializationPlugins.values()])}static fromKind(e){let t=new Mn;return Ue(t,T,Ie.fromKindBytes(typeof e=="string"?V(e):e)),t}static from(e){let t=new Mn;return Bt(e)?Ue(t,T,new Ie(e.getData())):typeof e!="string"||!e.startsWith("{")?Ue(t,T,Ie.fromBytes(typeof e=="string"?V(e):e)):Ue(t,T,Ie.restore(JSON.parse(e))),t}static registerGlobalSerializationPlugin(e,t){at().serializationPlugins.set(e,t??e)}static unregisterGlobalSerializationPlugin(e){at().serializationPlugins.delete(e)}static registerGlobalBuildPlugin(e,t){at().buildPlugins.set(e,t??e)}static unregisterGlobalBuildPlugin(e){at().buildPlugins.delete(e)}addSerializationPlugin(e){E(this,ct).push(e)}addBuildPlugin(e){E(this,lt).push(e)}addIntentResolver(e,t){if(E(this,De).has(e)&&E(this,De).get(e)!==t)throw new Error(`Intent resolver for ${e} already exists`);E(this,De).set(e,t)}setSender(e){E(this,T).sender=e}setSenderIfNotSet(e){E(this,T).sender||(E(this,T).sender=e)}setExpiration(e){E(this,T).expiration=e?j(Yt,e):null}setGasPrice(e){E(this,T).gasConfig.price=String(e)}setGasBudget(e){E(this,T).gasConfig.budget=String(e)}setGasBudgetIfNotSet(e){E(this,T).gasData.budget==null&&(E(this,T).gasConfig.budget=String(e))}setGasOwner(e){E(this,T).gasConfig.owner=e}setGasPayment(e){E(this,T).gasConfig.payment=e.map(t=>j(te,t))}get blockData(){return En(E(this,T).snapshot())}getData(){return E(this,T).snapshot()}get[Rr](){return!0}get pure(){return Object.defineProperty(this,"pure",{enumerable:!1,value:Ar(e=>Le(e)?E(this,T).addInput("pure",{$kind:"Pure",Pure:{bytes:e.toBase64()}}):E(this,T).addInput("pure",et(Jt,e)?j(Jt,e):e instanceof Uint8Array?se.Pure(e):{$kind:"UnresolvedPure",UnresolvedPure:{value:e}}))}),this.pure}get gas(){return{$kind:"GasCoin",GasCoin:!0}}objectRef(...e){return this.object(se.ObjectRef(...e))}receivingRef(...e){return this.object(se.ReceivingRef(...e))}sharedObjectRef(...e){return this.object(se.SharedObjectRef(...e))}add(e){if(typeof e=="function")return e(this);let t=E(this,T).commands.push(e);return Ur(t-1)}splitCoins(e,t){let r=ke.SplitCoins(typeof e=="string"?this.object(e):ye(this,ie,Dn).call(this,e),t.map(u=>typeof u=="number"||typeof u=="bigint"||typeof u=="string"?this.pure.u64(u):ye(this,ie,Dt).call(this,u))),s=E(this,T).commands.push(r);return Ur(s-1,t.length)}mergeCoins(e,t){return this.add(ke.MergeCoins(this.object(e),t.map(r=>this.object(r))))}publish({modules:e,dependencies:t}){return this.add(ke.Publish({modules:e,dependencies:t}))}upgrade({modules:e,dependencies:t,package:r,ticket:s}){return this.add(ke.Upgrade({modules:e,dependencies:t,package:r,ticket:this.object(s)}))}moveCall({arguments:e,...t}){return this.add(ke.MoveCall({...t,arguments:e?.map(r=>ye(this,ie,Dt).call(this,r))}))}transferObjects(e,t){return this.add(ke.TransferObjects(e.map(r=>this.object(r)),typeof t=="string"?this.pure.address(t):ye(this,ie,Dt).call(this,t)))}makeMoveVec({type:e,elements:t}){return this.add(ke.MakeMoveVec({type:e,elements:t.map(r=>this.object(r))}))}serialize(){return JSON.stringify(En(E(this,T).snapshot()))}async toJSON(e={}){return await this.prepareForSerialization(e),JSON.stringify(j(kr,E(this,T).snapshot()),(t,r)=>typeof r=="bigint"?r.toString():r,2)}async sign(e){let{signer:t,...r}=e,s=await this.build(r);return t.signTransaction(s)}async build(e={}){return await this.prepareForSerialization(e),await ye(this,ie,Cn).call(this,e),E(this,T).build({onlyTransactionKind:e.onlyTransactionKind})}async getDigest(e={}){return await ye(this,ie,Cn).call(this,e),E(this,T).getDigest()}async prepareForSerialization(e){let t=new Set;for(let s of E(this,T).commands)s.$Intent&&t.add(s.$Intent.name);let r=[...E(this,ct)];for(let s of t)if(!e.supportedIntents?.includes(s)){if(!E(this,De).has(s))throw new Error(`Missing intent resolver for ${s}`);r.push(E(this,De).get(s))}await ye(this,ie,Bn).call(this,r,e)}};ct=new WeakMap;lt=new WeakMap;De=new WeakMap;T=new WeakMap;ie=new WeakSet;Dt=i(function(n){return Le(n)?this.pure(n):ye(this,ie,Dn).call(this,n)},"normalizeTransactionArgument_fn");Dn=i(function(n){return typeof n=="function"?j(C,n(this)):j(C,n)},"resolveArgument_fn");Cn=i(async function(n){if(!n.onlyTransactionKind&&!E(this,T).sender)throw new Error("Missing transaction sender");await ye(this,ie,Bn).call(this,[...E(this,lt),Or],n)},"prepareBuild_fn");Bn=i(async function(n,e){let t=i(r=>{if(r>=n.length)return()=>{};let s=n[r];return async()=>{let u=t(r+1),a=!1,c=!1;if(await s(E(this,T),e,async()=>{if(a)throw new Error(`next() was call multiple times in TransactionPlugin ${r}`);a=!0,await u(),c=!0}),!a)throw new Error(`next() was not called in TransactionPlugin ${r}`);if(!c)throw new Error(`next() was not awaited in TransactionPlugin ${r}`)}},"createNext");await t(0)()},"runPlugins_fn");var Oi=Ti;var Vn=Gn(Xn(),1);import{Endpoints as Bi}from"@sentio/runtime";var Pr="1.20.0",$r="1.41.0";var ji={"-32700":"ParseError","-32701":"OversizedRequest","-32702":"OversizedResponse","-32600":"InvalidRequest","-32601":"MethodNotFound","-32602":"InvalidParams","-32603":"InternalError","-32604":"ServerBusy","-32000":"CallExecutionFailed","-32001":"UnknownError","-32003":"SubscriptionClosed","-32004":"SubscriptionClosedWithError","-32005":"BatchesNotSupported","-32006":"TooManySubscriptions","-32050":"TransientError","-32002":"TransactionExecutionClientError"},Rt=class extends Error{static{i(this,"SuiHTTPTransportError")}},Xe=class extends Rt{static{i(this,"JsonRpcError")}constructor(e,t){super(e),this.code=t,this.type=ji[t]??"ServerError"}},Pt=class extends Rt{static{i(this,"SuiHTTPStatusError")}constructor(e,t,r){super(e),this.status=t,this.statusText=r}};var Nr=i(n=>{throw TypeError(n)},"__typeError"),Pn=i((n,e,t)=>e.has(n)||Nr("Cannot "+t),"__accessCheck"),R=i((n,e,t)=>(Pn(n,e,"read from private field"),t?t.call(n):e.get(n)),"__privateGet"),Be=i((n,e,t)=>e.has(n)?Nr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),"__privateAdd"),Ke=i((n,e,t,r)=>(Pn(n,e,"write to private field"),r?r.call(n,t):e.set(n,t),t),"__privateSet"),zr=i((n,e,t)=>(Pn(n,e,"access private method"),t),"__privateMethod"),Ai=i((n,e,t,r)=>({set _(s){Ke(n,e,s,t)},get _(){return R(n,e,r)}}),"__privateWrapper"),Re,ft,be,Pe,pt,Je,$t,Vr,qr;function Ci(n){let e=new URL(n);return e.protocol=e.protocol.replace("http","ws"),e.toString()}i(Ci,"getWebsocketUrl");var Mi={WebSocketConstructor:typeof WebSocket<"u"?WebSocket:void 0,callTimeout:3e4,reconnectTimeout:3e3,maxReconnects:5},Nt=class{static{i(this,"WebsocketClient")}constructor(e,t={}){if(Be(this,$t),Be(this,Re,0),Be(this,ft,0),Be(this,be,null),Be(this,Pe,null),Be(this,pt,new Set),Be(this,Je,new Map),this.endpoint=e,this.options={...Mi,...t},!this.options.WebSocketConstructor)throw new Error("Missing WebSocket constructor");this.endpoint.startsWith("http")&&(this.endpoint=Ci(this.endpoint))}async makeRequest(e,t){let r=await zr(this,$t,Vr).call(this);return new Promise((s,u)=>{Ke(this,Re,R(this,Re)+1),R(this,Je).set(R(this,Re),{resolve:s,reject:u,timeout:setTimeout(()=>{R(this,Je).delete(R(this,Re)),u(new Error(`Request timeout: ${e}`))},this.options.callTimeout)}),r.send(JSON.stringify({jsonrpc:"2.0",id:R(this,Re),method:e,params:t}))}).then(({error:s,result:u})=>{if(s)throw new Xe(s.message,s.code);return u})}async subscribe(e){let t=new Rn(e);return R(this,pt).add(t),await t.subscribe(this),()=>t.unsubscribe(this)}};Re=new WeakMap;ft=new WeakMap;be=new WeakMap;Pe=new WeakMap;pt=new WeakMap;Je=new WeakMap;$t=new WeakSet;Vr=i(function(){return R(this,Pe)?R(this,Pe):(Ke(this,Pe,new Promise(n=>{R(this,be)?.close(),Ke(this,be,new this.options.WebSocketConstructor(this.endpoint)),R(this,be).addEventListener("open",()=>{Ke(this,ft,0),n(R(this,be))}),R(this,be).addEventListener("close",()=>{Ai(this,ft)._++,R(this,ft)<=this.options.maxReconnects&&setTimeout(()=>{zr(this,$t,qr).call(this)},this.options.reconnectTimeout)}),R(this,be).addEventListener("message",({data:e})=>{let t;try{t=JSON.parse(e)}catch(r){console.error(new Error(`Failed to parse RPC message: ${e}`,{cause:r}));return}if("id"in t&&t.id!=null&&R(this,Je).has(t.id)){let{resolve:r,timeout:s}=R(this,Je).get(t.id);clearTimeout(s),r(t)}else if("params"in t){let{params:r}=t;R(this,pt).forEach(s=>{s.subscriptionId===r.subscription&&r.subscription===s.subscriptionId&&s.onMessage(r.result)})}})})),R(this,Pe))},"setupWebSocket_fn");qr=i(async function(){return R(this,be)?.close(),Ke(this,Pe,null),Promise.allSettled([...R(this,pt)].map(n=>n.subscribe(this)))},"reconnect_fn");var Rn=class{static{i(this,"RpcSubscription")}constructor(e){this.subscriptionId=null,this.subscribed=!1,this.input=e}onMessage(e){this.subscribed&&this.input.onMessage(e)}async unsubscribe(e){let{subscriptionId:t}=this;return this.subscribed=!1,t==null?!1:(this.subscriptionId=null,e.makeRequest(this.input.unsubscribe,[t]))}async subscribe(e){this.subscriptionId=null,this.subscribed=!0;let t=await e.makeRequest(this.input.method,this.input.params);this.subscribed&&(this.subscriptionId=t)}};var Gr=i(n=>{throw TypeError(n)},"__typeError"),zn=i((n,e,t)=>e.has(n)||Gr("Cannot "+t),"__accessCheck"),J=i((n,e,t)=>(zn(n,e,"read from private field"),t?t.call(n):e.get(n)),"__privateGet"),zt=i((n,e,t)=>e.has(n)?Gr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),"__privateAdd"),$n=i((n,e,t,r)=>(zn(n,e,"write to private field"),r?r.call(n,t):e.set(n,t),t),"__privateSet"),Ui=i((n,e,t)=>(zn(n,e,"access private method"),t),"__privateMethod"),dt,oe,ht,Nn,Lr,Vt=class{static{i(this,"SuiHTTPTransport")}constructor(e){zt(this,Nn),zt(this,dt,0),zt(this,oe),zt(this,ht),$n(this,oe,e)}fetch(e,t){let r=J(this,oe).fetch??fetch;if(!r)throw new Error("The current environment does not support fetch, you can provide a fetch implementation in the options for SuiHTTPTransport.");return r(e,t)}async request(e){$n(this,dt,J(this,dt)+1);let t=await this.fetch(J(this,oe).rpc?.url??J(this,oe).url,{method:"POST",headers:{"Content-Type":"application/json","Client-Sdk-Type":"typescript","Client-Sdk-Version":Pr,"Client-Target-Api-Version":$r,"Client-Request-Method":e.method,...J(this,oe).rpc?.headers},body:JSON.stringify({jsonrpc:"2.0",id:J(this,dt),method:e.method,params:e.params})});if(!t.ok)throw new Pt(`Unexpected status code: ${t.status}`,t.status,t.statusText);let r=await t.json();if("error"in r&&r.error!=null)throw new Xe(r.error.message,r.error.code);return r.result}async subscribe(e){let t=await Ui(this,Nn,Lr).call(this).subscribe(e);return async()=>!!await t()}};dt=new WeakMap;oe=new WeakMap;ht=new WeakMap;Nn=new WeakSet;Lr=i(function(){if(!J(this,ht)){let n=J(this,oe).WebSocketConstructor??WebSocket;if(!n)throw new Error("The current environment does not support WebSocket, you can provide a WebSocketConstructor in the options for SuiHTTPTransport.");$n(this,ht,new Nt(J(this,oe).websocket?.url??J(this,oe).url,{WebSocketConstructor:n,...J(this,oe).websocket}))}return J(this,ht)},"getWebsocketClient_fn");var Di=Symbol.for("@mysten/SuiClient");var mt=class{static{i(this,"SuiClient")}get[Di](){return!0}constructor(e){this.transport=e.transport??new Vt({url:e.url})}async getRpcApiVersion(){return(await this.transport.request({method:"rpc.discover",params:[]})).info.version}async getCoins(e){if(!e.owner||!X(k(e.owner)))throw new Error("Invalid Sui address");return await this.transport.request({method:"suix_getCoins",params:[e.owner,e.coinType,e.cursor,e.limit]})}async getAllCoins(e){if(!e.owner||!X(k(e.owner)))throw new Error("Invalid Sui address");return await this.transport.request({method:"suix_getAllCoins",params:[e.owner,e.cursor,e.limit]})}async getBalance(e){if(!e.owner||!X(k(e.owner)))throw new Error("Invalid Sui address");return await this.transport.request({method:"suix_getBalance",params:[e.owner,e.coinType]})}async getAllBalances(e){if(!e.owner||!X(k(e.owner)))throw new Error("Invalid Sui address");return await this.transport.request({method:"suix_getAllBalances",params:[e.owner]})}async getCoinMetadata(e){return await this.transport.request({method:"suix_getCoinMetadata",params:[e.coinType]})}async getTotalSupply(e){return await this.transport.request({method:"suix_getTotalSupply",params:[e.coinType]})}async call(e,t){return await this.transport.request({method:e,params:t})}async getMoveFunctionArgTypes(e){return await this.transport.request({method:"sui_getMoveFunctionArgTypes",params:[e.package,e.module,e.function]})}async getNormalizedMoveModulesByPackage(e){return await this.transport.request({method:"sui_getNormalizedMoveModulesByPackage",params:[e.package]})}async getNormalizedMoveModule(e){return await this.transport.request({method:"sui_getNormalizedMoveModule",params:[e.package,e.module]})}async getNormalizedMoveFunction(e){return await this.transport.request({method:"sui_getNormalizedMoveFunction",params:[e.package,e.module,e.function]})}async getNormalizedMoveStruct(e){return await this.transport.request({method:"sui_getNormalizedMoveStruct",params:[e.package,e.module,e.struct]})}async getOwnedObjects(e){if(!e.owner||!X(k(e.owner)))throw new Error("Invalid Sui address");return await this.transport.request({method:"suix_getOwnedObjects",params:[e.owner,{filter:e.filter,options:e.options},e.cursor,e.limit]})}async getObject(e){if(!e.id||!We(W(e.id)))throw new Error("Invalid Sui Object id");return await this.transport.request({method:"sui_getObject",params:[e.id,e.options]})}async tryGetPastObject(e){return await this.transport.request({method:"sui_tryGetPastObject",params:[e.id,e.version,e.options]})}async multiGetObjects(e){if(e.ids.forEach(r=>{if(!r||!We(W(r)))throw new Error(`Invalid Sui Object id ${r}`)}),e.ids.length!==new Set(e.ids).size)throw new Error(`Duplicate object ids in batch call ${e.ids}`);return await this.transport.request({method:"sui_multiGetObjects",params:[e.ids,e.options]})}async queryTransactionBlocks(e){return await this.transport.request({method:"suix_queryTransactionBlocks",params:[{filter:e.filter,options:e.options},e.cursor,e.limit,(e.order||"descending")==="descending"]})}async getTransactionBlock(e){if(!jt(e.digest))throw new Error("Invalid Transaction digest");return await this.transport.request({method:"sui_getTransactionBlock",params:[e.digest,e.options]})}async multiGetTransactionBlocks(e){if(e.digests.forEach(r=>{if(!jt(r))throw new Error(`Invalid Transaction digest ${r}`)}),e.digests.length!==new Set(e.digests).size)throw new Error(`Duplicate digests in batch call ${e.digests}`);return await this.transport.request({method:"sui_multiGetTransactionBlocks",params:[e.digests,e.options]})}async executeTransactionBlock({transactionBlock:e,signature:t,options:r,requestType:s}){let u=await this.transport.request({method:"sui_executeTransactionBlock",params:[typeof e=="string"?e:D(e),Array.isArray(t)?t:[t],r]});if(s==="WaitForLocalExecution")try{await this.waitForTransaction({digest:u.digest})}catch{}return u}async signAndExecuteTransaction({transaction:e,signer:t,...r}){let s;e instanceof Uint8Array?s=e:(e.setSenderIfNotSet(t.toSuiAddress()),s=await e.build({client:this}));let{signature:u,bytes:a}=await t.signTransaction(s);return this.executeTransactionBlock({transactionBlock:a,signature:u,...r})}async getTotalTransactionBlocks(){let e=await this.transport.request({method:"sui_getTotalTransactionBlocks",params:[]});return BigInt(e)}async getReferenceGasPrice(){let e=await this.transport.request({method:"suix_getReferenceGasPrice",params:[]});return BigInt(e)}async getStakes(e){if(!e.owner||!X(k(e.owner)))throw new Error("Invalid Sui address");return await this.transport.request({method:"suix_getStakes",params:[e.owner]})}async getStakesByIds(e){return e.stakedSuiIds.forEach(t=>{if(!t||!We(W(t)))throw new Error(`Invalid Sui Stake id ${t}`)}),await this.transport.request({method:"suix_getStakesByIds",params:[e.stakedSuiIds]})}async getLatestSuiSystemState(){return await this.transport.request({method:"suix_getLatestSuiSystemState",params:[]})}async queryEvents(e){return await this.transport.request({method:"suix_queryEvents",params:[e.query,e.cursor,e.limit,(e.order||"descending")==="descending"]})}async subscribeEvent(e){return this.transport.subscribe({method:"suix_subscribeEvent",unsubscribe:"suix_unsubscribeEvent",params:[e.filter],onMessage:e.onMessage})}async subscribeTransaction(e){return this.transport.subscribe({method:"suix_subscribeTransaction",unsubscribe:"suix_unsubscribeTransaction",params:[e.filter],onMessage:e.onMessage})}async devInspectTransactionBlock(e){let t;if(Bt(e.transactionBlock))e.transactionBlock.setSenderIfNotSet(e.sender),t=D(await e.transactionBlock.build({client:this,onlyTransactionKind:!0}));else if(typeof e.transactionBlock=="string")t=e.transactionBlock;else if(e.transactionBlock instanceof Uint8Array)t=D(e.transactionBlock);else throw new Error("Unknown transaction block format.");return await this.transport.request({method:"sui_devInspectTransactionBlock",params:[e.sender,t,e.gasPrice?.toString(),e.epoch]})}async dryRunTransactionBlock(e){return await this.transport.request({method:"sui_dryRunTransactionBlock",params:[typeof e.transactionBlock=="string"?e.transactionBlock:D(e.transactionBlock)]})}async getDynamicFields(e){if(!e.parentId||!We(W(e.parentId)))throw new Error("Invalid Sui Object id");return await this.transport.request({method:"suix_getDynamicFields",params:[e.parentId,e.cursor,e.limit]})}async getDynamicFieldObject(e){return await this.transport.request({method:"suix_getDynamicFieldObject",params:[e.parentId,e.name]})}async getLatestCheckpointSequenceNumber(){let e=await this.transport.request({method:"sui_getLatestCheckpointSequenceNumber",params:[]});return String(e)}async getCheckpoint(e){return await this.transport.request({method:"sui_getCheckpoint",params:[e.id]})}async getCheckpoints(e){return await this.transport.request({method:"sui_getCheckpoints",params:[e.cursor,e?.limit,e.descendingOrder]})}async getCommitteeInfo(e){return await this.transport.request({method:"suix_getCommitteeInfo",params:[e?.epoch]})}async getNetworkMetrics(){return await this.transport.request({method:"suix_getNetworkMetrics",params:[]})}async getAddressMetrics(){return await this.transport.request({method:"suix_getLatestAddressMetrics",params:[]})}async getEpochMetrics(e){return await this.transport.request({method:"suix_getEpochMetrics",params:[e?.cursor,e?.limit,e?.descendingOrder]})}async getAllEpochAddressMetrics(e){return await this.transport.request({method:"suix_getAllEpochAddressMetrics",params:[e?.descendingOrder]})}async getEpochs(e){return await this.transport.request({method:"suix_getEpochs",params:[e?.cursor,e?.limit,e?.descendingOrder]})}async getMoveCallMetrics(){return await this.transport.request({method:"suix_getMoveCallMetrics",params:[]})}async getCurrentEpoch(){return await this.transport.request({method:"suix_getCurrentEpoch",params:[]})}async getValidatorsApy(){return await this.transport.request({method:"suix_getValidatorsApy",params:[]})}async getChainIdentifier(){let e=await this.getCheckpoint({id:"0"}),t=Z(e.digest);return ue(t.slice(0,4))}async resolveNameServiceAddress(e){return await this.transport.request({method:"suix_resolveNameServiceAddress",params:[e.name]})}async resolveNameServiceNames({format:e="dot",...t}){let{nextCursor:r,hasNextPage:s,data:u}=await this.transport.request({method:"suix_resolveNameServiceNames",params:[t.address,t.cursor,t.limit]});return{hasNextPage:s,nextCursor:r,data:u.map(a=>Sr(a,e))}}async getProtocolConfig(e){return await this.transport.request({method:"sui_getProtocolConfig",params:[e?.version]})}async waitForTransaction({signal:e,timeout:t=60*1e3,pollInterval:r=2*1e3,...s}){let u=AbortSignal.timeout(t),a=new Promise((c,l)=>{u.addEventListener("abort",()=>l(u.reason))});for(a.catch(()=>{});!u.aborted;){e?.throwIfAborted();try{return await this.getTransactionBlock(s)}catch{await Promise.race([new Promise(l=>setTimeout(l,r)),a])}}throw u.throwIfAborted(),new Error("Unexpected error while waiting for transaction block.")}};var Ri={MAIN_NET:Vn.SuiChainId.SUI_MAINNET,TEST_NET:Vn.SuiChainId.SUI_TESTNET};function Wr(n){let e=Bi.INSTANCE.chainServer.get(n);return e||(e=Pi(n)),new mt({url:e})}i(Wr,"getClient");function Pi(n){switch(n){case Ri.TEST_NET:return"https://fullnode.testnet.sui.io/"}return"https://fullnode.mainnet.sui.io/"}i(Pi,"getRpcEndpoint");import("node:process").then(n=>n.stdout.write(""));var qn=Gn(Xn(),1);var yt=new Map;async function jc(){let n=Vi.coinlist;try{n=(await(await Yn("https://raw.githubusercontent.com/solflare-wallet/sui-coinlist/master/sui-coinlist.json")).json()).coinlist}catch{console.warn("Can't not fetch newest coin list, use default list")}$i(n)}i(jc,"initCoinList");function $i(n){for(let e of n){if(e.address.startsWith("0x2::coin::Coin")||e.network!=="mainnet")continue;let t="native";e.name.includes("Celer")&&(t="Celer"),e.name.includes("LayerZero")&&(t="LayerZero"),e.name.includes("Wormhole")&&(t="Wormhole"),yt.set(e.address,{type:e.address,symbol:e.symbol,decimals:e.decimals,bridge:t})}}i($i,"setCoinList");function Ac(){return yt}i(Ac,"whitelistCoins");function Ni(n){let[e,t,r]=n.split(gt),s=[Kn(e),t,r].join(gt);return yt.has(s)}i(Ni,"whiteListed");function Cc(n){let e=yt.get(n);if(!e){let t=n.split("::");return{type:n,symbol:t[2],decimals:8,bridge:"native"}}return e}i(Cc,"getCoinInfo");var Fr=new Map;async function Mc(n,e){let t=yt.get(n);if(!t){e=e||qn.SuiChainId.SUI_MAINNET;let r=e+"_"+n,s=Fr.get(r);s||(s=Wr(e).getCoinMetadata({coinType:n}),Fr.set(r,s));let u=await s;if(u===null)throw Error("Coin not existed "+r);let a=n.split(gt);return{type:n,symbol:u.symbol,decimals:u.decimals,bridge:"native"}}return t}i(Mc,"getCoinInfoWithFallback");async function zi(n,e){if(!Ni(n))return 0;let t=new Date(e/1e3);try{return await Jn(qn.SuiChainId.SUI_MAINNET,n,t)||0}catch(r){throw console.log(JSON.stringify(r)),r}}i(zi,"getPrice");async function Uc(n,e,t){let r=await zi(e.type,t);return n.scaleDown(e.decimals).multipliedBy(r)}i(Uc,"calculateValueInUsd");var Vi={name:"Sui Coin List",timestamp:"2022-12-01T13:34:30.145Z",logoURI:"https://s2.coinmarketcap.com/static/img/coins/128x128/20947.png",coinlist:[{network:"mainnet",address:"0x2::coin::Coin<0x2::sui::SUI>",symbol:"SUI",name:"Sui Coin",decimals:9,logoURI:"https://cryptototem.com/wp-content/uploads/2022/08/SUI-logo.jpg",tags:[],extensions:{coingeckoId:"sui"}},{network:"testnet",address:"0x2::coin::Coin<0x2::sui::SUI>",symbol:"SUI",name:"Sui Coin",decimals:9,logoURI:"https://cryptototem.com/wp-content/uploads/2022/08/SUI-logo.jpg",tags:[],extensions:{coingeckoId:"sui"}},{network:"devnet",address:"0x2::coin::Coin<0x2::sui::SUI>",symbol:"SUI",name:"Sui Coin",decimals:9,logoURI:"https://cryptototem.com/wp-content/uploads/2022/08/SUI-logo.jpg",tags:[],extensions:{coingeckoId:"sui"}},{network:"mainnet",address:"0x2::sui::SUI",symbol:"SUI",name:"Sui Coin",decimals:9,logoURI:"https://cryptototem.com/wp-content/uploads/2022/08/SUI-logo.jpg",tags:[],extensions:{coingeckoId:"sui"}},{network:"testnet",address:"0x2::sui::SUI",symbol:"SUI",name:"Sui Coin",decimals:9,logoURI:"https://cryptototem.com/wp-content/uploads/2022/08/SUI-logo.jpg",tags:[],extensions:{coingeckoId:"sui"}},{network:"devnet",address:"0x2::sui::SUI",symbol:"SUI",name:"Sui Coin",decimals:9,logoURI:"https://cryptototem.com/wp-content/uploads/2022/08/SUI-logo.jpg",tags:[],extensions:{coingeckoId:"sui"}},{network:"testnet",address:"0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestTEST",symbol:"TEST",name:"Test Token",logoURI:"https://suiswap.app/images/token/suiswap-test.svg",tags:[],decimals:8,extensions:{}},{network:"testnet",address:"0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestUSDT",symbol:"USDT",name:"Tether",logoURI:"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/BQcdHdAQW1hczDbBi9hiegXAR7A98Q9jx3X3iBBBDiq4/logo.png",tags:[],decimals:8,extensions:{coingeckoId:"tether"}},{network:"testnet",address:"0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestUSDC",symbol:"USDC",name:"USD Coin",logoURI:"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/logo.png",decimals:8,tags:[],extensions:{coingeckoId:"usd-coin"}},{network:"testnet",address:"0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestSOL",symbol:"SOL",name:"Solana",logoURI:"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/So11111111111111111111111111111111111111112/logo.png",decimals:8,extensions:{coingeckoId:"solana"}},{network:"testnet",address:"0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestBTC",symbol:"BTC",name:"Bitcoin",logoURI:"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/9n4nbM75f5Ui33ZbPYXn59EwSgE8CGsHtAeTH5YFeJ9E/logo.png",decimals:8,tags:[],extensions:{coingeckoId:"bitcoin"}},{network:"testnet",address:"0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestDAI",symbol:"DAI",name:"DAI",logoURI:"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/FYpdBuyAHSbdaAyD1sKkxyLWbAP8uUW9h6uvdhK74ij1/logo.png",decimals:8,tags:[],extensions:{coingeckoId:"dai"}},{network:"testnet",address:"0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestBNB",symbol:"BNB",name:"BNB",logoURI:"https://assets.coingecko.com/coins/images/825/large/bnb-icon2_2x.png",decimals:8,tags:[],extensions:{coingeckoId:"binancecoin"}},{network:"testnet",address:"0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestETH",symbol:"ETH",name:"Ethereum",logoURI:"https://assets.coingecko.com/coins/images/279/large/ethereum.png",decimals:8,tags:[],extensions:{coingeckoId:"ethereum"}},{network:"testnet",address:"0x31b14985adb91360ed90a5786cb0956c83e7f275a8ae6123f38adab9d2b792b1::usdc::USDC",symbol:"USDC",name:"USD Coin",logoURI:"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/logo.png",decimals:8,tags:[],extensions:{coingeckoId:"usd-coin"}},{network:"devnet",address:"0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestTEST",symbol:"TEST",name:"Test Token",logoURI:"https://suiswap.app/images/token/suiswap-test.svg",tags:[],decimals:8,extensions:{}},{network:"devnet",address:"0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestUSDT",symbol:"USDT",name:"Tether",logoURI:"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/BQcdHdAQW1hczDbBi9hiegXAR7A98Q9jx3X3iBBBDiq4/logo.png",tags:[],decimals:8,extensions:{coingeckoId:"tether"}},{network:"devnet",address:"0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestUSDC",symbol:"USDC",name:"USD Coin",logoURI:"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/logo.png",decimals:8,tags:[],extensions:{coingeckoId:"usd-coin"}},{network:"devnet",address:"0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestSOL",symbol:"SOL",name:"Solana",logoURI:"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/So11111111111111111111111111111111111111112/logo.png",decimals:8,extensions:{coingeckoId:"solana"}},{network:"devnet",address:"0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestBTC",symbol:"BTC",name:"Bitcoin",logoURI:"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/9n4nbM75f5Ui33ZbPYXn59EwSgE8CGsHtAeTH5YFeJ9E/logo.png",decimals:8,tags:[],extensions:{coingeckoId:"bitcoin"}},{network:"devnet",address:"0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestDAI",symbol:"DAI",name:"DAI",logoURI:"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/FYpdBuyAHSbdaAyD1sKkxyLWbAP8uUW9h6uvdhK74ij1/logo.png",decimals:8,tags:[],extensions:{coingeckoId:"dai"}},{network:"devnet",address:"0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestBNB",symbol:"BNB",name:"BNB",logoURI:"https://assets.coingecko.com/coins/images/825/large/bnb-icon2_2x.png",decimals:8,tags:[],extensions:{coingeckoId:"binancecoin"}},{network:"devnet",address:"0xe158e6df182971bb6c85eb9de9fbfb460b68163d19afc45873c8672b5cc521b2::TOKEN::TestETH",symbol:"ETH",name:"Ethereum",logoURI:"https://assets.coingecko.com/coins/images/279/large/ethereum.png",decimals:8,tags:[],extensions:{coingeckoId:"ethereum"}},{network:"mainnet",address:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",symbol:"wETH",name:"Wrapped Ethereum (Wormhole)",decimals:8,logoURI:"https://assets.coingecko.com/coins/images/279/large/ethereum.png",tags:[],extensions:{coingeckoId:"ethereum"}},{network:"mainnet",address:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",symbol:"wUSDT",name:"Tether (Wormhole)",decimals:6,logoURI:"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/BQcdHdAQW1hczDbBi9hiegXAR7A98Q9jx3X3iBBBDiq4/logo.png",tags:[],extensions:{coingeckoId:"tether"}},{network:"mainnet",address:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",symbol:"wUSDC",name:"USD Coin (Wormhole)",decimals:6,logoURI:"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/logo.png",tags:[],extensions:{coingeckoId:"usd-coin"}},{network:"mainnet",address:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",symbol:"wCELO",name:"Celo (Wormhole)",decimals:8,logoURI:"https://assets.coingecko.com/coins/images/11090/large/InjXBNx9_400x400.jpg",tags:[],extensions:{coingeckoId:"celo"}},{network:"mainnet",address:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",symbol:"wMATIC",name:"Wrapped Matic (Wormhole)",decimals:8,logoURI:"https://assets.coingecko.com/coins/images/4713/large/matic-token-icon.png",tags:[],extensions:{coingeckoId:"matic-network"}},{network:"mainnet",address:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",symbol:"wBNB",name:"Wrapped BNB (Wormhole)",decimals:8,logoURI:"https://assets.coingecko.com/coins/images/825/large/bnb-icon2_2x.png",tags:[],extensions:{coingeckoId:"binancecoin"}},{network:"mainnet",address:"0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",symbol:"wBTC",name:"Wrapped Bitcoin (Wormhole)",decimals:8,logoURI:"https://assets.coingecko.com/coins/images/1/large/bitcoin.png",tags:[],extensions:{coingeckoId:"bitcoin"}},{network:"mainnet",address:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",symbol:"wAVAX",name:"Wrapped AVAX (Wormhole)",decimals:8,logoURI:"https://assets.coingecko.com/coins/images/12559/large/Avalanche_Circle_RedWhite_Trans.png",tags:[],extensions:{coingeckoId:"avalanche-2"}},{network:"mainnet",address:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",symbol:"wFTM",name:"Wrapped Fantom (Wormhole)",decimals:8,logoURI:"https://assets.coingecko.com/coins/images/4001/large/Fantom_round.png",tags:[],extensions:{coingeckoId:"fantom"}},{network:"mainnet",address:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",symbol:"wGLMR",name:"Wrapped GLMR (Wormhole)",decimals:8,logoURI:"https://assets.coingecko.com/coins/images/22459/large/glmr.png",tags:[],extensions:{coingeckoId:"moonbeam"}},{network:"mainnet",address:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",symbol:"wSOL",name:"Wrapped Solana (Wormhole)",decimals:8,logoURI:"https://assets.coingecko.com/coins/images/4128/large/solana.png",tags:[],extensions:{coingeckoId:"solana"}},{network:"mainnet",address:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",symbol:"wUSDCsol",name:"USD Coin Solana (Wormhole)",decimals:6,logoURI:"https://assets.coingecko.com/coins/images/6319/large/USD_Coin_icon.png",tags:[],extensions:{coingeckoId:"usd-coin"}}]};import("node:process").then(n=>n.stdout.write(""));export{k as a,W as b,g as c,Oi as d,mt as e,Ri as f,Wr as g,Pi as h,jc as i,Ac as j,Ni as k,Cc as l,Mc as m,zi as n,Uc as o};
3
- //# sourceMappingURL=chunk-NRVSYA3B.js.map