@thorswap-lib/types
Advanced tools
Comparing version 1.0.0-development.83 to 1.0.0-development.84
@@ -679,2 +679,7 @@ import { BigNumber } from '@ethersproject/bignumber'; | ||
export declare enum WalletStatus { | ||
NotInstalled = 0, | ||
Detected = 1 | ||
} | ||
export declare type WalletTxParams = TxParams & { | ||
@@ -681,0 +686,0 @@ from?: string; |
var l = Object.defineProperty; | ||
var m = (e, n, t) => n in e ? l(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t; | ||
var a = (e, n, t) => (m(e, typeof n != "symbol" ? n + "" : n, t), t); | ||
const M = [ | ||
const O = [ | ||
{ inputs: [], stateMutability: "nonpayable", type: "constructor" }, | ||
@@ -102,3 +102,3 @@ { | ||
} | ||
], O = [ | ||
], U = [ | ||
{ | ||
@@ -278,3 +278,3 @@ inputs: [{ internalType: "address", name: "rune", type: "address" }], | ||
} | ||
], U = [ | ||
], G = [ | ||
{ inputs: [], stateMutability: "nonpayable", type: "constructor" }, | ||
@@ -486,3 +486,3 @@ { | ||
var E = /* @__PURE__ */ ((e) => (e.Avalanche = "AVAX", e.Binance = "BNB", e.BinanceSmartChain = "BSC", e.Bitcoin = "BTC", e.BitcoinCash = "BCH", e.Cosmos = "GAIA", e.Doge = "DOGE", e.Ethereum = "ETH", e.Litecoin = "LTC", e.THORChain = "THOR", e))(E || {}); | ||
const G = [ | ||
const w = [ | ||
"THOR", | ||
@@ -501,3 +501,3 @@ "AVAX", | ||
var I = /* @__PURE__ */ ((e) => (e.AVAX = "0x0000000000000000000000000000000000000000", e.ETH = "0x0000000000000000000000000000000000000000", e.BSC = "0x0000000000000000000000000000000000000000", e.USDC_SPL_MINT_ADDRESS = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", e.USDC_SPL_TESTNET_MINT_ADDRESS = "6TEqT62wq5mbKQPubX9eFeNJRYXRJd79Hk51pZk7nZrB", e))(I || {}), f = /* @__PURE__ */ ((e) => (e.Mainnet = "mainnet", e.Testnet = "testnet", e))(f || {}), h = /* @__PURE__ */ ((e) => (e[e.Ethereum = 60] = "Ethereum", e[e.Binance = 714] = "Binance", e[e.THORChain = 931] = "THORChain", e))(h || {}), _ = /* @__PURE__ */ ((e) => (e.AVAX = "m/44'/60'/0'/0", e.BCH = "m/44'/145'/0'/0", e.BNB = "m/44'/714'/0'/0", e.BSC = "m/44'/60'/0'/0", e.BTC = "m/84'/0'/0'/0", e.DOGE = "m/44'/3'/0'/0", e.ETH = "m/44'/60'/0'/0", e.GAIA = "m/44'/118'/0'/0", e.LTC = "m/84'/2'/0'/0", e.THOR = "m/44'/931'/0'/0", e))(_ || {}); | ||
const w = { | ||
const P = { | ||
AVAX: [44, 60, 0, 0, 0], | ||
@@ -515,3 +515,3 @@ BCH: [84, 145, 0, 0, 0], | ||
var g = /* @__PURE__ */ ((e) => (e[e.AVAX = 18] = "AVAX", e[e.BCH = 8] = "BCH", e[e.BNB = 8] = "BNB", e[e.BSC = 18] = "BSC", e[e.BTC = 8] = "BTC", e[e.DOGE = 8] = "DOGE", e[e.ETH = 18] = "ETH", e[e.GAIA = 6] = "GAIA", e[e.LTC = 8] = "LTC", e[e.THOR = 8] = "THOR", e))(g || {}), b = /* @__PURE__ */ ((e) => (e.Avalanche = "43114", e.AvalancheHex = "0xa86a", e.Binance = "Binance-Chain-Tigris", e.BinanceSmartChain = "56", e.Bitcoin = "bitcoin", e.Bitcoincash = "bitcoincash", e.Cosmos = "cosmoshub-4", e.Dogecoin = "dogecoin", e.Ethereum = "1", e.EthereumHex = "0x1", e.Litecoin = "litecoin", e.Thorchain = "thorchain-mainnet-v1", e.ThorchainStagenet = "thorchain-stagenet-v2", e))(b || {}), B = /* @__PURE__ */ ((e) => (e.Avalanche = "https://node-router.thorswap.net/avalanche-c", e.BinanceSmartChain = "https://bsc-dataseed.binance.org", e.Cosmos = "https://node-router.thorswap.net/cosmos/rpc", e.Ethereum = "https://node-router.thorswap.net/ethereum", e.Litecoin = "https://node-router.thorswap.net/litecoin", e.Bitcoin = "https://node-router.thorswap.net/bitcoin", e.Dogecoin = "https://node-router.thorswap.net/dogecoin", e.BitcoinCash = "https://node-router.thorswap.net/bitcoin-cash", e))(B || {}), x = /* @__PURE__ */ ((e) => (e.Thorswap = "https://api.thorswap.finance", e))(x || {}); | ||
const P = { | ||
const R = { | ||
AVAX: "https://node-router.thorswap.net/avalanche-c", | ||
@@ -526,3 +526,3 @@ BSC: "https://bsc-dataseed.binance.org", | ||
/* BitcoinCash */ | ||
}, R = { | ||
}, D = { | ||
AVAX: "43114", | ||
@@ -539,3 +539,3 @@ BNB: "Binance-Chain-Tigris", | ||
/* Thorchain */ | ||
}, D = { | ||
}, F = { | ||
AVAX: "0xa86a", | ||
@@ -552,3 +552,3 @@ BNB: "Binance-Chain-Tigris", | ||
/* Thorchain */ | ||
}, F = { | ||
}, X = { | ||
[ | ||
@@ -597,4 +597,4 @@ "0xa86a" | ||
var L = /* @__PURE__ */ ((e) => (e[e.NoError = 36864] = "NoError", e))(L || {}); | ||
const X = "image rally need wedding health address purse army antenna leopard sea gain"; | ||
var H = /* @__PURE__ */ ((e) => (e.Average = "average", e.Fast = "fast", e.Fastest = "fastest", e))(H || {}), v = /* @__PURE__ */ ((e) => (e.FlatFee = "base", e.PerByte = "byte", e))(v || {}), C = /* @__PURE__ */ ((e) => (e.KEYSTORE = "KEYSTORE", e.XDEFI = "XDEFI", e.METAMASK = "METAMASK", e.COINBASE_WEB = "COINBASE_WEB", e.TREZOR = "TREZOR", e.TRUSTWALLET = "TRUSTWALLET", e.TRUSTWALLET_WEB = "TRUSTWALLET_WEB", e.LEDGER = "LEDGER", e.KEPLR = "KEPLR", e.BRAVE = "BRAVE", e.WALLETCONNECT = "WALLETCONNECT", e))(C || {}); | ||
const K = "image rally need wedding health address purse army antenna leopard sea gain"; | ||
var H = /* @__PURE__ */ ((e) => (e[e.NotInstalled = 0] = "NotInstalled", e[e.Detected = 1] = "Detected", e))(H || {}), v = /* @__PURE__ */ ((e) => (e.Average = "average", e.Fast = "fast", e.Fastest = "fastest", e))(v || {}), C = /* @__PURE__ */ ((e) => (e.FlatFee = "base", e.PerByte = "byte", e))(C || {}), V = /* @__PURE__ */ ((e) => (e.KEYSTORE = "KEYSTORE", e.XDEFI = "XDEFI", e.METAMASK = "METAMASK", e.COINBASE_WEB = "COINBASE_WEB", e.TREZOR = "TREZOR", e.TRUSTWALLET = "TRUSTWALLET", e.TRUSTWALLET_WEB = "TRUSTWALLET_WEB", e.LEDGER = "LEDGER", e.KEPLR = "KEPLR", e.BRAVE = "BRAVE", e.WALLETCONNECT = "WALLETCONNECT", e))(V || {}); | ||
export { | ||
@@ -607,6 +607,6 @@ p as ApiError, | ||
b as ChainId, | ||
F as ChainIdToChain, | ||
R as ChainToChainId, | ||
D as ChainToHexChainId, | ||
P as ChainToRPC, | ||
X as ChainIdToChain, | ||
D as ChainToChainId, | ||
F as ChainToHexChainId, | ||
R as ChainToRPC, | ||
I as ContractAddress, | ||
@@ -619,15 +619,16 @@ A as Denomination, | ||
L as ErrorCode, | ||
H as FeeOption, | ||
v as FeeType, | ||
X as MOCK_PHRASE, | ||
v as FeeOption, | ||
C as FeeType, | ||
K as MOCK_PHRASE, | ||
f as Network, | ||
w as NetworkDerivationPath, | ||
P as NetworkDerivationPath, | ||
h as NetworkId, | ||
B as RPCUrl, | ||
G as SUPPORTED_CHAINS, | ||
U as TCAvalancheDepositABI, | ||
O as TCEthereumVaultAbi, | ||
C as WalletOption, | ||
M as erc20ABI | ||
w as SUPPORTED_CHAINS, | ||
G as TCAvalancheDepositABI, | ||
U as TCEthereumVaultAbi, | ||
V as WalletOption, | ||
H as WalletStatus, | ||
O as erc20ABI | ||
}; | ||
//# sourceMappingURL=index.es.js.map |
@@ -6,8 +6,8 @@ { | ||
"@ethersproject/bignumber": "5.7.0", | ||
"@types/node": "20.1.6", | ||
"vite": "4.3.7", | ||
"@types/node": "20.2.1", | ||
"vite": "4.3.8", | ||
"@internal/config": "0.0.0" | ||
}, | ||
"eslintConfig": { | ||
"extends": "../../internal/eslint-config-thorswap" | ||
"extends": "../../../internal/eslint-config-thorswap" | ||
}, | ||
@@ -37,3 +37,3 @@ "exports": { | ||
"types": "./dist/index.d.ts", | ||
"version": "1.0.0-development.83", | ||
"version": "1.0.0-development.84", | ||
"scripts": { | ||
@@ -40,0 +40,0 @@ "build": "echo 'Build types 🛠'; vite build && echo 'Build succeeded types ✅'", |
@@ -7,2 +7,7 @@ import { AmountWithBaseDenom } from './amount.js'; | ||
export enum WalletStatus { | ||
NotInstalled, | ||
Detected, | ||
} | ||
export enum FeeOption { | ||
@@ -9,0 +14,0 @@ Average = 'average', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
206057
2428