@pioneer-platform/pioneer-react 0.2.42 → 0.2.45
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.d.ts +3 -8
- package/dist/index.js +18 -16
- package/dist/{index_2ae7b728.js → index_00dd884e.js} +5 -6
- package/dist/{index_d62adee3.js → index_089e7234.js} +1 -1
- package/dist/{index_6fc14522.js → index_1a6a5598.js} +5 -6
- package/dist/{index_5cbed275.js → index_1afbfab1.js} +246 -4473
- package/dist/{index_f59a43d2.js → index_2149ed8d.js} +8 -8
- package/dist/{index_7f071019.js → index_25e511bb.js} +15 -15
- package/dist/{index_b2be5e4e.js → index_28e5444b.js} +3 -4
- package/dist/{index_f575e7b4.js → index_31d055bf.js} +8 -9
- package/dist/{index_ebeabe97.js → index_3433fe56.js} +3 -4
- package/dist/{index_318d1d68.js → index_3ed7e242.js} +28 -28
- package/dist/{index_0d526d38.js → index_3fea9d52.js} +19 -19
- package/dist/{index_47b407db.js → index_40cbc1cb.js} +4 -5
- package/dist/{index_7d621758.js → index_40f2115a.js} +3 -4
- package/dist/{index_ed259edc.js → index_47217799.js} +5 -6
- package/dist/{index_5d556ec6.js → index_51bbd44a.js} +3 -4
- package/dist/{index_8e0864da.js → index_53605da3.js} +2 -2
- package/dist/{index_45b009da.js → index_5c12821e.js} +10 -11
- package/dist/{index_9fef85a2.js → index_5dc59e18.js} +3 -4
- package/dist/{index_ac8af4f0.js → index_61702928.js} +3 -4
- package/dist/{index_4b36612f.js → index_64ff18e7.js} +1 -1
- package/dist/{index_13b1e6a1.js → index_65017d87.js} +1 -1
- package/dist/{index_b752bc5a.js → index_6becad0b.js} +13 -13
- package/dist/{index_89463ea0.js → index_740490f1.js} +4 -5
- package/dist/{index_de955e45.js → index_75f700d8.js} +4 -5
- package/dist/{index_e525ec6b.js → index_7640e861.js} +8 -453
- package/dist/{index_d85153be.js → index_7c11b3c7.js} +3 -3
- package/dist/{index_61bfdb70.js → index_7c574e7d.js} +8 -9
- package/dist/{index_97f1ff39.js → index_7ddfebf7.js} +14 -14
- package/dist/{index_e47e2842.js → index_81dd7d0f.js} +7 -8
- package/dist/{index_a005a882.js → index_87afedd4.js} +8 -8
- package/dist/{index_0bbcbffb.js → index_87d14dd6.js} +6 -7
- package/dist/{index_aa947e34.js → index_9346dd3d.js} +7 -7
- package/dist/{index_70cc14bd.js → index_96d5aad1.js} +1223 -40
- package/dist/{index_ff288a7a.js → index_97081f9b.js} +7 -8
- package/dist/{index_4c07ec7c.js → index_9c378228.js} +11 -13
- package/dist/{index_54e4e367.js → index_a96dcbb2.js} +13 -13
- package/dist/{index_265bb459.js → index_a9d0b958.js} +29 -52
- package/dist/{index_d869d4f8.js → index_abaa7487.js} +6 -7
- package/dist/{index_d90e262e.js → index_b1b7d385.js} +13 -13
- package/dist/index_b4b501fc.js +449 -0
- package/dist/index_b62d8ff4.js +30 -0
- package/dist/{index_81d780b7.js → index_b6e5a809.js} +1 -1
- package/dist/{index_6424cb67.js → index_bd7bbccf.js} +2 -4
- package/dist/{index_381aee34.js → index_c2bc068c.js} +1 -1
- package/dist/{index_7861fcf0.js → index_c587fd1b.js} +3 -4
- package/dist/{index_239b8e07.js → index_c8c2dada.js} +1 -1
- package/dist/{index_bfa7b443.js → index_d26b5754.js} +7 -8
- package/dist/{index_015b6eba.js → index_d77fc157.js} +6154 -32027
- package/dist/{index_e4776b9a.js → index_db264e60.js} +13 -13
- package/dist/{index_2143ad7f.js → index_f044b02a.js} +1 -1
- package/dist/{index_1d49c612.js → index_fad80d95.js} +4 -5
- package/dist/lib/components/pioneer/Pioneer/Balances.js +4 -4
- package/dist/lib/components/pioneer/Pioneer/Paths.js +4 -4
- package/dist/lib/components/pioneer/Pioneer/Pubkeys.js +4 -4
- package/dist/lib/components/pioneer/Pioneer/Send.js +1 -1
- package/dist/lib/components/pioneer/Pioneer/Wallets.js +1 -1
- package/dist/lib/components/pioneer/index.js +7 -7
- package/dist/lib/pages/home/index.js +2 -9
- package/package.json +2 -2
- package/src/index.tsx +21 -21
- package/src/lib/components/pioneer/Pioneer/Balances.tsx +4 -4
- package/src/lib/components/pioneer/Pioneer/Paths.tsx +4 -4
- package/src/lib/components/pioneer/Pioneer/Pubkeys.tsx +4 -4
- package/src/lib/components/pioneer/Pioneer/Send.tsx +1 -1
- package/src/lib/components/pioneer/Pioneer/Wallets.tsx +2 -2
- package/src/lib/components/pioneer/index.tsx +6 -41
- package/src/lib/pages/home/index.tsx +5 -5
- package/dist/index_bbcb3c14.js +0 -31
- package/dist/lib/components/AssetSelect/index.d.ts +0 -4
- package/dist/lib/components/AssetSelect/index.js +0 -72
- package/dist/lib/components/BlockchainSelect/index.d.ts +0 -4
- package/dist/lib/components/BlockchainSelect/index.js +0 -88
- package/dist/lib/components/MiddleEllipsis/index.d.ts +0 -6
- package/dist/lib/components/MiddleEllipsis/index.js +0 -12
- package/dist/lib/components/Onboarding/index.d.ts +0 -6
- package/dist/lib/components/Onboarding/index.js +0 -113
- package/dist/lib/components/WalletSelect/index.d.ts +0 -4
- package/dist/lib/components/WalletSelect/index.js +0 -62
- package/dist/lib/components/modals/AssetModal.d.ts +0 -7
- package/dist/lib/components/modals/AssetModal.js +0 -28
- package/dist/lib/components/modals/SettingsModal.d.ts +0 -7
- package/dist/lib/components/modals/SettingsModal.js +0 -33
- package/src/lib/components/AssetSelect/index.tsx +0 -168
- package/src/lib/components/BlockchainSelect/index.tsx +0 -166
- package/src/lib/components/MiddleEllipsis/index.tsx +0 -27
- package/src/lib/components/Onboarding/index.tsx +0 -251
- package/src/lib/components/WalletSelect/index.tsx +0 -112
- package/src/lib/components/modals/AssetModal.tsx +0 -67
- package/src/lib/components/modals/SettingsModal.tsx +0 -95
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as global } from "./index_86436d56.js";
|
|
2
|
-
import { A as AbstractSigner } from "./
|
|
2
|
+
import { A as AbstractSigner } from "./index_7c11b3c7.js";
|
|
3
3
|
var be = Object.defineProperty;
|
|
4
4
|
var Fe = (e82, n, s) => n in e82 ? be(e82, n, { enumerable: true, configurable: true, writable: true, value: s }) : e82[n] = s;
|
|
5
5
|
var z = (e82, n, s) => (Fe(e82, typeof n != "symbol" ? n + "" : n, s), s);
|
|
@@ -4327,7 +4327,7 @@ class WalletconnectSigner extends AbstractSigner {
|
|
|
4327
4327
|
});
|
|
4328
4328
|
z(this, "sendTransaction", async ({ from: s2, to: m2, value: l2, data: _ }) => {
|
|
4329
4329
|
var h;
|
|
4330
|
-
const { toHexString: y } = await import("./
|
|
4330
|
+
const { toHexString: y } = await import("./index_3433fe56.js"), c = {
|
|
4331
4331
|
from: s2,
|
|
4332
4332
|
to: m2,
|
|
4333
4333
|
value: y(BigInt(l2 || 0)),
|
|
@@ -4428,11 +4428,11 @@ const getToolbox = async ({
|
|
|
4428
4428
|
throw new Error("Ethplorer API key not found");
|
|
4429
4429
|
if (e82 !== i$1.Ethereum && !s)
|
|
4430
4430
|
throw new Error("Covalent API key not found");
|
|
4431
|
-
const { getProvider: c, ETHToolbox: h, AVAXToolbox: S, BSCToolbox: w } = await import("./
|
|
4431
|
+
const { getProvider: c, ETHToolbox: h, AVAXToolbox: S, BSCToolbox: w } = await import("./index_3433fe56.js"), F = c(e82), U = await getEVMSigner({ walletconnect: m, chain: e82, provider: F });
|
|
4432
4432
|
return e82 === i$1.Ethereum ? h({ provider: F, signer: U, ethplorerApiKey: n }) : e82 === i$1.Avalanche ? S({ provider: F, signer: U, covalentApiKey: s }) : w({ provider: F, signer: U, covalentApiKey: s });
|
|
4433
4433
|
}
|
|
4434
4434
|
case i$1.Binance: {
|
|
4435
|
-
const { sortObject: c, BinanceToolbox: h } = await import("./
|
|
4435
|
+
const { sortObject: c, BinanceToolbox: h } = await import("./index_5dc59e18.js"), S = h();
|
|
4436
4436
|
return { ...S, transfer: async ({ recipient: F, assetValue: U, memo: P }) => {
|
|
4437
4437
|
var u;
|
|
4438
4438
|
const v = await S.getAccount(y), { transaction: V, signMsg: N } = await S.createTransactionAndSignMsg({
|
|
@@ -4460,7 +4460,7 @@ const getToolbox = async ({
|
|
|
4460
4460
|
} };
|
|
4461
4461
|
}
|
|
4462
4462
|
case i$1.THORChain: {
|
|
4463
|
-
const { getDenomWithChain: c, ThorchainToolbox: h } = await import("./
|
|
4463
|
+
const { getDenomWithChain: c, ThorchainToolbox: h } = await import("./index_5dc59e18.js"), S = h({ stagenet: false }), w = (P) => m == null ? void 0 : m.client.request({
|
|
4464
4464
|
chainId: THORCHAIN_MAINNET_ID,
|
|
4465
4465
|
topic: _.topic,
|
|
4466
4466
|
request: {
|
|
@@ -4486,7 +4486,7 @@ const getToolbox = async ({
|
|
|
4486
4486
|
from_address: l,
|
|
4487
4487
|
to_address: v
|
|
4488
4488
|
}
|
|
4489
|
-
}, { encodePubkey: W, makeAuthInfoBytes: Q } = await import("./
|
|
4489
|
+
}, { encodePubkey: W, makeAuthInfoBytes: Q } = await import("./index_bd7bbccf.js").then((n2) => n2.i), { makeSignDoc: u } = await import("./index_96d5aad1.js").then((n2) => n2.i), { fromBase64: d } = await import("./index_f044b02a.js").then((n2) => n2.i), { StargateClient: E } = await import("./index_1afbfab1.js").then((n2) => n2.i), { Int53: C } = await import("./index_b4b501fc.js").then((n2) => n2.i), b = u(
|
|
4490
4490
|
[$],
|
|
4491
4491
|
DEFAULT_THORCHAIN_FEE,
|
|
4492
4492
|
T.THORChain,
|
|
@@ -4542,7 +4542,7 @@ const getToolbox = async ({
|
|
|
4542
4542
|
memo: v,
|
|
4543
4543
|
signer: l
|
|
4544
4544
|
}
|
|
4545
|
-
}, { makeSignDoc: G } = await import("./
|
|
4545
|
+
}, { makeSignDoc: G } = await import("./index_96d5aad1.js").then((n2) => n2.i), { fromBase64: $ } = await import("./index_f044b02a.js").then((n2) => n2.i), { StargateClient: W } = await import("./index_1afbfab1.js").then((n2) => n2.i), { Int53: Q } = await import("./index_b4b501fc.js").then((n2) => n2.i), { encodePubkey: u, makeAuthInfoBytes: d } = await import("./index_bd7bbccf.js").then((n2) => n2.i), E = G(
|
|
4546
4546
|
[L],
|
|
4547
4547
|
DEFAULT_THORCHAIN_FEE,
|
|
4548
4548
|
T.THORChain,
|
|
@@ -4592,7 +4592,7 @@ const getToolbox = async ({
|
|
|
4592
4592
|
try {
|
|
4593
4593
|
if (!n)
|
|
4594
4594
|
throw new Error("Error while setting up walletconnect connection: Project ID not specified");
|
|
4595
|
-
const m = getRequiredNamespaces(e82.map(chainToChainId)), { WalletConnectModalSign: l } = await import("./
|
|
4595
|
+
const m = getRequiredNamespaces(e82.map(chainToChainId)), { WalletConnectModalSign: l } = await import("./index_740490f1.js").then((h) => h.i), _ = new l({
|
|
4596
4596
|
logger: DEFAULT_LOGGER,
|
|
4597
4597
|
relayUrl: DEFAULT_RELAY_URL,
|
|
4598
4598
|
projectId: n,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { f as requireBrowser$8, d as dist, h as requireSafeBuffer, i as requireBrowser$9, j as requireSha_js, g as getDefaultExportFromCjs, R as RIPEMD160 } from "./
|
|
2
|
-
import { c as crypto_1 } from "./
|
|
3
|
-
import { S as Sg } from "./
|
|
4
|
-
import { F as Fg } from "./
|
|
5
|
-
import { s } from "./
|
|
1
|
+
import { f as requireBrowser$8, d as dist, h as requireSafeBuffer, i as requireBrowser$9, j as requireSha_js, g as getDefaultExportFromCjs, R as RIPEMD160 } from "./index_a9d0b958.js";
|
|
2
|
+
import { c as crypto_1 } from "./index_53605da3.js";
|
|
3
|
+
import { S as Sg } from "./index_7640e861.js";
|
|
4
|
+
import { F as Fg } from "./index_65017d87.js";
|
|
5
|
+
import { s } from "./index_089e7234.js";
|
|
6
6
|
import { d } from "./index_10812439.js";
|
|
7
|
-
import { w } from "./
|
|
8
|
-
import { v as vn$1 } from "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
7
|
+
import { w } from "./index_c8c2dada.js";
|
|
8
|
+
import { v as vn$1 } from "./index_c2bc068c.js";
|
|
9
|
+
import "./index_f044b02a.js";
|
|
10
|
+
import "./index_b4b501fc.js";
|
|
11
|
+
import "./index_bd7bbccf.js";
|
|
12
|
+
import "./index_1afbfab1.js";
|
|
13
|
+
import "./index_64ff18e7.js";
|
|
13
14
|
import "./index_86436d56.js";
|
|
14
|
-
import "./
|
|
15
|
+
import "./index_d77fc157.js";
|
|
15
16
|
import "react";
|
|
16
17
|
import "@chakra-ui/react";
|
|
17
|
-
import "
|
|
18
|
-
import "./
|
|
19
|
-
import "./index_70cc14bd.js";
|
|
18
|
+
import "./index_7c11b3c7.js";
|
|
19
|
+
import "./index_96d5aad1.js";
|
|
20
20
|
const X = requireBrowser$8(), rn = dist.Buffer.alloc(1, 1), gt = dist.Buffer.alloc(1, 0);
|
|
21
21
|
function sn(n, e, t, r, o) {
|
|
22
22
|
let i = dist.Buffer.alloc(32, 0), s2 = dist.Buffer.alloc(32, 1);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
1
|
+
import { C as aspromise, E as base64$1, F as eventemitter, H as float, I as inquire_1, J as utf8$2, L as pool_1, j as commonjsGlobal, y as getDefaultExportFromCjs } from "./index_3ed7e242.js";
|
|
2
|
+
import "./index_64ff18e7.js";
|
|
3
3
|
import "./index_86436d56.js";
|
|
4
|
-
import "./
|
|
4
|
+
import "./index_d77fc157.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "@chakra-ui/react";
|
|
7
|
-
import "@emotion/react";
|
|
8
7
|
var V = {}, j = {}, B, U;
|
|
9
8
|
function dt() {
|
|
10
9
|
if (U)
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { A } from "./
|
|
2
|
-
import { P as Psbt } from "./
|
|
3
|
-
import "./
|
|
1
|
+
import { A } from "./index_64ff18e7.js";
|
|
2
|
+
import { P as Psbt } from "./index_53605da3.js";
|
|
3
|
+
import "./index_d77fc157.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@chakra-ui/react";
|
|
6
|
-
import "
|
|
7
|
-
import "./index_13b1e6a1.js";
|
|
6
|
+
import "./index_65017d87.js";
|
|
8
7
|
import "./index_86436d56.js";
|
|
9
8
|
var n = /* @__PURE__ */ ((t) => (t.INVALID_INPUT_PARAMETERS = "1000", t.UNKNOWN_PROVIDERS = "1001", t.CANNOT_FIND_INBOUND_ADDRESS = "1002", t.NO_INBOUND_ADDRESSES = "1003", t.CHAIN_HALTED_OR_UNSUPPORTED = "1004", t.MISSING_INPUT_PARAMETER = "1005", t.INVALID_TYPE_GENERIC = "1100", t.INVALID_NUMBER_STRING = "1101", t.INVALID_NUMBER = "1102", t.INVALID_BOOLEAN = "1103", t.INVALID_OBJECT = "1104", t.INVALID_ARRAY = "1105", t.SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2000", t.SELL_BUY_ASSETS_ARE_THE_SAME = "2001", t.MISSING_SOURCE_ADDRESS_FOR_SYNTH = "2002", t.AFF_ADDRESS_AND_BPS_OR_NEITHER = "2003", t.AFF_ADDRESS_TOO_LONG = "2004", t.AFF_BPS_INTEGER_0_100 = "2005", t.SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN = "2006", t.DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN = "2007", t.PREFERRED_PROFVIDER_NOT_SUPPORTED = "2008", t.DESTINATION_ADDRESS_SMART_CONTRACT = "2009", t.BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2010", t.SOURCE_ADDRESS_SMART_CONTRACT = "2011", t.INVALID_PROVIDER = "2100", t.MISSING_CROSS_CHAIN_PROVIDER = "2101", t.MISSING_AVAX_PROVIDER = "2102", t.MISSING_BSC_PROVIDER = "2103", t.MISSING_ETH_PROVIDER = "2104", t.INVALID_PROVIDER_FOR_SWAP_OUT = "2105", t.MISSING_ARB_PROVIDER = "2106", t.INVALID_CHAIN = "2200", t.INVALID_ASSET = "2201", t.INVALID_ASSET_IDENTIFIER = "2202", t.UNSUPPORTED_CHAIN = "2204", t.UNSUPPORTED_ASSET = "2203", t.UNSUPPORTED_ASSET_FOR_SWAPOUT = "2205", t.INVALID_SOURCE_ADDRESS = "2300", t.INVALID_DESTINATION_ADDRESS = "2301", t.THORNODE_QUOTE_GENERIC_ERROR = "3000", t.NOT_ENOUGH_SYNTH_BALANCE = "3001", t.SYNTH_MINTING_CAP_REACHED = "3002", t.INVALID_QUOTE_MODE = "4000", t.NO_QUOTES = "4001", t.SERVICE_UNAVAILABLE_GENERIC = "5000", t.MISSING_GAS_DATA_GENERIC = "5100", t.MISSING_TOKEN_INFO_GENERIC = "5200", t.CANT_FIND_TOKEN_LIST = "5201", t.NO_PRICE = "5202", t.PRICE_IS_STALE = "5203", t.ADDRESS_NOT_WHITELISTED = "6000", t.ADDRESS_ALREADY_CLAIMED = "6001", t.TEMPORARY_ERROR = "9999", t))(n || {});
|
|
10
9
|
n.INVALID_INPUT_PARAMETERS + "", n.UNKNOWN_PROVIDERS + "", n.CANNOT_FIND_INBOUND_ADDRESS + "", n.NO_INBOUND_ADDRESSES + "", n.CHAIN_HALTED_OR_UNSUPPORTED + "", n.MISSING_INPUT_PARAMETER + "", n.INVALID_TYPE_GENERIC + "", n.INVALID_NUMBER_STRING + "", n.INVALID_NUMBER + "", n.INVALID_BOOLEAN + "", n.INVALID_OBJECT + "", n.INVALID_ARRAY + "", n.SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER + "", n.SELL_BUY_ASSETS_ARE_THE_SAME + "", n.MISSING_SOURCE_ADDRESS_FOR_SYNTH + "", n.AFF_ADDRESS_AND_BPS_OR_NEITHER + "", n.AFF_ADDRESS_TOO_LONG + "", n.AFF_BPS_INTEGER_0_100 + "", n.SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN + "", n.DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN + "", n.PREFERRED_PROFVIDER_NOT_SUPPORTED + "", n.DESTINATION_ADDRESS_SMART_CONTRACT + "", n.BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER + "", n.INVALID_PROVIDER + "", n.MISSING_CROSS_CHAIN_PROVIDER + "", n.MISSING_AVAX_PROVIDER + "", n.MISSING_BSC_PROVIDER + "", n.MISSING_ETH_PROVIDER + "", n.MISSING_ARB_PROVIDER + "", n.INVALID_PROVIDER_FOR_SWAP_OUT + "", n.INVALID_CHAIN + "", n.INVALID_ASSET + "", n.UNSUPPORTED_CHAIN + "", n.UNSUPPORTED_ASSET + "", n.UNSUPPORTED_ASSET_FOR_SWAPOUT + "", n.THORNODE_QUOTE_GENERIC_ERROR + "", n.INVALID_SOURCE_ADDRESS + "", n.INVALID_DESTINATION_ADDRESS + "", n.NOT_ENOUGH_SYNTH_BALANCE + "", n.SYNTH_MINTING_CAP_REACHED + "", n.INVALID_QUOTE_MODE + "", n.NO_QUOTES + "", n.SERVICE_UNAVAILABLE_GENERIC + "", n.MISSING_GAS_DATA_GENERIC + "", n.MISSING_TOKEN_INFO_GENERIC + "", n.CANT_FIND_TOKEN_LIST + "", n.NO_PRICE + "", n.PRICE_IS_STALE + "", n.ADDRESS_NOT_WHITELISTED + "", n.ADDRESS_ALREADY_CLAIMED + "";
|
|
@@ -37,7 +36,7 @@ const L = (t) => async ({ from: a, recipient: i, amount: _, asset: I, memo: T })
|
|
|
37
36
|
const A2 = (E = window.okxwallet) == null ? void 0 : E.keplr, S = A2 == null ? void 0 : A2.getOfflineSignerOnlyAmino(R.Cosmos);
|
|
38
37
|
if (!S)
|
|
39
38
|
throw new Error("No cosmos okxwallet found");
|
|
40
|
-
const { createCosmJS: N } = await import("./
|
|
39
|
+
const { createCosmJS: N } = await import("./index_5dc59e18.js"), s = await N({ offlineSigner: S, rpcUrl: t }), e = [
|
|
41
40
|
{ denom: (I == null ? void 0 : I.symbol) === "MUON" ? "umuon" : "uatom", amount: _.amount().toString() }
|
|
42
41
|
], { transactionHash: r } = await s.sendTokens(a, i, e, 1.6, T);
|
|
43
42
|
return r;
|
|
@@ -56,7 +55,7 @@ const L = (t) => async ({ from: a, recipient: i, amount: _, asset: I, memo: T })
|
|
|
56
55
|
case o.BinanceSmartChain: {
|
|
57
56
|
if (!((A$1 = window.okxwallet) != null && A$1.send))
|
|
58
57
|
throw new Error("No okxwallet found");
|
|
59
|
-
const { getWeb3WalletMethods: s, getProvider: e } = await import("./
|
|
58
|
+
const { getWeb3WalletMethods: s, getProvider: e } = await import("./index_3433fe56.js"), r = await s({
|
|
60
59
|
chain: t,
|
|
61
60
|
ethplorerApiKey: a,
|
|
62
61
|
covalentApiKey: i,
|
|
@@ -80,7 +79,7 @@ const L = (t) => async ({ from: a, recipient: i, amount: _, asset: I, memo: T })
|
|
|
80
79
|
throw new Error("No bitcoin okxwallet found");
|
|
81
80
|
if (!_)
|
|
82
81
|
throw new Error("No utxoApiKey provided");
|
|
83
|
-
const { BTCToolbox: s } = await import("./
|
|
82
|
+
const { BTCToolbox: s } = await import("./index_b62d8ff4.js"), e = window.okxwallet.bitcoin, r = (await e.connect()).address, E = s({ rpcUrl: I, apiKey: _, apiClient: T }), d = async (O) => {
|
|
84
83
|
const u = await e.signPsbt(O.toHex(), { from: r, type: "list" });
|
|
85
84
|
return Psbt.fromHex(u);
|
|
86
85
|
};
|
|
@@ -94,7 +93,7 @@ const L = (t) => async ({ from: a, recipient: i, amount: _, asset: I, memo: T })
|
|
|
94
93
|
throw new Error("No cosmos okxwallet found");
|
|
95
94
|
const s = window.okxwallet.keplr;
|
|
96
95
|
await s.enable(R.Cosmos);
|
|
97
|
-
const [{ address: e }] = await s.getOfflineSignerOnlyAmino(R.Cosmos).getAccounts(), { GaiaToolbox: r } = await import("./
|
|
96
|
+
const [{ address: e }] = await s.getOfflineSignerOnlyAmino(R.Cosmos).getAccounts(), { GaiaToolbox: r } = await import("./index_5dc59e18.js");
|
|
98
97
|
return {
|
|
99
98
|
...r({ server: T }),
|
|
100
99
|
transfer: L(I),
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { S, Y, X, o, t, e, M, P, B, a, A, l, K, J, _, x, d, h, b, Z, E, c, Q } from "./
|
|
2
|
-
import "./
|
|
1
|
+
import { S, Y, X, o, t, e, M, P, B, a, A, l, K, J, _, x, d, h, b, Z, E, c, Q } from "./index_87afedd4.js";
|
|
2
|
+
import "./index_64ff18e7.js";
|
|
3
3
|
import "./index_86436d56.js";
|
|
4
|
-
import "./
|
|
4
|
+
import "./index_d77fc157.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "@chakra-ui/react";
|
|
7
|
-
import "@emotion/react";
|
|
8
7
|
export {
|
|
9
8
|
S as ARBToolbox,
|
|
10
9
|
Y as AVAXToolbox,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as global } from "./index_86436d56.js";
|
|
2
|
-
import { A as A$1, b as bt$1, y as yt, c as ct } from "./
|
|
2
|
+
import { A as A$1, b as bt$1, y as yt, c as ct } from "./index_64ff18e7.js";
|
|
3
3
|
var nt = Object.defineProperty;
|
|
4
4
|
var at = (u85, c, h) => c in u85 ? nt(u85, c, { enumerable: true, configurable: true, writable: true, value: h }) : u85[c] = h;
|
|
5
5
|
var qr = (u85, c, h) => (at(u85, typeof c != "symbol" ? c + "" : c, h), h), ot = (u85, c, h) => {
|
|
@@ -20385,7 +20385,7 @@ const sha256 = (u85) => {
|
|
|
20385
20385
|
const c = cryptoJsExports.enc.Hex.parse(u85);
|
|
20386
20386
|
return cryptoJsExports.SHA256(c).toString();
|
|
20387
20387
|
}, generatePubKey = (u85) => new ellipticExports.ec("secp256k1").keyFromPrivate(u85).getPublic(), generateSignature = async (u85, c) => {
|
|
20388
|
-
const h = await import("./
|
|
20388
|
+
const h = await import("./index_61702928.js").then((q) => q.j), v = sha256(u85), m = dist.Buffer.from(v, "hex");
|
|
20389
20389
|
return h.sign(
|
|
20390
20390
|
m,
|
|
20391
20391
|
typeof c == "string" ? dist.Buffer.from(c, "hex") : c
|
|
@@ -20482,7 +20482,7 @@ const getDenom = (u85, c = false) => c ? u85.toLowerCase() : u85, createCosmJS =
|
|
|
20482
20482
|
offlineSigner: u85,
|
|
20483
20483
|
rpcUrl: c
|
|
20484
20484
|
}) => {
|
|
20485
|
-
const { SigningStargateClient: h, GasPrice: v } = await import("./
|
|
20485
|
+
const { SigningStargateClient: h, GasPrice: v } = await import("./index_87d14dd6.js").then((m) => m.i);
|
|
20486
20486
|
return h.connectWithSigner(c || I$2.Cosmos, u85, {
|
|
20487
20487
|
gasPrice: v.fromString("0.0003uatom")
|
|
20488
20488
|
});
|
|
@@ -20557,7 +20557,7 @@ class CosmosClient {
|
|
|
20557
20557
|
}) => {
|
|
20558
20558
|
if (!q)
|
|
20559
20559
|
throw new Error("Signer not defined");
|
|
20560
|
-
const { SigningStargateClient: g } = await import("./
|
|
20560
|
+
const { SigningStargateClient: g } = await import("./index_87d14dd6.js").then(($) => $.i);
|
|
20561
20561
|
return (await (await g.connectWithSigner(this.rpcUrl, q)).sendTokens(
|
|
20562
20562
|
c2,
|
|
20563
20563
|
h2,
|
|
@@ -20567,11 +20567,11 @@ class CosmosClient {
|
|
|
20567
20567
|
)).transactionHash;
|
|
20568
20568
|
});
|
|
20569
20569
|
tt(this, Zr, async () => {
|
|
20570
|
-
const { StargateClient: c2 } = await import("./
|
|
20570
|
+
const { StargateClient: c2 } = await import("./index_87d14dd6.js").then((h2) => h2.i);
|
|
20571
20571
|
return await c2.connect(this.rpcUrl);
|
|
20572
20572
|
});
|
|
20573
20573
|
tt(this, Xr, async (c2, h2) => {
|
|
20574
|
-
const { Secp256k1HdWallet: v2 } = await import("./
|
|
20574
|
+
const { Secp256k1HdWallet: v2 } = await import("./index_75f700d8.js").then((l) => l.i), { stringToPath: m2 } = await import("./index_fad80d95.js").then((l) => l.i);
|
|
20575
20575
|
return await v2.fromMnemonic(c2, {
|
|
20576
20576
|
prefix: this.prefix,
|
|
20577
20577
|
hdPaths: [m2(h2)]
|
|
@@ -20670,14 +20670,14 @@ const O$1 = (u85) => ("recipientAddress" in u85 && u85.recipientAddress && (u85.
|
|
|
20670
20670
|
}) => ({
|
|
20671
20671
|
transfer: c.transfer,
|
|
20672
20672
|
getSigner: async (h) => {
|
|
20673
|
-
const { DirectSecp256k1HdWallet: v } = await import("./
|
|
20673
|
+
const { DirectSecp256k1HdWallet: v } = await import("./index_00dd884e.js").then((l) => l.i), { stringToPath: m } = await import("./index_fad80d95.js").then((l) => l.i);
|
|
20674
20674
|
return v.fromMnemonic(h, {
|
|
20675
20675
|
prefix: c.prefix,
|
|
20676
20676
|
hdPaths: [m(`${u85}/0`)]
|
|
20677
20677
|
});
|
|
20678
20678
|
},
|
|
20679
20679
|
getSignerFromPrivateKey: async (h) => {
|
|
20680
|
-
const { DirectSecp256k1Wallet: v } = await import("./
|
|
20680
|
+
const { DirectSecp256k1Wallet: v } = await import("./index_00dd884e.js").then((m) => m.i);
|
|
20681
20681
|
return v.fromKey(h, c.prefix);
|
|
20682
20682
|
},
|
|
20683
20683
|
getAccount: c.getAccount,
|
|
@@ -20777,7 +20777,7 @@ const O$1 = (u85) => ("recipientAddress" in u85 && u85.recipientAddress && (u85.
|
|
|
20777
20777
|
const { transaction: c, signMsg: h } = await createTransactionAndSignMsg(u85), v = dist.Buffer.from(u85.privkey).toString("hex"), m = await c.sign(v, h);
|
|
20778
20778
|
return (q = (await sendRawTransaction(m.serialize(), true))[0]) == null ? void 0 : q.hash;
|
|
20779
20779
|
}, createKeyPair = async (u85) => {
|
|
20780
|
-
const { Bip39: c, EnglishMnemonic: h, Slip10: v, Slip10Curve: m, stringToPath: l } = await import("./
|
|
20780
|
+
const { Bip39: c, EnglishMnemonic: h, Slip10: v, Slip10Curve: m, stringToPath: l } = await import("./index_fad80d95.js").then(($) => $.i), q = l(`${B$1.BNB}/0`), g = new h(u85), P = await c.mnemonicToSeed(g), { privkey: F } = v.derivePath(m.Secp256k1, P, q);
|
|
20781
20781
|
return F;
|
|
20782
20782
|
}, getPublicKey = (u85) => new ellipticExports.ec("secp256k1").keyFromPublic(u85, "hex").getPublic(), BinanceToolbox = ({ stagenet: u85 } = {}) => {
|
|
20783
20783
|
const c = new CosmosClient({
|
|
@@ -24075,20 +24075,20 @@ const getDefaultChainFee = (u85) => {
|
|
|
24075
24075
|
};
|
|
24076
24076
|
}
|
|
24077
24077
|
}, secp256k1HdWalletFromMnemonic = ({ prefix: u85, derivationPath: c }) => async (h, v = 0) => {
|
|
24078
|
-
const { Secp256k1HdWallet: m } = await import("./
|
|
24078
|
+
const { Secp256k1HdWallet: m } = await import("./index_75f700d8.js").then((q) => q.i), { stringToPath: l } = await import("./index_fad80d95.js").then((q) => q.i);
|
|
24079
24079
|
return m.fromMnemonic(h, {
|
|
24080
24080
|
hdPaths: [l(`${c}/${v}`)],
|
|
24081
24081
|
prefix: u85
|
|
24082
24082
|
});
|
|
24083
24083
|
}, createDefaultRegistry = async () => {
|
|
24084
|
-
const u85 = await import("./
|
|
24084
|
+
const u85 = await import("./index_28e5444b.js"), { Registry: c } = await import("./index_00dd884e.js").then((v) => v.i), { defaultRegistryTypes: h } = await import("./index_87d14dd6.js").then((v) => v.i);
|
|
24085
24085
|
return new c([
|
|
24086
24086
|
...h,
|
|
24087
24087
|
["/types.MsgSend", { ...u85.default.types.MsgSend }],
|
|
24088
24088
|
["/types.MsgDeposit", { ...u85.default.types.MsgDeposit }]
|
|
24089
24089
|
]);
|
|
24090
24090
|
}, createDefaultAminoTypes = async () => {
|
|
24091
|
-
const { AminoTypes: u85 } = await import("./
|
|
24091
|
+
const { AminoTypes: u85 } = await import("./index_87d14dd6.js").then((c) => c.i);
|
|
24092
24092
|
return new u85({
|
|
24093
24093
|
"/types.MsgSend": {
|
|
24094
24094
|
aminoType: "thorchain/MsgSend",
|
|
@@ -24118,7 +24118,7 @@ const getDefaultChainFee = (u85) => {
|
|
|
24118
24118
|
}
|
|
24119
24119
|
});
|
|
24120
24120
|
}, exportSignature = (u85) => base64$2.encode(u85), signMultisigTx = async (u85, c) => {
|
|
24121
|
-
const { msgs: h, accountNumber: v, sequence: m, chainId: l, fee: q, memo: g } = JSON.parse(c), P = (await u85.getAccounts())[0].address, { SigningStargateClient: F } = await import("./
|
|
24121
|
+
const { msgs: h, accountNumber: v, sequence: m, chainId: l, fee: q, memo: g } = JSON.parse(c), P = (await u85.getAccounts())[0].address, { SigningStargateClient: F } = await import("./index_87d14dd6.js").then((Y) => Y.i), $ = await F.offline(u85, {
|
|
24122
24122
|
registry: await createDefaultRegistry(),
|
|
24123
24123
|
aminoTypes: await createDefaultAminoTypes()
|
|
24124
24124
|
}), {
|
|
@@ -24142,7 +24142,7 @@ const getDefaultChainFee = (u85) => {
|
|
|
24142
24142
|
const { sequence: q, fee: g } = JSON.parse(h), P = await createMultisig(
|
|
24143
24143
|
v.map((ae) => ae.pubKey),
|
|
24144
24144
|
m
|
|
24145
|
-
), { pubkeyToAddress: F, encodeSecp256k1Pubkey: $ } = await import("./
|
|
24145
|
+
), { pubkeyToAddress: F, encodeSecp256k1Pubkey: $ } = await import("./index_75f700d8.js").then((ae) => ae.i), { StargateClient: J, makeMultisignedTx: W } = await import("./index_87d14dd6.js").then((ae) => ae.i), Y = v.map((ae) => [
|
|
24146
24146
|
F($(base64$2.decode(ae.pubKey)), u85),
|
|
24147
24147
|
base64$2.decode(ae.signature)
|
|
24148
24148
|
]), Q = await J.connect(c), ne = W(
|
|
@@ -24156,13 +24156,13 @@ const getDefaultChainFee = (u85) => {
|
|
|
24156
24156
|
);
|
|
24157
24157
|
return ee;
|
|
24158
24158
|
}, createMultisig = async (u85, c) => {
|
|
24159
|
-
const { encodeSecp256k1Pubkey: h, createMultisigThresholdPubkey: v } = await import("./
|
|
24159
|
+
const { encodeSecp256k1Pubkey: h, createMultisigThresholdPubkey: v } = await import("./index_75f700d8.js").then((m) => m.i);
|
|
24160
24160
|
return v(
|
|
24161
24161
|
u85.map((m) => h(base64$2.decode(m))),
|
|
24162
24162
|
c
|
|
24163
24163
|
);
|
|
24164
24164
|
}, importSignature = (u85) => base64$2.decode(u85), __REEXPORT__pubkeyToAddress = (u85) => async (c) => {
|
|
24165
|
-
const { pubkeyToAddress: h } = await import("./
|
|
24165
|
+
const { pubkeyToAddress: h } = await import("./index_75f700d8.js").then((v) => v.i);
|
|
24166
24166
|
return h(c, u85);
|
|
24167
24167
|
}, BaseThorchainToolbox = ({ chain: u85, stagenet: c }) => {
|
|
24168
24168
|
const h = u85 === i$1.THORChain, v = h ? T$2.THORChain : T$2.Maya, m = c ? x$1.ThornodeStagenet : x$1.ThornodeMainnet, l = `${c ? "s" : ""}${u85.toLowerCase()}`, q = B$1[u85], g = getRPC(v, c), P = new CosmosClient({ server: m, chainId: v, prefix: l, stagenet: c }), F = getDefaultChainFee(u85), $ = BaseCosmosToolbox({ client: P, derivationPath: q, decimal: b$1[u85] }), J = async (ne) => {
|
|
@@ -24177,7 +24177,7 @@ const getDefaultChainFee = (u85) => {
|
|
|
24177
24177
|
deposit: async ({ signer: ne, assetValue: ee, memo: ae, from: ue }) => {
|
|
24178
24178
|
if (!ne)
|
|
24179
24179
|
throw new Error("Signer not defined");
|
|
24180
|
-
const { SigningStargateClient: le } = await import("./
|
|
24180
|
+
const { SigningStargateClient: le } = await import("./index_87d14dd6.js").then((se) => se.i), ve = await le.connectWithSigner(g, ne, {
|
|
24181
24181
|
registry: await createDefaultRegistry()
|
|
24182
24182
|
}), Se = {
|
|
24183
24183
|
typeUrl: "/types.MsgDeposit",
|
|
@@ -24209,7 +24209,7 @@ const getDefaultChainFee = (u85) => {
|
|
|
24209
24209
|
}) => {
|
|
24210
24210
|
if (!ve)
|
|
24211
24211
|
throw new Error("Signer not defined");
|
|
24212
|
-
const { SigningStargateClient: Se } = await import("./
|
|
24212
|
+
const { SigningStargateClient: Se } = await import("./index_87d14dd6.js").then((xe) => xe.i), Me = await Se.connectWithSigner(g, ve, {
|
|
24213
24213
|
registry: await createDefaultRegistry()
|
|
24214
24214
|
}), se = {
|
|
24215
24215
|
typeUrl: "/types.MsgSend",
|
|
@@ -24258,20 +24258,20 @@ const getDefaultChainFee = (u85) => {
|
|
|
24258
24258
|
export {
|
|
24259
24259
|
AminoPrefix as A,
|
|
24260
24260
|
BinanceToolbox as B,
|
|
24261
|
-
|
|
24261
|
+
aspromise as C,
|
|
24262
24262
|
DEFAULT_GAS_VALUE as D,
|
|
24263
|
-
|
|
24264
|
-
|
|
24263
|
+
base64$1 as E,
|
|
24264
|
+
eventemitter as F,
|
|
24265
24265
|
GaiaToolbox as G,
|
|
24266
|
-
|
|
24267
|
-
|
|
24268
|
-
|
|
24266
|
+
float as H,
|
|
24267
|
+
inquire_1 as I,
|
|
24268
|
+
utf8$2 as J,
|
|
24269
24269
|
KujiraToolbox as K,
|
|
24270
|
-
|
|
24270
|
+
pool_1 as L,
|
|
24271
24271
|
MayaToolbox as M,
|
|
24272
|
-
|
|
24273
|
-
|
|
24274
|
-
|
|
24272
|
+
bnExports$1 as N,
|
|
24273
|
+
requireCryptoBrowserify as O,
|
|
24274
|
+
getAugmentedNamespace as P,
|
|
24275
24275
|
ThorchainToolbox as T,
|
|
24276
24276
|
bech32ToBase64 as a,
|
|
24277
24277
|
base64ToBech32 as b,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as global } from "./index_86436d56.js";
|
|
2
|
-
import { b as bt$1, c as ct$1, A, y as yt$1 } from "./
|
|
2
|
+
import { b as bt$1, c as ct$1, A, y as yt$1 } from "./index_64ff18e7.js";
|
|
3
3
|
var $v = Object.defineProperty;
|
|
4
4
|
var Hv = (e7, t, r) => t in e7 ? $v(e7, t, { enumerable: true, configurable: true, writable: true, value: r }) : e7[t] = r;
|
|
5
5
|
var wi = (e7, t, r) => (Hv(e7, typeof t != "symbol" ? t + "" : t, r), r);
|
|
@@ -18130,7 +18130,7 @@ const xI = () => {
|
|
|
18130
18130
|
}) => {
|
|
18131
18131
|
if (!t && !e7)
|
|
18132
18132
|
throw new Error("Either phrase or wif must be provided");
|
|
18133
|
-
const i = await import("./
|
|
18133
|
+
const i = await import("./index_51bbd44a.js").then((l) => l.j), o = xl.ECPairFactory(i), s = Kr(n);
|
|
18134
18134
|
if (t)
|
|
18135
18135
|
return o.fromWIF(t, s);
|
|
18136
18136
|
const a = Nb(e7), f = xn.fromMasterSeed(a, s).derive(r);
|
|
@@ -24984,7 +24984,7 @@ const Nf = (e7) => `https://api.blockchair.com/${rN(e7)}`, d0 = (e7) => {
|
|
|
24984
24984
|
}) => {
|
|
24985
24985
|
const n = Kr(Mr);
|
|
24986
24986
|
if (r) {
|
|
24987
|
-
const s = await import("./
|
|
24987
|
+
const s = await import("./index_51bbd44a.js").then((a) => a.j);
|
|
24988
24988
|
return xl.ECPairFactory(s).fromWIF(r, n);
|
|
24989
24989
|
}
|
|
24990
24990
|
if (!e7)
|
|
@@ -25055,31 +25055,31 @@ export {
|
|
|
25055
25055
|
Jg as J,
|
|
25056
25056
|
Kr as K,
|
|
25057
25057
|
Ll as L,
|
|
25058
|
-
|
|
25059
|
-
N,
|
|
25058
|
+
MT as M,
|
|
25059
|
+
No as N,
|
|
25060
25060
|
ON as O,
|
|
25061
25061
|
PI as P,
|
|
25062
|
-
|
|
25062
|
+
Ru as R,
|
|
25063
25063
|
SN as S,
|
|
25064
25064
|
TN as T,
|
|
25065
25065
|
Xg as X,
|
|
25066
|
-
|
|
25067
|
-
|
|
25068
|
-
|
|
25069
|
-
|
|
25070
|
-
|
|
25071
|
-
|
|
25072
|
-
|
|
25073
|
-
|
|
25074
|
-
|
|
25075
|
-
|
|
25066
|
+
Ml as a,
|
|
25067
|
+
Nb as b,
|
|
25068
|
+
cs as c,
|
|
25069
|
+
db as d,
|
|
25070
|
+
BI as e,
|
|
25071
|
+
fs as f,
|
|
25072
|
+
ar as g,
|
|
25073
|
+
Or as h,
|
|
25074
|
+
N as i,
|
|
25075
|
+
Mv as j,
|
|
25076
25076
|
ku as k,
|
|
25077
|
-
|
|
25077
|
+
dg as l,
|
|
25078
25078
|
mf as m,
|
|
25079
|
-
|
|
25079
|
+
ov as n,
|
|
25080
25080
|
ot as o,
|
|
25081
25081
|
pb as p,
|
|
25082
|
-
|
|
25082
|
+
Re as q,
|
|
25083
25083
|
sb as s,
|
|
25084
25084
|
ub as u
|
|
25085
25085
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { n as Sc, s as Zn$1, T as Ql, o as S4, R as kp, t as x4, a as Ot$1, y as di$1, p as ir$1 } from "./
|
|
2
|
-
import { d as dist } from "./
|
|
1
|
+
import { n as Sc, s as Zn$1, T as Ql, o as S4, R as kp, t as x4, a as Ot$1, y as di$1, p as ir$1 } from "./index_740490f1.js";
|
|
2
|
+
import { d as dist } from "./index_2149ed8d.js";
|
|
3
3
|
import "./index_86436d56.js";
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
4
|
+
import "./index_7c11b3c7.js";
|
|
5
|
+
import "./index_d77fc157.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "@chakra-ui/react";
|
|
8
|
-
import "@emotion/react";
|
|
9
8
|
/**
|
|
10
9
|
* @license
|
|
11
10
|
* Copyright 2019 Google LLC
|
|
@@ -35,13 +35,12 @@ var __privateMethod = (obj, member, method) => {
|
|
|
35
35
|
return method;
|
|
36
36
|
};
|
|
37
37
|
var _listener, _listeners, _cancelled, _allowInsecure, _gzip, _headers, _method, _timeout, _url, _body, _bodyType, _creds, _preflight, _process, _retry, _signal, _throttle, _getUrlFunc, _send, send_fn, _statusCode, _statusMessage, _headers2, _body2, _request, _error, _names, _data, _dataLength, _writeData, writeData_fn, _data2, _offset, _peekBytes, peekBytes_fn, _options, _types, _fullTypes, _encoderCache, _getEncoder, getEncoder_fn, _offset2, _tokens, _subTokenString, subTokenString_fn, _walkAsync, walkAsync_fn, _getCoder, getCoder_fn, _errors, _events, _functions, _abiCoder, _getFunction, getFunction_fn, _getEvent, getEvent_fn, _iface, _iface2, _filter, _a, _supports2544, _resolver, _fetch, fetch_fn, _getResolver, getResolver_fn, _url2, _processFunc, _name, _chainId, _plugins, _provider, _poller, _interval, _blockNumber, _poll, poll_fn, _provider2, _poll2, _running, _filter2, _hash, _provider3, _filter3, _poller2, _running2, _blockNumber2, _poll3, poll_fn2, _subs, _plugins2, _pausedState, _destroyed, _networkPromise, _anyNetwork, _performCache, _lastBlockNumber, _nextTimer, _timers, _disableCcipRead, _options2, _perform, perform_fn, _call, call_fn, _checkNetwork, checkNetwork_fn, _getAccountValue, getAccountValue_fn, _getBlock, getBlock_fn, _hasSub, hasSub_fn, _getSub, getSub_fn, _provider4, _filterIdPromise, _poller3, _running3, _network, _hault, _poll4, poll_fn3, _teardown, teardown_fn, _event, _options3, _nextId, _payloads, _drainTimer, _notReady, _network2, _scheduleDrain, scheduleDrain_fn, _pollingInterval, _request2, _signingKey, _data3, _checksum, _words, _loadWords, loadWords_fn, _account, account_fn, _fromSeed, fromSeed_fn;
|
|
38
|
-
import { c as createView, h as hash, a as checkOpts, n as number, t as toBytes, b as hmac, w as wrapConstructor, S as SHA2, u as u64, d as assertArgument, e as toBigInt, g as getBytes, f as defineProperties, i as assertNormalize, j as assert, k as hexlify, l as getBytesCopy, m as toNumber, o as concat, p as getNumber, q as toBeArray, s as sha256$1, r as asyncLoop, v as u32, x as getAddress, y as getBigInt, z as dataSlice, B as keccak256, C as encodeRlp, D as assertPrivate, E as toBeHex, F as assertArgumentCount, G as isError, H as mask, I as toTwos, J as fromTwos, K as isHexString, L as toQuantity, M as zeroPadValue, N as makeError, O as zeroPadBytes, P as Log, T as TransactionResponse, Q as TransactionReceipt, R as isAddressable, U as resolveAddress, V as isCallException, W as resolveProperties, X as copyRequest, Y as Signature, Z as accessListify, _ as Block, $ as FeeData, a0 as Transaction, a1 as dataLength, A as AbstractSigner, a2 as computeAddress, a3 as version, a4 as SigningKey, a5 as isBytesLike, a6 as VoidSigner } from "./
|
|
39
|
-
import { a7, aa, a9, a8 } from "./
|
|
38
|
+
import { c as createView, h as hash, a as checkOpts, n as number, t as toBytes, b as hmac, w as wrapConstructor, S as SHA2, u as u64, d as assertArgument, e as toBigInt, g as getBytes, f as defineProperties, i as assertNormalize, j as assert, k as hexlify, l as getBytesCopy, m as toNumber, o as concat, p as getNumber, q as toBeArray, s as sha256$1, r as asyncLoop, v as u32, x as getAddress, y as getBigInt, z as dataSlice, B as keccak256, C as encodeRlp, D as assertPrivate, E as toBeHex, F as assertArgumentCount, G as isError, H as mask, I as toTwos, J as fromTwos, K as isHexString, L as toQuantity, M as zeroPadValue, N as makeError, O as zeroPadBytes, P as Log, T as TransactionResponse, Q as TransactionReceipt, R as isAddressable, U as resolveAddress, V as isCallException, W as resolveProperties, X as copyRequest, Y as Signature, Z as accessListify, _ as Block, $ as FeeData, a0 as Transaction, a1 as dataLength, A as AbstractSigner, a2 as computeAddress, a3 as version, a4 as SigningKey, a5 as isBytesLike, a6 as VoidSigner } from "./index_7c11b3c7.js";
|
|
39
|
+
import { a7, aa, a9, a8 } from "./index_7c11b3c7.js";
|
|
40
40
|
import { g as global } from "./index_86436d56.js";
|
|
41
|
-
import "./
|
|
41
|
+
import "./index_d77fc157.js";
|
|
42
42
|
import "react";
|
|
43
43
|
import "@chakra-ui/react";
|
|
44
|
-
import "@emotion/react";
|
|
45
44
|
function pbkdf2Init(hash$1, _password, _salt, _opts) {
|
|
46
45
|
hash(hash$1);
|
|
47
46
|
const opts = checkOpts({ dkLen: 32, asyncTick: 10 }, _opts);
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { b as Vn, d as Pi, a as Ri } from "./
|
|
2
|
-
import { e as build } from "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
1
|
+
import { b as Vn, d as Pi, a as Ri } from "./index_1a6a5598.js";
|
|
2
|
+
import { e as build } from "./index_7c574e7d.js";
|
|
3
|
+
import "./index_9346dd3d.js";
|
|
4
|
+
import "./index_64ff18e7.js";
|
|
5
5
|
import "./index_86436d56.js";
|
|
6
|
-
import "./
|
|
6
|
+
import "./index_d77fc157.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "@chakra-ui/react";
|
|
9
|
-
import "@emotion/react";
|
|
10
9
|
function le(e, t) {
|
|
11
10
|
for (var r = 0; r < t.length; r++) {
|
|
12
11
|
const n = t[r];
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as ar$1, h as Or$1, i as N, o as ot$1, j as Mv, l as dg, u as ub, n as ov, q as Re, G as Gg, L as Ll, X as Xg, $ as $k, J as Jg, s as sb } from "./index_3fea9d52.js";
|
|
2
2
|
import "./index_86436d56.js";
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
3
|
+
import "./index_64ff18e7.js";
|
|
4
|
+
import "./index_d77fc157.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "@chakra-ui/react";
|
|
7
|
-
import "@emotion/react";
|
|
8
7
|
function E0(f, t) {
|
|
9
8
|
for (var n = 0; n < t.length; n++) {
|
|
10
9
|
const i = t[n];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as inherits_browserExports, e as elliptic, b as bnExports } from "./
|
|
1
|
+
import { f as buffer, j as getAugmentedNamespace, l as events, p as process, c as commonjsGlobal, d as bech32$3 } from "./index_d77fc157.js";
|
|
2
|
+
import { i as inherits_browserExports, e as elliptic, b as bnExports } from "./index_65017d87.js";
|
|
3
3
|
import { g as global } from "./index_86436d56.js";
|
|
4
4
|
var safeBuffer = { exports: {} };
|
|
5
5
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { A } from "./
|
|
2
|
-
import { c as a0 } from "./
|
|
3
|
-
import "./
|
|
1
|
+
import { A } from "./index_64ff18e7.js";
|
|
2
|
+
import { c as a0 } from "./index_87afedd4.js";
|
|
3
|
+
import "./index_d77fc157.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@chakra-ui/react";
|
|
6
|
-
import "@emotion/react";
|
|
7
6
|
import "./index_86436d56.js";
|
|
8
7
|
var n = /* @__PURE__ */ ((t) => (t.INVALID_INPUT_PARAMETERS = "1000", t.UNKNOWN_PROVIDERS = "1001", t.CANNOT_FIND_INBOUND_ADDRESS = "1002", t.NO_INBOUND_ADDRESSES = "1003", t.CHAIN_HALTED_OR_UNSUPPORTED = "1004", t.MISSING_INPUT_PARAMETER = "1005", t.INVALID_TYPE_GENERIC = "1100", t.INVALID_NUMBER_STRING = "1101", t.INVALID_NUMBER = "1102", t.INVALID_BOOLEAN = "1103", t.INVALID_OBJECT = "1104", t.INVALID_ARRAY = "1105", t.SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2000", t.SELL_BUY_ASSETS_ARE_THE_SAME = "2001", t.MISSING_SOURCE_ADDRESS_FOR_SYNTH = "2002", t.AFF_ADDRESS_AND_BPS_OR_NEITHER = "2003", t.AFF_ADDRESS_TOO_LONG = "2004", t.AFF_BPS_INTEGER_0_100 = "2005", t.SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN = "2006", t.DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN = "2007", t.PREFERRED_PROFVIDER_NOT_SUPPORTED = "2008", t.DESTINATION_ADDRESS_SMART_CONTRACT = "2009", t.BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2010", t.SOURCE_ADDRESS_SMART_CONTRACT = "2011", t.INVALID_PROVIDER = "2100", t.MISSING_CROSS_CHAIN_PROVIDER = "2101", t.MISSING_AVAX_PROVIDER = "2102", t.MISSING_BSC_PROVIDER = "2103", t.MISSING_ETH_PROVIDER = "2104", t.INVALID_PROVIDER_FOR_SWAP_OUT = "2105", t.MISSING_ARB_PROVIDER = "2106", t.INVALID_CHAIN = "2200", t.INVALID_ASSET = "2201", t.INVALID_ASSET_IDENTIFIER = "2202", t.UNSUPPORTED_CHAIN = "2204", t.UNSUPPORTED_ASSET = "2203", t.UNSUPPORTED_ASSET_FOR_SWAPOUT = "2205", t.INVALID_SOURCE_ADDRESS = "2300", t.INVALID_DESTINATION_ADDRESS = "2301", t.THORNODE_QUOTE_GENERIC_ERROR = "3000", t.NOT_ENOUGH_SYNTH_BALANCE = "3001", t.SYNTH_MINTING_CAP_REACHED = "3002", t.INVALID_QUOTE_MODE = "4000", t.NO_QUOTES = "4001", t.SERVICE_UNAVAILABLE_GENERIC = "5000", t.MISSING_GAS_DATA_GENERIC = "5100", t.MISSING_TOKEN_INFO_GENERIC = "5200", t.CANT_FIND_TOKEN_LIST = "5201", t.NO_PRICE = "5202", t.PRICE_IS_STALE = "5203", t.ADDRESS_NOT_WHITELISTED = "6000", t.ADDRESS_ALREADY_CLAIMED = "6001", t.TEMPORARY_ERROR = "9999", t))(n || {});
|
|
9
8
|
n.INVALID_INPUT_PARAMETERS + "", n.UNKNOWN_PROVIDERS + "", n.CANNOT_FIND_INBOUND_ADDRESS + "", n.NO_INBOUND_ADDRESSES + "", n.CHAIN_HALTED_OR_UNSUPPORTED + "", n.MISSING_INPUT_PARAMETER + "", n.INVALID_TYPE_GENERIC + "", n.INVALID_NUMBER_STRING + "", n.INVALID_NUMBER + "", n.INVALID_BOOLEAN + "", n.INVALID_OBJECT + "", n.INVALID_ARRAY + "", n.SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER + "", n.SELL_BUY_ASSETS_ARE_THE_SAME + "", n.MISSING_SOURCE_ADDRESS_FOR_SYNTH + "", n.AFF_ADDRESS_AND_BPS_OR_NEITHER + "", n.AFF_ADDRESS_TOO_LONG + "", n.AFF_BPS_INTEGER_0_100 + "", n.SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN + "", n.DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN + "", n.PREFERRED_PROFVIDER_NOT_SUPPORTED + "", n.DESTINATION_ADDRESS_SMART_CONTRACT + "", n.BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER + "", n.INVALID_PROVIDER + "", n.MISSING_CROSS_CHAIN_PROVIDER + "", n.MISSING_AVAX_PROVIDER + "", n.MISSING_BSC_PROVIDER + "", n.MISSING_ETH_PROVIDER + "", n.MISSING_ARB_PROVIDER + "", n.INVALID_PROVIDER_FOR_SWAP_OUT + "", n.INVALID_CHAIN + "", n.INVALID_ASSET + "", n.UNSUPPORTED_CHAIN + "", n.UNSUPPORTED_ASSET + "", n.UNSUPPORTED_ASSET_FOR_SWAPOUT + "", n.THORNODE_QUOTE_GENERIC_ERROR + "", n.INVALID_SOURCE_ADDRESS + "", n.INVALID_DESTINATION_ADDRESS + "", n.NOT_ENOUGH_SYNTH_BALANCE + "", n.SYNTH_MINTING_CAP_REACHED + "", n.INVALID_QUOTE_MODE + "", n.NO_QUOTES + "", n.SERVICE_UNAVAILABLE_GENERIC + "", n.MISSING_GAS_DATA_GENERIC + "", n.MISSING_TOKEN_INFO_GENERIC + "", n.CANT_FIND_TOKEN_LIST + "", n.NO_PRICE + "", n.PRICE_IS_STALE + "", n.ADDRESS_NOT_WHITELISTED + "", n.ADDRESS_ALREADY_CLAIMED + "";
|
|
@@ -107,7 +106,7 @@ const u = (t) => {
|
|
|
107
106
|
return F({ method: r, params: I, chain: t.chain });
|
|
108
107
|
}, P = ({ chainId: t, rpcUrl: i }) => async ({ from: a, recipient: e, assetValue: r, memo: E }) => {
|
|
109
108
|
var N, A2;
|
|
110
|
-
const { createCosmJS: _ } = await import("./
|
|
109
|
+
const { createCosmJS: _ } = await import("./index_5dc59e18.js"), I = (A2 = (N = window.xfi) == null ? void 0 : N.keplr) == null ? void 0 : A2.getOfflineSignerOnlyAmino(t), s = await _({ offlineSigner: I, rpcUrl: i }), S = [
|
|
111
110
|
{ denom: (r == null ? void 0 : r.symbol) === "MUON" ? "umuon" : "uatom", amount: r.baseValue }
|
|
112
111
|
], { transactionHash: c } = await s.sendTokens(a, e, S, 1.6, E);
|
|
113
112
|
return c;
|
|
@@ -124,7 +123,7 @@ const y = async ({
|
|
|
124
123
|
var _, I;
|
|
125
124
|
switch (t) {
|
|
126
125
|
case o.THORChain: {
|
|
127
|
-
const { DEFAULT_GAS_VALUE: s, ThorchainToolbox: S } = await import("./
|
|
126
|
+
const { DEFAULT_GAS_VALUE: s, ThorchainToolbox: S } = await import("./index_5dc59e18.js");
|
|
128
127
|
return {
|
|
129
128
|
...S({ stagenet: false }),
|
|
130
129
|
deposit: (c) => T({ ...c, recipient: "" }, "deposit"),
|
|
@@ -132,21 +131,21 @@ const y = async ({
|
|
|
132
131
|
};
|
|
133
132
|
}
|
|
134
133
|
case o.Cosmos: {
|
|
135
|
-
const { GaiaToolbox: s } = await import("./
|
|
134
|
+
const { GaiaToolbox: s } = await import("./index_5dc59e18.js");
|
|
136
135
|
return {
|
|
137
136
|
...s({ server: E }),
|
|
138
137
|
transfer: P({ chainId: ChainId.Cosmos, rpcUrl: r || D.Cosmos })
|
|
139
138
|
};
|
|
140
139
|
}
|
|
141
140
|
case o.Kujira: {
|
|
142
|
-
const { KujiraToolbox: s } = await import("./
|
|
141
|
+
const { KujiraToolbox: s } = await import("./index_5dc59e18.js");
|
|
143
142
|
return {
|
|
144
143
|
...s(),
|
|
145
144
|
transfer: P({ chainId: ChainId.Kujira, rpcUrl: r || D.Kujira })
|
|
146
145
|
};
|
|
147
146
|
}
|
|
148
147
|
case o.Binance: {
|
|
149
|
-
const { BinanceToolbox: s } = await import("./
|
|
148
|
+
const { BinanceToolbox: s } = await import("./index_5dc59e18.js");
|
|
150
149
|
return { ...s(), transfer: T };
|
|
151
150
|
}
|
|
152
151
|
case o.Ethereum:
|
|
@@ -161,7 +160,7 @@ const y = async ({
|
|
|
161
160
|
addEVMWalletNetwork: l,
|
|
162
161
|
covalentApi: U,
|
|
163
162
|
ethplorerApi: f
|
|
164
|
-
} = await import("./
|
|
163
|
+
} = await import("./index_3433fe56.js"), { BrowserProvider: M } = await import("./index_40f2115a.js"), O = (_ = window.xfi) == null ? void 0 : _.ethereum;
|
|
165
164
|
if (!O)
|
|
166
165
|
throw new Error("Requested web3 wallet is not installed");
|
|
167
166
|
if (t !== o.Ethereum && !a || t === o.Ethereum && !i)
|
|
@@ -204,7 +203,7 @@ const y = async ({
|
|
|
204
203
|
case o.BitcoinCash:
|
|
205
204
|
case o.Dogecoin:
|
|
206
205
|
case o.Litecoin: {
|
|
207
|
-
const { BCHToolbox: s, BTCToolbox: S, DOGEToolbox: c, LTCToolbox: N } = await import("./
|
|
206
|
+
const { BCHToolbox: s, BTCToolbox: S, DOGEToolbox: c, LTCToolbox: N } = await import("./index_b62d8ff4.js"), A2 = { rpcUrl: r, utxoApiKey: e, apiClient: E };
|
|
208
207
|
return { ...t === o.Bitcoin ? S(A2) : t === o.BitcoinCash ? s(A2) : t === o.Dogecoin ? c(A2) : N(A2), transfer: T };
|
|
209
208
|
}
|
|
210
209
|
default:
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { A, B, D, G, K, M, T, b, a, c, e, g, d, f, i, h, s } from "./
|
|
2
|
-
import "./
|
|
1
|
+
import { A, B, D, G, K, M, T, b, a, c, e, g, d, f, i, h, s } from "./index_3ed7e242.js";
|
|
2
|
+
import "./index_64ff18e7.js";
|
|
3
3
|
import "./index_86436d56.js";
|
|
4
|
-
import "./
|
|
4
|
+
import "./index_d77fc157.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "@chakra-ui/react";
|
|
7
|
-
import "@emotion/react";
|
|
8
7
|
export {
|
|
9
8
|
A as AminoPrefix,
|
|
10
9
|
B as BinanceToolbox,
|