@pioneer-platform/pioneer-react 0.2.47 → 0.2.49
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.js +198340 -146844
- package/dist/{index_0e37f5ff.js → index_0652205a.js} +6 -6
- package/dist/{index_f9d1a3bf.js → index_096371b1.js} +3 -1
- package/dist/{index_ae6c3b10.js → index_0a5ed442.js} +3 -3
- package/dist/{index_e233a036.js → index_0a6e5811.js} +1 -1
- package/dist/{index_547d2868.js → index_0b5f5f6a.js} +4 -4
- package/dist/index_10812439.js +25 -0
- package/dist/{index_4a548214.js → index_1093b1b4.js} +8 -8
- package/dist/{index_3a6b0cd3.js → index_169417bf.js} +3 -3
- package/dist/{index_e168f4c0.js → index_1d5f0f00.js} +7 -7
- package/dist/{index_e57ba5a5.js → index_278505c5.js} +3 -3
- package/dist/{index_a4f5a15a.js → index_2845411a.js} +19 -19
- package/dist/{index_003befba.js → index_29be6ff5.js} +1122 -1312
- package/dist/{index_a6b45215.js → index_2dc95f2a.js} +7 -3
- package/dist/{index_6d2a3e5c.js → index_3402bab8.js} +6 -2
- package/dist/{index_310b7772.js → index_3c54e5ec.js} +9 -9
- package/dist/{index_f9d461d1.js → index_423ea09e.js} +3 -3
- package/dist/{index_37894947.js → index_4425b278.js} +3 -3
- package/dist/{index_61a33920.js → index_514c608b.js} +6 -6
- package/dist/index_51b338c1.js +121 -0
- package/dist/{index_0364269a.js → index_5d8426fb.js} +3 -3
- package/dist/index_628b22bc.js +11003 -0
- package/dist/index_63a883f7.js +446 -0
- package/dist/{index_d8e757ba.js → index_654fef3a.js} +3 -3
- package/dist/index_691fd636.js +12913 -0
- package/dist/{index_674ffbfa.js → index_69b0f47b.js} +9 -9
- package/dist/{index_a682c1a8.js → index_6cd7bc1a.js} +3 -1
- package/dist/{index_c8ebd6e3.js → index_6ebe4744.js} +900 -900
- package/dist/{index_7382dec1.js → index_7f735685.js} +5 -5
- package/dist/{index_b3022c1a.js → index_82348f63.js} +5 -5
- package/dist/index_849386d3.js +1115 -0
- package/dist/{index_85b01410.js → index_8610c3c4.js} +6 -6
- package/dist/index_8d6422b9.js +112 -0
- package/dist/{index_167c5f7a.js → index_8fd2c24a.js} +3 -3
- package/dist/{index_1990afbf.js → index_942c3b80.js} +4 -4
- package/dist/index_94b7968d.js +22872 -0
- package/dist/index_94d38802.js +2856 -0
- package/dist/{index_bd7e0d56.js → index_a5ca5cc4.js} +2 -2
- package/dist/{index_f80541a0.js → index_aa71379e.js} +307 -267
- package/dist/{index_354cce52.js → index_aa773d39.js} +3 -3
- package/dist/{index_29e62962.js → index_b022faaa.js} +4 -4
- package/dist/index_b1028d5f.js +65 -0
- package/dist/index_c232ca43.js +25 -0
- package/dist/{index_f19b5fe5.js → index_c9105338.js} +3 -3
- package/dist/{index_7c12bb44.js → index_cebbd50e.js} +1 -1
- package/dist/{index_ca633a1c.js → index_d477606a.js} +7 -7
- package/dist/index_d8a5e2ef.js +116 -0
- package/dist/{index_542dbb9a.js → index_de4af619.js} +4 -4
- package/dist/{index_7a1bb0b1.js → index_df47a9c6.js} +8 -8
- package/dist/{index_8b9255eb.js → index_e0b32f2f.js} +10 -10
- package/dist/{index_b21f58b7.js → index_e2794130.js} +4 -4
- package/dist/{index_2cbf1530.js → index_ecce7b22.js} +6 -6
- package/dist/{index_3891b298.js → index_f2d68730.js} +1 -1
- package/dist/index_f66728ba.js +130 -0
- package/dist/{index_f3922fc1.js → index_f8bc80e1.js} +3 -3
- package/package.json +19 -18
- package/src/lib/context/Pioneer/sdk/connect.ts +11 -11
|
@@ -32,8 +32,8 @@ function getAugmentedNamespace(n2) {
|
|
|
32
32
|
a = {};
|
|
33
33
|
Object.defineProperty(a, "__esModule", { value: true });
|
|
34
34
|
Object.keys(n2).forEach(function(k2) {
|
|
35
|
-
var
|
|
36
|
-
Object.defineProperty(a, k2,
|
|
35
|
+
var d2 = Object.getOwnPropertyDescriptor(n2, k2);
|
|
36
|
+
Object.defineProperty(a, k2, d2.get ? d2 : {
|
|
37
37
|
enumerable: true,
|
|
38
38
|
get: function() {
|
|
39
39
|
return n2[k2];
|
|
@@ -55,16 +55,16 @@ var reactJsxRuntime_production_min = {};
|
|
|
55
55
|
*/
|
|
56
56
|
var f = React__default$1, k$1 = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m$2 = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p$1 = { key: true, ref: true, __self: true, __source: true };
|
|
57
57
|
function q$2(c, a, g) {
|
|
58
|
-
var b2,
|
|
58
|
+
var b2, d2 = {}, e = null, h2 = null;
|
|
59
59
|
void 0 !== g && (e = "" + g);
|
|
60
60
|
void 0 !== a.key && (e = "" + a.key);
|
|
61
61
|
void 0 !== a.ref && (h2 = a.ref);
|
|
62
62
|
for (b2 in a)
|
|
63
|
-
m$2.call(a, b2) && !p$1.hasOwnProperty(b2) && (
|
|
63
|
+
m$2.call(a, b2) && !p$1.hasOwnProperty(b2) && (d2[b2] = a[b2]);
|
|
64
64
|
if (c && c.defaultProps)
|
|
65
65
|
for (b2 in a = c.defaultProps, a)
|
|
66
|
-
void 0 ===
|
|
67
|
-
return { $$typeof: k$1, type: c, key: e, ref: h2, props:
|
|
66
|
+
void 0 === d2[b2] && (d2[b2] = a[b2]);
|
|
67
|
+
return { $$typeof: k$1, type: c, key: e, ref: h2, props: d2, _owner: n.current };
|
|
68
68
|
}
|
|
69
69
|
reactJsxRuntime_production_min.Fragment = l;
|
|
70
70
|
reactJsxRuntime_production_min.jsx = q$2;
|
|
@@ -1108,58 +1108,58 @@ const He = [
|
|
|
1108
1108
|
"TC-BEP20"
|
|
1109
1109
|
/* TC_SUPPORTED_TO_BSC */
|
|
1110
1110
|
];
|
|
1111
|
-
var o
|
|
1111
|
+
var o = /* @__PURE__ */ ((e) => (e.INVALID_INPUT_PARAMETERS = "1000", e.UNKNOWN_PROVIDERS = "1001", e.CANNOT_FIND_INBOUND_ADDRESS = "1002", e.NO_INBOUND_ADDRESSES = "1003", e.CHAIN_HALTED_OR_UNSUPPORTED = "1004", e.MISSING_INPUT_PARAMETER = "1005", e.INVALID_TYPE_GENERIC = "1100", e.INVALID_NUMBER_STRING = "1101", e.INVALID_NUMBER = "1102", e.INVALID_BOOLEAN = "1103", e.INVALID_OBJECT = "1104", e.INVALID_ARRAY = "1105", e.SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2000", e.SELL_BUY_ASSETS_ARE_THE_SAME = "2001", e.MISSING_SOURCE_ADDRESS_FOR_SYNTH = "2002", e.AFF_ADDRESS_AND_BPS_OR_NEITHER = "2003", e.AFF_ADDRESS_TOO_LONG = "2004", e.AFF_BPS_INTEGER_0_100 = "2005", e.SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN = "2006", e.DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN = "2007", e.PREFERRED_PROFVIDER_NOT_SUPPORTED = "2008", e.DESTINATION_ADDRESS_SMART_CONTRACT = "2009", e.BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2010", e.SOURCE_ADDRESS_SMART_CONTRACT = "2011", e.INVALID_PROVIDER = "2100", e.MISSING_CROSS_CHAIN_PROVIDER = "2101", e.MISSING_AVAX_PROVIDER = "2102", e.MISSING_BSC_PROVIDER = "2103", e.MISSING_ETH_PROVIDER = "2104", e.INVALID_PROVIDER_FOR_SWAP_OUT = "2105", e.MISSING_ARB_PROVIDER = "2106", e.INVALID_CHAIN = "2200", e.INVALID_ASSET = "2201", e.INVALID_ASSET_IDENTIFIER = "2202", e.UNSUPPORTED_CHAIN = "2204", e.UNSUPPORTED_ASSET = "2203", e.UNSUPPORTED_ASSET_FOR_SWAPOUT = "2205", e.INVALID_SOURCE_ADDRESS = "2300", e.INVALID_DESTINATION_ADDRESS = "2301", e.THORNODE_QUOTE_GENERIC_ERROR = "3000", e.NOT_ENOUGH_SYNTH_BALANCE = "3001", e.SYNTH_MINTING_CAP_REACHED = "3002", e.INVALID_QUOTE_MODE = "4000", e.NO_QUOTES = "4001", e.SERVICE_UNAVAILABLE_GENERIC = "5000", e.MISSING_GAS_DATA_GENERIC = "5100", e.MISSING_TOKEN_INFO_GENERIC = "5200", e.CANT_FIND_TOKEN_LIST = "5201", e.NO_PRICE = "5202", e.PRICE_IS_STALE = "5203", e.ADDRESS_NOT_WHITELISTED = "6000", e.ADDRESS_ALREADY_CLAIMED = "6001", e.TEMPORARY_ERROR = "9999", e))(o || {});
|
|
1112
1112
|
({
|
|
1113
|
-
[o
|
|
1114
|
-
[o
|
|
1115
|
-
[o
|
|
1116
|
-
[o
|
|
1117
|
-
[o
|
|
1118
|
-
[o
|
|
1119
|
-
[o
|
|
1120
|
-
[o
|
|
1121
|
-
[o
|
|
1122
|
-
[o
|
|
1123
|
-
[o
|
|
1124
|
-
[o
|
|
1125
|
-
[o
|
|
1126
|
-
[o
|
|
1127
|
-
[o
|
|
1128
|
-
[o
|
|
1129
|
-
[o
|
|
1130
|
-
[o
|
|
1131
|
-
[o
|
|
1132
|
-
[o
|
|
1133
|
-
[o
|
|
1134
|
-
[o
|
|
1135
|
-
[o
|
|
1136
|
-
[o
|
|
1137
|
-
[o
|
|
1138
|
-
[o
|
|
1139
|
-
[o
|
|
1140
|
-
[o
|
|
1141
|
-
[o
|
|
1142
|
-
[o
|
|
1143
|
-
[o
|
|
1144
|
-
[o
|
|
1145
|
-
[o
|
|
1146
|
-
[o
|
|
1147
|
-
[o
|
|
1148
|
-
[o
|
|
1149
|
-
[o
|
|
1150
|
-
[o
|
|
1151
|
-
[o
|
|
1152
|
-
[o
|
|
1153
|
-
[o
|
|
1154
|
-
[o
|
|
1155
|
-
[o
|
|
1156
|
-
[o
|
|
1157
|
-
[o
|
|
1158
|
-
[o
|
|
1159
|
-
[o
|
|
1160
|
-
[o
|
|
1161
|
-
[o
|
|
1162
|
-
[o
|
|
1113
|
+
[o.INVALID_INPUT_PARAMETERS]: "Invalid input parameters: {0}.",
|
|
1114
|
+
[o.UNKNOWN_PROVIDERS]: "Unknown providers: {0}.",
|
|
1115
|
+
[o.CANNOT_FIND_INBOUND_ADDRESS]: "Cannot find inbound address.",
|
|
1116
|
+
[o.NO_INBOUND_ADDRESSES]: "No inbound addresses.",
|
|
1117
|
+
[o.CHAIN_HALTED_OR_UNSUPPORTED]: "Chain {0} halted or unsupported.",
|
|
1118
|
+
[o.MISSING_INPUT_PARAMETER]: "Missing input parameter: {0}.",
|
|
1119
|
+
[o.INVALID_TYPE_GENERIC]: "Invalid type",
|
|
1120
|
+
[o.INVALID_NUMBER_STRING]: "Invalid number string.",
|
|
1121
|
+
[o.INVALID_NUMBER]: "Invalid number.",
|
|
1122
|
+
[o.INVALID_BOOLEAN]: "Invalid boolean.",
|
|
1123
|
+
[o.INVALID_OBJECT]: "Invalid object.",
|
|
1124
|
+
[o.INVALID_ARRAY]: "Invalid array.",
|
|
1125
|
+
[o.SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER]: "Sell amount must be a positive integer.",
|
|
1126
|
+
[o.SELL_BUY_ASSETS_ARE_THE_SAME]: "Sell and buy assets are the same.",
|
|
1127
|
+
[o.MISSING_SOURCE_ADDRESS_FOR_SYNTH]: "Source address is required for synth quote.",
|
|
1128
|
+
[o.AFF_ADDRESS_AND_BPS_OR_NEITHER]: "Must provide affiliateAddress and affiliateBasisPoints params, or neither.",
|
|
1129
|
+
[o.AFF_ADDRESS_TOO_LONG]: "affiliateAddress too long: 3 characters max.",
|
|
1130
|
+
[o.AFF_BPS_INTEGER_0_100]: "affiliateBasisPoints must be an integer between 0 and 100.",
|
|
1131
|
+
[o.SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN]: "Source address {0} invalid for sell chain.",
|
|
1132
|
+
[o.DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN]: "Destination address {0} invalid for buy chain.",
|
|
1133
|
+
[o.PREFERRED_PROFVIDER_NOT_SUPPORTED]: "Preferred provider not supported.",
|
|
1134
|
+
[o.DESTINATION_ADDRESS_SMART_CONTRACT]: "Destination address is a smart contract.",
|
|
1135
|
+
[o.BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER]: "Buy amount must be a positive integer.",
|
|
1136
|
+
[o.INVALID_PROVIDER]: "Invalid provider {0}.",
|
|
1137
|
+
[o.MISSING_CROSS_CHAIN_PROVIDER]: "Missing cross-chain provider.",
|
|
1138
|
+
[o.MISSING_AVAX_PROVIDER]: "Missing AVAX provider.",
|
|
1139
|
+
[o.MISSING_BSC_PROVIDER]: "Missing BSC provider.",
|
|
1140
|
+
[o.MISSING_ETH_PROVIDER]: "Missing ETH provider.",
|
|
1141
|
+
[o.MISSING_ARB_PROVIDER]: "Missing ARB provider.",
|
|
1142
|
+
[o.INVALID_PROVIDER_FOR_SWAP_OUT]: "Invalid provider for swap out.",
|
|
1143
|
+
[o.INVALID_CHAIN]: "Invalid chain {0}.",
|
|
1144
|
+
[o.INVALID_ASSET]: "Invalid asset {0}.",
|
|
1145
|
+
[o.UNSUPPORTED_CHAIN]: "Unsupported chain {0}.",
|
|
1146
|
+
[o.UNSUPPORTED_ASSET]: "Unsupported asset {0}.",
|
|
1147
|
+
[o.UNSUPPORTED_ASSET_FOR_SWAPOUT]: "Unsupported asset {0} for swap out.",
|
|
1148
|
+
[o.THORNODE_QUOTE_GENERIC_ERROR]: "ThorNode quote generic error.",
|
|
1149
|
+
[o.INVALID_SOURCE_ADDRESS]: "Invalid source address {0}",
|
|
1150
|
+
[o.INVALID_DESTINATION_ADDRESS]: "Invalid destination address {0}",
|
|
1151
|
+
[o.NOT_ENOUGH_SYNTH_BALANCE]: "Source address doesn't have enough synth balance for this quote.",
|
|
1152
|
+
[o.SYNTH_MINTING_CAP_REACHED]: "Synth minting cap reached.",
|
|
1153
|
+
[o.INVALID_QUOTE_MODE]: "Invalid quote mode.",
|
|
1154
|
+
[o.NO_QUOTES]: "No quotes to service this request.",
|
|
1155
|
+
[o.SERVICE_UNAVAILABLE_GENERIC]: "Service unavailable.",
|
|
1156
|
+
[o.MISSING_GAS_DATA_GENERIC]: "Missing gas data.",
|
|
1157
|
+
[o.MISSING_TOKEN_INFO_GENERIC]: "Missing token info.",
|
|
1158
|
+
[o.CANT_FIND_TOKEN_LIST]: "Can't find tokenlist {0}.",
|
|
1159
|
+
[o.NO_PRICE]: "No price for asset {0}.",
|
|
1160
|
+
[o.PRICE_IS_STALE]: "Price is stale for asset {0}.",
|
|
1161
|
+
[o.ADDRESS_NOT_WHITELISTED]: "Address {0} not whitelisted for airdrop.",
|
|
1162
|
+
[o.ADDRESS_ALREADY_CLAIMED]: "Address {0} already claimed the airdrop."
|
|
1163
1163
|
});
|
|
1164
1164
|
var s = /* @__PURE__ */ ((e) => (e.Arbitrum = "ARB", e.Avalanche = "AVAX", e.Binance = "BNB", e.BinanceSmartChain = "BSC", e.Bitcoin = "BTC", e.BitcoinCash = "BCH", e.Cosmos = "GAIA", e.Dogecoin = "DOGE", e.Ethereum = "ETH", e.Kujira = "KUJI", e.Litecoin = "LTC", e.Maya = "MAYA", e.Optimism = "OP", e.Polygon = "MATIC", e.THORChain = "THOR", e))(s || {});
|
|
1165
1165
|
var A = /* @__PURE__ */ ((e) => (e[e.ARB = 18] = "ARB", 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.DASH = 8] = "DASH", e[e.DOGE = 8] = "DOGE", e[e.ETH = 18] = "ETH", e[e.GAIA = 6] = "GAIA", e[e.KUJI = 6] = "KUJI", e[e.LTC = 8] = "LTC", e[e.MATIC = 18] = "MATIC", e[e.MAYA = 10] = "MAYA", e[e.OP = 18] = "OP", e[e.THOR = 8] = "THOR", e))(A || {});
|
|
@@ -1355,7 +1355,7 @@ const Re = async (e, t2) => {
|
|
|
1355
1355
|
symbol: e,
|
|
1356
1356
|
ticker: t2,
|
|
1357
1357
|
chain: n2
|
|
1358
|
-
}) => n2 === "ETH" && t2 !== "ETH" ? `${t2}-${e.slice(-3)}` : e, D
|
|
1358
|
+
}) => n2 === "ETH" && t2 !== "ETH" ? `${t2}-${e.slice(-3)}` : e, D = (e, t2) => {
|
|
1359
1359
|
switch (e) {
|
|
1360
1360
|
case h.LEAVE:
|
|
1361
1361
|
case h.BOND: {
|
|
@@ -1375,8 +1375,8 @@ const Re = async (e, t2) => {
|
|
|
1375
1375
|
return r ? `${e}:${n2}/${a}::t:0` : `${e}:${n2}.${a}:${i || ""}:t:0`;
|
|
1376
1376
|
}
|
|
1377
1377
|
case h.WITHDRAW: {
|
|
1378
|
-
const { chain: n2, ticker: a, symbol: i, basisPoints: r, targetAssetString: p2, singleSide: u } = t2, c = !u && p2 ? `:${p2}` : "",
|
|
1379
|
-
return `${e}:${n2}${u ? "/" : "."}${
|
|
1378
|
+
const { chain: n2, ticker: a, symbol: i, basisPoints: r, targetAssetString: p2, singleSide: u } = t2, c = !u && p2 ? `:${p2}` : "", d2 = lt({ chain: n2, symbol: i, ticker: a });
|
|
1379
|
+
return `${e}:${n2}${u ? "/" : "."}${d2}:${r}${c}`;
|
|
1380
1380
|
}
|
|
1381
1381
|
case h.OPEN_LOAN:
|
|
1382
1382
|
case h.CLOSE_LOAN: {
|
|
@@ -1412,10 +1412,10 @@ const Re = async (e, t2) => {
|
|
|
1412
1412
|
`Invalid identifier: ${e}. Expected format: <Chain>.<Ticker> or <Chain>.<Ticker>-<ContractAddress>`
|
|
1413
1413
|
);
|
|
1414
1414
|
}, U = (e) => 10n ** BigInt(e), G = (e) => Math.log10(parseFloat(e.toString()));
|
|
1415
|
-
var L, k, se, ge, ie, Te, z$1, re$7, H$1, W$1, Z, pe, $$5, J;
|
|
1415
|
+
var L$1, k, se, ge, ie, Te, z$1, re$7, H$1, W$1, Z, pe, $$5, J;
|
|
1416
1416
|
const mt = class Q {
|
|
1417
1417
|
constructor(t2) {
|
|
1418
|
-
B(this, L), B(this, se), B(this, ie), B(this, z$1), B(this, H$1), B(this, Z), B(this, $$5), C(this, "decimalMultiplier", 10n ** 8n), C(this, "bigIntValue", 0n), C(this, "decimal");
|
|
1418
|
+
B(this, L$1), B(this, se), B(this, ie), B(this, z$1), B(this, H$1), B(this, Z), B(this, $$5), C(this, "decimalMultiplier", 10n ** 8n), C(this, "bigIntValue", 0n), C(this, "decimal");
|
|
1419
1419
|
const n2 = typeof t2 == "object", a = n2 ? t2.value : t2;
|
|
1420
1420
|
this.decimal = n2 ? t2.decimal : void 0, this.decimalMultiplier = U(
|
|
1421
1421
|
Math.max(R$1(this, Z, pe).call(this, R$1(this, H$1, W$1).call(this, a)), this.decimal || 0)
|
|
@@ -1456,16 +1456,16 @@ const mt = class Q {
|
|
|
1456
1456
|
);
|
|
1457
1457
|
}
|
|
1458
1458
|
add(...t2) {
|
|
1459
|
-
return R$1(this, L, k).call(this, "add", ...t2);
|
|
1459
|
+
return R$1(this, L$1, k).call(this, "add", ...t2);
|
|
1460
1460
|
}
|
|
1461
1461
|
sub(...t2) {
|
|
1462
|
-
return R$1(this, L, k).call(this, "sub", ...t2);
|
|
1462
|
+
return R$1(this, L$1, k).call(this, "sub", ...t2);
|
|
1463
1463
|
}
|
|
1464
1464
|
mul(...t2) {
|
|
1465
|
-
return R$1(this, L, k).call(this, "mul", ...t2);
|
|
1465
|
+
return R$1(this, L$1, k).call(this, "mul", ...t2);
|
|
1466
1466
|
}
|
|
1467
1467
|
div(...t2) {
|
|
1468
|
-
return R$1(this, L, k).call(this, "div", ...t2);
|
|
1468
|
+
return R$1(this, L$1, k).call(this, "div", ...t2);
|
|
1469
1469
|
}
|
|
1470
1470
|
gt(t2) {
|
|
1471
1471
|
return this.bigIntValue > this.getBigIntValue(t2);
|
|
@@ -1494,8 +1494,8 @@ const mt = class Q {
|
|
|
1494
1494
|
const u = i - (p2.length - 1);
|
|
1495
1495
|
u > 0 && (p2 = "0".repeat(u) + p2);
|
|
1496
1496
|
const c = p2.length - i;
|
|
1497
|
-
let
|
|
1498
|
-
return parseInt(
|
|
1497
|
+
let d2 = p2.slice(-i);
|
|
1498
|
+
return parseInt(d2[a]) >= 5 ? d2 = `${d2.substring(0, a - 1)}${(parseInt(d2[a - 1]) + 1).toString()}` : d2 = d2.substring(0, a), `${r ? "-" : ""}${p2.slice(0, c)}.${d2}`.replace(
|
|
1499
1499
|
/\.?0*$/,
|
|
1500
1500
|
""
|
|
1501
1501
|
);
|
|
@@ -1508,7 +1508,7 @@ const mt = class Q {
|
|
|
1508
1508
|
) : a;
|
|
1509
1509
|
}
|
|
1510
1510
|
};
|
|
1511
|
-
L = /* @__PURE__ */ new WeakSet(), k = function(e, ...t2) {
|
|
1511
|
+
L$1 = /* @__PURE__ */ new WeakSet(), k = function(e, ...t2) {
|
|
1512
1512
|
const n2 = R$1(this, ie, Te).call(this, this, ...t2), a = U(n2), i = t2.reduce(
|
|
1513
1513
|
(p2, u) => {
|
|
1514
1514
|
const c = this.getBigIntValue(u, n2);
|
|
@@ -1618,8 +1618,8 @@ class v extends oe {
|
|
|
1618
1618
|
...r
|
|
1619
1619
|
} = await import("./index_8503fb04.js");
|
|
1620
1620
|
de = [i, ...Object.values(r)].reduce(
|
|
1621
|
-
(p2, { tokens: u }) => (u.forEach(({ identifier: c, chain:
|
|
1622
|
-
const l2 = "decimals" in y ? y.decimals : A[
|
|
1621
|
+
(p2, { tokens: u }) => (u.forEach(({ identifier: c, chain: d2, ...y }) => {
|
|
1622
|
+
const l2 = "decimals" in y ? y.decimals : A[d2];
|
|
1623
1623
|
p2.set(c, { identifier: c, decimal: l2 });
|
|
1624
1624
|
}), p2),
|
|
1625
1625
|
/* @__PURE__ */ new Map()
|
|
@@ -3460,7 +3460,7 @@ const _t = [
|
|
|
3460
3460
|
data: p2 = "",
|
|
3461
3461
|
deadline: u,
|
|
3462
3462
|
memo: c,
|
|
3463
|
-
router:
|
|
3463
|
+
router: d2,
|
|
3464
3464
|
memoStreamingSwap: y,
|
|
3465
3465
|
tcMemo: l2,
|
|
3466
3466
|
tcRouter: _,
|
|
@@ -3470,12 +3470,12 @@ const _t = [
|
|
|
3470
3470
|
}
|
|
3471
3471
|
}) => {
|
|
3472
3472
|
const E = !!ve[t2.toLowerCase()];
|
|
3473
|
-
if (E && !
|
|
3473
|
+
if (E && !d2)
|
|
3474
3474
|
throw new Error("Router is required on calldata for swapIn with GenericContract");
|
|
3475
3475
|
const S = l2 || c, g = e && y || S;
|
|
3476
3476
|
if (!f2 && !O)
|
|
3477
3477
|
throw new Error("TC Vault is required on calldata");
|
|
3478
|
-
if (!_ && !
|
|
3478
|
+
if (!_ && !d2)
|
|
3479
3479
|
throw new Error("TC Router is required on calldata");
|
|
3480
3480
|
if (!g)
|
|
3481
3481
|
throw new Error("TC Memo is required on calldata");
|
|
@@ -3483,12 +3483,12 @@ const _t = [
|
|
|
3483
3483
|
throw new Error("Token is required on calldata");
|
|
3484
3484
|
const x = [
|
|
3485
3485
|
// v2 contracts don't have tcVault, tcRouter, tcMemo but vault, router, memo
|
|
3486
|
-
a(_ ||
|
|
3486
|
+
a(_ || d2),
|
|
3487
3487
|
a(f2 || O),
|
|
3488
3488
|
g.replace("{recipientAddress}", n2),
|
|
3489
3489
|
a(I2),
|
|
3490
3490
|
i
|
|
3491
|
-
], Me = E ? [a(
|
|
3491
|
+
], Me = E ? [a(d2), p2, u] : [r, u];
|
|
3492
3492
|
return [...x, ...Me];
|
|
3493
3493
|
}, Dt = ({ chain: e, txHash: t2 }) => {
|
|
3494
3494
|
const n2 = Ee[e];
|
|
@@ -3577,8 +3577,8 @@ class en {
|
|
|
3577
3577
|
throw new m("core_swap_route_not_complete");
|
|
3578
3578
|
try {
|
|
3579
3579
|
if (He.includes(r)) {
|
|
3580
|
-
const
|
|
3581
|
-
if (!(
|
|
3580
|
+
const d2 = this.connectedWallets[p2];
|
|
3581
|
+
if (!(d2 != null && d2.sendTransaction))
|
|
3582
3582
|
throw new m("core_wallet_connection_not_found");
|
|
3583
3583
|
if (!(t3 ? (u = a == null ? void 0 : a.streamingSwap) == null ? void 0 : u.transaction : a == null ? void 0 : a.transaction))
|
|
3584
3584
|
throw new m("core_swap_route_transaction_not_found");
|
|
@@ -3591,18 +3591,18 @@ class en {
|
|
|
3591
3591
|
value: l2(E) ? E : _(E, "wei").toString(16)
|
|
3592
3592
|
}).baseValueBigInt : 0n
|
|
3593
3593
|
};
|
|
3594
|
-
return
|
|
3594
|
+
return d2.sendTransaction(S, i);
|
|
3595
3595
|
}
|
|
3596
3596
|
if ($e.includes(r)) {
|
|
3597
3597
|
if (!a.calldata.fromAsset)
|
|
3598
3598
|
throw new m("core_swap_asset_not_recognized");
|
|
3599
|
-
const
|
|
3600
|
-
if (!
|
|
3599
|
+
const d2 = await v.fromString(a.calldata.fromAsset);
|
|
3600
|
+
if (!d2)
|
|
3601
3601
|
throw new m("core_swap_asset_not_recognized");
|
|
3602
|
-
const { address: y } = await b$1(this, V).call(this,
|
|
3602
|
+
const { address: y } = await b$1(this, V).call(this, d2.chain), {
|
|
3603
3603
|
contract: l2,
|
|
3604
3604
|
calldata: { expiration: _, amountIn: f2, memo: O, memoStreamingSwap: I2 }
|
|
3605
|
-
} = a, E =
|
|
3605
|
+
} = a, E = d2.add(ye.fromBigInt(BigInt(f2), d2.decimal)), S = t3 && I2 || O;
|
|
3606
3606
|
return this.deposit({
|
|
3607
3607
|
expiration: _,
|
|
3608
3608
|
assetValue: E,
|
|
@@ -3613,13 +3613,13 @@ class en {
|
|
|
3613
3613
|
});
|
|
3614
3614
|
}
|
|
3615
3615
|
if (ke.includes(r)) {
|
|
3616
|
-
const { calldata:
|
|
3616
|
+
const { calldata: d2, contract: y } = a;
|
|
3617
3617
|
if (!y)
|
|
3618
3618
|
throw new m("core_swap_contract_not_found");
|
|
3619
3619
|
const l2 = this.connectedWallets[p2], _ = this.getAddress(p2);
|
|
3620
3620
|
if (!(l2 != null && l2.sendTransaction) || !_)
|
|
3621
3621
|
throw new m("core_wallet_connection_not_found");
|
|
3622
|
-
const { getProvider: f2, toChecksumAddress: O } = await import("./
|
|
3622
|
+
const { getProvider: f2, toChecksumAddress: O } = await import("./index_169417bf.js"), I2 = f2(p2), E = Ct[y.toLowerCase()];
|
|
3623
3623
|
if (!E)
|
|
3624
3624
|
throw new m("core_swap_contract_not_supported", { contractAddress: y });
|
|
3625
3625
|
const g = await (await ((c = l2.createContract) == null ? void 0 : c.call(l2, y, E, I2))).getFunction("swapIn").populateTransaction(
|
|
@@ -3628,15 +3628,15 @@ class en {
|
|
|
3628
3628
|
toChecksumAddress: O,
|
|
3629
3629
|
contractAddress: y,
|
|
3630
3630
|
recipient: n2,
|
|
3631
|
-
calldata:
|
|
3631
|
+
calldata: d2
|
|
3632
3632
|
}),
|
|
3633
3633
|
{ from: _ }
|
|
3634
3634
|
);
|
|
3635
3635
|
return l2.sendTransaction(g, i);
|
|
3636
3636
|
}
|
|
3637
3637
|
throw new m("core_swap_quote_mode_not_supported", { quoteMode: r });
|
|
3638
|
-
} catch (
|
|
3639
|
-
throw new m("core_swap_transaction_error",
|
|
3638
|
+
} catch (d2) {
|
|
3639
|
+
throw new m("core_swap_transaction_error", d2);
|
|
3640
3640
|
}
|
|
3641
3641
|
});
|
|
3642
3642
|
T$2(this, "getWalletByChain", async (t3) => {
|
|
@@ -3678,17 +3678,17 @@ class en {
|
|
|
3678
3678
|
const { chain: r, symbol: p2, ticker: u } = t3, c = this.connectedWallets[r];
|
|
3679
3679
|
if (!c)
|
|
3680
3680
|
throw new m("core_wallet_connection_not_found");
|
|
3681
|
-
const
|
|
3681
|
+
const d2 = b$1(this, j).call(this, { assetValue: t3, recipient: n2, router: a, ...i });
|
|
3682
3682
|
try {
|
|
3683
3683
|
switch (r) {
|
|
3684
3684
|
case s.THORChain: {
|
|
3685
3685
|
const y = c;
|
|
3686
|
-
return await (n2 === "" ? y.deposit(
|
|
3686
|
+
return await (n2 === "" ? y.deposit(d2) : y.transfer(d2));
|
|
3687
3687
|
}
|
|
3688
3688
|
case s.Ethereum:
|
|
3689
3689
|
case s.BinanceSmartChain:
|
|
3690
3690
|
case s.Avalanche: {
|
|
3691
|
-
const { getChecksumAddressFromAsset: y } = await import("./
|
|
3691
|
+
const { getChecksumAddressFromAsset: y } = await import("./index_169417bf.js");
|
|
3692
3692
|
let _ = {
|
|
3693
3693
|
abi: r === s.Avalanche ? Ve : r === s.BinanceSmartChain ? Le : Be,
|
|
3694
3694
|
contractAddress: a || (await b$1(this, V).call(this, r)).router,
|
|
@@ -3699,11 +3699,11 @@ class en {
|
|
|
3699
3699
|
// TODO: (@Towan) Re-Check on that conversion 🙏
|
|
3700
3700
|
// assetValue.getBaseValue('bigint').toString(),
|
|
3701
3701
|
t3.baseValueBigInt.toString(),
|
|
3702
|
-
|
|
3702
|
+
d2.memo,
|
|
3703
3703
|
i.expiration || (/* @__PURE__ */ new Date()).getTime()
|
|
3704
3704
|
],
|
|
3705
3705
|
txOverrides: {
|
|
3706
|
-
from:
|
|
3706
|
+
from: d2.from,
|
|
3707
3707
|
value: t3.isGasAsset ? t3.baseValueBigInt.toString() : void 0
|
|
3708
3708
|
}
|
|
3709
3709
|
};
|
|
@@ -3712,7 +3712,7 @@ class en {
|
|
|
3712
3712
|
return console.log("result; ", f2), f2;
|
|
3713
3713
|
}
|
|
3714
3714
|
default:
|
|
3715
|
-
return await c.transfer(
|
|
3715
|
+
return await c.transfer(d2);
|
|
3716
3716
|
}
|
|
3717
3717
|
} catch (y) {
|
|
3718
3718
|
const l2 = ((y == null ? void 0 : y.message) || (y == null ? void 0 : y.toString())).toLowerCase(), _ = l2 == null ? void 0 : l2.includes("insufficient funds"), f2 = l2 == null ? void 0 : l2.includes("gas"), O = l2 == null ? void 0 : l2.includes("server"), I2 = _ ? "core_transaction_deposit_insufficient_funds_error" : f2 ? "core_transaction_deposit_gas_error" : O ? "core_transaction_deposit_server_error" : "core_transaction_deposit_error";
|
|
@@ -3729,7 +3729,7 @@ class en {
|
|
|
3729
3729
|
try {
|
|
3730
3730
|
a = await b$1(this, N).call(this, {
|
|
3731
3731
|
assetValue: t3,
|
|
3732
|
-
memo: D
|
|
3732
|
+
memo: D(h.DEPOSIT, {
|
|
3733
3733
|
...n2,
|
|
3734
3734
|
address: this.getAddress(n2.chain)
|
|
3735
3735
|
})
|
|
@@ -3740,7 +3740,7 @@ class en {
|
|
|
3740
3740
|
try {
|
|
3741
3741
|
i = await b$1(this, N).call(this, {
|
|
3742
3742
|
assetValue: n2,
|
|
3743
|
-
memo: D
|
|
3743
|
+
memo: D(h.DEPOSIT, {
|
|
3744
3744
|
...n2,
|
|
3745
3745
|
address: this.getAddress(s.THORChain)
|
|
3746
3746
|
})
|
|
@@ -3759,18 +3759,18 @@ class en {
|
|
|
3759
3759
|
isPendingSymmAsset: p2,
|
|
3760
3760
|
mode: u = "sym"
|
|
3761
3761
|
}) => {
|
|
3762
|
-
const [c, ...
|
|
3762
|
+
const [c, ...d2] = t3.split("."), y = u === "sym", l2 = (n2 == null ? void 0 : n2.gt(0)) && (y || u === "rune"), _ = (a == null ? void 0 : a.gt(0)) && (y || u === "asset"), f2 = p2 || l2, O = f2 ? i || this.getAddress(s.THORChain) : "", I2 = y || u === "asset" ? r || this.getAddress(c) : "";
|
|
3763
3763
|
if (!l2 && !_)
|
|
3764
3764
|
throw new m("core_transaction_add_liquidity_invalid_params");
|
|
3765
3765
|
if (f2 && !O)
|
|
3766
3766
|
throw new m("core_transaction_add_liquidity_no_rune_address");
|
|
3767
3767
|
let E, S;
|
|
3768
|
-
const g = { chain: c, symbol:
|
|
3768
|
+
const g = { chain: c, symbol: d2.join(".") };
|
|
3769
3769
|
if (l2 && n2)
|
|
3770
3770
|
try {
|
|
3771
3771
|
E = await b$1(this, N).call(this, {
|
|
3772
3772
|
assetValue: n2,
|
|
3773
|
-
memo: D
|
|
3773
|
+
memo: D(h.DEPOSIT, { ...g, address: I2 })
|
|
3774
3774
|
});
|
|
3775
3775
|
} catch (x) {
|
|
3776
3776
|
throw new m("core_transaction_add_liquidity_rune_error", x);
|
|
@@ -3779,7 +3779,7 @@ class en {
|
|
|
3779
3779
|
try {
|
|
3780
3780
|
S = await b$1(this, N).call(this, {
|
|
3781
3781
|
assetValue: a,
|
|
3782
|
-
memo: D
|
|
3782
|
+
memo: D(h.DEPOSIT, { ...g, address: O })
|
|
3783
3783
|
});
|
|
3784
3784
|
} catch (x) {
|
|
3785
3785
|
throw new m("core_transaction_add_liquidity_asset_error", x);
|
|
@@ -3797,7 +3797,7 @@ class en {
|
|
|
3797
3797
|
try {
|
|
3798
3798
|
return await b$1(this, N).call(this, {
|
|
3799
3799
|
assetValue: he(i === "asset" ? n2.chain : s.THORChain),
|
|
3800
|
-
memo: t3 || D
|
|
3800
|
+
memo: t3 || D(h.WITHDRAW, {
|
|
3801
3801
|
symbol: n2.symbol,
|
|
3802
3802
|
chain: n2.chain,
|
|
3803
3803
|
ticker: n2.ticker,
|
|
@@ -3816,7 +3816,7 @@ class en {
|
|
|
3816
3816
|
percent: a,
|
|
3817
3817
|
type: i
|
|
3818
3818
|
}) => {
|
|
3819
|
-
const r = i === "add" ? h.DEPOSIT : h.WITHDRAW, p2 = n2 || D
|
|
3819
|
+
const r = i === "add" ? h.DEPOSIT : h.WITHDRAW, p2 = n2 || D(r, {
|
|
3820
3820
|
ticker: t3.ticker,
|
|
3821
3821
|
symbol: t3.symbol,
|
|
3822
3822
|
chain: t3.chain,
|
|
@@ -3832,7 +3832,7 @@ class en {
|
|
|
3832
3832
|
type: i
|
|
3833
3833
|
}) => b$1(this, N).call(this, {
|
|
3834
3834
|
assetValue: t3,
|
|
3835
|
-
memo: n2 || D
|
|
3835
|
+
memo: n2 || D(i === "open" ? h.OPEN_LOAN : h.CLOSE_LOAN, {
|
|
3836
3836
|
asset: t3.toString(),
|
|
3837
3837
|
minAmount: a.toString(),
|
|
3838
3838
|
address: this.getAddress(t3.chain)
|
|
@@ -3843,7 +3843,7 @@ class en {
|
|
|
3843
3843
|
assetValue: n2,
|
|
3844
3844
|
address: a
|
|
3845
3845
|
}) => {
|
|
3846
|
-
const i = t3 === "bond" ? h.BOND : t3 === "unbond" ? h.UNBOND : h.LEAVE, r = D
|
|
3846
|
+
const i = t3 === "bond" ? h.BOND : t3 === "unbond" ? h.UNBOND : h.LEAVE, r = D(i, {
|
|
3847
3847
|
address: a,
|
|
3848
3848
|
unbondAmount: t3 === "unbond" ? n2.baseValueNumber : void 0
|
|
3849
3849
|
});
|
|
@@ -3855,7 +3855,7 @@ class en {
|
|
|
3855
3855
|
T$2(this, "registerThorname", ({
|
|
3856
3856
|
assetValue: t3,
|
|
3857
3857
|
...n2
|
|
3858
|
-
}) => b$1(this, X).call(this, { assetValue: t3, memo: D
|
|
3858
|
+
}) => b$1(this, X).call(this, { assetValue: t3, memo: D(h.THORNAME_REGISTER, n2) }));
|
|
3859
3859
|
T$2(this, "extend", ({ wallets: t3, config: n2, apis: a = {}, rpcUrls: i = {} }) => {
|
|
3860
3860
|
try {
|
|
3861
3861
|
console.log("wallets: ", t3), t3.forEach((r) => {
|
|
@@ -3882,7 +3882,7 @@ class en {
|
|
|
3882
3882
|
case s.Ethereum:
|
|
3883
3883
|
case s.Optimism:
|
|
3884
3884
|
case s.Polygon: {
|
|
3885
|
-
const { estimateMaxSendableAmount: i } = await import("./
|
|
3885
|
+
const { estimateMaxSendableAmount: i } = await import("./index_169417bf.js");
|
|
3886
3886
|
return i({
|
|
3887
3887
|
...n2,
|
|
3888
3888
|
toolbox: a
|
|
@@ -3896,7 +3896,7 @@ class en {
|
|
|
3896
3896
|
case s.Binance:
|
|
3897
3897
|
case s.THORChain:
|
|
3898
3898
|
case s.Cosmos: {
|
|
3899
|
-
const { estimateMaxSendableAmount: i } = await import("./
|
|
3899
|
+
const { estimateMaxSendableAmount: i } = await import("./index_4425b278.js");
|
|
3900
3900
|
return i({
|
|
3901
3901
|
...n2,
|
|
3902
3902
|
toolbox: a
|
|
@@ -4064,7 +4064,7 @@ var t = /* @__PURE__ */ ((e) => (e.INVALID_INPUT_PARAMETERS = "1000", e.UNKNOWN_
|
|
|
4064
4064
|
[t.ADDRESS_NOT_WHITELISTED]: "Address {0} not whitelisted for airdrop.",
|
|
4065
4065
|
[t.ADDRESS_ALREADY_CLAIMED]: "Address {0} already claimed the airdrop."
|
|
4066
4066
|
});
|
|
4067
|
-
var i$2 = /* @__PURE__ */ ((e) => (e.Arbitrum = "ARB", e.Avalanche = "AVAX", e.Binance = "BNB", e.BinanceSmartChain = "BSC", e.Bitcoin = "BTC", e.BitcoinCash = "BCH", e.Cosmos = "GAIA", e.Dogecoin = "DOGE", e.Ethereum = "ETH", e.Kujira = "KUJI", e.Litecoin = "LTC", e.Maya = "MAYA", e.Optimism = "OP", e.Polygon = "MATIC", e.THORChain = "THOR", e))(i$2 || {});
|
|
4067
|
+
var i$2 = /* @__PURE__ */ ((e) => (e.Arbitrum = "ARB", e.Avalanche = "AVAX", e.Binance = "BNB", e.BinanceSmartChain = "BSC", e.Bitcoin = "BTC", e.BitcoinCash = "BCH", e.Cosmos = "GAIA", e.Dash = "DASH", e.Dogecoin = "DOGE", e.Ethereum = "ETH", e.Kujira = "KUJI", e.Litecoin = "LTC", e.Maya = "MAYA", e.Optimism = "OP", e.Polygon = "MATIC", e.THORChain = "THOR", e))(i$2 || {});
|
|
4068
4068
|
var b = /* @__PURE__ */ ((e) => (e[e.ARB = 18] = "ARB", 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.DASH = 8] = "DASH", e[e.DOGE = 8] = "DOGE", e[e.ETH = 18] = "ETH", e[e.GAIA = 6] = "GAIA", e[e.KUJI = 6] = "KUJI", e[e.LTC = 8] = "LTC", e[e.MATIC = 18] = "MATIC", e[e.MAYA = 10] = "MAYA", e[e.OP = 18] = "OP", e[e.THOR = 8] = "THOR", e))(b || {});
|
|
4069
4069
|
const W = [
|
|
4070
4070
|
"ETH",
|
|
@@ -4075,28 +4075,55 @@ const W = [
|
|
|
4075
4075
|
"MATIC"
|
|
4076
4076
|
/* Polygon */
|
|
4077
4077
|
];
|
|
4078
|
-
var
|
|
4079
|
-
const p = Object.values(i$2), H = Object.keys(i$2),
|
|
4078
|
+
var d = /* @__PURE__ */ ((e) => (e.Arbitrum = "42161", e.ArbitrumHex = "0xa4b1", e.Avalanche = "43114", e.AvalancheHex = "0xa86a", e.Binance = "Binance-Chain-Tigris", e.BinanceSmartChain = "56", e.BinanceSmartChainHex = "0x38", e.Bitcoin = "bitcoin", e.BitcoinCash = "bitcoincash", e.Cosmos = "cosmoshub-4", e.dash = "dash", e.Dogecoin = "dogecoin", e.Kujira = "kaiyo-1", e.Ethereum = "1", e.EthereumHex = "0x1", e.Litecoin = "litecoin", e.Maya = "mayachain-mainnet-v1", e.MayaStagenet = "mayachain-stagenet-v1", e.Optimism = "10", e.OptimismHex = "0xa", e.Polygon = "137", e.PolygonHex = "0x89", e.THORChain = "thorchain-mainnet-v1", e.THORChainStagenet = "thorchain-stagenet-v2", e))(d || {}), I = /* @__PURE__ */ ((e) => (e.Arbitrum = "https://arb1.arbitrum.io/rpc", e.Avalanche = "https://node-router.thorswap.net/avalanche-c", e.Binance = "", e.BinanceSmartChain = "https://bsc-dataseed.binance.org", e.Bitcoin = "https://node-router.thorswap.net/bitcoin", e.BitcoinCash = "https://node-router.thorswap.net/bitcoin-cash", e.Cosmos = "https://node-router.thorswap.net/cosmos/rpc", e.Kujira = "https://rpc-kujira.synergynodes.com/", e.Dash = "todo", e.Dogecoin = "https://node-router.thorswap.net/dogecoin", e.Ethereum = "https://node-router.thorswap.net/ethereum", e.Litecoin = "https://node-router.thorswap.net/litecoin", e.Maya = "https://tendermint.mayachain.info", e.MayaStagenet = "https://stagenet.tendermint.mayachain.info", e.Optimism = "https://mainnet.optimism.io", e.Polygon = "https://polygon-rpc.com", e.THORChain = "https://rpc.thorswap.net", e.THORChainStagenet = "https://stagenet-rpc.ninerealms.com", e))(I || {});
|
|
4079
|
+
const p = Object.values(i$2), H = Object.keys(i$2), T$1 = p.reduce(
|
|
4080
4080
|
(e, n2) => {
|
|
4081
4081
|
const a = H.find((r) => i$2[r] === n2);
|
|
4082
4082
|
return a && (e[n2] = a), e;
|
|
4083
4083
|
},
|
|
4084
4084
|
{}
|
|
4085
4085
|
), $$4 = p.reduce(
|
|
4086
|
-
(e, n2) => (e[n2] = T$1[
|
|
4086
|
+
(e, n2) => (e[n2] = d[T$1[n2]], e),
|
|
4087
4087
|
{}
|
|
4088
4088
|
), q = p.reduce(
|
|
4089
|
-
(e, n2) => (e[n2] = I[
|
|
4089
|
+
(e, n2) => (e[n2] = I[T$1[n2]], e),
|
|
4090
4090
|
{}
|
|
4091
4091
|
);
|
|
4092
4092
|
p.reduce(
|
|
4093
4093
|
(e, n2) => {
|
|
4094
|
-
const a = `${
|
|
4095
|
-
return e[n2] =
|
|
4094
|
+
const a = `${T$1[n2]}Hex`;
|
|
4095
|
+
return e[n2] = d[a], e;
|
|
4096
4096
|
},
|
|
4097
4097
|
{}
|
|
4098
4098
|
);
|
|
4099
|
-
|
|
4099
|
+
({
|
|
4100
|
+
"0xa4b1": "ARB",
|
|
4101
|
+
42161: "ARB",
|
|
4102
|
+
"0xa86a": "AVAX",
|
|
4103
|
+
43114: "AVAX",
|
|
4104
|
+
"0x38": "BSC",
|
|
4105
|
+
56: "BSC",
|
|
4106
|
+
"Binance-Chain-Tigris": "BNB",
|
|
4107
|
+
bitcoincash: "BCH",
|
|
4108
|
+
bitcoin: "BTC",
|
|
4109
|
+
"cosmoshub-4": "GAIA",
|
|
4110
|
+
[d.Dash]: "DASH",
|
|
4111
|
+
dogecoin: "DOGE",
|
|
4112
|
+
"0x1": "ETH",
|
|
4113
|
+
"kaiyo-1": "KUJI",
|
|
4114
|
+
1: "ETH",
|
|
4115
|
+
litecoin: "LTC",
|
|
4116
|
+
"mayachain-stagenet-v1": "MAYA",
|
|
4117
|
+
"mayachain-mainnet-v1": "MAYA",
|
|
4118
|
+
"0xa": "OP",
|
|
4119
|
+
10: "OP",
|
|
4120
|
+
"0x89": "MATIC",
|
|
4121
|
+
137: "MATIC",
|
|
4122
|
+
"thorchain-stagenet-v2": "THOR",
|
|
4123
|
+
"thorchain-mainnet-v1": "THOR"
|
|
4124
|
+
/* THORChain */
|
|
4125
|
+
});
|
|
4126
|
+
var L = /* @__PURE__ */ ((e) => (e.Average = "average", e.Fast = "fast", e.Fastest = "fastest", e))(L || {}), R = /* @__PURE__ */ ((e) => (e.KEYSTORE = "KEYSTORE", e.KEEPKEY = "KEEPKEY", e.XDEFI = "XDEFI", e.METAMASK = "METAMASK", e.COINBASE_WEB = "COINBASE_WEB", e.TREZOR = "TREZOR", e.TRUSTWALLET_WEB = "TRUSTWALLET_WEB", e.LEDGER = "LEDGER", e.KEPLR = "KEPLR", e.OKX = "OKX", e.BRAVE = "BRAVE", e.WALLETCONNECT = "WALLETCONNECT", e))(R || {});
|
|
4100
4127
|
var lib$6 = {};
|
|
4101
4128
|
var data$1 = {};
|
|
4102
4129
|
Object.defineProperty(data$1, "__esModule", { value: true });
|
|
@@ -9414,22 +9441,22 @@ const httpClient = (options) => {
|
|
|
9414
9441
|
* MIT licensed
|
|
9415
9442
|
*/
|
|
9416
9443
|
var __extends = globalThis && globalThis.__extends || function() {
|
|
9417
|
-
var extendStatics = function(
|
|
9418
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
9419
|
-
|
|
9420
|
-
} || function(
|
|
9444
|
+
var extendStatics = function(d2, b2) {
|
|
9445
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
9446
|
+
d3.__proto__ = b3;
|
|
9447
|
+
} || function(d3, b3) {
|
|
9421
9448
|
for (var p2 in b3)
|
|
9422
9449
|
if (b3.hasOwnProperty(p2))
|
|
9423
|
-
|
|
9450
|
+
d3[p2] = b3[p2];
|
|
9424
9451
|
};
|
|
9425
|
-
return extendStatics(
|
|
9452
|
+
return extendStatics(d2, b2);
|
|
9426
9453
|
};
|
|
9427
|
-
return function(
|
|
9428
|
-
extendStatics(
|
|
9454
|
+
return function(d2, b2) {
|
|
9455
|
+
extendStatics(d2, b2);
|
|
9429
9456
|
function __() {
|
|
9430
|
-
this.constructor =
|
|
9457
|
+
this.constructor = d2;
|
|
9431
9458
|
}
|
|
9432
|
-
|
|
9459
|
+
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
9433
9460
|
};
|
|
9434
9461
|
}();
|
|
9435
9462
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -10405,7 +10432,7 @@ function getInByJsonPath(obj, jsonPath) {
|
|
|
10405
10432
|
var stampit_min = { exports: {} };
|
|
10406
10433
|
(function(module) {
|
|
10407
10434
|
!function() {
|
|
10408
|
-
var u, c, a, s2, f2, y = "properties", l2 = "deepProperties", b2 = "propertyDescriptors",
|
|
10435
|
+
var u, c, a, s2, f2, y = "properties", l2 = "deepProperties", b2 = "propertyDescriptors", d2 = "staticProperties", O = "staticDeepProperties", h2 = "staticPropertyDescriptors", g = "configuration", m2 = "deepConfiguration", P2 = "deepProps", A2 = "deepStatics", j2 = "deepConf", v2 = "initializers", _ = "methods", w = "composers", D2 = "compose";
|
|
10409
10436
|
function S(r2) {
|
|
10410
10437
|
return Object.getOwnPropertyNames(r2).concat(Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(r2) : []);
|
|
10411
10438
|
}
|
|
@@ -10453,7 +10480,7 @@ var stampit_min = { exports: {} };
|
|
|
10453
10480
|
C2(e2 = p2[o3++]) && (i = (n3 = e2.call(i, t3, { instance: i, stamp: r4, args: c2 })) === u ? i : n3);
|
|
10454
10481
|
return i;
|
|
10455
10482
|
};
|
|
10456
|
-
}(), (a = r2[O]) && E(c, a), (a = r2[
|
|
10483
|
+
}(), (a = r2[O]) && E(c, a), (a = r2[d2]) && x(c, a), (a = r2[h2]) && Object.defineProperties(c, a), a = C2(c[D2]) ? c[D2] : R2, x(c[D2] = function() {
|
|
10457
10484
|
return a.apply(this, arguments);
|
|
10458
10485
|
}, r2), c;
|
|
10459
10486
|
}
|
|
@@ -10464,7 +10491,7 @@ var stampit_min = { exports: {} };
|
|
|
10464
10491
|
function t3(r3) {
|
|
10465
10492
|
(c = I2(e2[r3], n3[r3])) && (e2[r3] = c);
|
|
10466
10493
|
}
|
|
10467
|
-
return n3 && N2(n3 = n3[D2] || n3) && (r2(_), r2(y), r2(l2, E), r2(b2), r2(
|
|
10494
|
+
return n3 && N2(n3 = n3[D2] || n3) && (r2(_), r2(y), r2(l2, E), r2(b2), r2(d2), r2(O, E), r2(h2), r2(g), r2(m2, E), t3(v2), t3(w)), e2;
|
|
10468
10495
|
}
|
|
10469
10496
|
function R2() {
|
|
10470
10497
|
return t2(Array.prototype.concat.apply([this], arguments).reduce(e, {}));
|
|
@@ -10478,16 +10505,16 @@ var stampit_min = { exports: {} };
|
|
|
10478
10505
|
return (s2 = {})[r2] = t3.apply(u, Array.prototype.concat.apply([{}], arguments)), ((c = this) && c[D2] || a).call(c, s2);
|
|
10479
10506
|
};
|
|
10480
10507
|
}
|
|
10481
|
-
n2[_] = o2(_, x), n2[y] = n2.props = o2(y, x), n2[v2] = n2.init = o2(v2, I2), n2[w] = o2(w, I2), n2[l2] = n2[P2] = o2(l2, E), n2[
|
|
10508
|
+
n2[_] = o2(_, x), n2[y] = n2.props = o2(y, x), n2[v2] = n2.init = o2(v2, I2), n2[w] = o2(w, I2), n2[l2] = n2[P2] = o2(l2, E), n2[d2] = n2.statics = o2(d2, x), n2[O] = n2[A2] = o2(O, E), n2[g] = n2.conf = o2(g, x), n2[m2] = n2[j2] = o2(m2, E), n2[b2] = o2(b2, x), n2[h2] = o2(h2, x), a = n2[D2] = x(function r2() {
|
|
10482
10509
|
for (var t3, e2, n3 = 0, o3 = [], i = arguments, p2 = this; n3 < i.length; )
|
|
10483
|
-
N2(t3 = i[n3++]) && o3.push(V2(t3) ? t3 : ((s2 = {})[_] = (e2 = t3)[_] || u, a = e2.props, s2[y] = N2((c = e2[y]) || a) ? x({}, a, c) : u, s2[v2] = I2(e2.init, e2[v2]), s2[w] = I2(e2[w]), a = e2[P2], s2[l2] = N2((c = e2[l2]) || a) ? E({}, a, c) : u, s2[b2] = e2[b2], a = e2.statics, s2[
|
|
10510
|
+
N2(t3 = i[n3++]) && o3.push(V2(t3) ? t3 : ((s2 = {})[_] = (e2 = t3)[_] || u, a = e2.props, s2[y] = N2((c = e2[y]) || a) ? x({}, a, c) : u, s2[v2] = I2(e2.init, e2[v2]), s2[w] = I2(e2[w]), a = e2[P2], s2[l2] = N2((c = e2[l2]) || a) ? E({}, a, c) : u, s2[b2] = e2[b2], a = e2.statics, s2[d2] = N2((c = e2[d2]) || a) ? x({}, a, c) : u, a = e2[A2], s2[O] = N2((c = e2[O]) || a) ? E({}, a, c) : u, c = e2[h2], s2[h2] = N2((a = e2.name && { name: { value: e2.name } }) || c) ? x({}, c, a) : u, a = e2.conf, s2[g] = N2((c = e2[g]) || a) ? x({}, a, c) : u, a = e2[j2], s2[m2] = N2((c = e2[m2]) || a) ? E({}, a, c) : u, s2));
|
|
10484
10511
|
if (t3 = R2.apply(p2 || f2, o3), p2 && o3.unshift(p2), Array.isArray(i = t3[D2][w]))
|
|
10485
10512
|
for (n3 = 0; n3 < i.length; )
|
|
10486
10513
|
t3 = V2(p2 = i[n3++]({ stamp: t3, composables: o3 })) ? p2 : t3;
|
|
10487
10514
|
return t3;
|
|
10488
10515
|
}, n2), n2.create = function() {
|
|
10489
10516
|
return this.apply(u, arguments);
|
|
10490
|
-
}, (s2 = {})[
|
|
10517
|
+
}, (s2 = {})[d2] = n2, f2 = R2(s2), a[D2] = a.bind(), a.version = "4.3.2", module.exports = a;
|
|
10491
10518
|
}();
|
|
10492
10519
|
})(stampit_min);
|
|
10493
10520
|
var stampit_minExports = stampit_min.exports;
|
|
@@ -11017,10 +11044,10 @@ function _quote(s2) {
|
|
|
11017
11044
|
var pad = function pad2(n2) {
|
|
11018
11045
|
return (n2 < 10 ? "0" : "") + n2;
|
|
11019
11046
|
};
|
|
11020
|
-
var _toISOString = typeof Date.prototype.toISOString === "function" ? function _toISOString2(
|
|
11021
|
-
return
|
|
11022
|
-
} : function _toISOString3(
|
|
11023
|
-
return
|
|
11047
|
+
var _toISOString = typeof Date.prototype.toISOString === "function" ? function _toISOString2(d2) {
|
|
11048
|
+
return d2.toISOString();
|
|
11049
|
+
} : function _toISOString3(d2) {
|
|
11050
|
+
return d2.getUTCFullYear() + "-" + pad(d2.getUTCMonth() + 1) + "-" + pad(d2.getUTCDate()) + "T" + pad(d2.getUTCHours()) + ":" + pad(d2.getUTCMinutes()) + ":" + pad(d2.getUTCSeconds()) + "." + (d2.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) + "Z";
|
|
11024
11051
|
};
|
|
11025
11052
|
const _toISOString$1 = _toISOString;
|
|
11026
11053
|
function _complement(f2) {
|
|
@@ -11665,8 +11692,8 @@ var reduceBy = /* @__PURE__ */ _curryN(
|
|
|
11665
11692
|
})
|
|
11666
11693
|
);
|
|
11667
11694
|
const reduceBy$1 = reduceBy;
|
|
11668
|
-
var defaultTo = /* @__PURE__ */ _curry2(function defaultTo2(
|
|
11669
|
-
return v2 == null || v2 !== v2 ?
|
|
11695
|
+
var defaultTo = /* @__PURE__ */ _curry2(function defaultTo2(d2, v2) {
|
|
11696
|
+
return v2 == null || v2 !== v2 ? d2 : v2;
|
|
11670
11697
|
});
|
|
11671
11698
|
const defaultTo$1 = defaultTo;
|
|
11672
11699
|
var _Set$1 = /* @__PURE__ */ function() {
|
|
@@ -12122,8 +12149,8 @@ var over = /* @__PURE__ */ _curry3(function over2(lens3, f2, x) {
|
|
|
12122
12149
|
})(x).value;
|
|
12123
12150
|
});
|
|
12124
12151
|
const over$1 = over;
|
|
12125
|
-
var pathOr = /* @__PURE__ */ _curry3(function pathOr2(
|
|
12126
|
-
return defaultTo$1(
|
|
12152
|
+
var pathOr = /* @__PURE__ */ _curry3(function pathOr2(d2, p2, obj) {
|
|
12153
|
+
return defaultTo$1(d2, path$6(p2, obj));
|
|
12127
12154
|
});
|
|
12128
12155
|
const pathOr$1 = pathOr;
|
|
12129
12156
|
var pathSatisfies = /* @__PURE__ */ _curry3(function pathSatisfies2(pred, propPath, obj) {
|
|
@@ -32473,18 +32500,18 @@ ieee754.read = function(buffer2, offset, isLE, mLen, nBytes) {
|
|
|
32473
32500
|
var eBias = eMax >> 1;
|
|
32474
32501
|
var nBits = -7;
|
|
32475
32502
|
var i = isLE ? nBytes - 1 : 0;
|
|
32476
|
-
var
|
|
32503
|
+
var d2 = isLE ? -1 : 1;
|
|
32477
32504
|
var s2 = buffer2[offset + i];
|
|
32478
|
-
i +=
|
|
32505
|
+
i += d2;
|
|
32479
32506
|
e = s2 & (1 << -nBits) - 1;
|
|
32480
32507
|
s2 >>= -nBits;
|
|
32481
32508
|
nBits += eLen;
|
|
32482
|
-
for (; nBits > 0; e = e * 256 + buffer2[offset + i], i +=
|
|
32509
|
+
for (; nBits > 0; e = e * 256 + buffer2[offset + i], i += d2, nBits -= 8) {
|
|
32483
32510
|
}
|
|
32484
32511
|
m2 = e & (1 << -nBits) - 1;
|
|
32485
32512
|
e >>= -nBits;
|
|
32486
32513
|
nBits += mLen;
|
|
32487
|
-
for (; nBits > 0; m2 = m2 * 256 + buffer2[offset + i], i +=
|
|
32514
|
+
for (; nBits > 0; m2 = m2 * 256 + buffer2[offset + i], i += d2, nBits -= 8) {
|
|
32488
32515
|
}
|
|
32489
32516
|
if (e === 0) {
|
|
32490
32517
|
e = 1 - eBias;
|
|
@@ -32503,7 +32530,7 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
|
|
|
32503
32530
|
var eBias = eMax >> 1;
|
|
32504
32531
|
var rt2 = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
|
|
32505
32532
|
var i = isLE ? 0 : nBytes - 1;
|
|
32506
|
-
var
|
|
32533
|
+
var d2 = isLE ? 1 : -1;
|
|
32507
32534
|
var s2 = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
|
|
32508
32535
|
value = Math.abs(value);
|
|
32509
32536
|
if (isNaN(value) || value === Infinity) {
|
|
@@ -32535,13 +32562,13 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
|
|
|
32535
32562
|
e = 0;
|
|
32536
32563
|
}
|
|
32537
32564
|
}
|
|
32538
|
-
for (; mLen >= 8; buffer2[offset + i] = m2 & 255, i +=
|
|
32565
|
+
for (; mLen >= 8; buffer2[offset + i] = m2 & 255, i += d2, m2 /= 256, mLen -= 8) {
|
|
32539
32566
|
}
|
|
32540
32567
|
e = e << mLen | m2;
|
|
32541
32568
|
eLen += mLen;
|
|
32542
|
-
for (; eLen > 0; buffer2[offset + i] = e & 255, i +=
|
|
32569
|
+
for (; eLen > 0; buffer2[offset + i] = e & 255, i += d2, e /= 256, eLen -= 8) {
|
|
32543
32570
|
}
|
|
32544
|
-
buffer2[offset + i -
|
|
32571
|
+
buffer2[offset + i - d2] |= s2 * 128;
|
|
32545
32572
|
};
|
|
32546
32573
|
/*!
|
|
32547
32574
|
* The buffer module from node.js, for the browser.
|
|
@@ -36033,75 +36060,75 @@ function requireMd5() {
|
|
|
36033
36060
|
var a = H2[0];
|
|
36034
36061
|
var b2 = H2[1];
|
|
36035
36062
|
var c = H2[2];
|
|
36036
|
-
var
|
|
36037
|
-
a = FF(a, b2, c,
|
|
36038
|
-
|
|
36039
|
-
c = FF(c,
|
|
36040
|
-
b2 = FF(b2, c,
|
|
36041
|
-
a = FF(a, b2, c,
|
|
36042
|
-
|
|
36043
|
-
c = FF(c,
|
|
36044
|
-
b2 = FF(b2, c,
|
|
36045
|
-
a = FF(a, b2, c,
|
|
36046
|
-
|
|
36047
|
-
c = FF(c,
|
|
36048
|
-
b2 = FF(b2, c,
|
|
36049
|
-
a = FF(a, b2, c,
|
|
36050
|
-
|
|
36051
|
-
c = FF(c,
|
|
36052
|
-
b2 = FF(b2, c,
|
|
36053
|
-
a = GG(a, b2, c,
|
|
36054
|
-
|
|
36055
|
-
c = GG(c,
|
|
36056
|
-
b2 = GG(b2, c,
|
|
36057
|
-
a = GG(a, b2, c,
|
|
36058
|
-
|
|
36059
|
-
c = GG(c,
|
|
36060
|
-
b2 = GG(b2, c,
|
|
36061
|
-
a = GG(a, b2, c,
|
|
36062
|
-
|
|
36063
|
-
c = GG(c,
|
|
36064
|
-
b2 = GG(b2, c,
|
|
36065
|
-
a = GG(a, b2, c,
|
|
36066
|
-
|
|
36067
|
-
c = GG(c,
|
|
36068
|
-
b2 = GG(b2, c,
|
|
36069
|
-
a = HH(a, b2, c,
|
|
36070
|
-
|
|
36071
|
-
c = HH(c,
|
|
36072
|
-
b2 = HH(b2, c,
|
|
36073
|
-
a = HH(a, b2, c,
|
|
36074
|
-
|
|
36075
|
-
c = HH(c,
|
|
36076
|
-
b2 = HH(b2, c,
|
|
36077
|
-
a = HH(a, b2, c,
|
|
36078
|
-
|
|
36079
|
-
c = HH(c,
|
|
36080
|
-
b2 = HH(b2, c,
|
|
36081
|
-
a = HH(a, b2, c,
|
|
36082
|
-
|
|
36083
|
-
c = HH(c,
|
|
36084
|
-
b2 = HH(b2, c,
|
|
36085
|
-
a = II(a, b2, c,
|
|
36086
|
-
|
|
36087
|
-
c = II(c,
|
|
36088
|
-
b2 = II(b2, c,
|
|
36089
|
-
a = II(a, b2, c,
|
|
36090
|
-
|
|
36091
|
-
c = II(c,
|
|
36092
|
-
b2 = II(b2, c,
|
|
36093
|
-
a = II(a, b2, c,
|
|
36094
|
-
|
|
36095
|
-
c = II(c,
|
|
36096
|
-
b2 = II(b2, c,
|
|
36097
|
-
a = II(a, b2, c,
|
|
36098
|
-
|
|
36099
|
-
c = II(c,
|
|
36100
|
-
b2 = II(b2, c,
|
|
36063
|
+
var d2 = H2[3];
|
|
36064
|
+
a = FF(a, b2, c, d2, M_offset_0, 7, T2[0]);
|
|
36065
|
+
d2 = FF(d2, a, b2, c, M_offset_1, 12, T2[1]);
|
|
36066
|
+
c = FF(c, d2, a, b2, M_offset_2, 17, T2[2]);
|
|
36067
|
+
b2 = FF(b2, c, d2, a, M_offset_3, 22, T2[3]);
|
|
36068
|
+
a = FF(a, b2, c, d2, M_offset_4, 7, T2[4]);
|
|
36069
|
+
d2 = FF(d2, a, b2, c, M_offset_5, 12, T2[5]);
|
|
36070
|
+
c = FF(c, d2, a, b2, M_offset_6, 17, T2[6]);
|
|
36071
|
+
b2 = FF(b2, c, d2, a, M_offset_7, 22, T2[7]);
|
|
36072
|
+
a = FF(a, b2, c, d2, M_offset_8, 7, T2[8]);
|
|
36073
|
+
d2 = FF(d2, a, b2, c, M_offset_9, 12, T2[9]);
|
|
36074
|
+
c = FF(c, d2, a, b2, M_offset_10, 17, T2[10]);
|
|
36075
|
+
b2 = FF(b2, c, d2, a, M_offset_11, 22, T2[11]);
|
|
36076
|
+
a = FF(a, b2, c, d2, M_offset_12, 7, T2[12]);
|
|
36077
|
+
d2 = FF(d2, a, b2, c, M_offset_13, 12, T2[13]);
|
|
36078
|
+
c = FF(c, d2, a, b2, M_offset_14, 17, T2[14]);
|
|
36079
|
+
b2 = FF(b2, c, d2, a, M_offset_15, 22, T2[15]);
|
|
36080
|
+
a = GG(a, b2, c, d2, M_offset_1, 5, T2[16]);
|
|
36081
|
+
d2 = GG(d2, a, b2, c, M_offset_6, 9, T2[17]);
|
|
36082
|
+
c = GG(c, d2, a, b2, M_offset_11, 14, T2[18]);
|
|
36083
|
+
b2 = GG(b2, c, d2, a, M_offset_0, 20, T2[19]);
|
|
36084
|
+
a = GG(a, b2, c, d2, M_offset_5, 5, T2[20]);
|
|
36085
|
+
d2 = GG(d2, a, b2, c, M_offset_10, 9, T2[21]);
|
|
36086
|
+
c = GG(c, d2, a, b2, M_offset_15, 14, T2[22]);
|
|
36087
|
+
b2 = GG(b2, c, d2, a, M_offset_4, 20, T2[23]);
|
|
36088
|
+
a = GG(a, b2, c, d2, M_offset_9, 5, T2[24]);
|
|
36089
|
+
d2 = GG(d2, a, b2, c, M_offset_14, 9, T2[25]);
|
|
36090
|
+
c = GG(c, d2, a, b2, M_offset_3, 14, T2[26]);
|
|
36091
|
+
b2 = GG(b2, c, d2, a, M_offset_8, 20, T2[27]);
|
|
36092
|
+
a = GG(a, b2, c, d2, M_offset_13, 5, T2[28]);
|
|
36093
|
+
d2 = GG(d2, a, b2, c, M_offset_2, 9, T2[29]);
|
|
36094
|
+
c = GG(c, d2, a, b2, M_offset_7, 14, T2[30]);
|
|
36095
|
+
b2 = GG(b2, c, d2, a, M_offset_12, 20, T2[31]);
|
|
36096
|
+
a = HH(a, b2, c, d2, M_offset_5, 4, T2[32]);
|
|
36097
|
+
d2 = HH(d2, a, b2, c, M_offset_8, 11, T2[33]);
|
|
36098
|
+
c = HH(c, d2, a, b2, M_offset_11, 16, T2[34]);
|
|
36099
|
+
b2 = HH(b2, c, d2, a, M_offset_14, 23, T2[35]);
|
|
36100
|
+
a = HH(a, b2, c, d2, M_offset_1, 4, T2[36]);
|
|
36101
|
+
d2 = HH(d2, a, b2, c, M_offset_4, 11, T2[37]);
|
|
36102
|
+
c = HH(c, d2, a, b2, M_offset_7, 16, T2[38]);
|
|
36103
|
+
b2 = HH(b2, c, d2, a, M_offset_10, 23, T2[39]);
|
|
36104
|
+
a = HH(a, b2, c, d2, M_offset_13, 4, T2[40]);
|
|
36105
|
+
d2 = HH(d2, a, b2, c, M_offset_0, 11, T2[41]);
|
|
36106
|
+
c = HH(c, d2, a, b2, M_offset_3, 16, T2[42]);
|
|
36107
|
+
b2 = HH(b2, c, d2, a, M_offset_6, 23, T2[43]);
|
|
36108
|
+
a = HH(a, b2, c, d2, M_offset_9, 4, T2[44]);
|
|
36109
|
+
d2 = HH(d2, a, b2, c, M_offset_12, 11, T2[45]);
|
|
36110
|
+
c = HH(c, d2, a, b2, M_offset_15, 16, T2[46]);
|
|
36111
|
+
b2 = HH(b2, c, d2, a, M_offset_2, 23, T2[47]);
|
|
36112
|
+
a = II(a, b2, c, d2, M_offset_0, 6, T2[48]);
|
|
36113
|
+
d2 = II(d2, a, b2, c, M_offset_7, 10, T2[49]);
|
|
36114
|
+
c = II(c, d2, a, b2, M_offset_14, 15, T2[50]);
|
|
36115
|
+
b2 = II(b2, c, d2, a, M_offset_5, 21, T2[51]);
|
|
36116
|
+
a = II(a, b2, c, d2, M_offset_12, 6, T2[52]);
|
|
36117
|
+
d2 = II(d2, a, b2, c, M_offset_3, 10, T2[53]);
|
|
36118
|
+
c = II(c, d2, a, b2, M_offset_10, 15, T2[54]);
|
|
36119
|
+
b2 = II(b2, c, d2, a, M_offset_1, 21, T2[55]);
|
|
36120
|
+
a = II(a, b2, c, d2, M_offset_8, 6, T2[56]);
|
|
36121
|
+
d2 = II(d2, a, b2, c, M_offset_15, 10, T2[57]);
|
|
36122
|
+
c = II(c, d2, a, b2, M_offset_6, 15, T2[58]);
|
|
36123
|
+
b2 = II(b2, c, d2, a, M_offset_13, 21, T2[59]);
|
|
36124
|
+
a = II(a, b2, c, d2, M_offset_4, 6, T2[60]);
|
|
36125
|
+
d2 = II(d2, a, b2, c, M_offset_11, 10, T2[61]);
|
|
36126
|
+
c = II(c, d2, a, b2, M_offset_2, 15, T2[62]);
|
|
36127
|
+
b2 = II(b2, c, d2, a, M_offset_9, 21, T2[63]);
|
|
36101
36128
|
H2[0] = H2[0] + a | 0;
|
|
36102
36129
|
H2[1] = H2[1] + b2 | 0;
|
|
36103
36130
|
H2[2] = H2[2] + c | 0;
|
|
36104
|
-
H2[3] = H2[3] +
|
|
36131
|
+
H2[3] = H2[3] + d2 | 0;
|
|
36105
36132
|
},
|
|
36106
36133
|
_doFinalize: function() {
|
|
36107
36134
|
var data2 = this._data;
|
|
@@ -36129,20 +36156,20 @@ function requireMd5() {
|
|
|
36129
36156
|
return clone;
|
|
36130
36157
|
}
|
|
36131
36158
|
});
|
|
36132
|
-
function FF(a, b2, c,
|
|
36133
|
-
var n2 = a + (b2 & c | ~b2 &
|
|
36159
|
+
function FF(a, b2, c, d2, x, s2, t2) {
|
|
36160
|
+
var n2 = a + (b2 & c | ~b2 & d2) + x + t2;
|
|
36134
36161
|
return (n2 << s2 | n2 >>> 32 - s2) + b2;
|
|
36135
36162
|
}
|
|
36136
|
-
function GG(a, b2, c,
|
|
36137
|
-
var n2 = a + (b2 &
|
|
36163
|
+
function GG(a, b2, c, d2, x, s2, t2) {
|
|
36164
|
+
var n2 = a + (b2 & d2 | c & ~d2) + x + t2;
|
|
36138
36165
|
return (n2 << s2 | n2 >>> 32 - s2) + b2;
|
|
36139
36166
|
}
|
|
36140
|
-
function HH(a, b2, c,
|
|
36141
|
-
var n2 = a + (b2 ^ c ^
|
|
36167
|
+
function HH(a, b2, c, d2, x, s2, t2) {
|
|
36168
|
+
var n2 = a + (b2 ^ c ^ d2) + x + t2;
|
|
36142
36169
|
return (n2 << s2 | n2 >>> 32 - s2) + b2;
|
|
36143
36170
|
}
|
|
36144
|
-
function II(a, b2, c,
|
|
36145
|
-
var n2 = a + (c ^ (b2 | ~
|
|
36171
|
+
function II(a, b2, c, d2, x, s2, t2) {
|
|
36172
|
+
var n2 = a + (c ^ (b2 | ~d2)) + x + t2;
|
|
36146
36173
|
return (n2 << s2 | n2 >>> 32 - s2) + b2;
|
|
36147
36174
|
}
|
|
36148
36175
|
C2.MD5 = Hasher._createHelper(MD5);
|
|
@@ -36187,7 +36214,7 @@ function requireSha1() {
|
|
|
36187
36214
|
var a = H2[0];
|
|
36188
36215
|
var b2 = H2[1];
|
|
36189
36216
|
var c = H2[2];
|
|
36190
|
-
var
|
|
36217
|
+
var d2 = H2[3];
|
|
36191
36218
|
var e = H2[4];
|
|
36192
36219
|
for (var i = 0; i < 80; i++) {
|
|
36193
36220
|
if (i < 16) {
|
|
@@ -36198,16 +36225,16 @@ function requireSha1() {
|
|
|
36198
36225
|
}
|
|
36199
36226
|
var t2 = (a << 5 | a >>> 27) + e + W2[i];
|
|
36200
36227
|
if (i < 20) {
|
|
36201
|
-
t2 += (b2 & c | ~b2 &
|
|
36228
|
+
t2 += (b2 & c | ~b2 & d2) + 1518500249;
|
|
36202
36229
|
} else if (i < 40) {
|
|
36203
|
-
t2 += (b2 ^ c ^
|
|
36230
|
+
t2 += (b2 ^ c ^ d2) + 1859775393;
|
|
36204
36231
|
} else if (i < 60) {
|
|
36205
|
-
t2 += (b2 & c | b2 &
|
|
36232
|
+
t2 += (b2 & c | b2 & d2 | c & d2) - 1894007588;
|
|
36206
36233
|
} else {
|
|
36207
|
-
t2 += (b2 ^ c ^
|
|
36234
|
+
t2 += (b2 ^ c ^ d2) - 899497514;
|
|
36208
36235
|
}
|
|
36209
|
-
e =
|
|
36210
|
-
|
|
36236
|
+
e = d2;
|
|
36237
|
+
d2 = c;
|
|
36211
36238
|
c = b2 << 30 | b2 >>> 2;
|
|
36212
36239
|
b2 = a;
|
|
36213
36240
|
a = t2;
|
|
@@ -36215,7 +36242,7 @@ function requireSha1() {
|
|
|
36215
36242
|
H2[0] = H2[0] + a | 0;
|
|
36216
36243
|
H2[1] = H2[1] + b2 | 0;
|
|
36217
36244
|
H2[2] = H2[2] + c | 0;
|
|
36218
|
-
H2[3] = H2[3] +
|
|
36245
|
+
H2[3] = H2[3] + d2 | 0;
|
|
36219
36246
|
H2[4] = H2[4] + e | 0;
|
|
36220
36247
|
},
|
|
36221
36248
|
_doFinalize: function() {
|
|
@@ -36295,7 +36322,7 @@ var sha256$2 = { exports: {} };
|
|
|
36295
36322
|
var a = H3[0];
|
|
36296
36323
|
var b2 = H3[1];
|
|
36297
36324
|
var c = H3[2];
|
|
36298
|
-
var
|
|
36325
|
+
var d2 = H3[3];
|
|
36299
36326
|
var e = H3[4];
|
|
36300
36327
|
var f2 = H3[5];
|
|
36301
36328
|
var g = H3[6];
|
|
@@ -36319,8 +36346,8 @@ var sha256$2 = { exports: {} };
|
|
|
36319
36346
|
h2 = g;
|
|
36320
36347
|
g = f2;
|
|
36321
36348
|
f2 = e;
|
|
36322
|
-
e =
|
|
36323
|
-
|
|
36349
|
+
e = d2 + t1 | 0;
|
|
36350
|
+
d2 = c;
|
|
36324
36351
|
c = b2;
|
|
36325
36352
|
b2 = a;
|
|
36326
36353
|
a = t1 + t2 | 0;
|
|
@@ -36328,7 +36355,7 @@ var sha256$2 = { exports: {} };
|
|
|
36328
36355
|
H3[0] = H3[0] + a | 0;
|
|
36329
36356
|
H3[1] = H3[1] + b2 | 0;
|
|
36330
36357
|
H3[2] = H3[2] + c | 0;
|
|
36331
|
-
H3[3] = H3[3] +
|
|
36358
|
+
H3[3] = H3[3] + d2 | 0;
|
|
36332
36359
|
H3[4] = H3[4] + e | 0;
|
|
36333
36360
|
H3[5] = H3[5] + f2 | 0;
|
|
36334
36361
|
H3[6] = H3[6] + g | 0;
|
|
@@ -38347,12 +38374,12 @@ function requireAes() {
|
|
|
38347
38374
|
var INV_SUB_MIX_2 = [];
|
|
38348
38375
|
var INV_SUB_MIX_3 = [];
|
|
38349
38376
|
(function() {
|
|
38350
|
-
var
|
|
38377
|
+
var d2 = [];
|
|
38351
38378
|
for (var i = 0; i < 256; i++) {
|
|
38352
38379
|
if (i < 128) {
|
|
38353
|
-
|
|
38380
|
+
d2[i] = i << 1;
|
|
38354
38381
|
} else {
|
|
38355
|
-
|
|
38382
|
+
d2[i] = i << 1 ^ 283;
|
|
38356
38383
|
}
|
|
38357
38384
|
}
|
|
38358
38385
|
var x = 0;
|
|
@@ -38362,10 +38389,10 @@ function requireAes() {
|
|
|
38362
38389
|
sx = sx >>> 8 ^ sx & 255 ^ 99;
|
|
38363
38390
|
SBOX[x] = sx;
|
|
38364
38391
|
INV_SBOX[sx] = x;
|
|
38365
|
-
var x2 =
|
|
38366
|
-
var x4 =
|
|
38367
|
-
var x8 =
|
|
38368
|
-
var t2 =
|
|
38392
|
+
var x2 = d2[x];
|
|
38393
|
+
var x4 = d2[x2];
|
|
38394
|
+
var x8 = d2[x4];
|
|
38395
|
+
var t2 = d2[sx] * 257 ^ sx * 16843008;
|
|
38369
38396
|
SUB_MIX_0[x] = t2 << 24 | t2 >>> 8;
|
|
38370
38397
|
SUB_MIX_1[x] = t2 << 16 | t2 >>> 16;
|
|
38371
38398
|
SUB_MIX_2[x] = t2 << 8 | t2 >>> 24;
|
|
@@ -38378,8 +38405,8 @@ function requireAes() {
|
|
|
38378
38405
|
if (!x) {
|
|
38379
38406
|
x = xi = 1;
|
|
38380
38407
|
} else {
|
|
38381
|
-
x = x2 ^
|
|
38382
|
-
xi ^=
|
|
38408
|
+
x = x2 ^ d2[d2[d2[x8 ^ x2]]];
|
|
38409
|
+
xi ^= d2[d2[xi]];
|
|
38383
38410
|
}
|
|
38384
38411
|
}
|
|
38385
38412
|
})();
|
|
@@ -40672,10 +40699,10 @@ function requireBlowfish() {
|
|
|
40672
40699
|
let a = x >> 24 & 255;
|
|
40673
40700
|
let b2 = x >> 16 & 255;
|
|
40674
40701
|
let c = x >> 8 & 255;
|
|
40675
|
-
let
|
|
40702
|
+
let d2 = x & 255;
|
|
40676
40703
|
let y = ctx.sbox[0][a] + ctx.sbox[1][b2];
|
|
40677
40704
|
y = y ^ ctx.sbox[2][c];
|
|
40678
|
-
y = y + ctx.sbox[3][
|
|
40705
|
+
y = y + ctx.sbox[3][d2];
|
|
40679
40706
|
return y;
|
|
40680
40707
|
}
|
|
40681
40708
|
function BlowFish_Encrypt(ctx, left, right) {
|
|
@@ -42466,14 +42493,15 @@ const availableChainsByWallet = {
|
|
|
42466
42493
|
async function initializeWallets() {
|
|
42467
42494
|
const wallets = [];
|
|
42468
42495
|
const walletsVerbose = [];
|
|
42469
|
-
const { keepkeyWallet } = await import("./
|
|
42470
|
-
const { keplrWallet } = await import("./
|
|
42471
|
-
const { keystoreWallet } = await import("./
|
|
42472
|
-
const { metamaskWallet } = await import("./
|
|
42473
|
-
const {
|
|
42474
|
-
const {
|
|
42475
|
-
const {
|
|
42476
|
-
const {
|
|
42496
|
+
const { keepkeyWallet } = await import("./index_6ebe4744.js");
|
|
42497
|
+
const { keplrWallet } = await import("./index_cebbd50e.js");
|
|
42498
|
+
const { keystoreWallet } = await import("./index_df47a9c6.js").then((n2) => n2.i);
|
|
42499
|
+
const { metamaskWallet } = await import("./index_8610c3c4.js");
|
|
42500
|
+
const { ledgerWallet } = await import("./index_94b7968d.js").then((n2) => n2.k);
|
|
42501
|
+
const { okxWallet } = await import("./index_f66728ba.js");
|
|
42502
|
+
const { trezorWallet } = await import("./index_1d5f0f00.js");
|
|
42503
|
+
const { walletconnectWallet } = await import("./index_3c54e5ec.js").then((n2) => n2.i);
|
|
42504
|
+
const { xdefiWallet } = await import("./index_e0b32f2f.js");
|
|
42477
42505
|
const walletKeepKey = {
|
|
42478
42506
|
type: R.KEEPKEY,
|
|
42479
42507
|
icon: "https://pioneers.dev/coins/keepkey.png",
|
|
@@ -42514,6 +42542,16 @@ async function initializeWallets() {
|
|
|
42514
42542
|
};
|
|
42515
42543
|
wallets.push(keystoreWallet);
|
|
42516
42544
|
walletsVerbose.push(walletKeystore);
|
|
42545
|
+
const walletLedger = {
|
|
42546
|
+
type: R.LEDGER,
|
|
42547
|
+
icon: "https://pioneers.dev/coins/ledger.png",
|
|
42548
|
+
chains: availableChainsByWallet[R.LEDGER],
|
|
42549
|
+
wallet: ledgerWallet,
|
|
42550
|
+
status: "offline",
|
|
42551
|
+
isConnected: false
|
|
42552
|
+
};
|
|
42553
|
+
wallets.push(ledgerWallet);
|
|
42554
|
+
walletsVerbose.push(walletLedger);
|
|
42517
42555
|
const walletOKX = {
|
|
42518
42556
|
type: R.OKX,
|
|
42519
42557
|
icon: "https://pioneers.dev/coins/okx.png",
|
|
@@ -45846,7 +45884,7 @@ const Page404 = () => {
|
|
|
45846
45884
|
] })
|
|
45847
45885
|
] });
|
|
45848
45886
|
};
|
|
45849
|
-
const Home = React__default$1.lazy(() => import("./
|
|
45887
|
+
const Home = React__default$1.lazy(() => import("./index_f2d68730.js"));
|
|
45850
45888
|
const routes = [
|
|
45851
45889
|
{
|
|
45852
45890
|
path: "/",
|
|
@@ -45886,31 +45924,33 @@ root.render(
|
|
|
45886
45924
|
);
|
|
45887
45925
|
export {
|
|
45888
45926
|
$$4 as $,
|
|
45889
|
-
D,
|
|
45890
45927
|
I,
|
|
45928
|
+
L,
|
|
45891
45929
|
Pioneer as P,
|
|
45892
45930
|
R,
|
|
45893
|
-
T$1 as T,
|
|
45894
45931
|
_assert as _,
|
|
45895
|
-
|
|
45932
|
+
getDefaultExportFromCjs as a,
|
|
45896
45933
|
b,
|
|
45897
45934
|
commonjsGlobal as c,
|
|
45898
|
-
|
|
45899
|
-
|
|
45900
|
-
|
|
45935
|
+
d,
|
|
45936
|
+
base64Js as e,
|
|
45937
|
+
bech32 as f,
|
|
45901
45938
|
global$1 as g,
|
|
45902
|
-
|
|
45939
|
+
crypto$1 as h,
|
|
45903
45940
|
i$2 as i,
|
|
45904
45941
|
jsxRuntimeExports as j,
|
|
45905
|
-
|
|
45906
|
-
|
|
45907
|
-
|
|
45908
|
-
|
|
45909
|
-
|
|
45942
|
+
buffer as k,
|
|
45943
|
+
utils as l,
|
|
45944
|
+
_sha2 as m,
|
|
45945
|
+
getAugmentedNamespace as n,
|
|
45946
|
+
commonjsRequire as o,
|
|
45910
45947
|
process$2 as p,
|
|
45911
45948
|
q,
|
|
45912
45949
|
require$$0$2 as r,
|
|
45913
45950
|
sha256$1 as s,
|
|
45914
|
-
|
|
45915
|
-
usePioneer as u
|
|
45951
|
+
events as t,
|
|
45952
|
+
usePioneer as u,
|
|
45953
|
+
hasPropertyDescriptors_1 as v,
|
|
45954
|
+
defineDataProperty as w,
|
|
45955
|
+
PioneerProvider as x
|
|
45916
45956
|
};
|