@swapkit/types 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +6 -6
- package/dist/index.js +2 -2
- package/dist/index.js.map +6 -6
- package/dist/types/chains/_enums.d.ts +18 -2
- package/dist/types/chains/_enums.d.ts.map +1 -1
- package/dist/types/chains/cosmos.d.ts +1 -1
- package/dist/types/chains/cosmos.d.ts.map +1 -1
- package/dist/types/chains/evm.d.ts +178 -66
- package/dist/types/chains/evm.d.ts.map +1 -1
- package/dist/types/chains/index.d.ts +112 -0
- package/dist/types/chains/index.d.ts.map +1 -1
- package/dist/types/chains/substrate.d.ts +1 -1
- package/dist/types/chains/substrate.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var{defineProperty:D,getOwnPropertyNames:M,getOwnPropertyDescriptor:j}=Object,X=Object.prototype.hasOwnProperty;var O=new WeakMap,G=(t)=>{var n=O.get(t),m;if(n)return n;if(n=D({},"__esModule",{value:!0}),t&&typeof t==="object"||typeof t==="function")M(t).map((a)=>!X.call(n,a)&&D(n,a,{get:()=>t[a],enumerable:!(m=j(t,a))||m.enumerable}));return O.set(t,n),n};var K=(t,n)=>{for(var m in n)D(t,m,{get:n[m],enumerable:!0,configurable:!0,set:(a)=>n[m]=()=>a})};var Me={};K(Me,{getChainConfig:()=>I,UTXOChains:()=>He,UTXOChainConfigs:()=>R,THORConfig:()=>u,TCLikeChains:()=>Y,SubstrateChains:()=>ye,SubstrateChainConfigs:()=>U,StagenetTHORConfig:()=>y,StagenetMAYAConfig:()=>k,StagenetHARBORConfig:()=>B,StagenetCosmosChains:()=>V,StagenetCosmosChainConfigs:()=>z,StagenetChains:()=>ge,StagenetChain:()=>x,RPC_URLS:()=>fe,OtherChains:()=>be,OtherChainConfigs:()=>v,NODE_URLS:()=>Be,NOBLEConfig:()=>w,MAYAConfig:()=>d,KUJIConfig:()=>g,HARBORConfig:()=>H,GAIAConfig:()=>T,EXPLORER_URLS:()=>Ee,EVMChains:()=>ne,EVMChainConfigs:()=>C,CosmosChains:()=>Z,CosmosChainPrefixes:()=>J,CosmosChainConfigs:()=>P,ChainToChainId:()=>Ie,ChainIdToChain:()=>Se,ChainId:()=>h,Chain:()=>i,BlockTimes:()=>Le,BaseDecimal:()=>Ne,AllChains:()=>E,AllChainConfigs:()=>A});module.exports=G(Me);var i;((o)=>{o.Arbitrum="ARB";o.Aurora="AURORA";o.Avalanche="AVAX";o.Base="BASE";o.Berachain="BERA";o.BinanceSmartChain="BSC";o.Cardano="ADA";o.Bitcoin="BTC";o.BitcoinCash="BCH";o.Cosmos="GAIA";o.Dash="DASH";o.Dogecoin="DOGE";o.Ethereum="ETH";o.Gnosis="GNO";o.Harbor="HARBOR";o.Kujira="KUJI";o.Litecoin="LTC";o.Maya="MAYA";o.Near="NEAR";o.Noble="NOBLE";o.Optimism="OP";o.Polkadot="DOT";o.Chainflip="FLIP";o.Polygon="POL";o.Radix="XRD";o.Ripple="XRP";o.THORChain="THOR";o.Solana="SOL";o.Sui="SUI";o.Ton="TON";o.Tron="TRON";o.Zcash="ZEC"})(i||={});var x;((a)=>{a.Harbor="MAYA_HARBOR";a.THORChain="THOR_STAGENET";a.Maya="MAYA_STAGENET"})(x||={});var h;((r)=>{r.Arbitrum="42161";r.Aurora="1313161554";r.Avalanche="43114";r.Base="8453";r.Berachain="80094";r.BinanceSmartChain="56";r.Bitcoin="bitcoin";r.BitcoinCash="bitcoincash";r.Cardano="cardano";r.Chainflip="chainflip";r.Cosmos="cosmoshub-4";r.Dash="dash";r.Dogecoin="dogecoin";r.Ethereum="1";r.Gnosis="100";r.Harbor="harbor-1";r.HarborStagenet="harbor-stagenet-1";r.Kujira="kaiyo-1";r.Litecoin="litecoin";r.Maya="mayachain-mainnet-v1";r.MayaStagenet="mayachain-stagenet-v1";r.Near="near";r.Noble="noble-1";r.Optimism="10";r.Polkadot="polkadot";r.Polygon="137";r.Radix="radix-mainnet";r.Ripple="ripple";r.THORChain="thorchain-1";r.THORChainStagenet="thorchain-stagenet-v2";r.Solana="solana";r.Sui="sui";r.Ton="ton";r.Tron="728126428";r.Zcash="zcash"})(h||={});function e(t){return t}var p="cosmos",T=e({baseDecimal:6,blockTime:2,chain:"GAIA",chainId:"cosmoshub-4",explorerUrl:"https://www.mintscan.io/cosmos",name:"Cosmos",nativeCurrency:"ATOM",networkDerivationPath:[44,118,0,0,0],rpcUrls:["https://cosmos-rpc.publicnode.com:443","https://cosmos-rpc.publicnode.com"],type:p}),u=e({baseDecimal:8,blockTime:6,chain:"THOR",chainId:"thorchain-1",explorerUrl:"https://runescan.io",name:"THORChain",nativeCurrency:"RUNE",networkDerivationPath:[44,931,0,0,0],nodeUrl:"https://thornode.ninerealms.com",rpcUrls:["https://rpc.ninerealms.com","https://thornode.ninerealms.com"],type:p}),y=e({baseDecimal:8,blockTime:6,chain:"THOR_STAGENET",chainId:"thorchain-stagenet-v2",explorerUrl:"https://runescan.io",name:"THORChain",nativeCurrency:"RUNE",networkDerivationPath:[44,931,0,0,0],nodeUrl:"https://stagenet-thornode.ninerealms.com",rpcUrls:["https://stagenet-rpc.ninerealms.com","https://stagenet-thornode.ninerealms.com"],type:p}),d=e({baseDecimal:8,blockTime:6,chain:"MAYA",chainId:"mayachain-mainnet-v1",explorerUrl:"https://www.mayascan.org",name:"Maya",nativeCurrency:"CACAO",networkDerivationPath:[44,931,0,0,0],nodeUrl:"https://mayanode.mayachain.info",rpcUrls:["https://tendermint.mayachain.info","https://maya-tendermint.publicnode.com","https://mayanode.mayachain.info"],type:p}),H=e({baseDecimal:8,blockTime:6,chain:"HARBOR",chainId:"harbor-1",explorerUrl:"",name:"Harbor",nativeCurrency:"HRB",networkDerivationPath:[44,931,0,0,0],rpcUrls:["https://xnode.harbor-dev.xyz/xnode"],type:p}),B=e({baseDecimal:8,blockTime:6,chain:"MAYA_HARBOR",chainId:"harbor-stagenet-1",explorerUrl:"",name:"Harbor",nativeCurrency:"HRB",networkDerivationPath:[44,931,0,0,0],rpcUrls:["https://xnode.harbor-dev.xyz/xnode"],type:p}),k=e({baseDecimal:8,blockTime:6,chain:"MAYA_STAGENET",chainId:"mayachain-stagenet-v1",explorerUrl:"https://www.mayascan.org",name:"Maya",nativeCurrency:"CACAO",networkDerivationPath:[44,931,0,0,0],nodeUrl:"https://stagenet.mayanode.mayachain.info",rpcUrls:["https://stagenet.mayanode.mayachain.info"],type:p}),g=e({baseDecimal:6,blockTime:2.2,chain:"KUJI",chainId:"kaiyo-1",explorerUrl:"https://finder.kujira.network/kaiyo-1",name:"Kujira",nativeCurrency:"KUJI",networkDerivationPath:[44,118,0,0,0],rpcUrls:["https://kujira-rpc.ibs.team","https://kujira-rpc.polkachu.com","https://rpc-kujira.synergynodes.com/"],type:p}),w=e({baseDecimal:6,blockTime:1.3,chain:"NOBLE",chainId:"noble-1",explorerUrl:"https://www.mintscan.io/noble",name:"Noble",nativeCurrency:"USDC",networkDerivationPath:[44,118,0,0,0],rpcUrls:["https://noble-rpc.polkachu.com","https://rpc.noble.xyz","https://rpc.cosmos.directory/noble"],type:p}),P=[T,u,d,g,w,H],Z=["GAIA","KUJI","MAYA","NOBLE","THOR","HARBOR"],z=[y,k,B],V=["MAYA_STAGENET","THOR_STAGENET","MAYA_HARBOR"],J={[T.chain]:"cosmos",[u.chain]:"thor",[d.chain]:"maya",[g.chain]:"kujira",[w.chain]:"noble",[H.chain]:"harbor"},Y=[u.chain,d.chain];var c="evm",s=[44,60,0,0,0],q=e({baseDecimal:18,blockTime:12.5,chain:"ETH",chainId:"1",chainIdHex:"0x1",explorerUrl:"https://etherscan.io",name:"Ethereum",nativeCurrency:"ETH",networkDerivationPath:s,rpcUrls:["https://ethereum-rpc.publicnode.com","https://eth.llamarpc.com","https://cloudflare-eth.com"],type:c}),Q=e({baseDecimal:18,blockTime:1,chain:"BSC",chainId:"56",chainIdHex:"0x38",explorerUrl:"https://bscscan.com",name:"BinanceSmartChain",nativeCurrency:"BNB",networkDerivationPath:s,rpcUrls:["https://bsc-dataseed.binance.org","https://bsc-rpc.gateway.pokt.network","https://bsc-dataseed2.binance.org"],type:c}),W=e({baseDecimal:18,blockTime:2,chain:"AVAX",chainId:"43114",chainIdHex:"0xa86a",explorerUrl:"https://snowtrace.io",name:"Avalanche",nativeCurrency:"AVAX",networkDerivationPath:s,rpcUrls:["https://api.avax.network/ext/bc/C/rpc","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain-rpc.publicnode.com"],type:c}),$=e({baseDecimal:18,blockTime:2.1,chain:"POL",chainId:"137",chainIdHex:"0x89",explorerUrl:"https://polygonscan.com",name:"Polygon",nativeCurrency:"POL",networkDerivationPath:s,rpcUrls:["https://polygon-rpc.com","https://polygon.llamarpc.com","https://polygon-bor-rpc.publicnode.com"],type:c}),F=e({baseDecimal:18,blockTime:0.3,chain:"ARB",chainId:"42161",chainIdHex:"0xa4b1",explorerUrl:"https://arbiscan.io",name:"Arbitrum",nativeCurrency:"ETH",networkDerivationPath:s,rpcUrls:["https://arb1.arbitrum.io/rpc","https://arb-mainnet.g.alchemy.com/v2/demo","https://arbitrum.blockpi.network/v1/rpc/public"],type:c}),_=e({baseDecimal:18,blockTime:2,chain:"OP",chainId:"10",chainIdHex:"0xa",explorerUrl:"https://optimistic.etherscan.io",name:"Optimism",nativeCurrency:"ETH",networkDerivationPath:s,rpcUrls:["https://mainnet.optimism.io","https://optimism.llamarpc.com","https://1rpc.io/op"],type:c}),ee=e({baseDecimal:18,blockTime:2,chain:"BASE",chainId:"8453",chainIdHex:"0x2105",explorerUrl:"https://basescan.org",name:"Base",nativeCurrency:"ETH",networkDerivationPath:s,rpcUrls:["https://base-rpc.publicnode.com","https://base.blockpi.network/v1/rpc/public","https://1rpc.io/base"],type:c}),re=e({baseDecimal:18,blockTime:5.2,chain:"GNO",chainId:"100",chainIdHex:"0x64",explorerUrl:"https://gnosisscan.io",name:"Gnosis",nativeCurrency:"xDAI",networkDerivationPath:s,rpcUrls:["https://gnosis-rpc.publicnode.com","https://gnosis.drpc.org","https://rpc.ankr.com/gnosis"],type:c}),te=e({baseDecimal:18,blockTime:1,chain:"AURORA",chainId:"1313161554",chainIdHex:"0x4e454152",explorerUrl:"https://explorer.mainnet.aurora.dev",name:"Aurora",nativeCurrency:"ETH",networkDerivationPath:s,rpcUrls:["https://aurora-rpc.publicnode.com","https://1rpc.io/aurora","https://mainnet.aurora.dev"],type:c}),oe=e({baseDecimal:18,blockTime:2,chain:"BERA",chainId:"80094",chainIdHex:"0x138de",explorerUrl:"https://berascan.com",name:"Berachain",nativeCurrency:"BERA",networkDerivationPath:s,rpcUrls:["https://berachain-rpc.publicnode.com","https://rpc.berachain.com","https://berachain.drpc.org"],type:c}),C=[q,Q,W,$,F,_,ee,re,te,oe],ne=["ARB","AURORA","AVAX","BASE","BERA","BSC","ETH","GNO","OP","POL"];var l="others",ae=e({baseDecimal:24,blockTime:1,chain:"NEAR",chainId:"near",explorerUrl:"https://nearblocks.io",name:"Near",nativeCurrency:"NEAR",networkDerivationPath:[44,397,0,0,0],rpcUrls:["https://rpc.mainnet.near.org","https://1rpc.io/near","https://near.lava.build","https://near-mainnet.infura.io/v3/3cbfcafa5e1e48b7bb0ea41f2fbc4abf"],type:l}),ce=e({baseDecimal:18,blockTime:5,chain:"XRD",chainId:"radix-mainnet",explorerUrl:"https://dashboard.radixdlt.com",name:"Radix",nativeCurrency:"XRD",networkDerivationPath:[0,0,0,0,0],rpcUrls:["https://radix-mainnet.rpc.grove.city/v1/326002fc/core","https://mainnet.radixdlt.com","https://radix-mainnet.rpc.grove.city/v1"],type:l}),se=e({baseDecimal:6,blockTime:5,chain:"XRP",chainId:"ripple",explorerUrl:"https://livenet.xrpl.org/",name:"Ripple",nativeCurrency:"XRP",networkDerivationPath:[44,144,0,0,0],rpcUrls:["wss://xrpl.ws/","wss://s1.ripple.com/","wss://s2.ripple.com/"],type:l}),ie=e({baseDecimal:9,blockTime:0.4,chain:"SOL",chainId:"solana",explorerUrl:"https://solscan.io",name:"Solana",nativeCurrency:"SOL",networkDerivationPath:[44,501,0,0,0],rpcUrls:["https://solana-rpc.publicnode.com","https://api.mainnet-beta.solana.com","https://solana-mainnet.rpc.extrnode.com"],type:l}),pe=e({baseDecimal:9,blockTime:5,chain:"TON",chainId:"ton",explorerUrl:"https://tonscan.org",name:"Ton",nativeCurrency:"TON",networkDerivationPath:[44,607,0,0,0],rpcUrls:["https://ton.api.onfinality.io/public","https://ton.drpc.org/rest/","https://toncenter.com/api/v2/jsonRPC"],type:l}),me=e({baseDecimal:6,blockTime:3,chain:"TRON",chainId:"728126428",chainIdHex:"0x2b6653dc",explorerUrl:"https://tronscan.org",name:"Tron",nativeCurrency:"TRX",networkDerivationPath:[44,195,0,0,0],rpcUrls:["https://tron-rpc.publicnode.com","https://api.tronstack.io","https://api.tron.network"],type:l}),le=e({baseDecimal:9,blockTime:5,chain:"SUI",chainId:"sui",explorerUrl:"https://suiscan.xyz",name:"Sui",nativeCurrency:"SUI",networkDerivationPath:[44,784,0,0,0],rpcUrls:["https://fullnode.mainnet.sui.io:443"],type:l}),he=e({baseDecimal:6,blockTime:600,chain:"ADA",chainId:"cardano",explorerUrl:"https://cexplorer.io",name:"Cardano",nativeCurrency:"ADA",networkDerivationPath:[1852,1815,0,0,0],rpcUrls:["https://api.koios.rest/api/v1","https://cardano-mainnet.blockfrost.io/api/v0"],type:l}),v=[ae,ce,se,ie,pe,me,le,he],be=v.map((t)=>t.chain);var f="substrate",xe=e({baseDecimal:10,blockTime:6,chain:"DOT",chainId:"polkadot",explorerUrl:"https://polkadot.subscan.io",name:"Polkadot",nativeCurrency:"DOT",networkDerivationPath:[0,0,0,0,0],rpcUrls:["wss://rpc.polkadot.io","wss://polkadot-rpc.dwellir.com","wss://polkadot.api.onfinality.io/public-ws"],type:f}),ue=e({baseDecimal:18,blockTime:5,chain:"FLIP",chainId:"chainflip",explorerUrl:"https://explorer.polkascan.io/polkadot",name:"Chainflip",nativeCurrency:"FLIP",networkDerivationPath:[0,0,0,0,0],rpcUrls:["wss://mainnet-archive.chainflip.io","wss://archive-1.mainnet.chainflip.io","wss://archive-2.mainnet.chainflip.io"],type:f}),U=[xe,ue],ye=U.map((t)=>t.chain);var b="utxo",de=e({baseDecimal:8,blockTime:600,chain:"BTC",chainId:"bitcoin",explorerUrl:"https://blockchair.com/bitcoin",name:"Bitcoin",nativeCurrency:"BTC",networkDerivationPath:[84,0,0,0,0],rpcUrls:["https://bitcoin-rpc.publicnode.com","https://bitcoin.publicnode.com"],type:b}),ke=e({baseDecimal:8,blockTime:600,chain:"BCH",chainId:"bitcoincash",explorerUrl:"https://www.blockchair.com/bitcoin-cash",name:"BitcoinCash",nativeCurrency:"BCH",networkDerivationPath:[44,145,0,0,0],rpcUrls:["https://bch-dataseed.binance.org","https://bch.getblock.io/mainnet"],type:b}),ve=e({baseDecimal:8,blockTime:150,chain:"LTC",chainId:"litecoin",explorerUrl:"https://blockchair.com/litecoin",name:"Litecoin",nativeCurrency:"LTC",networkDerivationPath:[84,2,0,0,0],rpcUrls:["https://ltc.getblock.io/mainnet","https://litecoin.publicnode.com"],type:b}),Ue=e({baseDecimal:8,blockTime:60,chain:"DOGE",chainId:"dogecoin",explorerUrl:"https://blockchair.com/dogecoin",name:"Dogecoin",nativeCurrency:"DOGE",networkDerivationPath:[44,3,0,0,0],rpcUrls:["https://doge.getblock.io/mainnet","https://dogecoin.publicnode.com"],type:b}),De=e({baseDecimal:8,blockTime:150,chain:"DASH",chainId:"dash",explorerUrl:"https://blockchair.com/dash",name:"Dash",nativeCurrency:"DASH",networkDerivationPath:[44,5,0,0,0],rpcUrls:["https://dash-rpc.publicnode.com","https://dash.getblock.io/mainnet"],type:b}),Te=e({baseDecimal:8,blockTime:75,chain:"ZEC",chainId:"zcash",explorerUrl:"https://blockchair.com/zcash",name:"Zcash",nativeCurrency:"ZEC",networkDerivationPath:[44,133,0,0,0],rpcUrls:[],type:b}),R=[de,ke,ve,Ue,De,Te],He=["BTC","BCH","DASH","DOGE","LTC","ZEC"];var A=[...R,...C,...P,...U,...v].sort((t,n)=>t.chain.localeCompare(n.chain)),E=Object.values(i),ge=["THOR_STAGENET","MAYA_STAGENET"],we=A.reduce((t,n)=>{return t[n.chain]=n,t[n.chainId]=n,t},{});function I(t){return we[t]||{}}var{chainIdToChain:Pe,chainToBaseDecimal:Ce,chainToBlockTime:Re,explorerUrls:Ae,rpcUrls:Oe}=E.reduce((t,n)=>{let{chainId:m,baseDecimal:a,blockTime:S,explorerUrl:N,rpcUrls:L}=I(n);return t.chainIdToChain[m]=n,t.chainToBaseDecimal[n]=a,t.chainToBlockTime[n]=S,t.explorerUrls[n]=N,t.rpcUrls[n]=L[0]||"",t},{chainIdToChain:{},chainToBaseDecimal:{},chainToBlockTime:{},explorerUrls:{},rpcUrls:{MAYA_STAGENET:k.rpcUrls[0],THOR_STAGENET:y.rpcUrls[0]}}),Be={THOR:"https://thornode.ninerealms.com",MAYA:"https://mayanode.mayachain.info",THOR_STAGENET:"https://stagenet-thornode.ninerealms.com",MAYA_STAGENET:"https://stagenet.mayanode.mayachain.info"},fe=Oe,Ee=Ae,Ie=Object.fromEntries(A.flatMap(({chain:t,chainId:n})=>[[t,n]])),Se=Pe,Ne=Ce,Le=Re;
|
|
1
|
+
var{defineProperty:T,getOwnPropertyNames:M,getOwnPropertyDescriptor:j}=Object,z=Object.prototype.hasOwnProperty;var A=new WeakMap,G=(o)=>{var n=A.get(o),l;if(n)return n;if(n=T({},"__esModule",{value:!0}),o&&typeof o==="object"||typeof o==="function")M(o).map((s)=>!z.call(n,s)&&T(n,s,{get:()=>o[s],enumerable:!(l=j(o,s))||l.enumerable}));return A.set(o,n),n};var K=(o,n)=>{for(var l in n)T(o,l,{get:n[l],enumerable:!0,configurable:!0,set:(s)=>n[l]=()=>s})};var qr={};K(qr,{getChainConfig:()=>S,UTXOChains:()=>Ar,UTXOChainConfigs:()=>P,THORConfig:()=>U,TCLikeChains:()=>J,SubstrateChains:()=>Cr,SubstrateChainConfigs:()=>O,StagenetTHORConfig:()=>u,StagenetMAYAConfig:()=>y,StagenetHARBORConfig:()=>g,StagenetCosmosChains:()=>Y,StagenetCosmosChainConfigs:()=>V,StagenetChains:()=>Er,StagenetChain:()=>d,RPC_URLS:()=>zr,OtherChains:()=>Dr,OtherChainConfigs:()=>v,NODE_URLS:()=>jr,NOBLEConfig:()=>w,MAYAConfig:()=>k,KUJIConfig:()=>C,HARBORConfig:()=>H,GAIAConfig:()=>D,EXPLORER_URLS:()=>Gr,EVMChains:()=>br,EVMChainConfigs:()=>f,CosmosChains:()=>Z,CosmosChainPrefixes:()=>q,CosmosChainConfigs:()=>R,ChainToChainId:()=>Kr,ChainIdToChain:()=>Zr,ChainId:()=>b,Chain:()=>p,BlockTimes:()=>Yr,BaseDecimal:()=>Vr,AllChains:()=>I,AllChainConfigs:()=>B});module.exports=G(qr);var p;((t)=>{t.Arbitrum="ARB";t.Aurora="AURORA";t.Avalanche="AVAX";t.Base="BASE";t.Berachain="BERA";t.BinanceSmartChain="BSC";t.Cardano="ADA";t.Botanix="BOTANIX";t.Core="CORE";t.Corn="CORN";t.Cronos="CRO";t.Bitcoin="BTC";t.BitcoinCash="BCH";t.Cosmos="GAIA";t.Dash="DASH";t.Dogecoin="DOGE";t.Ethereum="ETH";t.Gnosis="GNO";t.Harbor="HARBOR";t.Hyperevm="HYPEREVM";t.Kujira="KUJI";t.Sonic="SONIC";t.Unichain="UNI";t.XLayer="XLAYER";t.Litecoin="LTC";t.Maya="MAYA";t.Near="NEAR";t.Noble="NOBLE";t.Optimism="OP";t.Polkadot="DOT";t.Chainflip="FLIP";t.Polygon="POL";t.Radix="XRD";t.Ripple="XRP";t.THORChain="THOR";t.Solana="SOL";t.Sui="SUI";t.Ton="TON";t.Tron="TRON";t.Zcash="ZEC"})(p||={});var d;((s)=>{s.Harbor="MAYA_HARBOR";s.THORChain="THOR_STAGENET";s.Maya="MAYA_STAGENET"})(d||={});var b;((e)=>{e.Arbitrum="42161";e.Aurora="1313161554";e.Avalanche="43114";e.Base="8453";e.Berachain="80094";e.BinanceSmartChain="56";e.Bitcoin="bitcoin";e.BitcoinCash="bitcoincash";e.Botanix="3637";e.Cardano="cardano";e.Chainflip="chainflip";e.Core="1116";e.Corn="21000000";e.Cosmos="cosmoshub-4";e.Cronos="25";e.Dash="dash";e.Dogecoin="dogecoin";e.Ethereum="1";e.Gnosis="100";e.Harbor="harbor-1";e.HarborStagenet="harbor-stagenet-1";e.Hyperevm="2868";e.Kujira="kaiyo-1";e.Litecoin="litecoin";e.Maya="mayachain-mainnet-v1";e.MayaStagenet="mayachain-stagenet-v1";e.Near="near";e.Noble="noble-1";e.Optimism="10";e.Polkadot="polkadot";e.Polygon="137";e.Radix="radix-mainnet";e.Ripple="ripple";e.Solana="solana";e.Sonic="146";e.Sui="sui";e.THORChain="thorchain-1";e.THORChainStagenet="thorchain-stagenet-v2";e.Ton="ton";e.Tron="728126428";e.Unichain="130";e.XLayer="196";e.Zcash="zcash"})(b||={});function r(o){return o}var m="cosmos",D=r({baseDecimal:6,blockTime:2,chain:"GAIA",chainId:"cosmoshub-4",explorerUrl:"https://www.mintscan.io/cosmos",name:"Cosmos",nativeCurrency:"ATOM",networkDerivationPath:[44,118,0,0,0],rpcUrls:["https://cosmos-rpc.publicnode.com:443","https://cosmos-rpc.publicnode.com"],type:m}),U=r({baseDecimal:8,blockTime:6,chain:"THOR",chainId:"thorchain-1",explorerUrl:"https://runescan.io",name:"THORChain",nativeCurrency:"RUNE",networkDerivationPath:[44,931,0,0,0],nodeUrl:"https://thornode.ninerealms.com",rpcUrls:["https://rpc.ninerealms.com","https://thornode.ninerealms.com"],type:m}),u=r({baseDecimal:8,blockTime:6,chain:"THOR_STAGENET",chainId:"thorchain-stagenet-v2",explorerUrl:"https://runescan.io",name:"THORChain",nativeCurrency:"RUNE",networkDerivationPath:[44,931,0,0,0],nodeUrl:"https://stagenet-thornode.ninerealms.com",rpcUrls:["https://stagenet-rpc.ninerealms.com","https://stagenet-thornode.ninerealms.com"],type:m}),k=r({baseDecimal:8,blockTime:6,chain:"MAYA",chainId:"mayachain-mainnet-v1",explorerUrl:"https://www.mayascan.org",name:"Maya",nativeCurrency:"CACAO",networkDerivationPath:[44,931,0,0,0],nodeUrl:"https://mayanode.mayachain.info",rpcUrls:["https://tendermint.mayachain.info","https://maya-tendermint.publicnode.com","https://mayanode.mayachain.info"],type:m}),H=r({baseDecimal:8,blockTime:6,chain:"HARBOR",chainId:"harbor-1",explorerUrl:"",name:"Harbor",nativeCurrency:"HRB",networkDerivationPath:[44,931,0,0,0],rpcUrls:["https://xnode.harbor-dev.xyz/xnode"],type:m}),g=r({baseDecimal:8,blockTime:6,chain:"MAYA_HARBOR",chainId:"harbor-stagenet-1",explorerUrl:"",name:"Harbor",nativeCurrency:"HRB",networkDerivationPath:[44,931,0,0,0],rpcUrls:["https://xnode.harbor-dev.xyz/xnode"],type:m}),y=r({baseDecimal:8,blockTime:6,chain:"MAYA_STAGENET",chainId:"mayachain-stagenet-v1",explorerUrl:"https://www.mayascan.org",name:"Maya",nativeCurrency:"CACAO",networkDerivationPath:[44,931,0,0,0],nodeUrl:"https://stagenet.mayanode.mayachain.info",rpcUrls:["https://stagenet.mayanode.mayachain.info"],type:m}),C=r({baseDecimal:6,blockTime:2.2,chain:"KUJI",chainId:"kaiyo-1",explorerUrl:"https://finder.kujira.network/kaiyo-1",name:"Kujira",nativeCurrency:"KUJI",networkDerivationPath:[44,118,0,0,0],rpcUrls:["https://kujira-rpc.ibs.team","https://kujira-rpc.polkachu.com","https://rpc-kujira.synergynodes.com/"],type:m}),w=r({baseDecimal:6,blockTime:1.3,chain:"NOBLE",chainId:"noble-1",explorerUrl:"https://www.mintscan.io/noble",name:"Noble",nativeCurrency:"USDC",networkDerivationPath:[44,118,0,0,0],rpcUrls:["https://noble-rpc.polkachu.com","https://rpc.noble.xyz","https://rpc.cosmos.directory/noble"],type:m}),R=[D,U,k,C,w,H],Z=["GAIA","KUJI","MAYA","NOBLE","THOR","HARBOR"],V=[u,y,g],Y=["MAYA_STAGENET","THOR_STAGENET","MAYA_HARBOR"],q={[D.chain]:"cosmos",[U.chain]:"thor",[u.chain]:"sthor",[k.chain]:"maya",[y.chain]:"smaya",[C.chain]:"kujira",[w.chain]:"noble",[H.chain]:"harbor",[g.chain]:"sharbor"},J=[U.chain,k.chain];var c="evm",a=18,i=[44,60,0,0,0],Q=r({baseDecimal:a,blockTime:12.5,chain:"ETH",chainId:"1",chainIdHex:"0x1",explorerUrl:"https://etherscan.io",name:"Ethereum",nativeCurrency:"ETH",networkDerivationPath:i,rpcUrls:["https://ethereum-rpc.publicnode.com","https://eth.llamarpc.com","https://cloudflare-eth.com"],type:c}),W=r({baseDecimal:a,blockTime:1,chain:"BSC",chainId:"56",chainIdHex:"0x38",explorerUrl:"https://bscscan.com",name:"BinanceSmartChain",nativeCurrency:"BNB",networkDerivationPath:i,rpcUrls:["https://bsc-dataseed.binance.org","https://bsc-rpc.gateway.pokt.network","https://bsc-dataseed2.binance.org"],type:c}),$=r({baseDecimal:a,blockTime:2,chain:"AVAX",chainId:"43114",chainIdHex:"0xa86a",explorerUrl:"https://snowtrace.io",name:"Avalanche",nativeCurrency:"AVAX",networkDerivationPath:i,rpcUrls:["https://api.avax.network/ext/bc/C/rpc","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain-rpc.publicnode.com"],type:c}),F=r({baseDecimal:a,blockTime:2.1,chain:"POL",chainId:"137",chainIdHex:"0x89",explorerUrl:"https://polygonscan.com",name:"Polygon",nativeCurrency:"POL",networkDerivationPath:i,rpcUrls:["https://polygon-rpc.com","https://polygon.llamarpc.com","https://polygon-bor-rpc.publicnode.com"],type:c}),_=r({baseDecimal:a,blockTime:0.3,chain:"ARB",chainId:"42161",chainIdHex:"0xa4b1",explorerUrl:"https://arbiscan.io",name:"Arbitrum",nativeCurrency:"ETH",networkDerivationPath:i,rpcUrls:["https://arb1.arbitrum.io/rpc","https://arb-mainnet.g.alchemy.com/v2/demo","https://arbitrum.blockpi.network/v1/rpc/public"],type:c}),rr=r({baseDecimal:a,blockTime:2,chain:"OP",chainId:"10",chainIdHex:"0xa",explorerUrl:"https://optimistic.etherscan.io",name:"Optimism",nativeCurrency:"ETH",networkDerivationPath:i,rpcUrls:["https://mainnet.optimism.io","https://optimism.llamarpc.com","https://1rpc.io/op"],type:c}),er=r({baseDecimal:a,blockTime:2,chain:"BASE",chainId:"8453",chainIdHex:"0x2105",explorerUrl:"https://basescan.org",name:"Base",nativeCurrency:"ETH",networkDerivationPath:i,rpcUrls:["https://base-rpc.publicnode.com","https://base.blockpi.network/v1/rpc/public","https://1rpc.io/base"],type:c}),tr=r({baseDecimal:a,blockTime:5.2,chain:"GNO",chainId:"100",chainIdHex:"0x64",explorerUrl:"https://gnosisscan.io",name:"Gnosis",nativeCurrency:"xDAI",networkDerivationPath:i,rpcUrls:["https://gnosis-rpc.publicnode.com","https://gnosis.drpc.org","https://rpc.ankr.com/gnosis"],type:c}),or=r({baseDecimal:a,blockTime:1,chain:"AURORA",chainId:"1313161554",chainIdHex:"0x4e454152",explorerUrl:"https://explorer.mainnet.aurora.dev",name:"Aurora",nativeCurrency:"ETH",networkDerivationPath:i,rpcUrls:["https://aurora-rpc.publicnode.com","https://1rpc.io/aurora","https://mainnet.aurora.dev"],type:c}),nr=r({baseDecimal:a,blockTime:2,chain:"BERA",chainId:"80094",chainIdHex:"0x138de",explorerUrl:"https://berascan.com",name:"Berachain",nativeCurrency:"BERA",networkDerivationPath:i,rpcUrls:["https://berachain-rpc.publicnode.com","https://rpc.berachain.com","https://berachain.drpc.org"],type:c}),cr=r({baseDecimal:a,blockTime:2,chain:"HYPEREVM",chainId:"2868",chainIdHex:"0x3e7",explorerUrl:"https://app.hyperliquid.xyz/explorer",name:"Hyperliquid",nativeCurrency:"HYPE",networkDerivationPath:i,rpcUrls:["https://rpc.hyperliquid.xyz/evm","https://rpc.hypurrscan.io"],type:c}),ar=r({baseDecimal:a,blockTime:2,chain:"UNI",chainId:"130",chainIdHex:"0x82",explorerUrl:"https://unichain.blockscout.com",name:"Unichain",nativeCurrency:"ETH",networkDerivationPath:i,rpcUrls:["https://unichain-rpc.publicnode.com","https://unichain.drpc.org"],type:c}),ir=r({baseDecimal:a,blockTime:2,chain:"CORN",chainId:"21000000",chainIdHex:"0x1406f40",explorerUrl:"https://cornscan.io",name:"Corn",nativeCurrency:"BTCN",networkDerivationPath:i,rpcUrls:["https://mainnet.corn-rpc.com","https://rpc.ankr.com/corn_maizenet"],type:c}),sr=r({baseDecimal:a,blockTime:2,chain:"CORE",chainId:"1116",chainIdHex:"0x45c",explorerUrl:"https://corescan.io",name:"Core",nativeCurrency:"CORE",networkDerivationPath:i,rpcUrls:["https://core-rpc.publicnode.com","https://1rpc.io/core"],type:c}),pr=r({baseDecimal:a,blockTime:2,chain:"BOTANIX",chainId:"3637",chainIdHex:"0xe35",explorerUrl:"https://botanixscan.io",name:"Botanix",nativeCurrency:"BTC",networkDerivationPath:i,rpcUrls:["https://core.drpc.org","https://1rpc.io/core"],type:c}),mr=r({baseDecimal:a,blockTime:2,chain:"CRO",chainId:"25",chainIdHex:"0x19",explorerUrl:"https://croscan.io",name:"Cronos",nativeCurrency:"CRO",networkDerivationPath:i,rpcUrls:["https://rpc.vvs.finance"],type:c}),lr=r({baseDecimal:a,blockTime:2,chain:"XLAYER",chainId:"196",chainIdHex:"0xc4",explorerUrl:"https://okbscan.com",name:"X Layer",nativeCurrency:"OKB",networkDerivationPath:i,rpcUrls:["https://rpc.xlayer.tech"],type:c}),hr=r({baseDecimal:a,blockTime:2,chain:"SONIC",chainId:"146",chainIdHex:"0x92",explorerUrl:"https://sonicscan.io",name:"Sonic",nativeCurrency:"S",networkDerivationPath:i,rpcUrls:["https://rpc.sonic.xyz"],type:c}),f=[_,or,$,er,nr,pr,W,sr,ir,mr,Q,tr,cr,rr,F,hr,ar,lr],br=["ARB","AURORA","AVAX","BASE","BERA","BSC","BOTANIX","CORE","CORN","CORN","CRO","ETH","GNO","HYPEREVM","OP","POL","SONIC","UNI","XLAYER"];var h="others",xr=r({baseDecimal:24,blockTime:1,chain:"NEAR",chainId:"near",explorerUrl:"https://nearblocks.io",name:"Near",nativeCurrency:"NEAR",networkDerivationPath:[44,397,0,0,0],rpcUrls:["https://rpc.mainnet.near.org","https://1rpc.io/near","https://near.lava.build","https://near-mainnet.infura.io/v3/3cbfcafa5e1e48b7bb0ea41f2fbc4abf"],type:h}),ur=r({baseDecimal:18,blockTime:5,chain:"XRD",chainId:"radix-mainnet",explorerUrl:"https://dashboard.radixdlt.com",name:"Radix",nativeCurrency:"XRD",networkDerivationPath:[0,0,0,0,0],rpcUrls:["https://radix-mainnet.rpc.grove.city/v1/326002fc/core","https://mainnet.radixdlt.com","https://radix-mainnet.rpc.grove.city/v1"],type:h}),yr=r({baseDecimal:6,blockTime:5,chain:"XRP",chainId:"ripple",explorerUrl:"https://livenet.xrpl.org/",name:"Ripple",nativeCurrency:"XRP",networkDerivationPath:[44,144,0,0,0],rpcUrls:["wss://xrpl.ws/","wss://s1.ripple.com/","wss://s2.ripple.com/"],type:h}),dr=r({baseDecimal:9,blockTime:0.4,chain:"SOL",chainId:"solana",explorerUrl:"https://solscan.io",name:"Solana",nativeCurrency:"SOL",networkDerivationPath:[44,501,0,0,0],rpcUrls:["https://solana-rpc.publicnode.com","https://api.mainnet-beta.solana.com","https://solana-mainnet.rpc.extrnode.com"],type:h}),Ur=r({baseDecimal:9,blockTime:5,chain:"TON",chainId:"ton",explorerUrl:"https://tonscan.org",name:"Ton",nativeCurrency:"TON",networkDerivationPath:[44,607,0,0,0],rpcUrls:["https://ton.api.onfinality.io/public","https://ton.drpc.org/rest/","https://toncenter.com/api/v2/jsonRPC"],type:h}),kr=r({baseDecimal:6,blockTime:3,chain:"TRON",chainId:"728126428",chainIdHex:"0x2b6653dc",explorerUrl:"https://tronscan.org",name:"Tron",nativeCurrency:"TRX",networkDerivationPath:[44,195,0,0,0],rpcUrls:["https://tron-rpc.publicnode.com","https://api.tronstack.io","https://api.tron.network"],type:h}),vr=r({baseDecimal:9,blockTime:5,chain:"SUI",chainId:"sui",explorerUrl:"https://suiscan.xyz",name:"Sui",nativeCurrency:"SUI",networkDerivationPath:[44,784,0,0,0],rpcUrls:["https://fullnode.mainnet.sui.io:443"],type:h}),Tr=r({baseDecimal:6,blockTime:600,chain:"ADA",chainId:"cardano",explorerUrl:"https://cexplorer.io",name:"Cardano",nativeCurrency:"ADA",networkDerivationPath:[1852,1815,0,0,0],rpcUrls:["https://api.koios.rest/api/v1","https://cardano-mainnet.blockfrost.io/api/v0"],type:h}),v=[xr,ur,yr,dr,Ur,kr,vr,Tr],Dr=v.map((o)=>o.chain);var E="substrate",Hr=r({baseDecimal:10,blockTime:6,chain:"DOT",chainId:"polkadot",explorerUrl:"https://polkadot.subscan.io",name:"Polkadot",nativeCurrency:"DOT",networkDerivationPath:[0,0,0,0,0],rpcUrls:["wss://rpc.polkadot.io","wss://polkadot-rpc.dwellir.com","wss://polkadot.api.onfinality.io/public-ws"],type:E}),gr=r({baseDecimal:18,blockTime:5,chain:"FLIP",chainId:"chainflip",explorerUrl:"https://explorer.polkascan.io/polkadot",name:"Chainflip",nativeCurrency:"FLIP",networkDerivationPath:[0,0,0,0,0],rpcUrls:["wss://mainnet-archive.chainflip.io","wss://archive-1.mainnet.chainflip.io","wss://archive-2.mainnet.chainflip.io"],type:E}),O=[Hr,gr],Cr=["DOT","FLIP"];var x="utxo",wr=r({baseDecimal:8,blockTime:600,chain:"BTC",chainId:"bitcoin",explorerUrl:"https://blockchair.com/bitcoin",name:"Bitcoin",nativeCurrency:"BTC",networkDerivationPath:[84,0,0,0,0],rpcUrls:["https://bitcoin-rpc.publicnode.com","https://bitcoin.publicnode.com"],type:x}),Rr=r({baseDecimal:8,blockTime:600,chain:"BCH",chainId:"bitcoincash",explorerUrl:"https://www.blockchair.com/bitcoin-cash",name:"BitcoinCash",nativeCurrency:"BCH",networkDerivationPath:[44,145,0,0,0],rpcUrls:["https://bch-dataseed.binance.org","https://bch.getblock.io/mainnet"],type:x}),fr=r({baseDecimal:8,blockTime:150,chain:"LTC",chainId:"litecoin",explorerUrl:"https://blockchair.com/litecoin",name:"Litecoin",nativeCurrency:"LTC",networkDerivationPath:[84,2,0,0,0],rpcUrls:["https://ltc.getblock.io/mainnet","https://litecoin.publicnode.com"],type:x}),Or=r({baseDecimal:8,blockTime:60,chain:"DOGE",chainId:"dogecoin",explorerUrl:"https://blockchair.com/dogecoin",name:"Dogecoin",nativeCurrency:"DOGE",networkDerivationPath:[44,3,0,0,0],rpcUrls:["https://doge.getblock.io/mainnet","https://dogecoin.publicnode.com"],type:x}),Pr=r({baseDecimal:8,blockTime:150,chain:"DASH",chainId:"dash",explorerUrl:"https://blockchair.com/dash",name:"Dash",nativeCurrency:"DASH",networkDerivationPath:[44,5,0,0,0],rpcUrls:["https://dash-rpc.publicnode.com","https://dash.getblock.io/mainnet"],type:x}),Br=r({baseDecimal:8,blockTime:75,chain:"ZEC",chainId:"zcash",explorerUrl:"https://blockchair.com/zcash",name:"Zcash",nativeCurrency:"ZEC",networkDerivationPath:[44,133,0,0,0],rpcUrls:[],type:x}),P=[wr,Rr,fr,Or,Pr,Br],Ar=["BTC","BCH","DASH","DOGE","LTC","ZEC"];var B=[...P,...f,...R,...O,...v].sort((o,n)=>o.chain.localeCompare(n.chain)),I=Object.values(p),Er=["THOR_STAGENET","MAYA_STAGENET"],Ir=B.reduce((o,n)=>{return o[n.chain]=n,o[n.chainId]=n,o},{});function S(o){return Ir[o]||{}}var{chainIdToChain:Sr,chainToBaseDecimal:Nr,chainToBlockTime:Lr,explorerUrls:Xr,rpcUrls:Mr}=I.reduce((o,n)=>{let{chainId:l,baseDecimal:s,blockTime:N,explorerUrl:L,rpcUrls:X}=S(n);return o.chainIdToChain[l]=n,o.chainToBaseDecimal[n]=s,o.chainToBlockTime[n]=N,o.explorerUrls[n]=L,o.rpcUrls[n]=X[0]||"",o},{chainIdToChain:{},chainToBaseDecimal:{},chainToBlockTime:{},explorerUrls:{},rpcUrls:{MAYA_STAGENET:y.rpcUrls[0],THOR_STAGENET:u.rpcUrls[0]}}),jr={THOR:"https://thornode.ninerealms.com",MAYA:"https://mayanode.mayachain.info",THOR_STAGENET:"https://stagenet-thornode.ninerealms.com",MAYA_STAGENET:"https://stagenet.mayanode.mayachain.info"},zr=Mr,Gr=Xr,Kr=Object.fromEntries(B.flatMap(({chain:o,chainId:n})=>[[o,n]])),Zr=Sr,Vr=Nr,Yr=Lr;
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=A1B613B9EF075A7364756E2164756E21
|
|
4
4
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/chains/_enums.ts", "../src/chains/_createChain.ts", "../src/chains/cosmos.ts", "../src/chains/evm.ts", "../src/chains/others.ts", "../src/chains/substrate.ts", "../src/chains/utxo.ts", "../src/chains/index.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"export enum Chain {\n Arbitrum = \"ARB\",\n Aurora = \"AURORA\",\n Avalanche = \"AVAX\",\n Base = \"BASE\",\n Berachain = \"BERA\",\n BinanceSmartChain = \"BSC\",\n Cardano = \"ADA\",\n Bitcoin = \"BTC\",\n BitcoinCash = \"BCH\",\n Cosmos = \"GAIA\",\n Dash = \"DASH\",\n Dogecoin = \"DOGE\",\n Ethereum = \"ETH\",\n Gnosis = \"GNO\",\n Harbor = \"HARBOR\",\n Kujira = \"KUJI\",\n Litecoin = \"LTC\",\n Maya = \"MAYA\",\n Near = \"NEAR\",\n Noble = \"NOBLE\",\n Optimism = \"OP\",\n Polkadot = \"DOT\",\n Chainflip = \"FLIP\",\n Polygon = \"POL\",\n Radix = \"XRD\",\n Ripple = \"XRP\",\n THORChain = \"THOR\",\n Solana = \"SOL\",\n Sui = \"SUI\",\n Ton = \"TON\",\n Tron = \"TRON\",\n Zcash = \"ZEC\",\n}\n\nexport enum StagenetChain {\n Harbor = \"MAYA_HARBOR\",\n THORChain = \"THOR_STAGENET\",\n Maya = \"MAYA_STAGENET\",\n}\n\n/**\n * ChainId enum - chain identifiers for different networks\n *\n * Note: Full-name properties (e.g., Arbitrum, Avalanche) will be discontinued in future versions.\n * Please use the short-handle properties (e.g., ARB, AVAX) instead.\n * The network configuration will be migrated to a more streamlined approach with one object per chain.\n */\nexport enum ChainId {\n Arbitrum = \"42161\",\n Aurora = \"1313161554\",\n Avalanche = \"43114\",\n Base = \"8453\",\n Berachain = \"80094\",\n BinanceSmartChain = \"56\",\n Bitcoin = \"bitcoin\",\n BitcoinCash = \"bitcoincash\",\n Cardano = \"cardano\",\n Chainflip = \"chainflip\",\n Cosmos = \"cosmoshub-4\",\n Dash = \"dash\",\n Dogecoin = \"dogecoin\",\n Ethereum = \"1\",\n Gnosis = \"100\",\n Harbor = \"harbor-1\",\n HarborStagenet = \"harbor-stagenet-1\",\n Kujira = \"kaiyo-1\",\n Litecoin = \"litecoin\",\n Maya = \"mayachain-mainnet-v1\",\n MayaStagenet = \"mayachain-stagenet-v1\",\n Near = \"near\",\n Noble = \"noble-1\",\n Optimism = \"10\",\n Polkadot = \"polkadot\",\n Polygon = \"137\",\n Radix = \"radix-mainnet\",\n Ripple = \"ripple\",\n THORChain = \"thorchain-1\",\n THORChainStagenet = \"thorchain-stagenet-v2\",\n
|
|
5
|
+
"export enum Chain {\n Arbitrum = \"ARB\",\n Aurora = \"AURORA\",\n Avalanche = \"AVAX\",\n Base = \"BASE\",\n Berachain = \"BERA\",\n BinanceSmartChain = \"BSC\",\n Cardano = \"ADA\",\n Botanix = \"BOTANIX\",\n Core = \"CORE\",\n Corn = \"CORN\",\n Cronos = \"CRO\",\n Bitcoin = \"BTC\",\n BitcoinCash = \"BCH\",\n Cosmos = \"GAIA\",\n Dash = \"DASH\",\n Dogecoin = \"DOGE\",\n Ethereum = \"ETH\",\n Gnosis = \"GNO\",\n Harbor = \"HARBOR\",\n Hyperevm = \"HYPEREVM\",\n Kujira = \"KUJI\",\n Sonic = \"SONIC\",\n Unichain = \"UNI\",\n XLayer = \"XLAYER\",\n Litecoin = \"LTC\",\n Maya = \"MAYA\",\n Near = \"NEAR\",\n Noble = \"NOBLE\",\n Optimism = \"OP\",\n Polkadot = \"DOT\",\n Chainflip = \"FLIP\",\n Polygon = \"POL\",\n Radix = \"XRD\",\n Ripple = \"XRP\",\n THORChain = \"THOR\",\n Solana = \"SOL\",\n Sui = \"SUI\",\n Ton = \"TON\",\n Tron = \"TRON\",\n Zcash = \"ZEC\",\n}\n\nexport enum StagenetChain {\n Harbor = \"MAYA_HARBOR\",\n THORChain = \"THOR_STAGENET\",\n Maya = \"MAYA_STAGENET\",\n}\n\n/**\n * ChainId enum - chain identifiers for different networks\n *\n * Note: Full-name properties (e.g., Arbitrum, Avalanche) will be discontinued in future versions.\n * Please use the short-handle properties (e.g., ARB, AVAX) instead.\n * The network configuration will be migrated to a more streamlined approach with one object per chain.\n */\nexport enum ChainId {\n Arbitrum = \"42161\",\n Aurora = \"1313161554\",\n Avalanche = \"43114\",\n Base = \"8453\",\n Berachain = \"80094\",\n BinanceSmartChain = \"56\",\n Bitcoin = \"bitcoin\",\n BitcoinCash = \"bitcoincash\",\n Botanix = \"3637\",\n Cardano = \"cardano\",\n Chainflip = \"chainflip\",\n Core = \"1116\",\n Corn = \"21000000\",\n Cosmos = \"cosmoshub-4\",\n Cronos = \"25\",\n Dash = \"dash\",\n Dogecoin = \"dogecoin\",\n Ethereum = \"1\",\n Gnosis = \"100\",\n Harbor = \"harbor-1\",\n HarborStagenet = \"harbor-stagenet-1\",\n Hyperevm = \"2868\",\n Kujira = \"kaiyo-1\",\n Litecoin = \"litecoin\",\n Maya = \"mayachain-mainnet-v1\",\n MayaStagenet = \"mayachain-stagenet-v1\",\n Near = \"near\",\n Noble = \"noble-1\",\n Optimism = \"10\",\n Polkadot = \"polkadot\",\n Polygon = \"137\",\n Radix = \"radix-mainnet\",\n Ripple = \"ripple\",\n Solana = \"solana\",\n Sonic = \"146\",\n Sui = \"sui\",\n THORChain = \"thorchain-1\",\n THORChainStagenet = \"thorchain-stagenet-v2\",\n Ton = \"ton\",\n Tron = \"728126428\",\n Unichain = \"130\",\n XLayer = \"196\",\n Zcash = \"zcash\",\n}\n",
|
|
6
6
|
"import type { Chain, ChainId, StagenetChain } from \"./_enums\";\n\ntype ChainIdHexType<T> = T extends { chainIdHex: infer U } ? (U extends string ? U : undefined) : undefined;\n\nexport function createChain<\n const Name extends string,\n const Type extends \"utxo\" | \"evm\" | \"cosmos\" | \"substrate\" | \"others\",\n const Params extends {\n baseDecimal: number;\n blockTime: number;\n chain: Chain | StagenetChain;\n chainId: ChainId;\n explorerUrl: string;\n name: Name;\n nativeCurrency: string;\n networkDerivationPath: [number, number, number, number, number?];\n rpcUrls: string[];\n type: Type;\n } & ({ chainIdHex: string } | { chainIdHex?: never }),\n>(params: Params): Params & { chainIdHex: ChainIdHexType<Params> } {\n return params as Params & { chainIdHex: ChainIdHexType<Params> };\n}\n",
|
|
7
|
-
"import { createChain } from \"./_createChain\";\nimport { Chain, ChainId, StagenetChain } from \"./_enums\";\n\nconst type = \"cosmos\";\n\nexport const GAIAConfig = createChain({\n baseDecimal: 6,\n blockTime: 2,\n chain: Chain.Cosmos,\n chainId: ChainId.Cosmos,\n explorerUrl: \"https://www.mintscan.io/cosmos\",\n name: \"Cosmos\",\n nativeCurrency: \"ATOM\",\n networkDerivationPath: [44, 118, 0, 0, 0],\n rpcUrls: [\"https://cosmos-rpc.publicnode.com:443\", \"https://cosmos-rpc.publicnode.com\"],\n type,\n});\n\nexport const THORConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: Chain.THORChain,\n chainId: ChainId.THORChain,\n explorerUrl: \"https://runescan.io\",\n name: \"THORChain\",\n nativeCurrency: \"RUNE\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n nodeUrl: \"https://thornode.ninerealms.com\",\n rpcUrls: [\"https://rpc.ninerealms.com\", \"https://thornode.ninerealms.com\"],\n type,\n});\n\nexport const StagenetTHORConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: StagenetChain.THORChain,\n chainId: ChainId.THORChainStagenet,\n explorerUrl: \"https://runescan.io\",\n name: \"THORChain\",\n nativeCurrency: \"RUNE\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n nodeUrl: \"https://stagenet-thornode.ninerealms.com\",\n rpcUrls: [\"https://stagenet-rpc.ninerealms.com\", \"https://stagenet-thornode.ninerealms.com\"],\n type,\n});\n\nexport const MAYAConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: Chain.Maya,\n chainId: ChainId.Maya,\n explorerUrl: \"https://www.mayascan.org\",\n name: \"Maya\",\n nativeCurrency: \"CACAO\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n nodeUrl: \"https://mayanode.mayachain.info\",\n rpcUrls: [\n \"https://tendermint.mayachain.info\",\n \"https://maya-tendermint.publicnode.com\",\n \"https://mayanode.mayachain.info\",\n ],\n type,\n});\n\nexport const HARBORConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: Chain.Harbor,\n chainId: ChainId.Harbor,\n explorerUrl: \"\",\n name: \"Harbor\",\n nativeCurrency: \"HRB\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n rpcUrls: [\"https://xnode.harbor-dev.xyz/xnode\"],\n type,\n});\n\nexport const StagenetHARBORConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: StagenetChain.Harbor,\n chainId: ChainId.HarborStagenet,\n explorerUrl: \"\",\n name: \"Harbor\",\n nativeCurrency: \"HRB\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n rpcUrls: [\"https://xnode.harbor-dev.xyz/xnode\"],\n type,\n});\n\nexport const StagenetMAYAConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: StagenetChain.Maya,\n chainId: ChainId.MayaStagenet,\n explorerUrl: \"https://www.mayascan.org\",\n name: \"Maya\",\n nativeCurrency: \"CACAO\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n nodeUrl: \"https://stagenet.mayanode.mayachain.info\",\n rpcUrls: [\"https://stagenet.mayanode.mayachain.info\"],\n type,\n});\n\nexport const KUJIConfig = createChain({\n baseDecimal: 6,\n blockTime: 2.2,\n chain: Chain.Kujira,\n chainId: ChainId.Kujira,\n explorerUrl: \"https://finder.kujira.network/kaiyo-1\",\n name: \"Kujira\",\n nativeCurrency: \"KUJI\",\n networkDerivationPath: [44, 118, 0, 0, 0],\n rpcUrls: [\"https://kujira-rpc.ibs.team\", \"https://kujira-rpc.polkachu.com\", \"https://rpc-kujira.synergynodes.com/\"],\n type,\n});\n\nexport const NOBLEConfig = createChain({\n baseDecimal: 6,\n blockTime: 1.3,\n chain: Chain.Noble,\n chainId: ChainId.Noble,\n explorerUrl: \"https://www.mintscan.io/noble\",\n name: \"Noble\",\n nativeCurrency: \"USDC\",\n networkDerivationPath: [44, 118, 0, 0, 0],\n rpcUrls: [\"https://noble-rpc.polkachu.com\", \"https://rpc.noble.xyz\", \"https://rpc.cosmos.directory/noble\"],\n type,\n});\n\nexport const CosmosChainConfigs = [GAIAConfig, THORConfig, MAYAConfig, KUJIConfig, NOBLEConfig, HARBORConfig] as const;\nexport const CosmosChains = [\n Chain.Cosmos,\n Chain.Kujira,\n Chain.Maya,\n Chain.Noble,\n Chain.THORChain,\n Chain.Harbor,\n] as const;\nexport type CosmosChain = (typeof CosmosChains)[number];\n\nexport const StagenetCosmosChainConfigs = [StagenetTHORConfig, StagenetMAYAConfig, StagenetHARBORConfig] as const;\nexport const StagenetCosmosChains = [StagenetChain.Maya, StagenetChain.THORChain, StagenetChain.Harbor] as const;\nexport type StagenetCosmosChain = (typeof StagenetCosmosChains)[number];\n\nexport const CosmosChainPrefixes: Record<CosmosChain, string> = {\n [GAIAConfig.chain]: \"cosmos\",\n [THORConfig.chain]: \"thor\",\n [MAYAConfig.chain]: \"maya\",\n [KUJIConfig.chain]: \"kujira\",\n [NOBLEConfig.chain]: \"noble\",\n [HARBORConfig.chain]: \"harbor\",\n};\n\nexport const TCLikeChains = [THORConfig.chain, MAYAConfig.chain] as const;\nexport type TCLikeChain = (typeof TCLikeChains)[number];\n",
|
|
8
|
-
"import { createChain } from \"./_createChain\";\nimport { Chain, ChainId } from \"./_enums\";\n\nconst type = \"evm\";\nconst networkDerivationPath = [44, 60, 0, 0, 0] as [number, number, number, number, number];\n\nconst ETHConfig = createChain({\n baseDecimal
|
|
7
|
+
"import { createChain } from \"./_createChain\";\nimport { Chain, ChainId, StagenetChain } from \"./_enums\";\n\nconst type = \"cosmos\";\n\nexport const GAIAConfig = createChain({\n baseDecimal: 6,\n blockTime: 2,\n chain: Chain.Cosmos,\n chainId: ChainId.Cosmos,\n explorerUrl: \"https://www.mintscan.io/cosmos\",\n name: \"Cosmos\",\n nativeCurrency: \"ATOM\",\n networkDerivationPath: [44, 118, 0, 0, 0],\n rpcUrls: [\"https://cosmos-rpc.publicnode.com:443\", \"https://cosmos-rpc.publicnode.com\"],\n type,\n});\n\nexport const THORConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: Chain.THORChain,\n chainId: ChainId.THORChain,\n explorerUrl: \"https://runescan.io\",\n name: \"THORChain\",\n nativeCurrency: \"RUNE\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n nodeUrl: \"https://thornode.ninerealms.com\",\n rpcUrls: [\"https://rpc.ninerealms.com\", \"https://thornode.ninerealms.com\"],\n type,\n});\n\nexport const StagenetTHORConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: StagenetChain.THORChain,\n chainId: ChainId.THORChainStagenet,\n explorerUrl: \"https://runescan.io\",\n name: \"THORChain\",\n nativeCurrency: \"RUNE\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n nodeUrl: \"https://stagenet-thornode.ninerealms.com\",\n rpcUrls: [\"https://stagenet-rpc.ninerealms.com\", \"https://stagenet-thornode.ninerealms.com\"],\n type,\n});\n\nexport const MAYAConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: Chain.Maya,\n chainId: ChainId.Maya,\n explorerUrl: \"https://www.mayascan.org\",\n name: \"Maya\",\n nativeCurrency: \"CACAO\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n nodeUrl: \"https://mayanode.mayachain.info\",\n rpcUrls: [\n \"https://tendermint.mayachain.info\",\n \"https://maya-tendermint.publicnode.com\",\n \"https://mayanode.mayachain.info\",\n ],\n type,\n});\n\nexport const HARBORConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: Chain.Harbor,\n chainId: ChainId.Harbor,\n explorerUrl: \"\",\n name: \"Harbor\",\n nativeCurrency: \"HRB\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n rpcUrls: [\"https://xnode.harbor-dev.xyz/xnode\"],\n type,\n});\n\nexport const StagenetHARBORConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: StagenetChain.Harbor,\n chainId: ChainId.HarborStagenet,\n explorerUrl: \"\",\n name: \"Harbor\",\n nativeCurrency: \"HRB\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n rpcUrls: [\"https://xnode.harbor-dev.xyz/xnode\"],\n type,\n});\n\nexport const StagenetMAYAConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: StagenetChain.Maya,\n chainId: ChainId.MayaStagenet,\n explorerUrl: \"https://www.mayascan.org\",\n name: \"Maya\",\n nativeCurrency: \"CACAO\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n nodeUrl: \"https://stagenet.mayanode.mayachain.info\",\n rpcUrls: [\"https://stagenet.mayanode.mayachain.info\"],\n type,\n});\n\nexport const KUJIConfig = createChain({\n baseDecimal: 6,\n blockTime: 2.2,\n chain: Chain.Kujira,\n chainId: ChainId.Kujira,\n explorerUrl: \"https://finder.kujira.network/kaiyo-1\",\n name: \"Kujira\",\n nativeCurrency: \"KUJI\",\n networkDerivationPath: [44, 118, 0, 0, 0],\n rpcUrls: [\"https://kujira-rpc.ibs.team\", \"https://kujira-rpc.polkachu.com\", \"https://rpc-kujira.synergynodes.com/\"],\n type,\n});\n\nexport const NOBLEConfig = createChain({\n baseDecimal: 6,\n blockTime: 1.3,\n chain: Chain.Noble,\n chainId: ChainId.Noble,\n explorerUrl: \"https://www.mintscan.io/noble\",\n name: \"Noble\",\n nativeCurrency: \"USDC\",\n networkDerivationPath: [44, 118, 0, 0, 0],\n rpcUrls: [\"https://noble-rpc.polkachu.com\", \"https://rpc.noble.xyz\", \"https://rpc.cosmos.directory/noble\"],\n type,\n});\n\nexport const CosmosChainConfigs = [GAIAConfig, THORConfig, MAYAConfig, KUJIConfig, NOBLEConfig, HARBORConfig] as const;\nexport const CosmosChains = [\n Chain.Cosmos,\n Chain.Kujira,\n Chain.Maya,\n Chain.Noble,\n Chain.THORChain,\n Chain.Harbor,\n] as const;\nexport type CosmosChain = (typeof CosmosChains)[number];\n\nexport const StagenetCosmosChainConfigs = [StagenetTHORConfig, StagenetMAYAConfig, StagenetHARBORConfig] as const;\nexport const StagenetCosmosChains = [StagenetChain.Maya, StagenetChain.THORChain, StagenetChain.Harbor] as const;\nexport type StagenetCosmosChain = (typeof StagenetCosmosChains)[number];\n\nexport const CosmosChainPrefixes: Record<CosmosChain | StagenetCosmosChain, string> = {\n [GAIAConfig.chain]: \"cosmos\",\n [THORConfig.chain]: \"thor\",\n [StagenetTHORConfig.chain]: \"sthor\",\n [MAYAConfig.chain]: \"maya\",\n [StagenetMAYAConfig.chain]: \"smaya\",\n [KUJIConfig.chain]: \"kujira\",\n [NOBLEConfig.chain]: \"noble\",\n [HARBORConfig.chain]: \"harbor\",\n [StagenetHARBORConfig.chain]: \"sharbor\",\n};\n\nexport const TCLikeChains = [THORConfig.chain, MAYAConfig.chain] as const;\nexport type TCLikeChain = (typeof TCLikeChains)[number];\n",
|
|
8
|
+
"import { createChain } from \"./_createChain\";\nimport { Chain, ChainId } from \"./_enums\";\n\nconst type = \"evm\";\nconst baseDecimal = 18;\nconst networkDerivationPath = [44, 60, 0, 0, 0] as [number, number, number, number, number];\n\nconst ETHConfig = createChain({\n baseDecimal,\n blockTime: 12.5,\n chain: Chain.Ethereum,\n chainId: ChainId.Ethereum,\n chainIdHex: \"0x1\",\n explorerUrl: \"https://etherscan.io\",\n name: \"Ethereum\",\n nativeCurrency: \"ETH\",\n networkDerivationPath,\n rpcUrls: [\"https://ethereum-rpc.publicnode.com\", \"https://eth.llamarpc.com\", \"https://cloudflare-eth.com\"],\n type,\n});\n\nconst BSCConfig = createChain({\n baseDecimal,\n blockTime: 1,\n chain: Chain.BinanceSmartChain,\n chainId: ChainId.BinanceSmartChain,\n chainIdHex: \"0x38\",\n explorerUrl: \"https://bscscan.com\",\n name: \"BinanceSmartChain\",\n nativeCurrency: \"BNB\",\n networkDerivationPath,\n rpcUrls: [\n \"https://bsc-dataseed.binance.org\",\n \"https://bsc-rpc.gateway.pokt.network\",\n \"https://bsc-dataseed2.binance.org\",\n ],\n type,\n});\n\nconst AVAXConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Avalanche,\n chainId: ChainId.Avalanche,\n chainIdHex: \"0xa86a\",\n explorerUrl: \"https://snowtrace.io\",\n name: \"Avalanche\",\n nativeCurrency: \"AVAX\",\n networkDerivationPath,\n rpcUrls: [\n \"https://api.avax.network/ext/bc/C/rpc\",\n \"https://api.avax.network/ext/bc/C/rpc\",\n \"https://avalanche-c-chain-rpc.publicnode.com\",\n ],\n type,\n});\n\nconst POLConfig = createChain({\n baseDecimal,\n blockTime: 2.1,\n chain: Chain.Polygon,\n chainId: ChainId.Polygon,\n chainIdHex: \"0x89\",\n explorerUrl: \"https://polygonscan.com\",\n name: \"Polygon\",\n nativeCurrency: \"POL\",\n networkDerivationPath,\n rpcUrls: [\"https://polygon-rpc.com\", \"https://polygon.llamarpc.com\", \"https://polygon-bor-rpc.publicnode.com\"],\n type,\n});\n\nconst ARBConfig = createChain({\n baseDecimal,\n blockTime: 0.3,\n chain: Chain.Arbitrum,\n chainId: ChainId.Arbitrum,\n chainIdHex: \"0xa4b1\",\n explorerUrl: \"https://arbiscan.io\",\n name: \"Arbitrum\",\n nativeCurrency: \"ETH\",\n networkDerivationPath,\n rpcUrls: [\n \"https://arb1.arbitrum.io/rpc\",\n \"https://arb-mainnet.g.alchemy.com/v2/demo\",\n \"https://arbitrum.blockpi.network/v1/rpc/public\",\n ],\n type,\n});\n\nconst OPConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Optimism,\n chainId: ChainId.Optimism,\n chainIdHex: \"0xa\",\n explorerUrl: \"https://optimistic.etherscan.io\",\n name: \"Optimism\",\n nativeCurrency: \"ETH\",\n networkDerivationPath,\n rpcUrls: [\"https://mainnet.optimism.io\", \"https://optimism.llamarpc.com\", \"https://1rpc.io/op\"],\n type,\n});\n\nconst BASEConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Base,\n chainId: ChainId.Base,\n chainIdHex: \"0x2105\",\n explorerUrl: \"https://basescan.org\",\n name: \"Base\",\n nativeCurrency: \"ETH\",\n networkDerivationPath,\n rpcUrls: [\"https://base-rpc.publicnode.com\", \"https://base.blockpi.network/v1/rpc/public\", \"https://1rpc.io/base\"],\n type,\n});\n\nconst GNOConfig = createChain({\n baseDecimal,\n blockTime: 5.2,\n chain: Chain.Gnosis,\n chainId: ChainId.Gnosis,\n chainIdHex: \"0x64\",\n explorerUrl: \"https://gnosisscan.io\",\n name: \"Gnosis\",\n nativeCurrency: \"xDAI\",\n networkDerivationPath,\n rpcUrls: [\"https://gnosis-rpc.publicnode.com\", \"https://gnosis.drpc.org\", \"https://rpc.ankr.com/gnosis\"],\n type,\n});\n\nconst AURORAConfig = createChain({\n baseDecimal,\n blockTime: 1,\n chain: Chain.Aurora,\n chainId: ChainId.Aurora,\n chainIdHex: \"0x4e454152\",\n explorerUrl: \"https://explorer.mainnet.aurora.dev\",\n name: \"Aurora\",\n nativeCurrency: \"ETH\",\n networkDerivationPath,\n rpcUrls: [\"https://aurora-rpc.publicnode.com\", \"https://1rpc.io/aurora\", \"https://mainnet.aurora.dev\"],\n type,\n});\n\nconst BERAConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Berachain,\n chainId: ChainId.Berachain,\n chainIdHex: \"0x138de\",\n explorerUrl: \"https://berascan.com\",\n name: \"Berachain\",\n nativeCurrency: \"BERA\",\n networkDerivationPath,\n rpcUrls: [\"https://berachain-rpc.publicnode.com\", \"https://rpc.berachain.com\", \"https://berachain.drpc.org\"],\n type,\n});\n\nconst HYPEREVMConfig = createChain({\n baseDecimal,\n blockTime: 2, // TODO: Check this value\n chain: Chain.Hyperevm,\n chainId: ChainId.Hyperevm,\n chainIdHex: \"0x3e7\",\n explorerUrl: \"https://app.hyperliquid.xyz/explorer\",\n name: \"Hyperliquid\",\n nativeCurrency: \"HYPE\",\n networkDerivationPath,\n rpcUrls: [\"https://rpc.hyperliquid.xyz/evm\", \"https://rpc.hypurrscan.io\"],\n type,\n});\n\nconst UNIConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Unichain,\n chainId: ChainId.Unichain,\n chainIdHex: \"0x82\",\n explorerUrl: \"https://unichain.blockscout.com\",\n name: \"Unichain\",\n nativeCurrency: \"ETH\",\n networkDerivationPath,\n rpcUrls: [\"https://unichain-rpc.publicnode.com\", \"https://unichain.drpc.org\"],\n type,\n});\n\nconst CORNConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Corn,\n chainId: ChainId.Corn,\n chainIdHex: \"0x1406f40\",\n explorerUrl: \"https://cornscan.io\",\n name: \"Corn\",\n nativeCurrency: \"BTCN\",\n networkDerivationPath,\n rpcUrls: [\"https://mainnet.corn-rpc.com\", \"https://rpc.ankr.com/corn_maizenet\"],\n type,\n});\n\nconst COREConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Core,\n chainId: ChainId.Core,\n chainIdHex: \"0x45c\",\n explorerUrl: \"https://corescan.io\",\n name: \"Core\",\n nativeCurrency: \"CORE\",\n networkDerivationPath,\n rpcUrls: [\"https://core-rpc.publicnode.com\", \"https://1rpc.io/core\"],\n type,\n});\n\nconst BOTANIXConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Botanix,\n chainId: ChainId.Botanix,\n chainIdHex: \"0xe35\",\n explorerUrl: \"https://botanixscan.io\",\n name: \"Botanix\",\n nativeCurrency: \"BTC\",\n networkDerivationPath,\n rpcUrls: [\"https://core.drpc.org\", \"https://1rpc.io/core\"],\n type,\n});\n\nconst CROConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Cronos,\n chainId: ChainId.Cronos,\n chainIdHex: \"0x19\",\n explorerUrl: \"https://croscan.io\",\n name: \"Cronos\",\n nativeCurrency: \"CRO\",\n networkDerivationPath,\n rpcUrls: [\"https://rpc.vvs.finance\"],\n type,\n});\n\nconst XLAYERConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.XLayer,\n chainId: ChainId.XLayer,\n chainIdHex: \"0xc4\",\n explorerUrl: \"https://okbscan.com\",\n name: \"X Layer\",\n nativeCurrency: \"OKB\",\n networkDerivationPath,\n rpcUrls: [\"https://rpc.xlayer.tech\"],\n type,\n});\n\nconst SONICConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Sonic,\n chainId: ChainId.Sonic,\n chainIdHex: \"0x92\",\n explorerUrl: \"https://sonicscan.io\",\n name: \"Sonic\",\n nativeCurrency: \"S\",\n networkDerivationPath,\n rpcUrls: [\"https://rpc.sonic.xyz\"],\n type,\n});\n\nexport const EVMChainConfigs = [\n ARBConfig,\n AURORAConfig,\n AVAXConfig,\n BASEConfig,\n BERAConfig,\n BOTANIXConfig,\n BSCConfig,\n COREConfig,\n CORNConfig,\n CROConfig,\n ETHConfig,\n GNOConfig,\n HYPEREVMConfig,\n OPConfig,\n POLConfig,\n SONICConfig,\n UNIConfig,\n XLAYERConfig,\n] as const;\nexport const EVMChains = [\n Chain.Arbitrum,\n Chain.Aurora,\n Chain.Avalanche,\n Chain.Base,\n Chain.Berachain,\n Chain.BinanceSmartChain,\n Chain.Botanix,\n Chain.Core,\n Chain.Corn,\n Chain.Corn,\n Chain.Cronos,\n Chain.Ethereum,\n Chain.Gnosis,\n Chain.Hyperevm,\n Chain.Optimism,\n Chain.Polygon,\n Chain.Sonic,\n Chain.Unichain,\n Chain.XLayer,\n] as const;\nexport type EVMChain = (typeof EVMChains)[number];\n",
|
|
9
9
|
"import { createChain } from \"./_createChain\";\nimport { Chain, ChainId } from \"./_enums\";\n\nconst type = \"others\";\n\nconst NEAR = createChain({\n baseDecimal: 24,\n blockTime: 1,\n chain: Chain.Near,\n chainId: ChainId.Near,\n explorerUrl: \"https://nearblocks.io\",\n name: \"Near\",\n nativeCurrency: \"NEAR\",\n networkDerivationPath: [44, 397, 0, 0, 0],\n rpcUrls: [\n \"https://rpc.mainnet.near.org\",\n \"https://1rpc.io/near\",\n \"https://near.lava.build\",\n \"https://near-mainnet.infura.io/v3/3cbfcafa5e1e48b7bb0ea41f2fbc4abf\",\n ],\n type,\n});\n\nconst XRD = createChain({\n baseDecimal: 18,\n blockTime: 5,\n chain: Chain.Radix,\n chainId: ChainId.Radix,\n explorerUrl: \"https://dashboard.radixdlt.com\",\n name: \"Radix\",\n nativeCurrency: \"XRD\",\n networkDerivationPath: [0, 0, 0, 0, 0],\n rpcUrls: [\n \"https://radix-mainnet.rpc.grove.city/v1/326002fc/core\",\n \"https://mainnet.radixdlt.com\",\n \"https://radix-mainnet.rpc.grove.city/v1\",\n ],\n type,\n});\n\nconst XRP = createChain({\n baseDecimal: 6,\n blockTime: 5,\n chain: Chain.Ripple,\n chainId: ChainId.Ripple,\n explorerUrl: \"https://livenet.xrpl.org/\",\n name: \"Ripple\",\n nativeCurrency: \"XRP\",\n networkDerivationPath: [44, 144, 0, 0, 0],\n rpcUrls: [\"wss://xrpl.ws/\", \"wss://s1.ripple.com/\", \"wss://s2.ripple.com/\"],\n type,\n});\n\nconst SOL = createChain({\n baseDecimal: 9,\n blockTime: 0.4,\n chain: Chain.Solana,\n chainId: ChainId.Solana,\n explorerUrl: \"https://solscan.io\",\n name: \"Solana\",\n nativeCurrency: \"SOL\",\n networkDerivationPath: [44, 501, 0, 0, 0],\n rpcUrls: [\n \"https://solana-rpc.publicnode.com\",\n \"https://api.mainnet-beta.solana.com\",\n \"https://solana-mainnet.rpc.extrnode.com\",\n ],\n type,\n});\n\nconst TON = createChain({\n baseDecimal: 9,\n blockTime: 5,\n chain: Chain.Ton,\n chainId: ChainId.Ton,\n explorerUrl: \"https://tonscan.org\",\n name: \"Ton\",\n nativeCurrency: \"TON\",\n networkDerivationPath: [44, 607, 0, 0, 0],\n rpcUrls: [\n \"https://ton.api.onfinality.io/public\",\n \"https://ton.drpc.org/rest/\",\n \"https://toncenter.com/api/v2/jsonRPC\",\n ],\n type,\n});\n\nconst TRON = createChain({\n baseDecimal: 6,\n blockTime: 3,\n chain: Chain.Tron,\n chainId: ChainId.Tron,\n chainIdHex: \"0x2b6653dc\",\n explorerUrl: \"https://tronscan.org\",\n name: \"Tron\",\n nativeCurrency: \"TRX\",\n networkDerivationPath: [44, 195, 0, 0, 0],\n rpcUrls: [\"https://tron-rpc.publicnode.com\", \"https://api.tronstack.io\", \"https://api.tron.network\"],\n type,\n});\n\nconst SUI = createChain({\n baseDecimal: 9,\n blockTime: 5,\n chain: Chain.Sui,\n chainId: ChainId.Sui,\n explorerUrl: \"https://suiscan.xyz\",\n name: \"Sui\",\n nativeCurrency: \"SUI\",\n networkDerivationPath: [44, 784, 0, 0, 0],\n rpcUrls: [\"https://fullnode.mainnet.sui.io:443\"],\n type,\n});\n\nconst ADA = createChain({\n baseDecimal: 6,\n blockTime: 600,\n chain: Chain.Cardano,\n chainId: ChainId.Cardano,\n explorerUrl: \"https://cexplorer.io\",\n name: \"Cardano\",\n nativeCurrency: \"ADA\",\n networkDerivationPath: [1852, 1815, 0, 0, 0],\n rpcUrls: [\"https://api.koios.rest/api/v1\", \"https://cardano-mainnet.blockfrost.io/api/v0\"],\n type,\n});\n\nexport const OtherChainConfigs = [NEAR, XRD, XRP, SOL, TON, TRON, SUI, ADA] as const;\nexport const OtherChains = OtherChainConfigs.map((config) => config.chain);\nexport type OtherChain = (typeof OtherChains)[number];\n",
|
|
10
|
-
"import { createChain } from \"./_createChain\";\nimport { Chain, ChainId } from \"./_enums\";\n\nconst type = \"substrate\";\n\nconst DOT = createChain({\n baseDecimal: 10,\n blockTime: 6,\n chain: Chain.Polkadot,\n chainId: ChainId.Polkadot,\n explorerUrl: \"https://polkadot.subscan.io\",\n name: \"Polkadot\",\n nativeCurrency: \"DOT\",\n networkDerivationPath: [0, 0, 0, 0, 0],\n rpcUrls: [\"wss://rpc.polkadot.io\", \"wss://polkadot-rpc.dwellir.com\", \"wss://polkadot.api.onfinality.io/public-ws\"],\n type,\n});\n\nconst FLIP = createChain({\n baseDecimal: 18,\n blockTime: 5,\n chain: Chain.Chainflip,\n chainId: ChainId.Chainflip,\n explorerUrl: \"https://explorer.polkascan.io/polkadot\",\n name: \"Chainflip\",\n nativeCurrency: \"FLIP\",\n networkDerivationPath: [0, 0, 0, 0, 0],\n rpcUrls: [\n \"wss://mainnet-archive.chainflip.io\",\n \"wss://archive-1.mainnet.chainflip.io\",\n \"wss://archive-2.mainnet.chainflip.io\",\n ],\n type,\n});\n\n// const TAO = createChain({\n// baseDecimal: 18,\n// blockTime: 5,\n// chain: Chain.TAO,\n// chainId: ChainId.TAO,\n// explorerUrl: \"https://taoscan.io\",\n// name: \"TAO\",\n// nativeCurrency: \"TAO\",\n// networkDerivationPath: [0, 0, 0, 0, 0],\n// rpcUrls: [\"wss://rpc.tao.network\"],\n// type,\n// });\n\nexport const SubstrateChainConfigs = [DOT, FLIP] as const;\nexport const SubstrateChains =
|
|
10
|
+
"import { createChain } from \"./_createChain\";\nimport { Chain, ChainId } from \"./_enums\";\n\nconst type = \"substrate\";\n\nconst DOT = createChain({\n baseDecimal: 10,\n blockTime: 6,\n chain: Chain.Polkadot,\n chainId: ChainId.Polkadot,\n explorerUrl: \"https://polkadot.subscan.io\",\n name: \"Polkadot\",\n nativeCurrency: \"DOT\",\n networkDerivationPath: [0, 0, 0, 0, 0],\n rpcUrls: [\"wss://rpc.polkadot.io\", \"wss://polkadot-rpc.dwellir.com\", \"wss://polkadot.api.onfinality.io/public-ws\"],\n type,\n});\n\nconst FLIP = createChain({\n baseDecimal: 18,\n blockTime: 5,\n chain: Chain.Chainflip,\n chainId: ChainId.Chainflip,\n explorerUrl: \"https://explorer.polkascan.io/polkadot\",\n name: \"Chainflip\",\n nativeCurrency: \"FLIP\",\n networkDerivationPath: [0, 0, 0, 0, 0],\n rpcUrls: [\n \"wss://mainnet-archive.chainflip.io\",\n \"wss://archive-1.mainnet.chainflip.io\",\n \"wss://archive-2.mainnet.chainflip.io\",\n ],\n type,\n});\n\n// const TAO = createChain({\n// baseDecimal: 18,\n// blockTime: 5,\n// chain: Chain.TAO,\n// chainId: ChainId.TAO,\n// explorerUrl: \"https://taoscan.io\",\n// name: \"TAO\",\n// nativeCurrency: \"TAO\",\n// networkDerivationPath: [0, 0, 0, 0, 0],\n// rpcUrls: [\"wss://rpc.tao.network\"],\n// type,\n// });\n\nexport const SubstrateChainConfigs = [DOT, FLIP] as const;\nexport const SubstrateChains = [Chain.Polkadot, Chain.Chainflip] as const;\nexport type SubstrateChain = (typeof SubstrateChains)[number];\n",
|
|
11
11
|
"import { createChain } from \"./_createChain\";\nimport { Chain, ChainId } from \"./_enums\";\n\nconst type = \"utxo\";\n\nconst BTC = createChain({\n baseDecimal: 8,\n blockTime: 600,\n chain: Chain.Bitcoin,\n chainId: ChainId.Bitcoin,\n explorerUrl: \"https://blockchair.com/bitcoin\",\n name: \"Bitcoin\",\n nativeCurrency: \"BTC\",\n networkDerivationPath: [84, 0, 0, 0, 0] as [number, number, number, number, number?],\n rpcUrls: [\"https://bitcoin-rpc.publicnode.com\", \"https://bitcoin.publicnode.com\"],\n type,\n});\n\nconst BCH = createChain({\n baseDecimal: 8,\n blockTime: 600,\n chain: Chain.BitcoinCash,\n chainId: ChainId.BitcoinCash,\n explorerUrl: \"https://www.blockchair.com/bitcoin-cash\",\n name: \"BitcoinCash\",\n nativeCurrency: \"BCH\",\n networkDerivationPath: [44, 145, 0, 0, 0],\n rpcUrls: [\"https://bch-dataseed.binance.org\", \"https://bch.getblock.io/mainnet\"],\n type,\n});\n\nconst LTC = createChain({\n baseDecimal: 8,\n blockTime: 150,\n chain: Chain.Litecoin,\n chainId: ChainId.Litecoin,\n explorerUrl: \"https://blockchair.com/litecoin\",\n name: \"Litecoin\",\n nativeCurrency: \"LTC\",\n networkDerivationPath: [84, 2, 0, 0, 0],\n rpcUrls: [\"https://ltc.getblock.io/mainnet\", \"https://litecoin.publicnode.com\"],\n type,\n});\n\nconst DOGE = createChain({\n baseDecimal: 8,\n blockTime: 60,\n chain: Chain.Dogecoin,\n chainId: ChainId.Dogecoin,\n explorerUrl: \"https://blockchair.com/dogecoin\",\n name: \"Dogecoin\",\n nativeCurrency: \"DOGE\",\n networkDerivationPath: [44, 3, 0, 0, 0],\n rpcUrls: [\"https://doge.getblock.io/mainnet\", \"https://dogecoin.publicnode.com\"],\n type,\n});\n\nconst DASH = createChain({\n baseDecimal: 8,\n blockTime: 150,\n chain: Chain.Dash,\n chainId: ChainId.Dash,\n explorerUrl: \"https://blockchair.com/dash\",\n name: \"Dash\",\n nativeCurrency: \"DASH\",\n networkDerivationPath: [44, 5, 0, 0, 0],\n rpcUrls: [\"https://dash-rpc.publicnode.com\", \"https://dash.getblock.io/mainnet\"],\n type,\n});\n\nconst ZEC = createChain({\n baseDecimal: 8,\n blockTime: 75,\n chain: Chain.Zcash,\n chainId: ChainId.Zcash,\n explorerUrl: \"https://blockchair.com/zcash\",\n name: \"Zcash\",\n nativeCurrency: \"ZEC\",\n networkDerivationPath: [44, 133, 0, 0, 0],\n rpcUrls: [],\n type,\n});\n\nexport const UTXOChainConfigs = [BTC, BCH, LTC, DOGE, DASH, ZEC] as const;\nexport const UTXOChains = [\n Chain.Bitcoin,\n Chain.BitcoinCash,\n Chain.Dash,\n Chain.Dogecoin,\n Chain.Litecoin,\n Chain.Zcash,\n] as const;\nexport type UTXOChain = (typeof UTXOChains)[number];\n",
|
|
12
12
|
"import { Chain, type ChainId, StagenetChain } from \"./_enums\";\nimport { CosmosChainConfigs, StagenetMAYAConfig, StagenetTHORConfig } from \"./cosmos\";\nimport { EVMChainConfigs } from \"./evm\";\nimport { OtherChainConfigs } from \"./others\";\nimport { SubstrateChainConfigs } from \"./substrate\";\nimport { UTXOChainConfigs } from \"./utxo\";\n\nexport * from \"./_enums\";\nexport * from \"./cosmos\";\nexport * from \"./evm\";\nexport * from \"./others\";\nexport * from \"./substrate\";\nexport * from \"./utxo\";\n\nexport const AllChainConfigs = [\n ...UTXOChainConfigs,\n ...EVMChainConfigs,\n ...CosmosChainConfigs,\n ...SubstrateChainConfigs,\n ...OtherChainConfigs,\n].sort((a, b) => a.chain.localeCompare(b.chain));\nexport type AllChainConfigs = typeof AllChainConfigs;\nexport type ChainConfig = AllChainConfigs[number];\n\nexport const AllChains = Object.values(Chain);\nexport const StagenetChains = [StagenetChain.THORChain, StagenetChain.Maya] as const;\n\ntype ChainConfigMap = {\n [K in ChainConfig[\"chain\"]]: Extract<ChainConfig, { chain: K }>;\n} & {\n [K in ChainConfig[\"chainId\"]]: Extract<ChainConfig, { chainId: K }>;\n};\n\nconst chainConfigs = AllChainConfigs.reduce(\n (acc, config) => {\n acc[config.chain] = config;\n acc[config.chainId] = config;\n return acc;\n },\n {} as Record<ChainConfig[\"chain\"] | ChainConfig[\"chainId\"], ChainConfig>,\n);\n\nexport function getChainConfig<T extends keyof ChainConfigMap>(chainOrChainId: T): ChainConfigMap[T] {\n const chainConfig = chainConfigs[chainOrChainId];\n\n return (chainConfig || {}) as ChainConfigMap[T];\n}\n\nconst { chainIdToChain, chainToBaseDecimal, chainToBlockTime, explorerUrls, rpcUrls } = AllChains.reduce(\n (acc, chain) => {\n const { chainId, baseDecimal, blockTime, explorerUrl, rpcUrls } = getChainConfig(chain);\n\n acc.chainIdToChain[chainId] = chain;\n acc.chainToBaseDecimal[chain] = baseDecimal;\n acc.chainToBlockTime[chain] = blockTime;\n acc.explorerUrls[chain] = explorerUrl;\n acc.rpcUrls[chain] = rpcUrls[0] || \"\";\n return acc;\n },\n {\n chainIdToChain: {},\n chainToBaseDecimal: {},\n chainToBlockTime: {},\n explorerUrls: {},\n rpcUrls: {\n [StagenetChain.Maya]: StagenetMAYAConfig.rpcUrls[0],\n [StagenetChain.THORChain]: StagenetTHORConfig.rpcUrls[0],\n },\n } as {\n chainIdToChain: Record<ChainId, Chain>;\n chainToBaseDecimal: Record<Chain, number>;\n chainToBlockTime: Record<Chain, number>;\n explorerUrls: Record<Chain, string>;\n rpcUrls: Record<Chain | StagenetChain, string>;\n },\n);\n\nexport const NODE_URLS = {\n [Chain.THORChain]: \"https://thornode.ninerealms.com\",\n [Chain.Maya]: \"https://mayanode.mayachain.info\",\n [StagenetChain.THORChain]: \"https://stagenet-thornode.ninerealms.com\",\n [StagenetChain.Maya]: \"https://stagenet.mayanode.mayachain.info\",\n};\n\n/**\n * @example\n * ```diff\n * -const rpcUrl = RPC_URLS[Chain.Ethereum];\n * +const { rpcUrls: [rpcUrl] } = getChainConfig(Chain.Ethereum);\n * ```\n */\nexport const RPC_URLS: Record<Chain | StagenetChain, string> = rpcUrls;\n\n/**\n * @example\n * ```diff\n * -const explorerUrl = EXPLORER_URLS[Chain.Ethereum];\n * +const { explorerUrl } = getChainConfig(Chain.Ethereum);\n */\nexport const EXPLORER_URLS: Record<Chain, string> = explorerUrls;\n\n/**\n *\n * Note: ChainIdToChain will be discontinued in future versions.\n * Please use getChainConfig instead.\n * @example\n * ```diff\n * -const chainId = ChainToChainId[Chain.Ethereum];\n * +const { chainId } = getChainConfig(Chain.Ethereum);\n * ```\n */\nexport const ChainToChainId = Object.fromEntries(\n AllChainConfigs.flatMap(({ chain, chainId }) => [[chain, chainId] as const]),\n) as {\n readonly [K in Chain | StagenetChain]: Extract<ChainConfig, { chain: K }>[\"chainId\"];\n};\n\n/**\n * Note: ChainIdToChain will be discontinued in future versions.\n * Please use getChainConfig instead.\n * @example\n * ```diff\n * -const chain = ChainIdToChain[ChainId.Ethereum];\n * +const { chain } = getChainConfig(ChainId.Ethereum);\n * ```\n */\nexport const ChainIdToChain = chainIdToChain;\n\n/**\n * Note: BaseDecimal will be discontinued in future versions.\n * Please use getChainConfig instead.\n * @example\n * ```diff\n * -const baseDecimal = BaseDecimal[Chain.Ethereum];\n * +const { baseDecimal } = getChainConfig(Chain.Ethereum);\n * ```\n */\nexport const BaseDecimal = chainToBaseDecimal;\n\n/**\n * Note: BlockTimes will be discontinued in future versions.\n * Please use getChainConfig instead.\n * @example\n * ```diff\n * -const blockTime = BlockTimes[Chain.Ethereum];\n * +const { blockTime } = getChainConfig(Chain.Ethereum);\n * ```\n */\nexport const BlockTimes = chainToBlockTime;\n"
|
|
13
13
|
],
|
|
14
|
-
"mappings": "+uCAAO,IAAK,GAAL,CAAK,IAAL,CACL,WAAW,MACX,SAAS,SACT,YAAY,OACZ,OAAO,OACP,YAAY,OACZ,oBAAoB,MACpB,UAAU,MACV,UAAU,MACV,cAAc,MACd,SAAS,OACT,OAAO,OACP,WAAW,OACX,WAAW,MACX,SAAS,MACT,SAAS,SACT,SAAS,OACT,WAAW,MACX,OAAO,OACP,OAAO,OACP,QAAQ,QACR,WAAW,KACX,WAAW,MACX,YAAY,OACZ,UAAU,MACV,QAAQ,MACR,SAAS,MACT,YAAY,OACZ,SAAS,MACT,MAAM,MACN,MAAM,MACN,OAAO,OACP,QAAQ,
|
|
15
|
-
"debugId": "
|
|
14
|
+
"mappings": "+uCAAO,IAAK,GAAL,CAAK,IAAL,CACL,WAAW,MACX,SAAS,SACT,YAAY,OACZ,OAAO,OACP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sC,CAGnG,OAFoB,GAAa,IAEV,CAAC,EAG1B,IAAQ,kBAAgB,sBAAoB,oBAAkB,gBAAc,YAAY,EAAU,OAChG,CAAC,EAAK,IAAU,CACd,IAAQ,UAAS,cAAa,YAAW,cAAa,WAAY,EAAe,CAAK,EAOtF,OALA,EAAI,eAAe,GAAW,EAC9B,EAAI,mBAAmB,GAAS,EAChC,EAAI,iBAAiB,GAAS,EAC9B,EAAI,aAAa,GAAS,EAC1B,EAAI,QAAQ,GAAS,EAAQ,IAAM,GAC5B,GAET,CACE,eAAgB,CAAC,EACjB,mBAAoB,CAAC,EACrB,iBAAkB,CAAC,EACnB,aAAc,CAAC,EACf,QAAS,CACN,cAAqB,EAAmB,QAAQ,GAChD,cAA0B,EAAmB,QAAQ,EACxD,CACF,CAOF,EAEa,GAAY,CACtB,KAAkB,kCAClB,KAAa,kCACb,cAA0B,2CAC1B,cAAqB,0CACxB,EASa,GAAkD,GAQlD,GAAuC,GAYvC,GAAiB,OAAO,YACnC,EAAgB,QAAQ,EAAG,QAAO,aAAc,CAAC,CAAC,EAAO,CAAO,CAAU,CAAC,CAC7E,EAaa,GAAiB,GAWjB,GAAc,GAWd,GAAa",
|
|
15
|
+
"debugId": "A1B613B9EF075A7364756E2164756E21",
|
|
16
16
|
"names": []
|
|
17
17
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var i;((t)=>{t.Arbitrum="ARB";t.Aurora="AURORA";t.Avalanche="AVAX";t.Base="BASE";t.Berachain="BERA";t.BinanceSmartChain="BSC";t.Cardano="ADA";t.Bitcoin="BTC";t.BitcoinCash="BCH";t.Cosmos="GAIA";t.Dash="DASH";t.Dogecoin="DOGE";t.Ethereum="ETH";t.Gnosis="GNO";t.Harbor="HARBOR";t.Kujira="KUJI";t.Litecoin="LTC";t.Maya="MAYA";t.Near="NEAR";t.Noble="NOBLE";t.Optimism="OP";t.Polkadot="DOT";t.Chainflip="FLIP";t.Polygon="POL";t.Radix="XRD";t.Ripple="XRP";t.THORChain="THOR";t.Solana="SOL";t.Sui="SUI";t.Ton="TON";t.Tron="TRON";t.Zcash="ZEC"})(i||={});var b;((h)=>{h.Harbor="MAYA_HARBOR";h.THORChain="THOR_STAGENET";h.Maya="MAYA_STAGENET"})(b||={});var m;((r)=>{r.Arbitrum="42161";r.Aurora="1313161554";r.Avalanche="43114";r.Base="8453";r.Berachain="80094";r.BinanceSmartChain="56";r.Bitcoin="bitcoin";r.BitcoinCash="bitcoincash";r.Cardano="cardano";r.Chainflip="chainflip";r.Cosmos="cosmoshub-4";r.Dash="dash";r.Dogecoin="dogecoin";r.Ethereum="1";r.Gnosis="100";r.Harbor="harbor-1";r.HarborStagenet="harbor-stagenet-1";r.Kujira="kaiyo-1";r.Litecoin="litecoin";r.Maya="mayachain-mainnet-v1";r.MayaStagenet="mayachain-stagenet-v1";r.Near="near";r.Noble="noble-1";r.Optimism="10";r.Polkadot="polkadot";r.Polygon="137";r.Radix="radix-mainnet";r.Ripple="ripple";r.THORChain="thorchain-1";r.THORChainStagenet="thorchain-stagenet-v2";r.Solana="solana";r.Sui="sui";r.Ton="ton";r.Tron="728126428";r.Zcash="zcash"})(m||={});function e(o){return o}var s="cosmos",U=e({baseDecimal:6,blockTime:2,chain:"GAIA",chainId:"cosmoshub-4",explorerUrl:"https://www.mintscan.io/cosmos",name:"Cosmos",nativeCurrency:"ATOM",networkDerivationPath:[44,118,0,0,0],rpcUrls:["https://cosmos-rpc.publicnode.com:443","https://cosmos-rpc.publicnode.com"],type:s}),x=e({baseDecimal:8,blockTime:6,chain:"THOR",chainId:"thorchain-1",explorerUrl:"https://runescan.io",name:"THORChain",nativeCurrency:"RUNE",networkDerivationPath:[44,931,0,0,0],nodeUrl:"https://thornode.ninerealms.com",rpcUrls:["https://rpc.ninerealms.com","https://thornode.ninerealms.com"],type:s}),u=e({baseDecimal:8,blockTime:6,chain:"THOR_STAGENET",chainId:"thorchain-stagenet-v2",explorerUrl:"https://runescan.io",name:"THORChain",nativeCurrency:"RUNE",networkDerivationPath:[44,931,0,0,0],nodeUrl:"https://stagenet-thornode.ninerealms.com",rpcUrls:["https://stagenet-rpc.ninerealms.com","https://stagenet-thornode.ninerealms.com"],type:s}),y=e({baseDecimal:8,blockTime:6,chain:"MAYA",chainId:"mayachain-mainnet-v1",explorerUrl:"https://www.mayascan.org",name:"Maya",nativeCurrency:"CACAO",networkDerivationPath:[44,931,0,0,0],nodeUrl:"https://mayanode.mayachain.info",rpcUrls:["https://tendermint.mayachain.info","https://maya-tendermint.publicnode.com","https://mayanode.mayachain.info"],type:s}),D=e({baseDecimal:8,blockTime:6,chain:"HARBOR",chainId:"harbor-1",explorerUrl:"",name:"Harbor",nativeCurrency:"HRB",networkDerivationPath:[44,931,0,0,0],rpcUrls:["https://xnode.harbor-dev.xyz/xnode"],type:s}),E=e({baseDecimal:8,blockTime:6,chain:"MAYA_HARBOR",chainId:"harbor-stagenet-1",explorerUrl:"",name:"Harbor",nativeCurrency:"HRB",networkDerivationPath:[44,931,0,0,0],rpcUrls:["https://xnode.harbor-dev.xyz/xnode"],type:s}),d=e({baseDecimal:8,blockTime:6,chain:"MAYA_STAGENET",chainId:"mayachain-stagenet-v1",explorerUrl:"https://www.mayascan.org",name:"Maya",nativeCurrency:"CACAO",networkDerivationPath:[44,931,0,0,0],nodeUrl:"https://stagenet.mayanode.mayachain.info",rpcUrls:["https://stagenet.mayanode.mayachain.info"],type:s}),T=e({baseDecimal:6,blockTime:2.2,chain:"KUJI",chainId:"kaiyo-1",explorerUrl:"https://finder.kujira.network/kaiyo-1",name:"Kujira",nativeCurrency:"KUJI",networkDerivationPath:[44,118,0,0,0],rpcUrls:["https://kujira-rpc.ibs.team","https://kujira-rpc.polkachu.com","https://rpc-kujira.synergynodes.com/"],type:s}),H=e({baseDecimal:6,blockTime:1.3,chain:"NOBLE",chainId:"noble-1",explorerUrl:"https://www.mintscan.io/noble",name:"Noble",nativeCurrency:"USDC",networkDerivationPath:[44,118,0,0,0],rpcUrls:["https://noble-rpc.polkachu.com","https://rpc.noble.xyz","https://rpc.cosmos.directory/noble"],type:s}),g=[U,x,y,T,H,D],ke=["GAIA","KUJI","MAYA","NOBLE","THOR","HARBOR"],ve=[u,d,E],Ue=["MAYA_STAGENET","THOR_STAGENET","MAYA_HARBOR"],De={[U.chain]:"cosmos",[x.chain]:"thor",[y.chain]:"maya",[T.chain]:"kujira",[H.chain]:"noble",[D.chain]:"harbor"},Te=[x.chain,y.chain];var a="evm",c=[44,60,0,0,0],I=e({baseDecimal:18,blockTime:12.5,chain:"ETH",chainId:"1",chainIdHex:"0x1",explorerUrl:"https://etherscan.io",name:"Ethereum",nativeCurrency:"ETH",networkDerivationPath:c,rpcUrls:["https://ethereum-rpc.publicnode.com","https://eth.llamarpc.com","https://cloudflare-eth.com"],type:a}),S=e({baseDecimal:18,blockTime:1,chain:"BSC",chainId:"56",chainIdHex:"0x38",explorerUrl:"https://bscscan.com",name:"BinanceSmartChain",nativeCurrency:"BNB",networkDerivationPath:c,rpcUrls:["https://bsc-dataseed.binance.org","https://bsc-rpc.gateway.pokt.network","https://bsc-dataseed2.binance.org"],type:a}),N=e({baseDecimal:18,blockTime:2,chain:"AVAX",chainId:"43114",chainIdHex:"0xa86a",explorerUrl:"https://snowtrace.io",name:"Avalanche",nativeCurrency:"AVAX",networkDerivationPath:c,rpcUrls:["https://api.avax.network/ext/bc/C/rpc","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain-rpc.publicnode.com"],type:a}),L=e({baseDecimal:18,blockTime:2.1,chain:"POL",chainId:"137",chainIdHex:"0x89",explorerUrl:"https://polygonscan.com",name:"Polygon",nativeCurrency:"POL",networkDerivationPath:c,rpcUrls:["https://polygon-rpc.com","https://polygon.llamarpc.com","https://polygon-bor-rpc.publicnode.com"],type:a}),M=e({baseDecimal:18,blockTime:0.3,chain:"ARB",chainId:"42161",chainIdHex:"0xa4b1",explorerUrl:"https://arbiscan.io",name:"Arbitrum",nativeCurrency:"ETH",networkDerivationPath:c,rpcUrls:["https://arb1.arbitrum.io/rpc","https://arb-mainnet.g.alchemy.com/v2/demo","https://arbitrum.blockpi.network/v1/rpc/public"],type:a}),j=e({baseDecimal:18,blockTime:2,chain:"OP",chainId:"10",chainIdHex:"0xa",explorerUrl:"https://optimistic.etherscan.io",name:"Optimism",nativeCurrency:"ETH",networkDerivationPath:c,rpcUrls:["https://mainnet.optimism.io","https://optimism.llamarpc.com","https://1rpc.io/op"],type:a}),X=e({baseDecimal:18,blockTime:2,chain:"BASE",chainId:"8453",chainIdHex:"0x2105",explorerUrl:"https://basescan.org",name:"Base",nativeCurrency:"ETH",networkDerivationPath:c,rpcUrls:["https://base-rpc.publicnode.com","https://base.blockpi.network/v1/rpc/public","https://1rpc.io/base"],type:a}),G=e({baseDecimal:18,blockTime:5.2,chain:"GNO",chainId:"100",chainIdHex:"0x64",explorerUrl:"https://gnosisscan.io",name:"Gnosis",nativeCurrency:"xDAI",networkDerivationPath:c,rpcUrls:["https://gnosis-rpc.publicnode.com","https://gnosis.drpc.org","https://rpc.ankr.com/gnosis"],type:a}),K=e({baseDecimal:18,blockTime:1,chain:"AURORA",chainId:"1313161554",chainIdHex:"0x4e454152",explorerUrl:"https://explorer.mainnet.aurora.dev",name:"Aurora",nativeCurrency:"ETH",networkDerivationPath:c,rpcUrls:["https://aurora-rpc.publicnode.com","https://1rpc.io/aurora","https://mainnet.aurora.dev"],type:a}),Z=e({baseDecimal:18,blockTime:2,chain:"BERA",chainId:"80094",chainIdHex:"0x138de",explorerUrl:"https://berascan.com",name:"Berachain",nativeCurrency:"BERA",networkDerivationPath:c,rpcUrls:["https://berachain-rpc.publicnode.com","https://rpc.berachain.com","https://berachain.drpc.org"],type:a}),w=[I,S,N,L,M,j,X,G,K,Z],Pe=["ARB","AURORA","AVAX","BASE","BERA","BSC","ETH","GNO","OP","POL"];var p="others",z=e({baseDecimal:24,blockTime:1,chain:"NEAR",chainId:"near",explorerUrl:"https://nearblocks.io",name:"Near",nativeCurrency:"NEAR",networkDerivationPath:[44,397,0,0,0],rpcUrls:["https://rpc.mainnet.near.org","https://1rpc.io/near","https://near.lava.build","https://near-mainnet.infura.io/v3/3cbfcafa5e1e48b7bb0ea41f2fbc4abf"],type:p}),V=e({baseDecimal:18,blockTime:5,chain:"XRD",chainId:"radix-mainnet",explorerUrl:"https://dashboard.radixdlt.com",name:"Radix",nativeCurrency:"XRD",networkDerivationPath:[0,0,0,0,0],rpcUrls:["https://radix-mainnet.rpc.grove.city/v1/326002fc/core","https://mainnet.radixdlt.com","https://radix-mainnet.rpc.grove.city/v1"],type:p}),J=e({baseDecimal:6,blockTime:5,chain:"XRP",chainId:"ripple",explorerUrl:"https://livenet.xrpl.org/",name:"Ripple",nativeCurrency:"XRP",networkDerivationPath:[44,144,0,0,0],rpcUrls:["wss://xrpl.ws/","wss://s1.ripple.com/","wss://s2.ripple.com/"],type:p}),Y=e({baseDecimal:9,blockTime:0.4,chain:"SOL",chainId:"solana",explorerUrl:"https://solscan.io",name:"Solana",nativeCurrency:"SOL",networkDerivationPath:[44,501,0,0,0],rpcUrls:["https://solana-rpc.publicnode.com","https://api.mainnet-beta.solana.com","https://solana-mainnet.rpc.extrnode.com"],type:p}),q=e({baseDecimal:9,blockTime:5,chain:"TON",chainId:"ton",explorerUrl:"https://tonscan.org",name:"Ton",nativeCurrency:"TON",networkDerivationPath:[44,607,0,0,0],rpcUrls:["https://ton.api.onfinality.io/public","https://ton.drpc.org/rest/","https://toncenter.com/api/v2/jsonRPC"],type:p}),Q=e({baseDecimal:6,blockTime:3,chain:"TRON",chainId:"728126428",chainIdHex:"0x2b6653dc",explorerUrl:"https://tronscan.org",name:"Tron",nativeCurrency:"TRX",networkDerivationPath:[44,195,0,0,0],rpcUrls:["https://tron-rpc.publicnode.com","https://api.tronstack.io","https://api.tron.network"],type:p}),W=e({baseDecimal:9,blockTime:5,chain:"SUI",chainId:"sui",explorerUrl:"https://suiscan.xyz",name:"Sui",nativeCurrency:"SUI",networkDerivationPath:[44,784,0,0,0],rpcUrls:["https://fullnode.mainnet.sui.io:443"],type:p}),$=e({baseDecimal:6,blockTime:600,chain:"ADA",chainId:"cardano",explorerUrl:"https://cexplorer.io",name:"Cardano",nativeCurrency:"ADA",networkDerivationPath:[1852,1815,0,0,0],rpcUrls:["https://api.koios.rest/api/v1","https://cardano-mainnet.blockfrost.io/api/v0"],type:p}),k=[z,V,J,Y,q,Q,W,$],Oe=k.map((o)=>o.chain);var P="substrate",F=e({baseDecimal:10,blockTime:6,chain:"DOT",chainId:"polkadot",explorerUrl:"https://polkadot.subscan.io",name:"Polkadot",nativeCurrency:"DOT",networkDerivationPath:[0,0,0,0,0],rpcUrls:["wss://rpc.polkadot.io","wss://polkadot-rpc.dwellir.com","wss://polkadot.api.onfinality.io/public-ws"],type:P}),_=e({baseDecimal:18,blockTime:5,chain:"FLIP",chainId:"chainflip",explorerUrl:"https://explorer.polkascan.io/polkadot",name:"Chainflip",nativeCurrency:"FLIP",networkDerivationPath:[0,0,0,0,0],rpcUrls:["wss://mainnet-archive.chainflip.io","wss://archive-1.mainnet.chainflip.io","wss://archive-2.mainnet.chainflip.io"],type:P}),v=[F,_],Ie=v.map((o)=>o.chain);var l="utxo",ee=e({baseDecimal:8,blockTime:600,chain:"BTC",chainId:"bitcoin",explorerUrl:"https://blockchair.com/bitcoin",name:"Bitcoin",nativeCurrency:"BTC",networkDerivationPath:[84,0,0,0,0],rpcUrls:["https://bitcoin-rpc.publicnode.com","https://bitcoin.publicnode.com"],type:l}),re=e({baseDecimal:8,blockTime:600,chain:"BCH",chainId:"bitcoincash",explorerUrl:"https://www.blockchair.com/bitcoin-cash",name:"BitcoinCash",nativeCurrency:"BCH",networkDerivationPath:[44,145,0,0,0],rpcUrls:["https://bch-dataseed.binance.org","https://bch.getblock.io/mainnet"],type:l}),te=e({baseDecimal:8,blockTime:150,chain:"LTC",chainId:"litecoin",explorerUrl:"https://blockchair.com/litecoin",name:"Litecoin",nativeCurrency:"LTC",networkDerivationPath:[84,2,0,0,0],rpcUrls:["https://ltc.getblock.io/mainnet","https://litecoin.publicnode.com"],type:l}),oe=e({baseDecimal:8,blockTime:60,chain:"DOGE",chainId:"dogecoin",explorerUrl:"https://blockchair.com/dogecoin",name:"Dogecoin",nativeCurrency:"DOGE",networkDerivationPath:[44,3,0,0,0],rpcUrls:["https://doge.getblock.io/mainnet","https://dogecoin.publicnode.com"],type:l}),ne=e({baseDecimal:8,blockTime:150,chain:"DASH",chainId:"dash",explorerUrl:"https://blockchair.com/dash",name:"Dash",nativeCurrency:"DASH",networkDerivationPath:[44,5,0,0,0],rpcUrls:["https://dash-rpc.publicnode.com","https://dash.getblock.io/mainnet"],type:l}),ae=e({baseDecimal:8,blockTime:75,chain:"ZEC",chainId:"zcash",explorerUrl:"https://blockchair.com/zcash",name:"Zcash",nativeCurrency:"ZEC",networkDerivationPath:[44,133,0,0,0],rpcUrls:[],type:l}),C=[ee,re,te,oe,ne,ae],Me=["BTC","BCH","DASH","DOGE","LTC","ZEC"];var R=[...C,...w,...g,...v,...k].sort((o,n)=>o.chain.localeCompare(n.chain)),ce=Object.values(i),Je=["THOR_STAGENET","MAYA_STAGENET"],se=R.reduce((o,n)=>{return o[n.chain]=n,o[n.chainId]=n,o},{});function ie(o){return se[o]||{}}var{chainIdToChain:pe,chainToBaseDecimal:me,chainToBlockTime:le,explorerUrls:he,rpcUrls:be}=ce.reduce((o,n)=>{let{chainId:A,baseDecimal:h,blockTime:O,explorerUrl:B,rpcUrls:f}=ie(n);return o.chainIdToChain[A]=n,o.chainToBaseDecimal[n]=h,o.chainToBlockTime[n]=O,o.explorerUrls[n]=B,o.rpcUrls[n]=f[0]||"",o},{chainIdToChain:{},chainToBaseDecimal:{},chainToBlockTime:{},explorerUrls:{},rpcUrls:{MAYA_STAGENET:d.rpcUrls[0],THOR_STAGENET:u.rpcUrls[0]}}),Ye={THOR:"https://thornode.ninerealms.com",MAYA:"https://mayanode.mayachain.info",THOR_STAGENET:"https://stagenet-thornode.ninerealms.com",MAYA_STAGENET:"https://stagenet.mayanode.mayachain.info"},qe=be,Qe=he,We=Object.fromEntries(R.flatMap(({chain:o,chainId:n})=>[[o,n]])),$e=pe,Fe=me,_e=le;export{ie as getChainConfig,Me as UTXOChains,C as UTXOChainConfigs,x as THORConfig,Te as TCLikeChains,Ie as SubstrateChains,v as SubstrateChainConfigs,u as StagenetTHORConfig,d as StagenetMAYAConfig,E as StagenetHARBORConfig,Ue as StagenetCosmosChains,ve as StagenetCosmosChainConfigs,Je as StagenetChains,b as StagenetChain,qe as RPC_URLS,Oe as OtherChains,k as OtherChainConfigs,Ye as NODE_URLS,H as NOBLEConfig,y as MAYAConfig,T as KUJIConfig,D as HARBORConfig,U as GAIAConfig,Qe as EXPLORER_URLS,Pe as EVMChains,w as EVMChainConfigs,ke as CosmosChains,De as CosmosChainPrefixes,g as CosmosChainConfigs,We as ChainToChainId,$e as ChainIdToChain,m as ChainId,i as Chain,_e as BlockTimes,Fe as BaseDecimal,ce as AllChains,R as AllChainConfigs};
|
|
1
|
+
var p;((t)=>{t.Arbitrum="ARB";t.Aurora="AURORA";t.Avalanche="AVAX";t.Base="BASE";t.Berachain="BERA";t.BinanceSmartChain="BSC";t.Cardano="ADA";t.Botanix="BOTANIX";t.Core="CORE";t.Corn="CORN";t.Cronos="CRO";t.Bitcoin="BTC";t.BitcoinCash="BCH";t.Cosmos="GAIA";t.Dash="DASH";t.Dogecoin="DOGE";t.Ethereum="ETH";t.Gnosis="GNO";t.Harbor="HARBOR";t.Hyperevm="HYPEREVM";t.Kujira="KUJI";t.Sonic="SONIC";t.Unichain="UNI";t.XLayer="XLAYER";t.Litecoin="LTC";t.Maya="MAYA";t.Near="NEAR";t.Noble="NOBLE";t.Optimism="OP";t.Polkadot="DOT";t.Chainflip="FLIP";t.Polygon="POL";t.Radix="XRD";t.Ripple="XRP";t.THORChain="THOR";t.Solana="SOL";t.Sui="SUI";t.Ton="TON";t.Tron="TRON";t.Zcash="ZEC"})(p||={});var y;((b)=>{b.Harbor="MAYA_HARBOR";b.THORChain="THOR_STAGENET";b.Maya="MAYA_STAGENET"})(y||={});var l;((e)=>{e.Arbitrum="42161";e.Aurora="1313161554";e.Avalanche="43114";e.Base="8453";e.Berachain="80094";e.BinanceSmartChain="56";e.Bitcoin="bitcoin";e.BitcoinCash="bitcoincash";e.Botanix="3637";e.Cardano="cardano";e.Chainflip="chainflip";e.Core="1116";e.Corn="21000000";e.Cosmos="cosmoshub-4";e.Cronos="25";e.Dash="dash";e.Dogecoin="dogecoin";e.Ethereum="1";e.Gnosis="100";e.Harbor="harbor-1";e.HarborStagenet="harbor-stagenet-1";e.Hyperevm="2868";e.Kujira="kaiyo-1";e.Litecoin="litecoin";e.Maya="mayachain-mainnet-v1";e.MayaStagenet="mayachain-stagenet-v1";e.Near="near";e.Noble="noble-1";e.Optimism="10";e.Polkadot="polkadot";e.Polygon="137";e.Radix="radix-mainnet";e.Ripple="ripple";e.Solana="solana";e.Sonic="146";e.Sui="sui";e.THORChain="thorchain-1";e.THORChainStagenet="thorchain-stagenet-v2";e.Ton="ton";e.Tron="728126428";e.Unichain="130";e.XLayer="196";e.Zcash="zcash"})(l||={});function r(o){return o}var s="cosmos",v=r({baseDecimal:6,blockTime:2,chain:"GAIA",chainId:"cosmoshub-4",explorerUrl:"https://www.mintscan.io/cosmos",name:"Cosmos",nativeCurrency:"ATOM",networkDerivationPath:[44,118,0,0,0],rpcUrls:["https://cosmos-rpc.publicnode.com:443","https://cosmos-rpc.publicnode.com"],type:s}),d=r({baseDecimal:8,blockTime:6,chain:"THOR",chainId:"thorchain-1",explorerUrl:"https://runescan.io",name:"THORChain",nativeCurrency:"RUNE",networkDerivationPath:[44,931,0,0,0],nodeUrl:"https://thornode.ninerealms.com",rpcUrls:["https://rpc.ninerealms.com","https://thornode.ninerealms.com"],type:s}),x=r({baseDecimal:8,blockTime:6,chain:"THOR_STAGENET",chainId:"thorchain-stagenet-v2",explorerUrl:"https://runescan.io",name:"THORChain",nativeCurrency:"RUNE",networkDerivationPath:[44,931,0,0,0],nodeUrl:"https://stagenet-thornode.ninerealms.com",rpcUrls:["https://stagenet-rpc.ninerealms.com","https://stagenet-thornode.ninerealms.com"],type:s}),U=r({baseDecimal:8,blockTime:6,chain:"MAYA",chainId:"mayachain-mainnet-v1",explorerUrl:"https://www.mayascan.org",name:"Maya",nativeCurrency:"CACAO",networkDerivationPath:[44,931,0,0,0],nodeUrl:"https://mayanode.mayachain.info",rpcUrls:["https://tendermint.mayachain.info","https://maya-tendermint.publicnode.com","https://mayanode.mayachain.info"],type:s}),T=r({baseDecimal:8,blockTime:6,chain:"HARBOR",chainId:"harbor-1",explorerUrl:"",name:"Harbor",nativeCurrency:"HRB",networkDerivationPath:[44,931,0,0,0],rpcUrls:["https://xnode.harbor-dev.xyz/xnode"],type:s}),D=r({baseDecimal:8,blockTime:6,chain:"MAYA_HARBOR",chainId:"harbor-stagenet-1",explorerUrl:"",name:"Harbor",nativeCurrency:"HRB",networkDerivationPath:[44,931,0,0,0],rpcUrls:["https://xnode.harbor-dev.xyz/xnode"],type:s}),u=r({baseDecimal:8,blockTime:6,chain:"MAYA_STAGENET",chainId:"mayachain-stagenet-v1",explorerUrl:"https://www.mayascan.org",name:"Maya",nativeCurrency:"CACAO",networkDerivationPath:[44,931,0,0,0],nodeUrl:"https://stagenet.mayanode.mayachain.info",rpcUrls:["https://stagenet.mayanode.mayachain.info"],type:s}),H=r({baseDecimal:6,blockTime:2.2,chain:"KUJI",chainId:"kaiyo-1",explorerUrl:"https://finder.kujira.network/kaiyo-1",name:"Kujira",nativeCurrency:"KUJI",networkDerivationPath:[44,118,0,0,0],rpcUrls:["https://kujira-rpc.ibs.team","https://kujira-rpc.polkachu.com","https://rpc-kujira.synergynodes.com/"],type:s}),g=r({baseDecimal:6,blockTime:1.3,chain:"NOBLE",chainId:"noble-1",explorerUrl:"https://www.mintscan.io/noble",name:"Noble",nativeCurrency:"USDC",networkDerivationPath:[44,118,0,0,0],rpcUrls:["https://noble-rpc.polkachu.com","https://rpc.noble.xyz","https://rpc.cosmos.directory/noble"],type:s}),C=[v,d,U,H,g,T],Rr=["GAIA","KUJI","MAYA","NOBLE","THOR","HARBOR"],fr=[x,u,D],Or=["MAYA_STAGENET","THOR_STAGENET","MAYA_HARBOR"],Pr={[v.chain]:"cosmos",[d.chain]:"thor",[x.chain]:"sthor",[U.chain]:"maya",[u.chain]:"smaya",[H.chain]:"kujira",[g.chain]:"noble",[T.chain]:"harbor",[D.chain]:"sharbor"},Br=[d.chain,U.chain];var n="evm",c=18,a=[44,60,0,0,0],S=r({baseDecimal:c,blockTime:12.5,chain:"ETH",chainId:"1",chainIdHex:"0x1",explorerUrl:"https://etherscan.io",name:"Ethereum",nativeCurrency:"ETH",networkDerivationPath:a,rpcUrls:["https://ethereum-rpc.publicnode.com","https://eth.llamarpc.com","https://cloudflare-eth.com"],type:n}),N=r({baseDecimal:c,blockTime:1,chain:"BSC",chainId:"56",chainIdHex:"0x38",explorerUrl:"https://bscscan.com",name:"BinanceSmartChain",nativeCurrency:"BNB",networkDerivationPath:a,rpcUrls:["https://bsc-dataseed.binance.org","https://bsc-rpc.gateway.pokt.network","https://bsc-dataseed2.binance.org"],type:n}),L=r({baseDecimal:c,blockTime:2,chain:"AVAX",chainId:"43114",chainIdHex:"0xa86a",explorerUrl:"https://snowtrace.io",name:"Avalanche",nativeCurrency:"AVAX",networkDerivationPath:a,rpcUrls:["https://api.avax.network/ext/bc/C/rpc","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain-rpc.publicnode.com"],type:n}),X=r({baseDecimal:c,blockTime:2.1,chain:"POL",chainId:"137",chainIdHex:"0x89",explorerUrl:"https://polygonscan.com",name:"Polygon",nativeCurrency:"POL",networkDerivationPath:a,rpcUrls:["https://polygon-rpc.com","https://polygon.llamarpc.com","https://polygon-bor-rpc.publicnode.com"],type:n}),M=r({baseDecimal:c,blockTime:0.3,chain:"ARB",chainId:"42161",chainIdHex:"0xa4b1",explorerUrl:"https://arbiscan.io",name:"Arbitrum",nativeCurrency:"ETH",networkDerivationPath:a,rpcUrls:["https://arb1.arbitrum.io/rpc","https://arb-mainnet.g.alchemy.com/v2/demo","https://arbitrum.blockpi.network/v1/rpc/public"],type:n}),j=r({baseDecimal:c,blockTime:2,chain:"OP",chainId:"10",chainIdHex:"0xa",explorerUrl:"https://optimistic.etherscan.io",name:"Optimism",nativeCurrency:"ETH",networkDerivationPath:a,rpcUrls:["https://mainnet.optimism.io","https://optimism.llamarpc.com","https://1rpc.io/op"],type:n}),z=r({baseDecimal:c,blockTime:2,chain:"BASE",chainId:"8453",chainIdHex:"0x2105",explorerUrl:"https://basescan.org",name:"Base",nativeCurrency:"ETH",networkDerivationPath:a,rpcUrls:["https://base-rpc.publicnode.com","https://base.blockpi.network/v1/rpc/public","https://1rpc.io/base"],type:n}),G=r({baseDecimal:c,blockTime:5.2,chain:"GNO",chainId:"100",chainIdHex:"0x64",explorerUrl:"https://gnosisscan.io",name:"Gnosis",nativeCurrency:"xDAI",networkDerivationPath:a,rpcUrls:["https://gnosis-rpc.publicnode.com","https://gnosis.drpc.org","https://rpc.ankr.com/gnosis"],type:n}),K=r({baseDecimal:c,blockTime:1,chain:"AURORA",chainId:"1313161554",chainIdHex:"0x4e454152",explorerUrl:"https://explorer.mainnet.aurora.dev",name:"Aurora",nativeCurrency:"ETH",networkDerivationPath:a,rpcUrls:["https://aurora-rpc.publicnode.com","https://1rpc.io/aurora","https://mainnet.aurora.dev"],type:n}),Z=r({baseDecimal:c,blockTime:2,chain:"BERA",chainId:"80094",chainIdHex:"0x138de",explorerUrl:"https://berascan.com",name:"Berachain",nativeCurrency:"BERA",networkDerivationPath:a,rpcUrls:["https://berachain-rpc.publicnode.com","https://rpc.berachain.com","https://berachain.drpc.org"],type:n}),V=r({baseDecimal:c,blockTime:2,chain:"HYPEREVM",chainId:"2868",chainIdHex:"0x3e7",explorerUrl:"https://app.hyperliquid.xyz/explorer",name:"Hyperliquid",nativeCurrency:"HYPE",networkDerivationPath:a,rpcUrls:["https://rpc.hyperliquid.xyz/evm","https://rpc.hypurrscan.io"],type:n}),Y=r({baseDecimal:c,blockTime:2,chain:"UNI",chainId:"130",chainIdHex:"0x82",explorerUrl:"https://unichain.blockscout.com",name:"Unichain",nativeCurrency:"ETH",networkDerivationPath:a,rpcUrls:["https://unichain-rpc.publicnode.com","https://unichain.drpc.org"],type:n}),q=r({baseDecimal:c,blockTime:2,chain:"CORN",chainId:"21000000",chainIdHex:"0x1406f40",explorerUrl:"https://cornscan.io",name:"Corn",nativeCurrency:"BTCN",networkDerivationPath:a,rpcUrls:["https://mainnet.corn-rpc.com","https://rpc.ankr.com/corn_maizenet"],type:n}),J=r({baseDecimal:c,blockTime:2,chain:"CORE",chainId:"1116",chainIdHex:"0x45c",explorerUrl:"https://corescan.io",name:"Core",nativeCurrency:"CORE",networkDerivationPath:a,rpcUrls:["https://core-rpc.publicnode.com","https://1rpc.io/core"],type:n}),Q=r({baseDecimal:c,blockTime:2,chain:"BOTANIX",chainId:"3637",chainIdHex:"0xe35",explorerUrl:"https://botanixscan.io",name:"Botanix",nativeCurrency:"BTC",networkDerivationPath:a,rpcUrls:["https://core.drpc.org","https://1rpc.io/core"],type:n}),W=r({baseDecimal:c,blockTime:2,chain:"CRO",chainId:"25",chainIdHex:"0x19",explorerUrl:"https://croscan.io",name:"Cronos",nativeCurrency:"CRO",networkDerivationPath:a,rpcUrls:["https://rpc.vvs.finance"],type:n}),$=r({baseDecimal:c,blockTime:2,chain:"XLAYER",chainId:"196",chainIdHex:"0xc4",explorerUrl:"https://okbscan.com",name:"X Layer",nativeCurrency:"OKB",networkDerivationPath:a,rpcUrls:["https://rpc.xlayer.tech"],type:n}),F=r({baseDecimal:c,blockTime:2,chain:"SONIC",chainId:"146",chainIdHex:"0x92",explorerUrl:"https://sonicscan.io",name:"Sonic",nativeCurrency:"S",networkDerivationPath:a,rpcUrls:["https://rpc.sonic.xyz"],type:n}),w=[M,K,L,z,Z,Q,N,J,q,W,S,G,V,j,X,F,Y,$],Sr=["ARB","AURORA","AVAX","BASE","BERA","BSC","BOTANIX","CORE","CORN","CORN","CRO","ETH","GNO","HYPEREVM","OP","POL","SONIC","UNI","XLAYER"];var m="others",_=r({baseDecimal:24,blockTime:1,chain:"NEAR",chainId:"near",explorerUrl:"https://nearblocks.io",name:"Near",nativeCurrency:"NEAR",networkDerivationPath:[44,397,0,0,0],rpcUrls:["https://rpc.mainnet.near.org","https://1rpc.io/near","https://near.lava.build","https://near-mainnet.infura.io/v3/3cbfcafa5e1e48b7bb0ea41f2fbc4abf"],type:m}),rr=r({baseDecimal:18,blockTime:5,chain:"XRD",chainId:"radix-mainnet",explorerUrl:"https://dashboard.radixdlt.com",name:"Radix",nativeCurrency:"XRD",networkDerivationPath:[0,0,0,0,0],rpcUrls:["https://radix-mainnet.rpc.grove.city/v1/326002fc/core","https://mainnet.radixdlt.com","https://radix-mainnet.rpc.grove.city/v1"],type:m}),er=r({baseDecimal:6,blockTime:5,chain:"XRP",chainId:"ripple",explorerUrl:"https://livenet.xrpl.org/",name:"Ripple",nativeCurrency:"XRP",networkDerivationPath:[44,144,0,0,0],rpcUrls:["wss://xrpl.ws/","wss://s1.ripple.com/","wss://s2.ripple.com/"],type:m}),tr=r({baseDecimal:9,blockTime:0.4,chain:"SOL",chainId:"solana",explorerUrl:"https://solscan.io",name:"Solana",nativeCurrency:"SOL",networkDerivationPath:[44,501,0,0,0],rpcUrls:["https://solana-rpc.publicnode.com","https://api.mainnet-beta.solana.com","https://solana-mainnet.rpc.extrnode.com"],type:m}),or=r({baseDecimal:9,blockTime:5,chain:"TON",chainId:"ton",explorerUrl:"https://tonscan.org",name:"Ton",nativeCurrency:"TON",networkDerivationPath:[44,607,0,0,0],rpcUrls:["https://ton.api.onfinality.io/public","https://ton.drpc.org/rest/","https://toncenter.com/api/v2/jsonRPC"],type:m}),nr=r({baseDecimal:6,blockTime:3,chain:"TRON",chainId:"728126428",chainIdHex:"0x2b6653dc",explorerUrl:"https://tronscan.org",name:"Tron",nativeCurrency:"TRX",networkDerivationPath:[44,195,0,0,0],rpcUrls:["https://tron-rpc.publicnode.com","https://api.tronstack.io","https://api.tron.network"],type:m}),cr=r({baseDecimal:9,blockTime:5,chain:"SUI",chainId:"sui",explorerUrl:"https://suiscan.xyz",name:"Sui",nativeCurrency:"SUI",networkDerivationPath:[44,784,0,0,0],rpcUrls:["https://fullnode.mainnet.sui.io:443"],type:m}),ar=r({baseDecimal:6,blockTime:600,chain:"ADA",chainId:"cardano",explorerUrl:"https://cexplorer.io",name:"Cardano",nativeCurrency:"ADA",networkDerivationPath:[1852,1815,0,0,0],rpcUrls:["https://api.koios.rest/api/v1","https://cardano-mainnet.blockfrost.io/api/v0"],type:m}),k=[_,rr,er,tr,or,nr,cr,ar],Mr=k.map((o)=>o.chain);var R="substrate",ir=r({baseDecimal:10,blockTime:6,chain:"DOT",chainId:"polkadot",explorerUrl:"https://polkadot.subscan.io",name:"Polkadot",nativeCurrency:"DOT",networkDerivationPath:[0,0,0,0,0],rpcUrls:["wss://rpc.polkadot.io","wss://polkadot-rpc.dwellir.com","wss://polkadot.api.onfinality.io/public-ws"],type:R}),sr=r({baseDecimal:18,blockTime:5,chain:"FLIP",chainId:"chainflip",explorerUrl:"https://explorer.polkascan.io/polkadot",name:"Chainflip",nativeCurrency:"FLIP",networkDerivationPath:[0,0,0,0,0],rpcUrls:["wss://mainnet-archive.chainflip.io","wss://archive-1.mainnet.chainflip.io","wss://archive-2.mainnet.chainflip.io"],type:R}),f=[ir,sr],Kr=["DOT","FLIP"];var h="utxo",pr=r({baseDecimal:8,blockTime:600,chain:"BTC",chainId:"bitcoin",explorerUrl:"https://blockchair.com/bitcoin",name:"Bitcoin",nativeCurrency:"BTC",networkDerivationPath:[84,0,0,0,0],rpcUrls:["https://bitcoin-rpc.publicnode.com","https://bitcoin.publicnode.com"],type:h}),mr=r({baseDecimal:8,blockTime:600,chain:"BCH",chainId:"bitcoincash",explorerUrl:"https://www.blockchair.com/bitcoin-cash",name:"BitcoinCash",nativeCurrency:"BCH",networkDerivationPath:[44,145,0,0,0],rpcUrls:["https://bch-dataseed.binance.org","https://bch.getblock.io/mainnet"],type:h}),lr=r({baseDecimal:8,blockTime:150,chain:"LTC",chainId:"litecoin",explorerUrl:"https://blockchair.com/litecoin",name:"Litecoin",nativeCurrency:"LTC",networkDerivationPath:[84,2,0,0,0],rpcUrls:["https://ltc.getblock.io/mainnet","https://litecoin.publicnode.com"],type:h}),hr=r({baseDecimal:8,blockTime:60,chain:"DOGE",chainId:"dogecoin",explorerUrl:"https://blockchair.com/dogecoin",name:"Dogecoin",nativeCurrency:"DOGE",networkDerivationPath:[44,3,0,0,0],rpcUrls:["https://doge.getblock.io/mainnet","https://dogecoin.publicnode.com"],type:h}),br=r({baseDecimal:8,blockTime:150,chain:"DASH",chainId:"dash",explorerUrl:"https://blockchair.com/dash",name:"Dash",nativeCurrency:"DASH",networkDerivationPath:[44,5,0,0,0],rpcUrls:["https://dash-rpc.publicnode.com","https://dash.getblock.io/mainnet"],type:h}),xr=r({baseDecimal:8,blockTime:75,chain:"ZEC",chainId:"zcash",explorerUrl:"https://blockchair.com/zcash",name:"Zcash",nativeCurrency:"ZEC",networkDerivationPath:[44,133,0,0,0],rpcUrls:[],type:h}),O=[pr,mr,lr,hr,br,xr],qr=["BTC","BCH","DASH","DOGE","LTC","ZEC"];var P=[...O,...w,...C,...f,...k].sort((o,i)=>o.chain.localeCompare(i.chain)),ur=Object.values(p),ee=["THOR_STAGENET","MAYA_STAGENET"],yr=P.reduce((o,i)=>{return o[i.chain]=i,o[i.chainId]=i,o},{});function dr(o){return yr[o]||{}}var{chainIdToChain:Ur,chainToBaseDecimal:kr,chainToBlockTime:vr,explorerUrls:Tr,rpcUrls:Dr}=ur.reduce((o,i)=>{let{chainId:B,baseDecimal:b,blockTime:A,explorerUrl:E,rpcUrls:I}=dr(i);return o.chainIdToChain[B]=i,o.chainToBaseDecimal[i]=b,o.chainToBlockTime[i]=A,o.explorerUrls[i]=E,o.rpcUrls[i]=I[0]||"",o},{chainIdToChain:{},chainToBaseDecimal:{},chainToBlockTime:{},explorerUrls:{},rpcUrls:{MAYA_STAGENET:u.rpcUrls[0],THOR_STAGENET:x.rpcUrls[0]}}),te={THOR:"https://thornode.ninerealms.com",MAYA:"https://mayanode.mayachain.info",THOR_STAGENET:"https://stagenet-thornode.ninerealms.com",MAYA_STAGENET:"https://stagenet.mayanode.mayachain.info"},oe=Dr,ne=Tr,ce=Object.fromEntries(P.flatMap(({chain:o,chainId:i})=>[[o,i]])),ae=Ur,ie=kr,se=vr;export{dr as getChainConfig,qr as UTXOChains,O as UTXOChainConfigs,d as THORConfig,Br as TCLikeChains,Kr as SubstrateChains,f as SubstrateChainConfigs,x as StagenetTHORConfig,u as StagenetMAYAConfig,D as StagenetHARBORConfig,Or as StagenetCosmosChains,fr as StagenetCosmosChainConfigs,ee as StagenetChains,y as StagenetChain,oe as RPC_URLS,Mr as OtherChains,k as OtherChainConfigs,te as NODE_URLS,g as NOBLEConfig,U as MAYAConfig,H as KUJIConfig,T as HARBORConfig,v as GAIAConfig,ne as EXPLORER_URLS,Sr as EVMChains,w as EVMChainConfigs,Rr as CosmosChains,Pr as CosmosChainPrefixes,C as CosmosChainConfigs,ce as ChainToChainId,ae as ChainIdToChain,l as ChainId,p as Chain,se as BlockTimes,ie as BaseDecimal,ur as AllChains,P as AllChainConfigs};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=0E8B7DC14A7EF85364756E2164756E21
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/chains/_enums.ts", "../src/chains/_createChain.ts", "../src/chains/cosmos.ts", "../src/chains/evm.ts", "../src/chains/others.ts", "../src/chains/substrate.ts", "../src/chains/utxo.ts", "../src/chains/index.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"export enum Chain {\n Arbitrum = \"ARB\",\n Aurora = \"AURORA\",\n Avalanche = \"AVAX\",\n Base = \"BASE\",\n Berachain = \"BERA\",\n BinanceSmartChain = \"BSC\",\n Cardano = \"ADA\",\n Bitcoin = \"BTC\",\n BitcoinCash = \"BCH\",\n Cosmos = \"GAIA\",\n Dash = \"DASH\",\n Dogecoin = \"DOGE\",\n Ethereum = \"ETH\",\n Gnosis = \"GNO\",\n Harbor = \"HARBOR\",\n Kujira = \"KUJI\",\n Litecoin = \"LTC\",\n Maya = \"MAYA\",\n Near = \"NEAR\",\n Noble = \"NOBLE\",\n Optimism = \"OP\",\n Polkadot = \"DOT\",\n Chainflip = \"FLIP\",\n Polygon = \"POL\",\n Radix = \"XRD\",\n Ripple = \"XRP\",\n THORChain = \"THOR\",\n Solana = \"SOL\",\n Sui = \"SUI\",\n Ton = \"TON\",\n Tron = \"TRON\",\n Zcash = \"ZEC\",\n}\n\nexport enum StagenetChain {\n Harbor = \"MAYA_HARBOR\",\n THORChain = \"THOR_STAGENET\",\n Maya = \"MAYA_STAGENET\",\n}\n\n/**\n * ChainId enum - chain identifiers for different networks\n *\n * Note: Full-name properties (e.g., Arbitrum, Avalanche) will be discontinued in future versions.\n * Please use the short-handle properties (e.g., ARB, AVAX) instead.\n * The network configuration will be migrated to a more streamlined approach with one object per chain.\n */\nexport enum ChainId {\n Arbitrum = \"42161\",\n Aurora = \"1313161554\",\n Avalanche = \"43114\",\n Base = \"8453\",\n Berachain = \"80094\",\n BinanceSmartChain = \"56\",\n Bitcoin = \"bitcoin\",\n BitcoinCash = \"bitcoincash\",\n Cardano = \"cardano\",\n Chainflip = \"chainflip\",\n Cosmos = \"cosmoshub-4\",\n Dash = \"dash\",\n Dogecoin = \"dogecoin\",\n Ethereum = \"1\",\n Gnosis = \"100\",\n Harbor = \"harbor-1\",\n HarborStagenet = \"harbor-stagenet-1\",\n Kujira = \"kaiyo-1\",\n Litecoin = \"litecoin\",\n Maya = \"mayachain-mainnet-v1\",\n MayaStagenet = \"mayachain-stagenet-v1\",\n Near = \"near\",\n Noble = \"noble-1\",\n Optimism = \"10\",\n Polkadot = \"polkadot\",\n Polygon = \"137\",\n Radix = \"radix-mainnet\",\n Ripple = \"ripple\",\n THORChain = \"thorchain-1\",\n THORChainStagenet = \"thorchain-stagenet-v2\",\n
|
|
5
|
+
"export enum Chain {\n Arbitrum = \"ARB\",\n Aurora = \"AURORA\",\n Avalanche = \"AVAX\",\n Base = \"BASE\",\n Berachain = \"BERA\",\n BinanceSmartChain = \"BSC\",\n Cardano = \"ADA\",\n Botanix = \"BOTANIX\",\n Core = \"CORE\",\n Corn = \"CORN\",\n Cronos = \"CRO\",\n Bitcoin = \"BTC\",\n BitcoinCash = \"BCH\",\n Cosmos = \"GAIA\",\n Dash = \"DASH\",\n Dogecoin = \"DOGE\",\n Ethereum = \"ETH\",\n Gnosis = \"GNO\",\n Harbor = \"HARBOR\",\n Hyperevm = \"HYPEREVM\",\n Kujira = \"KUJI\",\n Sonic = \"SONIC\",\n Unichain = \"UNI\",\n XLayer = \"XLAYER\",\n Litecoin = \"LTC\",\n Maya = \"MAYA\",\n Near = \"NEAR\",\n Noble = \"NOBLE\",\n Optimism = \"OP\",\n Polkadot = \"DOT\",\n Chainflip = \"FLIP\",\n Polygon = \"POL\",\n Radix = \"XRD\",\n Ripple = \"XRP\",\n THORChain = \"THOR\",\n Solana = \"SOL\",\n Sui = \"SUI\",\n Ton = \"TON\",\n Tron = \"TRON\",\n Zcash = \"ZEC\",\n}\n\nexport enum StagenetChain {\n Harbor = \"MAYA_HARBOR\",\n THORChain = \"THOR_STAGENET\",\n Maya = \"MAYA_STAGENET\",\n}\n\n/**\n * ChainId enum - chain identifiers for different networks\n *\n * Note: Full-name properties (e.g., Arbitrum, Avalanche) will be discontinued in future versions.\n * Please use the short-handle properties (e.g., ARB, AVAX) instead.\n * The network configuration will be migrated to a more streamlined approach with one object per chain.\n */\nexport enum ChainId {\n Arbitrum = \"42161\",\n Aurora = \"1313161554\",\n Avalanche = \"43114\",\n Base = \"8453\",\n Berachain = \"80094\",\n BinanceSmartChain = \"56\",\n Bitcoin = \"bitcoin\",\n BitcoinCash = \"bitcoincash\",\n Botanix = \"3637\",\n Cardano = \"cardano\",\n Chainflip = \"chainflip\",\n Core = \"1116\",\n Corn = \"21000000\",\n Cosmos = \"cosmoshub-4\",\n Cronos = \"25\",\n Dash = \"dash\",\n Dogecoin = \"dogecoin\",\n Ethereum = \"1\",\n Gnosis = \"100\",\n Harbor = \"harbor-1\",\n HarborStagenet = \"harbor-stagenet-1\",\n Hyperevm = \"2868\",\n Kujira = \"kaiyo-1\",\n Litecoin = \"litecoin\",\n Maya = \"mayachain-mainnet-v1\",\n MayaStagenet = \"mayachain-stagenet-v1\",\n Near = \"near\",\n Noble = \"noble-1\",\n Optimism = \"10\",\n Polkadot = \"polkadot\",\n Polygon = \"137\",\n Radix = \"radix-mainnet\",\n Ripple = \"ripple\",\n Solana = \"solana\",\n Sonic = \"146\",\n Sui = \"sui\",\n THORChain = \"thorchain-1\",\n THORChainStagenet = \"thorchain-stagenet-v2\",\n Ton = \"ton\",\n Tron = \"728126428\",\n Unichain = \"130\",\n XLayer = \"196\",\n Zcash = \"zcash\",\n}\n",
|
|
6
6
|
"import type { Chain, ChainId, StagenetChain } from \"./_enums\";\n\ntype ChainIdHexType<T> = T extends { chainIdHex: infer U } ? (U extends string ? U : undefined) : undefined;\n\nexport function createChain<\n const Name extends string,\n const Type extends \"utxo\" | \"evm\" | \"cosmos\" | \"substrate\" | \"others\",\n const Params extends {\n baseDecimal: number;\n blockTime: number;\n chain: Chain | StagenetChain;\n chainId: ChainId;\n explorerUrl: string;\n name: Name;\n nativeCurrency: string;\n networkDerivationPath: [number, number, number, number, number?];\n rpcUrls: string[];\n type: Type;\n } & ({ chainIdHex: string } | { chainIdHex?: never }),\n>(params: Params): Params & { chainIdHex: ChainIdHexType<Params> } {\n return params as Params & { chainIdHex: ChainIdHexType<Params> };\n}\n",
|
|
7
|
-
"import { createChain } from \"./_createChain\";\nimport { Chain, ChainId, StagenetChain } from \"./_enums\";\n\nconst type = \"cosmos\";\n\nexport const GAIAConfig = createChain({\n baseDecimal: 6,\n blockTime: 2,\n chain: Chain.Cosmos,\n chainId: ChainId.Cosmos,\n explorerUrl: \"https://www.mintscan.io/cosmos\",\n name: \"Cosmos\",\n nativeCurrency: \"ATOM\",\n networkDerivationPath: [44, 118, 0, 0, 0],\n rpcUrls: [\"https://cosmos-rpc.publicnode.com:443\", \"https://cosmos-rpc.publicnode.com\"],\n type,\n});\n\nexport const THORConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: Chain.THORChain,\n chainId: ChainId.THORChain,\n explorerUrl: \"https://runescan.io\",\n name: \"THORChain\",\n nativeCurrency: \"RUNE\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n nodeUrl: \"https://thornode.ninerealms.com\",\n rpcUrls: [\"https://rpc.ninerealms.com\", \"https://thornode.ninerealms.com\"],\n type,\n});\n\nexport const StagenetTHORConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: StagenetChain.THORChain,\n chainId: ChainId.THORChainStagenet,\n explorerUrl: \"https://runescan.io\",\n name: \"THORChain\",\n nativeCurrency: \"RUNE\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n nodeUrl: \"https://stagenet-thornode.ninerealms.com\",\n rpcUrls: [\"https://stagenet-rpc.ninerealms.com\", \"https://stagenet-thornode.ninerealms.com\"],\n type,\n});\n\nexport const MAYAConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: Chain.Maya,\n chainId: ChainId.Maya,\n explorerUrl: \"https://www.mayascan.org\",\n name: \"Maya\",\n nativeCurrency: \"CACAO\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n nodeUrl: \"https://mayanode.mayachain.info\",\n rpcUrls: [\n \"https://tendermint.mayachain.info\",\n \"https://maya-tendermint.publicnode.com\",\n \"https://mayanode.mayachain.info\",\n ],\n type,\n});\n\nexport const HARBORConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: Chain.Harbor,\n chainId: ChainId.Harbor,\n explorerUrl: \"\",\n name: \"Harbor\",\n nativeCurrency: \"HRB\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n rpcUrls: [\"https://xnode.harbor-dev.xyz/xnode\"],\n type,\n});\n\nexport const StagenetHARBORConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: StagenetChain.Harbor,\n chainId: ChainId.HarborStagenet,\n explorerUrl: \"\",\n name: \"Harbor\",\n nativeCurrency: \"HRB\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n rpcUrls: [\"https://xnode.harbor-dev.xyz/xnode\"],\n type,\n});\n\nexport const StagenetMAYAConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: StagenetChain.Maya,\n chainId: ChainId.MayaStagenet,\n explorerUrl: \"https://www.mayascan.org\",\n name: \"Maya\",\n nativeCurrency: \"CACAO\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n nodeUrl: \"https://stagenet.mayanode.mayachain.info\",\n rpcUrls: [\"https://stagenet.mayanode.mayachain.info\"],\n type,\n});\n\nexport const KUJIConfig = createChain({\n baseDecimal: 6,\n blockTime: 2.2,\n chain: Chain.Kujira,\n chainId: ChainId.Kujira,\n explorerUrl: \"https://finder.kujira.network/kaiyo-1\",\n name: \"Kujira\",\n nativeCurrency: \"KUJI\",\n networkDerivationPath: [44, 118, 0, 0, 0],\n rpcUrls: [\"https://kujira-rpc.ibs.team\", \"https://kujira-rpc.polkachu.com\", \"https://rpc-kujira.synergynodes.com/\"],\n type,\n});\n\nexport const NOBLEConfig = createChain({\n baseDecimal: 6,\n blockTime: 1.3,\n chain: Chain.Noble,\n chainId: ChainId.Noble,\n explorerUrl: \"https://www.mintscan.io/noble\",\n name: \"Noble\",\n nativeCurrency: \"USDC\",\n networkDerivationPath: [44, 118, 0, 0, 0],\n rpcUrls: [\"https://noble-rpc.polkachu.com\", \"https://rpc.noble.xyz\", \"https://rpc.cosmos.directory/noble\"],\n type,\n});\n\nexport const CosmosChainConfigs = [GAIAConfig, THORConfig, MAYAConfig, KUJIConfig, NOBLEConfig, HARBORConfig] as const;\nexport const CosmosChains = [\n Chain.Cosmos,\n Chain.Kujira,\n Chain.Maya,\n Chain.Noble,\n Chain.THORChain,\n Chain.Harbor,\n] as const;\nexport type CosmosChain = (typeof CosmosChains)[number];\n\nexport const StagenetCosmosChainConfigs = [StagenetTHORConfig, StagenetMAYAConfig, StagenetHARBORConfig] as const;\nexport const StagenetCosmosChains = [StagenetChain.Maya, StagenetChain.THORChain, StagenetChain.Harbor] as const;\nexport type StagenetCosmosChain = (typeof StagenetCosmosChains)[number];\n\nexport const CosmosChainPrefixes: Record<CosmosChain, string> = {\n [GAIAConfig.chain]: \"cosmos\",\n [THORConfig.chain]: \"thor\",\n [MAYAConfig.chain]: \"maya\",\n [KUJIConfig.chain]: \"kujira\",\n [NOBLEConfig.chain]: \"noble\",\n [HARBORConfig.chain]: \"harbor\",\n};\n\nexport const TCLikeChains = [THORConfig.chain, MAYAConfig.chain] as const;\nexport type TCLikeChain = (typeof TCLikeChains)[number];\n",
|
|
8
|
-
"import { createChain } from \"./_createChain\";\nimport { Chain, ChainId } from \"./_enums\";\n\nconst type = \"evm\";\nconst networkDerivationPath = [44, 60, 0, 0, 0] as [number, number, number, number, number];\n\nconst ETHConfig = createChain({\n baseDecimal
|
|
7
|
+
"import { createChain } from \"./_createChain\";\nimport { Chain, ChainId, StagenetChain } from \"./_enums\";\n\nconst type = \"cosmos\";\n\nexport const GAIAConfig = createChain({\n baseDecimal: 6,\n blockTime: 2,\n chain: Chain.Cosmos,\n chainId: ChainId.Cosmos,\n explorerUrl: \"https://www.mintscan.io/cosmos\",\n name: \"Cosmos\",\n nativeCurrency: \"ATOM\",\n networkDerivationPath: [44, 118, 0, 0, 0],\n rpcUrls: [\"https://cosmos-rpc.publicnode.com:443\", \"https://cosmos-rpc.publicnode.com\"],\n type,\n});\n\nexport const THORConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: Chain.THORChain,\n chainId: ChainId.THORChain,\n explorerUrl: \"https://runescan.io\",\n name: \"THORChain\",\n nativeCurrency: \"RUNE\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n nodeUrl: \"https://thornode.ninerealms.com\",\n rpcUrls: [\"https://rpc.ninerealms.com\", \"https://thornode.ninerealms.com\"],\n type,\n});\n\nexport const StagenetTHORConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: StagenetChain.THORChain,\n chainId: ChainId.THORChainStagenet,\n explorerUrl: \"https://runescan.io\",\n name: \"THORChain\",\n nativeCurrency: \"RUNE\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n nodeUrl: \"https://stagenet-thornode.ninerealms.com\",\n rpcUrls: [\"https://stagenet-rpc.ninerealms.com\", \"https://stagenet-thornode.ninerealms.com\"],\n type,\n});\n\nexport const MAYAConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: Chain.Maya,\n chainId: ChainId.Maya,\n explorerUrl: \"https://www.mayascan.org\",\n name: \"Maya\",\n nativeCurrency: \"CACAO\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n nodeUrl: \"https://mayanode.mayachain.info\",\n rpcUrls: [\n \"https://tendermint.mayachain.info\",\n \"https://maya-tendermint.publicnode.com\",\n \"https://mayanode.mayachain.info\",\n ],\n type,\n});\n\nexport const HARBORConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: Chain.Harbor,\n chainId: ChainId.Harbor,\n explorerUrl: \"\",\n name: \"Harbor\",\n nativeCurrency: \"HRB\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n rpcUrls: [\"https://xnode.harbor-dev.xyz/xnode\"],\n type,\n});\n\nexport const StagenetHARBORConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: StagenetChain.Harbor,\n chainId: ChainId.HarborStagenet,\n explorerUrl: \"\",\n name: \"Harbor\",\n nativeCurrency: \"HRB\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n rpcUrls: [\"https://xnode.harbor-dev.xyz/xnode\"],\n type,\n});\n\nexport const StagenetMAYAConfig = createChain({\n baseDecimal: 8,\n blockTime: 6,\n chain: StagenetChain.Maya,\n chainId: ChainId.MayaStagenet,\n explorerUrl: \"https://www.mayascan.org\",\n name: \"Maya\",\n nativeCurrency: \"CACAO\",\n networkDerivationPath: [44, 931, 0, 0, 0],\n nodeUrl: \"https://stagenet.mayanode.mayachain.info\",\n rpcUrls: [\"https://stagenet.mayanode.mayachain.info\"],\n type,\n});\n\nexport const KUJIConfig = createChain({\n baseDecimal: 6,\n blockTime: 2.2,\n chain: Chain.Kujira,\n chainId: ChainId.Kujira,\n explorerUrl: \"https://finder.kujira.network/kaiyo-1\",\n name: \"Kujira\",\n nativeCurrency: \"KUJI\",\n networkDerivationPath: [44, 118, 0, 0, 0],\n rpcUrls: [\"https://kujira-rpc.ibs.team\", \"https://kujira-rpc.polkachu.com\", \"https://rpc-kujira.synergynodes.com/\"],\n type,\n});\n\nexport const NOBLEConfig = createChain({\n baseDecimal: 6,\n blockTime: 1.3,\n chain: Chain.Noble,\n chainId: ChainId.Noble,\n explorerUrl: \"https://www.mintscan.io/noble\",\n name: \"Noble\",\n nativeCurrency: \"USDC\",\n networkDerivationPath: [44, 118, 0, 0, 0],\n rpcUrls: [\"https://noble-rpc.polkachu.com\", \"https://rpc.noble.xyz\", \"https://rpc.cosmos.directory/noble\"],\n type,\n});\n\nexport const CosmosChainConfigs = [GAIAConfig, THORConfig, MAYAConfig, KUJIConfig, NOBLEConfig, HARBORConfig] as const;\nexport const CosmosChains = [\n Chain.Cosmos,\n Chain.Kujira,\n Chain.Maya,\n Chain.Noble,\n Chain.THORChain,\n Chain.Harbor,\n] as const;\nexport type CosmosChain = (typeof CosmosChains)[number];\n\nexport const StagenetCosmosChainConfigs = [StagenetTHORConfig, StagenetMAYAConfig, StagenetHARBORConfig] as const;\nexport const StagenetCosmosChains = [StagenetChain.Maya, StagenetChain.THORChain, StagenetChain.Harbor] as const;\nexport type StagenetCosmosChain = (typeof StagenetCosmosChains)[number];\n\nexport const CosmosChainPrefixes: Record<CosmosChain | StagenetCosmosChain, string> = {\n [GAIAConfig.chain]: \"cosmos\",\n [THORConfig.chain]: \"thor\",\n [StagenetTHORConfig.chain]: \"sthor\",\n [MAYAConfig.chain]: \"maya\",\n [StagenetMAYAConfig.chain]: \"smaya\",\n [KUJIConfig.chain]: \"kujira\",\n [NOBLEConfig.chain]: \"noble\",\n [HARBORConfig.chain]: \"harbor\",\n [StagenetHARBORConfig.chain]: \"sharbor\",\n};\n\nexport const TCLikeChains = [THORConfig.chain, MAYAConfig.chain] as const;\nexport type TCLikeChain = (typeof TCLikeChains)[number];\n",
|
|
8
|
+
"import { createChain } from \"./_createChain\";\nimport { Chain, ChainId } from \"./_enums\";\n\nconst type = \"evm\";\nconst baseDecimal = 18;\nconst networkDerivationPath = [44, 60, 0, 0, 0] as [number, number, number, number, number];\n\nconst ETHConfig = createChain({\n baseDecimal,\n blockTime: 12.5,\n chain: Chain.Ethereum,\n chainId: ChainId.Ethereum,\n chainIdHex: \"0x1\",\n explorerUrl: \"https://etherscan.io\",\n name: \"Ethereum\",\n nativeCurrency: \"ETH\",\n networkDerivationPath,\n rpcUrls: [\"https://ethereum-rpc.publicnode.com\", \"https://eth.llamarpc.com\", \"https://cloudflare-eth.com\"],\n type,\n});\n\nconst BSCConfig = createChain({\n baseDecimal,\n blockTime: 1,\n chain: Chain.BinanceSmartChain,\n chainId: ChainId.BinanceSmartChain,\n chainIdHex: \"0x38\",\n explorerUrl: \"https://bscscan.com\",\n name: \"BinanceSmartChain\",\n nativeCurrency: \"BNB\",\n networkDerivationPath,\n rpcUrls: [\n \"https://bsc-dataseed.binance.org\",\n \"https://bsc-rpc.gateway.pokt.network\",\n \"https://bsc-dataseed2.binance.org\",\n ],\n type,\n});\n\nconst AVAXConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Avalanche,\n chainId: ChainId.Avalanche,\n chainIdHex: \"0xa86a\",\n explorerUrl: \"https://snowtrace.io\",\n name: \"Avalanche\",\n nativeCurrency: \"AVAX\",\n networkDerivationPath,\n rpcUrls: [\n \"https://api.avax.network/ext/bc/C/rpc\",\n \"https://api.avax.network/ext/bc/C/rpc\",\n \"https://avalanche-c-chain-rpc.publicnode.com\",\n ],\n type,\n});\n\nconst POLConfig = createChain({\n baseDecimal,\n blockTime: 2.1,\n chain: Chain.Polygon,\n chainId: ChainId.Polygon,\n chainIdHex: \"0x89\",\n explorerUrl: \"https://polygonscan.com\",\n name: \"Polygon\",\n nativeCurrency: \"POL\",\n networkDerivationPath,\n rpcUrls: [\"https://polygon-rpc.com\", \"https://polygon.llamarpc.com\", \"https://polygon-bor-rpc.publicnode.com\"],\n type,\n});\n\nconst ARBConfig = createChain({\n baseDecimal,\n blockTime: 0.3,\n chain: Chain.Arbitrum,\n chainId: ChainId.Arbitrum,\n chainIdHex: \"0xa4b1\",\n explorerUrl: \"https://arbiscan.io\",\n name: \"Arbitrum\",\n nativeCurrency: \"ETH\",\n networkDerivationPath,\n rpcUrls: [\n \"https://arb1.arbitrum.io/rpc\",\n \"https://arb-mainnet.g.alchemy.com/v2/demo\",\n \"https://arbitrum.blockpi.network/v1/rpc/public\",\n ],\n type,\n});\n\nconst OPConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Optimism,\n chainId: ChainId.Optimism,\n chainIdHex: \"0xa\",\n explorerUrl: \"https://optimistic.etherscan.io\",\n name: \"Optimism\",\n nativeCurrency: \"ETH\",\n networkDerivationPath,\n rpcUrls: [\"https://mainnet.optimism.io\", \"https://optimism.llamarpc.com\", \"https://1rpc.io/op\"],\n type,\n});\n\nconst BASEConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Base,\n chainId: ChainId.Base,\n chainIdHex: \"0x2105\",\n explorerUrl: \"https://basescan.org\",\n name: \"Base\",\n nativeCurrency: \"ETH\",\n networkDerivationPath,\n rpcUrls: [\"https://base-rpc.publicnode.com\", \"https://base.blockpi.network/v1/rpc/public\", \"https://1rpc.io/base\"],\n type,\n});\n\nconst GNOConfig = createChain({\n baseDecimal,\n blockTime: 5.2,\n chain: Chain.Gnosis,\n chainId: ChainId.Gnosis,\n chainIdHex: \"0x64\",\n explorerUrl: \"https://gnosisscan.io\",\n name: \"Gnosis\",\n nativeCurrency: \"xDAI\",\n networkDerivationPath,\n rpcUrls: [\"https://gnosis-rpc.publicnode.com\", \"https://gnosis.drpc.org\", \"https://rpc.ankr.com/gnosis\"],\n type,\n});\n\nconst AURORAConfig = createChain({\n baseDecimal,\n blockTime: 1,\n chain: Chain.Aurora,\n chainId: ChainId.Aurora,\n chainIdHex: \"0x4e454152\",\n explorerUrl: \"https://explorer.mainnet.aurora.dev\",\n name: \"Aurora\",\n nativeCurrency: \"ETH\",\n networkDerivationPath,\n rpcUrls: [\"https://aurora-rpc.publicnode.com\", \"https://1rpc.io/aurora\", \"https://mainnet.aurora.dev\"],\n type,\n});\n\nconst BERAConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Berachain,\n chainId: ChainId.Berachain,\n chainIdHex: \"0x138de\",\n explorerUrl: \"https://berascan.com\",\n name: \"Berachain\",\n nativeCurrency: \"BERA\",\n networkDerivationPath,\n rpcUrls: [\"https://berachain-rpc.publicnode.com\", \"https://rpc.berachain.com\", \"https://berachain.drpc.org\"],\n type,\n});\n\nconst HYPEREVMConfig = createChain({\n baseDecimal,\n blockTime: 2, // TODO: Check this value\n chain: Chain.Hyperevm,\n chainId: ChainId.Hyperevm,\n chainIdHex: \"0x3e7\",\n explorerUrl: \"https://app.hyperliquid.xyz/explorer\",\n name: \"Hyperliquid\",\n nativeCurrency: \"HYPE\",\n networkDerivationPath,\n rpcUrls: [\"https://rpc.hyperliquid.xyz/evm\", \"https://rpc.hypurrscan.io\"],\n type,\n});\n\nconst UNIConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Unichain,\n chainId: ChainId.Unichain,\n chainIdHex: \"0x82\",\n explorerUrl: \"https://unichain.blockscout.com\",\n name: \"Unichain\",\n nativeCurrency: \"ETH\",\n networkDerivationPath,\n rpcUrls: [\"https://unichain-rpc.publicnode.com\", \"https://unichain.drpc.org\"],\n type,\n});\n\nconst CORNConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Corn,\n chainId: ChainId.Corn,\n chainIdHex: \"0x1406f40\",\n explorerUrl: \"https://cornscan.io\",\n name: \"Corn\",\n nativeCurrency: \"BTCN\",\n networkDerivationPath,\n rpcUrls: [\"https://mainnet.corn-rpc.com\", \"https://rpc.ankr.com/corn_maizenet\"],\n type,\n});\n\nconst COREConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Core,\n chainId: ChainId.Core,\n chainIdHex: \"0x45c\",\n explorerUrl: \"https://corescan.io\",\n name: \"Core\",\n nativeCurrency: \"CORE\",\n networkDerivationPath,\n rpcUrls: [\"https://core-rpc.publicnode.com\", \"https://1rpc.io/core\"],\n type,\n});\n\nconst BOTANIXConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Botanix,\n chainId: ChainId.Botanix,\n chainIdHex: \"0xe35\",\n explorerUrl: \"https://botanixscan.io\",\n name: \"Botanix\",\n nativeCurrency: \"BTC\",\n networkDerivationPath,\n rpcUrls: [\"https://core.drpc.org\", \"https://1rpc.io/core\"],\n type,\n});\n\nconst CROConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Cronos,\n chainId: ChainId.Cronos,\n chainIdHex: \"0x19\",\n explorerUrl: \"https://croscan.io\",\n name: \"Cronos\",\n nativeCurrency: \"CRO\",\n networkDerivationPath,\n rpcUrls: [\"https://rpc.vvs.finance\"],\n type,\n});\n\nconst XLAYERConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.XLayer,\n chainId: ChainId.XLayer,\n chainIdHex: \"0xc4\",\n explorerUrl: \"https://okbscan.com\",\n name: \"X Layer\",\n nativeCurrency: \"OKB\",\n networkDerivationPath,\n rpcUrls: [\"https://rpc.xlayer.tech\"],\n type,\n});\n\nconst SONICConfig = createChain({\n baseDecimal,\n blockTime: 2,\n chain: Chain.Sonic,\n chainId: ChainId.Sonic,\n chainIdHex: \"0x92\",\n explorerUrl: \"https://sonicscan.io\",\n name: \"Sonic\",\n nativeCurrency: \"S\",\n networkDerivationPath,\n rpcUrls: [\"https://rpc.sonic.xyz\"],\n type,\n});\n\nexport const EVMChainConfigs = [\n ARBConfig,\n AURORAConfig,\n AVAXConfig,\n BASEConfig,\n BERAConfig,\n BOTANIXConfig,\n BSCConfig,\n COREConfig,\n CORNConfig,\n CROConfig,\n ETHConfig,\n GNOConfig,\n HYPEREVMConfig,\n OPConfig,\n POLConfig,\n SONICConfig,\n UNIConfig,\n XLAYERConfig,\n] as const;\nexport const EVMChains = [\n Chain.Arbitrum,\n Chain.Aurora,\n Chain.Avalanche,\n Chain.Base,\n Chain.Berachain,\n Chain.BinanceSmartChain,\n Chain.Botanix,\n Chain.Core,\n Chain.Corn,\n Chain.Corn,\n Chain.Cronos,\n Chain.Ethereum,\n Chain.Gnosis,\n Chain.Hyperevm,\n Chain.Optimism,\n Chain.Polygon,\n Chain.Sonic,\n Chain.Unichain,\n Chain.XLayer,\n] as const;\nexport type EVMChain = (typeof EVMChains)[number];\n",
|
|
9
9
|
"import { createChain } from \"./_createChain\";\nimport { Chain, ChainId } from \"./_enums\";\n\nconst type = \"others\";\n\nconst NEAR = createChain({\n baseDecimal: 24,\n blockTime: 1,\n chain: Chain.Near,\n chainId: ChainId.Near,\n explorerUrl: \"https://nearblocks.io\",\n name: \"Near\",\n nativeCurrency: \"NEAR\",\n networkDerivationPath: [44, 397, 0, 0, 0],\n rpcUrls: [\n \"https://rpc.mainnet.near.org\",\n \"https://1rpc.io/near\",\n \"https://near.lava.build\",\n \"https://near-mainnet.infura.io/v3/3cbfcafa5e1e48b7bb0ea41f2fbc4abf\",\n ],\n type,\n});\n\nconst XRD = createChain({\n baseDecimal: 18,\n blockTime: 5,\n chain: Chain.Radix,\n chainId: ChainId.Radix,\n explorerUrl: \"https://dashboard.radixdlt.com\",\n name: \"Radix\",\n nativeCurrency: \"XRD\",\n networkDerivationPath: [0, 0, 0, 0, 0],\n rpcUrls: [\n \"https://radix-mainnet.rpc.grove.city/v1/326002fc/core\",\n \"https://mainnet.radixdlt.com\",\n \"https://radix-mainnet.rpc.grove.city/v1\",\n ],\n type,\n});\n\nconst XRP = createChain({\n baseDecimal: 6,\n blockTime: 5,\n chain: Chain.Ripple,\n chainId: ChainId.Ripple,\n explorerUrl: \"https://livenet.xrpl.org/\",\n name: \"Ripple\",\n nativeCurrency: \"XRP\",\n networkDerivationPath: [44, 144, 0, 0, 0],\n rpcUrls: [\"wss://xrpl.ws/\", \"wss://s1.ripple.com/\", \"wss://s2.ripple.com/\"],\n type,\n});\n\nconst SOL = createChain({\n baseDecimal: 9,\n blockTime: 0.4,\n chain: Chain.Solana,\n chainId: ChainId.Solana,\n explorerUrl: \"https://solscan.io\",\n name: \"Solana\",\n nativeCurrency: \"SOL\",\n networkDerivationPath: [44, 501, 0, 0, 0],\n rpcUrls: [\n \"https://solana-rpc.publicnode.com\",\n \"https://api.mainnet-beta.solana.com\",\n \"https://solana-mainnet.rpc.extrnode.com\",\n ],\n type,\n});\n\nconst TON = createChain({\n baseDecimal: 9,\n blockTime: 5,\n chain: Chain.Ton,\n chainId: ChainId.Ton,\n explorerUrl: \"https://tonscan.org\",\n name: \"Ton\",\n nativeCurrency: \"TON\",\n networkDerivationPath: [44, 607, 0, 0, 0],\n rpcUrls: [\n \"https://ton.api.onfinality.io/public\",\n \"https://ton.drpc.org/rest/\",\n \"https://toncenter.com/api/v2/jsonRPC\",\n ],\n type,\n});\n\nconst TRON = createChain({\n baseDecimal: 6,\n blockTime: 3,\n chain: Chain.Tron,\n chainId: ChainId.Tron,\n chainIdHex: \"0x2b6653dc\",\n explorerUrl: \"https://tronscan.org\",\n name: \"Tron\",\n nativeCurrency: \"TRX\",\n networkDerivationPath: [44, 195, 0, 0, 0],\n rpcUrls: [\"https://tron-rpc.publicnode.com\", \"https://api.tronstack.io\", \"https://api.tron.network\"],\n type,\n});\n\nconst SUI = createChain({\n baseDecimal: 9,\n blockTime: 5,\n chain: Chain.Sui,\n chainId: ChainId.Sui,\n explorerUrl: \"https://suiscan.xyz\",\n name: \"Sui\",\n nativeCurrency: \"SUI\",\n networkDerivationPath: [44, 784, 0, 0, 0],\n rpcUrls: [\"https://fullnode.mainnet.sui.io:443\"],\n type,\n});\n\nconst ADA = createChain({\n baseDecimal: 6,\n blockTime: 600,\n chain: Chain.Cardano,\n chainId: ChainId.Cardano,\n explorerUrl: \"https://cexplorer.io\",\n name: \"Cardano\",\n nativeCurrency: \"ADA\",\n networkDerivationPath: [1852, 1815, 0, 0, 0],\n rpcUrls: [\"https://api.koios.rest/api/v1\", \"https://cardano-mainnet.blockfrost.io/api/v0\"],\n type,\n});\n\nexport const OtherChainConfigs = [NEAR, XRD, XRP, SOL, TON, TRON, SUI, ADA] as const;\nexport const OtherChains = OtherChainConfigs.map((config) => config.chain);\nexport type OtherChain = (typeof OtherChains)[number];\n",
|
|
10
|
-
"import { createChain } from \"./_createChain\";\nimport { Chain, ChainId } from \"./_enums\";\n\nconst type = \"substrate\";\n\nconst DOT = createChain({\n baseDecimal: 10,\n blockTime: 6,\n chain: Chain.Polkadot,\n chainId: ChainId.Polkadot,\n explorerUrl: \"https://polkadot.subscan.io\",\n name: \"Polkadot\",\n nativeCurrency: \"DOT\",\n networkDerivationPath: [0, 0, 0, 0, 0],\n rpcUrls: [\"wss://rpc.polkadot.io\", \"wss://polkadot-rpc.dwellir.com\", \"wss://polkadot.api.onfinality.io/public-ws\"],\n type,\n});\n\nconst FLIP = createChain({\n baseDecimal: 18,\n blockTime: 5,\n chain: Chain.Chainflip,\n chainId: ChainId.Chainflip,\n explorerUrl: \"https://explorer.polkascan.io/polkadot\",\n name: \"Chainflip\",\n nativeCurrency: \"FLIP\",\n networkDerivationPath: [0, 0, 0, 0, 0],\n rpcUrls: [\n \"wss://mainnet-archive.chainflip.io\",\n \"wss://archive-1.mainnet.chainflip.io\",\n \"wss://archive-2.mainnet.chainflip.io\",\n ],\n type,\n});\n\n// const TAO = createChain({\n// baseDecimal: 18,\n// blockTime: 5,\n// chain: Chain.TAO,\n// chainId: ChainId.TAO,\n// explorerUrl: \"https://taoscan.io\",\n// name: \"TAO\",\n// nativeCurrency: \"TAO\",\n// networkDerivationPath: [0, 0, 0, 0, 0],\n// rpcUrls: [\"wss://rpc.tao.network\"],\n// type,\n// });\n\nexport const SubstrateChainConfigs = [DOT, FLIP] as const;\nexport const SubstrateChains =
|
|
10
|
+
"import { createChain } from \"./_createChain\";\nimport { Chain, ChainId } from \"./_enums\";\n\nconst type = \"substrate\";\n\nconst DOT = createChain({\n baseDecimal: 10,\n blockTime: 6,\n chain: Chain.Polkadot,\n chainId: ChainId.Polkadot,\n explorerUrl: \"https://polkadot.subscan.io\",\n name: \"Polkadot\",\n nativeCurrency: \"DOT\",\n networkDerivationPath: [0, 0, 0, 0, 0],\n rpcUrls: [\"wss://rpc.polkadot.io\", \"wss://polkadot-rpc.dwellir.com\", \"wss://polkadot.api.onfinality.io/public-ws\"],\n type,\n});\n\nconst FLIP = createChain({\n baseDecimal: 18,\n blockTime: 5,\n chain: Chain.Chainflip,\n chainId: ChainId.Chainflip,\n explorerUrl: \"https://explorer.polkascan.io/polkadot\",\n name: \"Chainflip\",\n nativeCurrency: \"FLIP\",\n networkDerivationPath: [0, 0, 0, 0, 0],\n rpcUrls: [\n \"wss://mainnet-archive.chainflip.io\",\n \"wss://archive-1.mainnet.chainflip.io\",\n \"wss://archive-2.mainnet.chainflip.io\",\n ],\n type,\n});\n\n// const TAO = createChain({\n// baseDecimal: 18,\n// blockTime: 5,\n// chain: Chain.TAO,\n// chainId: ChainId.TAO,\n// explorerUrl: \"https://taoscan.io\",\n// name: \"TAO\",\n// nativeCurrency: \"TAO\",\n// networkDerivationPath: [0, 0, 0, 0, 0],\n// rpcUrls: [\"wss://rpc.tao.network\"],\n// type,\n// });\n\nexport const SubstrateChainConfigs = [DOT, FLIP] as const;\nexport const SubstrateChains = [Chain.Polkadot, Chain.Chainflip] as const;\nexport type SubstrateChain = (typeof SubstrateChains)[number];\n",
|
|
11
11
|
"import { createChain } from \"./_createChain\";\nimport { Chain, ChainId } from \"./_enums\";\n\nconst type = \"utxo\";\n\nconst BTC = createChain({\n baseDecimal: 8,\n blockTime: 600,\n chain: Chain.Bitcoin,\n chainId: ChainId.Bitcoin,\n explorerUrl: \"https://blockchair.com/bitcoin\",\n name: \"Bitcoin\",\n nativeCurrency: \"BTC\",\n networkDerivationPath: [84, 0, 0, 0, 0] as [number, number, number, number, number?],\n rpcUrls: [\"https://bitcoin-rpc.publicnode.com\", \"https://bitcoin.publicnode.com\"],\n type,\n});\n\nconst BCH = createChain({\n baseDecimal: 8,\n blockTime: 600,\n chain: Chain.BitcoinCash,\n chainId: ChainId.BitcoinCash,\n explorerUrl: \"https://www.blockchair.com/bitcoin-cash\",\n name: \"BitcoinCash\",\n nativeCurrency: \"BCH\",\n networkDerivationPath: [44, 145, 0, 0, 0],\n rpcUrls: [\"https://bch-dataseed.binance.org\", \"https://bch.getblock.io/mainnet\"],\n type,\n});\n\nconst LTC = createChain({\n baseDecimal: 8,\n blockTime: 150,\n chain: Chain.Litecoin,\n chainId: ChainId.Litecoin,\n explorerUrl: \"https://blockchair.com/litecoin\",\n name: \"Litecoin\",\n nativeCurrency: \"LTC\",\n networkDerivationPath: [84, 2, 0, 0, 0],\n rpcUrls: [\"https://ltc.getblock.io/mainnet\", \"https://litecoin.publicnode.com\"],\n type,\n});\n\nconst DOGE = createChain({\n baseDecimal: 8,\n blockTime: 60,\n chain: Chain.Dogecoin,\n chainId: ChainId.Dogecoin,\n explorerUrl: \"https://blockchair.com/dogecoin\",\n name: \"Dogecoin\",\n nativeCurrency: \"DOGE\",\n networkDerivationPath: [44, 3, 0, 0, 0],\n rpcUrls: [\"https://doge.getblock.io/mainnet\", \"https://dogecoin.publicnode.com\"],\n type,\n});\n\nconst DASH = createChain({\n baseDecimal: 8,\n blockTime: 150,\n chain: Chain.Dash,\n chainId: ChainId.Dash,\n explorerUrl: \"https://blockchair.com/dash\",\n name: \"Dash\",\n nativeCurrency: \"DASH\",\n networkDerivationPath: [44, 5, 0, 0, 0],\n rpcUrls: [\"https://dash-rpc.publicnode.com\", \"https://dash.getblock.io/mainnet\"],\n type,\n});\n\nconst ZEC = createChain({\n baseDecimal: 8,\n blockTime: 75,\n chain: Chain.Zcash,\n chainId: ChainId.Zcash,\n explorerUrl: \"https://blockchair.com/zcash\",\n name: \"Zcash\",\n nativeCurrency: \"ZEC\",\n networkDerivationPath: [44, 133, 0, 0, 0],\n rpcUrls: [],\n type,\n});\n\nexport const UTXOChainConfigs = [BTC, BCH, LTC, DOGE, DASH, ZEC] as const;\nexport const UTXOChains = [\n Chain.Bitcoin,\n Chain.BitcoinCash,\n Chain.Dash,\n Chain.Dogecoin,\n Chain.Litecoin,\n Chain.Zcash,\n] as const;\nexport type UTXOChain = (typeof UTXOChains)[number];\n",
|
|
12
12
|
"import { Chain, type ChainId, StagenetChain } from \"./_enums\";\nimport { CosmosChainConfigs, StagenetMAYAConfig, StagenetTHORConfig } from \"./cosmos\";\nimport { EVMChainConfigs } from \"./evm\";\nimport { OtherChainConfigs } from \"./others\";\nimport { SubstrateChainConfigs } from \"./substrate\";\nimport { UTXOChainConfigs } from \"./utxo\";\n\nexport * from \"./_enums\";\nexport * from \"./cosmos\";\nexport * from \"./evm\";\nexport * from \"./others\";\nexport * from \"./substrate\";\nexport * from \"./utxo\";\n\nexport const AllChainConfigs = [\n ...UTXOChainConfigs,\n ...EVMChainConfigs,\n ...CosmosChainConfigs,\n ...SubstrateChainConfigs,\n ...OtherChainConfigs,\n].sort((a, b) => a.chain.localeCompare(b.chain));\nexport type AllChainConfigs = typeof AllChainConfigs;\nexport type ChainConfig = AllChainConfigs[number];\n\nexport const AllChains = Object.values(Chain);\nexport const StagenetChains = [StagenetChain.THORChain, StagenetChain.Maya] as const;\n\ntype ChainConfigMap = {\n [K in ChainConfig[\"chain\"]]: Extract<ChainConfig, { chain: K }>;\n} & {\n [K in ChainConfig[\"chainId\"]]: Extract<ChainConfig, { chainId: K }>;\n};\n\nconst chainConfigs = AllChainConfigs.reduce(\n (acc, config) => {\n acc[config.chain] = config;\n acc[config.chainId] = config;\n return acc;\n },\n {} as Record<ChainConfig[\"chain\"] | ChainConfig[\"chainId\"], ChainConfig>,\n);\n\nexport function getChainConfig<T extends keyof ChainConfigMap>(chainOrChainId: T): ChainConfigMap[T] {\n const chainConfig = chainConfigs[chainOrChainId];\n\n return (chainConfig || {}) as ChainConfigMap[T];\n}\n\nconst { chainIdToChain, chainToBaseDecimal, chainToBlockTime, explorerUrls, rpcUrls } = AllChains.reduce(\n (acc, chain) => {\n const { chainId, baseDecimal, blockTime, explorerUrl, rpcUrls } = getChainConfig(chain);\n\n acc.chainIdToChain[chainId] = chain;\n acc.chainToBaseDecimal[chain] = baseDecimal;\n acc.chainToBlockTime[chain] = blockTime;\n acc.explorerUrls[chain] = explorerUrl;\n acc.rpcUrls[chain] = rpcUrls[0] || \"\";\n return acc;\n },\n {\n chainIdToChain: {},\n chainToBaseDecimal: {},\n chainToBlockTime: {},\n explorerUrls: {},\n rpcUrls: {\n [StagenetChain.Maya]: StagenetMAYAConfig.rpcUrls[0],\n [StagenetChain.THORChain]: StagenetTHORConfig.rpcUrls[0],\n },\n } as {\n chainIdToChain: Record<ChainId, Chain>;\n chainToBaseDecimal: Record<Chain, number>;\n chainToBlockTime: Record<Chain, number>;\n explorerUrls: Record<Chain, string>;\n rpcUrls: Record<Chain | StagenetChain, string>;\n },\n);\n\nexport const NODE_URLS = {\n [Chain.THORChain]: \"https://thornode.ninerealms.com\",\n [Chain.Maya]: \"https://mayanode.mayachain.info\",\n [StagenetChain.THORChain]: \"https://stagenet-thornode.ninerealms.com\",\n [StagenetChain.Maya]: \"https://stagenet.mayanode.mayachain.info\",\n};\n\n/**\n * @example\n * ```diff\n * -const rpcUrl = RPC_URLS[Chain.Ethereum];\n * +const { rpcUrls: [rpcUrl] } = getChainConfig(Chain.Ethereum);\n * ```\n */\nexport const RPC_URLS: Record<Chain | StagenetChain, string> = rpcUrls;\n\n/**\n * @example\n * ```diff\n * -const explorerUrl = EXPLORER_URLS[Chain.Ethereum];\n * +const { explorerUrl } = getChainConfig(Chain.Ethereum);\n */\nexport const EXPLORER_URLS: Record<Chain, string> = explorerUrls;\n\n/**\n *\n * Note: ChainIdToChain will be discontinued in future versions.\n * Please use getChainConfig instead.\n * @example\n * ```diff\n * -const chainId = ChainToChainId[Chain.Ethereum];\n * +const { chainId } = getChainConfig(Chain.Ethereum);\n * ```\n */\nexport const ChainToChainId = Object.fromEntries(\n AllChainConfigs.flatMap(({ chain, chainId }) => [[chain, chainId] as const]),\n) as {\n readonly [K in Chain | StagenetChain]: Extract<ChainConfig, { chain: K }>[\"chainId\"];\n};\n\n/**\n * Note: ChainIdToChain will be discontinued in future versions.\n * Please use getChainConfig instead.\n * @example\n * ```diff\n * -const chain = ChainIdToChain[ChainId.Ethereum];\n * +const { chain } = getChainConfig(ChainId.Ethereum);\n * ```\n */\nexport const ChainIdToChain = chainIdToChain;\n\n/**\n * Note: BaseDecimal will be discontinued in future versions.\n * Please use getChainConfig instead.\n * @example\n * ```diff\n * -const baseDecimal = BaseDecimal[Chain.Ethereum];\n * +const { baseDecimal } = getChainConfig(Chain.Ethereum);\n * ```\n */\nexport const BaseDecimal = chainToBaseDecimal;\n\n/**\n * Note: BlockTimes will be discontinued in future versions.\n * Please use getChainConfig instead.\n * @example\n * ```diff\n * -const blockTime = BlockTimes[Chain.Ethereum];\n * +const { blockTime } = getChainConfig(Chain.Ethereum);\n * ```\n */\nexport const BlockTimes = chainToBlockTime;\n"
|
|
13
13
|
],
|
|
14
|
-
"mappings": "AAAO,IAAK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
|
|
15
|
+
"debugId": "0E8B7DC14A7EF85364756E2164756E21",
|
|
16
16
|
"names": []
|
|
17
17
|
}
|
|
@@ -6,6 +6,10 @@ export declare enum Chain {
|
|
|
6
6
|
Berachain = "BERA",
|
|
7
7
|
BinanceSmartChain = "BSC",
|
|
8
8
|
Cardano = "ADA",
|
|
9
|
+
Botanix = "BOTANIX",
|
|
10
|
+
Core = "CORE",
|
|
11
|
+
Corn = "CORN",
|
|
12
|
+
Cronos = "CRO",
|
|
9
13
|
Bitcoin = "BTC",
|
|
10
14
|
BitcoinCash = "BCH",
|
|
11
15
|
Cosmos = "GAIA",
|
|
@@ -14,7 +18,11 @@ export declare enum Chain {
|
|
|
14
18
|
Ethereum = "ETH",
|
|
15
19
|
Gnosis = "GNO",
|
|
16
20
|
Harbor = "HARBOR",
|
|
21
|
+
Hyperevm = "HYPEREVM",
|
|
17
22
|
Kujira = "KUJI",
|
|
23
|
+
Sonic = "SONIC",
|
|
24
|
+
Unichain = "UNI",
|
|
25
|
+
XLayer = "XLAYER",
|
|
18
26
|
Litecoin = "LTC",
|
|
19
27
|
Maya = "MAYA",
|
|
20
28
|
Near = "NEAR",
|
|
@@ -53,15 +61,20 @@ export declare enum ChainId {
|
|
|
53
61
|
BinanceSmartChain = "56",
|
|
54
62
|
Bitcoin = "bitcoin",
|
|
55
63
|
BitcoinCash = "bitcoincash",
|
|
64
|
+
Botanix = "3637",
|
|
56
65
|
Cardano = "cardano",
|
|
57
66
|
Chainflip = "chainflip",
|
|
67
|
+
Core = "1116",
|
|
68
|
+
Corn = "21000000",
|
|
58
69
|
Cosmos = "cosmoshub-4",
|
|
70
|
+
Cronos = "25",
|
|
59
71
|
Dash = "dash",
|
|
60
72
|
Dogecoin = "dogecoin",
|
|
61
73
|
Ethereum = "1",
|
|
62
74
|
Gnosis = "100",
|
|
63
75
|
Harbor = "harbor-1",
|
|
64
76
|
HarborStagenet = "harbor-stagenet-1",
|
|
77
|
+
Hyperevm = "2868",
|
|
65
78
|
Kujira = "kaiyo-1",
|
|
66
79
|
Litecoin = "litecoin",
|
|
67
80
|
Maya = "mayachain-mainnet-v1",
|
|
@@ -73,12 +86,15 @@ export declare enum ChainId {
|
|
|
73
86
|
Polygon = "137",
|
|
74
87
|
Radix = "radix-mainnet",
|
|
75
88
|
Ripple = "ripple",
|
|
76
|
-
THORChain = "thorchain-1",
|
|
77
|
-
THORChainStagenet = "thorchain-stagenet-v2",
|
|
78
89
|
Solana = "solana",
|
|
90
|
+
Sonic = "146",
|
|
79
91
|
Sui = "sui",
|
|
92
|
+
THORChain = "thorchain-1",
|
|
93
|
+
THORChainStagenet = "thorchain-stagenet-v2",
|
|
80
94
|
Ton = "ton",
|
|
81
95
|
Tron = "728126428",
|
|
96
|
+
Unichain = "130",
|
|
97
|
+
XLayer = "196",
|
|
82
98
|
Zcash = "zcash"
|
|
83
99
|
}
|
|
84
100
|
//# sourceMappingURL=_enums.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_enums.d.ts","sourceRoot":"","sources":["../../../src/chains/_enums.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,QAAQ,QAAQ;IAChB,MAAM,WAAW;IACjB,SAAS,SAAS;IAClB,IAAI,SAAS;IACb,SAAS,SAAS;IAClB,iBAAiB,QAAQ;IACzB,OAAO,QAAQ;IACf,OAAO,QAAQ;IACf,WAAW,QAAQ;IACnB,MAAM,SAAS;IACf,IAAI,SAAS;IACb,QAAQ,SAAS;IACjB,QAAQ,QAAQ;IAChB,MAAM,QAAQ;IACd,MAAM,WAAW;IACjB,MAAM,SAAS;IACf,QAAQ,QAAQ;IAChB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,OAAO;IACf,QAAQ,QAAQ;IAChB,SAAS,SAAS;IAClB,OAAO,QAAQ;IACf,KAAK,QAAQ;IACb,MAAM,QAAQ;IACd,SAAS,SAAS;IAClB,MAAM,QAAQ;IACd,GAAG,QAAQ;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AClB,QAAQ,QAAQ;IAChB,MAAM,QAAQ;IACd,KAAK,UAAU;CAChB"}
|
|
@@ -256,7 +256,7 @@ export declare const StagenetCosmosChainConfigs: readonly [{
|
|
|
256
256
|
}];
|
|
257
257
|
export declare const StagenetCosmosChains: readonly [StagenetChain.Maya, StagenetChain.THORChain, StagenetChain.Harbor];
|
|
258
258
|
export type StagenetCosmosChain = (typeof StagenetCosmosChains)[number];
|
|
259
|
-
export declare const CosmosChainPrefixes: Record<CosmosChain, string>;
|
|
259
|
+
export declare const CosmosChainPrefixes: Record<CosmosChain | StagenetCosmosChain, string>;
|
|
260
260
|
export declare const TCLikeChains: readonly [Chain.THORChain, Chain.Maya];
|
|
261
261
|
export type TCLikeChain = (typeof TCLikeChains)[number];
|
|
262
262
|
//# sourceMappingURL=cosmos.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmos.d.ts","sourceRoot":"","sources":["../../../src/chains/cosmos.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAIzD,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAWrB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;CAYrB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;CAY7B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;CAgBrB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAWvB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAW/B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;CAY7B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAWrB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAWtB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AACvH,eAAO,MAAM,YAAY,+FAOf,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAExD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA0E,CAAC;AAClH,eAAO,MAAM,oBAAoB,8EAA+E,CAAC;AACjH,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,WAAW,GAAG,mBAAmB,EAAE,MAAM,CAUjF,CAAC;AAEF,eAAO,MAAM,YAAY,wCAAgD,CAAC;AAC1E,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { Chain, ChainId } from "./_enums";
|
|
2
2
|
export declare const EVMChainConfigs: readonly [{
|
|
3
3
|
readonly baseDecimal: 18;
|
|
4
|
-
readonly blockTime:
|
|
5
|
-
readonly chain: Chain.
|
|
6
|
-
readonly chainId: ChainId.
|
|
7
|
-
readonly chainIdHex: "
|
|
8
|
-
readonly explorerUrl: "https://
|
|
9
|
-
readonly name: "
|
|
4
|
+
readonly blockTime: 0.3;
|
|
5
|
+
readonly chain: Chain.Arbitrum;
|
|
6
|
+
readonly chainId: ChainId.Arbitrum;
|
|
7
|
+
readonly chainIdHex: "0xa4b1";
|
|
8
|
+
readonly explorerUrl: "https://arbiscan.io";
|
|
9
|
+
readonly name: "Arbitrum";
|
|
10
10
|
readonly nativeCurrency: "ETH";
|
|
11
11
|
readonly networkDerivationPath: [number, number, number, number, number];
|
|
12
|
-
readonly rpcUrls: ["https://
|
|
12
|
+
readonly rpcUrls: ["https://arb1.arbitrum.io/rpc", "https://arb-mainnet.g.alchemy.com/v2/demo", "https://arbitrum.blockpi.network/v1/rpc/public"];
|
|
13
13
|
readonly type: "evm";
|
|
14
14
|
} & {
|
|
15
|
-
chainIdHex: "
|
|
15
|
+
chainIdHex: "0xa4b1";
|
|
16
16
|
}, {
|
|
17
17
|
readonly baseDecimal: 18;
|
|
18
18
|
readonly blockTime: 1;
|
|
19
|
-
readonly chain: Chain.
|
|
20
|
-
readonly chainId: ChainId.
|
|
21
|
-
readonly chainIdHex: "
|
|
22
|
-
readonly explorerUrl: "https://
|
|
23
|
-
readonly name: "
|
|
24
|
-
readonly nativeCurrency: "
|
|
19
|
+
readonly chain: Chain.Aurora;
|
|
20
|
+
readonly chainId: ChainId.Aurora;
|
|
21
|
+
readonly chainIdHex: "0x4e454152";
|
|
22
|
+
readonly explorerUrl: "https://explorer.mainnet.aurora.dev";
|
|
23
|
+
readonly name: "Aurora";
|
|
24
|
+
readonly nativeCurrency: "ETH";
|
|
25
25
|
readonly networkDerivationPath: [number, number, number, number, number];
|
|
26
|
-
readonly rpcUrls: ["https://
|
|
26
|
+
readonly rpcUrls: ["https://aurora-rpc.publicnode.com", "https://1rpc.io/aurora", "https://mainnet.aurora.dev"];
|
|
27
27
|
readonly type: "evm";
|
|
28
28
|
} & {
|
|
29
|
-
chainIdHex: "
|
|
29
|
+
chainIdHex: "0x4e454152";
|
|
30
30
|
}, {
|
|
31
31
|
readonly baseDecimal: 18;
|
|
32
32
|
readonly blockTime: 2;
|
|
@@ -43,60 +43,116 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
43
43
|
chainIdHex: "0xa86a";
|
|
44
44
|
}, {
|
|
45
45
|
readonly baseDecimal: 18;
|
|
46
|
-
readonly blockTime: 2
|
|
47
|
-
readonly chain: Chain.
|
|
48
|
-
readonly chainId: ChainId.
|
|
49
|
-
readonly chainIdHex: "
|
|
50
|
-
readonly explorerUrl: "https://
|
|
51
|
-
readonly name: "
|
|
52
|
-
readonly nativeCurrency: "
|
|
46
|
+
readonly blockTime: 2;
|
|
47
|
+
readonly chain: Chain.Base;
|
|
48
|
+
readonly chainId: ChainId.Base;
|
|
49
|
+
readonly chainIdHex: "0x2105";
|
|
50
|
+
readonly explorerUrl: "https://basescan.org";
|
|
51
|
+
readonly name: "Base";
|
|
52
|
+
readonly nativeCurrency: "ETH";
|
|
53
53
|
readonly networkDerivationPath: [number, number, number, number, number];
|
|
54
|
-
readonly rpcUrls: ["https://
|
|
54
|
+
readonly rpcUrls: ["https://base-rpc.publicnode.com", "https://base.blockpi.network/v1/rpc/public", "https://1rpc.io/base"];
|
|
55
55
|
readonly type: "evm";
|
|
56
56
|
} & {
|
|
57
|
-
chainIdHex: "
|
|
57
|
+
chainIdHex: "0x2105";
|
|
58
58
|
}, {
|
|
59
59
|
readonly baseDecimal: 18;
|
|
60
|
-
readonly blockTime:
|
|
61
|
-
readonly chain: Chain.
|
|
62
|
-
readonly chainId: ChainId.
|
|
63
|
-
readonly chainIdHex: "
|
|
64
|
-
readonly explorerUrl: "https://
|
|
65
|
-
readonly name: "
|
|
66
|
-
readonly nativeCurrency: "
|
|
60
|
+
readonly blockTime: 2;
|
|
61
|
+
readonly chain: Chain.Berachain;
|
|
62
|
+
readonly chainId: ChainId.Berachain;
|
|
63
|
+
readonly chainIdHex: "0x138de";
|
|
64
|
+
readonly explorerUrl: "https://berascan.com";
|
|
65
|
+
readonly name: "Berachain";
|
|
66
|
+
readonly nativeCurrency: "BERA";
|
|
67
67
|
readonly networkDerivationPath: [number, number, number, number, number];
|
|
68
|
-
readonly rpcUrls: ["https://
|
|
68
|
+
readonly rpcUrls: ["https://berachain-rpc.publicnode.com", "https://rpc.berachain.com", "https://berachain.drpc.org"];
|
|
69
69
|
readonly type: "evm";
|
|
70
70
|
} & {
|
|
71
|
-
chainIdHex: "
|
|
71
|
+
chainIdHex: "0x138de";
|
|
72
72
|
}, {
|
|
73
73
|
readonly baseDecimal: 18;
|
|
74
74
|
readonly blockTime: 2;
|
|
75
|
-
readonly chain: Chain.
|
|
76
|
-
readonly chainId: ChainId.
|
|
77
|
-
readonly chainIdHex: "
|
|
78
|
-
readonly explorerUrl: "https://
|
|
79
|
-
readonly name: "
|
|
80
|
-
readonly nativeCurrency: "
|
|
75
|
+
readonly chain: Chain.Botanix;
|
|
76
|
+
readonly chainId: ChainId.Botanix;
|
|
77
|
+
readonly chainIdHex: "0xe35";
|
|
78
|
+
readonly explorerUrl: "https://botanixscan.io";
|
|
79
|
+
readonly name: "Botanix";
|
|
80
|
+
readonly nativeCurrency: "BTC";
|
|
81
81
|
readonly networkDerivationPath: [number, number, number, number, number];
|
|
82
|
-
readonly rpcUrls: ["https://
|
|
82
|
+
readonly rpcUrls: ["https://core.drpc.org", "https://1rpc.io/core"];
|
|
83
83
|
readonly type: "evm";
|
|
84
84
|
} & {
|
|
85
|
-
chainIdHex: "
|
|
85
|
+
chainIdHex: "0xe35";
|
|
86
|
+
}, {
|
|
87
|
+
readonly baseDecimal: 18;
|
|
88
|
+
readonly blockTime: 1;
|
|
89
|
+
readonly chain: Chain.BinanceSmartChain;
|
|
90
|
+
readonly chainId: ChainId.BinanceSmartChain;
|
|
91
|
+
readonly chainIdHex: "0x38";
|
|
92
|
+
readonly explorerUrl: "https://bscscan.com";
|
|
93
|
+
readonly name: "BinanceSmartChain";
|
|
94
|
+
readonly nativeCurrency: "BNB";
|
|
95
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
96
|
+
readonly rpcUrls: ["https://bsc-dataseed.binance.org", "https://bsc-rpc.gateway.pokt.network", "https://bsc-dataseed2.binance.org"];
|
|
97
|
+
readonly type: "evm";
|
|
98
|
+
} & {
|
|
99
|
+
chainIdHex: "0x38";
|
|
86
100
|
}, {
|
|
87
101
|
readonly baseDecimal: 18;
|
|
88
102
|
readonly blockTime: 2;
|
|
89
|
-
readonly chain: Chain.
|
|
90
|
-
readonly chainId: ChainId.
|
|
91
|
-
readonly chainIdHex: "
|
|
92
|
-
readonly explorerUrl: "https://
|
|
93
|
-
readonly name: "
|
|
103
|
+
readonly chain: Chain.Core;
|
|
104
|
+
readonly chainId: ChainId.Core;
|
|
105
|
+
readonly chainIdHex: "0x45c";
|
|
106
|
+
readonly explorerUrl: "https://corescan.io";
|
|
107
|
+
readonly name: "Core";
|
|
108
|
+
readonly nativeCurrency: "CORE";
|
|
109
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
110
|
+
readonly rpcUrls: ["https://core-rpc.publicnode.com", "https://1rpc.io/core"];
|
|
111
|
+
readonly type: "evm";
|
|
112
|
+
} & {
|
|
113
|
+
chainIdHex: "0x45c";
|
|
114
|
+
}, {
|
|
115
|
+
readonly baseDecimal: 18;
|
|
116
|
+
readonly blockTime: 2;
|
|
117
|
+
readonly chain: Chain.Corn;
|
|
118
|
+
readonly chainId: ChainId.Corn;
|
|
119
|
+
readonly chainIdHex: "0x1406f40";
|
|
120
|
+
readonly explorerUrl: "https://cornscan.io";
|
|
121
|
+
readonly name: "Corn";
|
|
122
|
+
readonly nativeCurrency: "BTCN";
|
|
123
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
124
|
+
readonly rpcUrls: ["https://mainnet.corn-rpc.com", "https://rpc.ankr.com/corn_maizenet"];
|
|
125
|
+
readonly type: "evm";
|
|
126
|
+
} & {
|
|
127
|
+
chainIdHex: "0x1406f40";
|
|
128
|
+
}, {
|
|
129
|
+
readonly baseDecimal: 18;
|
|
130
|
+
readonly blockTime: 2;
|
|
131
|
+
readonly chain: Chain.Cronos;
|
|
132
|
+
readonly chainId: ChainId.Cronos;
|
|
133
|
+
readonly chainIdHex: "0x19";
|
|
134
|
+
readonly explorerUrl: "https://croscan.io";
|
|
135
|
+
readonly name: "Cronos";
|
|
136
|
+
readonly nativeCurrency: "CRO";
|
|
137
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
138
|
+
readonly rpcUrls: ["https://rpc.vvs.finance"];
|
|
139
|
+
readonly type: "evm";
|
|
140
|
+
} & {
|
|
141
|
+
chainIdHex: "0x19";
|
|
142
|
+
}, {
|
|
143
|
+
readonly baseDecimal: 18;
|
|
144
|
+
readonly blockTime: 12.5;
|
|
145
|
+
readonly chain: Chain.Ethereum;
|
|
146
|
+
readonly chainId: ChainId.Ethereum;
|
|
147
|
+
readonly chainIdHex: "0x1";
|
|
148
|
+
readonly explorerUrl: "https://etherscan.io";
|
|
149
|
+
readonly name: "Ethereum";
|
|
94
150
|
readonly nativeCurrency: "ETH";
|
|
95
151
|
readonly networkDerivationPath: [number, number, number, number, number];
|
|
96
|
-
readonly rpcUrls: ["https://
|
|
152
|
+
readonly rpcUrls: ["https://ethereum-rpc.publicnode.com", "https://eth.llamarpc.com", "https://cloudflare-eth.com"];
|
|
97
153
|
readonly type: "evm";
|
|
98
154
|
} & {
|
|
99
|
-
chainIdHex: "
|
|
155
|
+
chainIdHex: "0x1";
|
|
100
156
|
}, {
|
|
101
157
|
readonly baseDecimal: 18;
|
|
102
158
|
readonly blockTime: 5.2;
|
|
@@ -113,33 +169,89 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
113
169
|
chainIdHex: "0x64";
|
|
114
170
|
}, {
|
|
115
171
|
readonly baseDecimal: 18;
|
|
116
|
-
readonly blockTime:
|
|
117
|
-
readonly chain: Chain.
|
|
118
|
-
readonly chainId: ChainId.
|
|
119
|
-
readonly chainIdHex: "
|
|
120
|
-
readonly explorerUrl: "https://
|
|
121
|
-
readonly name: "
|
|
172
|
+
readonly blockTime: 2;
|
|
173
|
+
readonly chain: Chain.Hyperevm;
|
|
174
|
+
readonly chainId: ChainId.Hyperevm;
|
|
175
|
+
readonly chainIdHex: "0x3e7";
|
|
176
|
+
readonly explorerUrl: "https://app.hyperliquid.xyz/explorer";
|
|
177
|
+
readonly name: "Hyperliquid";
|
|
178
|
+
readonly nativeCurrency: "HYPE";
|
|
179
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
180
|
+
readonly rpcUrls: ["https://rpc.hyperliquid.xyz/evm", "https://rpc.hypurrscan.io"];
|
|
181
|
+
readonly type: "evm";
|
|
182
|
+
} & {
|
|
183
|
+
chainIdHex: "0x3e7";
|
|
184
|
+
}, {
|
|
185
|
+
readonly baseDecimal: 18;
|
|
186
|
+
readonly blockTime: 2;
|
|
187
|
+
readonly chain: Chain.Optimism;
|
|
188
|
+
readonly chainId: ChainId.Optimism;
|
|
189
|
+
readonly chainIdHex: "0xa";
|
|
190
|
+
readonly explorerUrl: "https://optimistic.etherscan.io";
|
|
191
|
+
readonly name: "Optimism";
|
|
122
192
|
readonly nativeCurrency: "ETH";
|
|
123
193
|
readonly networkDerivationPath: [number, number, number, number, number];
|
|
124
|
-
readonly rpcUrls: ["https://
|
|
194
|
+
readonly rpcUrls: ["https://mainnet.optimism.io", "https://optimism.llamarpc.com", "https://1rpc.io/op"];
|
|
125
195
|
readonly type: "evm";
|
|
126
196
|
} & {
|
|
127
|
-
chainIdHex: "
|
|
197
|
+
chainIdHex: "0xa";
|
|
198
|
+
}, {
|
|
199
|
+
readonly baseDecimal: 18;
|
|
200
|
+
readonly blockTime: 2.1;
|
|
201
|
+
readonly chain: Chain.Polygon;
|
|
202
|
+
readonly chainId: ChainId.Polygon;
|
|
203
|
+
readonly chainIdHex: "0x89";
|
|
204
|
+
readonly explorerUrl: "https://polygonscan.com";
|
|
205
|
+
readonly name: "Polygon";
|
|
206
|
+
readonly nativeCurrency: "POL";
|
|
207
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
208
|
+
readonly rpcUrls: ["https://polygon-rpc.com", "https://polygon.llamarpc.com", "https://polygon-bor-rpc.publicnode.com"];
|
|
209
|
+
readonly type: "evm";
|
|
210
|
+
} & {
|
|
211
|
+
chainIdHex: "0x89";
|
|
128
212
|
}, {
|
|
129
213
|
readonly baseDecimal: 18;
|
|
130
214
|
readonly blockTime: 2;
|
|
131
|
-
readonly chain: Chain.
|
|
132
|
-
readonly chainId: ChainId.
|
|
133
|
-
readonly chainIdHex: "
|
|
134
|
-
readonly explorerUrl: "https://
|
|
135
|
-
readonly name: "
|
|
136
|
-
readonly nativeCurrency: "
|
|
215
|
+
readonly chain: Chain.Sonic;
|
|
216
|
+
readonly chainId: ChainId.Sonic;
|
|
217
|
+
readonly chainIdHex: "0x92";
|
|
218
|
+
readonly explorerUrl: "https://sonicscan.io";
|
|
219
|
+
readonly name: "Sonic";
|
|
220
|
+
readonly nativeCurrency: "S";
|
|
137
221
|
readonly networkDerivationPath: [number, number, number, number, number];
|
|
138
|
-
readonly rpcUrls: ["https://
|
|
222
|
+
readonly rpcUrls: ["https://rpc.sonic.xyz"];
|
|
139
223
|
readonly type: "evm";
|
|
140
224
|
} & {
|
|
141
|
-
chainIdHex: "
|
|
225
|
+
chainIdHex: "0x92";
|
|
226
|
+
}, {
|
|
227
|
+
readonly baseDecimal: 18;
|
|
228
|
+
readonly blockTime: 2;
|
|
229
|
+
readonly chain: Chain.Unichain;
|
|
230
|
+
readonly chainId: ChainId.Unichain;
|
|
231
|
+
readonly chainIdHex: "0x82";
|
|
232
|
+
readonly explorerUrl: "https://unichain.blockscout.com";
|
|
233
|
+
readonly name: "Unichain";
|
|
234
|
+
readonly nativeCurrency: "ETH";
|
|
235
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
236
|
+
readonly rpcUrls: ["https://unichain-rpc.publicnode.com", "https://unichain.drpc.org"];
|
|
237
|
+
readonly type: "evm";
|
|
238
|
+
} & {
|
|
239
|
+
chainIdHex: "0x82";
|
|
240
|
+
}, {
|
|
241
|
+
readonly baseDecimal: 18;
|
|
242
|
+
readonly blockTime: 2;
|
|
243
|
+
readonly chain: Chain.XLayer;
|
|
244
|
+
readonly chainId: ChainId.XLayer;
|
|
245
|
+
readonly chainIdHex: "0xc4";
|
|
246
|
+
readonly explorerUrl: "https://okbscan.com";
|
|
247
|
+
readonly name: "X Layer";
|
|
248
|
+
readonly nativeCurrency: "OKB";
|
|
249
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
250
|
+
readonly rpcUrls: ["https://rpc.xlayer.tech"];
|
|
251
|
+
readonly type: "evm";
|
|
252
|
+
} & {
|
|
253
|
+
chainIdHex: "0xc4";
|
|
142
254
|
}];
|
|
143
|
-
export declare const EVMChains: readonly [Chain.Arbitrum, Chain.Aurora, Chain.Avalanche, Chain.Base, Chain.Berachain, Chain.BinanceSmartChain, Chain.Ethereum, Chain.Gnosis, Chain.Optimism, Chain.Polygon];
|
|
255
|
+
export declare const EVMChains: readonly [Chain.Arbitrum, Chain.Aurora, Chain.Avalanche, Chain.Base, Chain.Berachain, Chain.BinanceSmartChain, Chain.Botanix, Chain.Core, Chain.Corn, Chain.Corn, Chain.Cronos, Chain.Ethereum, Chain.Gnosis, Chain.Hyperevm, Chain.Optimism, Chain.Polygon, Chain.Sonic, Chain.Unichain, Chain.XLayer];
|
|
144
256
|
export type EVMChain = (typeof EVMChains)[number];
|
|
145
257
|
//# sourceMappingURL=evm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../src/chains/evm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../src/chains/evm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AA8Q1C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBlB,CAAC;AACX,eAAO,MAAM,SAAS,ySAoBZ,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -225,6 +225,118 @@ export declare const AllChainConfigs: (({
|
|
|
225
225
|
readonly type: "evm";
|
|
226
226
|
} & {
|
|
227
227
|
chainIdHex: "0x138de";
|
|
228
|
+
}) | ({
|
|
229
|
+
readonly baseDecimal: 18;
|
|
230
|
+
readonly blockTime: 2;
|
|
231
|
+
readonly chain: Chain.Hyperevm;
|
|
232
|
+
readonly chainId: ChainId.Hyperevm;
|
|
233
|
+
readonly chainIdHex: "0x3e7";
|
|
234
|
+
readonly explorerUrl: "https://app.hyperliquid.xyz/explorer";
|
|
235
|
+
readonly name: "Hyperliquid";
|
|
236
|
+
readonly nativeCurrency: "HYPE";
|
|
237
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
238
|
+
readonly rpcUrls: ["https://rpc.hyperliquid.xyz/evm", "https://rpc.hypurrscan.io"];
|
|
239
|
+
readonly type: "evm";
|
|
240
|
+
} & {
|
|
241
|
+
chainIdHex: "0x3e7";
|
|
242
|
+
}) | ({
|
|
243
|
+
readonly baseDecimal: 18;
|
|
244
|
+
readonly blockTime: 2;
|
|
245
|
+
readonly chain: Chain.Unichain;
|
|
246
|
+
readonly chainId: ChainId.Unichain;
|
|
247
|
+
readonly chainIdHex: "0x82";
|
|
248
|
+
readonly explorerUrl: "https://unichain.blockscout.com";
|
|
249
|
+
readonly name: "Unichain";
|
|
250
|
+
readonly nativeCurrency: "ETH";
|
|
251
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
252
|
+
readonly rpcUrls: ["https://unichain-rpc.publicnode.com", "https://unichain.drpc.org"];
|
|
253
|
+
readonly type: "evm";
|
|
254
|
+
} & {
|
|
255
|
+
chainIdHex: "0x82";
|
|
256
|
+
}) | ({
|
|
257
|
+
readonly baseDecimal: 18;
|
|
258
|
+
readonly blockTime: 2;
|
|
259
|
+
readonly chain: Chain.Corn;
|
|
260
|
+
readonly chainId: ChainId.Corn;
|
|
261
|
+
readonly chainIdHex: "0x1406f40";
|
|
262
|
+
readonly explorerUrl: "https://cornscan.io";
|
|
263
|
+
readonly name: "Corn";
|
|
264
|
+
readonly nativeCurrency: "BTCN";
|
|
265
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
266
|
+
readonly rpcUrls: ["https://mainnet.corn-rpc.com", "https://rpc.ankr.com/corn_maizenet"];
|
|
267
|
+
readonly type: "evm";
|
|
268
|
+
} & {
|
|
269
|
+
chainIdHex: "0x1406f40";
|
|
270
|
+
}) | ({
|
|
271
|
+
readonly baseDecimal: 18;
|
|
272
|
+
readonly blockTime: 2;
|
|
273
|
+
readonly chain: Chain.Core;
|
|
274
|
+
readonly chainId: ChainId.Core;
|
|
275
|
+
readonly chainIdHex: "0x45c";
|
|
276
|
+
readonly explorerUrl: "https://corescan.io";
|
|
277
|
+
readonly name: "Core";
|
|
278
|
+
readonly nativeCurrency: "CORE";
|
|
279
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
280
|
+
readonly rpcUrls: ["https://core-rpc.publicnode.com", "https://1rpc.io/core"];
|
|
281
|
+
readonly type: "evm";
|
|
282
|
+
} & {
|
|
283
|
+
chainIdHex: "0x45c";
|
|
284
|
+
}) | ({
|
|
285
|
+
readonly baseDecimal: 18;
|
|
286
|
+
readonly blockTime: 2;
|
|
287
|
+
readonly chain: Chain.Botanix;
|
|
288
|
+
readonly chainId: ChainId.Botanix;
|
|
289
|
+
readonly chainIdHex: "0xe35";
|
|
290
|
+
readonly explorerUrl: "https://botanixscan.io";
|
|
291
|
+
readonly name: "Botanix";
|
|
292
|
+
readonly nativeCurrency: "BTC";
|
|
293
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
294
|
+
readonly rpcUrls: ["https://core.drpc.org", "https://1rpc.io/core"];
|
|
295
|
+
readonly type: "evm";
|
|
296
|
+
} & {
|
|
297
|
+
chainIdHex: "0xe35";
|
|
298
|
+
}) | ({
|
|
299
|
+
readonly baseDecimal: 18;
|
|
300
|
+
readonly blockTime: 2;
|
|
301
|
+
readonly chain: Chain.Cronos;
|
|
302
|
+
readonly chainId: ChainId.Cronos;
|
|
303
|
+
readonly chainIdHex: "0x19";
|
|
304
|
+
readonly explorerUrl: "https://croscan.io";
|
|
305
|
+
readonly name: "Cronos";
|
|
306
|
+
readonly nativeCurrency: "CRO";
|
|
307
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
308
|
+
readonly rpcUrls: ["https://rpc.vvs.finance"];
|
|
309
|
+
readonly type: "evm";
|
|
310
|
+
} & {
|
|
311
|
+
chainIdHex: "0x19";
|
|
312
|
+
}) | ({
|
|
313
|
+
readonly baseDecimal: 18;
|
|
314
|
+
readonly blockTime: 2;
|
|
315
|
+
readonly chain: Chain.XLayer;
|
|
316
|
+
readonly chainId: ChainId.XLayer;
|
|
317
|
+
readonly chainIdHex: "0xc4";
|
|
318
|
+
readonly explorerUrl: "https://okbscan.com";
|
|
319
|
+
readonly name: "X Layer";
|
|
320
|
+
readonly nativeCurrency: "OKB";
|
|
321
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
322
|
+
readonly rpcUrls: ["https://rpc.xlayer.tech"];
|
|
323
|
+
readonly type: "evm";
|
|
324
|
+
} & {
|
|
325
|
+
chainIdHex: "0xc4";
|
|
326
|
+
}) | ({
|
|
327
|
+
readonly baseDecimal: 18;
|
|
328
|
+
readonly blockTime: 2;
|
|
329
|
+
readonly chain: Chain.Sonic;
|
|
330
|
+
readonly chainId: ChainId.Sonic;
|
|
331
|
+
readonly chainIdHex: "0x92";
|
|
332
|
+
readonly explorerUrl: "https://sonicscan.io";
|
|
333
|
+
readonly name: "Sonic";
|
|
334
|
+
readonly nativeCurrency: "S";
|
|
335
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
336
|
+
readonly rpcUrls: ["https://rpc.sonic.xyz"];
|
|
337
|
+
readonly type: "evm";
|
|
338
|
+
} & {
|
|
339
|
+
chainIdHex: "0x92";
|
|
228
340
|
}) | ({
|
|
229
341
|
readonly baseDecimal: 24;
|
|
230
342
|
readonly blockTime: 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chains/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAO9D,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AAEvB,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chains/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAO9D,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AAEvB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAO,MAAM,WAAW,uBAAqB,CAAC;AAE9C;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,uBAAmB,CAAC"}
|
|
@@ -26,6 +26,6 @@ export declare const SubstrateChainConfigs: readonly [{
|
|
|
26
26
|
} & {
|
|
27
27
|
chainIdHex: undefined;
|
|
28
28
|
}];
|
|
29
|
-
export declare const SubstrateChains:
|
|
29
|
+
export declare const SubstrateChains: readonly [Chain.Polkadot, Chain.Chainflip];
|
|
30
30
|
export type SubstrateChain = (typeof SubstrateChains)[number];
|
|
31
31
|
//# sourceMappingURL=substrate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"substrate.d.ts","sourceRoot":"","sources":["../../../src/chains/substrate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AA+C1C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuB,CAAC;AAC1D,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"substrate.d.ts","sourceRoot":"","sources":["../../../src/chains/substrate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AA+C1C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuB,CAAC;AAC1D,eAAO,MAAM,eAAe,4CAA6C,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/package.json
CHANGED