@swapkit/types 0.0.0-nightly-20250829093631 → 0.1.0
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 +9 -9
- package/dist/index.js +2 -2
- package/dist/index.js.map +9 -9
- package/dist/types/chains/_createChain.d.ts +5 -6
- package/dist/types/chains/_createChain.d.ts.map +1 -1
- package/dist/types/chains/cosmos.d.ts +6 -20
- package/dist/types/chains/cosmos.d.ts.map +1 -1
- package/dist/types/chains/evm.d.ts +0 -10
- package/dist/types/chains/evm.d.ts.map +1 -1
- package/dist/types/chains/index.d.ts +13 -146
- package/dist/types/chains/index.d.ts.map +1 -1
- package/dist/types/chains/others.d.ts +0 -6
- package/dist/types/chains/others.d.ts.map +1 -1
- package/dist/types/chains/substrate.d.ts +0 -2
- package/dist/types/chains/substrate.d.ts.map +1 -1
- package/dist/types/chains/utxo.d.ts +0 -6
- package/dist/types/chains/utxo.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var{defineProperty:
|
|
1
|
+
var{defineProperty:u,getOwnPropertyNames:v,getOwnPropertyDescriptor:D}=Object,w=Object.prototype.hasOwnProperty;var A=new WeakMap,O=(e)=>{var a=A.get(e),i;if(a)return a;if(a=u({},"__esModule",{value:!0}),e&&typeof e==="object"||typeof e==="function")v(e).map((c)=>!w.call(a,c)&&u(a,c,{get:()=>e[c],enumerable:!(i=D(e,c))||i.enumerable}));return A.set(e,a),a};var H=(e,a)=>{for(var i in a)u(e,i,{get:a[i],enumerable:!0,configurable:!0,set:(c)=>a[i]=()=>c})};var un={};H(un,{getChainConfig:()=>Un,UTXOChains:()=>hn,UTXOChainConfigs:()=>U,THORConfig:()=>h,TCLikeChains:()=>P,SubstrateChains:()=>an,SubstrateChainConfigs:()=>d,StagenetTHORConfig:()=>f,StagenetMAYAConfig:()=>y,StagenetCosmosChains:()=>R,StagenetCosmosChainConfigs:()=>C,StagenetChains:()=>mn,StagenetChainConfigs:()=>I,StagenetChain:()=>bn,OtherChains:()=>W,OtherChainConfigs:()=>b,NOBLEConfig:()=>k,MAYAConfig:()=>l,KUJIConfig:()=>E,GAIAConfig:()=>g,EVMChains:()=>Y,EVMChainConfigs:()=>x,CosmosChains:()=>S,CosmosChainPrefixes:()=>B,CosmosChainConfigs:()=>m,ChainId:()=>xn,Chain:()=>Cn,AllChains:()=>ln,AllChainConfigs:()=>p});module.exports=O(un);function n(e){return e}function r(e){return e.map(({chain:a})=>a)}var t="cosmos",g=n({baseDecimal:6,blockExplorerUrl:"https://www.mintscan.io/cosmos",chain:"GAIA",chainId:"cosmoshub-4",explorerUrl:"https://www.mintscan.io/cosmos",name:"Cosmos",nativeCurrency:"ATOM",rpcUrl:"https://cosmos-rpc.publicnode.com:443",type:t}),h=n({baseDecimal:8,blockExplorerUrl:"https://runescan.io",chain:"THOR",chainId:"thorchain-1",explorerUrl:"https://runescan.io",name:"THORChain",nativeCurrency:"RUNE",rpcUrl:"https://rpc.thorswap.net",type:t}),f=n({baseDecimal:8,blockExplorerUrl:"https://runescan.io",chain:"THOR",chainId:"thorchain-stagenet-v2",explorerUrl:"https://runescan.io",name:"THORChain",nativeCurrency:"RUNE",rpcUrl:"https://rpc.thorswap.net",type:t}),l=n({baseDecimal:8,blockExplorerUrl:"https://www.mayascan.org",chain:"MAYA",chainId:"mayachain-mainnet-v1",explorerUrl:"https://www.mayascan.org",name:"Maya",nativeCurrency:"CACAO",rpcUrl:"https://tendermint.mayachain.info",type:t}),y=n({baseDecimal:8,blockExplorerUrl:"https://www.mayascan.org",chain:"MAYA",chainId:"mayachain-stagenet-v1",explorerUrl:"https://www.mayascan.org",name:"Maya",nativeCurrency:"CACAO",rpcUrl:"https://tendermint.mayachain.info",type:t}),E=n({baseDecimal:6,blockExplorerUrl:"https://finder.kujira.network/kaiyo-1",chain:"KUJI",chainId:"kaiyo-1",explorerUrl:"https://finder.kujira.network/kaiyo-1",name:"Kujira",nativeCurrency:"KUJI",rpcUrl:"https://kujira-rpc.ibs.team",type:t}),k=n({baseDecimal:6,blockExplorerUrl:"https://www.mintscan.io/noble",chain:"NOBLE",chainId:"noble-1",explorerUrl:"https://www.mintscan.io/noble",name:"Noble",nativeCurrency:"USDC",rpcUrl:"https://noble-rpc.polkachu.com",type:t}),m=[g,h,l,E,k],S=r(m),C=[f,y],R=r(C),B={[g.chain]:"cosmos",[h.chain]:"thor",[l.chain]:"maya",[E.chain]:"kujira",[k.chain]:"noble"},P=[h.chain,l.chain,f.chain,y.chain];var o="evm",L=n({baseDecimal:18,blockExplorerUrl:"https://etherscan.io",chain:"ETH",chainId:"1",chainIdHex:"0x1",explorerUrl:"https://etherscan.io",name:"Ethereum",nativeCurrency:"ETH",rpcUrl:"https://ethereum-rpc.publicnode.com",type:o}),N=n({baseDecimal:18,blockExplorerUrl:"https://bscscan.com",chain:"BSC",chainId:"56",chainIdHex:"0x38",explorerUrl:"https://bscscan.com",name:"BinanceSmartChain",nativeCurrency:"BNB",rpcUrl:"https://bsc-dataseed.binance.org",type:o}),M=n({baseDecimal:18,blockExplorerUrl:"https://snowtrace.io",chain:"AVAX",chainId:"43114",chainIdHex:"0xa86a",explorerUrl:"https://snowtrace.io",name:"Avalanche",nativeCurrency:"AVAX",rpcUrl:"https://api.avax.network/ext/bc/C/rpc",type:o}),X=n({baseDecimal:18,blockExplorerUrl:"https://polygonscan.com",chain:"POL",chainId:"137",chainIdHex:"0x89",explorerUrl:"https://polygonscan.com",name:"Polygon",nativeCurrency:"POL",rpcUrl:"https://polygon-rpc.com",type:o}),K=n({baseDecimal:18,blockExplorerUrl:"https://arbiscan.io",chain:"ARB",chainId:"42161",chainIdHex:"0xa4b1",explorerUrl:"https://arbiscan.io",name:"Arbitrum",nativeCurrency:"ETH",rpcUrl:"https://arb1.arbitrum.io/rpc",type:o}),G=n({baseDecimal:18,blockExplorerUrl:"https://optimistic.etherscan.io",chain:"OP",chainId:"10",chainIdHex:"0xa",explorerUrl:"https://optimistic.etherscan.io",name:"Optimism",nativeCurrency:"ETH",rpcUrl:"https://mainnet.optimism.io",type:o}),j=n({baseDecimal:18,blockExplorerUrl:"https://basescan.org",chain:"BASE",chainId:"8453",chainIdHex:"0x2105",explorerUrl:"https://basescan.org",name:"Base",nativeCurrency:"ETH",rpcUrl:"https://base-rpc.publicnode.com",type:o}),V=n({baseDecimal:18,blockExplorerUrl:"https://gnosisscan.io",chain:"GNO",chainId:"100",chainIdHex:"0x64",explorerUrl:"https://gnosisscan.io",name:"Gnosis",nativeCurrency:"xDAI",rpcUrl:"https://gnosis-rpc.publicnode.com",type:o}),F=n({baseDecimal:18,blockExplorerUrl:"https://explorer.mainnet.aurora.dev",chain:"AURORA",chainId:"1313161554",chainIdHex:"0x4e454152",explorerUrl:"https://explorer.mainnet.aurora.dev",name:"Aurora",nativeCurrency:"ETH",rpcUrl:"https://aurora-rpc.publicnode.com",type:o}),z=n({baseDecimal:18,blockExplorerUrl:"https://berascan.com",chain:"BERA",chainId:"80094",chainIdHex:"0x138de",explorerUrl:"https://berascan.com",name:"Berachain",nativeCurrency:"BERA",rpcUrl:"https://berachain-rpc.publicnode.com",type:o}),x=[L,N,M,X,K,G,j,V,F,z],Y=r(x);var s="others",Z=n({baseDecimal:24,blockExplorerUrl:"https://nearblocks.io",chain:"NEAR",chainId:"near",explorerUrl:"https://nearblocks.io",name:"Near",nativeCurrency:"NEAR",rpcUrl:"https://rpc.mainnet.near.org",type:s}),J=n({baseDecimal:18,blockExplorerUrl:"https://dashboard.radixdlt.com",chain:"XRD",chainId:"radix-mainnet",explorerUrl:"https://dashboard.radixdlt.com",name:"Radix",nativeCurrency:"XRD",rpcUrl:"https://radix-mainnet.rpc.grove.city/v1/326002fc/core",type:s}),_=n({baseDecimal:6,blockExplorerUrl:"https://livenet.xrpl.org/",chain:"XRP",chainId:"ripple",explorerUrl:"https://livenet.xrpl.org/",name:"Ripple",nativeCurrency:"XRP",rpcUrl:"wss://xrpl.ws/",type:s}),$=n({baseDecimal:9,blockExplorerUrl:"https://solscan.io",chain:"SOL",chainId:"solana",explorerUrl:"https://solscan.io",name:"Solana",nativeCurrency:"SOL",rpcUrl:"https://solana-rpc.publicnode.com",type:s}),q=n({baseDecimal:6,blockExplorerUrl:"https://tronscan.org",chain:"TRON",chainId:"728126428",chainIdHex:"0x2b6653dc",explorerUrl:"https://tronscan.org",name:"Tron",nativeCurrency:"TRX",rpcUrl:"https://tron-rpc.publicnode.com",type:s}),Q=n({baseDecimal:2,blockExplorerUrl:"",chain:"FIAT",chainId:"fiat",explorerUrl:"",name:"Fiat",nativeCurrency:"USD",rpcUrl:"",type:s}),b=[Z,J,_,$,q,Q],W=r(b);var T="substrate",nn=n({baseDecimal:10,blockExplorerUrl:"https://polkadot.subscan.io",chain:"DOT",chainId:"polkadot",explorerUrl:"https://polkadot.subscan.io",name:"Polkadot",nativeCurrency:"DOT",rpcUrl:"wss://rpc.polkadot.io",type:T}),en=n({baseDecimal:18,blockExplorerUrl:"https://explorer.polkascan.io/polkadot",chain:"FLIP",chainId:"chainflip",explorerUrl:"https://explorer.polkascan.io/polkadot",name:"Chainflip",nativeCurrency:"FLIP",rpcUrl:"wss://mainnet-archive.chainflip.io",type:T}),d=[nn,en],an=r(d);var rn=n({baseDecimal:8,blockExplorerUrl:"https://blockchair.com/bitcoin",chain:"BTC",chainId:"bitcoin",explorerUrl:"https://blockchair.com/bitcoin",name:"Bitcoin",nativeCurrency:"BTC",rpcUrl:"https://bitcoin-rpc.publicnode.com",type:"utxo"}),on=n({baseDecimal:8,blockExplorerUrl:"https://www.blockchair.com/bitcoin-cash",chain:"BCH",chainId:"bitcoincash",explorerUrl:"https://www.blockchair.com/bitcoin-cash",name:"BitcoinCash",nativeCurrency:"BCH",rpcUrl:"https://node-router.thorswap.net/bitcoin-cash",type:"utxo"}),tn=n({baseDecimal:8,blockExplorerUrl:"https://blockchair.com/litecoin",chain:"LTC",chainId:"litecoin",explorerUrl:"https://blockchair.com/litecoin",name:"Litecoin",nativeCurrency:"LTC",rpcUrl:"https://node-router.thorswap.net/litecoin",type:"utxo"}),cn=n({baseDecimal:8,blockExplorerUrl:"https://blockchair.com/dogecoin",chain:"DOGE",chainId:"dogecoin",explorerUrl:"https://blockchair.com/dogecoin",name:"Dogecoin",nativeCurrency:"DOGE",rpcUrl:"https://node-router.thorswap.net/dogecoin",type:"utxo"}),sn=n({baseDecimal:8,blockExplorerUrl:"https://blockchair.com/dash",chain:"DASH",chainId:"dash",explorerUrl:"https://blockchair.com/dash",name:"Dash",nativeCurrency:"DASH",rpcUrl:"https://dash-rpc.publicnode.com",type:"utxo"}),pn=n({baseDecimal:8,blockExplorerUrl:"https://blockchair.com/zcash",chain:"ZEC",chainId:"zcash",explorerUrl:"https://blockchair.com/zcash",name:"Zcash",nativeCurrency:"ZEC",rpcUrl:"https://api.tatum.io/v3/blockchain/node/zcash-mainnet/t-6894a2ae7fc90cccfd3ce71b-2fce88aa7f4a41a5b1e93874",type:"utxo"}),U=[rn,on,tn,cn,sn,pn],hn=r(U);var p=[...U,...x,...m,...d,...b].sort((e,a)=>e.chain.localeCompare(a.chain)),ln=r(p),I=[...C].sort((e,a)=>e.chain.localeCompare(a.chain)),mn=r(I),Cn=Object.fromEntries(p.map(({name:e,chain:a})=>[e,a])),xn=Object.fromEntries(p.map(({chainId:e,chain:a})=>[a,e])),bn=Object.fromEntries(I.map(({name:e,chain:a})=>[e,`${a}_STAGENET`])),dn=new Map(p.map((e)=>[e.chain,e]));function Un(e){return dn.get(e)||{}}
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=2099221492D6AD2C64756E2164756E21
|
|
4
4
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../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
|
-
"type ChainIdHexType<T> = T extends { chainIdHex: infer U } ? (U extends string ? U : undefined) : undefined;\n\
|
|
6
|
-
"import { createChain, mapChains } from \"./_createChain\";\n\nconst type = \"cosmos\";\n\nexport const GAIAConfig = createChain({\n baseDecimal: 6,\n blockExplorerUrl: \"https://www.mintscan.io/cosmos\",\n
|
|
7
|
-
"import { createChain, mapChains } from \"./_createChain\";\n\nconst type = \"evm\";\n\nconst ETHConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://etherscan.io\",\n
|
|
8
|
-
"import { createChain, mapChains } from \"./_createChain\";\n\nconst type = \"others\";\n\nconst NEAR = createChain({\n baseDecimal: 24,\n blockExplorerUrl: \"https://nearblocks.io\",\n
|
|
9
|
-
"import { createChain, mapChains } from \"./_createChain\";\n\nconst type = \"substrate\";\n\nconst DOT = createChain({\n baseDecimal: 10,\n blockExplorerUrl: \"https://polkadot.subscan.io\",\n
|
|
10
|
-
"import { createChain, mapChains } from \"./_createChain\";\n\nconst BTC = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://blockchair.com/bitcoin\",\n
|
|
11
|
-
"import { mapChains } from \"./_createChain\";\nimport { CosmosChainConfigs, StagenetCosmosChainConfigs } from \"./cosmos\";\nimport { EVMChainConfigs } from \"./evm\";\nimport { OtherChainConfigs } from \"./others\";\nimport { SubstrateChainConfigs } from \"./substrate\";\nimport { UTXOChainConfigs } from \"./utxo\";\n\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
|
|
5
|
+
"type ChainIdHexType<T> = T extends { chainIdHex: infer U } ? (U extends string ? U : undefined) : undefined;\n\nexport function createChain<\n const Name extends string,\n const Chain extends string,\n const Type extends \"utxo\" | \"evm\" | \"cosmos\" | \"substrate\" | \"others\",\n const ChainId extends string,\n const Params extends {\n baseDecimal: number;\n blockExplorerUrl: string;\n chain: Chain;\n chainId: ChainId;\n explorerUrl: string;\n name: Name;\n nativeCurrency: string;\n rpcUrl: 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\ntype ExtractChains<T extends readonly any[]> = T extends readonly [...infer Items]\n ? { [K in keyof Items]: Items[K] extends { chain: infer C } ? C : never }\n : never;\n\nexport function mapChains<T extends readonly any[]>(chains: T) {\n return chains.map(({ chain }) => chain) as ExtractChains<T>;\n}\n",
|
|
6
|
+
"import { createChain, mapChains } from \"./_createChain\";\n\nconst type = \"cosmos\";\n\nexport const GAIAConfig = createChain({\n baseDecimal: 6,\n blockExplorerUrl: \"https://www.mintscan.io/cosmos\",\n chain: \"GAIA\",\n chainId: \"cosmoshub-4\",\n explorerUrl: \"https://www.mintscan.io/cosmos\",\n name: \"Cosmos\",\n nativeCurrency: \"ATOM\",\n rpcUrl: \"https://cosmos-rpc.publicnode.com:443\",\n type,\n});\n\nexport const THORConfig = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://runescan.io\",\n chain: \"THOR\",\n chainId: \"thorchain-1\",\n explorerUrl: \"https://runescan.io\",\n name: \"THORChain\",\n nativeCurrency: \"RUNE\",\n rpcUrl: \"https://rpc.thorswap.net\",\n type,\n});\n\nexport const StagenetTHORConfig = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://runescan.io\",\n chain: \"THOR\",\n chainId: \"thorchain-stagenet-v2\",\n explorerUrl: \"https://runescan.io\",\n name: \"THORChain\",\n nativeCurrency: \"RUNE\",\n rpcUrl: \"https://rpc.thorswap.net\",\n type,\n});\n\nexport const MAYAConfig = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://www.mayascan.org\",\n chain: \"MAYA\",\n chainId: \"mayachain-mainnet-v1\",\n explorerUrl: \"https://www.mayascan.org\",\n name: \"Maya\",\n nativeCurrency: \"CACAO\",\n rpcUrl: \"https://tendermint.mayachain.info\",\n type,\n});\n\nexport const StagenetMAYAConfig = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://www.mayascan.org\",\n chain: \"MAYA\",\n chainId: \"mayachain-stagenet-v1\",\n explorerUrl: \"https://www.mayascan.org\",\n name: \"Maya\",\n nativeCurrency: \"CACAO\",\n rpcUrl: \"https://tendermint.mayachain.info\",\n type,\n});\n\nexport const KUJIConfig = createChain({\n baseDecimal: 6,\n blockExplorerUrl: \"https://finder.kujira.network/kaiyo-1\",\n chain: \"KUJI\",\n chainId: \"kaiyo-1\",\n explorerUrl: \"https://finder.kujira.network/kaiyo-1\",\n name: \"Kujira\",\n nativeCurrency: \"KUJI\",\n rpcUrl: \"https://kujira-rpc.ibs.team\",\n type,\n});\n\nexport const NOBLEConfig = createChain({\n baseDecimal: 6,\n blockExplorerUrl: \"https://www.mintscan.io/noble\",\n chain: \"NOBLE\",\n chainId: \"noble-1\",\n explorerUrl: \"https://www.mintscan.io/noble\",\n name: \"Noble\",\n nativeCurrency: \"USDC\",\n rpcUrl: \"https://noble-rpc.polkachu.com\",\n type,\n});\n\nexport const CosmosChainConfigs = [GAIAConfig, THORConfig, MAYAConfig, KUJIConfig, NOBLEConfig] as const;\nexport const CosmosChains = mapChains(CosmosChainConfigs);\nexport type CosmosChain = (typeof CosmosChains)[number];\n\nexport const StagenetCosmosChainConfigs = [StagenetTHORConfig, StagenetMAYAConfig] as const;\nexport const StagenetCosmosChains = mapChains(StagenetCosmosChainConfigs);\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};\n\nexport const TCLikeChains = [\n THORConfig.chain,\n MAYAConfig.chain,\n StagenetTHORConfig.chain,\n StagenetMAYAConfig.chain,\n] as const;\nexport type TCLikeChain = (typeof TCLikeChains)[number];\n",
|
|
7
|
+
"import { createChain, mapChains } from \"./_createChain\";\n\nconst type = \"evm\";\n\nconst ETHConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://etherscan.io\",\n chain: \"ETH\",\n chainId: \"1\",\n chainIdHex: \"0x1\",\n explorerUrl: \"https://etherscan.io\",\n name: \"Ethereum\",\n nativeCurrency: \"ETH\",\n rpcUrl: \"https://ethereum-rpc.publicnode.com\",\n type,\n});\n\nconst BSCConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://bscscan.com\",\n chain: \"BSC\",\n chainId: \"56\",\n chainIdHex: \"0x38\",\n explorerUrl: \"https://bscscan.com\",\n name: \"BinanceSmartChain\",\n nativeCurrency: \"BNB\",\n rpcUrl: \"https://bsc-dataseed.binance.org\",\n type,\n});\n\nconst AVAXConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://snowtrace.io\",\n chain: \"AVAX\",\n chainId: \"43114\",\n chainIdHex: \"0xa86a\",\n explorerUrl: \"https://snowtrace.io\",\n name: \"Avalanche\",\n nativeCurrency: \"AVAX\",\n rpcUrl: \"https://api.avax.network/ext/bc/C/rpc\",\n type,\n});\n\nconst POLConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://polygonscan.com\",\n chain: \"POL\",\n chainId: \"137\",\n chainIdHex: \"0x89\",\n explorerUrl: \"https://polygonscan.com\",\n name: \"Polygon\",\n nativeCurrency: \"POL\",\n rpcUrl: \"https://polygon-rpc.com\",\n type,\n});\n\nconst ARBConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://arbiscan.io\",\n chain: \"ARB\",\n chainId: \"42161\",\n chainIdHex: \"0xa4b1\",\n explorerUrl: \"https://arbiscan.io\",\n name: \"Arbitrum\",\n nativeCurrency: \"ETH\",\n rpcUrl: \"https://arb1.arbitrum.io/rpc\",\n type,\n});\n\nconst OPConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://optimistic.etherscan.io\",\n chain: \"OP\",\n chainId: \"10\",\n chainIdHex: \"0xa\",\n explorerUrl: \"https://optimistic.etherscan.io\",\n name: \"Optimism\",\n nativeCurrency: \"ETH\",\n rpcUrl: \"https://mainnet.optimism.io\",\n type,\n});\n\nconst BASEConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://basescan.org\",\n chain: \"BASE\",\n chainId: \"8453\",\n chainIdHex: \"0x2105\",\n explorerUrl: \"https://basescan.org\",\n name: \"Base\",\n nativeCurrency: \"ETH\",\n rpcUrl: \"https://base-rpc.publicnode.com\",\n type,\n});\n\nconst GNOConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://gnosisscan.io\",\n chain: \"GNO\",\n chainId: \"100\",\n chainIdHex: \"0x64\",\n explorerUrl: \"https://gnosisscan.io\",\n name: \"Gnosis\",\n nativeCurrency: \"xDAI\",\n rpcUrl: \"https://gnosis-rpc.publicnode.com\",\n type,\n});\n\nconst AURORAConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://explorer.mainnet.aurora.dev\",\n chain: \"AURORA\",\n chainId: \"1313161554\",\n chainIdHex: \"0x4e454152\",\n explorerUrl: \"https://explorer.mainnet.aurora.dev\",\n name: \"Aurora\",\n nativeCurrency: \"ETH\",\n rpcUrl: \"https://aurora-rpc.publicnode.com\",\n type,\n});\n\nconst BERAConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://berascan.com\",\n chain: \"BERA\",\n chainId: \"80094\",\n chainIdHex: \"0x138de\",\n explorerUrl: \"https://berascan.com\",\n name: \"Berachain\",\n nativeCurrency: \"BERA\",\n rpcUrl: \"https://berachain-rpc.publicnode.com\",\n type,\n});\n\nexport const EVMChainConfigs = [\n ETHConfig,\n BSCConfig,\n AVAXConfig,\n POLConfig,\n ARBConfig,\n OPConfig,\n BASEConfig,\n GNOConfig,\n AURORAConfig,\n BERAConfig,\n] as const;\n\nexport const EVMChains = mapChains(EVMChainConfigs);\nexport type EVMChain = (typeof EVMChains)[number];\n",
|
|
8
|
+
"import { createChain, mapChains } from \"./_createChain\";\n\nconst type = \"others\";\n\nconst NEAR = createChain({\n baseDecimal: 24,\n blockExplorerUrl: \"https://nearblocks.io\",\n chain: \"NEAR\",\n chainId: \"near\",\n explorerUrl: \"https://nearblocks.io\",\n name: \"Near\",\n nativeCurrency: \"NEAR\",\n rpcUrl: \"https://rpc.mainnet.near.org\",\n type,\n});\n\nconst XRD = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://dashboard.radixdlt.com\",\n chain: \"XRD\",\n chainId: \"radix-mainnet\",\n explorerUrl: \"https://dashboard.radixdlt.com\",\n name: \"Radix\",\n nativeCurrency: \"XRD\",\n rpcUrl: \"https://radix-mainnet.rpc.grove.city/v1/326002fc/core\",\n type,\n});\n\nconst XRP = createChain({\n baseDecimal: 6,\n blockExplorerUrl: \"https://livenet.xrpl.org/\",\n chain: \"XRP\",\n chainId: \"ripple\",\n explorerUrl: \"https://livenet.xrpl.org/\",\n name: \"Ripple\",\n nativeCurrency: \"XRP\",\n rpcUrl: \"wss://xrpl.ws/\",\n type,\n});\n\nconst SOL = createChain({\n baseDecimal: 9,\n blockExplorerUrl: \"https://solscan.io\",\n chain: \"SOL\",\n chainId: \"solana\",\n explorerUrl: \"https://solscan.io\",\n name: \"Solana\",\n nativeCurrency: \"SOL\",\n rpcUrl: \"https://solana-rpc.publicnode.com\",\n type,\n});\n\nconst TRON = createChain({\n baseDecimal: 6,\n blockExplorerUrl: \"https://tronscan.org\",\n chain: \"TRON\",\n chainId: \"728126428\",\n chainIdHex: \"0x2b6653dc\",\n explorerUrl: \"https://tronscan.org\",\n name: \"Tron\",\n nativeCurrency: \"TRX\",\n rpcUrl: \"https://tron-rpc.publicnode.com\",\n type,\n});\n\nconst FIAT = createChain({\n baseDecimal: 2,\n blockExplorerUrl: \"\",\n chain: \"FIAT\",\n chainId: \"fiat\",\n explorerUrl: \"\",\n name: \"Fiat\",\n nativeCurrency: \"USD\",\n rpcUrl: \"\",\n type,\n});\n\nexport const OtherChainConfigs = [NEAR, XRD, XRP, SOL, TRON, FIAT] as const;\nexport const OtherChains = mapChains(OtherChainConfigs);\nexport type OtherChain = (typeof OtherChains)[number];\n",
|
|
9
|
+
"import { createChain, mapChains } from \"./_createChain\";\n\nconst type = \"substrate\";\n\nconst DOT = createChain({\n baseDecimal: 10,\n blockExplorerUrl: \"https://polkadot.subscan.io\",\n chain: \"DOT\",\n chainId: \"polkadot\",\n explorerUrl: \"https://polkadot.subscan.io\",\n name: \"Polkadot\",\n nativeCurrency: \"DOT\",\n rpcUrl: \"wss://rpc.polkadot.io\",\n type,\n});\n\nconst FLIP = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://explorer.polkascan.io/polkadot\",\n chain: \"FLIP\",\n chainId: \"chainflip\",\n explorerUrl: \"https://explorer.polkascan.io/polkadot\",\n name: \"Chainflip\",\n nativeCurrency: \"FLIP\",\n rpcUrl: \"wss://mainnet-archive.chainflip.io\",\n type,\n});\n\nexport const SubstrateChainConfigs = [DOT, FLIP] as const;\nexport const SubstrateChains = mapChains(SubstrateChainConfigs);\nexport type SubstrateChain = (typeof SubstrateChains)[number];\n",
|
|
10
|
+
"import { createChain, mapChains } from \"./_createChain\";\n\nconst BTC = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://blockchair.com/bitcoin\",\n chain: \"BTC\",\n chainId: \"bitcoin\",\n explorerUrl: \"https://blockchair.com/bitcoin\",\n name: \"Bitcoin\",\n nativeCurrency: \"BTC\",\n rpcUrl: \"https://bitcoin-rpc.publicnode.com\",\n type: \"utxo\",\n});\n\nconst BCH = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://www.blockchair.com/bitcoin-cash\",\n chain: \"BCH\",\n chainId: \"bitcoincash\",\n explorerUrl: \"https://www.blockchair.com/bitcoin-cash\",\n name: \"BitcoinCash\",\n nativeCurrency: \"BCH\",\n rpcUrl: \"https://node-router.thorswap.net/bitcoin-cash\",\n type: \"utxo\",\n});\n\nconst LTC = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://blockchair.com/litecoin\",\n chain: \"LTC\",\n chainId: \"litecoin\",\n explorerUrl: \"https://blockchair.com/litecoin\",\n name: \"Litecoin\",\n nativeCurrency: \"LTC\",\n rpcUrl: \"https://node-router.thorswap.net/litecoin\",\n type: \"utxo\",\n});\n\nconst DOGE = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://blockchair.com/dogecoin\",\n chain: \"DOGE\",\n chainId: \"dogecoin\",\n explorerUrl: \"https://blockchair.com/dogecoin\",\n name: \"Dogecoin\",\n nativeCurrency: \"DOGE\",\n rpcUrl: \"https://node-router.thorswap.net/dogecoin\",\n type: \"utxo\",\n});\n\nconst DASH = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://blockchair.com/dash\",\n chain: \"DASH\",\n chainId: \"dash\",\n explorerUrl: \"https://blockchair.com/dash\",\n name: \"Dash\",\n nativeCurrency: \"DASH\",\n rpcUrl: \"https://dash-rpc.publicnode.com\",\n type: \"utxo\",\n});\n\nconst ZEC = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://blockchair.com/zcash\",\n chain: \"ZEC\",\n chainId: \"zcash\",\n explorerUrl: \"https://blockchair.com/zcash\",\n name: \"Zcash\",\n nativeCurrency: \"ZEC\",\n rpcUrl: \"https://api.tatum.io/v3/blockchain/node/zcash-mainnet/t-6894a2ae7fc90cccfd3ce71b-2fce88aa7f4a41a5b1e93874\",\n type: \"utxo\",\n});\n\nexport const UTXOChainConfigs = [BTC, BCH, LTC, DOGE, DASH, ZEC] as const;\nexport const UTXOChains = mapChains(UTXOChainConfigs);\nexport type UTXOChain = (typeof UTXOChains)[number];\n",
|
|
11
|
+
"import { mapChains } from \"./_createChain\";\nimport { CosmosChainConfigs, StagenetCosmosChainConfigs } from \"./cosmos\";\nimport { EVMChainConfigs } from \"./evm\";\nimport { OtherChainConfigs } from \"./others\";\nimport { SubstrateChainConfigs } from \"./substrate\";\nimport { UTXOChainConfigs } from \"./utxo\";\n\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 const AllChains = mapChains(AllChainConfigs);\n\nexport const StagenetChainConfigs = [...StagenetCosmosChainConfigs].sort((a, b) => a.chain.localeCompare(b.chain));\nexport type StagenetChainConfigs = typeof StagenetChainConfigs;\nexport const StagenetChains = mapChains(StagenetChainConfigs);\n\nexport const Chain = Object.fromEntries(AllChainConfigs.map(({ name, chain }) => [name, chain] as const)) as {\n readonly [K in AllChainConfigs[number][\"name\"]]: Extract<AllChainConfigs[number], { name: K }>[\"chain\"];\n};\n\nexport type Chain = AllChainConfigs[number][\"chain\"];\nexport const ChainId = Object.fromEntries(AllChainConfigs.map(({ chainId, chain }) => [chain, chainId] as const)) as {\n readonly [K in AllChainConfigs[number][\"chain\"]]: Extract<AllChainConfigs[number], { chain: K }>[\"chainId\"];\n};\nexport type ChainId = AllChainConfigs[number][\"chainId\"];\n\nexport const StagenetChain = Object.fromEntries(\n StagenetChainConfigs.map(({ name, chain }) => [name, `${chain}_STAGENET`]),\n) as {\n readonly [K in StagenetChainConfigs[number][\"name\"]]: `${StagenetChainConfigs[number][\"chain\"]}_STAGENET`;\n};\nexport type StagenetChain = StagenetChainConfigs[number][\"chain\"];\n\ntype ChainConfigMap = {\n [K in AllChainConfigs[number][\"chain\"]]: Extract<AllChainConfigs[number], { chain: K }>;\n};\n\nconst chainConfigMap = new Map<AllChainConfigs[number][\"chain\"], AllChainConfigs[number]>(\n AllChainConfigs.map((config) => [config.chain, config]),\n);\n\nexport function getChainConfig<T extends AllChainConfigs[number][\"chain\"]>(chain: T): ChainConfigMap[T] {\n const chainConfig = chainConfigMap.get(chain);\n\n return (chainConfig || {}) as ChainConfigMap[T];\n}\n"
|
|
12
12
|
],
|
|
13
|
-
"mappings": "
|
|
14
|
-
"debugId": "
|
|
13
|
+
"mappings": "wlCAEO,SAAS,CAgBf,CAAC,EAAiE,CACjE,OAAO,EAOF,SAAS,CAAmC,CAAC,EAAW,CAC7D,OAAO,EAAO,IAAI,EAAG,WAAY,CAAK,ECzBxC,IAAM,EAAO,SAEA,EAAa,EAAY,CACpC,YAAa,EACb,iBAAkB,iCAClB,MAAO,OACP,QAAS,cACT,YAAa,iCACb,KAAM,SACN,eAAgB,OAChB,OAAQ,wCACR,MACF,CAAC,EAEY,EAAa,EAAY,CACpC,YAAa,EACb,iBAAkB,sBAClB,MAAO,OACP,QAAS,cACT,YAAa,sBACb,KAAM,YACN,eAAgB,OAChB,OAAQ,2BACR,MACF,CAAC,EAEY,EAAqB,EAAY,CAC5C,YAAa,EACb,iBAAkB,sBAClB,MAAO,OACP,QAAS,wBACT,YAAa,sBACb,KAAM,YACN,eAAgB,OAChB,OAAQ,2BACR,MACF,CAAC,EAEY,EAAa,EAAY,CACpC,YAAa,EACb,iBAAkB,2BAClB,MAAO,OACP,QAAS,uBACT,YAAa,2BACb,KAAM,OACN,eAAgB,QAChB,OAAQ,oCACR,MACF,CAAC,EAEY,EAAqB,EAAY,CAC5C,YAAa,EACb,iBAAkB,2BAClB,MAAO,OACP,QAAS,wBACT,YAAa,2BACb,KAAM,OACN,eAAgB,QAChB,OAAQ,oCACR,MACF,CAAC,EAEY,EAAa,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,CAAC,EAAO,MAAO,CAAM,CAAC,CACxD,EAEO,SAAS,EAA0D,CAAC,EAA6B,CAGtG,OAFoB,GAAe,IAAI,CAAK,GAErB,CAAC",
|
|
14
|
+
"debugId": "2099221492D6AD2C64756E2164756E21",
|
|
15
15
|
"names": []
|
|
16
16
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function n(e){return e}function a(e){return e.map(({chain:r})=>r)}var t="cosmos",d=n({baseDecimal:6,blockExplorerUrl:"https://www.mintscan.io/cosmos",chain:"GAIA",chainId:"cosmoshub-4",explorerUrl:"https://www.mintscan.io/cosmos",name:"Cosmos",nativeCurrency:"ATOM",rpcUrl:"https://cosmos-rpc.publicnode.com:443",type:t}),s=n({baseDecimal:8,blockExplorerUrl:"https://runescan.io",chain:"THOR",chainId:"thorchain-1",explorerUrl:"https://runescan.io",name:"THORChain",nativeCurrency:"RUNE",rpcUrl:"https://rpc.thorswap.net",type:t}),U=n({baseDecimal:8,blockExplorerUrl:"https://runescan.io",chain:"THOR",chainId:"thorchain-stagenet-v2",explorerUrl:"https://runescan.io",name:"THORChain",nativeCurrency:"RUNE",rpcUrl:"https://rpc.thorswap.net",type:t}),p=n({baseDecimal:8,blockExplorerUrl:"https://www.mayascan.org",chain:"MAYA",chainId:"mayachain-mainnet-v1",explorerUrl:"https://www.mayascan.org",name:"Maya",nativeCurrency:"CACAO",rpcUrl:"https://tendermint.mayachain.info",type:t}),u=n({baseDecimal:8,blockExplorerUrl:"https://www.mayascan.org",chain:"MAYA",chainId:"mayachain-stagenet-v1",explorerUrl:"https://www.mayascan.org",name:"Maya",nativeCurrency:"CACAO",rpcUrl:"https://tendermint.mayachain.info",type:t}),g=n({baseDecimal:6,blockExplorerUrl:"https://finder.kujira.network/kaiyo-1",chain:"KUJI",chainId:"kaiyo-1",explorerUrl:"https://finder.kujira.network/kaiyo-1",name:"Kujira",nativeCurrency:"KUJI",rpcUrl:"https://kujira-rpc.ibs.team",type:t}),f=n({baseDecimal:6,blockExplorerUrl:"https://www.mintscan.io/noble",chain:"NOBLE",chainId:"noble-1",explorerUrl:"https://www.mintscan.io/noble",name:"Noble",nativeCurrency:"USDC",rpcUrl:"https://noble-rpc.polkachu.com",type:t}),h=[d,s,p,g,f],$=a(h),l=[U,u],q=a(l),Q={[d.chain]:"cosmos",[s.chain]:"thor",[p.chain]:"maya",[g.chain]:"kujira",[f.chain]:"noble"},W=[s.chain,p.chain,U.chain,u.chain];var o="evm",k=n({baseDecimal:18,blockExplorerUrl:"https://etherscan.io",chain:"ETH",chainId:"1",chainIdHex:"0x1",explorerUrl:"https://etherscan.io",name:"Ethereum",nativeCurrency:"ETH",rpcUrl:"https://ethereum-rpc.publicnode.com",type:o}),I=n({baseDecimal:18,blockExplorerUrl:"https://bscscan.com",chain:"BSC",chainId:"56",chainIdHex:"0x38",explorerUrl:"https://bscscan.com",name:"BinanceSmartChain",nativeCurrency:"BNB",rpcUrl:"https://bsc-dataseed.binance.org",type:o}),A=n({baseDecimal:18,blockExplorerUrl:"https://snowtrace.io",chain:"AVAX",chainId:"43114",chainIdHex:"0xa86a",explorerUrl:"https://snowtrace.io",name:"Avalanche",nativeCurrency:"AVAX",rpcUrl:"https://api.avax.network/ext/bc/C/rpc",type:o}),T=n({baseDecimal:18,blockExplorerUrl:"https://polygonscan.com",chain:"POL",chainId:"137",chainIdHex:"0x89",explorerUrl:"https://polygonscan.com",name:"Polygon",nativeCurrency:"POL",rpcUrl:"https://polygon-rpc.com",type:o}),v=n({baseDecimal:18,blockExplorerUrl:"https://arbiscan.io",chain:"ARB",chainId:"42161",chainIdHex:"0xa4b1",explorerUrl:"https://arbiscan.io",name:"Arbitrum",nativeCurrency:"ETH",rpcUrl:"https://arb1.arbitrum.io/rpc",type:o}),D=n({baseDecimal:18,blockExplorerUrl:"https://optimistic.etherscan.io",chain:"OP",chainId:"10",chainIdHex:"0xa",explorerUrl:"https://optimistic.etherscan.io",name:"Optimism",nativeCurrency:"ETH",rpcUrl:"https://mainnet.optimism.io",type:o}),w=n({baseDecimal:18,blockExplorerUrl:"https://basescan.org",chain:"BASE",chainId:"8453",chainIdHex:"0x2105",explorerUrl:"https://basescan.org",name:"Base",nativeCurrency:"ETH",rpcUrl:"https://base-rpc.publicnode.com",type:o}),O=n({baseDecimal:18,blockExplorerUrl:"https://gnosisscan.io",chain:"GNO",chainId:"100",chainIdHex:"0x64",explorerUrl:"https://gnosisscan.io",name:"Gnosis",nativeCurrency:"xDAI",rpcUrl:"https://gnosis-rpc.publicnode.com",type:o}),H=n({baseDecimal:18,blockExplorerUrl:"https://explorer.mainnet.aurora.dev",chain:"AURORA",chainId:"1313161554",chainIdHex:"0x4e454152",explorerUrl:"https://explorer.mainnet.aurora.dev",name:"Aurora",nativeCurrency:"ETH",rpcUrl:"https://aurora-rpc.publicnode.com",type:o}),S=n({baseDecimal:18,blockExplorerUrl:"https://berascan.com",chain:"BERA",chainId:"80094",chainIdHex:"0x138de",explorerUrl:"https://berascan.com",name:"Berachain",nativeCurrency:"BERA",rpcUrl:"https://berachain-rpc.publicnode.com",type:o}),m=[k,I,A,T,v,D,w,O,H,S],an=a(m);var i="others",R=n({baseDecimal:24,blockExplorerUrl:"https://nearblocks.io",chain:"NEAR",chainId:"near",explorerUrl:"https://nearblocks.io",name:"Near",nativeCurrency:"NEAR",rpcUrl:"https://rpc.mainnet.near.org",type:i}),B=n({baseDecimal:18,blockExplorerUrl:"https://dashboard.radixdlt.com",chain:"XRD",chainId:"radix-mainnet",explorerUrl:"https://dashboard.radixdlt.com",name:"Radix",nativeCurrency:"XRD",rpcUrl:"https://radix-mainnet.rpc.grove.city/v1/326002fc/core",type:i}),P=n({baseDecimal:6,blockExplorerUrl:"https://livenet.xrpl.org/",chain:"XRP",chainId:"ripple",explorerUrl:"https://livenet.xrpl.org/",name:"Ripple",nativeCurrency:"XRP",rpcUrl:"wss://xrpl.ws/",type:i}),L=n({baseDecimal:9,blockExplorerUrl:"https://solscan.io",chain:"SOL",chainId:"solana",explorerUrl:"https://solscan.io",name:"Solana",nativeCurrency:"SOL",rpcUrl:"https://solana-rpc.publicnode.com",type:i}),N=n({baseDecimal:6,blockExplorerUrl:"https://tronscan.org",chain:"TRON",chainId:"728126428",chainIdHex:"0x2b6653dc",explorerUrl:"https://tronscan.org",name:"Tron",nativeCurrency:"TRX",rpcUrl:"https://tron-rpc.publicnode.com",type:i}),M=n({baseDecimal:2,blockExplorerUrl:"",chain:"FIAT",chainId:"fiat",explorerUrl:"",name:"Fiat",nativeCurrency:"USD",rpcUrl:"",type:i}),C=[R,B,P,L,N,M],tn=a(C);var y="substrate",X=n({baseDecimal:10,blockExplorerUrl:"https://polkadot.subscan.io",chain:"DOT",chainId:"polkadot",explorerUrl:"https://polkadot.subscan.io",name:"Polkadot",nativeCurrency:"DOT",rpcUrl:"wss://rpc.polkadot.io",type:y}),K=n({baseDecimal:18,blockExplorerUrl:"https://explorer.polkascan.io/polkadot",chain:"FLIP",chainId:"chainflip",explorerUrl:"https://explorer.polkascan.io/polkadot",name:"Chainflip",nativeCurrency:"FLIP",rpcUrl:"wss://mainnet-archive.chainflip.io",type:y}),x=[X,K],pn=a(x);var G=n({baseDecimal:8,blockExplorerUrl:"https://blockchair.com/bitcoin",chain:"BTC",chainId:"bitcoin",explorerUrl:"https://blockchair.com/bitcoin",name:"Bitcoin",nativeCurrency:"BTC",rpcUrl:"https://bitcoin-rpc.publicnode.com",type:"utxo"}),j=n({baseDecimal:8,blockExplorerUrl:"https://www.blockchair.com/bitcoin-cash",chain:"BCH",chainId:"bitcoincash",explorerUrl:"https://www.blockchair.com/bitcoin-cash",name:"BitcoinCash",nativeCurrency:"BCH",rpcUrl:"https://node-router.thorswap.net/bitcoin-cash",type:"utxo"}),V=n({baseDecimal:8,blockExplorerUrl:"https://blockchair.com/litecoin",chain:"LTC",chainId:"litecoin",explorerUrl:"https://blockchair.com/litecoin",name:"Litecoin",nativeCurrency:"LTC",rpcUrl:"https://node-router.thorswap.net/litecoin",type:"utxo"}),F=n({baseDecimal:8,blockExplorerUrl:"https://blockchair.com/dogecoin",chain:"DOGE",chainId:"dogecoin",explorerUrl:"https://blockchair.com/dogecoin",name:"Dogecoin",nativeCurrency:"DOGE",rpcUrl:"https://node-router.thorswap.net/dogecoin",type:"utxo"}),z=n({baseDecimal:8,blockExplorerUrl:"https://blockchair.com/dash",chain:"DASH",chainId:"dash",explorerUrl:"https://blockchair.com/dash",name:"Dash",nativeCurrency:"DASH",rpcUrl:"https://dash-rpc.publicnode.com",type:"utxo"}),Y=n({baseDecimal:8,blockExplorerUrl:"https://blockchair.com/zcash",chain:"ZEC",chainId:"zcash",explorerUrl:"https://blockchair.com/zcash",name:"Zcash",nativeCurrency:"ZEC",rpcUrl:"https://api.tatum.io/v3/blockchain/node/zcash-mainnet/t-6894a2ae7fc90cccfd3ce71b-2fce88aa7f4a41a5b1e93874",type:"utxo"}),b=[G,j,V,F,z,Y],mn=a(b);var c=[...b,...m,...h,...x,...C].sort((e,r)=>e.chain.localeCompare(r.chain)),fn=a(c),E=[...l].sort((e,r)=>e.chain.localeCompare(r.chain)),yn=a(E),En=Object.fromEntries(c.map(({name:e,chain:r})=>[e,r])),kn=Object.fromEntries(c.map(({chainId:e,chain:r})=>[r,e])),In=Object.fromEntries(E.map(({name:e,chain:r})=>[e,`${r}_STAGENET`])),Z=new Map(c.map((e)=>[e.chain,e]));function An(e){return Z.get(e)||{}}export{An as getChainConfig,mn as UTXOChains,b as UTXOChainConfigs,s as THORConfig,W as TCLikeChains,pn as SubstrateChains,x as SubstrateChainConfigs,U as StagenetTHORConfig,u as StagenetMAYAConfig,q as StagenetCosmosChains,l as StagenetCosmosChainConfigs,yn as StagenetChains,E as StagenetChainConfigs,In as StagenetChain,tn as OtherChains,C as OtherChainConfigs,f as NOBLEConfig,p as MAYAConfig,g as KUJIConfig,d as GAIAConfig,an as EVMChains,m as EVMChainConfigs,$ as CosmosChains,Q as CosmosChainPrefixes,h as CosmosChainConfigs,kn as ChainId,En as Chain,fn as AllChains,c as AllChainConfigs};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=0F5E17D35D85378464756E2164756E21
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../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
|
-
"type ChainIdHexType<T> = T extends { chainIdHex: infer U } ? (U extends string ? U : undefined) : undefined;\n\
|
|
6
|
-
"import { createChain, mapChains } from \"./_createChain\";\n\nconst type = \"cosmos\";\n\nexport const GAIAConfig = createChain({\n baseDecimal: 6,\n blockExplorerUrl: \"https://www.mintscan.io/cosmos\",\n
|
|
7
|
-
"import { createChain, mapChains } from \"./_createChain\";\n\nconst type = \"evm\";\n\nconst ETHConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://etherscan.io\",\n
|
|
8
|
-
"import { createChain, mapChains } from \"./_createChain\";\n\nconst type = \"others\";\n\nconst NEAR = createChain({\n baseDecimal: 24,\n blockExplorerUrl: \"https://nearblocks.io\",\n
|
|
9
|
-
"import { createChain, mapChains } from \"./_createChain\";\n\nconst type = \"substrate\";\n\nconst DOT = createChain({\n baseDecimal: 10,\n blockExplorerUrl: \"https://polkadot.subscan.io\",\n
|
|
10
|
-
"import { createChain, mapChains } from \"./_createChain\";\n\nconst BTC = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://blockchair.com/bitcoin\",\n
|
|
11
|
-
"import { mapChains } from \"./_createChain\";\nimport { CosmosChainConfigs, StagenetCosmosChainConfigs } from \"./cosmos\";\nimport { EVMChainConfigs } from \"./evm\";\nimport { OtherChainConfigs } from \"./others\";\nimport { SubstrateChainConfigs } from \"./substrate\";\nimport { UTXOChainConfigs } from \"./utxo\";\n\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
|
|
5
|
+
"type ChainIdHexType<T> = T extends { chainIdHex: infer U } ? (U extends string ? U : undefined) : undefined;\n\nexport function createChain<\n const Name extends string,\n const Chain extends string,\n const Type extends \"utxo\" | \"evm\" | \"cosmos\" | \"substrate\" | \"others\",\n const ChainId extends string,\n const Params extends {\n baseDecimal: number;\n blockExplorerUrl: string;\n chain: Chain;\n chainId: ChainId;\n explorerUrl: string;\n name: Name;\n nativeCurrency: string;\n rpcUrl: 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\ntype ExtractChains<T extends readonly any[]> = T extends readonly [...infer Items]\n ? { [K in keyof Items]: Items[K] extends { chain: infer C } ? C : never }\n : never;\n\nexport function mapChains<T extends readonly any[]>(chains: T) {\n return chains.map(({ chain }) => chain) as ExtractChains<T>;\n}\n",
|
|
6
|
+
"import { createChain, mapChains } from \"./_createChain\";\n\nconst type = \"cosmos\";\n\nexport const GAIAConfig = createChain({\n baseDecimal: 6,\n blockExplorerUrl: \"https://www.mintscan.io/cosmos\",\n chain: \"GAIA\",\n chainId: \"cosmoshub-4\",\n explorerUrl: \"https://www.mintscan.io/cosmos\",\n name: \"Cosmos\",\n nativeCurrency: \"ATOM\",\n rpcUrl: \"https://cosmos-rpc.publicnode.com:443\",\n type,\n});\n\nexport const THORConfig = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://runescan.io\",\n chain: \"THOR\",\n chainId: \"thorchain-1\",\n explorerUrl: \"https://runescan.io\",\n name: \"THORChain\",\n nativeCurrency: \"RUNE\",\n rpcUrl: \"https://rpc.thorswap.net\",\n type,\n});\n\nexport const StagenetTHORConfig = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://runescan.io\",\n chain: \"THOR\",\n chainId: \"thorchain-stagenet-v2\",\n explorerUrl: \"https://runescan.io\",\n name: \"THORChain\",\n nativeCurrency: \"RUNE\",\n rpcUrl: \"https://rpc.thorswap.net\",\n type,\n});\n\nexport const MAYAConfig = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://www.mayascan.org\",\n chain: \"MAYA\",\n chainId: \"mayachain-mainnet-v1\",\n explorerUrl: \"https://www.mayascan.org\",\n name: \"Maya\",\n nativeCurrency: \"CACAO\",\n rpcUrl: \"https://tendermint.mayachain.info\",\n type,\n});\n\nexport const StagenetMAYAConfig = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://www.mayascan.org\",\n chain: \"MAYA\",\n chainId: \"mayachain-stagenet-v1\",\n explorerUrl: \"https://www.mayascan.org\",\n name: \"Maya\",\n nativeCurrency: \"CACAO\",\n rpcUrl: \"https://tendermint.mayachain.info\",\n type,\n});\n\nexport const KUJIConfig = createChain({\n baseDecimal: 6,\n blockExplorerUrl: \"https://finder.kujira.network/kaiyo-1\",\n chain: \"KUJI\",\n chainId: \"kaiyo-1\",\n explorerUrl: \"https://finder.kujira.network/kaiyo-1\",\n name: \"Kujira\",\n nativeCurrency: \"KUJI\",\n rpcUrl: \"https://kujira-rpc.ibs.team\",\n type,\n});\n\nexport const NOBLEConfig = createChain({\n baseDecimal: 6,\n blockExplorerUrl: \"https://www.mintscan.io/noble\",\n chain: \"NOBLE\",\n chainId: \"noble-1\",\n explorerUrl: \"https://www.mintscan.io/noble\",\n name: \"Noble\",\n nativeCurrency: \"USDC\",\n rpcUrl: \"https://noble-rpc.polkachu.com\",\n type,\n});\n\nexport const CosmosChainConfigs = [GAIAConfig, THORConfig, MAYAConfig, KUJIConfig, NOBLEConfig] as const;\nexport const CosmosChains = mapChains(CosmosChainConfigs);\nexport type CosmosChain = (typeof CosmosChains)[number];\n\nexport const StagenetCosmosChainConfigs = [StagenetTHORConfig, StagenetMAYAConfig] as const;\nexport const StagenetCosmosChains = mapChains(StagenetCosmosChainConfigs);\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};\n\nexport const TCLikeChains = [\n THORConfig.chain,\n MAYAConfig.chain,\n StagenetTHORConfig.chain,\n StagenetMAYAConfig.chain,\n] as const;\nexport type TCLikeChain = (typeof TCLikeChains)[number];\n",
|
|
7
|
+
"import { createChain, mapChains } from \"./_createChain\";\n\nconst type = \"evm\";\n\nconst ETHConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://etherscan.io\",\n chain: \"ETH\",\n chainId: \"1\",\n chainIdHex: \"0x1\",\n explorerUrl: \"https://etherscan.io\",\n name: \"Ethereum\",\n nativeCurrency: \"ETH\",\n rpcUrl: \"https://ethereum-rpc.publicnode.com\",\n type,\n});\n\nconst BSCConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://bscscan.com\",\n chain: \"BSC\",\n chainId: \"56\",\n chainIdHex: \"0x38\",\n explorerUrl: \"https://bscscan.com\",\n name: \"BinanceSmartChain\",\n nativeCurrency: \"BNB\",\n rpcUrl: \"https://bsc-dataseed.binance.org\",\n type,\n});\n\nconst AVAXConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://snowtrace.io\",\n chain: \"AVAX\",\n chainId: \"43114\",\n chainIdHex: \"0xa86a\",\n explorerUrl: \"https://snowtrace.io\",\n name: \"Avalanche\",\n nativeCurrency: \"AVAX\",\n rpcUrl: \"https://api.avax.network/ext/bc/C/rpc\",\n type,\n});\n\nconst POLConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://polygonscan.com\",\n chain: \"POL\",\n chainId: \"137\",\n chainIdHex: \"0x89\",\n explorerUrl: \"https://polygonscan.com\",\n name: \"Polygon\",\n nativeCurrency: \"POL\",\n rpcUrl: \"https://polygon-rpc.com\",\n type,\n});\n\nconst ARBConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://arbiscan.io\",\n chain: \"ARB\",\n chainId: \"42161\",\n chainIdHex: \"0xa4b1\",\n explorerUrl: \"https://arbiscan.io\",\n name: \"Arbitrum\",\n nativeCurrency: \"ETH\",\n rpcUrl: \"https://arb1.arbitrum.io/rpc\",\n type,\n});\n\nconst OPConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://optimistic.etherscan.io\",\n chain: \"OP\",\n chainId: \"10\",\n chainIdHex: \"0xa\",\n explorerUrl: \"https://optimistic.etherscan.io\",\n name: \"Optimism\",\n nativeCurrency: \"ETH\",\n rpcUrl: \"https://mainnet.optimism.io\",\n type,\n});\n\nconst BASEConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://basescan.org\",\n chain: \"BASE\",\n chainId: \"8453\",\n chainIdHex: \"0x2105\",\n explorerUrl: \"https://basescan.org\",\n name: \"Base\",\n nativeCurrency: \"ETH\",\n rpcUrl: \"https://base-rpc.publicnode.com\",\n type,\n});\n\nconst GNOConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://gnosisscan.io\",\n chain: \"GNO\",\n chainId: \"100\",\n chainIdHex: \"0x64\",\n explorerUrl: \"https://gnosisscan.io\",\n name: \"Gnosis\",\n nativeCurrency: \"xDAI\",\n rpcUrl: \"https://gnosis-rpc.publicnode.com\",\n type,\n});\n\nconst AURORAConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://explorer.mainnet.aurora.dev\",\n chain: \"AURORA\",\n chainId: \"1313161554\",\n chainIdHex: \"0x4e454152\",\n explorerUrl: \"https://explorer.mainnet.aurora.dev\",\n name: \"Aurora\",\n nativeCurrency: \"ETH\",\n rpcUrl: \"https://aurora-rpc.publicnode.com\",\n type,\n});\n\nconst BERAConfig = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://berascan.com\",\n chain: \"BERA\",\n chainId: \"80094\",\n chainIdHex: \"0x138de\",\n explorerUrl: \"https://berascan.com\",\n name: \"Berachain\",\n nativeCurrency: \"BERA\",\n rpcUrl: \"https://berachain-rpc.publicnode.com\",\n type,\n});\n\nexport const EVMChainConfigs = [\n ETHConfig,\n BSCConfig,\n AVAXConfig,\n POLConfig,\n ARBConfig,\n OPConfig,\n BASEConfig,\n GNOConfig,\n AURORAConfig,\n BERAConfig,\n] as const;\n\nexport const EVMChains = mapChains(EVMChainConfigs);\nexport type EVMChain = (typeof EVMChains)[number];\n",
|
|
8
|
+
"import { createChain, mapChains } from \"./_createChain\";\n\nconst type = \"others\";\n\nconst NEAR = createChain({\n baseDecimal: 24,\n blockExplorerUrl: \"https://nearblocks.io\",\n chain: \"NEAR\",\n chainId: \"near\",\n explorerUrl: \"https://nearblocks.io\",\n name: \"Near\",\n nativeCurrency: \"NEAR\",\n rpcUrl: \"https://rpc.mainnet.near.org\",\n type,\n});\n\nconst XRD = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://dashboard.radixdlt.com\",\n chain: \"XRD\",\n chainId: \"radix-mainnet\",\n explorerUrl: \"https://dashboard.radixdlt.com\",\n name: \"Radix\",\n nativeCurrency: \"XRD\",\n rpcUrl: \"https://radix-mainnet.rpc.grove.city/v1/326002fc/core\",\n type,\n});\n\nconst XRP = createChain({\n baseDecimal: 6,\n blockExplorerUrl: \"https://livenet.xrpl.org/\",\n chain: \"XRP\",\n chainId: \"ripple\",\n explorerUrl: \"https://livenet.xrpl.org/\",\n name: \"Ripple\",\n nativeCurrency: \"XRP\",\n rpcUrl: \"wss://xrpl.ws/\",\n type,\n});\n\nconst SOL = createChain({\n baseDecimal: 9,\n blockExplorerUrl: \"https://solscan.io\",\n chain: \"SOL\",\n chainId: \"solana\",\n explorerUrl: \"https://solscan.io\",\n name: \"Solana\",\n nativeCurrency: \"SOL\",\n rpcUrl: \"https://solana-rpc.publicnode.com\",\n type,\n});\n\nconst TRON = createChain({\n baseDecimal: 6,\n blockExplorerUrl: \"https://tronscan.org\",\n chain: \"TRON\",\n chainId: \"728126428\",\n chainIdHex: \"0x2b6653dc\",\n explorerUrl: \"https://tronscan.org\",\n name: \"Tron\",\n nativeCurrency: \"TRX\",\n rpcUrl: \"https://tron-rpc.publicnode.com\",\n type,\n});\n\nconst FIAT = createChain({\n baseDecimal: 2,\n blockExplorerUrl: \"\",\n chain: \"FIAT\",\n chainId: \"fiat\",\n explorerUrl: \"\",\n name: \"Fiat\",\n nativeCurrency: \"USD\",\n rpcUrl: \"\",\n type,\n});\n\nexport const OtherChainConfigs = [NEAR, XRD, XRP, SOL, TRON, FIAT] as const;\nexport const OtherChains = mapChains(OtherChainConfigs);\nexport type OtherChain = (typeof OtherChains)[number];\n",
|
|
9
|
+
"import { createChain, mapChains } from \"./_createChain\";\n\nconst type = \"substrate\";\n\nconst DOT = createChain({\n baseDecimal: 10,\n blockExplorerUrl: \"https://polkadot.subscan.io\",\n chain: \"DOT\",\n chainId: \"polkadot\",\n explorerUrl: \"https://polkadot.subscan.io\",\n name: \"Polkadot\",\n nativeCurrency: \"DOT\",\n rpcUrl: \"wss://rpc.polkadot.io\",\n type,\n});\n\nconst FLIP = createChain({\n baseDecimal: 18,\n blockExplorerUrl: \"https://explorer.polkascan.io/polkadot\",\n chain: \"FLIP\",\n chainId: \"chainflip\",\n explorerUrl: \"https://explorer.polkascan.io/polkadot\",\n name: \"Chainflip\",\n nativeCurrency: \"FLIP\",\n rpcUrl: \"wss://mainnet-archive.chainflip.io\",\n type,\n});\n\nexport const SubstrateChainConfigs = [DOT, FLIP] as const;\nexport const SubstrateChains = mapChains(SubstrateChainConfigs);\nexport type SubstrateChain = (typeof SubstrateChains)[number];\n",
|
|
10
|
+
"import { createChain, mapChains } from \"./_createChain\";\n\nconst BTC = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://blockchair.com/bitcoin\",\n chain: \"BTC\",\n chainId: \"bitcoin\",\n explorerUrl: \"https://blockchair.com/bitcoin\",\n name: \"Bitcoin\",\n nativeCurrency: \"BTC\",\n rpcUrl: \"https://bitcoin-rpc.publicnode.com\",\n type: \"utxo\",\n});\n\nconst BCH = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://www.blockchair.com/bitcoin-cash\",\n chain: \"BCH\",\n chainId: \"bitcoincash\",\n explorerUrl: \"https://www.blockchair.com/bitcoin-cash\",\n name: \"BitcoinCash\",\n nativeCurrency: \"BCH\",\n rpcUrl: \"https://node-router.thorswap.net/bitcoin-cash\",\n type: \"utxo\",\n});\n\nconst LTC = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://blockchair.com/litecoin\",\n chain: \"LTC\",\n chainId: \"litecoin\",\n explorerUrl: \"https://blockchair.com/litecoin\",\n name: \"Litecoin\",\n nativeCurrency: \"LTC\",\n rpcUrl: \"https://node-router.thorswap.net/litecoin\",\n type: \"utxo\",\n});\n\nconst DOGE = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://blockchair.com/dogecoin\",\n chain: \"DOGE\",\n chainId: \"dogecoin\",\n explorerUrl: \"https://blockchair.com/dogecoin\",\n name: \"Dogecoin\",\n nativeCurrency: \"DOGE\",\n rpcUrl: \"https://node-router.thorswap.net/dogecoin\",\n type: \"utxo\",\n});\n\nconst DASH = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://blockchair.com/dash\",\n chain: \"DASH\",\n chainId: \"dash\",\n explorerUrl: \"https://blockchair.com/dash\",\n name: \"Dash\",\n nativeCurrency: \"DASH\",\n rpcUrl: \"https://dash-rpc.publicnode.com\",\n type: \"utxo\",\n});\n\nconst ZEC = createChain({\n baseDecimal: 8,\n blockExplorerUrl: \"https://blockchair.com/zcash\",\n chain: \"ZEC\",\n chainId: \"zcash\",\n explorerUrl: \"https://blockchair.com/zcash\",\n name: \"Zcash\",\n nativeCurrency: \"ZEC\",\n rpcUrl: \"https://api.tatum.io/v3/blockchain/node/zcash-mainnet/t-6894a2ae7fc90cccfd3ce71b-2fce88aa7f4a41a5b1e93874\",\n type: \"utxo\",\n});\n\nexport const UTXOChainConfigs = [BTC, BCH, LTC, DOGE, DASH, ZEC] as const;\nexport const UTXOChains = mapChains(UTXOChainConfigs);\nexport type UTXOChain = (typeof UTXOChains)[number];\n",
|
|
11
|
+
"import { mapChains } from \"./_createChain\";\nimport { CosmosChainConfigs, StagenetCosmosChainConfigs } from \"./cosmos\";\nimport { EVMChainConfigs } from \"./evm\";\nimport { OtherChainConfigs } from \"./others\";\nimport { SubstrateChainConfigs } from \"./substrate\";\nimport { UTXOChainConfigs } from \"./utxo\";\n\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 const AllChains = mapChains(AllChainConfigs);\n\nexport const StagenetChainConfigs = [...StagenetCosmosChainConfigs].sort((a, b) => a.chain.localeCompare(b.chain));\nexport type StagenetChainConfigs = typeof StagenetChainConfigs;\nexport const StagenetChains = mapChains(StagenetChainConfigs);\n\nexport const Chain = Object.fromEntries(AllChainConfigs.map(({ name, chain }) => [name, chain] as const)) as {\n readonly [K in AllChainConfigs[number][\"name\"]]: Extract<AllChainConfigs[number], { name: K }>[\"chain\"];\n};\n\nexport type Chain = AllChainConfigs[number][\"chain\"];\nexport const ChainId = Object.fromEntries(AllChainConfigs.map(({ chainId, chain }) => [chain, chainId] as const)) as {\n readonly [K in AllChainConfigs[number][\"chain\"]]: Extract<AllChainConfigs[number], { chain: K }>[\"chainId\"];\n};\nexport type ChainId = AllChainConfigs[number][\"chainId\"];\n\nexport const StagenetChain = Object.fromEntries(\n StagenetChainConfigs.map(({ name, chain }) => [name, `${chain}_STAGENET`]),\n) as {\n readonly [K in StagenetChainConfigs[number][\"name\"]]: `${StagenetChainConfigs[number][\"chain\"]}_STAGENET`;\n};\nexport type StagenetChain = StagenetChainConfigs[number][\"chain\"];\n\ntype ChainConfigMap = {\n [K in AllChainConfigs[number][\"chain\"]]: Extract<AllChainConfigs[number], { chain: K }>;\n};\n\nconst chainConfigMap = new Map<AllChainConfigs[number][\"chain\"], AllChainConfigs[number]>(\n AllChainConfigs.map((config) => [config.chain, config]),\n);\n\nexport function getChainConfig<T extends AllChainConfigs[number][\"chain\"]>(chain: T): ChainConfigMap[T] {\n const chainConfig = chainConfigMap.get(chain);\n\n return (chainConfig || {}) as ChainConfigMap[T];\n}\n"
|
|
12
12
|
],
|
|
13
|
-
"mappings": "
|
|
14
|
-
"debugId": "
|
|
13
|
+
"mappings": "AAEO,SAAS,CAgBf,CAAC,EAAiE,CACjE,OAAO,EAOF,SAAS,CAAmC,CAAC,EAAW,CAC7D,OAAO,EAAO,IAAI,EAAG,WAAY,CAAK,ECzBxC,IAAM,EAAO,SAEA,EAAa,EAAY,CACpC,YAAa,EACb,iBAAkB,iCAClB,MAAO,OACP,QAAS,cACT,YAAa,iCACb,KAAM,SACN,eAAgB,OAChB,OAAQ,wCACR,MACF,CAAC,EAEY,EAAa,EAAY,CACpC,YAAa,EACb,iBAAkB,sBAClB,MAAO,OACP,QAAS,cACT,YAAa,sBACb,KAAM,YACN,eAAgB,OAChB,OAAQ,2BACR,MACF,CAAC,EAEY,EAAqB,EAAY,CAC5C,YAAa,EACb,iBAAkB,sBAClB,MAAO,OACP,QAAS,wBACT,YAAa,sBACb,KAAM,YACN,eAAgB,OAChB,OAAQ,2BACR,MACF,C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,IAAI,EAAG,OAAM,WAAY,CAAC,EAAM,CAAK,CAAU,CAAC,EAK3F,GAAU,OAAO,YAAY,EAAgB,IAAI,EAAG,UAAS,WAAY,CAAC,EAAO,CAAO,CAAU,CAAC,EAKnG,GAAgB,OAAO,YAClC,EAAqB,IAAI,EAAG,OAAM,WAAY,CAAC,EAAM,GAAG,YAAgB,CAAC,CAC3E,EASM,EAAiB,IAAI,IACzB,EAAgB,IAAI,CAAC,IAAW,CAAC,EAAO,MAAO,CAAM,CAAC,CACxD,EAEO,SAAS,EAA0D,CAAC,EAA6B,CAGtG,OAFoB,EAAe,IAAI,CAAK,GAErB,CAAC",
|
|
14
|
+
"debugId": "0F5E17D35D85378464756E2164756E21",
|
|
15
15
|
"names": []
|
|
16
16
|
}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
type ChainIdHexType<T> = T extends {
|
|
2
2
|
chainIdHex: infer U;
|
|
3
3
|
} ? (U extends string ? U : undefined) : undefined;
|
|
4
|
-
type ExtractChains<T extends readonly any[]> = T extends readonly [...infer Items] ? {
|
|
5
|
-
[K in keyof Items]: Items[K] extends {
|
|
6
|
-
chain: infer C;
|
|
7
|
-
} ? C : never;
|
|
8
|
-
} : never;
|
|
9
4
|
export declare function createChain<const Name extends string, const Chain extends string, const Type extends "utxo" | "evm" | "cosmos" | "substrate" | "others", const ChainId extends string, const Params extends {
|
|
10
5
|
baseDecimal: number;
|
|
11
|
-
blockTime: number;
|
|
12
6
|
blockExplorerUrl: string;
|
|
13
7
|
chain: Chain;
|
|
14
8
|
chainId: ChainId;
|
|
@@ -24,6 +18,11 @@ export declare function createChain<const Name extends string, const Chain exten
|
|
|
24
18
|
})>(params: Params): Params & {
|
|
25
19
|
chainIdHex: ChainIdHexType<Params>;
|
|
26
20
|
};
|
|
21
|
+
type ExtractChains<T extends readonly any[]> = T extends readonly [...infer Items] ? {
|
|
22
|
+
[K in keyof Items]: Items[K] extends {
|
|
23
|
+
chain: infer C;
|
|
24
|
+
} ? C : never;
|
|
25
|
+
} : never;
|
|
27
26
|
export declare function mapChains<T extends readonly any[]>(chains: T): ExtractChains<T>;
|
|
28
27
|
export {};
|
|
29
28
|
//# sourceMappingURL=_createChain.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_createChain.d.ts","sourceRoot":"","sources":["../../../src/chains/_createChain.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,SAAS;IAAE,UAAU,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,SAAS,CAAC;AAE5G,
|
|
1
|
+
{"version":3,"file":"_createChain.d.ts","sourceRoot":"","sources":["../../../src/chains/_createChain.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,SAAS;IAAE,UAAU,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,SAAS,CAAC;AAE5G,wBAAgB,WAAW,CACzB,KAAK,CAAC,IAAI,SAAS,MAAM,EACzB,KAAK,CAAC,KAAK,SAAS,MAAM,EAC1B,KAAK,CAAC,IAAI,SAAS,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,WAAW,GAAG,QAAQ,EACrE,KAAK,CAAC,OAAO,SAAS,MAAM,EAC5B,KAAK,CAAC,MAAM,SAAS;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,IAAI,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;CACZ,GAAG,CAAC;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,UAAU,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,EACrD,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG;IAAE,UAAU,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;CAAE,CAEjE;AAED,KAAK,aAAa,CAAC,CAAC,SAAS,SAAS,GAAG,EAAE,IAAI,CAAC,SAAS,SAAS,CAAC,GAAG,MAAM,KAAK,CAAC,GAC9E;KAAG,CAAC,IAAI,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,SAAS;QAAE,KAAK,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,KAAK;CAAE,GACvE,KAAK,CAAC;AAEV,wBAAgB,SAAS,CAAC,CAAC,SAAS,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,CAAC,GAChB,aAAa,CAAC,CAAC,CAAC,CAC5D"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const GAIAConfig: {
|
|
2
2
|
readonly baseDecimal: 6;
|
|
3
3
|
readonly blockExplorerUrl: "https://www.mintscan.io/cosmos";
|
|
4
|
-
readonly blockTime: 2;
|
|
5
4
|
readonly chain: "GAIA";
|
|
6
5
|
readonly chainId: "cosmoshub-4";
|
|
7
6
|
readonly explorerUrl: "https://www.mintscan.io/cosmos";
|
|
@@ -15,7 +14,6 @@ export declare const GAIAConfig: {
|
|
|
15
14
|
export declare const THORConfig: {
|
|
16
15
|
readonly baseDecimal: 8;
|
|
17
16
|
readonly blockExplorerUrl: "https://runescan.io";
|
|
18
|
-
readonly blockTime: 6;
|
|
19
17
|
readonly chain: "THOR";
|
|
20
18
|
readonly chainId: "thorchain-1";
|
|
21
19
|
readonly explorerUrl: "https://runescan.io";
|
|
@@ -29,8 +27,7 @@ export declare const THORConfig: {
|
|
|
29
27
|
export declare const StagenetTHORConfig: {
|
|
30
28
|
readonly baseDecimal: 8;
|
|
31
29
|
readonly blockExplorerUrl: "https://runescan.io";
|
|
32
|
-
readonly
|
|
33
|
-
readonly chain: "THOR_STAGENET";
|
|
30
|
+
readonly chain: "THOR";
|
|
34
31
|
readonly chainId: "thorchain-stagenet-v2";
|
|
35
32
|
readonly explorerUrl: "https://runescan.io";
|
|
36
33
|
readonly name: "THORChain";
|
|
@@ -43,7 +40,6 @@ export declare const StagenetTHORConfig: {
|
|
|
43
40
|
export declare const MAYAConfig: {
|
|
44
41
|
readonly baseDecimal: 8;
|
|
45
42
|
readonly blockExplorerUrl: "https://www.mayascan.org";
|
|
46
|
-
readonly blockTime: 6;
|
|
47
43
|
readonly chain: "MAYA";
|
|
48
44
|
readonly chainId: "mayachain-mainnet-v1";
|
|
49
45
|
readonly explorerUrl: "https://www.mayascan.org";
|
|
@@ -57,8 +53,7 @@ export declare const MAYAConfig: {
|
|
|
57
53
|
export declare const StagenetMAYAConfig: {
|
|
58
54
|
readonly baseDecimal: 8;
|
|
59
55
|
readonly blockExplorerUrl: "https://www.mayascan.org";
|
|
60
|
-
readonly
|
|
61
|
-
readonly chain: "MAYA_STAGENET";
|
|
56
|
+
readonly chain: "MAYA";
|
|
62
57
|
readonly chainId: "mayachain-stagenet-v1";
|
|
63
58
|
readonly explorerUrl: "https://www.mayascan.org";
|
|
64
59
|
readonly name: "Maya";
|
|
@@ -71,7 +66,6 @@ export declare const StagenetMAYAConfig: {
|
|
|
71
66
|
export declare const KUJIConfig: {
|
|
72
67
|
readonly baseDecimal: 6;
|
|
73
68
|
readonly blockExplorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
74
|
-
readonly blockTime: 2.2;
|
|
75
69
|
readonly chain: "KUJI";
|
|
76
70
|
readonly chainId: "kaiyo-1";
|
|
77
71
|
readonly explorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
@@ -85,7 +79,6 @@ export declare const KUJIConfig: {
|
|
|
85
79
|
export declare const NOBLEConfig: {
|
|
86
80
|
readonly baseDecimal: 6;
|
|
87
81
|
readonly blockExplorerUrl: "https://www.mintscan.io/noble";
|
|
88
|
-
readonly blockTime: 1.3;
|
|
89
82
|
readonly chain: "NOBLE";
|
|
90
83
|
readonly chainId: "noble-1";
|
|
91
84
|
readonly explorerUrl: "https://www.mintscan.io/noble";
|
|
@@ -99,7 +92,6 @@ export declare const NOBLEConfig: {
|
|
|
99
92
|
export declare const CosmosChainConfigs: readonly [{
|
|
100
93
|
readonly baseDecimal: 6;
|
|
101
94
|
readonly blockExplorerUrl: "https://www.mintscan.io/cosmos";
|
|
102
|
-
readonly blockTime: 2;
|
|
103
95
|
readonly chain: "GAIA";
|
|
104
96
|
readonly chainId: "cosmoshub-4";
|
|
105
97
|
readonly explorerUrl: "https://www.mintscan.io/cosmos";
|
|
@@ -112,7 +104,6 @@ export declare const CosmosChainConfigs: readonly [{
|
|
|
112
104
|
}, {
|
|
113
105
|
readonly baseDecimal: 8;
|
|
114
106
|
readonly blockExplorerUrl: "https://runescan.io";
|
|
115
|
-
readonly blockTime: 6;
|
|
116
107
|
readonly chain: "THOR";
|
|
117
108
|
readonly chainId: "thorchain-1";
|
|
118
109
|
readonly explorerUrl: "https://runescan.io";
|
|
@@ -125,7 +116,6 @@ export declare const CosmosChainConfigs: readonly [{
|
|
|
125
116
|
}, {
|
|
126
117
|
readonly baseDecimal: 8;
|
|
127
118
|
readonly blockExplorerUrl: "https://www.mayascan.org";
|
|
128
|
-
readonly blockTime: 6;
|
|
129
119
|
readonly chain: "MAYA";
|
|
130
120
|
readonly chainId: "mayachain-mainnet-v1";
|
|
131
121
|
readonly explorerUrl: "https://www.mayascan.org";
|
|
@@ -138,7 +128,6 @@ export declare const CosmosChainConfigs: readonly [{
|
|
|
138
128
|
}, {
|
|
139
129
|
readonly baseDecimal: 6;
|
|
140
130
|
readonly blockExplorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
141
|
-
readonly blockTime: 2.2;
|
|
142
131
|
readonly chain: "KUJI";
|
|
143
132
|
readonly chainId: "kaiyo-1";
|
|
144
133
|
readonly explorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
@@ -151,7 +140,6 @@ export declare const CosmosChainConfigs: readonly [{
|
|
|
151
140
|
}, {
|
|
152
141
|
readonly baseDecimal: 6;
|
|
153
142
|
readonly blockExplorerUrl: "https://www.mintscan.io/noble";
|
|
154
|
-
readonly blockTime: 1.3;
|
|
155
143
|
readonly chain: "NOBLE";
|
|
156
144
|
readonly chainId: "noble-1";
|
|
157
145
|
readonly explorerUrl: "https://www.mintscan.io/noble";
|
|
@@ -167,8 +155,7 @@ export type CosmosChain = (typeof CosmosChains)[number];
|
|
|
167
155
|
export declare const StagenetCosmosChainConfigs: readonly [{
|
|
168
156
|
readonly baseDecimal: 8;
|
|
169
157
|
readonly blockExplorerUrl: "https://runescan.io";
|
|
170
|
-
readonly
|
|
171
|
-
readonly chain: "THOR_STAGENET";
|
|
158
|
+
readonly chain: "THOR";
|
|
172
159
|
readonly chainId: "thorchain-stagenet-v2";
|
|
173
160
|
readonly explorerUrl: "https://runescan.io";
|
|
174
161
|
readonly name: "THORChain";
|
|
@@ -180,8 +167,7 @@ export declare const StagenetCosmosChainConfigs: readonly [{
|
|
|
180
167
|
}, {
|
|
181
168
|
readonly baseDecimal: 8;
|
|
182
169
|
readonly blockExplorerUrl: "https://www.mayascan.org";
|
|
183
|
-
readonly
|
|
184
|
-
readonly chain: "MAYA_STAGENET";
|
|
170
|
+
readonly chain: "MAYA";
|
|
185
171
|
readonly chainId: "mayachain-stagenet-v1";
|
|
186
172
|
readonly explorerUrl: "https://www.mayascan.org";
|
|
187
173
|
readonly name: "Maya";
|
|
@@ -191,9 +177,9 @@ export declare const StagenetCosmosChainConfigs: readonly [{
|
|
|
191
177
|
} & {
|
|
192
178
|
chainIdHex: undefined;
|
|
193
179
|
}];
|
|
194
|
-
export declare const StagenetCosmosChains: ["
|
|
180
|
+
export declare const StagenetCosmosChains: ["THOR", "MAYA"];
|
|
195
181
|
export type StagenetCosmosChain = (typeof StagenetCosmosChains)[number];
|
|
196
182
|
export declare const CosmosChainPrefixes: Record<CosmosChain, string>;
|
|
197
|
-
export declare const TCLikeChains: readonly ["THOR", "MAYA"];
|
|
183
|
+
export declare const TCLikeChains: readonly ["THOR", "MAYA", "THOR", "MAYA"];
|
|
198
184
|
export type TCLikeChain = (typeof TCLikeChains)[number];
|
|
199
185
|
//# sourceMappingURL=cosmos.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmos.d.ts","sourceRoot":"","sources":["../../../src/chains/cosmos.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"cosmos.d.ts","sourceRoot":"","sources":["../../../src/chains/cosmos.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;;;;;;;;;;CAUrB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;CAUrB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;CAU7B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;CAUrB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;CAU7B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;CAUrB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;CAUtB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyE,CAAC;AACzG,eAAO,MAAM,YAAY,2CAAgC,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAExD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;EAAoD,CAAC;AAC5F,eAAO,MAAM,oBAAoB,kBAAwC,CAAC;AAC1E,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAM3D,CAAC;AAEF,eAAO,MAAM,YAAY,2CAKf,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const EVMChainConfigs: readonly [{
|
|
2
2
|
readonly baseDecimal: 18;
|
|
3
3
|
readonly blockExplorerUrl: "https://etherscan.io";
|
|
4
|
-
readonly blockTime: 12.5;
|
|
5
4
|
readonly chain: "ETH";
|
|
6
5
|
readonly chainId: "1";
|
|
7
6
|
readonly chainIdHex: "0x1";
|
|
@@ -15,7 +14,6 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
15
14
|
}, {
|
|
16
15
|
readonly baseDecimal: 18;
|
|
17
16
|
readonly blockExplorerUrl: "https://bscscan.com";
|
|
18
|
-
readonly blockTime: 3;
|
|
19
17
|
readonly chain: "BSC";
|
|
20
18
|
readonly chainId: "56";
|
|
21
19
|
readonly chainIdHex: "0x38";
|
|
@@ -29,7 +27,6 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
29
27
|
}, {
|
|
30
28
|
readonly baseDecimal: 18;
|
|
31
29
|
readonly blockExplorerUrl: "https://snowtrace.io";
|
|
32
|
-
readonly blockTime: 3;
|
|
33
30
|
readonly chain: "AVAX";
|
|
34
31
|
readonly chainId: "43114";
|
|
35
32
|
readonly chainIdHex: "0xa86a";
|
|
@@ -43,7 +40,6 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
43
40
|
}, {
|
|
44
41
|
readonly baseDecimal: 18;
|
|
45
42
|
readonly blockExplorerUrl: "https://polygonscan.com";
|
|
46
|
-
readonly blockTime: 2.1;
|
|
47
43
|
readonly chain: "POL";
|
|
48
44
|
readonly chainId: "137";
|
|
49
45
|
readonly chainIdHex: "0x89";
|
|
@@ -57,7 +53,6 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
57
53
|
}, {
|
|
58
54
|
readonly baseDecimal: 18;
|
|
59
55
|
readonly blockExplorerUrl: "https://arbiscan.io";
|
|
60
|
-
readonly blockTime: 0.3;
|
|
61
56
|
readonly chain: "ARB";
|
|
62
57
|
readonly chainId: "42161";
|
|
63
58
|
readonly chainIdHex: "0xa4b1";
|
|
@@ -71,7 +66,6 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
71
66
|
}, {
|
|
72
67
|
readonly baseDecimal: 18;
|
|
73
68
|
readonly blockExplorerUrl: "https://optimistic.etherscan.io";
|
|
74
|
-
readonly blockTime: 2;
|
|
75
69
|
readonly chain: "OP";
|
|
76
70
|
readonly chainId: "10";
|
|
77
71
|
readonly chainIdHex: "0xa";
|
|
@@ -85,7 +79,6 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
85
79
|
}, {
|
|
86
80
|
readonly baseDecimal: 18;
|
|
87
81
|
readonly blockExplorerUrl: "https://basescan.org";
|
|
88
|
-
readonly blockTime: 2;
|
|
89
82
|
readonly chain: "BASE";
|
|
90
83
|
readonly chainId: "8453";
|
|
91
84
|
readonly chainIdHex: "0x2105";
|
|
@@ -99,7 +92,6 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
99
92
|
}, {
|
|
100
93
|
readonly baseDecimal: 18;
|
|
101
94
|
readonly blockExplorerUrl: "https://gnosisscan.io";
|
|
102
|
-
readonly blockTime: 5.2;
|
|
103
95
|
readonly chain: "GNO";
|
|
104
96
|
readonly chainId: "100";
|
|
105
97
|
readonly chainIdHex: "0x64";
|
|
@@ -113,7 +105,6 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
113
105
|
}, {
|
|
114
106
|
readonly baseDecimal: 18;
|
|
115
107
|
readonly blockExplorerUrl: "https://explorer.mainnet.aurora.dev";
|
|
116
|
-
readonly blockTime: 1;
|
|
117
108
|
readonly chain: "AURORA";
|
|
118
109
|
readonly chainId: "1313161554";
|
|
119
110
|
readonly chainIdHex: "0x4e454152";
|
|
@@ -127,7 +118,6 @@ export declare const EVMChainConfigs: readonly [{
|
|
|
127
118
|
}, {
|
|
128
119
|
readonly baseDecimal: 18;
|
|
129
120
|
readonly blockExplorerUrl: "https://berascan.com";
|
|
130
|
-
readonly blockTime: 2;
|
|
131
121
|
readonly chain: "BERA";
|
|
132
122
|
readonly chainId: "80094";
|
|
133
123
|
readonly chainIdHex: "0x138de";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../src/chains/evm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../src/chains/evm.ts"],"names":[],"mappings":"AAsIA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWlB,CAAC;AAEX,eAAO,MAAM,SAAS,6EAA6B,CAAC;AACpD,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -6,7 +6,6 @@ export * from "./utxo";
|
|
|
6
6
|
export declare const AllChainConfigs: (({
|
|
7
7
|
readonly baseDecimal: 6;
|
|
8
8
|
readonly blockExplorerUrl: "https://www.mintscan.io/cosmos";
|
|
9
|
-
readonly blockTime: 2;
|
|
10
9
|
readonly chain: "GAIA";
|
|
11
10
|
readonly chainId: "cosmoshub-4";
|
|
12
11
|
readonly explorerUrl: "https://www.mintscan.io/cosmos";
|
|
@@ -19,7 +18,6 @@ export declare const AllChainConfigs: (({
|
|
|
19
18
|
}) | ({
|
|
20
19
|
readonly baseDecimal: 8;
|
|
21
20
|
readonly blockExplorerUrl: "https://runescan.io";
|
|
22
|
-
readonly blockTime: 6;
|
|
23
21
|
readonly chain: "THOR";
|
|
24
22
|
readonly chainId: "thorchain-1";
|
|
25
23
|
readonly explorerUrl: "https://runescan.io";
|
|
@@ -32,7 +30,6 @@ export declare const AllChainConfigs: (({
|
|
|
32
30
|
}) | ({
|
|
33
31
|
readonly baseDecimal: 8;
|
|
34
32
|
readonly blockExplorerUrl: "https://www.mayascan.org";
|
|
35
|
-
readonly blockTime: 6;
|
|
36
33
|
readonly chain: "MAYA";
|
|
37
34
|
readonly chainId: "mayachain-mainnet-v1";
|
|
38
35
|
readonly explorerUrl: "https://www.mayascan.org";
|
|
@@ -45,7 +42,6 @@ export declare const AllChainConfigs: (({
|
|
|
45
42
|
}) | ({
|
|
46
43
|
readonly baseDecimal: 6;
|
|
47
44
|
readonly blockExplorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
48
|
-
readonly blockTime: 2.2;
|
|
49
45
|
readonly chain: "KUJI";
|
|
50
46
|
readonly chainId: "kaiyo-1";
|
|
51
47
|
readonly explorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
@@ -58,7 +54,6 @@ export declare const AllChainConfigs: (({
|
|
|
58
54
|
}) | ({
|
|
59
55
|
readonly baseDecimal: 6;
|
|
60
56
|
readonly blockExplorerUrl: "https://www.mintscan.io/noble";
|
|
61
|
-
readonly blockTime: 1.3;
|
|
62
57
|
readonly chain: "NOBLE";
|
|
63
58
|
readonly chainId: "noble-1";
|
|
64
59
|
readonly explorerUrl: "https://www.mintscan.io/noble";
|
|
@@ -71,7 +66,6 @@ export declare const AllChainConfigs: (({
|
|
|
71
66
|
}) | ({
|
|
72
67
|
readonly baseDecimal: 18;
|
|
73
68
|
readonly blockExplorerUrl: "https://etherscan.io";
|
|
74
|
-
readonly blockTime: 12.5;
|
|
75
69
|
readonly chain: "ETH";
|
|
76
70
|
readonly chainId: "1";
|
|
77
71
|
readonly chainIdHex: "0x1";
|
|
@@ -85,7 +79,6 @@ export declare const AllChainConfigs: (({
|
|
|
85
79
|
}) | ({
|
|
86
80
|
readonly baseDecimal: 18;
|
|
87
81
|
readonly blockExplorerUrl: "https://bscscan.com";
|
|
88
|
-
readonly blockTime: 3;
|
|
89
82
|
readonly chain: "BSC";
|
|
90
83
|
readonly chainId: "56";
|
|
91
84
|
readonly chainIdHex: "0x38";
|
|
@@ -99,7 +92,6 @@ export declare const AllChainConfigs: (({
|
|
|
99
92
|
}) | ({
|
|
100
93
|
readonly baseDecimal: 18;
|
|
101
94
|
readonly blockExplorerUrl: "https://snowtrace.io";
|
|
102
|
-
readonly blockTime: 3;
|
|
103
95
|
readonly chain: "AVAX";
|
|
104
96
|
readonly chainId: "43114";
|
|
105
97
|
readonly chainIdHex: "0xa86a";
|
|
@@ -113,7 +105,6 @@ export declare const AllChainConfigs: (({
|
|
|
113
105
|
}) | ({
|
|
114
106
|
readonly baseDecimal: 18;
|
|
115
107
|
readonly blockExplorerUrl: "https://polygonscan.com";
|
|
116
|
-
readonly blockTime: 2.1;
|
|
117
108
|
readonly chain: "POL";
|
|
118
109
|
readonly chainId: "137";
|
|
119
110
|
readonly chainIdHex: "0x89";
|
|
@@ -127,7 +118,6 @@ export declare const AllChainConfigs: (({
|
|
|
127
118
|
}) | ({
|
|
128
119
|
readonly baseDecimal: 18;
|
|
129
120
|
readonly blockExplorerUrl: "https://arbiscan.io";
|
|
130
|
-
readonly blockTime: 0.3;
|
|
131
121
|
readonly chain: "ARB";
|
|
132
122
|
readonly chainId: "42161";
|
|
133
123
|
readonly chainIdHex: "0xa4b1";
|
|
@@ -141,7 +131,6 @@ export declare const AllChainConfigs: (({
|
|
|
141
131
|
}) | ({
|
|
142
132
|
readonly baseDecimal: 18;
|
|
143
133
|
readonly blockExplorerUrl: "https://optimistic.etherscan.io";
|
|
144
|
-
readonly blockTime: 2;
|
|
145
134
|
readonly chain: "OP";
|
|
146
135
|
readonly chainId: "10";
|
|
147
136
|
readonly chainIdHex: "0xa";
|
|
@@ -155,7 +144,6 @@ export declare const AllChainConfigs: (({
|
|
|
155
144
|
}) | ({
|
|
156
145
|
readonly baseDecimal: 18;
|
|
157
146
|
readonly blockExplorerUrl: "https://basescan.org";
|
|
158
|
-
readonly blockTime: 2;
|
|
159
147
|
readonly chain: "BASE";
|
|
160
148
|
readonly chainId: "8453";
|
|
161
149
|
readonly chainIdHex: "0x2105";
|
|
@@ -169,7 +157,6 @@ export declare const AllChainConfigs: (({
|
|
|
169
157
|
}) | ({
|
|
170
158
|
readonly baseDecimal: 18;
|
|
171
159
|
readonly blockExplorerUrl: "https://gnosisscan.io";
|
|
172
|
-
readonly blockTime: 5.2;
|
|
173
160
|
readonly chain: "GNO";
|
|
174
161
|
readonly chainId: "100";
|
|
175
162
|
readonly chainIdHex: "0x64";
|
|
@@ -183,7 +170,6 @@ export declare const AllChainConfigs: (({
|
|
|
183
170
|
}) | ({
|
|
184
171
|
readonly baseDecimal: 18;
|
|
185
172
|
readonly blockExplorerUrl: "https://explorer.mainnet.aurora.dev";
|
|
186
|
-
readonly blockTime: 1;
|
|
187
173
|
readonly chain: "AURORA";
|
|
188
174
|
readonly chainId: "1313161554";
|
|
189
175
|
readonly chainIdHex: "0x4e454152";
|
|
@@ -197,7 +183,6 @@ export declare const AllChainConfigs: (({
|
|
|
197
183
|
}) | ({
|
|
198
184
|
readonly baseDecimal: 18;
|
|
199
185
|
readonly blockExplorerUrl: "https://berascan.com";
|
|
200
|
-
readonly blockTime: 2;
|
|
201
186
|
readonly chain: "BERA";
|
|
202
187
|
readonly chainId: "80094";
|
|
203
188
|
readonly chainIdHex: "0x138de";
|
|
@@ -211,7 +196,6 @@ export declare const AllChainConfigs: (({
|
|
|
211
196
|
}) | ({
|
|
212
197
|
readonly baseDecimal: 24;
|
|
213
198
|
readonly blockExplorerUrl: "https://nearblocks.io";
|
|
214
|
-
readonly blockTime: 1;
|
|
215
199
|
readonly chain: "NEAR";
|
|
216
200
|
readonly chainId: "near";
|
|
217
201
|
readonly explorerUrl: "https://nearblocks.io";
|
|
@@ -224,7 +208,6 @@ export declare const AllChainConfigs: (({
|
|
|
224
208
|
}) | ({
|
|
225
209
|
readonly baseDecimal: 18;
|
|
226
210
|
readonly blockExplorerUrl: "https://dashboard.radixdlt.com";
|
|
227
|
-
readonly blockTime: 5;
|
|
228
211
|
readonly chain: "XRD";
|
|
229
212
|
readonly chainId: "radix-mainnet";
|
|
230
213
|
readonly explorerUrl: "https://dashboard.radixdlt.com";
|
|
@@ -237,7 +220,6 @@ export declare const AllChainConfigs: (({
|
|
|
237
220
|
}) | ({
|
|
238
221
|
readonly baseDecimal: 6;
|
|
239
222
|
readonly blockExplorerUrl: "https://livenet.xrpl.org/";
|
|
240
|
-
readonly blockTime: 5;
|
|
241
223
|
readonly chain: "XRP";
|
|
242
224
|
readonly chainId: "ripple";
|
|
243
225
|
readonly explorerUrl: "https://livenet.xrpl.org/";
|
|
@@ -250,7 +232,6 @@ export declare const AllChainConfigs: (({
|
|
|
250
232
|
}) | ({
|
|
251
233
|
readonly baseDecimal: 9;
|
|
252
234
|
readonly blockExplorerUrl: "https://solscan.io";
|
|
253
|
-
readonly blockTime: 0.4;
|
|
254
235
|
readonly chain: "SOL";
|
|
255
236
|
readonly chainId: "solana";
|
|
256
237
|
readonly explorerUrl: "https://solscan.io";
|
|
@@ -263,7 +244,6 @@ export declare const AllChainConfigs: (({
|
|
|
263
244
|
}) | ({
|
|
264
245
|
readonly baseDecimal: 6;
|
|
265
246
|
readonly blockExplorerUrl: "https://tronscan.org";
|
|
266
|
-
readonly blockTime: 3;
|
|
267
247
|
readonly chain: "TRON";
|
|
268
248
|
readonly chainId: "728126428";
|
|
269
249
|
readonly chainIdHex: "0x2b6653dc";
|
|
@@ -277,7 +257,6 @@ export declare const AllChainConfigs: (({
|
|
|
277
257
|
}) | ({
|
|
278
258
|
readonly baseDecimal: 2;
|
|
279
259
|
readonly blockExplorerUrl: "";
|
|
280
|
-
readonly blockTime: 60;
|
|
281
260
|
readonly chain: "FIAT";
|
|
282
261
|
readonly chainId: "fiat";
|
|
283
262
|
readonly explorerUrl: "";
|
|
@@ -290,7 +269,6 @@ export declare const AllChainConfigs: (({
|
|
|
290
269
|
}) | ({
|
|
291
270
|
readonly baseDecimal: 10;
|
|
292
271
|
readonly blockExplorerUrl: "https://polkadot.subscan.io";
|
|
293
|
-
readonly blockTime: 6;
|
|
294
272
|
readonly chain: "DOT";
|
|
295
273
|
readonly chainId: "polkadot";
|
|
296
274
|
readonly explorerUrl: "https://polkadot.subscan.io";
|
|
@@ -303,7 +281,6 @@ export declare const AllChainConfigs: (({
|
|
|
303
281
|
}) | ({
|
|
304
282
|
readonly baseDecimal: 18;
|
|
305
283
|
readonly blockExplorerUrl: "https://explorer.polkascan.io/polkadot";
|
|
306
|
-
readonly blockTime: 5;
|
|
307
284
|
readonly chain: "FLIP";
|
|
308
285
|
readonly chainId: "chainflip";
|
|
309
286
|
readonly explorerUrl: "https://explorer.polkascan.io/polkadot";
|
|
@@ -316,7 +293,6 @@ export declare const AllChainConfigs: (({
|
|
|
316
293
|
}) | ({
|
|
317
294
|
readonly baseDecimal: 8;
|
|
318
295
|
readonly blockExplorerUrl: "https://blockchair.com/bitcoin";
|
|
319
|
-
readonly blockTime: 600;
|
|
320
296
|
readonly chain: "BTC";
|
|
321
297
|
readonly chainId: "bitcoin";
|
|
322
298
|
readonly explorerUrl: "https://blockchair.com/bitcoin";
|
|
@@ -329,7 +305,6 @@ export declare const AllChainConfigs: (({
|
|
|
329
305
|
}) | ({
|
|
330
306
|
readonly baseDecimal: 8;
|
|
331
307
|
readonly blockExplorerUrl: "https://www.blockchair.com/bitcoin-cash";
|
|
332
|
-
readonly blockTime: 600;
|
|
333
308
|
readonly chain: "BCH";
|
|
334
309
|
readonly chainId: "bitcoincash";
|
|
335
310
|
readonly explorerUrl: "https://www.blockchair.com/bitcoin-cash";
|
|
@@ -342,7 +317,6 @@ export declare const AllChainConfigs: (({
|
|
|
342
317
|
}) | ({
|
|
343
318
|
readonly baseDecimal: 8;
|
|
344
319
|
readonly blockExplorerUrl: "https://blockchair.com/litecoin";
|
|
345
|
-
readonly blockTime: 150;
|
|
346
320
|
readonly chain: "LTC";
|
|
347
321
|
readonly chainId: "litecoin";
|
|
348
322
|
readonly explorerUrl: "https://blockchair.com/litecoin";
|
|
@@ -355,7 +329,6 @@ export declare const AllChainConfigs: (({
|
|
|
355
329
|
}) | ({
|
|
356
330
|
readonly baseDecimal: 8;
|
|
357
331
|
readonly blockExplorerUrl: "https://blockchair.com/dogecoin";
|
|
358
|
-
readonly blockTime: 600;
|
|
359
332
|
readonly chain: "DOGE";
|
|
360
333
|
readonly chainId: "dogecoin";
|
|
361
334
|
readonly explorerUrl: "https://blockchair.com/dogecoin";
|
|
@@ -368,7 +341,6 @@ export declare const AllChainConfigs: (({
|
|
|
368
341
|
}) | ({
|
|
369
342
|
readonly baseDecimal: 8;
|
|
370
343
|
readonly blockExplorerUrl: "https://blockchair.com/dash";
|
|
371
|
-
readonly blockTime: 150;
|
|
372
344
|
readonly chain: "DASH";
|
|
373
345
|
readonly chainId: "dash";
|
|
374
346
|
readonly explorerUrl: "https://blockchair.com/dash";
|
|
@@ -381,7 +353,6 @@ export declare const AllChainConfigs: (({
|
|
|
381
353
|
}) | ({
|
|
382
354
|
readonly baseDecimal: 8;
|
|
383
355
|
readonly blockExplorerUrl: "https://blockchair.com/zcash";
|
|
384
|
-
readonly blockTime: 150;
|
|
385
356
|
readonly chain: "ZEC";
|
|
386
357
|
readonly chainId: "zcash";
|
|
387
358
|
readonly explorerUrl: "https://blockchair.com/zcash";
|
|
@@ -393,14 +364,11 @@ export declare const AllChainConfigs: (({
|
|
|
393
364
|
chainIdHex: undefined;
|
|
394
365
|
}))[];
|
|
395
366
|
export type AllChainConfigs = typeof AllChainConfigs;
|
|
396
|
-
export type ChainConfig = AllChainConfigs[number];
|
|
397
367
|
export declare const AllChains: ("GAIA" | "THOR" | "MAYA" | "KUJI" | "NOBLE" | "ETH" | "BSC" | "AVAX" | "POL" | "ARB" | "OP" | "BASE" | "GNO" | "AURORA" | "BERA" | "NEAR" | "XRD" | "XRP" | "SOL" | "TRON" | "FIAT" | "DOT" | "FLIP" | "BTC" | "BCH" | "LTC" | "DOGE" | "DASH" | "ZEC")[];
|
|
398
|
-
export
|
|
399
|
-
export declare const AllStagenetChainConfigs: (({
|
|
368
|
+
export declare const StagenetChainConfigs: (({
|
|
400
369
|
readonly baseDecimal: 8;
|
|
401
370
|
readonly blockExplorerUrl: "https://runescan.io";
|
|
402
|
-
readonly
|
|
403
|
-
readonly chain: "THOR_STAGENET";
|
|
371
|
+
readonly chain: "THOR";
|
|
404
372
|
readonly chainId: "thorchain-stagenet-v2";
|
|
405
373
|
readonly explorerUrl: "https://runescan.io";
|
|
406
374
|
readonly name: "THORChain";
|
|
@@ -412,8 +380,7 @@ export declare const AllStagenetChainConfigs: (({
|
|
|
412
380
|
}) | ({
|
|
413
381
|
readonly baseDecimal: 8;
|
|
414
382
|
readonly blockExplorerUrl: "https://www.mayascan.org";
|
|
415
|
-
readonly
|
|
416
|
-
readonly chain: "MAYA_STAGENET";
|
|
383
|
+
readonly chain: "MAYA";
|
|
417
384
|
readonly chainId: "mayachain-stagenet-v1";
|
|
418
385
|
readonly explorerUrl: "https://www.mayascan.org";
|
|
419
386
|
readonly name: "Maya";
|
|
@@ -423,122 +390,22 @@ export declare const AllStagenetChainConfigs: (({
|
|
|
423
390
|
} & {
|
|
424
391
|
chainIdHex: undefined;
|
|
425
392
|
}))[];
|
|
426
|
-
export type
|
|
427
|
-
export
|
|
428
|
-
export declare const
|
|
429
|
-
export type StagenetChains = typeof StagenetChains;
|
|
430
|
-
export declare const Chain: { readonly [K in ChainConfig["name"]]: Extract<ChainConfig, {
|
|
431
|
-
chain: K;
|
|
432
|
-
} | {
|
|
393
|
+
export type StagenetChainConfigs = typeof StagenetChainConfigs;
|
|
394
|
+
export declare const StagenetChains: ("THOR" | "MAYA")[];
|
|
395
|
+
export declare const Chain: { readonly [K in AllChainConfigs[number]["name"]]: Extract<AllChainConfigs[number], {
|
|
433
396
|
name: K;
|
|
434
397
|
}>["chain"]; };
|
|
435
|
-
export type Chain =
|
|
436
|
-
export declare const ChainId: { readonly [K in
|
|
398
|
+
export type Chain = AllChainConfigs[number]["chain"];
|
|
399
|
+
export declare const ChainId: { readonly [K in AllChainConfigs[number]["chain"]]: Extract<AllChainConfigs[number], {
|
|
437
400
|
chain: K;
|
|
438
|
-
} | {
|
|
439
|
-
name: K;
|
|
440
401
|
}>["chainId"]; };
|
|
441
|
-
export type ChainId =
|
|
442
|
-
export declare const StagenetChain: { readonly [K in StagenetChainConfigs["name"]]:
|
|
443
|
-
|
|
444
|
-
} | {
|
|
445
|
-
name: K;
|
|
446
|
-
}>["chain"]; };
|
|
447
|
-
export type StagenetChain = (typeof StagenetChain)[StagenetChainConfigs["name"]];
|
|
402
|
+
export type ChainId = AllChainConfigs[number]["chainId"];
|
|
403
|
+
export declare const StagenetChain: { readonly [K in StagenetChainConfigs[number]["name"]]: `${StagenetChainConfigs[number]["chain"]}_STAGENET`; };
|
|
404
|
+
export type StagenetChain = StagenetChainConfigs[number]["chain"];
|
|
448
405
|
type ChainConfigMap = {
|
|
449
|
-
[K in
|
|
406
|
+
[K in AllChainConfigs[number]["chain"]]: Extract<AllChainConfigs[number], {
|
|
450
407
|
chain: K;
|
|
451
408
|
}>;
|
|
452
409
|
};
|
|
453
|
-
export declare function getChainConfig<T extends
|
|
454
|
-
/**
|
|
455
|
-
* @deprecated use ChainId instead
|
|
456
|
-
* @example
|
|
457
|
-
* ```diff
|
|
458
|
-
* -const chainId = ChainToChainId[Chain.Ethereum];
|
|
459
|
-
* +const chainId = ChainId[Chain.Ethereum];
|
|
460
|
-
* ```
|
|
461
|
-
*/
|
|
462
|
-
export declare const ChainToChainId: {
|
|
463
|
-
readonly GAIA: "cosmoshub-4";
|
|
464
|
-
readonly Cosmos: "cosmoshub-4";
|
|
465
|
-
readonly THOR: "thorchain-1";
|
|
466
|
-
readonly THORChain: "thorchain-1";
|
|
467
|
-
readonly MAYA: "mayachain-mainnet-v1";
|
|
468
|
-
readonly Maya: "mayachain-mainnet-v1";
|
|
469
|
-
readonly KUJI: "kaiyo-1";
|
|
470
|
-
readonly Kujira: "kaiyo-1";
|
|
471
|
-
readonly NOBLE: "noble-1";
|
|
472
|
-
readonly Noble: "noble-1";
|
|
473
|
-
readonly ETH: "1";
|
|
474
|
-
readonly Ethereum: "1";
|
|
475
|
-
readonly BSC: "56";
|
|
476
|
-
readonly BinanceSmartChain: "56";
|
|
477
|
-
readonly AVAX: "43114";
|
|
478
|
-
readonly Avalanche: "43114";
|
|
479
|
-
readonly POL: "137";
|
|
480
|
-
readonly Polygon: "137";
|
|
481
|
-
readonly ARB: "42161";
|
|
482
|
-
readonly Arbitrum: "42161";
|
|
483
|
-
readonly OP: "10";
|
|
484
|
-
readonly Optimism: "10";
|
|
485
|
-
readonly BASE: "8453";
|
|
486
|
-
readonly Base: "8453";
|
|
487
|
-
readonly GNO: "100";
|
|
488
|
-
readonly Gnosis: "100";
|
|
489
|
-
readonly AURORA: "1313161554";
|
|
490
|
-
readonly Aurora: "1313161554";
|
|
491
|
-
readonly BERA: "80094";
|
|
492
|
-
readonly Berachain: "80094";
|
|
493
|
-
readonly NEAR: "near";
|
|
494
|
-
readonly Near: "near";
|
|
495
|
-
readonly XRD: "radix-mainnet";
|
|
496
|
-
readonly Radix: "radix-mainnet";
|
|
497
|
-
readonly XRP: "ripple";
|
|
498
|
-
readonly Ripple: "ripple";
|
|
499
|
-
readonly SOL: "solana";
|
|
500
|
-
readonly Solana: "solana";
|
|
501
|
-
readonly TRON: "728126428";
|
|
502
|
-
readonly Tron: "728126428";
|
|
503
|
-
readonly FIAT: "fiat";
|
|
504
|
-
readonly Fiat: "fiat";
|
|
505
|
-
readonly DOT: "polkadot";
|
|
506
|
-
readonly Polkadot: "polkadot";
|
|
507
|
-
readonly FLIP: "chainflip";
|
|
508
|
-
readonly Chainflip: "chainflip";
|
|
509
|
-
readonly BTC: "bitcoin";
|
|
510
|
-
readonly Bitcoin: "bitcoin";
|
|
511
|
-
readonly BCH: "bitcoincash";
|
|
512
|
-
readonly BitcoinCash: "bitcoincash";
|
|
513
|
-
readonly LTC: "litecoin";
|
|
514
|
-
readonly Litecoin: "litecoin";
|
|
515
|
-
readonly DOGE: "dogecoin";
|
|
516
|
-
readonly Dogecoin: "dogecoin";
|
|
517
|
-
readonly DASH: "dash";
|
|
518
|
-
readonly Dash: "dash";
|
|
519
|
-
readonly ZEC: "zcash";
|
|
520
|
-
readonly Zcash: "zcash";
|
|
521
|
-
};
|
|
522
|
-
/**
|
|
523
|
-
* @deprecated use getChainConfig instead
|
|
524
|
-
* @example
|
|
525
|
-
* ```diff
|
|
526
|
-
* -const chain = ChainIdToChain[ChainId.Ethereum];
|
|
527
|
-
* +const { chain } = getChainConfig(ChainId.Ethereum);
|
|
528
|
-
* ```
|
|
529
|
-
*/
|
|
530
|
-
export declare const ChainIdToChain: { readonly [K in ChainConfig["chainId"]]: Extract<ChainConfig, {
|
|
531
|
-
chainId: K;
|
|
532
|
-
}>["chain"]; };
|
|
533
|
-
/**
|
|
534
|
-
* @deprecated use getChainConfig instead
|
|
535
|
-
* @example
|
|
536
|
-
* ```diff
|
|
537
|
-
* -const baseDecimal = BaseDecimal[Chain.Ethereum];
|
|
538
|
-
* +const { baseDecimal } = getChainConfig(Chain.Ethereum);
|
|
539
|
-
* ```
|
|
540
|
-
*/
|
|
541
|
-
export declare const BaseDecimal: { readonly [K in ChainConfig["chain"]]: Extract<ChainConfig, {
|
|
542
|
-
chain: K;
|
|
543
|
-
}>["baseDecimal"]; };
|
|
410
|
+
export declare function getChainConfig<T extends AllChainConfigs[number]["chain"]>(chain: T): ChainConfigMap[T];
|
|
544
411
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chains/index.ts"],"names":[],"mappings":"AAOA,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC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OAAO,CAAC,CAAC;AACrD,eAAO,MAAM,OAAO,EAAiG,EACnH,QAAQ,EAAE,CAAC,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE;IAAE,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC,SAAS,CAAC,GAC5G,CAAC;AACF,MAAM,MAAM,OAAO,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;AAEzD,eAAO,MAAM,aAAa,EAErB,EACH,QAAQ,EAAE,CAAC,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,WAAW,GAC1G,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;AAElE,KAAK,cAAc,GAAG;KACnB,CAAC,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,CAAC,CAAA;KAAE,CAAC;CACxF,CAAC;AAMF,wBAAgB,cAAc,CAAC,CAAC,SAAS,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAItG"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const OtherChainConfigs: readonly [{
|
|
2
2
|
readonly baseDecimal: 24;
|
|
3
3
|
readonly blockExplorerUrl: "https://nearblocks.io";
|
|
4
|
-
readonly blockTime: 1;
|
|
5
4
|
readonly chain: "NEAR";
|
|
6
5
|
readonly chainId: "near";
|
|
7
6
|
readonly explorerUrl: "https://nearblocks.io";
|
|
@@ -14,7 +13,6 @@ export declare const OtherChainConfigs: readonly [{
|
|
|
14
13
|
}, {
|
|
15
14
|
readonly baseDecimal: 18;
|
|
16
15
|
readonly blockExplorerUrl: "https://dashboard.radixdlt.com";
|
|
17
|
-
readonly blockTime: 5;
|
|
18
16
|
readonly chain: "XRD";
|
|
19
17
|
readonly chainId: "radix-mainnet";
|
|
20
18
|
readonly explorerUrl: "https://dashboard.radixdlt.com";
|
|
@@ -27,7 +25,6 @@ export declare const OtherChainConfigs: readonly [{
|
|
|
27
25
|
}, {
|
|
28
26
|
readonly baseDecimal: 6;
|
|
29
27
|
readonly blockExplorerUrl: "https://livenet.xrpl.org/";
|
|
30
|
-
readonly blockTime: 5;
|
|
31
28
|
readonly chain: "XRP";
|
|
32
29
|
readonly chainId: "ripple";
|
|
33
30
|
readonly explorerUrl: "https://livenet.xrpl.org/";
|
|
@@ -40,7 +37,6 @@ export declare const OtherChainConfigs: readonly [{
|
|
|
40
37
|
}, {
|
|
41
38
|
readonly baseDecimal: 9;
|
|
42
39
|
readonly blockExplorerUrl: "https://solscan.io";
|
|
43
|
-
readonly blockTime: 0.4;
|
|
44
40
|
readonly chain: "SOL";
|
|
45
41
|
readonly chainId: "solana";
|
|
46
42
|
readonly explorerUrl: "https://solscan.io";
|
|
@@ -53,7 +49,6 @@ export declare const OtherChainConfigs: readonly [{
|
|
|
53
49
|
}, {
|
|
54
50
|
readonly baseDecimal: 6;
|
|
55
51
|
readonly blockExplorerUrl: "https://tronscan.org";
|
|
56
|
-
readonly blockTime: 3;
|
|
57
52
|
readonly chain: "TRON";
|
|
58
53
|
readonly chainId: "728126428";
|
|
59
54
|
readonly chainIdHex: "0x2b6653dc";
|
|
@@ -67,7 +62,6 @@ export declare const OtherChainConfigs: readonly [{
|
|
|
67
62
|
}, {
|
|
68
63
|
readonly baseDecimal: 2;
|
|
69
64
|
readonly blockExplorerUrl: "";
|
|
70
|
-
readonly blockTime: 60;
|
|
71
65
|
readonly chain: "FIAT";
|
|
72
66
|
readonly chainId: "fiat";
|
|
73
67
|
readonly explorerUrl: "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"others.d.ts","sourceRoot":"","sources":["../../../src/chains/others.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"others.d.ts","sourceRoot":"","sources":["../../../src/chains/others.ts"],"names":[],"mappings":"AA6EA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6C,CAAC;AAC5E,eAAO,MAAM,WAAW,+CAA+B,CAAC;AACxD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const SubstrateChainConfigs: readonly [{
|
|
2
2
|
readonly baseDecimal: 10;
|
|
3
3
|
readonly blockExplorerUrl: "https://polkadot.subscan.io";
|
|
4
|
-
readonly blockTime: 6;
|
|
5
4
|
readonly chain: "DOT";
|
|
6
5
|
readonly chainId: "polkadot";
|
|
7
6
|
readonly explorerUrl: "https://polkadot.subscan.io";
|
|
@@ -14,7 +13,6 @@ export declare const SubstrateChainConfigs: readonly [{
|
|
|
14
13
|
}, {
|
|
15
14
|
readonly baseDecimal: 18;
|
|
16
15
|
readonly blockExplorerUrl: "https://explorer.polkascan.io/polkadot";
|
|
17
|
-
readonly blockTime: 5;
|
|
18
16
|
readonly chain: "FLIP";
|
|
19
17
|
readonly chainId: "chainflip";
|
|
20
18
|
readonly explorerUrl: "https://explorer.polkascan.io/polkadot";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"substrate.d.ts","sourceRoot":"","sources":["../../../src/chains/substrate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"substrate.d.ts","sourceRoot":"","sources":["../../../src/chains/substrate.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EAAuB,CAAC;AAC1D,eAAO,MAAM,eAAe,iBAAmC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const UTXOChainConfigs: readonly [{
|
|
2
2
|
readonly baseDecimal: 8;
|
|
3
3
|
readonly blockExplorerUrl: "https://blockchair.com/bitcoin";
|
|
4
|
-
readonly blockTime: 600;
|
|
5
4
|
readonly chain: "BTC";
|
|
6
5
|
readonly chainId: "bitcoin";
|
|
7
6
|
readonly explorerUrl: "https://blockchair.com/bitcoin";
|
|
@@ -14,7 +13,6 @@ export declare const UTXOChainConfigs: readonly [{
|
|
|
14
13
|
}, {
|
|
15
14
|
readonly baseDecimal: 8;
|
|
16
15
|
readonly blockExplorerUrl: "https://www.blockchair.com/bitcoin-cash";
|
|
17
|
-
readonly blockTime: 600;
|
|
18
16
|
readonly chain: "BCH";
|
|
19
17
|
readonly chainId: "bitcoincash";
|
|
20
18
|
readonly explorerUrl: "https://www.blockchair.com/bitcoin-cash";
|
|
@@ -27,7 +25,6 @@ export declare const UTXOChainConfigs: readonly [{
|
|
|
27
25
|
}, {
|
|
28
26
|
readonly baseDecimal: 8;
|
|
29
27
|
readonly blockExplorerUrl: "https://blockchair.com/litecoin";
|
|
30
|
-
readonly blockTime: 150;
|
|
31
28
|
readonly chain: "LTC";
|
|
32
29
|
readonly chainId: "litecoin";
|
|
33
30
|
readonly explorerUrl: "https://blockchair.com/litecoin";
|
|
@@ -40,7 +37,6 @@ export declare const UTXOChainConfigs: readonly [{
|
|
|
40
37
|
}, {
|
|
41
38
|
readonly baseDecimal: 8;
|
|
42
39
|
readonly blockExplorerUrl: "https://blockchair.com/dogecoin";
|
|
43
|
-
readonly blockTime: 600;
|
|
44
40
|
readonly chain: "DOGE";
|
|
45
41
|
readonly chainId: "dogecoin";
|
|
46
42
|
readonly explorerUrl: "https://blockchair.com/dogecoin";
|
|
@@ -53,7 +49,6 @@ export declare const UTXOChainConfigs: readonly [{
|
|
|
53
49
|
}, {
|
|
54
50
|
readonly baseDecimal: 8;
|
|
55
51
|
readonly blockExplorerUrl: "https://blockchair.com/dash";
|
|
56
|
-
readonly blockTime: 150;
|
|
57
52
|
readonly chain: "DASH";
|
|
58
53
|
readonly chainId: "dash";
|
|
59
54
|
readonly explorerUrl: "https://blockchair.com/dash";
|
|
@@ -66,7 +61,6 @@ export declare const UTXOChainConfigs: readonly [{
|
|
|
66
61
|
}, {
|
|
67
62
|
readonly baseDecimal: 8;
|
|
68
63
|
readonly blockExplorerUrl: "https://blockchair.com/zcash";
|
|
69
|
-
readonly blockTime: 150;
|
|
70
64
|
readonly chain: "ZEC";
|
|
71
65
|
readonly chainId: "zcash";
|
|
72
66
|
readonly explorerUrl: "https://blockchair.com/zcash";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utxo.d.ts","sourceRoot":"","sources":["../../../src/chains/utxo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utxo.d.ts","sourceRoot":"","sources":["../../../src/chains/utxo.ts"],"names":[],"mappings":"AA0EA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4C,CAAC;AAC1E,eAAO,MAAM,UAAU,8CAA8B,CAAC;AACtD,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/package.json
CHANGED