Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@swapkit/types

Package Overview
Dependencies
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swapkit/types - npm Package Compare versions

Comparing version 0.0.0-nightly-20240404101759 to 0.0.0-nightly-20240404142225

4

dist/index.js

@@ -1,3 +0,3 @@

var T=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"}];var A=[{inputs:[{internalType:"address",name:"rune",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldVault",type:"address"},{indexed:!0,internalType:"address",name:"newVault",type:"address"},{indexed:!1,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferAllowance",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferOut",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!1,internalType:"address",name:"target",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"address",name:"finalAsset",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amountOutMin",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferOutAndCall",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldVault",type:"address"},{indexed:!0,internalType:"address",name:"newVault",type:"address"},{components:[{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],indexed:!1,internalType:"struct THORChain_Router.Coin[]",name:"coins",type:"tuple[]"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"VaultTransfer",type:"event"},{inputs:[],name:"RUNE",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address payable",name:"vault",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address payable",name:"vault",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"},{internalType:"uint256",name:"expiration",type:"uint256"}],name:"depositWithExpiry",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"router",type:"address"},{internalType:"address payable",name:"asgard",type:"address"},{components:[{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct THORChain_Router.Coin[]",name:"coins",type:"tuple[]"},{internalType:"string",name:"memo",type:"string"}],name:"returnVaultAssets",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"router",type:"address"},{internalType:"address",name:"newVault",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferAllowance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"to",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferOut",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address payable",name:"aggregator",type:"address"},{internalType:"address",name:"finalToken",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferOutAndCall",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"vault",type:"address"},{internalType:"address",name:"token",type:"address"}],name:"vaultAllowance",outputs:[{internalType:"uint256",name:"amount",type:"uint256"}],stateMutability:"view",type:"function"}],p=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldVault",type:"address"},{indexed:!0,internalType:"address",name:"newVault",type:"address"},{indexed:!1,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferAllowance",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferOut",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!1,internalType:"address",name:"target",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"address",name:"finalAsset",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amountOutMin",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferOutAndCall",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldVault",type:"address"},{indexed:!0,internalType:"address",name:"newVault",type:"address"},{components:[{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],indexed:!1,internalType:"struct AvaxRouter.Coin[]",name:"coins",type:"tuple[]"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"VaultTransfer",type:"event"},{inputs:[{internalType:"address payable",name:"vault",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address payable",name:"vault",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"},{internalType:"uint256",name:"expiration",type:"uint256"}],name:"depositWithExpiry",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"router",type:"address"},{internalType:"address payable",name:"asgard",type:"address"},{components:[{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct AvaxRouter.Coin[]",name:"coins",type:"tuple[]"},{internalType:"string",name:"memo",type:"string"}],name:"returnVaultAssets",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"router",type:"address"},{internalType:"address",name:"newVault",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferAllowance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"to",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferOut",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address payable",name:"target",type:"address"},{internalType:"address",name:"finalToken",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferOutAndCall",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"vault",type:"address"},{internalType:"address",name:"token",type:"address"}],name:"vaultAllowance",outputs:[{internalType:"uint256",name:"amount",type:"uint256"}],stateMutability:"view",type:"function"}],W=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldVault",type:"address"},{indexed:!0,internalType:"address",name:"newVault",type:"address"},{indexed:!1,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferAllowance",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferOut",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!1,internalType:"address",name:"target",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"address",name:"finalAsset",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amountOutMin",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferOutAndCall",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldVault",type:"address"},{indexed:!0,internalType:"address",name:"newVault",type:"address"},{components:[{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],indexed:!1,internalType:"struct THORChain_Router.Coin[]",name:"coins",type:"tuple[]"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"VaultTransfer",type:"event"},{inputs:[{internalType:"address payable",name:"vault",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"},{internalType:"uint256",name:"expiration",type:"uint256"}],name:"depositWithExpiry",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"router",type:"address"},{internalType:"address payable",name:"asgard",type:"address"},{components:[{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct THORChain_Router.Coin[]",name:"coins",type:"tuple[]"},{internalType:"string",name:"memo",type:"string"}],name:"returnVaultAssets",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"router",type:"address"},{internalType:"address",name:"newVault",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferAllowance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"to",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferOut",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address payable",name:"target",type:"address"},{internalType:"address",name:"finalToken",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferOutAndCall",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"vault",type:"address"},{internalType:"address",name:"token",type:"address"}],name:"vaultAllowance",outputs:[{internalType:"uint256",name:"amount",type:"uint256"}],stateMutability:"view",type:"function"}];var S;(function(w){w["TC_SUPPORTED_TO_TC_SUPPORTED"]="TC-TC";w["TC_SUPPORTED_TO_ETH"]="TC-ERC20";w["TC_SUPPORTED_TO_AVAX"]="TC-ARC20";w["TC_SUPPORTED_TO_BSC"]="TC-BEP20";w["ETH_TO_TC_SUPPORTED"]="ERC20-TC";w["ETH_TO_ETH"]="ERC20-ERC20";w["ETH_TO_AVAX"]="ERC20-ARC20";w["ETH_TO_BSC"]="ERC20-BEP20";w["AVAX_TO_TC_SUPPORTED"]="ARC20-TC";w["AVAX_TO_ETH"]="ARC20-ERC20";w["AVAX_TO_AVAX"]="ARC20-ARC20";w["AVAX_TO_BSC"]="ARC20-BEP20";w["BSC_TO_TC_SUPPORTED"]="BEP20-TC";w["BSC_TO_ETH"]="BEP20-ERC20";w["BSC_TO_AVAX"]="BEP20-ARC20";w["BSC_TO_BSC"]="BEP20-BEP20"})(S||(S={}));var m=[S.ETH_TO_ETH,S.AVAX_TO_AVAX,S.BSC_TO_BSC],s=[S.ETH_TO_TC_SUPPORTED,S.ETH_TO_AVAX,S.ETH_TO_BSC,S.AVAX_TO_TC_SUPPORTED,S.AVAX_TO_ETH,S.AVAX_TO_BSC,S.BSC_TO_TC_SUPPORTED,S.BSC_TO_ETH,S.BSC_TO_AVAX],M=[S.TC_SUPPORTED_TO_TC_SUPPORTED,S.TC_SUPPORTED_TO_ETH,S.TC_SUPPORTED_TO_AVAX,S.TC_SUPPORTED_TO_BSC];var x;(function(f){f["Arbitrum"]="ARB";f["Avalanche"]="AVAX";f["Binance"]="BNB";f["BinanceSmartChain"]="BSC";f["Bitcoin"]="BTC";f["BitcoinCash"]="BCH";f["Cosmos"]="GAIA";f["Dash"]="DASH";f["Dogecoin"]="DOGE";f["Ethereum"]="ETH";f["Kujira"]="KUJI";f["Litecoin"]="LTC";f["Maya"]="MAYA";f["Optimism"]="OP";f["Polkadot"]="DOT";f["Chainflip"]="FLIP";f["Polygon"]="MATIC";f["THORChain"]="THOR"})(x||(x={}));var b;(function(q){q["ARB"]="0x0000000000000000000000000000000000000000";q["AVAX"]="0x0000000000000000000000000000000000000000";q["ETH"]="0x0000000000000000000000000000000000000000";q["BSC"]="0x0000000000000000000000000000000000000000";q["MATIC"]="0x0000000000000000000000000000000000001010";q["OP"]="0x4200000000000000000000000000000000000042"})(b||(b={}));var k;(function(f){f["ARB"]="m/44'/60'/0'/0";f["AVAX"]="m/44'/60'/0'/0";f["BCH"]="m/44'/145'/0'/0";f["BNB"]="m/44'/714'/0'/0";f["BSC"]="m/44'/60'/0'/0";f["BTC"]="m/84'/0'/0'/0";f["DASH"]="m/44'/5'/0'/0";f["DOGE"]="m/44'/3'/0'/0";f["DOT"]="////";f["ETH"]="m/44'/60'/0'/0";f["FLIP"]="////";f["GAIA"]="m/44'/118'/0'/0";f["KUJI"]="m/44'/118'/0'/0";f["LTC"]="m/84'/2'/0'/0";f["MATIC"]="m/44'/60'/0'/0";f["MAYA"]="m/44'/931'/0'/0";f["OP"]="m/44'/60'/0'/0";f["THOR"]="m/44'/931'/0'/0"})(k||(k={}));var I={ARB:[44,60,0,0,0],AVAX:[44,60,0,0,0],BCH:[44,145,0,0,0],BNB:[44,714,0,0,0],BSC:[44,60,0,0,0],BTC:[84,0,0,0,0],DASH:[44,5,0,0,0],DOGE:[44,3,0,0,0],ETH:[44,60,0,0,0],GAIA:[44,118,0,0,0],KUJI:[44,118,0,0,0],LTC:[84,2,0,0,0],MATIC:[44,60,0,0,0],MAYA:[44,931,0,0,0],OP:[44,60,0,0,0],THOR:[44,931,0,0,0],DOT:[0,0,0,0,0],FLIP:[0,0,0,0,0]},V;(function(j){j[j["ARB"]=18]="ARB";j[j["AVAX"]=18]="AVAX";j[j["BCH"]=8]="BCH";j[j["BNB"]=8]="BNB";j[j["BSC"]=18]="BSC";j[j["BTC"]=8]="BTC";j[j["DASH"]=8]="DASH";j[j["DOGE"]=8]="DOGE";j[j["DOT"]=10]="DOT";j[j["ETH"]=18]="ETH";j[j["FLIP"]=18]="FLIP";j[j["GAIA"]=6]="GAIA";j[j["KUJI"]=6]="KUJI";j[j["LTC"]=8]="LTC";j[j["MATIC"]=18]="MATIC";j[j["MAYA"]=10]="MAYA";j[j["OP"]=18]="OP";j[j["THOR"]=8]="THOR";j[j["ZEC"]=8]="ZEC"})(V||(V={}));var P=[x.Polkadot,x.Chainflip],O=[x.Ethereum,x.Avalanche,x.BinanceSmartChain,x.Arbitrum,x.Optimism,x.Polygon],c=O,u=[x.Bitcoin,x.BitcoinCash,x.Dash,x.Dogecoin,x.Litecoin],r=u,v=[x.Cosmos,x.THORChain,x.Binance,x.Maya,x.Kujira],l=v,B=[x.Avalanche,x.Binance,x.BinanceSmartChain,x.Bitcoin,x.BitcoinCash,x.Cosmos,x.Dogecoin,x.Ethereum,x.Litecoin,x.THORChain],d=B,H;(function(_){_["Arbitrum"]="42161";_["ArbitrumHex"]="0xa4b1";_["Avalanche"]="43114";_["AvalancheHex"]="0xa86a";_["Binance"]="Binance-Chain-Tigris";_["BinanceSmartChain"]="56";_["BinanceSmartChainHex"]="0x38";_["Bitcoin"]="bitcoin";_["BitcoinCash"]="bitcoincash";_["Chainflip"]="chainflip";_["Cosmos"]="cosmoshub-4";_["Dash"]="dash";_["Dogecoin"]="dogecoin";_["Kujira"]="kaiyo-1";_["Ethereum"]="1";_["EthereumHex"]="0x1";_["Litecoin"]="litecoin";_["Maya"]="mayachain-mainnet-v1";_["MayaStagenet"]="mayachain-stagenet-v1";_["Optimism"]="10";_["OptimismHex"]="0xa";_["Polkadot"]="polkadot";_["Polygon"]="137";_["PolygonHex"]="0x89";_["THORChain"]="thorchain-mainnet-v1";_["THORChainStagenet"]="thorchain-stagenet-v2"})(H||(H={}));var Y;(function(G){G["Arbitrum"]="https://arb1.arbitrum.io/rpc";G["Avalanche"]="https://node-router.thorswap.net/avalanche-c";G["Binance"]="";G["BinanceSmartChain"]="https://bsc-dataseed.binance.org";G["Bitcoin"]="https://node-router.thorswap.net/bitcoin";G["BitcoinCash"]="https://node-router.thorswap.net/bitcoin-cash";G["Chainflip"]="wss://mainnet-archive.chainflip.io";G["Cosmos"]="https://node-router.thorswap.net/cosmos/rpc";G["Dash"]="https://node-router.thorswap.net/dash";G["Dogecoin"]="https://node-router.thorswap.net/dogecoin";G["Ethereum"]="https://node-router.thorswap.net/ethereum";G["Kujira"]="https://rpc-kujira.synergynodes.com/";G["Litecoin"]="https://node-router.thorswap.net/litecoin";G["Maya"]="https://tendermint.mayachain.info";G["MayaStagenet"]="https://stagenet.tendermint.mayachain.info";G["Optimism"]="https://mainnet.optimism.io";G["Polkadot"]="wss://rpc.polkadot.io";G["Polygon"]="https://polygon-rpc.com";G["THORChain"]="https://rpc.thorswap.net";G["THORChainStagenet"]="https://stagenet-rpc.ninerealms.com"})(Y||(Y={}));var X=Object.values(x),R=Object.keys(x),Z=X.reduce((z,E)=>{const J=R.find((g)=>x[g]===E);if(J)z[E]=J;return z},{}),t=X.reduce((z,E)=>{return z[E]=H[Z[E]],z},{}),o=X.reduce((z,E)=>{return z[E]=Y[Z[E]],z},{}),h=X.reduce((z,E)=>{const J=`${Z[E]}Hex`;return z[E]=H[J],z},{}),C={[H.ArbitrumHex]:x.Arbitrum,[H.Arbitrum]:x.Arbitrum,[H.AvalancheHex]:x.Avalanche,[H.Avalanche]:x.Avalanche,[H.BinanceSmartChainHex]:x.BinanceSmartChain,[H.BinanceSmartChain]:x.BinanceSmartChain,[H.Binance]:x.Binance,[H.BitcoinCash]:x.BitcoinCash,[H.Bitcoin]:x.Bitcoin,[H.Chainflip]:x.Chainflip,[H.Cosmos]:x.Cosmos,[H.Dash]:x.Dash,[H.Dogecoin]:x.Dogecoin,[H.EthereumHex]:x.Ethereum,[H.Kujira]:x.Kujira,[H.Ethereum]:x.Ethereum,[H.Litecoin]:x.Litecoin,[H.MayaStagenet]:x.Maya,[H.Maya]:x.Maya,[H.OptimismHex]:x.Optimism,[H.Optimism]:x.Optimism,[H.Polkadot]:x.Polkadot,[H.PolygonHex]:x.Polygon,[H.Polygon]:x.Polygon,[H.THORChainStagenet]:x.THORChain,[H.THORChain]:x.THORChain},n={[x.Arbitrum]:"https://arbiscan.io",[x.Avalanche]:"https://snowtrace.io",[x.BinanceSmartChain]:"https://bscscan.com",[x.Binance]:"https://explorer.binance.org",[x.BitcoinCash]:"https://www.blockchair.com/bitcoin-cash",[x.Bitcoin]:"https://blockchair.com/bitcoin",[x.Chainflip]:"https://explorer.polkascan.io/polkadot",[x.Cosmos]:"https://cosmos.bigdipper.live",[x.Dash]:"https://blockchair.com/dash",[x.Dogecoin]:"https://blockchair.com/dogecoin",[x.Kujira]:"https://finder.kujira.network/kaiyo-1",[x.Ethereum]:"https://etherscan.io",[x.Litecoin]:"https://blockchair.com/litecoin",[x.Maya]:"https://www.mayascan.org",[x.Optimism]:"https://optimistic.etherscan.io",[x.Polkadot]:"https://polkadot.subscan.io/",[x.Polygon]:"https://polygonscan.com",[x.THORChain]:"https://runescan.io"};var N;(function($){$["BOND"]="BOND";$["DEPOSIT"]="+";$["LEAVE"]="LEAVE";$["THORNAME_REGISTER"]="~";$["UNBOND"]="UNBOND";$["WITHDRAW"]="-";$["OPEN_LOAN"]="$+";$["CLOSE_LOAN"]="$-"})(N||(N={}));var y;(function(g){g["Average"]="average";g["Fast"]="fast";g["Fastest"]="fastest"})(y||(y={}));var L;(function(K){K["KEYSTORE"]="KEYSTORE";K["KEEPKEY"]="KEEPKEY";K["XDEFI"]="XDEFI";K["METAMASK"]="METAMASK";K["COINBASE_WEB"]="COINBASE_WEB";K["TREZOR"]="TREZOR";K["TRUSTWALLET_WEB"]="TRUSTWALLET_WEB";K["LEDGER"]="LEDGER";K["KEPLR"]="KEPLR";K["OKX"]="OKX";K["OKX_MOBILE"]="OKX_MOBILE";K["BRAVE"]="BRAVE";K["WALLETCONNECT"]="WALLETCONNECT"})(L||(L={}));var F;(function(g){g[g["NoError"]=36864]="NoError";g[g["LockedDevice"]=21781]="LockedDevice";g[g["TC_NotFound"]=65535]="TC_NotFound"})(F||(F={}));export{T as erc20ABI,L as WalletOption,u as UTXOChains,r as UTXOChainList,B as TCSupportedChains,d as TCSupportedChainList,A as TCEthereumVaultAbi,W as TCBscDepositABI,p as TCAvalancheDepositABI,P as SubstrateChains,M as SWAP_OUT,s as SWAP_IN,Y as RPCUrl,S as QuoteMode,I as NetworkDerivationPath,N as MemoType,F as LedgerErrorCode,y as FeeOption,O as EVMChains,c as EVMChainList,k as DerivationPath,v as CosmosChains,l as CosmosChainList,b as ContractAddress,o as ChainToRPC,h as ChainToHexChainId,n as ChainToExplorerUrl,t as ChainToChainId,C as ChainIdToChain,H as ChainId,x as Chain,V as BaseDecimal,m as AGG_SWAP};
var T=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"}];var A=[{inputs:[{internalType:"address",name:"rune",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldVault",type:"address"},{indexed:!0,internalType:"address",name:"newVault",type:"address"},{indexed:!1,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferAllowance",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferOut",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!1,internalType:"address",name:"target",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"address",name:"finalAsset",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amountOutMin",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferOutAndCall",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldVault",type:"address"},{indexed:!0,internalType:"address",name:"newVault",type:"address"},{components:[{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],indexed:!1,internalType:"struct THORChain_Router.Coin[]",name:"coins",type:"tuple[]"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"VaultTransfer",type:"event"},{inputs:[],name:"RUNE",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address payable",name:"vault",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address payable",name:"vault",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"},{internalType:"uint256",name:"expiration",type:"uint256"}],name:"depositWithExpiry",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"router",type:"address"},{internalType:"address payable",name:"asgard",type:"address"},{components:[{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct THORChain_Router.Coin[]",name:"coins",type:"tuple[]"},{internalType:"string",name:"memo",type:"string"}],name:"returnVaultAssets",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"router",type:"address"},{internalType:"address",name:"newVault",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferAllowance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"to",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferOut",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address payable",name:"aggregator",type:"address"},{internalType:"address",name:"finalToken",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferOutAndCall",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"vault",type:"address"},{internalType:"address",name:"token",type:"address"}],name:"vaultAllowance",outputs:[{internalType:"uint256",name:"amount",type:"uint256"}],stateMutability:"view",type:"function"}],p=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldVault",type:"address"},{indexed:!0,internalType:"address",name:"newVault",type:"address"},{indexed:!1,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferAllowance",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferOut",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!1,internalType:"address",name:"target",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"address",name:"finalAsset",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amountOutMin",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferOutAndCall",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldVault",type:"address"},{indexed:!0,internalType:"address",name:"newVault",type:"address"},{components:[{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],indexed:!1,internalType:"struct AvaxRouter.Coin[]",name:"coins",type:"tuple[]"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"VaultTransfer",type:"event"},{inputs:[{internalType:"address payable",name:"vault",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address payable",name:"vault",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"},{internalType:"uint256",name:"expiration",type:"uint256"}],name:"depositWithExpiry",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"router",type:"address"},{internalType:"address payable",name:"asgard",type:"address"},{components:[{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct AvaxRouter.Coin[]",name:"coins",type:"tuple[]"},{internalType:"string",name:"memo",type:"string"}],name:"returnVaultAssets",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"router",type:"address"},{internalType:"address",name:"newVault",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferAllowance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"to",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferOut",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address payable",name:"target",type:"address"},{internalType:"address",name:"finalToken",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferOutAndCall",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"vault",type:"address"},{internalType:"address",name:"token",type:"address"}],name:"vaultAllowance",outputs:[{internalType:"uint256",name:"amount",type:"uint256"}],stateMutability:"view",type:"function"}],W=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldVault",type:"address"},{indexed:!0,internalType:"address",name:"newVault",type:"address"},{indexed:!1,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferAllowance",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"address",name:"asset",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferOut",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!1,internalType:"address",name:"target",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"address",name:"finalAsset",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amountOutMin",type:"uint256"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"TransferOutAndCall",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldVault",type:"address"},{indexed:!0,internalType:"address",name:"newVault",type:"address"},{components:[{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],indexed:!1,internalType:"struct THORChain_Router.Coin[]",name:"coins",type:"tuple[]"},{indexed:!1,internalType:"string",name:"memo",type:"string"}],name:"VaultTransfer",type:"event"},{inputs:[{internalType:"address payable",name:"vault",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"},{internalType:"uint256",name:"expiration",type:"uint256"}],name:"depositWithExpiry",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"router",type:"address"},{internalType:"address payable",name:"asgard",type:"address"},{components:[{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct THORChain_Router.Coin[]",name:"coins",type:"tuple[]"},{internalType:"string",name:"memo",type:"string"}],name:"returnVaultAssets",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"router",type:"address"},{internalType:"address",name:"newVault",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferAllowance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"to",type:"address"},{internalType:"address",name:"asset",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferOut",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address payable",name:"target",type:"address"},{internalType:"address",name:"finalToken",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"string",name:"memo",type:"string"}],name:"transferOutAndCall",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"vault",type:"address"},{internalType:"address",name:"token",type:"address"}],name:"vaultAllowance",outputs:[{internalType:"uint256",name:"amount",type:"uint256"}],stateMutability:"view",type:"function"}];var $;(function(H){H["TC_SUPPORTED_TO_TC_SUPPORTED"]="TC-TC";H["TC_SUPPORTED_TO_ETH"]="TC-ERC20";H["TC_SUPPORTED_TO_AVAX"]="TC-ARC20";H["TC_SUPPORTED_TO_BSC"]="TC-BEP20";H["ETH_TO_TC_SUPPORTED"]="ERC20-TC";H["ETH_TO_ETH"]="ERC20-ERC20";H["ETH_TO_AVAX"]="ERC20-ARC20";H["ETH_TO_BSC"]="ERC20-BEP20";H["AVAX_TO_TC_SUPPORTED"]="ARC20-TC";H["AVAX_TO_ETH"]="ARC20-ERC20";H["AVAX_TO_AVAX"]="ARC20-ARC20";H["AVAX_TO_BSC"]="ARC20-BEP20";H["BSC_TO_TC_SUPPORTED"]="BEP20-TC";H["BSC_TO_ETH"]="BEP20-ERC20";H["BSC_TO_AVAX"]="BEP20-ARC20";H["BSC_TO_BSC"]="BEP20-BEP20"})($||($={}));var m=[$.ETH_TO_ETH,$.AVAX_TO_AVAX,$.BSC_TO_BSC],s=[$.ETH_TO_TC_SUPPORTED,$.ETH_TO_AVAX,$.ETH_TO_BSC,$.AVAX_TO_TC_SUPPORTED,$.AVAX_TO_ETH,$.AVAX_TO_BSC,$.BSC_TO_TC_SUPPORTED,$.BSC_TO_ETH,$.BSC_TO_AVAX],M=[$.TC_SUPPORTED_TO_TC_SUPPORTED,$.TC_SUPPORTED_TO_ETH,$.TC_SUPPORTED_TO_AVAX,$.TC_SUPPORTED_TO_BSC];var x;(function(f){f["Arbitrum"]="ARB";f["Avalanche"]="AVAX";f["Binance"]="BNB";f["BinanceSmartChain"]="BSC";f["Bitcoin"]="BTC";f["BitcoinCash"]="BCH";f["Cosmos"]="GAIA";f["Dash"]="DASH";f["Dogecoin"]="DOGE";f["Ethereum"]="ETH";f["Kujira"]="KUJI";f["Litecoin"]="LTC";f["Maya"]="MAYA";f["Optimism"]="OP";f["Polkadot"]="DOT";f["Chainflip"]="FLIP";f["Polygon"]="MATIC";f["THORChain"]="THOR"})(x||(x={}));var k;(function(z){z["ARB"]="0x0000000000000000000000000000000000000000";z["AVAX"]="0x0000000000000000000000000000000000000000";z["ETH"]="0x0000000000000000000000000000000000000000";z["BSC"]="0x0000000000000000000000000000000000000000";z["MATIC"]="0x0000000000000000000000000000000000001010";z["OP"]="0x4200000000000000000000000000000000000042"})(k||(k={}));var b;(function(f){f["ARB"]="m/44'/60'/0'/0";f["AVAX"]="m/44'/60'/0'/0";f["BCH"]="m/44'/145'/0'/0";f["BNB"]="m/44'/714'/0'/0";f["BSC"]="m/44'/60'/0'/0";f["BTC"]="m/84'/0'/0'/0";f["DASH"]="m/44'/5'/0'/0";f["DOGE"]="m/44'/3'/0'/0";f["DOT"]="////";f["ETH"]="m/44'/60'/0'/0";f["FLIP"]="////";f["GAIA"]="m/44'/118'/0'/0";f["KUJI"]="m/44'/118'/0'/0";f["LTC"]="m/84'/2'/0'/0";f["MATIC"]="m/44'/60'/0'/0";f["MAYA"]="m/44'/931'/0'/0";f["OP"]="m/44'/60'/0'/0";f["THOR"]="m/44'/931'/0'/0"})(b||(b={}));var I={ARB:[44,60,0,0,0],AVAX:[44,60,0,0,0],BCH:[44,145,0,0,0],BNB:[44,714,0,0,0],BSC:[44,60,0,0,0],BTC:[84,0,0,0,0],DASH:[44,5,0,0,0],DOGE:[44,3,0,0,0],ETH:[44,60,0,0,0],GAIA:[44,118,0,0,0],KUJI:[44,118,0,0,0],LTC:[84,2,0,0,0],MATIC:[44,60,0,0,0],MAYA:[44,931,0,0,0],OP:[44,60,0,0,0],THOR:[44,931,0,0,0],DOT:[0,0,0,0,0],FLIP:[0,0,0,0,0]},V;(function(w){w[w["ARB"]=18]="ARB";w[w["AVAX"]=18]="AVAX";w[w["BCH"]=8]="BCH";w[w["BNB"]=8]="BNB";w[w["BSC"]=18]="BSC";w[w["BTC"]=8]="BTC";w[w["DASH"]=8]="DASH";w[w["DOGE"]=8]="DOGE";w[w["DOT"]=10]="DOT";w[w["ETH"]=18]="ETH";w[w["FLIP"]=18]="FLIP";w[w["GAIA"]=6]="GAIA";w[w["KUJI"]=6]="KUJI";w[w["LTC"]=8]="LTC";w[w["MATIC"]=18]="MATIC";w[w["MAYA"]=10]="MAYA";w[w["OP"]=18]="OP";w[w["THOR"]=8]="THOR";w[w["ZEC"]=8]="ZEC"})(V||(V={}));var P=[x.Polkadot,x.Chainflip],u=[x.Ethereum,x.Avalanche,x.BinanceSmartChain,x.Arbitrum,x.Optimism,x.Polygon],c=u,O=[x.Bitcoin,x.BitcoinCash,x.Dash,x.Dogecoin,x.Litecoin],r=O,v=[x.Cosmos,x.THORChain,x.Binance,x.Maya,x.Kujira],l=v,B=[x.Avalanche,x.Binance,x.BinanceSmartChain,x.Bitcoin,x.BitcoinCash,x.Cosmos,x.Dogecoin,x.Ethereum,x.Litecoin,x.THORChain],d=B,K;(function(_){_["Arbitrum"]="42161";_["ArbitrumHex"]="0xa4b1";_["Avalanche"]="43114";_["AvalancheHex"]="0xa86a";_["Binance"]="Binance-Chain-Tigris";_["BinanceSmartChain"]="56";_["BinanceSmartChainHex"]="0x38";_["Bitcoin"]="bitcoin";_["BitcoinCash"]="bitcoincash";_["Chainflip"]="chainflip";_["Cosmos"]="cosmoshub-4";_["Dash"]="dash";_["Dogecoin"]="dogecoin";_["Kujira"]="kaiyo-1";_["Ethereum"]="1";_["EthereumHex"]="0x1";_["Litecoin"]="litecoin";_["Maya"]="mayachain-mainnet-v1";_["MayaStagenet"]="mayachain-stagenet-v1";_["Optimism"]="10";_["OptimismHex"]="0xa";_["Polkadot"]="polkadot";_["Polygon"]="137";_["PolygonHex"]="0x89";_["THORChain"]="thorchain-mainnet-v1";_["THORChainStagenet"]="thorchain-stagenet-v2"})(K||(K={}));var Z;(function(G){G["Arbitrum"]="https://arb1.arbitrum.io/rpc";G["Avalanche"]="https://node-router.thorswap.net/avalanche-c";G["Binance"]="";G["BinanceSmartChain"]="https://bsc-dataseed.binance.org";G["Bitcoin"]="https://node-router.thorswap.net/bitcoin";G["BitcoinCash"]="https://node-router.thorswap.net/bitcoin-cash";G["Chainflip"]="wss://mainnet-archive.chainflip.io";G["Cosmos"]="https://node-router.thorswap.net/cosmos/rpc";G["Dash"]="https://node-router.thorswap.net/dash";G["Dogecoin"]="https://node-router.thorswap.net/dogecoin";G["Ethereum"]="https://node-router.thorswap.net/ethereum";G["Kujira"]="https://rpc-kujira.synergynodes.com/";G["Litecoin"]="https://node-router.thorswap.net/litecoin";G["Maya"]="https://tendermint.mayachain.info";G["MayaStagenet"]="https://stagenet.tendermint.mayachain.info";G["Optimism"]="https://mainnet.optimism.io";G["Polkadot"]="wss://rpc.polkadot.io";G["Polygon"]="https://polygon-rpc.com";G["THORChain"]="https://rpc.thorswap.net";G["THORChainStagenet"]="https://stagenet-rpc.ninerealms.com"})(Z||(Z={}));var Y=Object.values(x),R=Object.keys(x),g=Y.reduce((E,J)=>{const X=R.find((q)=>x[q]===J);if(X)E[J]=X;return E},{}),t=Y.reduce((E,J)=>{return E[J]=K[g[J]],E},{}),o=Y.reduce((E,J)=>{return E[J]=Z[g[J]],E},{}),C=Y.reduce((E,J)=>{const X=`${g[J]}Hex`;return E[J]=K[X],E},{}),h={[K.ArbitrumHex]:x.Arbitrum,[K.Arbitrum]:x.Arbitrum,[K.AvalancheHex]:x.Avalanche,[K.Avalanche]:x.Avalanche,[K.BinanceSmartChainHex]:x.BinanceSmartChain,[K.BinanceSmartChain]:x.BinanceSmartChain,[K.Binance]:x.Binance,[K.BitcoinCash]:x.BitcoinCash,[K.Bitcoin]:x.Bitcoin,[K.Chainflip]:x.Chainflip,[K.Cosmos]:x.Cosmos,[K.Dash]:x.Dash,[K.Dogecoin]:x.Dogecoin,[K.EthereumHex]:x.Ethereum,[K.Kujira]:x.Kujira,[K.Ethereum]:x.Ethereum,[K.Litecoin]:x.Litecoin,[K.MayaStagenet]:x.Maya,[K.Maya]:x.Maya,[K.OptimismHex]:x.Optimism,[K.Optimism]:x.Optimism,[K.Polkadot]:x.Polkadot,[K.PolygonHex]:x.Polygon,[K.Polygon]:x.Polygon,[K.THORChainStagenet]:x.THORChain,[K.THORChain]:x.THORChain},n={[x.Arbitrum]:"https://arbiscan.io",[x.Avalanche]:"https://snowtrace.io",[x.BinanceSmartChain]:"https://bscscan.com",[x.Binance]:"https://explorer.binance.org",[x.BitcoinCash]:"https://www.blockchair.com/bitcoin-cash",[x.Bitcoin]:"https://blockchair.com/bitcoin",[x.Chainflip]:"https://explorer.polkascan.io/polkadot",[x.Cosmos]:"https://www.mintscan.io/cosmos",[x.Dash]:"https://blockchair.com/dash",[x.Dogecoin]:"https://blockchair.com/dogecoin",[x.Kujira]:"https://finder.kujira.network/kaiyo-1",[x.Ethereum]:"https://etherscan.io",[x.Litecoin]:"https://blockchair.com/litecoin",[x.Maya]:"https://www.mayascan.org",[x.Optimism]:"https://optimistic.etherscan.io",[x.Polkadot]:"https://polkadot.subscan.io/",[x.Polygon]:"https://polygonscan.com",[x.THORChain]:"https://runescan.io"};var N;(function(j){j["BOND"]="BOND";j["DEPOSIT"]="+";j["LEAVE"]="LEAVE";j["THORNAME_REGISTER"]="~";j["UNBOND"]="UNBOND";j["WITHDRAW"]="-";j["OPEN_LOAN"]="$+";j["CLOSE_LOAN"]="$-"})(N||(N={}));var y;(function(q){q["Average"]="average";q["Fast"]="fast";q["Fastest"]="fastest"})(y||(y={}));var L;(function(S){S["KEYSTORE"]="KEYSTORE";S["KEEPKEY"]="KEEPKEY";S["XDEFI"]="XDEFI";S["METAMASK"]="METAMASK";S["COINBASE_WEB"]="COINBASE_WEB";S["TREZOR"]="TREZOR";S["TRUSTWALLET_WEB"]="TRUSTWALLET_WEB";S["LEDGER"]="LEDGER";S["KEPLR"]="KEPLR";S["OKX"]="OKX";S["OKX_MOBILE"]="OKX_MOBILE";S["BRAVE"]="BRAVE";S["WALLETCONNECT"]="WALLETCONNECT"})(L||(L={}));var F;(function(q){q[q["NoError"]=36864]="NoError";q[q["LockedDevice"]=21781]="LockedDevice";q[q["TC_NotFound"]=65535]="TC_NotFound"})(F||(F={}));export{T as erc20ABI,L as WalletOption,O as UTXOChains,r as UTXOChainList,B as TCSupportedChains,d as TCSupportedChainList,A as TCEthereumVaultAbi,W as TCBscDepositABI,p as TCAvalancheDepositABI,P as SubstrateChains,M as SWAP_OUT,s as SWAP_IN,Z as RPCUrl,$ as QuoteMode,I as NetworkDerivationPath,N as MemoType,F as LedgerErrorCode,y as FeeOption,u as EVMChains,c as EVMChainList,b as DerivationPath,v as CosmosChains,l as CosmosChainList,k as ContractAddress,o as ChainToRPC,C as ChainToHexChainId,n as ChainToExplorerUrl,t as ChainToChainId,h as ChainIdToChain,K as ChainId,x as Chain,V as BaseDecimal,m as AGG_SWAP};
//# debugId=FB8BD9CB48FC313464756e2164756e21
//# debugId=7F7C9F04BB79541964756e2164756e21

@@ -28,3 +28,3 @@ {

"types": "./src/index.ts",
"version": "0.0.0-nightly-20240404101759"
"version": "0.0.0-nightly-20240404142225"
}

@@ -313,3 +313,3 @@ export enum Chain {

[Chain.Chainflip]: "https://explorer.polkascan.io/polkadot",
[Chain.Cosmos]: "https://cosmos.bigdipper.live",
[Chain.Cosmos]: "https://www.mintscan.io/cosmos",
[Chain.Dash]: "https://blockchair.com/dash",

@@ -316,0 +316,0 @@ [Chain.Dogecoin]: "https://blockchair.com/dogecoin",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc