@skip-go/widget 3.14.11 → 3.14.13
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/build/{add-BIrgM164.js → add-CPX_3EXO.js} +1 -1
- package/build/{all-wallets-COsuVfnK.js → all-wallets-DPBg_Lcg.js} +1 -1
- package/build/{app-store-DPHBwDD1.js → app-store-CpBwzfTK.js} +1 -1
- package/build/{apple-Bg5FDlRm.js → apple-B9fj2Y96.js} +1 -1
- package/build/{arrow-bottom-TwXzADp-.js → arrow-bottom-CvwbnYb0.js} +1 -1
- package/build/{arrow-bottom-circle-B40Q7YJV.js → arrow-bottom-circle-C432uVhB.js} +1 -1
- package/build/{arrow-left-DX8tSFqY.js → arrow-left-DR-vGpG9.js} +1 -1
- package/build/{arrow-right-m2yqgeLs.js → arrow-right-3CIwGKXF.js} +1 -1
- package/build/{arrow-top-FoXipxZY.js → arrow-top-DVr6J11g.js} +1 -1
- package/build/{bank-B0GirkvB.js → bank-DzIjTJGt.js} +1 -1
- package/build/{basic-BNg0P8Tj.js → basic-CeZ6-Jc_.js} +2 -2
- package/build/{browser-BpKM30BN.js → browser-Ce3U0Kpz.js} +1 -1
- package/build/{card-DZHZPAsK.js → card-DKrF6Ng5.js} +1 -1
- package/build/{checkmark-DyQKb0Aw.js → checkmark-BXt_kogR.js} +1 -1
- package/build/{checkmark-bold-fJj7E-Mj.js → checkmark-bold-BxMmgcgC.js} +1 -1
- package/build/{chevron-bottom-CegnK9UK.js → chevron-bottom-ClPdU3KW.js} +1 -1
- package/build/{chevron-left-BRDLazbS.js → chevron-left-GVEeH1E0.js} +1 -1
- package/build/{chevron-right-BwXfvpVF.js → chevron-right-zgk945g4.js} +1 -1
- package/build/{chevron-top-8CxIBCuZ.js → chevron-top-DaK0UdVy.js} +1 -1
- package/build/{chrome-store-B3MFqXic.js → chrome-store-BS7bK-1V.js} +1 -1
- package/build/{clock-niQ1qlJw.js → clock-Dz4RK1yC.js} +1 -1
- package/build/{close-CT_EEgB_.js → close-BuqWVnPO.js} +1 -1
- package/build/{coinPlaceholder-DYjwru9a.js → coinPlaceholder-33MB6KCG.js} +1 -1
- package/build/{compass-XP4Sd62f.js → compass-DMGdirhH.js} +1 -1
- package/build/{copy-BpB4_NT7.js → copy-BVh4Tjq1.js} +1 -1
- package/build/{core-K_QMK4sH.js → core-CUCtL-BL.js} +4 -4
- package/build/{cursor-DJvYg0NH.js → cursor-BntaOqzq.js} +1 -1
- package/build/{cursor-transparent-CgjJL3Lg.js → cursor-transparent-Vf0KLXs9.js} +1 -1
- package/build/{desktop-D24HiE2R.js → desktop-B4X6CKzB.js} +1 -1
- package/build/{disconnect-C2KecTQX.js → disconnect-JU-qSWcG.js} +1 -1
- package/build/{discord-C6lf7zVB.js → discord-CgzpdB89.js} +1 -1
- package/build/{etherscan-p_PN_A2E.js → etherscan-XCNU7ycM.js} +1 -1
- package/build/{exclamation-triangle-D0sPBHZM.js → exclamation-triangle-DDC1FAH7.js} +1 -1
- package/build/{extension-DAWx-5K9.js → extension-BeUFGuLj.js} +1 -1
- package/build/{external-link-irfws98I.js → external-link-Bs15ghtu.js} +1 -1
- package/build/{facebook-qmtTzoB_.js → facebook-D0JY4sSe.js} +1 -1
- package/build/{farcaster-DEWNEc0Q.js → farcaster-_Chn6LJT.js} +1 -1
- package/build/{filters-DZWgbI9i.js → filters-BOpqDyBv.js} +1 -1
- package/build/{github-Bb2akOR3.js → github-DTr6nI1q.js} +1 -1
- package/build/{google-CazN0xRl.js → google-DxhL83ry.js} +1 -1
- package/build/{help-circle-BEaEyXgD.js → help-circle-DwHPZEhw.js} +1 -1
- package/build/{id-BMeVCRWX.js → id-Cx21SPAm.js} +1 -1
- package/build/{image-Dtu-e28W.js → image-DiKxemEq.js} +1 -1
- package/build/{index-DQ3B7vlz.js → index-BdLPO4Cr.js} +820 -1476
- package/build/{index-ByH52vZE.js → index-BnuT7myn.js} +78 -78
- package/build/index.d.ts +5 -0
- package/build/{index.es-CSPshF8Q.js → index.es-CbN_imGq.js} +2 -2
- package/build/index.js +1 -1
- package/build/{info-circle-DEIBS9d7.js → info-circle-Dhgwbw5U.js} +1 -1
- package/build/{info-B_KY8Rad.js → info-yHny8019.js} +1 -1
- package/build/{lightbulb-CRbgbd55.js → lightbulb-D181oqbf.js} +1 -1
- package/build/{mail-CHAAbO3E.js → mail-Dw4oZr35.js} +1 -1
- package/build/{mobile-C7Kcgp0k.js → mobile-tnHCokvc.js} +1 -1
- package/build/{more-BSxfg4oJ.js → more-DEDJSiQi.js} +1 -1
- package/build/{network-placeholder-D_LAw2Ky.js → network-placeholder-C0_Eu29q.js} +1 -1
- package/build/{nftPlaceholder-_EfknlVN.js → nftPlaceholder-CHUPtTXj.js} +1 -1
- package/build/{off-B-6HQkNQ.js → off-DEipse2z.js} +1 -1
- package/build/{play-store-DkTnNVBA.js → play-store-BGrnfFuP.js} +1 -1
- package/build/{plus-CNTE6tnr.js → plus-HgA2Py8o.js} +1 -1
- package/build/{qr-code-5RB9g62I.js → qr-code-CnTrjPhJ.js} +1 -1
- package/build/{recycle-horizontal-CgX__dWD.js → recycle-horizontal-BWWnxTo2.js} +1 -1
- package/build/{refresh-pt1GE_s2.js → refresh-9WnWB3yk.js} +1 -1
- package/build/{reown-logo-BszJhJIE.js → reown-logo-vD68bE1j.js} +1 -1
- package/build/{search-CsiBc7vH.js → search-CENqbMW1.js} +1 -1
- package/build/{send-f_Q2ze6M.js → send-SqWfjOwm.js} +1 -1
- package/build/{swapHorizontal-Uqwe08ot.js → swapHorizontal-CLuFPiJe.js} +1 -1
- package/build/{swapHorizontalBold-DLmXCkWx.js → swapHorizontalBold-B3DV5CJ3.js} +1 -1
- package/build/{swapHorizontalMedium-iHL8rqSb.js → swapHorizontalMedium-CrY6ReN_.js} +1 -1
- package/build/{swapHorizontalRoundedBold-CTfJ3T5Q.js → swapHorizontalRoundedBold-D3Uw9TU_.js} +1 -1
- package/build/{swapVertical-Rv6Hs4Oq.js → swapVertical-Cb8baAX_.js} +1 -1
- package/build/{telegram-DZk49eZs.js → telegram-DjlHkff-.js} +1 -1
- package/build/{three-dots-CCPJQrxt.js → three-dots-D2YXni0L.js} +1 -1
- package/build/{twitch-CP0s53C8.js → twitch-Bgb2rWol.js} +1 -1
- package/build/{twitterIcon-C9ZlxJod.js → twitterIcon-D3yBmD5c.js} +1 -1
- package/build/{verify-BZQFEtFF.js → verify-BoQNB5GI.js} +1 -1
- package/build/{verify-filled-DZQpAnQH.js → verify-filled-C6KyMBWh.js} +1 -1
- package/build/{w3m-modal-D7BFkSis.js → w3m-modal-D3B--853.js} +2 -2
- package/build/{wallet-DZOjfD17.js → wallet-Dg8b2shL.js} +1 -1
- package/build/{wallet-placeholder-BcyCbucn.js → wallet-placeholder-H2A4rSYP.js} +1 -1
- package/build/{walletconnect-i0y5lXuM.js → walletconnect-BpbX2ppR.js} +1 -1
- package/build/{warning-circle-vG-3Vsaa.js → warning-circle-CeJUdygh.js} +1 -1
- package/build/{x-CSU4Nchx.js → x-NK630Y84.js} +1 -1
- package/package.json +5 -8
|
@@ -5,6 +5,7 @@ import { atom as atom$1, useAtomValue, useAtom, useSetAtom, createStore, Provide
|
|
|
5
5
|
import NiceModal, { useModal } from "@ebay/nice-modal-react";
|
|
6
6
|
import { chains, assets, venues, bridges, ChainType, getSigningStargateClient, route, balances, getRouteWithGasOnReceive, executeMultipleRoutes, executeRoute, BridgeType, FeeType, subscribeToRouteStatus, setClientOptions } from "@skip-go/client";
|
|
7
7
|
import { atomWithQuery, atomWithMutation } from "jotai-tanstack-query";
|
|
8
|
+
import BigNumber$1, { BigNumber } from "bignumber.js";
|
|
8
9
|
import pluralize from "pluralize";
|
|
9
10
|
import { track, init, add, setUserId } from "@amplitude/analytics-browser";
|
|
10
11
|
import { atomEffect } from "jotai-effect";
|
|
@@ -253,8 +254,8 @@ function getAugmentedNamespace(n) {
|
|
|
253
254
|
});
|
|
254
255
|
return a;
|
|
255
256
|
}
|
|
256
|
-
var shallowequal = function shallowEqual(objA, objB,
|
|
257
|
-
var ret =
|
|
257
|
+
var shallowequal = function shallowEqual(objA, objB, compare, compareContext) {
|
|
258
|
+
var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
|
|
258
259
|
if (ret !== void 0) {
|
|
259
260
|
return !!ret;
|
|
260
261
|
}
|
|
@@ -277,7 +278,7 @@ var shallowequal = function shallowEqual(objA, objB, compare2, compareContext) {
|
|
|
277
278
|
}
|
|
278
279
|
var valueA = objA[key];
|
|
279
280
|
var valueB = objB[key];
|
|
280
|
-
ret =
|
|
281
|
+
ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
|
|
281
282
|
if (ret === false || ret === void 0 && valueA !== valueB) {
|
|
282
283
|
return false;
|
|
283
284
|
}
|
|
@@ -2692,6 +2693,7 @@ const skipClientConfigAtom = atom$1({
|
|
|
2692
2693
|
});
|
|
2693
2694
|
const rootIdAtom = atom$1(void 0);
|
|
2694
2695
|
const themeAtom = atom$1(defaultTheme);
|
|
2696
|
+
const modalZIndexAtom = atom$1(10);
|
|
2695
2697
|
const flattenData = (data, chains2) => {
|
|
2696
2698
|
const flattenedData = [];
|
|
2697
2699
|
for (const chainKey in data) {
|
|
@@ -2807,1337 +2809,6 @@ const ROUTE_PREFERENCE_OPTIONS = [
|
|
|
2807
2809
|
RoutePreference.CHEAPEST
|
|
2808
2810
|
];
|
|
2809
2811
|
const DEFAULT_DECIMAL_PLACES = 6;
|
|
2810
|
-
var isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, mathceil = Math.ceil, mathfloor = Math.floor, bignumberError = "[BigNumber Error] ", tooManyDigits = bignumberError + "Number primitive has more than 15 significant digits: ", BASE = 1e14, LOG_BASE = 14, MAX_SAFE_INTEGER = 9007199254740991, POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], SQRT_BASE = 1e7, MAX = 1e9;
|
|
2811
|
-
function clone(configObject) {
|
|
2812
|
-
var div, convertBase, parseNumeric, P2 = BigNumber2.prototype = { constructor: BigNumber2, toString: null, valueOf: null }, ONE = new BigNumber2(1), DECIMAL_PLACES = 20, ROUNDING_MODE = 4, TO_EXP_NEG = -7, TO_EXP_POS = 21, MIN_EXP = -1e7, MAX_EXP = 1e7, CRYPTO = false, MODULO_MODE = 1, POW_PRECISION = 0, FORMAT = {
|
|
2813
|
-
prefix: "",
|
|
2814
|
-
groupSize: 3,
|
|
2815
|
-
secondaryGroupSize: 0,
|
|
2816
|
-
groupSeparator: ",",
|
|
2817
|
-
decimalSeparator: ".",
|
|
2818
|
-
fractionGroupSize: 0,
|
|
2819
|
-
fractionGroupSeparator: " ",
|
|
2820
|
-
// non-breaking space
|
|
2821
|
-
suffix: ""
|
|
2822
|
-
}, ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyz", alphabetHasNormalDecimalDigits = true;
|
|
2823
|
-
function BigNumber2(v2, b) {
|
|
2824
|
-
var alphabet, c, caseChanged, e, i, isNum, len, str, x2 = this;
|
|
2825
|
-
if (!(x2 instanceof BigNumber2)) return new BigNumber2(v2, b);
|
|
2826
|
-
if (b == null) {
|
|
2827
|
-
if (v2 && v2._isBigNumber === true) {
|
|
2828
|
-
x2.s = v2.s;
|
|
2829
|
-
if (!v2.c || v2.e > MAX_EXP) {
|
|
2830
|
-
x2.c = x2.e = null;
|
|
2831
|
-
} else if (v2.e < MIN_EXP) {
|
|
2832
|
-
x2.c = [x2.e = 0];
|
|
2833
|
-
} else {
|
|
2834
|
-
x2.e = v2.e;
|
|
2835
|
-
x2.c = v2.c.slice();
|
|
2836
|
-
}
|
|
2837
|
-
return;
|
|
2838
|
-
}
|
|
2839
|
-
if ((isNum = typeof v2 == "number") && v2 * 0 == 0) {
|
|
2840
|
-
x2.s = 1 / v2 < 0 ? (v2 = -v2, -1) : 1;
|
|
2841
|
-
if (v2 === ~~v2) {
|
|
2842
|
-
for (e = 0, i = v2; i >= 10; i /= 10, e++) ;
|
|
2843
|
-
if (e > MAX_EXP) {
|
|
2844
|
-
x2.c = x2.e = null;
|
|
2845
|
-
} else {
|
|
2846
|
-
x2.e = e;
|
|
2847
|
-
x2.c = [v2];
|
|
2848
|
-
}
|
|
2849
|
-
return;
|
|
2850
|
-
}
|
|
2851
|
-
str = String(v2);
|
|
2852
|
-
} else {
|
|
2853
|
-
if (!isNumeric.test(str = String(v2))) return parseNumeric(x2, str, isNum);
|
|
2854
|
-
x2.s = str.charCodeAt(0) == 45 ? (str = str.slice(1), -1) : 1;
|
|
2855
|
-
}
|
|
2856
|
-
if ((e = str.indexOf(".")) > -1) str = str.replace(".", "");
|
|
2857
|
-
if ((i = str.search(/e/i)) > 0) {
|
|
2858
|
-
if (e < 0) e = i;
|
|
2859
|
-
e += +str.slice(i + 1);
|
|
2860
|
-
str = str.substring(0, i);
|
|
2861
|
-
} else if (e < 0) {
|
|
2862
|
-
e = str.length;
|
|
2863
|
-
}
|
|
2864
|
-
} else {
|
|
2865
|
-
intCheck(b, 2, ALPHABET.length, "Base");
|
|
2866
|
-
if (b == 10 && alphabetHasNormalDecimalDigits) {
|
|
2867
|
-
x2 = new BigNumber2(v2);
|
|
2868
|
-
return round(x2, DECIMAL_PLACES + x2.e + 1, ROUNDING_MODE);
|
|
2869
|
-
}
|
|
2870
|
-
str = String(v2);
|
|
2871
|
-
if (isNum = typeof v2 == "number") {
|
|
2872
|
-
if (v2 * 0 != 0) return parseNumeric(x2, str, isNum, b);
|
|
2873
|
-
x2.s = 1 / v2 < 0 ? (str = str.slice(1), -1) : 1;
|
|
2874
|
-
if (BigNumber2.DEBUG && str.replace(/^0\.0*|\./, "").length > 15) {
|
|
2875
|
-
throw Error(tooManyDigits + v2);
|
|
2876
|
-
}
|
|
2877
|
-
} else {
|
|
2878
|
-
x2.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1;
|
|
2879
|
-
}
|
|
2880
|
-
alphabet = ALPHABET.slice(0, b);
|
|
2881
|
-
e = i = 0;
|
|
2882
|
-
for (len = str.length; i < len; i++) {
|
|
2883
|
-
if (alphabet.indexOf(c = str.charAt(i)) < 0) {
|
|
2884
|
-
if (c == ".") {
|
|
2885
|
-
if (i > e) {
|
|
2886
|
-
e = len;
|
|
2887
|
-
continue;
|
|
2888
|
-
}
|
|
2889
|
-
} else if (!caseChanged) {
|
|
2890
|
-
if (str == str.toUpperCase() && (str = str.toLowerCase()) || str == str.toLowerCase() && (str = str.toUpperCase())) {
|
|
2891
|
-
caseChanged = true;
|
|
2892
|
-
i = -1;
|
|
2893
|
-
e = 0;
|
|
2894
|
-
continue;
|
|
2895
|
-
}
|
|
2896
|
-
}
|
|
2897
|
-
return parseNumeric(x2, String(v2), isNum, b);
|
|
2898
|
-
}
|
|
2899
|
-
}
|
|
2900
|
-
isNum = false;
|
|
2901
|
-
str = convertBase(str, b, 10, x2.s);
|
|
2902
|
-
if ((e = str.indexOf(".")) > -1) str = str.replace(".", "");
|
|
2903
|
-
else e = str.length;
|
|
2904
|
-
}
|
|
2905
|
-
for (i = 0; str.charCodeAt(i) === 48; i++) ;
|
|
2906
|
-
for (len = str.length; str.charCodeAt(--len) === 48; ) ;
|
|
2907
|
-
if (str = str.slice(i, ++len)) {
|
|
2908
|
-
len -= i;
|
|
2909
|
-
if (isNum && BigNumber2.DEBUG && len > 15 && (v2 > MAX_SAFE_INTEGER || v2 !== mathfloor(v2))) {
|
|
2910
|
-
throw Error(tooManyDigits + x2.s * v2);
|
|
2911
|
-
}
|
|
2912
|
-
if ((e = e - i - 1) > MAX_EXP) {
|
|
2913
|
-
x2.c = x2.e = null;
|
|
2914
|
-
} else if (e < MIN_EXP) {
|
|
2915
|
-
x2.c = [x2.e = 0];
|
|
2916
|
-
} else {
|
|
2917
|
-
x2.e = e;
|
|
2918
|
-
x2.c = [];
|
|
2919
|
-
i = (e + 1) % LOG_BASE;
|
|
2920
|
-
if (e < 0) i += LOG_BASE;
|
|
2921
|
-
if (i < len) {
|
|
2922
|
-
if (i) x2.c.push(+str.slice(0, i));
|
|
2923
|
-
for (len -= LOG_BASE; i < len; ) {
|
|
2924
|
-
x2.c.push(+str.slice(i, i += LOG_BASE));
|
|
2925
|
-
}
|
|
2926
|
-
i = LOG_BASE - (str = str.slice(i)).length;
|
|
2927
|
-
} else {
|
|
2928
|
-
i -= len;
|
|
2929
|
-
}
|
|
2930
|
-
for (; i--; str += "0") ;
|
|
2931
|
-
x2.c.push(+str);
|
|
2932
|
-
}
|
|
2933
|
-
} else {
|
|
2934
|
-
x2.c = [x2.e = 0];
|
|
2935
|
-
}
|
|
2936
|
-
}
|
|
2937
|
-
BigNumber2.clone = clone;
|
|
2938
|
-
BigNumber2.ROUND_UP = 0;
|
|
2939
|
-
BigNumber2.ROUND_DOWN = 1;
|
|
2940
|
-
BigNumber2.ROUND_CEIL = 2;
|
|
2941
|
-
BigNumber2.ROUND_FLOOR = 3;
|
|
2942
|
-
BigNumber2.ROUND_HALF_UP = 4;
|
|
2943
|
-
BigNumber2.ROUND_HALF_DOWN = 5;
|
|
2944
|
-
BigNumber2.ROUND_HALF_EVEN = 6;
|
|
2945
|
-
BigNumber2.ROUND_HALF_CEIL = 7;
|
|
2946
|
-
BigNumber2.ROUND_HALF_FLOOR = 8;
|
|
2947
|
-
BigNumber2.EUCLID = 9;
|
|
2948
|
-
BigNumber2.config = BigNumber2.set = function(obj) {
|
|
2949
|
-
var p2, v2;
|
|
2950
|
-
if (obj != null) {
|
|
2951
|
-
if (typeof obj == "object") {
|
|
2952
|
-
if (obj.hasOwnProperty(p2 = "DECIMAL_PLACES")) {
|
|
2953
|
-
v2 = obj[p2];
|
|
2954
|
-
intCheck(v2, 0, MAX, p2);
|
|
2955
|
-
DECIMAL_PLACES = v2;
|
|
2956
|
-
}
|
|
2957
|
-
if (obj.hasOwnProperty(p2 = "ROUNDING_MODE")) {
|
|
2958
|
-
v2 = obj[p2];
|
|
2959
|
-
intCheck(v2, 0, 8, p2);
|
|
2960
|
-
ROUNDING_MODE = v2;
|
|
2961
|
-
}
|
|
2962
|
-
if (obj.hasOwnProperty(p2 = "EXPONENTIAL_AT")) {
|
|
2963
|
-
v2 = obj[p2];
|
|
2964
|
-
if (v2 && v2.pop) {
|
|
2965
|
-
intCheck(v2[0], -MAX, 0, p2);
|
|
2966
|
-
intCheck(v2[1], 0, MAX, p2);
|
|
2967
|
-
TO_EXP_NEG = v2[0];
|
|
2968
|
-
TO_EXP_POS = v2[1];
|
|
2969
|
-
} else {
|
|
2970
|
-
intCheck(v2, -MAX, MAX, p2);
|
|
2971
|
-
TO_EXP_NEG = -(TO_EXP_POS = v2 < 0 ? -v2 : v2);
|
|
2972
|
-
}
|
|
2973
|
-
}
|
|
2974
|
-
if (obj.hasOwnProperty(p2 = "RANGE")) {
|
|
2975
|
-
v2 = obj[p2];
|
|
2976
|
-
if (v2 && v2.pop) {
|
|
2977
|
-
intCheck(v2[0], -MAX, -1, p2);
|
|
2978
|
-
intCheck(v2[1], 1, MAX, p2);
|
|
2979
|
-
MIN_EXP = v2[0];
|
|
2980
|
-
MAX_EXP = v2[1];
|
|
2981
|
-
} else {
|
|
2982
|
-
intCheck(v2, -MAX, MAX, p2);
|
|
2983
|
-
if (v2) {
|
|
2984
|
-
MIN_EXP = -(MAX_EXP = v2 < 0 ? -v2 : v2);
|
|
2985
|
-
} else {
|
|
2986
|
-
throw Error(bignumberError + p2 + " cannot be zero: " + v2);
|
|
2987
|
-
}
|
|
2988
|
-
}
|
|
2989
|
-
}
|
|
2990
|
-
if (obj.hasOwnProperty(p2 = "CRYPTO")) {
|
|
2991
|
-
v2 = obj[p2];
|
|
2992
|
-
if (v2 === !!v2) {
|
|
2993
|
-
if (v2) {
|
|
2994
|
-
if (typeof crypto != "undefined" && crypto && (crypto.getRandomValues || crypto.randomBytes)) {
|
|
2995
|
-
CRYPTO = v2;
|
|
2996
|
-
} else {
|
|
2997
|
-
CRYPTO = !v2;
|
|
2998
|
-
throw Error(bignumberError + "crypto unavailable");
|
|
2999
|
-
}
|
|
3000
|
-
} else {
|
|
3001
|
-
CRYPTO = v2;
|
|
3002
|
-
}
|
|
3003
|
-
} else {
|
|
3004
|
-
throw Error(bignumberError + p2 + " not true or false: " + v2);
|
|
3005
|
-
}
|
|
3006
|
-
}
|
|
3007
|
-
if (obj.hasOwnProperty(p2 = "MODULO_MODE")) {
|
|
3008
|
-
v2 = obj[p2];
|
|
3009
|
-
intCheck(v2, 0, 9, p2);
|
|
3010
|
-
MODULO_MODE = v2;
|
|
3011
|
-
}
|
|
3012
|
-
if (obj.hasOwnProperty(p2 = "POW_PRECISION")) {
|
|
3013
|
-
v2 = obj[p2];
|
|
3014
|
-
intCheck(v2, 0, MAX, p2);
|
|
3015
|
-
POW_PRECISION = v2;
|
|
3016
|
-
}
|
|
3017
|
-
if (obj.hasOwnProperty(p2 = "FORMAT")) {
|
|
3018
|
-
v2 = obj[p2];
|
|
3019
|
-
if (typeof v2 == "object") FORMAT = v2;
|
|
3020
|
-
else throw Error(bignumberError + p2 + " not an object: " + v2);
|
|
3021
|
-
}
|
|
3022
|
-
if (obj.hasOwnProperty(p2 = "ALPHABET")) {
|
|
3023
|
-
v2 = obj[p2];
|
|
3024
|
-
if (typeof v2 == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(v2)) {
|
|
3025
|
-
alphabetHasNormalDecimalDigits = v2.slice(0, 10) == "0123456789";
|
|
3026
|
-
ALPHABET = v2;
|
|
3027
|
-
} else {
|
|
3028
|
-
throw Error(bignumberError + p2 + " invalid: " + v2);
|
|
3029
|
-
}
|
|
3030
|
-
}
|
|
3031
|
-
} else {
|
|
3032
|
-
throw Error(bignumberError + "Object expected: " + obj);
|
|
3033
|
-
}
|
|
3034
|
-
}
|
|
3035
|
-
return {
|
|
3036
|
-
DECIMAL_PLACES,
|
|
3037
|
-
ROUNDING_MODE,
|
|
3038
|
-
EXPONENTIAL_AT: [TO_EXP_NEG, TO_EXP_POS],
|
|
3039
|
-
RANGE: [MIN_EXP, MAX_EXP],
|
|
3040
|
-
CRYPTO,
|
|
3041
|
-
MODULO_MODE,
|
|
3042
|
-
POW_PRECISION,
|
|
3043
|
-
FORMAT,
|
|
3044
|
-
ALPHABET
|
|
3045
|
-
};
|
|
3046
|
-
};
|
|
3047
|
-
BigNumber2.isBigNumber = function(v2) {
|
|
3048
|
-
if (!v2 || v2._isBigNumber !== true) return false;
|
|
3049
|
-
if (!BigNumber2.DEBUG) return true;
|
|
3050
|
-
var i, n, c = v2.c, e = v2.e, s = v2.s;
|
|
3051
|
-
out: if ({}.toString.call(c) == "[object Array]") {
|
|
3052
|
-
if ((s === 1 || s === -1) && e >= -MAX && e <= MAX && e === mathfloor(e)) {
|
|
3053
|
-
if (c[0] === 0) {
|
|
3054
|
-
if (e === 0 && c.length === 1) return true;
|
|
3055
|
-
break out;
|
|
3056
|
-
}
|
|
3057
|
-
i = (e + 1) % LOG_BASE;
|
|
3058
|
-
if (i < 1) i += LOG_BASE;
|
|
3059
|
-
if (String(c[0]).length == i) {
|
|
3060
|
-
for (i = 0; i < c.length; i++) {
|
|
3061
|
-
n = c[i];
|
|
3062
|
-
if (n < 0 || n >= BASE || n !== mathfloor(n)) break out;
|
|
3063
|
-
}
|
|
3064
|
-
if (n !== 0) return true;
|
|
3065
|
-
}
|
|
3066
|
-
}
|
|
3067
|
-
} else if (c === null && e === null && (s === null || s === 1 || s === -1)) {
|
|
3068
|
-
return true;
|
|
3069
|
-
}
|
|
3070
|
-
throw Error(bignumberError + "Invalid BigNumber: " + v2);
|
|
3071
|
-
};
|
|
3072
|
-
BigNumber2.maximum = BigNumber2.max = function() {
|
|
3073
|
-
return maxOrMin(arguments, -1);
|
|
3074
|
-
};
|
|
3075
|
-
BigNumber2.minimum = BigNumber2.min = function() {
|
|
3076
|
-
return maxOrMin(arguments, 1);
|
|
3077
|
-
};
|
|
3078
|
-
BigNumber2.random = function() {
|
|
3079
|
-
var pow2_53 = 9007199254740992;
|
|
3080
|
-
var random53bitInt = Math.random() * pow2_53 & 2097151 ? function() {
|
|
3081
|
-
return mathfloor(Math.random() * pow2_53);
|
|
3082
|
-
} : function() {
|
|
3083
|
-
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
3084
|
-
};
|
|
3085
|
-
return function(dp) {
|
|
3086
|
-
var a, b, e, k2, v2, i = 0, c = [], rand = new BigNumber2(ONE);
|
|
3087
|
-
if (dp == null) dp = DECIMAL_PLACES;
|
|
3088
|
-
else intCheck(dp, 0, MAX);
|
|
3089
|
-
k2 = mathceil(dp / LOG_BASE);
|
|
3090
|
-
if (CRYPTO) {
|
|
3091
|
-
if (crypto.getRandomValues) {
|
|
3092
|
-
a = crypto.getRandomValues(new Uint32Array(k2 *= 2));
|
|
3093
|
-
for (; i < k2; ) {
|
|
3094
|
-
v2 = a[i] * 131072 + (a[i + 1] >>> 11);
|
|
3095
|
-
if (v2 >= 9e15) {
|
|
3096
|
-
b = crypto.getRandomValues(new Uint32Array(2));
|
|
3097
|
-
a[i] = b[0];
|
|
3098
|
-
a[i + 1] = b[1];
|
|
3099
|
-
} else {
|
|
3100
|
-
c.push(v2 % 1e14);
|
|
3101
|
-
i += 2;
|
|
3102
|
-
}
|
|
3103
|
-
}
|
|
3104
|
-
i = k2 / 2;
|
|
3105
|
-
} else if (crypto.randomBytes) {
|
|
3106
|
-
a = crypto.randomBytes(k2 *= 7);
|
|
3107
|
-
for (; i < k2; ) {
|
|
3108
|
-
v2 = (a[i] & 31) * 281474976710656 + a[i + 1] * 1099511627776 + a[i + 2] * 4294967296 + a[i + 3] * 16777216 + (a[i + 4] << 16) + (a[i + 5] << 8) + a[i + 6];
|
|
3109
|
-
if (v2 >= 9e15) {
|
|
3110
|
-
crypto.randomBytes(7).copy(a, i);
|
|
3111
|
-
} else {
|
|
3112
|
-
c.push(v2 % 1e14);
|
|
3113
|
-
i += 7;
|
|
3114
|
-
}
|
|
3115
|
-
}
|
|
3116
|
-
i = k2 / 7;
|
|
3117
|
-
} else {
|
|
3118
|
-
CRYPTO = false;
|
|
3119
|
-
throw Error(bignumberError + "crypto unavailable");
|
|
3120
|
-
}
|
|
3121
|
-
}
|
|
3122
|
-
if (!CRYPTO) {
|
|
3123
|
-
for (; i < k2; ) {
|
|
3124
|
-
v2 = random53bitInt();
|
|
3125
|
-
if (v2 < 9e15) c[i++] = v2 % 1e14;
|
|
3126
|
-
}
|
|
3127
|
-
}
|
|
3128
|
-
k2 = c[--i];
|
|
3129
|
-
dp %= LOG_BASE;
|
|
3130
|
-
if (k2 && dp) {
|
|
3131
|
-
v2 = POWS_TEN[LOG_BASE - dp];
|
|
3132
|
-
c[i] = mathfloor(k2 / v2) * v2;
|
|
3133
|
-
}
|
|
3134
|
-
for (; c[i] === 0; c.pop(), i--) ;
|
|
3135
|
-
if (i < 0) {
|
|
3136
|
-
c = [e = 0];
|
|
3137
|
-
} else {
|
|
3138
|
-
for (e = -1; c[0] === 0; c.splice(0, 1), e -= LOG_BASE) ;
|
|
3139
|
-
for (i = 1, v2 = c[0]; v2 >= 10; v2 /= 10, i++) ;
|
|
3140
|
-
if (i < LOG_BASE) e -= LOG_BASE - i;
|
|
3141
|
-
}
|
|
3142
|
-
rand.e = e;
|
|
3143
|
-
rand.c = c;
|
|
3144
|
-
return rand;
|
|
3145
|
-
};
|
|
3146
|
-
}();
|
|
3147
|
-
BigNumber2.sum = function() {
|
|
3148
|
-
var i = 1, args = arguments, sum = new BigNumber2(args[0]);
|
|
3149
|
-
for (; i < args.length; ) sum = sum.plus(args[i++]);
|
|
3150
|
-
return sum;
|
|
3151
|
-
};
|
|
3152
|
-
convertBase = /* @__PURE__ */ function() {
|
|
3153
|
-
var decimal = "0123456789";
|
|
3154
|
-
function toBaseOut(str, baseIn, baseOut, alphabet) {
|
|
3155
|
-
var j2, arr = [0], arrL, i = 0, len = str.length;
|
|
3156
|
-
for (; i < len; ) {
|
|
3157
|
-
for (arrL = arr.length; arrL--; arr[arrL] *= baseIn) ;
|
|
3158
|
-
arr[0] += alphabet.indexOf(str.charAt(i++));
|
|
3159
|
-
for (j2 = 0; j2 < arr.length; j2++) {
|
|
3160
|
-
if (arr[j2] > baseOut - 1) {
|
|
3161
|
-
if (arr[j2 + 1] == null) arr[j2 + 1] = 0;
|
|
3162
|
-
arr[j2 + 1] += arr[j2] / baseOut | 0;
|
|
3163
|
-
arr[j2] %= baseOut;
|
|
3164
|
-
}
|
|
3165
|
-
}
|
|
3166
|
-
}
|
|
3167
|
-
return arr.reverse();
|
|
3168
|
-
}
|
|
3169
|
-
return function(str, baseIn, baseOut, sign, callerIsToString) {
|
|
3170
|
-
var alphabet, d, e, k2, r, x2, xc, y2, i = str.indexOf("."), dp = DECIMAL_PLACES, rm = ROUNDING_MODE;
|
|
3171
|
-
if (i >= 0) {
|
|
3172
|
-
k2 = POW_PRECISION;
|
|
3173
|
-
POW_PRECISION = 0;
|
|
3174
|
-
str = str.replace(".", "");
|
|
3175
|
-
y2 = new BigNumber2(baseIn);
|
|
3176
|
-
x2 = y2.pow(str.length - i);
|
|
3177
|
-
POW_PRECISION = k2;
|
|
3178
|
-
y2.c = toBaseOut(
|
|
3179
|
-
toFixedPoint(coeffToString(x2.c), x2.e, "0"),
|
|
3180
|
-
10,
|
|
3181
|
-
baseOut,
|
|
3182
|
-
decimal
|
|
3183
|
-
);
|
|
3184
|
-
y2.e = y2.c.length;
|
|
3185
|
-
}
|
|
3186
|
-
xc = toBaseOut(str, baseIn, baseOut, callerIsToString ? (alphabet = ALPHABET, decimal) : (alphabet = decimal, ALPHABET));
|
|
3187
|
-
e = k2 = xc.length;
|
|
3188
|
-
for (; xc[--k2] == 0; xc.pop()) ;
|
|
3189
|
-
if (!xc[0]) return alphabet.charAt(0);
|
|
3190
|
-
if (i < 0) {
|
|
3191
|
-
--e;
|
|
3192
|
-
} else {
|
|
3193
|
-
x2.c = xc;
|
|
3194
|
-
x2.e = e;
|
|
3195
|
-
x2.s = sign;
|
|
3196
|
-
x2 = div(x2, y2, dp, rm, baseOut);
|
|
3197
|
-
xc = x2.c;
|
|
3198
|
-
r = x2.r;
|
|
3199
|
-
e = x2.e;
|
|
3200
|
-
}
|
|
3201
|
-
d = e + dp + 1;
|
|
3202
|
-
i = xc[d];
|
|
3203
|
-
k2 = baseOut / 2;
|
|
3204
|
-
r = r || d < 0 || xc[d + 1] != null;
|
|
3205
|
-
r = rm < 4 ? (i != null || r) && (rm == 0 || rm == (x2.s < 0 ? 3 : 2)) : i > k2 || i == k2 && (rm == 4 || r || rm == 6 && xc[d - 1] & 1 || rm == (x2.s < 0 ? 8 : 7));
|
|
3206
|
-
if (d < 1 || !xc[0]) {
|
|
3207
|
-
str = r ? toFixedPoint(alphabet.charAt(1), -dp, alphabet.charAt(0)) : alphabet.charAt(0);
|
|
3208
|
-
} else {
|
|
3209
|
-
xc.length = d;
|
|
3210
|
-
if (r) {
|
|
3211
|
-
for (--baseOut; ++xc[--d] > baseOut; ) {
|
|
3212
|
-
xc[d] = 0;
|
|
3213
|
-
if (!d) {
|
|
3214
|
-
++e;
|
|
3215
|
-
xc = [1].concat(xc);
|
|
3216
|
-
}
|
|
3217
|
-
}
|
|
3218
|
-
}
|
|
3219
|
-
for (k2 = xc.length; !xc[--k2]; ) ;
|
|
3220
|
-
for (i = 0, str = ""; i <= k2; str += alphabet.charAt(xc[i++])) ;
|
|
3221
|
-
str = toFixedPoint(str, e, alphabet.charAt(0));
|
|
3222
|
-
}
|
|
3223
|
-
return str;
|
|
3224
|
-
};
|
|
3225
|
-
}();
|
|
3226
|
-
div = /* @__PURE__ */ function() {
|
|
3227
|
-
function multiply(x2, k2, base2) {
|
|
3228
|
-
var m2, temp, xlo, xhi, carry = 0, i = x2.length, klo = k2 % SQRT_BASE, khi = k2 / SQRT_BASE | 0;
|
|
3229
|
-
for (x2 = x2.slice(); i--; ) {
|
|
3230
|
-
xlo = x2[i] % SQRT_BASE;
|
|
3231
|
-
xhi = x2[i] / SQRT_BASE | 0;
|
|
3232
|
-
m2 = khi * xlo + xhi * klo;
|
|
3233
|
-
temp = klo * xlo + m2 % SQRT_BASE * SQRT_BASE + carry;
|
|
3234
|
-
carry = (temp / base2 | 0) + (m2 / SQRT_BASE | 0) + khi * xhi;
|
|
3235
|
-
x2[i] = temp % base2;
|
|
3236
|
-
}
|
|
3237
|
-
if (carry) x2 = [carry].concat(x2);
|
|
3238
|
-
return x2;
|
|
3239
|
-
}
|
|
3240
|
-
function compare2(a, b, aL, bL) {
|
|
3241
|
-
var i, cmp;
|
|
3242
|
-
if (aL != bL) {
|
|
3243
|
-
cmp = aL > bL ? 1 : -1;
|
|
3244
|
-
} else {
|
|
3245
|
-
for (i = cmp = 0; i < aL; i++) {
|
|
3246
|
-
if (a[i] != b[i]) {
|
|
3247
|
-
cmp = a[i] > b[i] ? 1 : -1;
|
|
3248
|
-
break;
|
|
3249
|
-
}
|
|
3250
|
-
}
|
|
3251
|
-
}
|
|
3252
|
-
return cmp;
|
|
3253
|
-
}
|
|
3254
|
-
function subtract(a, b, aL, base2) {
|
|
3255
|
-
var i = 0;
|
|
3256
|
-
for (; aL--; ) {
|
|
3257
|
-
a[aL] -= i;
|
|
3258
|
-
i = a[aL] < b[aL] ? 1 : 0;
|
|
3259
|
-
a[aL] = i * base2 + a[aL] - b[aL];
|
|
3260
|
-
}
|
|
3261
|
-
for (; !a[0] && a.length > 1; a.splice(0, 1)) ;
|
|
3262
|
-
}
|
|
3263
|
-
return function(x2, y2, dp, rm, base2) {
|
|
3264
|
-
var cmp, e, i, more, n, prod, prodL, q2, qc, rem, remL, rem0, xi, xL, yc0, yL, yz, s = x2.s == y2.s ? 1 : -1, xc = x2.c, yc = y2.c;
|
|
3265
|
-
if (!xc || !xc[0] || !yc || !yc[0]) {
|
|
3266
|
-
return new BigNumber2(
|
|
3267
|
-
// Return NaN if either NaN, or both Infinity or 0.
|
|
3268
|
-
!x2.s || !y2.s || (xc ? yc && xc[0] == yc[0] : !yc) ? NaN : (
|
|
3269
|
-
// Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
|
|
3270
|
-
xc && xc[0] == 0 || !yc ? s * 0 : s / 0
|
|
3271
|
-
)
|
|
3272
|
-
);
|
|
3273
|
-
}
|
|
3274
|
-
q2 = new BigNumber2(s);
|
|
3275
|
-
qc = q2.c = [];
|
|
3276
|
-
e = x2.e - y2.e;
|
|
3277
|
-
s = dp + e + 1;
|
|
3278
|
-
if (!base2) {
|
|
3279
|
-
base2 = BASE;
|
|
3280
|
-
e = bitFloor(x2.e / LOG_BASE) - bitFloor(y2.e / LOG_BASE);
|
|
3281
|
-
s = s / LOG_BASE | 0;
|
|
3282
|
-
}
|
|
3283
|
-
for (i = 0; yc[i] == (xc[i] || 0); i++) ;
|
|
3284
|
-
if (yc[i] > (xc[i] || 0)) e--;
|
|
3285
|
-
if (s < 0) {
|
|
3286
|
-
qc.push(1);
|
|
3287
|
-
more = true;
|
|
3288
|
-
} else {
|
|
3289
|
-
xL = xc.length;
|
|
3290
|
-
yL = yc.length;
|
|
3291
|
-
i = 0;
|
|
3292
|
-
s += 2;
|
|
3293
|
-
n = mathfloor(base2 / (yc[0] + 1));
|
|
3294
|
-
if (n > 1) {
|
|
3295
|
-
yc = multiply(yc, n, base2);
|
|
3296
|
-
xc = multiply(xc, n, base2);
|
|
3297
|
-
yL = yc.length;
|
|
3298
|
-
xL = xc.length;
|
|
3299
|
-
}
|
|
3300
|
-
xi = yL;
|
|
3301
|
-
rem = xc.slice(0, yL);
|
|
3302
|
-
remL = rem.length;
|
|
3303
|
-
for (; remL < yL; rem[remL++] = 0) ;
|
|
3304
|
-
yz = yc.slice();
|
|
3305
|
-
yz = [0].concat(yz);
|
|
3306
|
-
yc0 = yc[0];
|
|
3307
|
-
if (yc[1] >= base2 / 2) yc0++;
|
|
3308
|
-
do {
|
|
3309
|
-
n = 0;
|
|
3310
|
-
cmp = compare2(yc, rem, yL, remL);
|
|
3311
|
-
if (cmp < 0) {
|
|
3312
|
-
rem0 = rem[0];
|
|
3313
|
-
if (yL != remL) rem0 = rem0 * base2 + (rem[1] || 0);
|
|
3314
|
-
n = mathfloor(rem0 / yc0);
|
|
3315
|
-
if (n > 1) {
|
|
3316
|
-
if (n >= base2) n = base2 - 1;
|
|
3317
|
-
prod = multiply(yc, n, base2);
|
|
3318
|
-
prodL = prod.length;
|
|
3319
|
-
remL = rem.length;
|
|
3320
|
-
while (compare2(prod, rem, prodL, remL) == 1) {
|
|
3321
|
-
n--;
|
|
3322
|
-
subtract(prod, yL < prodL ? yz : yc, prodL, base2);
|
|
3323
|
-
prodL = prod.length;
|
|
3324
|
-
cmp = 1;
|
|
3325
|
-
}
|
|
3326
|
-
} else {
|
|
3327
|
-
if (n == 0) {
|
|
3328
|
-
cmp = n = 1;
|
|
3329
|
-
}
|
|
3330
|
-
prod = yc.slice();
|
|
3331
|
-
prodL = prod.length;
|
|
3332
|
-
}
|
|
3333
|
-
if (prodL < remL) prod = [0].concat(prod);
|
|
3334
|
-
subtract(rem, prod, remL, base2);
|
|
3335
|
-
remL = rem.length;
|
|
3336
|
-
if (cmp == -1) {
|
|
3337
|
-
while (compare2(yc, rem, yL, remL) < 1) {
|
|
3338
|
-
n++;
|
|
3339
|
-
subtract(rem, yL < remL ? yz : yc, remL, base2);
|
|
3340
|
-
remL = rem.length;
|
|
3341
|
-
}
|
|
3342
|
-
}
|
|
3343
|
-
} else if (cmp === 0) {
|
|
3344
|
-
n++;
|
|
3345
|
-
rem = [0];
|
|
3346
|
-
}
|
|
3347
|
-
qc[i++] = n;
|
|
3348
|
-
if (rem[0]) {
|
|
3349
|
-
rem[remL++] = xc[xi] || 0;
|
|
3350
|
-
} else {
|
|
3351
|
-
rem = [xc[xi]];
|
|
3352
|
-
remL = 1;
|
|
3353
|
-
}
|
|
3354
|
-
} while ((xi++ < xL || rem[0] != null) && s--);
|
|
3355
|
-
more = rem[0] != null;
|
|
3356
|
-
if (!qc[0]) qc.splice(0, 1);
|
|
3357
|
-
}
|
|
3358
|
-
if (base2 == BASE) {
|
|
3359
|
-
for (i = 1, s = qc[0]; s >= 10; s /= 10, i++) ;
|
|
3360
|
-
round(q2, dp + (q2.e = i + e * LOG_BASE - 1) + 1, rm, more);
|
|
3361
|
-
} else {
|
|
3362
|
-
q2.e = e;
|
|
3363
|
-
q2.r = +more;
|
|
3364
|
-
}
|
|
3365
|
-
return q2;
|
|
3366
|
-
};
|
|
3367
|
-
}();
|
|
3368
|
-
function format(n, i, rm, id) {
|
|
3369
|
-
var c0, e, ne2, len, str;
|
|
3370
|
-
if (rm == null) rm = ROUNDING_MODE;
|
|
3371
|
-
else intCheck(rm, 0, 8);
|
|
3372
|
-
if (!n.c) return n.toString();
|
|
3373
|
-
c0 = n.c[0];
|
|
3374
|
-
ne2 = n.e;
|
|
3375
|
-
if (i == null) {
|
|
3376
|
-
str = coeffToString(n.c);
|
|
3377
|
-
str = id == 1 || id == 2 && (ne2 <= TO_EXP_NEG || ne2 >= TO_EXP_POS) ? toExponential(str, ne2) : toFixedPoint(str, ne2, "0");
|
|
3378
|
-
} else {
|
|
3379
|
-
n = round(new BigNumber2(n), i, rm);
|
|
3380
|
-
e = n.e;
|
|
3381
|
-
str = coeffToString(n.c);
|
|
3382
|
-
len = str.length;
|
|
3383
|
-
if (id == 1 || id == 2 && (i <= e || e <= TO_EXP_NEG)) {
|
|
3384
|
-
for (; len < i; str += "0", len++) ;
|
|
3385
|
-
str = toExponential(str, e);
|
|
3386
|
-
} else {
|
|
3387
|
-
i -= ne2 + (id === 2 && e > ne2);
|
|
3388
|
-
str = toFixedPoint(str, e, "0");
|
|
3389
|
-
if (e + 1 > len) {
|
|
3390
|
-
if (--i > 0) for (str += "."; i--; str += "0") ;
|
|
3391
|
-
} else {
|
|
3392
|
-
i += e - len;
|
|
3393
|
-
if (i > 0) {
|
|
3394
|
-
if (e + 1 == len) str += ".";
|
|
3395
|
-
for (; i--; str += "0") ;
|
|
3396
|
-
}
|
|
3397
|
-
}
|
|
3398
|
-
}
|
|
3399
|
-
}
|
|
3400
|
-
return n.s < 0 && c0 ? "-" + str : str;
|
|
3401
|
-
}
|
|
3402
|
-
function maxOrMin(args, n) {
|
|
3403
|
-
var k2, y2, i = 1, x2 = new BigNumber2(args[0]);
|
|
3404
|
-
for (; i < args.length; i++) {
|
|
3405
|
-
y2 = new BigNumber2(args[i]);
|
|
3406
|
-
if (!y2.s || (k2 = compare(x2, y2)) === n || k2 === 0 && x2.s === n) {
|
|
3407
|
-
x2 = y2;
|
|
3408
|
-
}
|
|
3409
|
-
}
|
|
3410
|
-
return x2;
|
|
3411
|
-
}
|
|
3412
|
-
function normalise(n, c, e) {
|
|
3413
|
-
var i = 1, j2 = c.length;
|
|
3414
|
-
for (; !c[--j2]; c.pop()) ;
|
|
3415
|
-
for (j2 = c[0]; j2 >= 10; j2 /= 10, i++) ;
|
|
3416
|
-
if ((e = i + e * LOG_BASE - 1) > MAX_EXP) {
|
|
3417
|
-
n.c = n.e = null;
|
|
3418
|
-
} else if (e < MIN_EXP) {
|
|
3419
|
-
n.c = [n.e = 0];
|
|
3420
|
-
} else {
|
|
3421
|
-
n.e = e;
|
|
3422
|
-
n.c = c;
|
|
3423
|
-
}
|
|
3424
|
-
return n;
|
|
3425
|
-
}
|
|
3426
|
-
parseNumeric = /* @__PURE__ */ function() {
|
|
3427
|
-
var basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i, dotAfter = /^([^.]+)\.$/, dotBefore = /^\.([^.]+)$/, isInfinityOrNaN = /^-?(Infinity|NaN)$/, whitespaceOrPlus = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
3428
|
-
return function(x2, str, isNum, b) {
|
|
3429
|
-
var base2, s = isNum ? str : str.replace(whitespaceOrPlus, "");
|
|
3430
|
-
if (isInfinityOrNaN.test(s)) {
|
|
3431
|
-
x2.s = isNaN(s) ? null : s < 0 ? -1 : 1;
|
|
3432
|
-
} else {
|
|
3433
|
-
if (!isNum) {
|
|
3434
|
-
s = s.replace(basePrefix, function(m2, p1, p2) {
|
|
3435
|
-
base2 = (p2 = p2.toLowerCase()) == "x" ? 16 : p2 == "b" ? 2 : 8;
|
|
3436
|
-
return !b || b == base2 ? p1 : m2;
|
|
3437
|
-
});
|
|
3438
|
-
if (b) {
|
|
3439
|
-
base2 = b;
|
|
3440
|
-
s = s.replace(dotAfter, "$1").replace(dotBefore, "0.$1");
|
|
3441
|
-
}
|
|
3442
|
-
if (str != s) return new BigNumber2(s, base2);
|
|
3443
|
-
}
|
|
3444
|
-
if (BigNumber2.DEBUG) {
|
|
3445
|
-
throw Error(bignumberError + "Not a" + (b ? " base " + b : "") + " number: " + str);
|
|
3446
|
-
}
|
|
3447
|
-
x2.s = null;
|
|
3448
|
-
}
|
|
3449
|
-
x2.c = x2.e = null;
|
|
3450
|
-
};
|
|
3451
|
-
}();
|
|
3452
|
-
function round(x2, sd, rm, r) {
|
|
3453
|
-
var d, i, j2, k2, n, ni, rd, xc = x2.c, pows10 = POWS_TEN;
|
|
3454
|
-
if (xc) {
|
|
3455
|
-
out: {
|
|
3456
|
-
for (d = 1, k2 = xc[0]; k2 >= 10; k2 /= 10, d++) ;
|
|
3457
|
-
i = sd - d;
|
|
3458
|
-
if (i < 0) {
|
|
3459
|
-
i += LOG_BASE;
|
|
3460
|
-
j2 = sd;
|
|
3461
|
-
n = xc[ni = 0];
|
|
3462
|
-
rd = mathfloor(n / pows10[d - j2 - 1] % 10);
|
|
3463
|
-
} else {
|
|
3464
|
-
ni = mathceil((i + 1) / LOG_BASE);
|
|
3465
|
-
if (ni >= xc.length) {
|
|
3466
|
-
if (r) {
|
|
3467
|
-
for (; xc.length <= ni; xc.push(0)) ;
|
|
3468
|
-
n = rd = 0;
|
|
3469
|
-
d = 1;
|
|
3470
|
-
i %= LOG_BASE;
|
|
3471
|
-
j2 = i - LOG_BASE + 1;
|
|
3472
|
-
} else {
|
|
3473
|
-
break out;
|
|
3474
|
-
}
|
|
3475
|
-
} else {
|
|
3476
|
-
n = k2 = xc[ni];
|
|
3477
|
-
for (d = 1; k2 >= 10; k2 /= 10, d++) ;
|
|
3478
|
-
i %= LOG_BASE;
|
|
3479
|
-
j2 = i - LOG_BASE + d;
|
|
3480
|
-
rd = j2 < 0 ? 0 : mathfloor(n / pows10[d - j2 - 1] % 10);
|
|
3481
|
-
}
|
|
3482
|
-
}
|
|
3483
|
-
r = r || sd < 0 || // Are there any non-zero digits after the rounding digit?
|
|
3484
|
-
// The expression n % pows10[d - j - 1] returns all digits of n to the right
|
|
3485
|
-
// of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
|
|
3486
|
-
xc[ni + 1] != null || (j2 < 0 ? n : n % pows10[d - j2 - 1]);
|
|
3487
|
-
r = rm < 4 ? (rd || r) && (rm == 0 || rm == (x2.s < 0 ? 3 : 2)) : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
3488
|
-
(i > 0 ? j2 > 0 ? n / pows10[d - j2] : 0 : xc[ni - 1]) % 10 & 1 || rm == (x2.s < 0 ? 8 : 7));
|
|
3489
|
-
if (sd < 1 || !xc[0]) {
|
|
3490
|
-
xc.length = 0;
|
|
3491
|
-
if (r) {
|
|
3492
|
-
sd -= x2.e + 1;
|
|
3493
|
-
xc[0] = pows10[(LOG_BASE - sd % LOG_BASE) % LOG_BASE];
|
|
3494
|
-
x2.e = -sd || 0;
|
|
3495
|
-
} else {
|
|
3496
|
-
xc[0] = x2.e = 0;
|
|
3497
|
-
}
|
|
3498
|
-
return x2;
|
|
3499
|
-
}
|
|
3500
|
-
if (i == 0) {
|
|
3501
|
-
xc.length = ni;
|
|
3502
|
-
k2 = 1;
|
|
3503
|
-
ni--;
|
|
3504
|
-
} else {
|
|
3505
|
-
xc.length = ni + 1;
|
|
3506
|
-
k2 = pows10[LOG_BASE - i];
|
|
3507
|
-
xc[ni] = j2 > 0 ? mathfloor(n / pows10[d - j2] % pows10[j2]) * k2 : 0;
|
|
3508
|
-
}
|
|
3509
|
-
if (r) {
|
|
3510
|
-
for (; ; ) {
|
|
3511
|
-
if (ni == 0) {
|
|
3512
|
-
for (i = 1, j2 = xc[0]; j2 >= 10; j2 /= 10, i++) ;
|
|
3513
|
-
j2 = xc[0] += k2;
|
|
3514
|
-
for (k2 = 1; j2 >= 10; j2 /= 10, k2++) ;
|
|
3515
|
-
if (i != k2) {
|
|
3516
|
-
x2.e++;
|
|
3517
|
-
if (xc[0] == BASE) xc[0] = 1;
|
|
3518
|
-
}
|
|
3519
|
-
break;
|
|
3520
|
-
} else {
|
|
3521
|
-
xc[ni] += k2;
|
|
3522
|
-
if (xc[ni] != BASE) break;
|
|
3523
|
-
xc[ni--] = 0;
|
|
3524
|
-
k2 = 1;
|
|
3525
|
-
}
|
|
3526
|
-
}
|
|
3527
|
-
}
|
|
3528
|
-
for (i = xc.length; xc[--i] === 0; xc.pop()) ;
|
|
3529
|
-
}
|
|
3530
|
-
if (x2.e > MAX_EXP) {
|
|
3531
|
-
x2.c = x2.e = null;
|
|
3532
|
-
} else if (x2.e < MIN_EXP) {
|
|
3533
|
-
x2.c = [x2.e = 0];
|
|
3534
|
-
}
|
|
3535
|
-
}
|
|
3536
|
-
return x2;
|
|
3537
|
-
}
|
|
3538
|
-
function valueOf(n) {
|
|
3539
|
-
var str, e = n.e;
|
|
3540
|
-
if (e === null) return n.toString();
|
|
3541
|
-
str = coeffToString(n.c);
|
|
3542
|
-
str = e <= TO_EXP_NEG || e >= TO_EXP_POS ? toExponential(str, e) : toFixedPoint(str, e, "0");
|
|
3543
|
-
return n.s < 0 ? "-" + str : str;
|
|
3544
|
-
}
|
|
3545
|
-
P2.absoluteValue = P2.abs = function() {
|
|
3546
|
-
var x2 = new BigNumber2(this);
|
|
3547
|
-
if (x2.s < 0) x2.s = 1;
|
|
3548
|
-
return x2;
|
|
3549
|
-
};
|
|
3550
|
-
P2.comparedTo = function(y2, b) {
|
|
3551
|
-
return compare(this, new BigNumber2(y2, b));
|
|
3552
|
-
};
|
|
3553
|
-
P2.decimalPlaces = P2.dp = function(dp, rm) {
|
|
3554
|
-
var c, n, v2, x2 = this;
|
|
3555
|
-
if (dp != null) {
|
|
3556
|
-
intCheck(dp, 0, MAX);
|
|
3557
|
-
if (rm == null) rm = ROUNDING_MODE;
|
|
3558
|
-
else intCheck(rm, 0, 8);
|
|
3559
|
-
return round(new BigNumber2(x2), dp + x2.e + 1, rm);
|
|
3560
|
-
}
|
|
3561
|
-
if (!(c = x2.c)) return null;
|
|
3562
|
-
n = ((v2 = c.length - 1) - bitFloor(this.e / LOG_BASE)) * LOG_BASE;
|
|
3563
|
-
if (v2 = c[v2]) for (; v2 % 10 == 0; v2 /= 10, n--) ;
|
|
3564
|
-
if (n < 0) n = 0;
|
|
3565
|
-
return n;
|
|
3566
|
-
};
|
|
3567
|
-
P2.dividedBy = P2.div = function(y2, b) {
|
|
3568
|
-
return div(this, new BigNumber2(y2, b), DECIMAL_PLACES, ROUNDING_MODE);
|
|
3569
|
-
};
|
|
3570
|
-
P2.dividedToIntegerBy = P2.idiv = function(y2, b) {
|
|
3571
|
-
return div(this, new BigNumber2(y2, b), 0, 1);
|
|
3572
|
-
};
|
|
3573
|
-
P2.exponentiatedBy = P2.pow = function(n, m2) {
|
|
3574
|
-
var half, isModExp, i, k2, more, nIsBig, nIsNeg, nIsOdd, y2, x2 = this;
|
|
3575
|
-
n = new BigNumber2(n);
|
|
3576
|
-
if (n.c && !n.isInteger()) {
|
|
3577
|
-
throw Error(bignumberError + "Exponent not an integer: " + valueOf(n));
|
|
3578
|
-
}
|
|
3579
|
-
if (m2 != null) m2 = new BigNumber2(m2);
|
|
3580
|
-
nIsBig = n.e > 14;
|
|
3581
|
-
if (!x2.c || !x2.c[0] || x2.c[0] == 1 && !x2.e && x2.c.length == 1 || !n.c || !n.c[0]) {
|
|
3582
|
-
y2 = new BigNumber2(Math.pow(+valueOf(x2), nIsBig ? n.s * (2 - isOdd(n)) : +valueOf(n)));
|
|
3583
|
-
return m2 ? y2.mod(m2) : y2;
|
|
3584
|
-
}
|
|
3585
|
-
nIsNeg = n.s < 0;
|
|
3586
|
-
if (m2) {
|
|
3587
|
-
if (m2.c ? !m2.c[0] : !m2.s) return new BigNumber2(NaN);
|
|
3588
|
-
isModExp = !nIsNeg && x2.isInteger() && m2.isInteger();
|
|
3589
|
-
if (isModExp) x2 = x2.mod(m2);
|
|
3590
|
-
} else if (n.e > 9 && (x2.e > 0 || x2.e < -1 || (x2.e == 0 ? x2.c[0] > 1 || nIsBig && x2.c[1] >= 24e7 : x2.c[0] < 8e13 || nIsBig && x2.c[0] <= 9999975e7))) {
|
|
3591
|
-
k2 = x2.s < 0 && isOdd(n) ? -0 : 0;
|
|
3592
|
-
if (x2.e > -1) k2 = 1 / k2;
|
|
3593
|
-
return new BigNumber2(nIsNeg ? 1 / k2 : k2);
|
|
3594
|
-
} else if (POW_PRECISION) {
|
|
3595
|
-
k2 = mathceil(POW_PRECISION / LOG_BASE + 2);
|
|
3596
|
-
}
|
|
3597
|
-
if (nIsBig) {
|
|
3598
|
-
half = new BigNumber2(0.5);
|
|
3599
|
-
if (nIsNeg) n.s = 1;
|
|
3600
|
-
nIsOdd = isOdd(n);
|
|
3601
|
-
} else {
|
|
3602
|
-
i = Math.abs(+valueOf(n));
|
|
3603
|
-
nIsOdd = i % 2;
|
|
3604
|
-
}
|
|
3605
|
-
y2 = new BigNumber2(ONE);
|
|
3606
|
-
for (; ; ) {
|
|
3607
|
-
if (nIsOdd) {
|
|
3608
|
-
y2 = y2.times(x2);
|
|
3609
|
-
if (!y2.c) break;
|
|
3610
|
-
if (k2) {
|
|
3611
|
-
if (y2.c.length > k2) y2.c.length = k2;
|
|
3612
|
-
} else if (isModExp) {
|
|
3613
|
-
y2 = y2.mod(m2);
|
|
3614
|
-
}
|
|
3615
|
-
}
|
|
3616
|
-
if (i) {
|
|
3617
|
-
i = mathfloor(i / 2);
|
|
3618
|
-
if (i === 0) break;
|
|
3619
|
-
nIsOdd = i % 2;
|
|
3620
|
-
} else {
|
|
3621
|
-
n = n.times(half);
|
|
3622
|
-
round(n, n.e + 1, 1);
|
|
3623
|
-
if (n.e > 14) {
|
|
3624
|
-
nIsOdd = isOdd(n);
|
|
3625
|
-
} else {
|
|
3626
|
-
i = +valueOf(n);
|
|
3627
|
-
if (i === 0) break;
|
|
3628
|
-
nIsOdd = i % 2;
|
|
3629
|
-
}
|
|
3630
|
-
}
|
|
3631
|
-
x2 = x2.times(x2);
|
|
3632
|
-
if (k2) {
|
|
3633
|
-
if (x2.c && x2.c.length > k2) x2.c.length = k2;
|
|
3634
|
-
} else if (isModExp) {
|
|
3635
|
-
x2 = x2.mod(m2);
|
|
3636
|
-
}
|
|
3637
|
-
}
|
|
3638
|
-
if (isModExp) return y2;
|
|
3639
|
-
if (nIsNeg) y2 = ONE.div(y2);
|
|
3640
|
-
return m2 ? y2.mod(m2) : k2 ? round(y2, POW_PRECISION, ROUNDING_MODE, more) : y2;
|
|
3641
|
-
};
|
|
3642
|
-
P2.integerValue = function(rm) {
|
|
3643
|
-
var n = new BigNumber2(this);
|
|
3644
|
-
if (rm == null) rm = ROUNDING_MODE;
|
|
3645
|
-
else intCheck(rm, 0, 8);
|
|
3646
|
-
return round(n, n.e + 1, rm);
|
|
3647
|
-
};
|
|
3648
|
-
P2.isEqualTo = P2.eq = function(y2, b) {
|
|
3649
|
-
return compare(this, new BigNumber2(y2, b)) === 0;
|
|
3650
|
-
};
|
|
3651
|
-
P2.isFinite = function() {
|
|
3652
|
-
return !!this.c;
|
|
3653
|
-
};
|
|
3654
|
-
P2.isGreaterThan = P2.gt = function(y2, b) {
|
|
3655
|
-
return compare(this, new BigNumber2(y2, b)) > 0;
|
|
3656
|
-
};
|
|
3657
|
-
P2.isGreaterThanOrEqualTo = P2.gte = function(y2, b) {
|
|
3658
|
-
return (b = compare(this, new BigNumber2(y2, b))) === 1 || b === 0;
|
|
3659
|
-
};
|
|
3660
|
-
P2.isInteger = function() {
|
|
3661
|
-
return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2;
|
|
3662
|
-
};
|
|
3663
|
-
P2.isLessThan = P2.lt = function(y2, b) {
|
|
3664
|
-
return compare(this, new BigNumber2(y2, b)) < 0;
|
|
3665
|
-
};
|
|
3666
|
-
P2.isLessThanOrEqualTo = P2.lte = function(y2, b) {
|
|
3667
|
-
return (b = compare(this, new BigNumber2(y2, b))) === -1 || b === 0;
|
|
3668
|
-
};
|
|
3669
|
-
P2.isNaN = function() {
|
|
3670
|
-
return !this.s;
|
|
3671
|
-
};
|
|
3672
|
-
P2.isNegative = function() {
|
|
3673
|
-
return this.s < 0;
|
|
3674
|
-
};
|
|
3675
|
-
P2.isPositive = function() {
|
|
3676
|
-
return this.s > 0;
|
|
3677
|
-
};
|
|
3678
|
-
P2.isZero = function() {
|
|
3679
|
-
return !!this.c && this.c[0] == 0;
|
|
3680
|
-
};
|
|
3681
|
-
P2.minus = function(y2, b) {
|
|
3682
|
-
var i, j2, t, xLTy, x2 = this, a = x2.s;
|
|
3683
|
-
y2 = new BigNumber2(y2, b);
|
|
3684
|
-
b = y2.s;
|
|
3685
|
-
if (!a || !b) return new BigNumber2(NaN);
|
|
3686
|
-
if (a != b) {
|
|
3687
|
-
y2.s = -b;
|
|
3688
|
-
return x2.plus(y2);
|
|
3689
|
-
}
|
|
3690
|
-
var xe2 = x2.e / LOG_BASE, ye2 = y2.e / LOG_BASE, xc = x2.c, yc = y2.c;
|
|
3691
|
-
if (!xe2 || !ye2) {
|
|
3692
|
-
if (!xc || !yc) return xc ? (y2.s = -b, y2) : new BigNumber2(yc ? x2 : NaN);
|
|
3693
|
-
if (!xc[0] || !yc[0]) {
|
|
3694
|
-
return yc[0] ? (y2.s = -b, y2) : new BigNumber2(xc[0] ? x2 : (
|
|
3695
|
-
// IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
|
|
3696
|
-
ROUNDING_MODE == 3 ? -0 : 0
|
|
3697
|
-
));
|
|
3698
|
-
}
|
|
3699
|
-
}
|
|
3700
|
-
xe2 = bitFloor(xe2);
|
|
3701
|
-
ye2 = bitFloor(ye2);
|
|
3702
|
-
xc = xc.slice();
|
|
3703
|
-
if (a = xe2 - ye2) {
|
|
3704
|
-
if (xLTy = a < 0) {
|
|
3705
|
-
a = -a;
|
|
3706
|
-
t = xc;
|
|
3707
|
-
} else {
|
|
3708
|
-
ye2 = xe2;
|
|
3709
|
-
t = yc;
|
|
3710
|
-
}
|
|
3711
|
-
t.reverse();
|
|
3712
|
-
for (b = a; b--; t.push(0)) ;
|
|
3713
|
-
t.reverse();
|
|
3714
|
-
} else {
|
|
3715
|
-
j2 = (xLTy = (a = xc.length) < (b = yc.length)) ? a : b;
|
|
3716
|
-
for (a = b = 0; b < j2; b++) {
|
|
3717
|
-
if (xc[b] != yc[b]) {
|
|
3718
|
-
xLTy = xc[b] < yc[b];
|
|
3719
|
-
break;
|
|
3720
|
-
}
|
|
3721
|
-
}
|
|
3722
|
-
}
|
|
3723
|
-
if (xLTy) {
|
|
3724
|
-
t = xc;
|
|
3725
|
-
xc = yc;
|
|
3726
|
-
yc = t;
|
|
3727
|
-
y2.s = -y2.s;
|
|
3728
|
-
}
|
|
3729
|
-
b = (j2 = yc.length) - (i = xc.length);
|
|
3730
|
-
if (b > 0) for (; b--; xc[i++] = 0) ;
|
|
3731
|
-
b = BASE - 1;
|
|
3732
|
-
for (; j2 > a; ) {
|
|
3733
|
-
if (xc[--j2] < yc[j2]) {
|
|
3734
|
-
for (i = j2; i && !xc[--i]; xc[i] = b) ;
|
|
3735
|
-
--xc[i];
|
|
3736
|
-
xc[j2] += BASE;
|
|
3737
|
-
}
|
|
3738
|
-
xc[j2] -= yc[j2];
|
|
3739
|
-
}
|
|
3740
|
-
for (; xc[0] == 0; xc.splice(0, 1), --ye2) ;
|
|
3741
|
-
if (!xc[0]) {
|
|
3742
|
-
y2.s = ROUNDING_MODE == 3 ? -1 : 1;
|
|
3743
|
-
y2.c = [y2.e = 0];
|
|
3744
|
-
return y2;
|
|
3745
|
-
}
|
|
3746
|
-
return normalise(y2, xc, ye2);
|
|
3747
|
-
};
|
|
3748
|
-
P2.modulo = P2.mod = function(y2, b) {
|
|
3749
|
-
var q2, s, x2 = this;
|
|
3750
|
-
y2 = new BigNumber2(y2, b);
|
|
3751
|
-
if (!x2.c || !y2.s || y2.c && !y2.c[0]) {
|
|
3752
|
-
return new BigNumber2(NaN);
|
|
3753
|
-
} else if (!y2.c || x2.c && !x2.c[0]) {
|
|
3754
|
-
return new BigNumber2(x2);
|
|
3755
|
-
}
|
|
3756
|
-
if (MODULO_MODE == 9) {
|
|
3757
|
-
s = y2.s;
|
|
3758
|
-
y2.s = 1;
|
|
3759
|
-
q2 = div(x2, y2, 0, 3);
|
|
3760
|
-
y2.s = s;
|
|
3761
|
-
q2.s *= s;
|
|
3762
|
-
} else {
|
|
3763
|
-
q2 = div(x2, y2, 0, MODULO_MODE);
|
|
3764
|
-
}
|
|
3765
|
-
y2 = x2.minus(q2.times(y2));
|
|
3766
|
-
if (!y2.c[0] && MODULO_MODE == 1) y2.s = x2.s;
|
|
3767
|
-
return y2;
|
|
3768
|
-
};
|
|
3769
|
-
P2.multipliedBy = P2.times = function(y2, b) {
|
|
3770
|
-
var c, e, i, j2, k2, m2, xcL, xlo, xhi, ycL, ylo, yhi, zc, base2, sqrtBase, x2 = this, xc = x2.c, yc = (y2 = new BigNumber2(y2, b)).c;
|
|
3771
|
-
if (!xc || !yc || !xc[0] || !yc[0]) {
|
|
3772
|
-
if (!x2.s || !y2.s || xc && !xc[0] && !yc || yc && !yc[0] && !xc) {
|
|
3773
|
-
y2.c = y2.e = y2.s = null;
|
|
3774
|
-
} else {
|
|
3775
|
-
y2.s *= x2.s;
|
|
3776
|
-
if (!xc || !yc) {
|
|
3777
|
-
y2.c = y2.e = null;
|
|
3778
|
-
} else {
|
|
3779
|
-
y2.c = [0];
|
|
3780
|
-
y2.e = 0;
|
|
3781
|
-
}
|
|
3782
|
-
}
|
|
3783
|
-
return y2;
|
|
3784
|
-
}
|
|
3785
|
-
e = bitFloor(x2.e / LOG_BASE) + bitFloor(y2.e / LOG_BASE);
|
|
3786
|
-
y2.s *= x2.s;
|
|
3787
|
-
xcL = xc.length;
|
|
3788
|
-
ycL = yc.length;
|
|
3789
|
-
if (xcL < ycL) {
|
|
3790
|
-
zc = xc;
|
|
3791
|
-
xc = yc;
|
|
3792
|
-
yc = zc;
|
|
3793
|
-
i = xcL;
|
|
3794
|
-
xcL = ycL;
|
|
3795
|
-
ycL = i;
|
|
3796
|
-
}
|
|
3797
|
-
for (i = xcL + ycL, zc = []; i--; zc.push(0)) ;
|
|
3798
|
-
base2 = BASE;
|
|
3799
|
-
sqrtBase = SQRT_BASE;
|
|
3800
|
-
for (i = ycL; --i >= 0; ) {
|
|
3801
|
-
c = 0;
|
|
3802
|
-
ylo = yc[i] % sqrtBase;
|
|
3803
|
-
yhi = yc[i] / sqrtBase | 0;
|
|
3804
|
-
for (k2 = xcL, j2 = i + k2; j2 > i; ) {
|
|
3805
|
-
xlo = xc[--k2] % sqrtBase;
|
|
3806
|
-
xhi = xc[k2] / sqrtBase | 0;
|
|
3807
|
-
m2 = yhi * xlo + xhi * ylo;
|
|
3808
|
-
xlo = ylo * xlo + m2 % sqrtBase * sqrtBase + zc[j2] + c;
|
|
3809
|
-
c = (xlo / base2 | 0) + (m2 / sqrtBase | 0) + yhi * xhi;
|
|
3810
|
-
zc[j2--] = xlo % base2;
|
|
3811
|
-
}
|
|
3812
|
-
zc[j2] = c;
|
|
3813
|
-
}
|
|
3814
|
-
if (c) {
|
|
3815
|
-
++e;
|
|
3816
|
-
} else {
|
|
3817
|
-
zc.splice(0, 1);
|
|
3818
|
-
}
|
|
3819
|
-
return normalise(y2, zc, e);
|
|
3820
|
-
};
|
|
3821
|
-
P2.negated = function() {
|
|
3822
|
-
var x2 = new BigNumber2(this);
|
|
3823
|
-
x2.s = -x2.s || null;
|
|
3824
|
-
return x2;
|
|
3825
|
-
};
|
|
3826
|
-
P2.plus = function(y2, b) {
|
|
3827
|
-
var t, x2 = this, a = x2.s;
|
|
3828
|
-
y2 = new BigNumber2(y2, b);
|
|
3829
|
-
b = y2.s;
|
|
3830
|
-
if (!a || !b) return new BigNumber2(NaN);
|
|
3831
|
-
if (a != b) {
|
|
3832
|
-
y2.s = -b;
|
|
3833
|
-
return x2.minus(y2);
|
|
3834
|
-
}
|
|
3835
|
-
var xe2 = x2.e / LOG_BASE, ye2 = y2.e / LOG_BASE, xc = x2.c, yc = y2.c;
|
|
3836
|
-
if (!xe2 || !ye2) {
|
|
3837
|
-
if (!xc || !yc) return new BigNumber2(a / 0);
|
|
3838
|
-
if (!xc[0] || !yc[0]) return yc[0] ? y2 : new BigNumber2(xc[0] ? x2 : a * 0);
|
|
3839
|
-
}
|
|
3840
|
-
xe2 = bitFloor(xe2);
|
|
3841
|
-
ye2 = bitFloor(ye2);
|
|
3842
|
-
xc = xc.slice();
|
|
3843
|
-
if (a = xe2 - ye2) {
|
|
3844
|
-
if (a > 0) {
|
|
3845
|
-
ye2 = xe2;
|
|
3846
|
-
t = yc;
|
|
3847
|
-
} else {
|
|
3848
|
-
a = -a;
|
|
3849
|
-
t = xc;
|
|
3850
|
-
}
|
|
3851
|
-
t.reverse();
|
|
3852
|
-
for (; a--; t.push(0)) ;
|
|
3853
|
-
t.reverse();
|
|
3854
|
-
}
|
|
3855
|
-
a = xc.length;
|
|
3856
|
-
b = yc.length;
|
|
3857
|
-
if (a - b < 0) {
|
|
3858
|
-
t = yc;
|
|
3859
|
-
yc = xc;
|
|
3860
|
-
xc = t;
|
|
3861
|
-
b = a;
|
|
3862
|
-
}
|
|
3863
|
-
for (a = 0; b; ) {
|
|
3864
|
-
a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0;
|
|
3865
|
-
xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE;
|
|
3866
|
-
}
|
|
3867
|
-
if (a) {
|
|
3868
|
-
xc = [a].concat(xc);
|
|
3869
|
-
++ye2;
|
|
3870
|
-
}
|
|
3871
|
-
return normalise(y2, xc, ye2);
|
|
3872
|
-
};
|
|
3873
|
-
P2.precision = P2.sd = function(sd, rm) {
|
|
3874
|
-
var c, n, v2, x2 = this;
|
|
3875
|
-
if (sd != null && sd !== !!sd) {
|
|
3876
|
-
intCheck(sd, 1, MAX);
|
|
3877
|
-
if (rm == null) rm = ROUNDING_MODE;
|
|
3878
|
-
else intCheck(rm, 0, 8);
|
|
3879
|
-
return round(new BigNumber2(x2), sd, rm);
|
|
3880
|
-
}
|
|
3881
|
-
if (!(c = x2.c)) return null;
|
|
3882
|
-
v2 = c.length - 1;
|
|
3883
|
-
n = v2 * LOG_BASE + 1;
|
|
3884
|
-
if (v2 = c[v2]) {
|
|
3885
|
-
for (; v2 % 10 == 0; v2 /= 10, n--) ;
|
|
3886
|
-
for (v2 = c[0]; v2 >= 10; v2 /= 10, n++) ;
|
|
3887
|
-
}
|
|
3888
|
-
if (sd && x2.e + 1 > n) n = x2.e + 1;
|
|
3889
|
-
return n;
|
|
3890
|
-
};
|
|
3891
|
-
P2.shiftedBy = function(k2) {
|
|
3892
|
-
intCheck(k2, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER);
|
|
3893
|
-
return this.times("1e" + k2);
|
|
3894
|
-
};
|
|
3895
|
-
P2.squareRoot = P2.sqrt = function() {
|
|
3896
|
-
var m2, n, r, rep, t, x2 = this, c = x2.c, s = x2.s, e = x2.e, dp = DECIMAL_PLACES + 4, half = new BigNumber2("0.5");
|
|
3897
|
-
if (s !== 1 || !c || !c[0]) {
|
|
3898
|
-
return new BigNumber2(!s || s < 0 && (!c || c[0]) ? NaN : c ? x2 : 1 / 0);
|
|
3899
|
-
}
|
|
3900
|
-
s = Math.sqrt(+valueOf(x2));
|
|
3901
|
-
if (s == 0 || s == 1 / 0) {
|
|
3902
|
-
n = coeffToString(c);
|
|
3903
|
-
if ((n.length + e) % 2 == 0) n += "0";
|
|
3904
|
-
s = Math.sqrt(+n);
|
|
3905
|
-
e = bitFloor((e + 1) / 2) - (e < 0 || e % 2);
|
|
3906
|
-
if (s == 1 / 0) {
|
|
3907
|
-
n = "5e" + e;
|
|
3908
|
-
} else {
|
|
3909
|
-
n = s.toExponential();
|
|
3910
|
-
n = n.slice(0, n.indexOf("e") + 1) + e;
|
|
3911
|
-
}
|
|
3912
|
-
r = new BigNumber2(n);
|
|
3913
|
-
} else {
|
|
3914
|
-
r = new BigNumber2(s + "");
|
|
3915
|
-
}
|
|
3916
|
-
if (r.c[0]) {
|
|
3917
|
-
e = r.e;
|
|
3918
|
-
s = e + dp;
|
|
3919
|
-
if (s < 3) s = 0;
|
|
3920
|
-
for (; ; ) {
|
|
3921
|
-
t = r;
|
|
3922
|
-
r = half.times(t.plus(div(x2, t, dp, 1)));
|
|
3923
|
-
if (coeffToString(t.c).slice(0, s) === (n = coeffToString(r.c)).slice(0, s)) {
|
|
3924
|
-
if (r.e < e) --s;
|
|
3925
|
-
n = n.slice(s - 3, s + 1);
|
|
3926
|
-
if (n == "9999" || !rep && n == "4999") {
|
|
3927
|
-
if (!rep) {
|
|
3928
|
-
round(t, t.e + DECIMAL_PLACES + 2, 0);
|
|
3929
|
-
if (t.times(t).eq(x2)) {
|
|
3930
|
-
r = t;
|
|
3931
|
-
break;
|
|
3932
|
-
}
|
|
3933
|
-
}
|
|
3934
|
-
dp += 4;
|
|
3935
|
-
s += 4;
|
|
3936
|
-
rep = 1;
|
|
3937
|
-
} else {
|
|
3938
|
-
if (!+n || !+n.slice(1) && n.charAt(0) == "5") {
|
|
3939
|
-
round(r, r.e + DECIMAL_PLACES + 2, 1);
|
|
3940
|
-
m2 = !r.times(r).eq(x2);
|
|
3941
|
-
}
|
|
3942
|
-
break;
|
|
3943
|
-
}
|
|
3944
|
-
}
|
|
3945
|
-
}
|
|
3946
|
-
}
|
|
3947
|
-
return round(r, r.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m2);
|
|
3948
|
-
};
|
|
3949
|
-
P2.toExponential = function(dp, rm) {
|
|
3950
|
-
if (dp != null) {
|
|
3951
|
-
intCheck(dp, 0, MAX);
|
|
3952
|
-
dp++;
|
|
3953
|
-
}
|
|
3954
|
-
return format(this, dp, rm, 1);
|
|
3955
|
-
};
|
|
3956
|
-
P2.toFixed = function(dp, rm) {
|
|
3957
|
-
if (dp != null) {
|
|
3958
|
-
intCheck(dp, 0, MAX);
|
|
3959
|
-
dp = dp + this.e + 1;
|
|
3960
|
-
}
|
|
3961
|
-
return format(this, dp, rm);
|
|
3962
|
-
};
|
|
3963
|
-
P2.toFormat = function(dp, rm, format2) {
|
|
3964
|
-
var str, x2 = this;
|
|
3965
|
-
if (format2 == null) {
|
|
3966
|
-
if (dp != null && rm && typeof rm == "object") {
|
|
3967
|
-
format2 = rm;
|
|
3968
|
-
rm = null;
|
|
3969
|
-
} else if (dp && typeof dp == "object") {
|
|
3970
|
-
format2 = dp;
|
|
3971
|
-
dp = rm = null;
|
|
3972
|
-
} else {
|
|
3973
|
-
format2 = FORMAT;
|
|
3974
|
-
}
|
|
3975
|
-
} else if (typeof format2 != "object") {
|
|
3976
|
-
throw Error(bignumberError + "Argument not an object: " + format2);
|
|
3977
|
-
}
|
|
3978
|
-
str = x2.toFixed(dp, rm);
|
|
3979
|
-
if (x2.c) {
|
|
3980
|
-
var i, arr = str.split("."), g1 = +format2.groupSize, g2 = +format2.secondaryGroupSize, groupSeparator = format2.groupSeparator || "", intPart = arr[0], fractionPart = arr[1], isNeg = x2.s < 0, intDigits = isNeg ? intPart.slice(1) : intPart, len = intDigits.length;
|
|
3981
|
-
if (g2) {
|
|
3982
|
-
i = g1;
|
|
3983
|
-
g1 = g2;
|
|
3984
|
-
g2 = i;
|
|
3985
|
-
len -= i;
|
|
3986
|
-
}
|
|
3987
|
-
if (g1 > 0 && len > 0) {
|
|
3988
|
-
i = len % g1 || g1;
|
|
3989
|
-
intPart = intDigits.substr(0, i);
|
|
3990
|
-
for (; i < len; i += g1) intPart += groupSeparator + intDigits.substr(i, g1);
|
|
3991
|
-
if (g2 > 0) intPart += groupSeparator + intDigits.slice(i);
|
|
3992
|
-
if (isNeg) intPart = "-" + intPart;
|
|
3993
|
-
}
|
|
3994
|
-
str = fractionPart ? intPart + (format2.decimalSeparator || "") + ((g2 = +format2.fractionGroupSize) ? fractionPart.replace(
|
|
3995
|
-
new RegExp("\\d{" + g2 + "}\\B", "g"),
|
|
3996
|
-
"$&" + (format2.fractionGroupSeparator || "")
|
|
3997
|
-
) : fractionPart) : intPart;
|
|
3998
|
-
}
|
|
3999
|
-
return (format2.prefix || "") + str + (format2.suffix || "");
|
|
4000
|
-
};
|
|
4001
|
-
P2.toFraction = function(md) {
|
|
4002
|
-
var d, d0, d1, d2, e, exp, n, n0, n1, q2, r, s, x2 = this, xc = x2.c;
|
|
4003
|
-
if (md != null) {
|
|
4004
|
-
n = new BigNumber2(md);
|
|
4005
|
-
if (!n.isInteger() && (n.c || n.s !== 1) || n.lt(ONE)) {
|
|
4006
|
-
throw Error(bignumberError + "Argument " + (n.isInteger() ? "out of range: " : "not an integer: ") + valueOf(n));
|
|
4007
|
-
}
|
|
4008
|
-
}
|
|
4009
|
-
if (!xc) return new BigNumber2(x2);
|
|
4010
|
-
d = new BigNumber2(ONE);
|
|
4011
|
-
n1 = d0 = new BigNumber2(ONE);
|
|
4012
|
-
d1 = n0 = new BigNumber2(ONE);
|
|
4013
|
-
s = coeffToString(xc);
|
|
4014
|
-
e = d.e = s.length - x2.e - 1;
|
|
4015
|
-
d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp];
|
|
4016
|
-
md = !md || n.comparedTo(d) > 0 ? e > 0 ? d : n1 : n;
|
|
4017
|
-
exp = MAX_EXP;
|
|
4018
|
-
MAX_EXP = 1 / 0;
|
|
4019
|
-
n = new BigNumber2(s);
|
|
4020
|
-
n0.c[0] = 0;
|
|
4021
|
-
for (; ; ) {
|
|
4022
|
-
q2 = div(n, d, 0, 1);
|
|
4023
|
-
d2 = d0.plus(q2.times(d1));
|
|
4024
|
-
if (d2.comparedTo(md) == 1) break;
|
|
4025
|
-
d0 = d1;
|
|
4026
|
-
d1 = d2;
|
|
4027
|
-
n1 = n0.plus(q2.times(d2 = n1));
|
|
4028
|
-
n0 = d2;
|
|
4029
|
-
d = n.minus(q2.times(d2 = d));
|
|
4030
|
-
n = d2;
|
|
4031
|
-
}
|
|
4032
|
-
d2 = div(md.minus(d0), d1, 0, 1);
|
|
4033
|
-
n0 = n0.plus(d2.times(n1));
|
|
4034
|
-
d0 = d0.plus(d2.times(d1));
|
|
4035
|
-
n0.s = n1.s = x2.s;
|
|
4036
|
-
e = e * 2;
|
|
4037
|
-
r = div(n1, d1, e, ROUNDING_MODE).minus(x2).abs().comparedTo(
|
|
4038
|
-
div(n0, d0, e, ROUNDING_MODE).minus(x2).abs()
|
|
4039
|
-
) < 1 ? [n1, d1] : [n0, d0];
|
|
4040
|
-
MAX_EXP = exp;
|
|
4041
|
-
return r;
|
|
4042
|
-
};
|
|
4043
|
-
P2.toNumber = function() {
|
|
4044
|
-
return +valueOf(this);
|
|
4045
|
-
};
|
|
4046
|
-
P2.toPrecision = function(sd, rm) {
|
|
4047
|
-
if (sd != null) intCheck(sd, 1, MAX);
|
|
4048
|
-
return format(this, sd, rm, 2);
|
|
4049
|
-
};
|
|
4050
|
-
P2.toString = function(b) {
|
|
4051
|
-
var str, n = this, s = n.s, e = n.e;
|
|
4052
|
-
if (e === null) {
|
|
4053
|
-
if (s) {
|
|
4054
|
-
str = "Infinity";
|
|
4055
|
-
if (s < 0) str = "-" + str;
|
|
4056
|
-
} else {
|
|
4057
|
-
str = "NaN";
|
|
4058
|
-
}
|
|
4059
|
-
} else {
|
|
4060
|
-
if (b == null) {
|
|
4061
|
-
str = e <= TO_EXP_NEG || e >= TO_EXP_POS ? toExponential(coeffToString(n.c), e) : toFixedPoint(coeffToString(n.c), e, "0");
|
|
4062
|
-
} else if (b === 10 && alphabetHasNormalDecimalDigits) {
|
|
4063
|
-
n = round(new BigNumber2(n), DECIMAL_PLACES + e + 1, ROUNDING_MODE);
|
|
4064
|
-
str = toFixedPoint(coeffToString(n.c), n.e, "0");
|
|
4065
|
-
} else {
|
|
4066
|
-
intCheck(b, 2, ALPHABET.length, "Base");
|
|
4067
|
-
str = convertBase(toFixedPoint(coeffToString(n.c), e, "0"), 10, b, s, true);
|
|
4068
|
-
}
|
|
4069
|
-
if (s < 0 && n.c[0]) str = "-" + str;
|
|
4070
|
-
}
|
|
4071
|
-
return str;
|
|
4072
|
-
};
|
|
4073
|
-
P2.valueOf = P2.toJSON = function() {
|
|
4074
|
-
return valueOf(this);
|
|
4075
|
-
};
|
|
4076
|
-
P2._isBigNumber = true;
|
|
4077
|
-
P2[Symbol.toStringTag] = "BigNumber";
|
|
4078
|
-
P2[Symbol.for("nodejs.util.inspect.custom")] = P2.valueOf;
|
|
4079
|
-
if (configObject != null) BigNumber2.set(configObject);
|
|
4080
|
-
return BigNumber2;
|
|
4081
|
-
}
|
|
4082
|
-
function bitFloor(n) {
|
|
4083
|
-
var i = n | 0;
|
|
4084
|
-
return n > 0 || n === i ? i : i - 1;
|
|
4085
|
-
}
|
|
4086
|
-
function coeffToString(a) {
|
|
4087
|
-
var s, z2, i = 1, j2 = a.length, r = a[0] + "";
|
|
4088
|
-
for (; i < j2; ) {
|
|
4089
|
-
s = a[i++] + "";
|
|
4090
|
-
z2 = LOG_BASE - s.length;
|
|
4091
|
-
for (; z2--; s = "0" + s) ;
|
|
4092
|
-
r += s;
|
|
4093
|
-
}
|
|
4094
|
-
for (j2 = r.length; r.charCodeAt(--j2) === 48; ) ;
|
|
4095
|
-
return r.slice(0, j2 + 1 || 1);
|
|
4096
|
-
}
|
|
4097
|
-
function compare(x2, y2) {
|
|
4098
|
-
var a, b, xc = x2.c, yc = y2.c, i = x2.s, j2 = y2.s, k2 = x2.e, l = y2.e;
|
|
4099
|
-
if (!i || !j2) return null;
|
|
4100
|
-
a = xc && !xc[0];
|
|
4101
|
-
b = yc && !yc[0];
|
|
4102
|
-
if (a || b) return a ? b ? 0 : -j2 : i;
|
|
4103
|
-
if (i != j2) return i;
|
|
4104
|
-
a = i < 0;
|
|
4105
|
-
b = k2 == l;
|
|
4106
|
-
if (!xc || !yc) return b ? 0 : !xc ^ a ? 1 : -1;
|
|
4107
|
-
if (!b) return k2 > l ^ a ? 1 : -1;
|
|
4108
|
-
j2 = (k2 = xc.length) < (l = yc.length) ? k2 : l;
|
|
4109
|
-
for (i = 0; i < j2; i++) if (xc[i] != yc[i]) return xc[i] > yc[i] ^ a ? 1 : -1;
|
|
4110
|
-
return k2 == l ? 0 : k2 > l ^ a ? 1 : -1;
|
|
4111
|
-
}
|
|
4112
|
-
function intCheck(n, min, max, name) {
|
|
4113
|
-
if (n < min || n > max || n !== mathfloor(n)) {
|
|
4114
|
-
throw Error(bignumberError + (name || "Argument") + (typeof n == "number" ? n < min || n > max ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(n));
|
|
4115
|
-
}
|
|
4116
|
-
}
|
|
4117
|
-
function isOdd(n) {
|
|
4118
|
-
var k2 = n.c.length - 1;
|
|
4119
|
-
return bitFloor(n.e / LOG_BASE) == k2 && n.c[k2] % 2 != 0;
|
|
4120
|
-
}
|
|
4121
|
-
function toExponential(str, e) {
|
|
4122
|
-
return (str.length > 1 ? str.charAt(0) + "." + str.slice(1) : str) + (e < 0 ? "e" : "e+") + e;
|
|
4123
|
-
}
|
|
4124
|
-
function toFixedPoint(str, e, z2) {
|
|
4125
|
-
var len, zs;
|
|
4126
|
-
if (e < 0) {
|
|
4127
|
-
for (zs = z2 + "."; ++e; zs += z2) ;
|
|
4128
|
-
str = zs + str;
|
|
4129
|
-
} else {
|
|
4130
|
-
len = str.length;
|
|
4131
|
-
if (++e > len) {
|
|
4132
|
-
for (zs = z2, e -= len; --e; zs += z2) ;
|
|
4133
|
-
str += zs;
|
|
4134
|
-
} else if (e < len) {
|
|
4135
|
-
str = str.slice(0, e) + "." + str.slice(e);
|
|
4136
|
-
}
|
|
4137
|
-
}
|
|
4138
|
-
return str;
|
|
4139
|
-
}
|
|
4140
|
-
var BigNumber = clone();
|
|
4141
2812
|
const convertHumanReadableAmountToCryptoAmount = (humanReadableAmount, decimals = DEFAULT_DECIMAL_PLACES) => {
|
|
4142
2813
|
const cryptoAmount = new BigNumber(humanReadableAmount).shiftedBy(decimals);
|
|
4143
2814
|
return cryptoAmount.toFixed(0);
|
|
@@ -4384,9 +3055,9 @@ const formatDisplayAmount = (input, options = {}) => {
|
|
|
4384
3055
|
if (formattedNumber >= 1e3) {
|
|
4385
3056
|
const next2 = scales[i - 1];
|
|
4386
3057
|
formattedNumber = Number((num / next2.value).toFixed(2));
|
|
4387
|
-
return `${formattedNumber.toString().replace(
|
|
3058
|
+
return `${formattedNumber.toString().replace(/(\.\d*?[1-9])0+$/, "$1").replace(/\.0+$/, "")}${next2.symbol}`;
|
|
4388
3059
|
}
|
|
4389
|
-
return `${formattedNumber.toString().replace(
|
|
3060
|
+
return `${formattedNumber.toString().replace(/(\.\d*?[1-9])0+$/, "$1").replace(/\.0+$/, "")}${symbol}`;
|
|
4390
3061
|
}
|
|
4391
3062
|
}
|
|
4392
3063
|
}
|
|
@@ -5074,7 +3745,6 @@ const keplrMainnetChainIdsInitialConnect = [
|
|
|
5074
3745
|
"crypto-org-chain-mainnet-1",
|
|
5075
3746
|
"dydx-mainnet-1",
|
|
5076
3747
|
"dymension_1100-1",
|
|
5077
|
-
"evmos_9001-2",
|
|
5078
3748
|
"injective-1",
|
|
5079
3749
|
"juno-1",
|
|
5080
3750
|
"kava_2222-10",
|
|
@@ -5152,58 +3822,58 @@ const walletInfo = {
|
|
|
5152
3822
|
},
|
|
5153
3823
|
[WalletType.LEAP]: {
|
|
5154
3824
|
name: "Leap",
|
|
5155
|
-
imgSrc: "https://raw.githubusercontent.com/
|
|
3825
|
+
imgSrc: "https://raw.githubusercontent.com/skip-mev/skip-go/refs/heads/main/assets/wallet-icon-leap.png"
|
|
5156
3826
|
},
|
|
5157
3827
|
[WalletType.COSMOSTATION]: {
|
|
5158
3828
|
name: "Cosmostation",
|
|
5159
|
-
imgSrc: "https://raw.githubusercontent.com/
|
|
3829
|
+
imgSrc: "https://raw.githubusercontent.com/skip-mev/skip-go/refs/heads/main/assets/wallet-icon-cosmostation.png"
|
|
5160
3830
|
},
|
|
5161
3831
|
[WalletType.VECTIS]: {
|
|
5162
3832
|
name: "Vectis",
|
|
5163
|
-
imgSrc: "https://raw.githubusercontent.com/
|
|
3833
|
+
imgSrc: "https://raw.githubusercontent.com/skip-mev/skip-go/refs/heads/main/assets/wallet-icon-vectis.svg"
|
|
5164
3834
|
},
|
|
5165
3835
|
[WalletType.STATION]: {
|
|
5166
3836
|
name: "Station",
|
|
5167
|
-
imgSrc: "https://raw.githubusercontent.com/
|
|
3837
|
+
imgSrc: "https://raw.githubusercontent.com/skip-mev/skip-go/refs/heads/main/assets/wallet-icon-station.svg"
|
|
5168
3838
|
},
|
|
5169
3839
|
[WalletType.XDEFI]: {
|
|
5170
3840
|
name: "XDefi",
|
|
5171
|
-
imgSrc: "https://raw.githubusercontent.com/
|
|
3841
|
+
imgSrc: "https://raw.githubusercontent.com/skip-mev/skip-go/refs/heads/main/assets/wallet-icon-xdefi.jpeg"
|
|
5172
3842
|
},
|
|
5173
3843
|
[WalletType.METAMASK_SNAP_LEAP]: {
|
|
5174
3844
|
name: "Metamask Snap Leap",
|
|
5175
|
-
imgSrc: "https://raw.githubusercontent.com/
|
|
3845
|
+
imgSrc: "https://raw.githubusercontent.com/skip-mev/skip-go/refs/heads/main/assets/wallet-icon-metamask.png"
|
|
5176
3846
|
},
|
|
5177
3847
|
[WalletType.METAMASK_SNAP_COSMOS]: {
|
|
5178
3848
|
name: "Metamask Snap Cosmos",
|
|
5179
|
-
imgSrc: "https://raw.githubusercontent.com/
|
|
3849
|
+
imgSrc: "https://raw.githubusercontent.com/skip-mev/skip-go/refs/heads/main/assets/wallet-icon-metamask.png"
|
|
5180
3850
|
},
|
|
5181
3851
|
[WalletType.WALLETCONNECT]: {
|
|
5182
3852
|
name: "WalletConnect",
|
|
5183
|
-
imgSrc: "https://raw.githubusercontent.com/
|
|
3853
|
+
imgSrc: "https://raw.githubusercontent.com/skip-mev/skip-go/refs/heads/main/assets/wallet-icon-walletconnect.png"
|
|
5184
3854
|
},
|
|
5185
3855
|
[WalletType.WC_KEPLR_MOBILE]: {
|
|
5186
3856
|
name: "Keplr Mobile",
|
|
5187
|
-
imgSrc: "https://raw.githubusercontent.com/
|
|
3857
|
+
imgSrc: "https://raw.githubusercontent.com/skip-mev/skip-go/refs/heads/main/assets/wallet-icon-keplr.png",
|
|
5188
3858
|
mobile: true
|
|
5189
3859
|
},
|
|
5190
3860
|
[WalletType.WC_LEAP_MOBILE]: {
|
|
5191
3861
|
name: "Leap Mobile",
|
|
5192
|
-
imgSrc: "https://raw.githubusercontent.com/
|
|
3862
|
+
imgSrc: "https://raw.githubusercontent.com/skip-mev/skip-go/refs/heads/main/assets/wallet-icon-leap.png",
|
|
5193
3863
|
mobile: true
|
|
5194
3864
|
},
|
|
5195
3865
|
[WalletType.WC_COSMOSTATION_MOBILE]: {
|
|
5196
3866
|
name: "Cosmostation Mobile",
|
|
5197
|
-
imgSrc: "https://raw.githubusercontent.com/
|
|
3867
|
+
imgSrc: "https://raw.githubusercontent.com/skip-mev/skip-go/refs/heads/main/assets/wallet-icon-cosmostation.png",
|
|
5198
3868
|
mobile: true
|
|
5199
3869
|
},
|
|
5200
3870
|
[WalletType.COSMIFRAME]: {
|
|
5201
3871
|
name: "DAO DAO",
|
|
5202
|
-
imgSrc: "https://raw.githubusercontent.com/
|
|
3872
|
+
imgSrc: "https://raw.githubusercontent.com/skip-mev/skip-go/refs/heads/main/assets/wallet-icon-daodao.png"
|
|
5203
3873
|
},
|
|
5204
3874
|
[WalletType.COMPASS]: {
|
|
5205
3875
|
name: "Compass",
|
|
5206
|
-
imgSrc: "https://raw.githubusercontent.com/
|
|
3876
|
+
imgSrc: "https://raw.githubusercontent.com/skip-mev/skip-go/refs/heads/main/assets/wallet-icon-compass.png"
|
|
5207
3877
|
}
|
|
5208
3878
|
};
|
|
5209
3879
|
const getCosmosWalletInfo = (walletType) => {
|
|
@@ -6096,6 +4766,11 @@ const _mainnetChains = [
|
|
|
6096
4766
|
coinDenom: "move",
|
|
6097
4767
|
coinMinimalDenom: "unit-move",
|
|
6098
4768
|
coinDecimals: 8
|
|
4769
|
+
},
|
|
4770
|
+
{
|
|
4771
|
+
coinDenom: "zig",
|
|
4772
|
+
coinMinimalDenom: "unit-zig",
|
|
4773
|
+
coinDecimals: 18
|
|
6099
4774
|
}
|
|
6100
4775
|
],
|
|
6101
4776
|
rest: "https://lcd-axelar.imperator.co:443",
|
|
@@ -6329,6 +5004,11 @@ const _mainnetChains = [
|
|
|
6329
5004
|
coinMinimalDenom: "cw20:bbn17awjw4g3a7wn5eruejf6hmshc8y06wpz6qu7ue32xygcueu55zqs33aq93",
|
|
6330
5005
|
coinDecimals: 18
|
|
6331
5006
|
},
|
|
5007
|
+
{
|
|
5008
|
+
coinDenom: "CoBTC",
|
|
5009
|
+
coinMinimalDenom: "cw20:bbn1p56nwhnh0klnjf9k5ug6nyu84hkee0l2lq8f9kml7zwq9xsrkfcs7ej73n",
|
|
5010
|
+
coinDecimals: 8
|
|
5011
|
+
},
|
|
6332
5012
|
{
|
|
6333
5013
|
coinDenom: "milkBABY",
|
|
6334
5014
|
coinMinimalDenom: "ibc/CD7ECDBBA538632B45915ED67C4932DDB318818C00C21489D3774E560E87E420",
|
|
@@ -6712,6 +5392,67 @@ const _mainnetChains = [
|
|
|
6712
5392
|
coinType: 639
|
|
6713
5393
|
}
|
|
6714
5394
|
},
|
|
5395
|
+
{
|
|
5396
|
+
chainId: "bitway-1",
|
|
5397
|
+
currencies: [
|
|
5398
|
+
{
|
|
5399
|
+
coinDenom: "btw",
|
|
5400
|
+
coinMinimalDenom: "ubtw",
|
|
5401
|
+
coinDecimals: 6
|
|
5402
|
+
},
|
|
5403
|
+
{
|
|
5404
|
+
coinDenom: "BTCT",
|
|
5405
|
+
coinMinimalDenom: "sat",
|
|
5406
|
+
coinDecimals: 8
|
|
5407
|
+
},
|
|
5408
|
+
{
|
|
5409
|
+
coinDenom: "usdc",
|
|
5410
|
+
coinMinimalDenom: "ibc/B9E4FD154C92D3A23BEA029906C4C5FF2FE74CB7E3A058290B77197A263CF88B",
|
|
5411
|
+
coinDecimals: 6
|
|
5412
|
+
}
|
|
5413
|
+
],
|
|
5414
|
+
rest: "https://rest.bitway.com",
|
|
5415
|
+
rpc: "https://rpc.bitway.com",
|
|
5416
|
+
bech32Config: {
|
|
5417
|
+
bech32PrefixAccAddr: "bc",
|
|
5418
|
+
bech32PrefixAccPub: "bcpub",
|
|
5419
|
+
bech32PrefixValAddr: "bcvaloper",
|
|
5420
|
+
bech32PrefixValPub: "bcvaloperpub",
|
|
5421
|
+
bech32PrefixConsAddr: "bcvalcons",
|
|
5422
|
+
bech32PrefixConsPub: "bcvalconspub"
|
|
5423
|
+
},
|
|
5424
|
+
chainName: "bitway",
|
|
5425
|
+
feeCurrencies: [
|
|
5426
|
+
{
|
|
5427
|
+
coinDenom: "btw",
|
|
5428
|
+
coinMinimalDenom: "ubtw",
|
|
5429
|
+
coinDecimals: 6,
|
|
5430
|
+
gasPriceStep: {
|
|
5431
|
+
low: 6e-4,
|
|
5432
|
+
average: 8e-4,
|
|
5433
|
+
high: 1e-3
|
|
5434
|
+
}
|
|
5435
|
+
},
|
|
5436
|
+
{
|
|
5437
|
+
coinDenom: "BTCT",
|
|
5438
|
+
coinMinimalDenom: "sat",
|
|
5439
|
+
coinDecimals: 8,
|
|
5440
|
+
gasPriceStep: {
|
|
5441
|
+
low: 1e-6,
|
|
5442
|
+
average: 15e-7,
|
|
5443
|
+
high: 2e-6
|
|
5444
|
+
}
|
|
5445
|
+
}
|
|
5446
|
+
],
|
|
5447
|
+
stakeCurrency: {
|
|
5448
|
+
coinDenom: "btw",
|
|
5449
|
+
coinMinimalDenom: "ubtw",
|
|
5450
|
+
coinDecimals: 6
|
|
5451
|
+
},
|
|
5452
|
+
bip44: {
|
|
5453
|
+
coinType: 118
|
|
5454
|
+
}
|
|
5455
|
+
},
|
|
6715
5456
|
{
|
|
6716
5457
|
chainId: "bluzelle-9",
|
|
6717
5458
|
currencies: [
|
|
@@ -8181,6 +6922,16 @@ const _mainnetChains = [
|
|
|
8181
6922
|
coinDenom: "paxg",
|
|
8182
6923
|
coinMinimalDenom: "ibc/09E95F57939E344EE36109AC41780B8A51F1FE0548A5203C5957674FF64C0F26",
|
|
8183
6924
|
coinDecimals: 18
|
|
6925
|
+
},
|
|
6926
|
+
{
|
|
6927
|
+
coinDenom: "quark",
|
|
6928
|
+
coinMinimalDenom: "ibc/7B6EBFC446E50DFF981C994E207BFB398889706C2B0DF8A14D8B87F6C0E33A1A",
|
|
6929
|
+
coinDecimals: 6
|
|
6930
|
+
},
|
|
6931
|
+
{
|
|
6932
|
+
coinDenom: "into",
|
|
6933
|
+
coinMinimalDenom: "ibc/DC1EF3EA03CD7F2226981D610335C3E62E3DD868A1B83EB017CE294E29C8D473",
|
|
6934
|
+
coinDecimals: 6
|
|
8184
6935
|
}
|
|
8185
6936
|
],
|
|
8186
6937
|
rest: "https://cosmoshub.lava.build:443",
|
|
@@ -9115,8 +7866,8 @@ const _mainnetChains = [
|
|
|
9115
7866
|
coinDecimals: 18
|
|
9116
7867
|
}
|
|
9117
7868
|
],
|
|
9118
|
-
rest: "https://
|
|
9119
|
-
rpc: "https://
|
|
7869
|
+
rest: "https://api.epix.zone",
|
|
7870
|
+
rpc: "https://rpc.epix.zone",
|
|
9120
7871
|
bech32Config: {
|
|
9121
7872
|
bech32PrefixAccAddr: "epix",
|
|
9122
7873
|
bech32PrefixAccPub: "epixpub",
|
|
@@ -9728,6 +8479,42 @@ const _mainnetChains = [
|
|
|
9728
8479
|
coinType: 118
|
|
9729
8480
|
}
|
|
9730
8481
|
},
|
|
8482
|
+
{
|
|
8483
|
+
chainId: "gonka-mainnet",
|
|
8484
|
+
currencies: [
|
|
8485
|
+
{
|
|
8486
|
+
coinDenom: "gonka",
|
|
8487
|
+
coinMinimalDenom: "ngonka",
|
|
8488
|
+
coinDecimals: 9
|
|
8489
|
+
}
|
|
8490
|
+
],
|
|
8491
|
+
rest: "http://47.236.19.22:18000/chain-api/",
|
|
8492
|
+
rpc: "http://47.236.19.22:18000/chain-rpc/",
|
|
8493
|
+
bech32Config: {
|
|
8494
|
+
bech32PrefixAccAddr: "gonka",
|
|
8495
|
+
bech32PrefixAccPub: "gonkapub",
|
|
8496
|
+
bech32PrefixValAddr: "gonkavaloper",
|
|
8497
|
+
bech32PrefixValPub: "gonkavaloperpub",
|
|
8498
|
+
bech32PrefixConsAddr: "gonkavalcons",
|
|
8499
|
+
bech32PrefixConsPub: "gonkavalconspub"
|
|
8500
|
+
},
|
|
8501
|
+
chainName: "gonka",
|
|
8502
|
+
feeCurrencies: [
|
|
8503
|
+
{
|
|
8504
|
+
coinDenom: "gonka",
|
|
8505
|
+
coinMinimalDenom: "ngonka",
|
|
8506
|
+
coinDecimals: 9
|
|
8507
|
+
}
|
|
8508
|
+
],
|
|
8509
|
+
stakeCurrency: {
|
|
8510
|
+
coinDenom: "gonka",
|
|
8511
|
+
coinMinimalDenom: "ngonka",
|
|
8512
|
+
coinDecimals: 9
|
|
8513
|
+
},
|
|
8514
|
+
bip44: {
|
|
8515
|
+
coinType: 1200
|
|
8516
|
+
}
|
|
8517
|
+
},
|
|
9731
8518
|
{
|
|
9732
8519
|
chainId: "govgen-1",
|
|
9733
8520
|
currencies: [
|
|
@@ -10290,6 +9077,11 @@ const _mainnetChains = [
|
|
|
10290
9077
|
coinMinimalDenom: "factory/inj1xtel2knkt8hmc9dnzpjz6kdmacgcfmlv5f308w/ninja",
|
|
10291
9078
|
coinDecimals: 6
|
|
10292
9079
|
},
|
|
9080
|
+
{
|
|
9081
|
+
coinDenom: "OYCI",
|
|
9082
|
+
coinMinimalDenom: "factory/inj1jdt04erw6jdmh6c939u87kldf3mvvmkedsjp3w/OYCI",
|
|
9083
|
+
coinDecimals: 6
|
|
9084
|
+
},
|
|
10293
9085
|
{
|
|
10294
9086
|
coinDenom: "WGMI",
|
|
10295
9087
|
coinMinimalDenom: "factory/inj1rmjzj9fn47kdmfk4f3z39qr6czexxe0yjyc546/WGMI",
|
|
@@ -10644,6 +9436,77 @@ const _mainnetChains = [
|
|
|
10644
9436
|
coinType: 118
|
|
10645
9437
|
}
|
|
10646
9438
|
},
|
|
9439
|
+
{
|
|
9440
|
+
chainId: "intento-1",
|
|
9441
|
+
currencies: [
|
|
9442
|
+
{
|
|
9443
|
+
coinDenom: "into",
|
|
9444
|
+
coinMinimalDenom: "uinto",
|
|
9445
|
+
coinDecimals: 6
|
|
9446
|
+
},
|
|
9447
|
+
{
|
|
9448
|
+
coinDenom: "ATOM",
|
|
9449
|
+
coinMinimalDenom: "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9",
|
|
9450
|
+
coinDecimals: 6
|
|
9451
|
+
},
|
|
9452
|
+
{
|
|
9453
|
+
coinDenom: "OSMO",
|
|
9454
|
+
coinMinimalDenom: "ibc/47BD209179859CDE4A2806763D7189B6E6FE13A17880FE2B42DE1E6C1E329E23",
|
|
9455
|
+
coinDecimals: 6
|
|
9456
|
+
}
|
|
9457
|
+
],
|
|
9458
|
+
rest: "https://lcd-mainnet.intento.zone",
|
|
9459
|
+
rpc: "https://rpc-mainnet.intento.zone",
|
|
9460
|
+
bech32Config: {
|
|
9461
|
+
bech32PrefixAccAddr: "into",
|
|
9462
|
+
bech32PrefixAccPub: "intopub",
|
|
9463
|
+
bech32PrefixValAddr: "intovaloper",
|
|
9464
|
+
bech32PrefixValPub: "intovaloperpub",
|
|
9465
|
+
bech32PrefixConsAddr: "intovalcons",
|
|
9466
|
+
bech32PrefixConsPub: "intovalconspub"
|
|
9467
|
+
},
|
|
9468
|
+
chainName: "intento",
|
|
9469
|
+
feeCurrencies: [
|
|
9470
|
+
{
|
|
9471
|
+
coinDenom: "into",
|
|
9472
|
+
coinMinimalDenom: "uinto",
|
|
9473
|
+
coinDecimals: 6,
|
|
9474
|
+
gasPriceStep: {
|
|
9475
|
+
low: 0.01,
|
|
9476
|
+
average: 0.02,
|
|
9477
|
+
high: 0.03
|
|
9478
|
+
}
|
|
9479
|
+
},
|
|
9480
|
+
{
|
|
9481
|
+
coinDenom: "ATOM",
|
|
9482
|
+
coinMinimalDenom: "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9",
|
|
9483
|
+
coinDecimals: 6,
|
|
9484
|
+
gasPriceStep: {
|
|
9485
|
+
low: 3e-3,
|
|
9486
|
+
average: 7e-3,
|
|
9487
|
+
high: 0.015
|
|
9488
|
+
}
|
|
9489
|
+
},
|
|
9490
|
+
{
|
|
9491
|
+
coinDenom: "OSMO",
|
|
9492
|
+
coinMinimalDenom: "ibc/47BD209179859CDE4A2806763D7189B6E6FE13A17880FE2B42DE1E6C1E329E23",
|
|
9493
|
+
coinDecimals: 6,
|
|
9494
|
+
gasPriceStep: {
|
|
9495
|
+
low: 5e-3,
|
|
9496
|
+
average: 0.01,
|
|
9497
|
+
high: 0.02
|
|
9498
|
+
}
|
|
9499
|
+
}
|
|
9500
|
+
],
|
|
9501
|
+
stakeCurrency: {
|
|
9502
|
+
coinDenom: "into",
|
|
9503
|
+
coinMinimalDenom: "uinto",
|
|
9504
|
+
coinDecimals: 6
|
|
9505
|
+
},
|
|
9506
|
+
bip44: {
|
|
9507
|
+
coinType: 118
|
|
9508
|
+
}
|
|
9509
|
+
},
|
|
10647
9510
|
{
|
|
10648
9511
|
chainId: "irishub-1",
|
|
10649
9512
|
currencies: [
|
|
@@ -11538,6 +10401,42 @@ const _mainnetChains = [
|
|
|
11538
10401
|
coinType: 118
|
|
11539
10402
|
}
|
|
11540
10403
|
},
|
|
10404
|
+
{
|
|
10405
|
+
chainId: "kudora_12000-1",
|
|
10406
|
+
currencies: [
|
|
10407
|
+
{
|
|
10408
|
+
coinDenom: "Kudo",
|
|
10409
|
+
coinMinimalDenom: "kud",
|
|
10410
|
+
coinDecimals: 18
|
|
10411
|
+
}
|
|
10412
|
+
],
|
|
10413
|
+
rest: "https://api.kudora.org/",
|
|
10414
|
+
rpc: "https://rpc.kudora.org/",
|
|
10415
|
+
bech32Config: {
|
|
10416
|
+
bech32PrefixAccAddr: "kudo",
|
|
10417
|
+
bech32PrefixAccPub: "kudopub",
|
|
10418
|
+
bech32PrefixValAddr: "kudovaloper",
|
|
10419
|
+
bech32PrefixValPub: "kudovaloperpub",
|
|
10420
|
+
bech32PrefixConsAddr: "kudovalcons",
|
|
10421
|
+
bech32PrefixConsPub: "kudovalconspub"
|
|
10422
|
+
},
|
|
10423
|
+
chainName: "kudora",
|
|
10424
|
+
feeCurrencies: [
|
|
10425
|
+
{
|
|
10426
|
+
coinDenom: "Kudo",
|
|
10427
|
+
coinMinimalDenom: "kud",
|
|
10428
|
+
coinDecimals: 18
|
|
10429
|
+
}
|
|
10430
|
+
],
|
|
10431
|
+
stakeCurrency: {
|
|
10432
|
+
coinDenom: "Kudo",
|
|
10433
|
+
coinMinimalDenom: "kud",
|
|
10434
|
+
coinDecimals: 18
|
|
10435
|
+
},
|
|
10436
|
+
bip44: {
|
|
10437
|
+
coinType: 60
|
|
10438
|
+
}
|
|
10439
|
+
},
|
|
11541
10440
|
{
|
|
11542
10441
|
chainId: "kaiyo-1",
|
|
11543
10442
|
currencies: [
|
|
@@ -12529,6 +11428,11 @@ const _mainnetChains = [
|
|
|
12529
11428
|
coinDenom: "LUME",
|
|
12530
11429
|
coinMinimalDenom: "ulume",
|
|
12531
11430
|
coinDecimals: 6
|
|
11431
|
+
},
|
|
11432
|
+
{
|
|
11433
|
+
coinDenom: "osmo",
|
|
11434
|
+
coinMinimalDenom: "ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518",
|
|
11435
|
+
coinDecimals: 6
|
|
12532
11436
|
}
|
|
12533
11437
|
],
|
|
12534
11438
|
rest: "https://lcd.lumera.io:443",
|
|
@@ -13597,6 +12501,11 @@ const _mainnetChains = [
|
|
|
13597
12501
|
coinDenom: "TAB",
|
|
13598
12502
|
coinMinimalDenom: "factory/neutron1r5qx58l3xx2y8gzjtkqjndjgx69mktmapl45vns0pa73z0zpn7fqgltnll/TAB",
|
|
13599
12503
|
coinDecimals: 6
|
|
12504
|
+
},
|
|
12505
|
+
{
|
|
12506
|
+
coinDenom: "eho",
|
|
12507
|
+
coinMinimalDenom: "cw20:neutron15e56mauwr8n2cma56f78cvtnd9c2pr0y7f4mffdwda7z49sksyvqh2hke2",
|
|
12508
|
+
coinDecimals: 6
|
|
13600
12509
|
}
|
|
13601
12510
|
],
|
|
13602
12511
|
rest: "https://rest-lb.neutron.org",
|
|
@@ -17536,6 +16445,26 @@ const _mainnetChains = [
|
|
|
17536
16445
|
coinDenom: "allUSD",
|
|
17537
16446
|
coinMinimalDenom: "factory/osmo1t82ql2w69m9g3un7c6sk5wss578ewst2uscr7zdkn6k8rmzc3e8qz9n4q2/alloyed/allUSD",
|
|
17538
16447
|
coinDecimals: 6
|
|
16448
|
+
},
|
|
16449
|
+
{
|
|
16450
|
+
coinDenom: "LABS",
|
|
16451
|
+
coinMinimalDenom: "factory/osmo1are7fpe5l6jzm9sjn7u4qkq6q77wwrrsxzlyw8lcegmmaxdukvuq4h46dx/LABS",
|
|
16452
|
+
coinDecimals: 6
|
|
16453
|
+
},
|
|
16454
|
+
{
|
|
16455
|
+
coinDenom: "QUARK",
|
|
16456
|
+
coinMinimalDenom: "factory/osmo1x7s7a2erqspkm6e79n7yh7fw3yh7xx4lt54mxg/uquark",
|
|
16457
|
+
coinDecimals: 6
|
|
16458
|
+
},
|
|
16459
|
+
{
|
|
16460
|
+
coinDenom: "into",
|
|
16461
|
+
coinMinimalDenom: "ibc/BE072C03DA544CF282499418E7BC64D38614879B3EE95F9AD91E6C37267D4836",
|
|
16462
|
+
coinDecimals: 6
|
|
16463
|
+
},
|
|
16464
|
+
{
|
|
16465
|
+
coinDenom: "lume",
|
|
16466
|
+
coinMinimalDenom: "ibc/32C4AEE2B3C4F767A351FA821AB0140B10CB690CDED27D9FCC857859B44432B9",
|
|
16467
|
+
coinDecimals: 6
|
|
17539
16468
|
}
|
|
17540
16469
|
],
|
|
17541
16470
|
rest: "https://lcd.osmosis.zone/",
|
|
@@ -23461,6 +22390,16 @@ const _mainnetChains = [
|
|
|
23461
22390
|
coinDenom: "usdc",
|
|
23462
22391
|
coinMinimalDenom: "ibc/0BB9D8513E8E8E9AE6A9D211D9136E6DA42288DDE6CFAA453A150A4566054DC5",
|
|
23463
22392
|
coinDecimals: 6
|
|
22393
|
+
},
|
|
22394
|
+
{
|
|
22395
|
+
coinDenom: "gft",
|
|
22396
|
+
coinMinimalDenom: "cw20:terra17hnu4prwa3varxrws0sy9hffkmqv8tfmfpldg4e9fq58flrmuz2qlhymr5",
|
|
22397
|
+
coinDecimals: 6
|
|
22398
|
+
},
|
|
22399
|
+
{
|
|
22400
|
+
coinDenom: "ltk",
|
|
22401
|
+
coinMinimalDenom: "cw20:terra1mm8tdp40r2slzwqxk8jsz66ayc4zp69muxeateq37x2xquttzsaqy7275a",
|
|
22402
|
+
coinDecimals: 6
|
|
23464
22403
|
}
|
|
23465
22404
|
],
|
|
23466
22405
|
rest: "https://terra-classic-lcd.publicnode.com",
|
|
@@ -24235,6 +23174,47 @@ const _mainnetChains = [
|
|
|
24235
23174
|
coinType: 5555
|
|
24236
23175
|
}
|
|
24237
23176
|
},
|
|
23177
|
+
{
|
|
23178
|
+
chainId: "union-1",
|
|
23179
|
+
currencies: [
|
|
23180
|
+
{
|
|
23181
|
+
coinDenom: "U",
|
|
23182
|
+
coinMinimalDenom: "au",
|
|
23183
|
+
coinDecimals: 18
|
|
23184
|
+
}
|
|
23185
|
+
],
|
|
23186
|
+
rest: "https://rest.union.build",
|
|
23187
|
+
rpc: "https://rpc.union.build",
|
|
23188
|
+
bech32Config: {
|
|
23189
|
+
bech32PrefixAccAddr: "union",
|
|
23190
|
+
bech32PrefixAccPub: "unionpub",
|
|
23191
|
+
bech32PrefixValAddr: "unionvaloper",
|
|
23192
|
+
bech32PrefixValPub: "unionvaloperpub",
|
|
23193
|
+
bech32PrefixConsAddr: "unionvalcons",
|
|
23194
|
+
bech32PrefixConsPub: "unionvalconspub"
|
|
23195
|
+
},
|
|
23196
|
+
chainName: "union",
|
|
23197
|
+
feeCurrencies: [
|
|
23198
|
+
{
|
|
23199
|
+
coinDenom: "U",
|
|
23200
|
+
coinMinimalDenom: "au",
|
|
23201
|
+
coinDecimals: 18,
|
|
23202
|
+
gasPriceStep: {
|
|
23203
|
+
low: 1e8,
|
|
23204
|
+
average: 1e8,
|
|
23205
|
+
high: 2e8
|
|
23206
|
+
}
|
|
23207
|
+
}
|
|
23208
|
+
],
|
|
23209
|
+
stakeCurrency: {
|
|
23210
|
+
coinDenom: "U",
|
|
23211
|
+
coinMinimalDenom: "au",
|
|
23212
|
+
coinDecimals: 18
|
|
23213
|
+
},
|
|
23214
|
+
bip44: {
|
|
23215
|
+
coinType: 118
|
|
23216
|
+
}
|
|
23217
|
+
},
|
|
24238
23218
|
{
|
|
24239
23219
|
chainId: "ununifi-beta-v1",
|
|
24240
23220
|
currencies: [
|
|
@@ -24286,7 +23266,7 @@ const _mainnetChains = [
|
|
|
24286
23266
|
}
|
|
24287
23267
|
],
|
|
24288
23268
|
rest: "https://api.uptick.nodestake.org",
|
|
24289
|
-
rpc: "https://uptick.
|
|
23269
|
+
rpc: "https://rpc.uptick.nodestake.org",
|
|
24290
23270
|
bech32Config: {
|
|
24291
23271
|
bech32PrefixAccAddr: "uptick",
|
|
24292
23272
|
bech32PrefixAccPub: "uptickpub",
|
|
@@ -24358,6 +23338,47 @@ const _mainnetChains = [
|
|
|
24358
23338
|
coinType: 118
|
|
24359
23339
|
}
|
|
24360
23340
|
},
|
|
23341
|
+
{
|
|
23342
|
+
chainId: "warden_8765-1",
|
|
23343
|
+
currencies: [
|
|
23344
|
+
{
|
|
23345
|
+
coinDenom: "ward",
|
|
23346
|
+
coinMinimalDenom: "award",
|
|
23347
|
+
coinDecimals: 18
|
|
23348
|
+
}
|
|
23349
|
+
],
|
|
23350
|
+
rest: "https://api.wardenprotocol.org",
|
|
23351
|
+
rpc: "https://rpc.wardenprotocol.org",
|
|
23352
|
+
bech32Config: {
|
|
23353
|
+
bech32PrefixAccAddr: "warden",
|
|
23354
|
+
bech32PrefixAccPub: "wardenpub",
|
|
23355
|
+
bech32PrefixValAddr: "wardenvaloper",
|
|
23356
|
+
bech32PrefixValPub: "wardenvaloperpub",
|
|
23357
|
+
bech32PrefixConsAddr: "wardenvalcons",
|
|
23358
|
+
bech32PrefixConsPub: "wardenvalconspub"
|
|
23359
|
+
},
|
|
23360
|
+
chainName: "wardenprotocol",
|
|
23361
|
+
feeCurrencies: [
|
|
23362
|
+
{
|
|
23363
|
+
coinDenom: "ward",
|
|
23364
|
+
coinMinimalDenom: "award",
|
|
23365
|
+
coinDecimals: 18,
|
|
23366
|
+
gasPriceStep: {
|
|
23367
|
+
low: 196e9,
|
|
23368
|
+
average: 2254e8,
|
|
23369
|
+
high: 2548e8
|
|
23370
|
+
}
|
|
23371
|
+
}
|
|
23372
|
+
],
|
|
23373
|
+
stakeCurrency: {
|
|
23374
|
+
coinDenom: "ward",
|
|
23375
|
+
coinMinimalDenom: "award",
|
|
23376
|
+
coinDecimals: 18
|
|
23377
|
+
},
|
|
23378
|
+
bip44: {
|
|
23379
|
+
coinType: 118
|
|
23380
|
+
}
|
|
23381
|
+
},
|
|
24361
23382
|
{
|
|
24362
23383
|
chainId: "xarchain",
|
|
24363
23384
|
currencies: [
|
|
@@ -24639,6 +23660,67 @@ const _mainnetChains = [
|
|
|
24639
23660
|
coinType: 60
|
|
24640
23661
|
}
|
|
24641
23662
|
},
|
|
23663
|
+
{
|
|
23664
|
+
chainId: "zigchain-1",
|
|
23665
|
+
currencies: [
|
|
23666
|
+
{
|
|
23667
|
+
coinDenom: "zig",
|
|
23668
|
+
coinMinimalDenom: "uzig",
|
|
23669
|
+
coinDecimals: 6
|
|
23670
|
+
},
|
|
23671
|
+
{
|
|
23672
|
+
coinDenom: "stzig",
|
|
23673
|
+
coinMinimalDenom: "coin.zig109f7g2rzl2aqee7z6gffn8kfe9cpqx0mjkk7ethmx8m2hq4xpe9snmaam2.stzig",
|
|
23674
|
+
coinDecimals: 6
|
|
23675
|
+
},
|
|
23676
|
+
{
|
|
23677
|
+
coinDenom: "usdc",
|
|
23678
|
+
coinMinimalDenom: "ibc/6490A7EAB61059BFC1CDDEB05917DD70BDF3A611654162A1A47DB930D40D8AF4",
|
|
23679
|
+
coinDecimals: 6
|
|
23680
|
+
},
|
|
23681
|
+
{
|
|
23682
|
+
coinDenom: "atom",
|
|
23683
|
+
coinMinimalDenom: "ibc/EF48E6B1A1A19F47ECAEA62F5670C37C0580E86A9E88498B7E393EB6F49F33C0",
|
|
23684
|
+
coinDecimals: 6
|
|
23685
|
+
},
|
|
23686
|
+
{
|
|
23687
|
+
coinDenom: "zig.axl",
|
|
23688
|
+
coinMinimalDenom: "ibc/9BEE293E6559ED860CC702685996F394D4991D6DFFD60A19ABC3723E6F34788A",
|
|
23689
|
+
coinDecimals: 18
|
|
23690
|
+
}
|
|
23691
|
+
],
|
|
23692
|
+
rest: "https://public-zigchain-lcd.numia.xyz/",
|
|
23693
|
+
rpc: "https://public-zigchain-rpc.numia.xyz/",
|
|
23694
|
+
bech32Config: {
|
|
23695
|
+
bech32PrefixAccAddr: "zig",
|
|
23696
|
+
bech32PrefixAccPub: "zigpub",
|
|
23697
|
+
bech32PrefixValAddr: "zigvaloper",
|
|
23698
|
+
bech32PrefixValPub: "zigvaloperpub",
|
|
23699
|
+
bech32PrefixConsAddr: "zigvalcons",
|
|
23700
|
+
bech32PrefixConsPub: "zigvalconspub"
|
|
23701
|
+
},
|
|
23702
|
+
chainName: "zigchain",
|
|
23703
|
+
feeCurrencies: [
|
|
23704
|
+
{
|
|
23705
|
+
coinDenom: "zig",
|
|
23706
|
+
coinMinimalDenom: "uzig",
|
|
23707
|
+
coinDecimals: 6,
|
|
23708
|
+
gasPriceStep: {
|
|
23709
|
+
low: 25e-4,
|
|
23710
|
+
average: 0.025,
|
|
23711
|
+
high: 0.05
|
|
23712
|
+
}
|
|
23713
|
+
}
|
|
23714
|
+
],
|
|
23715
|
+
stakeCurrency: {
|
|
23716
|
+
coinDenom: "zig",
|
|
23717
|
+
coinMinimalDenom: "uzig",
|
|
23718
|
+
coinDecimals: 6
|
|
23719
|
+
},
|
|
23720
|
+
bip44: {
|
|
23721
|
+
coinType: 118
|
|
23722
|
+
}
|
|
23723
|
+
},
|
|
24642
23724
|
{
|
|
24643
23725
|
chainId: "bfb-1",
|
|
24644
23726
|
currencies: [
|
|
@@ -25576,16 +24658,6 @@ const _testnetChains = [
|
|
|
25576
24658
|
average: 0.3,
|
|
25577
24659
|
high: 0.5
|
|
25578
24660
|
}
|
|
25579
|
-
},
|
|
25580
|
-
{
|
|
25581
|
-
coinDenom: "atone",
|
|
25582
|
-
coinMinimalDenom: "uatone",
|
|
25583
|
-
coinDecimals: 6,
|
|
25584
|
-
gasPriceStep: {
|
|
25585
|
-
low: 0.01,
|
|
25586
|
-
average: 0.025,
|
|
25587
|
-
high: 0.05
|
|
25588
|
-
}
|
|
25589
24661
|
}
|
|
25590
24662
|
],
|
|
25591
24663
|
stakeCurrency: {
|
|
@@ -27998,6 +27070,11 @@ const _testnetChains = [
|
|
|
27998
27070
|
coinDenom: "LUME",
|
|
27999
27071
|
coinMinimalDenom: "ulume",
|
|
28000
27072
|
coinDecimals: 6
|
|
27073
|
+
},
|
|
27074
|
+
{
|
|
27075
|
+
coinDenom: "osmo",
|
|
27076
|
+
coinMinimalDenom: "ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518",
|
|
27077
|
+
coinDecimals: 6
|
|
28001
27078
|
}
|
|
28002
27079
|
],
|
|
28003
27080
|
rest: "https://lcd.testnet.lumera.io:443",
|
|
@@ -28383,47 +27460,6 @@ const _testnetChains = [
|
|
|
28383
27460
|
coinType: 118
|
|
28384
27461
|
}
|
|
28385
27462
|
},
|
|
28386
|
-
{
|
|
28387
|
-
chainId: "mantra-hongbai-1",
|
|
28388
|
-
currencies: [
|
|
28389
|
-
{
|
|
28390
|
-
coinDenom: "om",
|
|
28391
|
-
coinMinimalDenom: "uom",
|
|
28392
|
-
coinDecimals: 6
|
|
28393
|
-
}
|
|
28394
|
-
],
|
|
28395
|
-
rest: "https://api.hongbai.mantrachain.io",
|
|
28396
|
-
rpc: "https://rpc.hongbai.mantrachain.io",
|
|
28397
|
-
bech32Config: {
|
|
28398
|
-
bech32PrefixAccAddr: "mantra",
|
|
28399
|
-
bech32PrefixAccPub: "mantrapub",
|
|
28400
|
-
bech32PrefixValAddr: "mantravaloper",
|
|
28401
|
-
bech32PrefixValPub: "mantravaloperpub",
|
|
28402
|
-
bech32PrefixConsAddr: "mantravalcons",
|
|
28403
|
-
bech32PrefixConsPub: "mantravalconspub"
|
|
28404
|
-
},
|
|
28405
|
-
chainName: "mantrachaintestnet",
|
|
28406
|
-
feeCurrencies: [
|
|
28407
|
-
{
|
|
28408
|
-
coinDenom: "om",
|
|
28409
|
-
coinMinimalDenom: "uom",
|
|
28410
|
-
coinDecimals: 6,
|
|
28411
|
-
gasPriceStep: {
|
|
28412
|
-
low: 1e-3,
|
|
28413
|
-
average: 2e-3,
|
|
28414
|
-
high: 3e-3
|
|
28415
|
-
}
|
|
28416
|
-
}
|
|
28417
|
-
],
|
|
28418
|
-
stakeCurrency: {
|
|
28419
|
-
coinDenom: "om",
|
|
28420
|
-
coinMinimalDenom: "uom",
|
|
28421
|
-
coinDecimals: 6
|
|
28422
|
-
},
|
|
28423
|
-
bip44: {
|
|
28424
|
-
coinType: 118
|
|
28425
|
-
}
|
|
28426
|
-
},
|
|
28427
27463
|
{
|
|
28428
27464
|
chainId: "mantra-dukong-1",
|
|
28429
27465
|
currencies: [
|
|
@@ -28476,7 +27512,7 @@ const _testnetChains = [
|
|
|
28476
27512
|
coinDecimals: 6,
|
|
28477
27513
|
gasPriceStep: {
|
|
28478
27514
|
low: 0.01,
|
|
28479
|
-
average: 0.
|
|
27515
|
+
average: 0.025,
|
|
28480
27516
|
high: 0.03
|
|
28481
27517
|
}
|
|
28482
27518
|
}
|
|
@@ -30707,6 +29743,72 @@ const _testnetChains = [
|
|
|
30707
29743
|
coinType: 330
|
|
30708
29744
|
}
|
|
30709
29745
|
},
|
|
29746
|
+
{
|
|
29747
|
+
chainId: "rebel-2",
|
|
29748
|
+
currencies: [
|
|
29749
|
+
{
|
|
29750
|
+
coinDenom: "luna",
|
|
29751
|
+
coinMinimalDenom: "uluna",
|
|
29752
|
+
coinDecimals: 6
|
|
29753
|
+
},
|
|
29754
|
+
{
|
|
29755
|
+
coinDenom: "ust",
|
|
29756
|
+
coinMinimalDenom: "uusd",
|
|
29757
|
+
coinDecimals: 6
|
|
29758
|
+
},
|
|
29759
|
+
{
|
|
29760
|
+
coinDenom: "krt",
|
|
29761
|
+
coinMinimalDenom: "ukrw",
|
|
29762
|
+
coinDecimals: 6
|
|
29763
|
+
},
|
|
29764
|
+
{
|
|
29765
|
+
coinDenom: "juris",
|
|
29766
|
+
coinMinimalDenom: "cw20:terra1w7d0jqehn0ja3hkzsm0psk6z2hjz06lsq0nxnwkzkkq4fqwgq6tqa5te8e",
|
|
29767
|
+
coinDecimals: 6
|
|
29768
|
+
}
|
|
29769
|
+
],
|
|
29770
|
+
rest: "https://rebel-lcd.luncgoblins.com",
|
|
29771
|
+
rpc: "https://rebel-rpc.luncgoblins.com",
|
|
29772
|
+
bech32Config: {
|
|
29773
|
+
bech32PrefixAccAddr: "terra",
|
|
29774
|
+
bech32PrefixAccPub: "terrapub",
|
|
29775
|
+
bech32PrefixValAddr: "terravaloper",
|
|
29776
|
+
bech32PrefixValPub: "terravaloperpub",
|
|
29777
|
+
bech32PrefixConsAddr: "terravalcons",
|
|
29778
|
+
bech32PrefixConsPub: "terravalconspub"
|
|
29779
|
+
},
|
|
29780
|
+
chainName: "terratestnet",
|
|
29781
|
+
feeCurrencies: [
|
|
29782
|
+
{
|
|
29783
|
+
coinDenom: "luna",
|
|
29784
|
+
coinMinimalDenom: "uluna",
|
|
29785
|
+
coinDecimals: 6,
|
|
29786
|
+
gasPriceStep: {
|
|
29787
|
+
low: 28.325,
|
|
29788
|
+
average: 28.325,
|
|
29789
|
+
high: 50
|
|
29790
|
+
}
|
|
29791
|
+
},
|
|
29792
|
+
{
|
|
29793
|
+
coinDenom: "ust",
|
|
29794
|
+
coinMinimalDenom: "uusd",
|
|
29795
|
+
coinDecimals: 6,
|
|
29796
|
+
gasPriceStep: {
|
|
29797
|
+
low: 0.75,
|
|
29798
|
+
average: 0.75,
|
|
29799
|
+
high: 0.75
|
|
29800
|
+
}
|
|
29801
|
+
}
|
|
29802
|
+
],
|
|
29803
|
+
stakeCurrency: {
|
|
29804
|
+
coinDenom: "luna",
|
|
29805
|
+
coinMinimalDenom: "uluna",
|
|
29806
|
+
coinDecimals: 6
|
|
29807
|
+
},
|
|
29808
|
+
bip44: {
|
|
29809
|
+
coinType: 330
|
|
29810
|
+
}
|
|
29811
|
+
},
|
|
30710
29812
|
{
|
|
30711
29813
|
chainId: "titan-test-4",
|
|
30712
29814
|
currencies: [
|
|
@@ -31328,6 +30430,16 @@ const _testnetChains = [
|
|
|
31328
30430
|
coinDenom: "zig",
|
|
31329
30431
|
coinMinimalDenom: "uzig",
|
|
31330
30432
|
coinDecimals: 6
|
|
30433
|
+
},
|
|
30434
|
+
{
|
|
30435
|
+
coinDenom: "stzig",
|
|
30436
|
+
coinMinimalDenom: "coin.zig1q5cuxuekvjdsl3l2t87jv83gdwjryc4hmh8s90y7mwgpyfwkqutsy9tqak.stzig",
|
|
30437
|
+
coinDecimals: 6
|
|
30438
|
+
},
|
|
30439
|
+
{
|
|
30440
|
+
coinDenom: "usdc",
|
|
30441
|
+
coinMinimalDenom: "ibc/8E452E728A6598EEF051E63FFE49AF19004F5D2AA3F690413C2985660AAFD38F",
|
|
30442
|
+
coinDecimals: 6
|
|
31331
30443
|
}
|
|
31332
30444
|
],
|
|
31333
30445
|
rest: "https://testnet-api.zigchain.com",
|
|
@@ -32192,6 +31304,24 @@ const _explorers = [
|
|
|
32192
31304
|
url: "https://explorer.chainroot.io/atomone",
|
|
32193
31305
|
txPage: "https://explorer.chainroot.io/atomone/transactions/${txHash}",
|
|
32194
31306
|
accountPage: "https://explorer.chainroot.io/atomone/accounts/${accountAddress}"
|
|
31307
|
+
},
|
|
31308
|
+
{
|
|
31309
|
+
kind: "Ruangnode Explorer",
|
|
31310
|
+
url: "https://explorer.ruangnode.com/dashboard/atomone",
|
|
31311
|
+
txPage: "https://explorer.ruangnode.com/dashboard/atomone/tx/${txHash}",
|
|
31312
|
+
accountPage: "https://explorer.ruangnode.com/addresses/atomone/${accountAddress}"
|
|
31313
|
+
},
|
|
31314
|
+
{
|
|
31315
|
+
kind: "Kynraze Explorer",
|
|
31316
|
+
url: "https://explorer.kynraze.com/atomone",
|
|
31317
|
+
txPage: "https://explorer.kynraze.com/atomone/tx/${txHash}",
|
|
31318
|
+
accountPage: "https://explorer.kynraze.com/atomone/account/${accountAddress}"
|
|
31319
|
+
},
|
|
31320
|
+
{
|
|
31321
|
+
kind: "Cosmotracker",
|
|
31322
|
+
url: "https://cosmotracker.com/atomone",
|
|
31323
|
+
txPage: "https://cosmotracker.com/atomone/tx/${txHash}",
|
|
31324
|
+
accountPage: "https://cosmotracker.com/atomone/account/${accountAddress}"
|
|
32195
31325
|
}
|
|
32196
31326
|
]
|
|
32197
31327
|
},
|
|
@@ -32662,6 +31792,35 @@ const _explorers = [
|
|
|
32662
31792
|
}
|
|
32663
31793
|
]
|
|
32664
31794
|
},
|
|
31795
|
+
{
|
|
31796
|
+
chainId: "bitway-1",
|
|
31797
|
+
explorers: [
|
|
31798
|
+
{
|
|
31799
|
+
kind: "Ping Pub",
|
|
31800
|
+
url: "https://explorer.nodestake.org/bitway",
|
|
31801
|
+
txPage: "https://explorer.nodestake.org/bitway/tx/${txHash}",
|
|
31802
|
+
accountPage: "https://explorer.nodestake.org/bitway/account/${accountAddress}"
|
|
31803
|
+
},
|
|
31804
|
+
{
|
|
31805
|
+
kind: "Ping Pub",
|
|
31806
|
+
url: "https://cosmosrun.info/bitway",
|
|
31807
|
+
txPage: "https://cosmosrun.info/bitway/tx/${txHash}",
|
|
31808
|
+
accountPage: "https://cosmosrun.info/bitway/account/${accountAddress}"
|
|
31809
|
+
},
|
|
31810
|
+
{
|
|
31811
|
+
kind: "Ping Pub",
|
|
31812
|
+
url: "https://explorer.kjnodes.com/bitway",
|
|
31813
|
+
txPage: "https://explorer.kjnodes.com/bitway/tx/${txHash}",
|
|
31814
|
+
accountPage: "https://explorer.kjnodes.com/bitway/account/${accountAddress}"
|
|
31815
|
+
},
|
|
31816
|
+
{
|
|
31817
|
+
kind: "Ping Pub",
|
|
31818
|
+
url: "https://explorer.stavr.tech/Bitway-Mainnet",
|
|
31819
|
+
txPage: "https://explorer.stavr.tech/Bitway-Mainnet/tx/${txHash}",
|
|
31820
|
+
accountPage: "https://explorer.stavr.tech/Bitway-Mainnet/account/${accountAddress}"
|
|
31821
|
+
}
|
|
31822
|
+
]
|
|
31823
|
+
},
|
|
32665
31824
|
{
|
|
32666
31825
|
chainId: "blockx_19191-1",
|
|
32667
31826
|
explorers: [
|
|
@@ -33018,6 +32177,12 @@ const _explorers = [
|
|
|
33018
32177
|
url: "https://explorer.whenmoonwhenlambo.money/chain4energy",
|
|
33019
32178
|
txPage: "https://explorer.whenmoonwhenlambo.money/chain4energy/tx/${txHash}",
|
|
33020
32179
|
accountPage: "https://explorer.whenmoonwhenlambo.money/chain4energy/account/${accountAddress}"
|
|
32180
|
+
},
|
|
32181
|
+
{
|
|
32182
|
+
kind: "POLCRYPTO.PL",
|
|
32183
|
+
url: "https://explorer.polcrypto.pl",
|
|
32184
|
+
txPage: "https://explorer.polcrypto.pl/tx/${txHash}",
|
|
32185
|
+
accountPage: "https://explorer.polcrypto.pl/account/${accountAddress}"
|
|
33021
32186
|
}
|
|
33022
32187
|
]
|
|
33023
32188
|
},
|
|
@@ -33694,11 +32859,6 @@ const _explorers = [
|
|
|
33694
32859
|
url: "https://atomscan.com/desmos",
|
|
33695
32860
|
txPage: "https://atomscan.com/desmos/transactions/${txHash}"
|
|
33696
32861
|
},
|
|
33697
|
-
{
|
|
33698
|
-
kind: "TC Network",
|
|
33699
|
-
url: "https://explorer.tcnetwork.io/desmos",
|
|
33700
|
-
txPage: "https://explorer.tcnetwork.io/desmos/transaction/${txHash}"
|
|
33701
|
-
},
|
|
33702
32862
|
{
|
|
33703
32863
|
kind: "Decloud Nodes Lab",
|
|
33704
32864
|
url: "https://explorer.declab.pro/Desmos",
|
|
@@ -33769,6 +32929,17 @@ const _explorers = [
|
|
|
33769
32929
|
url: "https://dora.valopers.com/",
|
|
33770
32930
|
txPage: "https://dora.valopers.com/transactions/${txHash}",
|
|
33771
32931
|
accountPage: "https://dora.valopers.com/account/${accountAddress}"
|
|
32932
|
+
},
|
|
32933
|
+
{
|
|
32934
|
+
kind: "Ruangnode Explorers",
|
|
32935
|
+
url: "https://explorer.ruangnode.com/dashboard/dora",
|
|
32936
|
+
txPage: "https://explorer.ruangnode.com/transactions/dora?hash=${txHash}"
|
|
32937
|
+
},
|
|
32938
|
+
{
|
|
32939
|
+
kind: "Roomit",
|
|
32940
|
+
url: "https://explorer.tendermint.roomit.xyz/dora-mainnet",
|
|
32941
|
+
txPage: "https://explorer.tendermint.roomit.xyz/dora-mainnet/transactions/${txHash}",
|
|
32942
|
+
accountPage: "https://explorer.tendermint.roomit.xyz/dora-mainnet/account/${accountAddress}"
|
|
33772
32943
|
}
|
|
33773
32944
|
]
|
|
33774
32945
|
},
|
|
@@ -34104,9 +33275,14 @@ const _explorers = [
|
|
|
34104
33275
|
chainId: "epix_1916-1",
|
|
34105
33276
|
explorers: [
|
|
34106
33277
|
{
|
|
34107
|
-
kind: "
|
|
34108
|
-
url: "https://explorer.
|
|
34109
|
-
txPage: "https://explorer.
|
|
33278
|
+
kind: "L1",
|
|
33279
|
+
url: "https://explorer.epix.zone/",
|
|
33280
|
+
txPage: "https://explorer.epix.zone/epix/tx/${txHash}"
|
|
33281
|
+
},
|
|
33282
|
+
{
|
|
33283
|
+
kind: "EVM",
|
|
33284
|
+
url: "https://scan.epix.zone/",
|
|
33285
|
+
txPage: "https://scan.epix.zone/tx/${txHash}"
|
|
34110
33286
|
}
|
|
34111
33287
|
]
|
|
34112
33288
|
},
|
|
@@ -34496,12 +33672,6 @@ const _explorers = [
|
|
|
34496
33672
|
txPage: "https://explorer.nodexcapital.com/gitopia/tx/${txHash}",
|
|
34497
33673
|
accountPage: "https://explorer.nodexcapital.com/gitopia/account/${accountAddress}"
|
|
34498
33674
|
},
|
|
34499
|
-
{
|
|
34500
|
-
kind: "TC Network",
|
|
34501
|
-
url: "https://explorer.tcnetwork.io/gitopia",
|
|
34502
|
-
txPage: "https://explorer.tcnetwork.io/gitopia/transaction/${txHash}",
|
|
34503
|
-
accountPage: "https://explorer.tcnetwork.io/gitopia/account/${accountAddress}"
|
|
34504
|
-
},
|
|
34505
33675
|
{
|
|
34506
33676
|
kind: "NodeStake",
|
|
34507
33677
|
url: "https://explorer.nodestake.org/gitopia",
|
|
@@ -34564,6 +33734,41 @@ const _explorers = [
|
|
|
34564
33734
|
}
|
|
34565
33735
|
]
|
|
34566
33736
|
},
|
|
33737
|
+
{
|
|
33738
|
+
chainId: "gonka-mainnet",
|
|
33739
|
+
explorers: [
|
|
33740
|
+
{
|
|
33741
|
+
kind: "ping.pub",
|
|
33742
|
+
url: "http://47.236.19.22:18000/dashboard",
|
|
33743
|
+
txPage: "http://47.236.19.22:18000/dashboard/gonka/txs/${txHash}",
|
|
33744
|
+
accountPage: "http://47.236.19.22:18000/dashboard/gonka/account/${accountAddress}"
|
|
33745
|
+
},
|
|
33746
|
+
{
|
|
33747
|
+
kind: "ping.pub",
|
|
33748
|
+
url: "http://gonka.spv.re:8000/dashboard",
|
|
33749
|
+
txPage: "http://gonka.spv.re:8000/dashboard/gonka/txs/${txHash}",
|
|
33750
|
+
accountPage: "http://gonka.spv.re:8000/dashboard/gonka/account/${accountAddress}"
|
|
33751
|
+
},
|
|
33752
|
+
{
|
|
33753
|
+
kind: "ping.pub",
|
|
33754
|
+
url: "http://185.216.21.98:8000/dashboard",
|
|
33755
|
+
txPage: "http://185.216.21.98:8000/dashboard/gonka/txs/${txHash}",
|
|
33756
|
+
accountPage: "http://185.216.21.98:8000/dashboard/gonka/account/${accountAddress}"
|
|
33757
|
+
},
|
|
33758
|
+
{
|
|
33759
|
+
kind: "ping.pub",
|
|
33760
|
+
url: "http://93.119.168.58:8000/dashboard",
|
|
33761
|
+
txPage: "http://93.119.168.58:8000/dashboard/gonka/txs/${txHash}",
|
|
33762
|
+
accountPage: "http://93.119.168.58:8000/dashboard/gonka/account/${accountAddress}"
|
|
33763
|
+
},
|
|
33764
|
+
{
|
|
33765
|
+
kind: "ping.pub",
|
|
33766
|
+
url: "http://node1.gonka.ai:8000/dashboard",
|
|
33767
|
+
txPage: "http://node1.gonka.ai:8000/dashboard/gonka/txs/${txHash}",
|
|
33768
|
+
accountPage: "http://node1.gonka.ai:8000/dashboard/gonka/account/${accountAddress}"
|
|
33769
|
+
}
|
|
33770
|
+
]
|
|
33771
|
+
},
|
|
34567
33772
|
{
|
|
34568
33773
|
chainId: "govgen-1",
|
|
34569
33774
|
explorers: [
|
|
@@ -34977,6 +34182,16 @@ const _explorers = [
|
|
|
34977
34182
|
}
|
|
34978
34183
|
]
|
|
34979
34184
|
},
|
|
34185
|
+
{
|
|
34186
|
+
chainId: "intento-1",
|
|
34187
|
+
explorers: [
|
|
34188
|
+
{
|
|
34189
|
+
kind: "PingPub",
|
|
34190
|
+
url: "https://explorer.intento.zone",
|
|
34191
|
+
txPage: "https://explorer.intento.zone/intento-mainnet/tx/${txHash}"
|
|
34192
|
+
}
|
|
34193
|
+
]
|
|
34194
|
+
},
|
|
34980
34195
|
{
|
|
34981
34196
|
chainId: "irishub-1",
|
|
34982
34197
|
explorers: [
|
|
@@ -35381,6 +34596,9 @@ const _explorers = [
|
|
|
35381
34596
|
}
|
|
35382
34597
|
]
|
|
35383
34598
|
},
|
|
34599
|
+
{
|
|
34600
|
+
chainId: "kudora_12000-1"
|
|
34601
|
+
},
|
|
35384
34602
|
{
|
|
35385
34603
|
chainId: "kaiyo-1",
|
|
35386
34604
|
explorers: [
|
|
@@ -35696,6 +34914,12 @@ const _explorers = [
|
|
|
35696
34914
|
url: "https://portal.lumera.io/lumera-mainnet-1/",
|
|
35697
34915
|
txPage: "https://portal.lumera.io/lumera-mainnet-1/tx/${txHash}",
|
|
35698
34916
|
accountPage: "https://portal.lumera.io/lumera-mainnet-1/account/${accountAddress}"
|
|
34917
|
+
},
|
|
34918
|
+
{
|
|
34919
|
+
kind: "Cosmotracker",
|
|
34920
|
+
url: "https://cosmotracker.com/lumera/",
|
|
34921
|
+
txPage: "https://cosmotracker.com/lumera/tx/${txHash}",
|
|
34922
|
+
accountPage: "https://cosmotracker.com/lumera/account/${accountAddress}"
|
|
35699
34923
|
}
|
|
35700
34924
|
]
|
|
35701
34925
|
},
|
|
@@ -35975,11 +35199,6 @@ const _explorers = [
|
|
|
35975
35199
|
url: "https://ping.pub/mun",
|
|
35976
35200
|
txPage: "https://ping.pub/mun/${txHash}"
|
|
35977
35201
|
},
|
|
35978
|
-
{
|
|
35979
|
-
kind: "TC Network",
|
|
35980
|
-
url: "https://explorer.tcnetwork.io/mun",
|
|
35981
|
-
txPage: "https://explorer.tcnetwork.io/mun/transaction/${txHash}"
|
|
35982
|
-
},
|
|
35983
35202
|
{
|
|
35984
35203
|
kind: "🚀 WHEN MOON 🌕 WHEN LAMBO 🔥",
|
|
35985
35204
|
url: "https://explorer.whenmoonwhenlambo.money/mun",
|
|
@@ -37083,6 +36302,12 @@ const _explorers = [
|
|
|
37083
36302
|
url: "https://ticsscan.com",
|
|
37084
36303
|
txPage: "https://ticsscan.com/tx/${txHash}",
|
|
37085
36304
|
accountPage: "https://ticsscan.com/address/${accountAddress}"
|
|
36305
|
+
},
|
|
36306
|
+
{
|
|
36307
|
+
kind: "🚀 Qubetics 🌕 Native 🔥",
|
|
36308
|
+
url: "https://native.ticsscan.com/qubetics",
|
|
36309
|
+
txPage: "https://native.ticsscan.com/qubetics/tx/${txHash}",
|
|
36310
|
+
accountPage: "https://native.ticsscan.com/qubetics/account/${accountAddress}"
|
|
37086
36311
|
}
|
|
37087
36312
|
]
|
|
37088
36313
|
},
|
|
@@ -37494,6 +36719,11 @@ const _explorers = [
|
|
|
37494
36719
|
{
|
|
37495
36720
|
chainId: "seda-1",
|
|
37496
36721
|
explorers: [
|
|
36722
|
+
{
|
|
36723
|
+
kind: "TC Network",
|
|
36724
|
+
url: "https://explorer.tcnetwork.io/seda",
|
|
36725
|
+
txPage: "https://explorer.tcnetwork.io/seda/transaction/${txHash}"
|
|
36726
|
+
},
|
|
37497
36727
|
{
|
|
37498
36728
|
kind: "Chainroot",
|
|
37499
36729
|
url: "https://explorer.chainroot.io/seda",
|
|
@@ -37541,6 +36771,12 @@ const _explorers = [
|
|
|
37541
36771
|
url: "https://explorer.node39.top/Seda",
|
|
37542
36772
|
txPage: "https://explorer.node39.top/Seda/tx/${txHash}",
|
|
37543
36773
|
accountPage: "https://explorer.node39.top/Seda/account/${accountAddress}"
|
|
36774
|
+
},
|
|
36775
|
+
{
|
|
36776
|
+
kind: "Stake&Relax 🦥 explorer",
|
|
36777
|
+
url: "https://explorer.stakeandrelax.net/seda",
|
|
36778
|
+
txPage: "https://explorer.stakeandrelax.net/seda/tx/${txHash}",
|
|
36779
|
+
accountPage: "https://explorer.stakeandrelax.net/seda/account/${accountAddress}"
|
|
37544
36780
|
}
|
|
37545
36781
|
]
|
|
37546
36782
|
},
|
|
@@ -38349,6 +37585,11 @@ const _explorers = [
|
|
|
38349
37585
|
{
|
|
38350
37586
|
chainId: "sunrise-1",
|
|
38351
37587
|
explorers: [
|
|
37588
|
+
{
|
|
37589
|
+
kind: "TC Network",
|
|
37590
|
+
url: "https://explorer.tcnetwork.io/sunrise",
|
|
37591
|
+
txPage: "https://explorer.tcnetwork.io/sunrise/transaction/${txHash}"
|
|
37592
|
+
},
|
|
38352
37593
|
{
|
|
38353
37594
|
kind: "Risescan",
|
|
38354
37595
|
url: "https://risescan.sunriselayer.io",
|
|
@@ -38366,6 +37607,54 @@ const _explorers = [
|
|
|
38366
37607
|
url: "https://explorer.ist/sunrise",
|
|
38367
37608
|
txPage: "https://explorer.ist/sunrise/tx/${txHash}",
|
|
38368
37609
|
accountPage: "https://explorer.ist/sunrise/account/${accountAddress}"
|
|
37610
|
+
},
|
|
37611
|
+
{
|
|
37612
|
+
kind: "NodeStake explorer",
|
|
37613
|
+
url: "https://explorer.nodestake.org/sunrise",
|
|
37614
|
+
txPage: "https://explorer.nodestake.org/sunrise/tx/${txHash}",
|
|
37615
|
+
accountPage: "https://explorer.nodestake.org/sunrise/account/${accountAddress}"
|
|
37616
|
+
},
|
|
37617
|
+
{
|
|
37618
|
+
kind: "Krews",
|
|
37619
|
+
url: "https://risescan.krews.xyz",
|
|
37620
|
+
txPage: "https://risescan.krews.xyz/sunrise/tx/${txHash}",
|
|
37621
|
+
accountPage: "https://risescan.krews.xyz/sunrise/account/${accountAddress}"
|
|
37622
|
+
},
|
|
37623
|
+
{
|
|
37624
|
+
kind: "deNodes",
|
|
37625
|
+
url: "https://risescan.denodes.app/",
|
|
37626
|
+
txPage: "https://risescan.denodes.app/sunrise/tx/${txHash}",
|
|
37627
|
+
accountPage: "https://risescan.denodes.app/sunrise/account/${accountAddress}"
|
|
37628
|
+
},
|
|
37629
|
+
{
|
|
37630
|
+
kind: "Synergy Nodes Explorer",
|
|
37631
|
+
url: "https://cosmosrun.info/sunrise",
|
|
37632
|
+
txPage: "https://cosmosrun.info/sunrise/tx/${txHash}",
|
|
37633
|
+
accountPage: "https://cosmosrun.info/sunrise/account/${accountAddress}"
|
|
37634
|
+
},
|
|
37635
|
+
{
|
|
37636
|
+
kind: "Anode.team",
|
|
37637
|
+
url: "https://main.anode.team/sunrise",
|
|
37638
|
+
txPage: "https://main.anode.team/sunrise/tx/${txHash}",
|
|
37639
|
+
accountPage: "https://main.anode.team/sunrise/account/${accountAddress}"
|
|
37640
|
+
},
|
|
37641
|
+
{
|
|
37642
|
+
kind: "Stake&Relax 🦥 explorer",
|
|
37643
|
+
url: "https://explorer.stakeandrelax.net/sunrise",
|
|
37644
|
+
txPage: "https://explorer.stakeandrelax.net/sunrise/tx/${txHash}",
|
|
37645
|
+
accountPage: "https://explorer.stakeandrelax.net/sunrise/account/${accountAddress}"
|
|
37646
|
+
},
|
|
37647
|
+
{
|
|
37648
|
+
kind: "BlockSync Explorer",
|
|
37649
|
+
url: "https://dashboard.blocksync.me/sunrise",
|
|
37650
|
+
txPage: "https://dashboard.blocksync.me/sunrise/tx/${txHash}",
|
|
37651
|
+
accountPage: "https://dashboard.blocksync.me/sunrise/account/${accountAddress}"
|
|
37652
|
+
},
|
|
37653
|
+
{
|
|
37654
|
+
kind: "Winnode explorer",
|
|
37655
|
+
url: "https://explorer.winnode.xyz/Sunrise-Mainnet",
|
|
37656
|
+
txPage: "https://explorer.winnode.xyz/Sunrise-Mainnet/tx/${txHash}",
|
|
37657
|
+
accountPage: "https://explorer.winnode.xyz/Sunrise-Mainnet/account/${accountAddress}"
|
|
38369
37658
|
}
|
|
38370
37659
|
]
|
|
38371
37660
|
},
|
|
@@ -38551,10 +37840,16 @@ const _explorers = [
|
|
|
38551
37840
|
chainId: "columbus-5",
|
|
38552
37841
|
explorers: [
|
|
38553
37842
|
{
|
|
38554
|
-
kind: "
|
|
38555
|
-
url: "https://
|
|
38556
|
-
txPage: "https://
|
|
38557
|
-
accountPage: "https://
|
|
37843
|
+
kind: "hexxagon-finder",
|
|
37844
|
+
url: "https://finder.terra-classic.hexxagon.io/",
|
|
37845
|
+
txPage: "https://finder.terra-classic.hexxagon.io/mainnet/tx/${txHash}",
|
|
37846
|
+
accountPage: "https://finder.terra-classic.hexxagon.io/mainnet/address/${accountAddress}"
|
|
37847
|
+
},
|
|
37848
|
+
{
|
|
37849
|
+
kind: "hexxagon2-finder",
|
|
37850
|
+
url: "https://finder.terraclassic.community/",
|
|
37851
|
+
txPage: "https://finder.terraclassic.community/mainnet/tx/${txHash}",
|
|
37852
|
+
accountPage: "https://finder.terraclassic.community/mainnet/address/${accountAddress}"
|
|
38558
37853
|
},
|
|
38559
37854
|
{
|
|
38560
37855
|
kind: "ping.pub",
|
|
@@ -38574,16 +37869,10 @@ const _explorers = [
|
|
|
38574
37869
|
accountPage: "https://staking-explorer.com/account.php?chain=terra&addr=${accountAddress}"
|
|
38575
37870
|
},
|
|
38576
37871
|
{
|
|
38577
|
-
kind: "finder",
|
|
38578
|
-
url: "https://finder.
|
|
38579
|
-
txPage: "https://finder.
|
|
38580
|
-
accountPage: "https://finder.
|
|
38581
|
-
},
|
|
38582
|
-
{
|
|
38583
|
-
kind: "finder",
|
|
38584
|
-
url: "https://finder.terrarebels.net/classic",
|
|
38585
|
-
txPage: "https://finder.terrarebels.net/classic/tx/${txHash}",
|
|
38586
|
-
accountPage: "https://finder.terrarebels.net/classic/address/${accountAddress}"
|
|
37872
|
+
kind: "terraport-finder",
|
|
37873
|
+
url: "https://finder.terraport.finance/",
|
|
37874
|
+
txPage: "https://finder.terraport.finance/mainnet/tx/${txHash}",
|
|
37875
|
+
accountPage: "https://finder.terraport.finance/mainnet/address/${accountAddress}"
|
|
38587
37876
|
}
|
|
38588
37877
|
]
|
|
38589
37878
|
},
|
|
@@ -38656,6 +37945,15 @@ const _explorers = [
|
|
|
38656
37945
|
kind: "Runescan",
|
|
38657
37946
|
url: "https://runescan.io/",
|
|
38658
37947
|
txPage: "https://runescan.io/txs/${txHash}"
|
|
37948
|
+
},
|
|
37949
|
+
{
|
|
37950
|
+
kind: "THORChain Dashboard",
|
|
37951
|
+
url: "https://thorchain.net/dashboard"
|
|
37952
|
+
},
|
|
37953
|
+
{
|
|
37954
|
+
kind: "Bryanlabs explorer",
|
|
37955
|
+
url: "https://explore.bryanlabs.net/thorchain",
|
|
37956
|
+
txPage: "https://explore.bryanlabs.net/thorchain/#/txs/${txHash}"
|
|
38659
37957
|
}
|
|
38660
37958
|
]
|
|
38661
37959
|
},
|
|
@@ -38674,9 +37972,10 @@ const _explorers = [
|
|
|
38674
37972
|
chainId: "umee-1",
|
|
38675
37973
|
explorers: [
|
|
38676
37974
|
{
|
|
38677
|
-
kind: "
|
|
38678
|
-
url: "https://
|
|
38679
|
-
txPage: "https://
|
|
37975
|
+
kind: "Chainroot",
|
|
37976
|
+
url: "https://explorer.chainroot.io/ux",
|
|
37977
|
+
txPage: "https://explorer.chainroot.io/ux/transactions/${txHash}",
|
|
37978
|
+
accountPage: "https://explorer.chainroot.io/ux/accounts/${accountAddress}"
|
|
38680
37979
|
},
|
|
38681
37980
|
{
|
|
38682
37981
|
kind: "🔥STAVR🔥 Explorer",
|
|
@@ -38729,12 +38028,6 @@ const _explorers = [
|
|
|
38729
38028
|
txPage: "https://explorer.whenmoonwhenlambo.money/umee/tx/${txHash}",
|
|
38730
38029
|
accountPage: "https://explorer.whenmoonwhenlambo.money/umee/account/${accountAddress}"
|
|
38731
38030
|
},
|
|
38732
|
-
{
|
|
38733
|
-
kind: "Chainroot",
|
|
38734
|
-
url: "https://explorer.chainroot.io/ux",
|
|
38735
|
-
txPage: "https://explorer.chainroot.io/ux/transactions/${txHash}",
|
|
38736
|
-
accountPage: "https://explorer.chainroot.io/ux/accounts/${accountAddress}"
|
|
38737
|
-
},
|
|
38738
38031
|
{
|
|
38739
38032
|
kind: "Valopers",
|
|
38740
38033
|
url: "https://ux.valopers.com/",
|
|
@@ -38775,6 +38068,22 @@ const _explorers = [
|
|
|
38775
38068
|
}
|
|
38776
38069
|
]
|
|
38777
38070
|
},
|
|
38071
|
+
{
|
|
38072
|
+
chainId: "union-1",
|
|
38073
|
+
explorers: [
|
|
38074
|
+
{
|
|
38075
|
+
kind: "Ping.Pub",
|
|
38076
|
+
url: "https://explorer.union.build/union",
|
|
38077
|
+
txPage: "https://explorer.union.build/union/tx/${txHash}",
|
|
38078
|
+
accountPage: "https://explorer.union.build/union/account/${accountAddress}"
|
|
38079
|
+
},
|
|
38080
|
+
{
|
|
38081
|
+
kind: "Ruangnode Explorer",
|
|
38082
|
+
url: "https://explorer.ruangnode.com/dashboard/union",
|
|
38083
|
+
txPage: "https://explorer.ruangnode.com/transactions/union?hash=${txHash}"
|
|
38084
|
+
}
|
|
38085
|
+
]
|
|
38086
|
+
},
|
|
38778
38087
|
{
|
|
38779
38088
|
chainId: "ununifi-beta-v1",
|
|
38780
38089
|
explorers: [
|
|
@@ -38815,11 +38124,6 @@ const _explorers = [
|
|
|
38815
38124
|
url: "https://explorer.nodestake.org/uptick",
|
|
38816
38125
|
txPage: "https://explorer.nodestake.org/uptick/tx/${txHash}"
|
|
38817
38126
|
},
|
|
38818
|
-
{
|
|
38819
|
-
kind: "BccNodes Explorer",
|
|
38820
|
-
url: "https://explorer.bccnodes.com/uptick-M",
|
|
38821
|
-
txPage: "https://explorer.bccnodes.com/uptick-M/tx/${txHash}"
|
|
38822
|
-
},
|
|
38823
38127
|
{
|
|
38824
38128
|
kind: "🔥STAVR🔥 Explorer",
|
|
38825
38129
|
url: "https://explorer.stavr.tech/uptick-mainnet",
|
|
@@ -38858,6 +38162,17 @@ const _explorers = [
|
|
|
38858
38162
|
}
|
|
38859
38163
|
]
|
|
38860
38164
|
},
|
|
38165
|
+
{
|
|
38166
|
+
chainId: "warden_8765-1",
|
|
38167
|
+
explorers: [
|
|
38168
|
+
{
|
|
38169
|
+
kind: "Warden Labs",
|
|
38170
|
+
url: "https://explorer.wardenprotocol.org/",
|
|
38171
|
+
txPage: "https://explorer.wardenprotocol.org/tx/${txHash}",
|
|
38172
|
+
accountPage: "https://explorer.wardenprotocol.org/address/${accountAddress}"
|
|
38173
|
+
}
|
|
38174
|
+
]
|
|
38175
|
+
},
|
|
38861
38176
|
{
|
|
38862
38177
|
chainId: "xarchain",
|
|
38863
38178
|
explorers: [
|
|
@@ -39028,6 +38343,23 @@ const _explorers = [
|
|
|
39028
38343
|
}
|
|
39029
38344
|
]
|
|
39030
38345
|
},
|
|
38346
|
+
{
|
|
38347
|
+
chainId: "zigchain-1",
|
|
38348
|
+
explorers: [
|
|
38349
|
+
{
|
|
38350
|
+
kind: "range",
|
|
38351
|
+
url: "https://app.range.org/address/zigchain/zigchain",
|
|
38352
|
+
txPage: "https://app.range.org/tx/zigchain/${txHash}",
|
|
38353
|
+
accountPage: "https://app.range.org/address/zigchain/${accountAddress}"
|
|
38354
|
+
},
|
|
38355
|
+
{
|
|
38356
|
+
kind: "zigscan",
|
|
38357
|
+
url: "https://zigscan.org",
|
|
38358
|
+
txPage: "https://zigscan.org/tx/${txHash}",
|
|
38359
|
+
accountPage: "https://zigscan.org/address/${accountAddress}"
|
|
38360
|
+
}
|
|
38361
|
+
]
|
|
38362
|
+
},
|
|
39031
38363
|
{
|
|
39032
38364
|
chainId: "agoricdev-25",
|
|
39033
38365
|
explorers: []
|
|
@@ -39992,9 +39324,6 @@ const _explorers = [
|
|
|
39992
39324
|
}
|
|
39993
39325
|
]
|
|
39994
39326
|
},
|
|
39995
|
-
{
|
|
39996
|
-
chainId: "mantra-hongbai-1"
|
|
39997
|
-
},
|
|
39998
39327
|
{
|
|
39999
39328
|
chainId: "mantra-dukong-1",
|
|
40000
39329
|
explorers: [
|
|
@@ -40009,6 +39338,12 @@ const _explorers = [
|
|
|
40009
39338
|
url: "https://explorer.mantrachain.io",
|
|
40010
39339
|
txPage: "https://explorer.mantrachain.io/MANTRA-Dukong/tx/${txHash}",
|
|
40011
39340
|
accountPage: "https://explorer.mantrachain.io/MANTRA-Dukong/account/${accountAddress}"
|
|
39341
|
+
},
|
|
39342
|
+
{
|
|
39343
|
+
kind: "mantrascan",
|
|
39344
|
+
url: "https://mantrascan.io/dukong",
|
|
39345
|
+
txPage: "https://mantrascan.io/dukong/tx/${txHash}",
|
|
39346
|
+
accountPage: "https://mantrascan.io/dukong/address/${accountAddress}"
|
|
40012
39347
|
}
|
|
40013
39348
|
]
|
|
40014
39349
|
},
|
|
@@ -40660,6 +39995,10 @@ const _explorers = [
|
|
|
40660
39995
|
}
|
|
40661
39996
|
]
|
|
40662
39997
|
},
|
|
39998
|
+
{
|
|
39999
|
+
chainId: "rebel-2",
|
|
40000
|
+
explorers: []
|
|
40001
|
+
},
|
|
40663
40002
|
{
|
|
40664
40003
|
chainId: "titan-test-4",
|
|
40665
40004
|
explorers: [
|
|
@@ -41978,6 +41317,7 @@ var HISTORY_VERSION = /* @__PURE__ */ ((HISTORY_VERSION2) => {
|
|
|
41978
41317
|
HISTORY_VERSION2[HISTORY_VERSION2["userAddresses"] = 2] = "userAddresses";
|
|
41979
41318
|
return HISTORY_VERSION2;
|
|
41980
41319
|
})(HISTORY_VERSION || {});
|
|
41320
|
+
const TRANSACTION_HISTORY_LIMIT = 400;
|
|
41981
41321
|
const transactionHistoryVersionAtom = atomWithStorage(
|
|
41982
41322
|
LOCAL_STORAGE_KEYS.transactionHistoryVersion,
|
|
41983
41323
|
void 0
|
|
@@ -42016,7 +41356,8 @@ const setTransactionHistoryAtom = atom$1(
|
|
|
42016
41356
|
newHistory.push(historyItem);
|
|
42017
41357
|
}
|
|
42018
41358
|
}
|
|
42019
|
-
|
|
41359
|
+
const sortedHistory = newHistory.sort((a, b) => b.timestamp - a.timestamp).slice(0, TRANSACTION_HISTORY_LIMIT);
|
|
41360
|
+
set(transactionHistoryAtom, sortedHistory);
|
|
42020
41361
|
}
|
|
42021
41362
|
);
|
|
42022
41363
|
const currentTransactionAtom = atom$1((get) => {
|
|
@@ -42557,7 +41898,7 @@ ieee754.write = function(buffer2, value, offset, isLE2, mLen, nBytes) {
|
|
|
42557
41898
|
Buffer2.isBuffer = function isBuffer(b) {
|
|
42558
41899
|
return b != null && b._isBuffer === true && b !== Buffer2.prototype;
|
|
42559
41900
|
};
|
|
42560
|
-
Buffer2.compare = function
|
|
41901
|
+
Buffer2.compare = function compare(a, b) {
|
|
42561
41902
|
if (isInstance(a, GlobalUint8Array)) a = Buffer2.from(a, a.offset, a.byteLength);
|
|
42562
41903
|
if (isInstance(b, GlobalUint8Array)) b = Buffer2.from(b, b.offset, b.byteLength);
|
|
42563
41904
|
if (!Buffer2.isBuffer(a) || !Buffer2.isBuffer(b)) {
|
|
@@ -42787,7 +42128,7 @@ ieee754.write = function(buffer2, value, offset, isLE2, mLen, nBytes) {
|
|
|
42787
42128
|
if (customInspectSymbol) {
|
|
42788
42129
|
Buffer2.prototype[customInspectSymbol] = Buffer2.prototype.inspect;
|
|
42789
42130
|
}
|
|
42790
|
-
Buffer2.prototype.compare = function
|
|
42131
|
+
Buffer2.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {
|
|
42791
42132
|
if (isInstance(target, GlobalUint8Array)) {
|
|
42792
42133
|
target = Buffer2.from(target, target.offset, target.byteLength);
|
|
42793
42134
|
}
|
|
@@ -47931,7 +47272,7 @@ function walletConnect(parameters) {
|
|
|
47931
47272
|
const optionalChains = config2.chains.map((x2) => x2.id);
|
|
47932
47273
|
if (!optionalChains.length)
|
|
47933
47274
|
return;
|
|
47934
|
-
const { EthereumProvider } = await import("./index.es-
|
|
47275
|
+
const { EthereumProvider } = await import("./index.es-CbN_imGq.js").then((n) => n.i);
|
|
47935
47276
|
return await EthereumProvider.init({
|
|
47936
47277
|
...parameters,
|
|
47937
47278
|
disableProviderPing: true,
|
|
@@ -48354,7 +47695,7 @@ const gasOnReceiveRouteRequestAtom = atom$1((get) => {
|
|
|
48354
47695
|
const gasPrice = ((_b2 = asset.gasPrice) == null ? void 0 : _b2.average) ?? ((_c2 = asset.gasPrice) == null ? void 0 : _c2.high) ?? ((_d2 = asset.gasPrice) == null ? void 0 : _d2.low);
|
|
48355
47696
|
return {
|
|
48356
47697
|
amountOut: gasPrice && convertHumanReadableAmountToCryptoAmount(
|
|
48357
|
-
BigNumber(gasPrice).multipliedBy(3).toNumber(),
|
|
47698
|
+
BigNumber$1(gasPrice).multipliedBy(3).toNumber(),
|
|
48358
47699
|
destinationFeeAsset == null ? void 0 : destinationFeeAsset.decimals
|
|
48359
47700
|
),
|
|
48360
47701
|
denom: asset.denom
|
|
@@ -48364,7 +47705,7 @@ const gasOnReceiveRouteRequestAtom = atom$1((get) => {
|
|
|
48364
47705
|
if (!(sourceAsset == null ? void 0 : sourceAsset.chainId) || !sourceAsset.denom || !destinationFeeAssets) return;
|
|
48365
47706
|
const sourceAssetUsdPrice = (_f = (_e2 = (_d = (_c = (_b = balances2 == null ? void 0 : balances2.data) == null ? void 0 : _b.chains) == null ? void 0 : _c[sourceAsset == null ? void 0 : sourceAsset.chainId]) == null ? void 0 : _d.denoms) == null ? void 0 : _e2[sourceAsset == null ? void 0 : sourceAsset.denom]) == null ? void 0 : _f.price;
|
|
48366
47707
|
if (!sourceAssetUsdPrice) return;
|
|
48367
|
-
const amount = BigNumber(amountUsd).dividedBy(sourceAssetUsdPrice).toString();
|
|
47708
|
+
const amount = BigNumber$1(amountUsd).dividedBy(sourceAssetUsdPrice).toString();
|
|
48368
47709
|
return {
|
|
48369
47710
|
amountIn: convertHumanReadableAmountToCryptoAmount(amount, sourceAsset == null ? void 0 : sourceAsset.decimals),
|
|
48370
47711
|
sourceAssetChainId: sourceAsset.chainId,
|
|
@@ -48400,7 +47741,7 @@ const isSomeDestinationFeeBalanceAvailableAtom = atomWithQuery((get) => {
|
|
|
48400
47741
|
({ denom, amountOut }) => {
|
|
48401
47742
|
var _a, _b, _c, _d;
|
|
48402
47743
|
const balanceAmount = (_d = (_c = (_b = (_a = balanceResponse == null ? void 0 : balanceResponse.chains) == null ? void 0 : _a[destination.chainId]) == null ? void 0 : _b.denoms) == null ? void 0 : _c[denom]) == null ? void 0 : _d.amount;
|
|
48403
|
-
const isMoreThanAmountOut = !!balanceAmount && !!amountOut && BigNumber(balanceAmount).isGreaterThanOrEqualTo(amountOut);
|
|
47744
|
+
const isMoreThanAmountOut = !!balanceAmount && !!amountOut && BigNumber$1(balanceAmount).isGreaterThanOrEqualTo(amountOut);
|
|
48404
47745
|
return amountOut ? isMoreThanAmountOut : balanceAmount && balanceAmount !== "0";
|
|
48405
47746
|
}
|
|
48406
47747
|
);
|
|
@@ -49240,6 +48581,7 @@ const Modal = ({
|
|
|
49240
48581
|
const [wasVisible, setWasVisible] = useState();
|
|
49241
48582
|
const disableShadowDom = useAtomValue(disableShadowDomAtom);
|
|
49242
48583
|
const rootId = useAtomValue(rootIdAtom);
|
|
48584
|
+
const modalZIndex = useAtomValue(modalZIndexAtom);
|
|
49243
48585
|
const handleModalWheel = (event) => {
|
|
49244
48586
|
event.stopPropagation();
|
|
49245
48587
|
};
|
|
@@ -49289,6 +48631,7 @@ const Modal = ({
|
|
|
49289
48631
|
open: modal.visible,
|
|
49290
48632
|
"data-root-id": rootId,
|
|
49291
48633
|
blurBackground,
|
|
48634
|
+
modalZIndex,
|
|
49292
48635
|
onWheel: handleModalWheel,
|
|
49293
48636
|
onAnimationEnd: () => {
|
|
49294
48637
|
if (!modal.visible) {
|
|
@@ -49304,6 +48647,7 @@ const Modal = ({
|
|
|
49304
48647
|
ref: modalRef,
|
|
49305
48648
|
drawer,
|
|
49306
48649
|
open: modal.visible,
|
|
48650
|
+
modalZIndex,
|
|
49307
48651
|
onClick: (e) => e.stopPropagation(),
|
|
49308
48652
|
children
|
|
49309
48653
|
}
|
|
@@ -49399,7 +48743,7 @@ const StyledOverlay = dt.div`
|
|
|
49399
48743
|
bottom: 0;
|
|
49400
48744
|
display: grid;
|
|
49401
48745
|
place-items: center;
|
|
49402
|
-
z-index: 10;
|
|
48746
|
+
z-index: ${({ modalZIndex }) => modalZIndex ?? 10};
|
|
49403
48747
|
animation: ${({ open }) => open ? fadeIn$1 : fadeOut} 150ms ease-in-out forwards;
|
|
49404
48748
|
|
|
49405
48749
|
/* For Chrome */
|
|
@@ -49435,7 +48779,7 @@ const StyledContent = dt.div`
|
|
|
49435
48779
|
display: flex;
|
|
49436
48780
|
align-items: center;
|
|
49437
48781
|
justify-content: center;
|
|
49438
|
-
z-index:
|
|
48782
|
+
z-index: ${({ modalZIndex }) => (modalZIndex ?? 10) + 90};
|
|
49439
48783
|
animation: ${({ drawer, open }) => open ? drawer ? fadeInAndSlideUp : fadeInAndZoomOut : drawer ? fadeOutAndSlideDown : fadeOutAndZoomIn}
|
|
49440
48784
|
150ms cubic-bezier(0.5, 1, 0.89, 1) forwards;
|
|
49441
48785
|
`;
|
|
@@ -50807,9 +50151,7 @@ const useGetAccount = () => {
|
|
|
50807
50151
|
const svmWallet = useAtomValue(svmWalletAtom);
|
|
50808
50152
|
const connectedAddress = useAtomValue(connectedAddressesAtom);
|
|
50809
50153
|
const { data: chains2 } = useAtomValue(skipChainsAtom);
|
|
50810
|
-
const { data: cosmosAccounts } = useAccount$1(
|
|
50811
|
-
multiChain: true
|
|
50812
|
-
});
|
|
50154
|
+
const { data: cosmosAccounts } = useAccount$1();
|
|
50813
50155
|
const { wallets: _wallets } = useWallet();
|
|
50814
50156
|
const solanaWallet = _wallets.map((i) => i.adapter).find((wallet2) => wallet2.connected === true);
|
|
50815
50157
|
const evmAccount = useAccount();
|
|
@@ -51046,9 +50388,7 @@ const ConnectEcoRow = ({
|
|
|
51046
50388
|
}) => {
|
|
51047
50389
|
var _a, _b;
|
|
51048
50390
|
const { saveToClipboard: copyAddress, isCopied: isShowingCopyAddressFeedback } = useClipboard();
|
|
51049
|
-
const { data: cosmosAccounts } = useAccount$1(
|
|
51050
|
-
multiChain: true
|
|
51051
|
-
});
|
|
50391
|
+
const { data: cosmosAccounts } = useAccount$1();
|
|
51052
50392
|
const theme = nt();
|
|
51053
50393
|
const getAccount = useGetAccount();
|
|
51054
50394
|
const isMobileScreenSize = useIsMobileScreenSize();
|
|
@@ -54669,7 +54009,7 @@ const useHandleTransactionFailed = (error, statusData) => {
|
|
|
54669
54009
|
track("unexpected error page: transaction failed", { lastTransaction, error, route: route2 });
|
|
54670
54010
|
setErrorWarning({
|
|
54671
54011
|
errorWarningType: ErrorWarningType.TransactionFailed,
|
|
54672
|
-
onClickContactSupport: () => window.open("https://
|
|
54012
|
+
onClickContactSupport: () => window.open("https://discord.com/invite/interchain", "_blank"),
|
|
54673
54013
|
explorerLink,
|
|
54674
54014
|
txHash: lastTxHash ?? ""
|
|
54675
54015
|
});
|
|
@@ -55972,7 +55312,7 @@ const useConnectToMissingCosmosChain = () => {
|
|
|
55972
55312
|
}, [sourceAsset, wallets, extraChainIdsToConnect, addExtraChainIdsToConnectForWalletType]);
|
|
55973
55313
|
return { isAskingToApproveConnection };
|
|
55974
55314
|
};
|
|
55975
|
-
const version = "3.14.
|
|
55315
|
+
const version = "3.14.13";
|
|
55976
55316
|
const packageJson = {
|
|
55977
55317
|
version
|
|
55978
55318
|
};
|
|
@@ -57477,9 +56817,7 @@ const useKeepWalletStateSynced = () => {
|
|
|
57477
56817
|
const [evmWallet, setEvmWallet] = useAtom(evmWalletAtom);
|
|
57478
56818
|
const [cosmosWallet, setCosmosWallet] = useAtom(cosmosWalletAtom);
|
|
57479
56819
|
const [svmWallet, setSvmWallet] = useAtom(svmWalletAtom);
|
|
57480
|
-
const { data: cosmosAccounts, walletType } = useAccount$1(
|
|
57481
|
-
multiChain: true
|
|
57482
|
-
});
|
|
56820
|
+
const { data: cosmosAccounts, walletType } = useAccount$1();
|
|
57483
56821
|
const currentCosmosId = cosmosAccounts ? (_a = cosmosAccounts[Object.keys(cosmosAccounts)[0]]) == null ? void 0 : _a.bech32Address : "";
|
|
57484
56822
|
const { wallets: _wallets } = useWallet();
|
|
57485
56823
|
const solanaWallet = _wallets.map((i) => i.adapter).find((wallet) => wallet.connected === true);
|
|
@@ -57627,6 +56965,7 @@ const useInitWidget = (props = {}) => {
|
|
|
57627
56965
|
useMobileRouteConfig();
|
|
57628
56966
|
const setSkipClientConfig = useSetAtom(skipClientConfigAtom);
|
|
57629
56967
|
const setTheme = useSetAtom(themeAtom);
|
|
56968
|
+
const setModalZIndex = useSetAtom(modalZIndexAtom);
|
|
57630
56969
|
const setSwapSettings = useSetAtom(swapSettingsAtom);
|
|
57631
56970
|
const setRouteConfig = useSetAtom(routeConfigAtom);
|
|
57632
56971
|
const setFilter = useSetAtom(filterAtom);
|
|
@@ -57700,6 +57039,9 @@ const useInitWidget = (props = {}) => {
|
|
|
57700
57039
|
};
|
|
57701
57040
|
});
|
|
57702
57041
|
}
|
|
57042
|
+
if (props.modalZIndex) {
|
|
57043
|
+
setModalZIndex(props.modalZIndex);
|
|
57044
|
+
}
|
|
57703
57045
|
if (props.settings) {
|
|
57704
57046
|
setSwapSettings((prev2) => {
|
|
57705
57047
|
var _a2;
|
|
@@ -57794,7 +57136,9 @@ const useInitWidget = (props = {}) => {
|
|
|
57794
57136
|
props.onDestinationAssetUpdated,
|
|
57795
57137
|
props.batchSignTxs,
|
|
57796
57138
|
setBatchSignTxs,
|
|
57797
|
-
props.onTransactionSignRequested
|
|
57139
|
+
props.onTransactionSignRequested,
|
|
57140
|
+
props.modalZIndex,
|
|
57141
|
+
setModalZIndex
|
|
57798
57142
|
]);
|
|
57799
57143
|
return { theme: mergedTheme };
|
|
57800
57144
|
};
|