@skip-go/widget 3.0.16 → 3.0.17
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/index.js +183 -181
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { ErrorBoundary as Lo } from "react-error-boundary";
|
|
|
6
6
|
import { atom as ee, useSetAtom as K, useAtomValue as J, useAtom as ge } from "jotai";
|
|
7
7
|
import { SkipClient as $m } from "@skip-go/client";
|
|
8
8
|
import { atomWithQuery as ui, atomWithMutation as ep } from "jotai-tanstack-query";
|
|
9
|
-
import { getWallet as ki, WalletType as Ee, useAccount as cs, useActiveWalletType as np, useDisconnect as ip, connect as
|
|
9
|
+
import { getWallet as ki, WalletType as Ee, useAccount as cs, useActiveWalletType as np, useDisconnect as ip, connect as $i, getChainInfo as op, GrazProvider as tp } from "graz";
|
|
10
10
|
import { createClient as cp, custom as ap, walletActions as ja, defineChain as as, http as fe, createPublicClient as rp, isAddress as sp } from "viem";
|
|
11
11
|
import { createConfig as lp, createStorage as mp, useAccount as ht, useConnectors as rs, useConnect as pp, WagmiProvider as up } from "wagmi";
|
|
12
12
|
import { BackpackWalletAdapter as hp } from "@solana/wallet-adapter-backpack";
|
|
@@ -145,7 +145,7 @@ var mn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
145
145
|
function zp(e) {
|
|
146
146
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
147
147
|
}
|
|
148
|
-
var tc = { exports: {} },
|
|
148
|
+
var tc = { exports: {} }, eo = {};
|
|
149
149
|
/**
|
|
150
150
|
* @license React
|
|
151
151
|
* react-jsx-runtime.production.min.js
|
|
@@ -157,7 +157,7 @@ var tc = { exports: {} }, $i = {};
|
|
|
157
157
|
*/
|
|
158
158
|
var qa;
|
|
159
159
|
function qp() {
|
|
160
|
-
if (qa) return
|
|
160
|
+
if (qa) return eo;
|
|
161
161
|
qa = 1;
|
|
162
162
|
var e = en, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
163
163
|
function a(s, l, m) {
|
|
@@ -167,9 +167,9 @@ function qp() {
|
|
|
167
167
|
if (s && s.defaultProps) for (p in l = s.defaultProps, l) h[p] === void 0 && (h[p] = l[p]);
|
|
168
168
|
return { $$typeof: n, type: s, key: d, ref: x, props: h, _owner: t.current };
|
|
169
169
|
}
|
|
170
|
-
return
|
|
170
|
+
return eo.Fragment = i, eo.jsx = a, eo.jsxs = a, eo;
|
|
171
171
|
}
|
|
172
|
-
var
|
|
172
|
+
var no = {}, Sa;
|
|
173
173
|
function Sp() {
|
|
174
174
|
return Sa || (Sa = 1, oe.env.NODE_ENV !== "production" && function() {
|
|
175
175
|
var e = en, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), t = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), k = Symbol.iterator, E = "@@iterator";
|
|
@@ -449,7 +449,7 @@ function Sp() {
|
|
|
449
449
|
}
|
|
450
450
|
return "";
|
|
451
451
|
}
|
|
452
|
-
var
|
|
452
|
+
var Qi = Object.prototype.hasOwnProperty, ga = {}, fa = q.ReactDebugCurrentFrame;
|
|
453
453
|
function Eo(b) {
|
|
454
454
|
if (b) {
|
|
455
455
|
var N = b._owner, L = De(b.type, b._source, N ? N.type : null);
|
|
@@ -459,7 +459,7 @@ function Sp() {
|
|
|
459
459
|
}
|
|
460
460
|
function Em(b, N, L, Q, me) {
|
|
461
461
|
{
|
|
462
|
-
var xe = Function.call.bind(
|
|
462
|
+
var xe = Function.call.bind(Qi);
|
|
463
463
|
for (var se in b)
|
|
464
464
|
if (xe(b, se)) {
|
|
465
465
|
var ce = void 0;
|
|
@@ -500,7 +500,7 @@ function Sp() {
|
|
|
500
500
|
if (Bm(b))
|
|
501
501
|
return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Fm(b)), ba(b);
|
|
502
502
|
}
|
|
503
|
-
var
|
|
503
|
+
var _i = q.ReactCurrentOwner, Mm = {
|
|
504
504
|
key: !0,
|
|
505
505
|
ref: !0,
|
|
506
506
|
__self: !0,
|
|
@@ -508,7 +508,7 @@ function Sp() {
|
|
|
508
508
|
}, Ca, ka, St;
|
|
509
509
|
St = {};
|
|
510
510
|
function jm(b) {
|
|
511
|
-
if (
|
|
511
|
+
if (Qi.call(b, "ref")) {
|
|
512
512
|
var N = Object.getOwnPropertyDescriptor(b, "ref").get;
|
|
513
513
|
if (N && N.isReactWarning)
|
|
514
514
|
return !1;
|
|
@@ -516,7 +516,7 @@ function Sp() {
|
|
|
516
516
|
return b.ref !== void 0;
|
|
517
517
|
}
|
|
518
518
|
function zm(b) {
|
|
519
|
-
if (
|
|
519
|
+
if (Qi.call(b, "key")) {
|
|
520
520
|
var N = Object.getOwnPropertyDescriptor(b, "key").get;
|
|
521
521
|
if (N && N.isReactWarning)
|
|
522
522
|
return !1;
|
|
@@ -524,9 +524,9 @@ function Sp() {
|
|
|
524
524
|
return b.key !== void 0;
|
|
525
525
|
}
|
|
526
526
|
function qm(b, N) {
|
|
527
|
-
if (typeof b.ref == "string" &&
|
|
528
|
-
var L = v(
|
|
529
|
-
St[L] || (C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', v(
|
|
527
|
+
if (typeof b.ref == "string" && _i.current && N && _i.current.stateNode !== N) {
|
|
528
|
+
var L = v(_i.current.type);
|
|
529
|
+
St[L] || (C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', v(_i.current.type), b.ref), St[L] = !0);
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
function Sm(b, N) {
|
|
@@ -585,7 +585,7 @@ function Sp() {
|
|
|
585
585
|
var xe, se = {}, ce = null, Ye = null;
|
|
586
586
|
L !== void 0 && (Aa(L), ce = "" + L), zm(N) && (Aa(N.key), ce = "" + N.key), jm(N) && (Ye = N.ref, qm(N, me));
|
|
587
587
|
for (xe in N)
|
|
588
|
-
|
|
588
|
+
Qi.call(N, xe) && !Mm.hasOwnProperty(xe) && (se[xe] = N[xe]);
|
|
589
589
|
if (b && b.defaultProps) {
|
|
590
590
|
var Be = b.defaultProps;
|
|
591
591
|
for (xe in Be)
|
|
@@ -595,7 +595,7 @@ function Sp() {
|
|
|
595
595
|
var Se = typeof b == "function" ? b.displayName || b.name || "Unknown" : b;
|
|
596
596
|
ce && Sm(se, Se), Ye && Im(se, Se);
|
|
597
597
|
}
|
|
598
|
-
return Hm(b, ce, Ye, me, Q,
|
|
598
|
+
return Hm(b, ce, Ye, me, Q, _i.current, se);
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
var It = q.ReactCurrentOwner, wa = q.ReactDebugCurrentFrame;
|
|
@@ -736,7 +736,7 @@ Check the top-level render call using <` + L + ">.");
|
|
|
736
736
|
else
|
|
737
737
|
Pa(tn, b);
|
|
738
738
|
}
|
|
739
|
-
if (
|
|
739
|
+
if (Qi.call(N, "key")) {
|
|
740
740
|
var _n = v(b), _e = Object.keys(N).filter(function(Zm) {
|
|
741
741
|
return Zm !== "key";
|
|
742
742
|
}), Nt = _e.length > 0 ? "{key: someKey, " + _e.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
@@ -760,8 +760,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
760
760
|
return Ba(b, N, L, !1);
|
|
761
761
|
}
|
|
762
762
|
var Wm = Um, Gm = Om;
|
|
763
|
-
|
|
764
|
-
}()),
|
|
763
|
+
no.Fragment = o, no.jsx = Wm, no.jsxs = Gm;
|
|
764
|
+
}()), no;
|
|
765
765
|
}
|
|
766
766
|
oe.env.NODE_ENV === "production" ? tc.exports = qp() : tc.exports = Sp();
|
|
767
767
|
var r = tc.exports, Je = function() {
|
|
@@ -811,7 +811,7 @@ var Hp = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
811
811
|
return !0;
|
|
812
812
|
};
|
|
813
813
|
const Np = /* @__PURE__ */ zp(Tp);
|
|
814
|
-
var ke = "-ms-",
|
|
814
|
+
var ke = "-ms-", lo = "-moz-", pe = "-webkit-", xs = "comm", dt = "rule", zc = "decl", Vp = "@import", gs = "@keyframes", Rp = "@layer", fs = Math.abs, qc = String.fromCharCode, cc = Object.assign;
|
|
815
815
|
function Lp(e, n) {
|
|
816
816
|
return Re(e, 0) ^ 45 ? (((n << 2 ^ Re(e, 0)) << 2 ^ Re(e, 1)) << 2 ^ Re(e, 2)) << 2 ^ Re(e, 3) : 0;
|
|
817
817
|
}
|
|
@@ -839,7 +839,7 @@ function kn(e) {
|
|
|
839
839
|
function As(e) {
|
|
840
840
|
return e.length;
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function ro(e, n) {
|
|
843
843
|
return n.push(e), e;
|
|
844
844
|
}
|
|
845
845
|
function Op(e, n) {
|
|
@@ -850,7 +850,7 @@ function Ia(e, n) {
|
|
|
850
850
|
return !jn(i, n);
|
|
851
851
|
});
|
|
852
852
|
}
|
|
853
|
-
var Dt = 1, Bi = 1, Cs = 0, pn = 0, Ie = 0,
|
|
853
|
+
var Dt = 1, Bi = 1, Cs = 0, pn = 0, Ie = 0, Oi = "";
|
|
854
854
|
function xt(e, n, i, o, t, c, a, s) {
|
|
855
855
|
return { value: e, root: n, parent: i, type: o, props: t, children: c, line: Dt, column: Bi, length: a, return: "", siblings: s };
|
|
856
856
|
}
|
|
@@ -860,25 +860,25 @@ function Un(e, n) {
|
|
|
860
860
|
function gi(e) {
|
|
861
861
|
for (; e.root; )
|
|
862
862
|
e = Un(e.root, { children: [e] });
|
|
863
|
-
|
|
863
|
+
ro(e, e.siblings);
|
|
864
864
|
}
|
|
865
865
|
function Up() {
|
|
866
866
|
return Ie;
|
|
867
867
|
}
|
|
868
868
|
function Wp() {
|
|
869
|
-
return Ie = pn > 0 ? Re(
|
|
869
|
+
return Ie = pn > 0 ? Re(Oi, --pn) : 0, Bi--, Ie === 10 && (Bi = 1, Dt--), Ie;
|
|
870
870
|
}
|
|
871
871
|
function xn() {
|
|
872
|
-
return Ie = pn < Cs ? Re(
|
|
872
|
+
return Ie = pn < Cs ? Re(Oi, pn++) : 0, Bi++, Ie === 10 && (Bi = 1, Dt++), Ie;
|
|
873
873
|
}
|
|
874
874
|
function ti() {
|
|
875
|
-
return Re(
|
|
875
|
+
return Re(Oi, pn);
|
|
876
876
|
}
|
|
877
877
|
function Wo() {
|
|
878
878
|
return pn;
|
|
879
879
|
}
|
|
880
880
|
function gt(e, n) {
|
|
881
|
-
return Fi(
|
|
881
|
+
return Fi(Oi, e, n);
|
|
882
882
|
}
|
|
883
883
|
function ac(e) {
|
|
884
884
|
switch (e) {
|
|
@@ -913,10 +913,10 @@ function ac(e) {
|
|
|
913
913
|
return 0;
|
|
914
914
|
}
|
|
915
915
|
function Gp(e) {
|
|
916
|
-
return Dt = Bi = 1, Cs = kn(
|
|
916
|
+
return Dt = Bi = 1, Cs = kn(Oi = e), pn = 0, [];
|
|
917
917
|
}
|
|
918
918
|
function Jp(e) {
|
|
919
|
-
return
|
|
919
|
+
return Oi = "", e;
|
|
920
920
|
}
|
|
921
921
|
function Vt(e) {
|
|
922
922
|
return bs(gt(pn - 1, rc(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
@@ -989,7 +989,7 @@ function Go(e, n, i, o, t, c, a, s, l) {
|
|
|
989
989
|
switch (ti()) {
|
|
990
990
|
case 42:
|
|
991
991
|
case 47:
|
|
992
|
-
|
|
992
|
+
ro(_p(Xp(xn(), Wo()), n, i, l), l);
|
|
993
993
|
break;
|
|
994
994
|
default:
|
|
995
995
|
T += "/";
|
|
@@ -1005,12 +1005,12 @@ function Go(e, n, i, o, t, c, a, s, l) {
|
|
|
1005
1005
|
case 125:
|
|
1006
1006
|
H = 0;
|
|
1007
1007
|
case 59 + p:
|
|
1008
|
-
q == -1 && (T = ne(T, /\f/g, "")), x > 0 && kn(T) - h &&
|
|
1008
|
+
q == -1 && (T = ne(T, /\f/g, "")), x > 0 && kn(T) - h && ro(x > 32 ? Ta(T + ";", o, i, h - 1, l) : Ta(ne(T, " ", "") + ";", o, i, h - 2, l), l);
|
|
1009
1009
|
break;
|
|
1010
1010
|
case 59:
|
|
1011
1011
|
T += ";";
|
|
1012
1012
|
default:
|
|
1013
|
-
if (
|
|
1013
|
+
if (ro(S = Ha(T, n, i, m, p, t, s, f, P = [], y = [], h, c), c), C === 123)
|
|
1014
1014
|
if (p === 0)
|
|
1015
1015
|
Go(T, n, S, S, P, c, h, s, y);
|
|
1016
1016
|
else
|
|
@@ -1019,7 +1019,7 @@ function Go(e, n, i, o, t, c, a, s, l) {
|
|
|
1019
1019
|
case 108:
|
|
1020
1020
|
case 109:
|
|
1021
1021
|
case 115:
|
|
1022
|
-
Go(e, S, S, o &&
|
|
1022
|
+
Go(e, S, S, o && ro(Ha(e, S, S, 0, 0, t, s, f, t, P = [], h, y), y), t, y, h, s, o ? P : y);
|
|
1023
1023
|
break;
|
|
1024
1024
|
default:
|
|
1025
1025
|
Go(T, S, S, S, [""], y, 0, s, y);
|
|
@@ -1095,13 +1095,13 @@ function ks(e, n, i) {
|
|
|
1095
1095
|
case 3829:
|
|
1096
1096
|
return pe + e + e;
|
|
1097
1097
|
case 4789:
|
|
1098
|
-
return
|
|
1098
|
+
return lo + e + e;
|
|
1099
1099
|
case 5349:
|
|
1100
1100
|
case 4246:
|
|
1101
1101
|
case 4810:
|
|
1102
1102
|
case 6968:
|
|
1103
1103
|
case 2756:
|
|
1104
|
-
return pe + e +
|
|
1104
|
+
return pe + e + lo + e + ke + e + e;
|
|
1105
1105
|
case 5936:
|
|
1106
1106
|
switch (Re(e, n + 11)) {
|
|
1107
1107
|
case 114:
|
|
@@ -1177,7 +1177,7 @@ function ks(e, n, i) {
|
|
|
1177
1177
|
if (Re(e, n + 4) !== 45)
|
|
1178
1178
|
break;
|
|
1179
1179
|
case 102:
|
|
1180
|
-
return ne(e, /(.+:)(.+)-([^]+)/, "$1" + pe + "$2-$3$1" +
|
|
1180
|
+
return ne(e, /(.+:)(.+)-([^]+)/, "$1" + pe + "$2-$3$1" + lo + (Re(e, n + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1181
1181
|
case 115:
|
|
1182
1182
|
return ~Uo(e, "stretch", 0) ? ks(ne(e, "stretch", "fill-available"), n, i) + e : e;
|
|
1183
1183
|
}
|
|
@@ -1256,10 +1256,10 @@ function iu(e, n, i, o) {
|
|
|
1256
1256
|
switch (jn(t, o = /(::plac\w+|:read-\w+)/)) {
|
|
1257
1257
|
case ":read-only":
|
|
1258
1258
|
case ":read-write":
|
|
1259
|
-
gi(Un(e, { props: [ne(t, /:(read-\w+)/, ":" +
|
|
1259
|
+
gi(Un(e, { props: [ne(t, /:(read-\w+)/, ":" + lo + "$1")] })), gi(Un(e, { props: [t] })), cc(e, { props: Ia(i, o) });
|
|
1260
1260
|
break;
|
|
1261
1261
|
case "::placeholder":
|
|
1262
|
-
gi(Un(e, { props: [ne(t, /:(plac\w+)/, ":" + pe + "input-$1")] })), gi(Un(e, { props: [ne(t, /:(plac\w+)/, ":" +
|
|
1262
|
+
gi(Un(e, { props: [ne(t, /:(plac\w+)/, ":" + pe + "input-$1")] })), gi(Un(e, { props: [ne(t, /:(plac\w+)/, ":" + lo + "$1")] })), gi(Un(e, { props: [ne(t, /:(plac\w+)/, ke + "input-$1")] })), gi(Un(e, { props: [t] })), cc(e, { props: Ia(i, o) });
|
|
1263
1263
|
break;
|
|
1264
1264
|
}
|
|
1265
1265
|
return "";
|
|
@@ -1770,15 +1770,15 @@ var Vu = Es(ft), Ru = function() {
|
|
|
1770
1770
|
}
|
|
1771
1771
|
return t;
|
|
1772
1772
|
}, e;
|
|
1773
|
-
}(),
|
|
1774
|
-
|
|
1773
|
+
}(), mo = en.createContext(void 0);
|
|
1774
|
+
mo.Consumer;
|
|
1775
1775
|
function Ae() {
|
|
1776
|
-
var e = Bc(
|
|
1776
|
+
var e = Bc(mo);
|
|
1777
1777
|
if (!e) throw vn(18);
|
|
1778
1778
|
return e;
|
|
1779
1779
|
}
|
|
1780
1780
|
function Lu(e) {
|
|
1781
|
-
var n = en.useContext(
|
|
1781
|
+
var n = en.useContext(mo), i = G(function() {
|
|
1782
1782
|
return function(o, t) {
|
|
1783
1783
|
if (!o) throw vn(14);
|
|
1784
1784
|
if (si(o)) {
|
|
@@ -1790,7 +1790,7 @@ function Lu(e) {
|
|
|
1790
1790
|
return t ? Je(Je({}, t), o) : o;
|
|
1791
1791
|
}(e.theme, n);
|
|
1792
1792
|
}, [e.theme, n]);
|
|
1793
|
-
return e.children ? en.createElement(
|
|
1793
|
+
return e.children ? en.createElement(mo.Provider, { value: i }, e.children) : null;
|
|
1794
1794
|
}
|
|
1795
1795
|
var Ot = {}, Za = /* @__PURE__ */ new Set();
|
|
1796
1796
|
function Ou(e, n, i) {
|
|
@@ -1814,7 +1814,7 @@ function Ou(e, n, i) {
|
|
|
1814
1814
|
var q = new Ru(i, d, o ? t.componentStyle : void 0);
|
|
1815
1815
|
function C(P, y) {
|
|
1816
1816
|
return function(S, T, u) {
|
|
1817
|
-
var D = S.attrs, g = S.componentStyle, M = S.defaultProps, A = S.foldedComponentIds, v = S.styledComponentId, z = S.target, w = en.useContext(
|
|
1817
|
+
var D = S.attrs, g = S.componentStyle, M = S.defaultProps, A = S.foldedComponentIds, v = S.styledComponentId, z = S.target, w = en.useContext(mo), F = hc(), j = S.shouldForwardProp || F.shouldForwardProp;
|
|
1818
1818
|
oe.env.NODE_ENV !== "production" && Ma(v);
|
|
1819
1819
|
var B = au(T, w, M) || Mi, I = function(X, Y, Ce) {
|
|
1820
1820
|
for (var Ge, Xe = Je(Je({}, Y), { className: void 0, theme: Ce }), on = 0; on < X.length; on += 1) {
|
|
@@ -1895,7 +1895,7 @@ var Vs = function(e) {
|
|
|
1895
1895
|
sc.forEach(function(e) {
|
|
1896
1896
|
V[e] = Vs(e);
|
|
1897
1897
|
});
|
|
1898
|
-
function
|
|
1898
|
+
function Ui(e) {
|
|
1899
1899
|
for (var n = [], i = 1; i < arguments.length; i++) n[i - 1] = arguments[i];
|
|
1900
1900
|
oe.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
1901
1901
|
var o = mc(Te.apply(void 0, ai([e], n, !1))), t = Ps(o);
|
|
@@ -2297,7 +2297,7 @@ class Ws extends be {
|
|
|
2297
2297
|
});
|
|
2298
2298
|
}
|
|
2299
2299
|
}
|
|
2300
|
-
function
|
|
2300
|
+
function Wi(e, { dir: n, size: i = 32 } = {}) {
|
|
2301
2301
|
return typeof e == "string" ? hh(e, { dir: n, size: i }) : dh(e, { dir: n, size: i });
|
|
2302
2302
|
}
|
|
2303
2303
|
function hh(e, { dir: n, size: i = 32 } = {}) {
|
|
@@ -2346,7 +2346,7 @@ function Gs(e, n = {}) {
|
|
|
2346
2346
|
}
|
|
2347
2347
|
function xh(e, n = {}) {
|
|
2348
2348
|
const i = new Uint8Array(1);
|
|
2349
|
-
return i[0] = Number(e), typeof n.size == "number" ? (
|
|
2349
|
+
return i[0] = Number(e), typeof n.size == "number" ? (Gi(i, { size: n.size }), Wi(i, { size: n.size })) : i;
|
|
2350
2350
|
}
|
|
2351
2351
|
const Bn = {
|
|
2352
2352
|
zero: 48,
|
|
@@ -2366,7 +2366,7 @@ function Ya(e) {
|
|
|
2366
2366
|
}
|
|
2367
2367
|
function li(e, n = {}) {
|
|
2368
2368
|
let i = e;
|
|
2369
|
-
n.size && (
|
|
2369
|
+
n.size && (Gi(i, { size: n.size }), i = Wi(i, { dir: "right", size: n.size }));
|
|
2370
2370
|
let o = i.slice(2);
|
|
2371
2371
|
o.length % 2 && (o = `0${o}`);
|
|
2372
2372
|
const t = o.length / 2, c = new Uint8Array(t);
|
|
@@ -2384,9 +2384,9 @@ function gh(e, n) {
|
|
|
2384
2384
|
}
|
|
2385
2385
|
function Js(e, n = {}) {
|
|
2386
2386
|
const i = Dh.encode(e);
|
|
2387
|
-
return typeof n.size == "number" ? (
|
|
2387
|
+
return typeof n.size == "number" ? (Gi(i, { size: n.size }), Wi(i, { dir: "right", size: n.size })) : i;
|
|
2388
2388
|
}
|
|
2389
|
-
function
|
|
2389
|
+
function Gi(e, { size: n }) {
|
|
2390
2390
|
if (zi(e) > n)
|
|
2391
2391
|
throw new ph({
|
|
2392
2392
|
givenSize: zi(e),
|
|
@@ -2395,7 +2395,7 @@ function Wi(e, { size: n }) {
|
|
|
2395
2395
|
}
|
|
2396
2396
|
function Wn(e, n = {}) {
|
|
2397
2397
|
const { signed: i } = n;
|
|
2398
|
-
n.size &&
|
|
2398
|
+
n.size && Gi(e, { size: n.size });
|
|
2399
2399
|
const o = BigInt(e);
|
|
2400
2400
|
if (!i)
|
|
2401
2401
|
return o;
|
|
@@ -2411,14 +2411,14 @@ function ae(e, n = {}) {
|
|
|
2411
2411
|
}
|
|
2412
2412
|
function bh(e, n = {}) {
|
|
2413
2413
|
const i = `0x${Number(e)}`;
|
|
2414
|
-
return typeof n.size == "number" ? (
|
|
2414
|
+
return typeof n.size == "number" ? (Gi(i, { size: n.size }), Wi(i, { size: n.size })) : i;
|
|
2415
2415
|
}
|
|
2416
2416
|
function Nn(e, n = {}) {
|
|
2417
2417
|
let i = "";
|
|
2418
2418
|
for (let t = 0; t < e.length; t++)
|
|
2419
2419
|
i += fh[e[t]];
|
|
2420
2420
|
const o = `0x${i}`;
|
|
2421
|
-
return typeof n.size == "number" ? (
|
|
2421
|
+
return typeof n.size == "number" ? (Gi(o, { size: n.size }), Wi(o, { dir: "right", size: n.size })) : o;
|
|
2422
2422
|
}
|
|
2423
2423
|
function zn(e, n = {}) {
|
|
2424
2424
|
const { signed: i, size: o } = n, t = BigInt(e);
|
|
@@ -2436,7 +2436,7 @@ function zn(e, n = {}) {
|
|
|
2436
2436
|
});
|
|
2437
2437
|
}
|
|
2438
2438
|
const s = `0x${(i && t < 0 ? (1n << BigInt(o * 8)) + BigInt(t) : t).toString(16)}`;
|
|
2439
|
-
return o ?
|
|
2439
|
+
return o ? Wi(s, { size: o }) : s;
|
|
2440
2440
|
}
|
|
2441
2441
|
const Ah = /* @__PURE__ */ new TextEncoder();
|
|
2442
2442
|
function Ch(e, n = {}) {
|
|
@@ -2536,12 +2536,12 @@ function Ys(e) {
|
|
|
2536
2536
|
const n = (o) => e().update(Jc(o)).digest(), i = e();
|
|
2537
2537
|
return n.outputLen = i.outputLen, n.blockLen = i.blockLen, n.create = () => e(), n;
|
|
2538
2538
|
}
|
|
2539
|
-
const Qs = [], _s = [], $s = [], zh = /* @__PURE__ */ BigInt(0),
|
|
2540
|
-
for (let e = 0, n =
|
|
2539
|
+
const Qs = [], _s = [], $s = [], zh = /* @__PURE__ */ BigInt(0), io = /* @__PURE__ */ BigInt(1), qh = /* @__PURE__ */ BigInt(2), Sh = /* @__PURE__ */ BigInt(7), Ih = /* @__PURE__ */ BigInt(256), Hh = /* @__PURE__ */ BigInt(113);
|
|
2540
|
+
for (let e = 0, n = io, i = 1, o = 0; e < 24; e++) {
|
|
2541
2541
|
[i, o] = [o, (2 * i + 3 * o) % 5], Qs.push(2 * (5 * o + i)), _s.push((e + 1) * (e + 2) / 2 % 64);
|
|
2542
2542
|
let t = zh;
|
|
2543
2543
|
for (let c = 0; c < 7; c++)
|
|
2544
|
-
n = (n <<
|
|
2544
|
+
n = (n << io ^ (n >> Sh) * Hh) % Ih, n & qh && (t ^= io << (io << /* @__PURE__ */ BigInt(c)) - io);
|
|
2545
2545
|
$s.push(t);
|
|
2546
2546
|
}
|
|
2547
2547
|
const [Th, Nh] = /* @__PURE__ */ vh($s, !0), nr = (e, n, i) => i > 32 ? Ph(e, n, i) : yh(e, n, i), ir = (e, n, i) => i > 32 ? Fh(e, n, i) : Eh(e, n, i);
|
|
@@ -4140,14 +4140,14 @@ async function n0(e, n) {
|
|
|
4140
4140
|
function fl(e) {
|
|
4141
4141
|
return e === 0 || e === 0n || e === void 0 || e === null || e === "0" || e === "" || typeof e == "string" && ($o(e).toLowerCase() === "0x" || $o(e).toLowerCase() === "0x00");
|
|
4142
4142
|
}
|
|
4143
|
-
function
|
|
4143
|
+
function so(e) {
|
|
4144
4144
|
return !fl(e);
|
|
4145
4145
|
}
|
|
4146
4146
|
function i0(e) {
|
|
4147
4147
|
return typeof e.maxFeePerGas < "u" && typeof e.maxPriorityFeePerGas < "u";
|
|
4148
4148
|
}
|
|
4149
4149
|
function bl(e) {
|
|
4150
|
-
return e.type === "cip64" ? !0 : i0(e) &&
|
|
4150
|
+
return e.type === "cip64" ? !0 : i0(e) && so(e.feeCurrency);
|
|
4151
4151
|
}
|
|
4152
4152
|
const o0 = {
|
|
4153
4153
|
block: /* @__PURE__ */ tl({
|
|
@@ -4218,11 +4218,11 @@ function s0(e) {
|
|
|
4218
4218
|
throw new Zn({ address: c });
|
|
4219
4219
|
if (o)
|
|
4220
4220
|
throw new be("`gasPrice` is not a valid CIP-64 Transaction attribute.");
|
|
4221
|
-
if (
|
|
4221
|
+
if (so(t) && t > r0)
|
|
4222
4222
|
throw new Ao({ maxFeePerGas: t });
|
|
4223
|
-
if (
|
|
4223
|
+
if (so(i) && so(t) && i > t)
|
|
4224
4224
|
throw new Kc({ maxFeePerGas: t, maxPriorityFeePerGas: i });
|
|
4225
|
-
if (
|
|
4225
|
+
if (so(a) && !In(a))
|
|
4226
4226
|
throw new be("`feeCurrency` MUST be a token address for CIP-64 transactions.");
|
|
4227
4227
|
if (fl(a))
|
|
4228
4228
|
throw new be("`feeCurrency` must be provided for CIP-64 transactions.");
|
|
@@ -4436,7 +4436,7 @@ const l0 = {
|
|
|
4436
4436
|
}
|
|
4437
4437
|
},
|
|
4438
4438
|
testnet: !1
|
|
4439
|
-
}),
|
|
4439
|
+
}), oo = 1, wr = /* @__PURE__ */ ye({
|
|
4440
4440
|
...Kn,
|
|
4441
4441
|
id: 10,
|
|
4442
4442
|
name: "OP Mainnet",
|
|
@@ -4456,12 +4456,12 @@ const l0 = {
|
|
|
4456
4456
|
contracts: {
|
|
4457
4457
|
...Kn.contracts,
|
|
4458
4458
|
disputeGameFactory: {
|
|
4459
|
-
[
|
|
4459
|
+
[oo]: {
|
|
4460
4460
|
address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9"
|
|
4461
4461
|
}
|
|
4462
4462
|
},
|
|
4463
4463
|
l2OutputOracle: {
|
|
4464
|
-
[
|
|
4464
|
+
[oo]: {
|
|
4465
4465
|
address: "0xdfe97868233d1aa22e815a266982f2cf17685a27"
|
|
4466
4466
|
}
|
|
4467
4467
|
},
|
|
@@ -4470,18 +4470,18 @@ const l0 = {
|
|
|
4470
4470
|
blockCreated: 4286263
|
|
4471
4471
|
},
|
|
4472
4472
|
portal: {
|
|
4473
|
-
[
|
|
4473
|
+
[oo]: {
|
|
4474
4474
|
address: "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"
|
|
4475
4475
|
}
|
|
4476
4476
|
},
|
|
4477
4477
|
l1StandardBridge: {
|
|
4478
|
-
[
|
|
4478
|
+
[oo]: {
|
|
4479
4479
|
address: "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"
|
|
4480
4480
|
}
|
|
4481
4481
|
}
|
|
4482
4482
|
},
|
|
4483
|
-
sourceId:
|
|
4484
|
-
}),
|
|
4483
|
+
sourceId: oo
|
|
4484
|
+
}), to = 11155111, vr = /* @__PURE__ */ ye({
|
|
4485
4485
|
...Kn,
|
|
4486
4486
|
id: 11155420,
|
|
4487
4487
|
name: "OP Sepolia",
|
|
@@ -4501,12 +4501,12 @@ const l0 = {
|
|
|
4501
4501
|
contracts: {
|
|
4502
4502
|
...Kn.contracts,
|
|
4503
4503
|
disputeGameFactory: {
|
|
4504
|
-
[
|
|
4504
|
+
[to]: {
|
|
4505
4505
|
address: "0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"
|
|
4506
4506
|
}
|
|
4507
4507
|
},
|
|
4508
4508
|
l2OutputOracle: {
|
|
4509
|
-
[
|
|
4509
|
+
[to]: {
|
|
4510
4510
|
address: "0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"
|
|
4511
4511
|
}
|
|
4512
4512
|
},
|
|
@@ -4515,18 +4515,18 @@ const l0 = {
|
|
|
4515
4515
|
blockCreated: 1620204
|
|
4516
4516
|
},
|
|
4517
4517
|
portal: {
|
|
4518
|
-
[
|
|
4518
|
+
[to]: {
|
|
4519
4519
|
address: "0x16Fc5058F25648194471939df75CF27A2fdC48BC"
|
|
4520
4520
|
}
|
|
4521
4521
|
},
|
|
4522
4522
|
l1StandardBridge: {
|
|
4523
|
-
[
|
|
4523
|
+
[to]: {
|
|
4524
4524
|
address: "0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"
|
|
4525
4525
|
}
|
|
4526
4526
|
}
|
|
4527
4527
|
},
|
|
4528
4528
|
testnet: !0,
|
|
4529
|
-
sourceId:
|
|
4529
|
+
sourceId: to
|
|
4530
4530
|
}), yr = /* @__PURE__ */ ye({
|
|
4531
4531
|
id: 137,
|
|
4532
4532
|
name: "Polygon",
|
|
@@ -4845,7 +4845,7 @@ const l0 = {
|
|
|
4845
4845
|
) }) })
|
|
4846
4846
|
}
|
|
4847
4847
|
);
|
|
4848
|
-
},
|
|
4848
|
+
}, Ji = (e) => {
|
|
4849
4849
|
const n = e, i = (o) => {
|
|
4850
4850
|
const t = K(Ze), c = J(Al);
|
|
4851
4851
|
return /* @__PURE__ */ r.jsx(h0, { ...o, theme: c, children: /* @__PURE__ */ r.jsx(
|
|
@@ -4858,21 +4858,21 @@ const l0 = {
|
|
|
4858
4858
|
) });
|
|
4859
4859
|
};
|
|
4860
4860
|
return te.create(i);
|
|
4861
|
-
}, Mr =
|
|
4861
|
+
}, Mr = Ui`
|
|
4862
4862
|
from {
|
|
4863
4863
|
opacity: 0;
|
|
4864
4864
|
}
|
|
4865
4865
|
to {
|
|
4866
4866
|
opacity: 1;
|
|
4867
4867
|
}
|
|
4868
|
-
`, jr =
|
|
4868
|
+
`, jr = Ui`
|
|
4869
4869
|
from {
|
|
4870
4870
|
opacity: 1;
|
|
4871
4871
|
}
|
|
4872
4872
|
to {
|
|
4873
4873
|
opacity: 0;
|
|
4874
4874
|
}
|
|
4875
|
-
`, d0 =
|
|
4875
|
+
`, d0 = Ui`
|
|
4876
4876
|
from {
|
|
4877
4877
|
opacity: 0;
|
|
4878
4878
|
transform: translateY(100%);
|
|
@@ -4881,7 +4881,7 @@ const l0 = {
|
|
|
4881
4881
|
opacity: 1;
|
|
4882
4882
|
transform: translateY(0);
|
|
4883
4883
|
}
|
|
4884
|
-
`, D0 =
|
|
4884
|
+
`, D0 = Ui`
|
|
4885
4885
|
from {
|
|
4886
4886
|
opacity: 1;
|
|
4887
4887
|
transform: translateY(0);
|
|
@@ -4890,7 +4890,7 @@ const l0 = {
|
|
|
4890
4890
|
opacity: 0;
|
|
4891
4891
|
transform: translateY(100%);
|
|
4892
4892
|
}
|
|
4893
|
-
`, x0 =
|
|
4893
|
+
`, x0 = Ui`
|
|
4894
4894
|
from {
|
|
4895
4895
|
opacity: 0;
|
|
4896
4896
|
transform: scale(0.8);
|
|
@@ -4899,7 +4899,7 @@ const l0 = {
|
|
|
4899
4899
|
opacity: 1;
|
|
4900
4900
|
transform: scale(1);
|
|
4901
4901
|
}
|
|
4902
|
-
`, g0 =
|
|
4902
|
+
`, g0 = Ui`
|
|
4903
4903
|
from {
|
|
4904
4904
|
opacity: 1;
|
|
4905
4905
|
transform: scale(1);
|
|
@@ -5304,7 +5304,7 @@ const wl = ({
|
|
|
5304
5304
|
}
|
|
5305
5305
|
);
|
|
5306
5306
|
var _ = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.plus = 1] = "plus", e[e.checkmark = 2] = "checkmark", e[e.rightArrow = 3] = "rightArrow", e[e.leftArrow = 4] = "leftArrow", e[e.swap = 5] = "swap", e[e.warning = 6] = "warning", e[e.triangleWarning = 7] = "triangleWarning", e[e.signature = 8] = "signature", e[e.pen = 9] = "pen", e[e.history = 10] = "history", e[e.thinArrow = 11] = "thinArrow", e[e.hamburger = 12] = "hamburger", e[e.horizontalLine = 13] = "horizontalLine", e[e.lightning = 14] = "lightning", e))(_ || {});
|
|
5307
|
-
const
|
|
5307
|
+
const po = {
|
|
5308
5308
|
0: () => null,
|
|
5309
5309
|
1: C0,
|
|
5310
5310
|
2: A0,
|
|
@@ -5390,7 +5390,7 @@ const mo = {
|
|
|
5390
5390
|
}) => {
|
|
5391
5391
|
const c = Ae();
|
|
5392
5392
|
i ?? (i = c.primary.text.normal), o ?? (o = c.primary.background.normal);
|
|
5393
|
-
const a =
|
|
5393
|
+
const a = po[t];
|
|
5394
5394
|
return /* @__PURE__ */ r.jsxs(
|
|
5395
5395
|
F0,
|
|
5396
5396
|
{
|
|
@@ -5446,7 +5446,7 @@ const mo = {
|
|
|
5446
5446
|
}) => {
|
|
5447
5447
|
const p = Ae();
|
|
5448
5448
|
o ?? (o = t ? p.secondary.background.normal : p.brandColor);
|
|
5449
|
-
const h = go(o), d =
|
|
5449
|
+
const h = go(o), d = po[n], x = po[i];
|
|
5450
5450
|
return c ? /* @__PURE__ */ r.jsx(
|
|
5451
5451
|
M0,
|
|
5452
5452
|
{
|
|
@@ -5611,9 +5611,9 @@ const En = ee(
|
|
|
5611
5611
|
/* SwapPage */
|
|
5612
5612
|
), I0 = ss((e, n) => {
|
|
5613
5613
|
const i = e(ze), o = e(gn), t = e(V0), c = e(L0);
|
|
5614
|
-
i != null && i.amount && !t && n(
|
|
5614
|
+
i != null && i.amount && !t && n(Ki, i.amount), o != null && o.amount && !c && n(Xi, o.amount);
|
|
5615
5615
|
}), H0 = ee((e) => {
|
|
5616
|
-
const n = e(ze), i = e(gn), o = e(Xn), t = e(
|
|
5616
|
+
const n = e(ze), i = e(gn), o = e(Xn), t = e(Ki), c = e(Xi);
|
|
5617
5617
|
return e(I0), !(n != null && n.chainID) || !n.denom || !(i != null && i.chainID) || !i.denom ? void 0 : {
|
|
5618
5618
|
...o === "swap-in" ? {
|
|
5619
5619
|
amountIn: Gn(
|
|
@@ -5678,7 +5678,7 @@ const En = ee(
|
|
|
5678
5678
|
enabled: s,
|
|
5679
5679
|
refetchInterval: 1e3 * 30
|
|
5680
5680
|
};
|
|
5681
|
-
}),
|
|
5681
|
+
}), Zi = ee((e) => {
|
|
5682
5682
|
const { data: n, isError: i, error: o, isLoading: t } = e(N0), c = n, a = n;
|
|
5683
5683
|
return c != null && c.isError ? {
|
|
5684
5684
|
data: void 0,
|
|
@@ -5722,11 +5722,11 @@ function Fl(e = 500) {
|
|
|
5722
5722
|
};
|
|
5723
5723
|
}
|
|
5724
5724
|
const {
|
|
5725
|
-
debouncedValueAtom:
|
|
5725
|
+
debouncedValueAtom: Ki,
|
|
5726
5726
|
valueInitialized: V0,
|
|
5727
5727
|
clearTimeoutAtom: R0
|
|
5728
5728
|
} = Fl(), {
|
|
5729
|
-
debouncedValueAtom:
|
|
5729
|
+
debouncedValueAtom: Xi,
|
|
5730
5730
|
valueInitialized: L0,
|
|
5731
5731
|
clearTimeoutAtom: O0
|
|
5732
5732
|
} = Fl(), ze = ko(
|
|
@@ -5738,7 +5738,7 @@ const {
|
|
|
5738
5738
|
return ((n = e(ze)) == null ? void 0 : n.amount) ?? "";
|
|
5739
5739
|
},
|
|
5740
5740
|
(e, n, i) => {
|
|
5741
|
-
n(ze, (o) => ({ ...o, amount: i })), n(
|
|
5741
|
+
n(ze, (o) => ({ ...o, amount: i })), n(Ki, i), n(Xn, "swap-in"), i === "" && (n(gn, (o) => ({ ...o, amount: i })), n(Xi, i, void 0, !0));
|
|
5742
5742
|
}
|
|
5743
5743
|
), gn = ko(
|
|
5744
5744
|
"destinationAsset",
|
|
@@ -5749,12 +5749,12 @@ const {
|
|
|
5749
5749
|
return ((n = e(gn)) == null ? void 0 : n.amount) ?? "";
|
|
5750
5750
|
},
|
|
5751
5751
|
(e, n, i, o) => {
|
|
5752
|
-
n(gn, (t) => ({ ...t, amount: i })), n(
|
|
5752
|
+
n(gn, (t) => ({ ...t, amount: i })), n(Xi, i, o), n(Xn, "swap-out"), i === "" && (n(ze, (t) => ({ ...t, amount: i })), n(Ki, i, void 0, !0));
|
|
5753
5753
|
}
|
|
5754
5754
|
), Bl = ee(null, (e, n) => {
|
|
5755
|
-
n(ze, (i) => ({ ...i, amount: "" })), n(
|
|
5755
|
+
n(ze, (i) => ({ ...i, amount: "" })), n(Ki, "", void 0, !0), n(gn, (i) => ({ ...i, amount: "" })), n(Xi, "", void 0, !0);
|
|
5756
5756
|
}), U0 = ee((e) => {
|
|
5757
|
-
const n = e(yo), i = e(Et), o = e(
|
|
5757
|
+
const n = e(yo), i = e(Et), o = e(Ki), t = e(Xi), { isLoading: c } = e(Zi), a = e(Xn), s = n !== o, l = i !== t;
|
|
5758
5758
|
if (a === "swap-in")
|
|
5759
5759
|
return s || c;
|
|
5760
5760
|
if (a === "swap-out")
|
|
@@ -5793,7 +5793,7 @@ const at = {
|
|
|
5793
5793
|
), qr = [0.1, 0.5, 1, 3], Z0 = [
|
|
5794
5794
|
Ac.FASTEST,
|
|
5795
5795
|
Ac.CHEAPEST
|
|
5796
|
-
],
|
|
5796
|
+
], uo = 6, K0 = 2e5, X0 = 2e6;
|
|
5797
5797
|
var Y0 = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Jt = Math.ceil, an = Math.floor, $e = "[BigNumber Error] ", Sr = $e + "Number primitive has more than 15 significant digits: ", Dn = 1e14, $ = 14, Zt = 9007199254740991, Kt = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], On = 1e7, Ve = 1e9;
|
|
5798
5798
|
function Ml(e) {
|
|
5799
5799
|
var n, i, o, t = C.prototype = { constructor: C, toString: null, valueOf: null }, c = new C(1), a = 20, s = 4, l = -7, m = 21, p = -1e7, h = 1e7, d = !1, x = 1, k = 0, E = {
|
|
@@ -6412,7 +6412,7 @@ function Mn(e, n, i) {
|
|
|
6412
6412
|
return e;
|
|
6413
6413
|
}
|
|
6414
6414
|
var Pe = Ml();
|
|
6415
|
-
const Gn = (e, n =
|
|
6415
|
+
const Gn = (e, n = uo) => (typeof e == "string" && (e = parseFloat(e)), new Pe(e).shiftedBy(n).toFixed(0)), un = (e, n = uo) => e === "" ? "" : (typeof e == "string" && (e = parseFloat(e)), new Pe(e).shiftedBy(-n).toFixed(n).replace(/(\.\d*?[1-9])(?:0+|\.0*)$/, "$1")), Si = (e, n) => e ? n ? `${e.slice(0, 6)}…${e.slice(-3)}` : `${e.slice(0, 9)}…${e.slice(-5)}` : "", Ir = (e, n, i) => {
|
|
6416
6416
|
const o = new Pe(e).decimalPlaces(
|
|
6417
6417
|
i,
|
|
6418
6418
|
Pe.ROUND_DOWN
|
|
@@ -6464,8 +6464,8 @@ function Q0(e) {
|
|
|
6464
6464
|
function Xt(e) {
|
|
6465
6465
|
return e.toString().replace(/,/g, "");
|
|
6466
6466
|
}
|
|
6467
|
-
const
|
|
6468
|
-
function ho(e, n =
|
|
6467
|
+
const Ii = (e) => e == null ? void 0 : e.replace(/0+$/, "").replace(/\.$/, "");
|
|
6468
|
+
function ho(e, n = uo) {
|
|
6469
6469
|
if (e === void 0) return "";
|
|
6470
6470
|
if (typeof e == "string") {
|
|
6471
6471
|
const [t, c] = e.split(".");
|
|
@@ -6554,7 +6554,7 @@ const Cc = (e) => {
|
|
|
6554
6554
|
rightButton: n,
|
|
6555
6555
|
rightContent: i
|
|
6556
6556
|
}) => {
|
|
6557
|
-
const o =
|
|
6557
|
+
const o = po[(e == null ? void 0 : e.icon) || _.none], t = po[(n == null ? void 0 : n.icon) || _.none];
|
|
6558
6558
|
return /* @__PURE__ */ r.jsxs(_0, { justify: "space-between", children: [
|
|
6559
6559
|
/* @__PURE__ */ r.jsx(O, { align: "center", gap: 10, children: e && /* @__PURE__ */ r.jsxs(pi, { gap: 5, align: "center", onClick: e.onClick, children: [
|
|
6560
6560
|
/* @__PURE__ */ r.jsx(o, {}),
|
|
@@ -6850,7 +6850,7 @@ function tD(e) {
|
|
|
6850
6850
|
]
|
|
6851
6851
|
};
|
|
6852
6852
|
}
|
|
6853
|
-
function
|
|
6853
|
+
function Yi(e) {
|
|
6854
6854
|
if (!e) return [];
|
|
6855
6855
|
let n = 0;
|
|
6856
6856
|
return e.map((i, o, t) => {
|
|
@@ -34652,7 +34652,7 @@ const pD = [
|
|
|
34652
34652
|
), ni = ee(null, (e, n, i) => {
|
|
34653
34653
|
n(nn, (o) => ({ ...o, overallStatus: i }));
|
|
34654
34654
|
}), gD = ee(null, (e, n) => {
|
|
34655
|
-
const { data: i } = e(
|
|
34655
|
+
const { data: i } = e(Zi), { data: o } = e(Ne), c = e(Yn).length;
|
|
34656
34656
|
i && (n(nn, {
|
|
34657
34657
|
userAddresses: [],
|
|
34658
34658
|
transactionDetailsArray: [],
|
|
@@ -34769,12 +34769,12 @@ const pD = [
|
|
|
34769
34769
|
}
|
|
34770
34770
|
};
|
|
34771
34771
|
}), Tl = (e) => G(() => {
|
|
34772
|
-
const n =
|
|
34772
|
+
const n = Yi(e == null ? void 0 : e.operations);
|
|
34773
34773
|
return (n == null ? void 0 : n.some(
|
|
34774
34774
|
(i) => i.type === Me.goFastTransfer
|
|
34775
34775
|
)) ?? !1;
|
|
34776
34776
|
}, [e == null ? void 0 : e.operations]), Nl = (e) => G(() => {
|
|
34777
|
-
const n = [Me.swap, Me.evmSwap], i =
|
|
34777
|
+
const n = [Me.swap, Me.evmSwap], i = Yi(e == null ? void 0 : e.operations);
|
|
34778
34778
|
return (i == null ? void 0 : i.some(
|
|
34779
34779
|
(o) => n.includes(o.type)
|
|
34780
34780
|
)) ?? !1;
|
|
@@ -35123,7 +35123,7 @@ const pD = [
|
|
|
35123
35123
|
showRouteInfo: n,
|
|
35124
35124
|
showEstimatedTime: i
|
|
35125
35125
|
}) => {
|
|
35126
|
-
const { data: o, isLoading: t } = J(
|
|
35126
|
+
const { data: o, isLoading: t } = J(Zi), c = J(Sn), a = fn(), s = G(() => c.slippage !== at.slippage || c.customGasAmount !== at.customGasAmount, [c]), l = Cc(
|
|
35127
35127
|
o == null ? void 0 : o.estimatedRouteDurationSeconds
|
|
35128
35128
|
), m = (o == null ? void 0 : o.txsRequired) && o.txsRequired > 1, p = G(() => /* @__PURE__ */ r.jsx(O, { gap: 4, align: "center", children: /* @__PURE__ */ r.jsxs(Rl, { gap: 5, align: "center", children: [
|
|
35129
35129
|
/* @__PURE__ */ r.jsx(oa, {}),
|
|
@@ -35392,7 +35392,7 @@ const pD = [
|
|
|
35392
35392
|
walletName: h.connector.id,
|
|
35393
35393
|
chainType: "evm"
|
|
35394
35394
|
});
|
|
35395
|
-
}, [m, o, p, c, h.connector, n]), He(
|
|
35395
|
+
}, [m, o, p, c, h.connector, n, t, a, i]), He(
|
|
35396
35396
|
// if checkChainType is true, it only check wallet connected no chainId is dependent
|
|
35397
35397
|
(k, E) => {
|
|
35398
35398
|
var f, P;
|
|
@@ -35622,7 +35622,7 @@ const pD = [
|
|
|
35622
35622
|
children: /* @__PURE__ */ r.jsxs(O, { align: "center", justify: "space-between", children: [
|
|
35623
35623
|
/* @__PURE__ */ r.jsxs(he, { children: [
|
|
35624
35624
|
/* @__PURE__ */ r.jsxs(O, { gap: 5, align: "center", children: [
|
|
35625
|
-
/* @__PURE__ */ r.jsx(SD, { normalTextColor: !0, title: d == null ? void 0 : d.amount, children:
|
|
35625
|
+
/* @__PURE__ */ r.jsx(SD, { normalTextColor: !0, title: d == null ? void 0 : d.amount, children: Ii(d == null ? void 0 : d.amount) }),
|
|
35626
35626
|
/* @__PURE__ */ r.jsx(MD, { normalTextColor: !0, children: d == null ? void 0 : d.symbol }),
|
|
35627
35627
|
/* @__PURE__ */ r.jsxs(
|
|
35628
35628
|
ID,
|
|
@@ -35780,7 +35780,7 @@ const HD = new Intl.NumberFormat("en-US", {
|
|
|
35780
35780
|
};
|
|
35781
35781
|
}
|
|
35782
35782
|
}
|
|
35783
|
-
}, [x == null ? void 0 : x.address, x == null ? void 0 : x.wallet.logo, h, s]), E = G(() =>
|
|
35783
|
+
}, [x == null ? void 0 : x.address, x == null ? void 0 : x.wallet.logo, h, s]), E = G(() => Ii(ho(p.amount)), [p.amount]), H = G(() => {
|
|
35784
35784
|
if (a)
|
|
35785
35785
|
return m ? /* @__PURE__ */ r.jsx(zl, { href: a, target: "_blank", children: /* @__PURE__ */ r.jsx(Hn, {}) }) : /* @__PURE__ */ r.jsx(st, { href: a, target: "_blank", children: /* @__PURE__ */ r.jsx(Hn, {}) });
|
|
35786
35786
|
}, [a, m]);
|
|
@@ -36390,14 +36390,14 @@ const Zl = {
|
|
|
36390
36390
|
), H = async () => {
|
|
36391
36391
|
var f;
|
|
36392
36392
|
try {
|
|
36393
|
-
await
|
|
36393
|
+
await $i({
|
|
36394
36394
|
chainId: E,
|
|
36395
36395
|
walletType: x
|
|
36396
36396
|
});
|
|
36397
36397
|
} catch (P) {
|
|
36398
36398
|
const y = P;
|
|
36399
36399
|
if ((f = y == null ? void 0 : y.message) != null && f.toLowerCase().includes("no ethereum public key"))
|
|
36400
|
-
return await
|
|
36400
|
+
return await $i({
|
|
36401
36401
|
chainId: ED,
|
|
36402
36402
|
walletType: x
|
|
36403
36403
|
}), Promise.resolve();
|
|
@@ -36414,12 +36414,12 @@ const Zl = {
|
|
|
36414
36414
|
throw new Error(
|
|
36415
36415
|
`getAddress: Chain info not found for chainID: ${m}`
|
|
36416
36416
|
);
|
|
36417
|
-
await ki(x).experimentalSuggestChain(P), E.includes(m) ? await H() : await
|
|
36417
|
+
await ki(x).experimentalSuggestChain(P), E.includes(m) ? await H() : await $i({
|
|
36418
36418
|
chainId: m,
|
|
36419
36419
|
walletType: x
|
|
36420
36420
|
}), i({ walletName: x, chainType: "cosmos" });
|
|
36421
36421
|
} else y && a && f && i({ walletName: x, chainType: "cosmos" });
|
|
36422
|
-
return y || (await ki(x).experimentalSuggestChain(P), E.includes(m) ? await H() : await
|
|
36422
|
+
return y || (await ki(x).experimentalSuggestChain(P), E.includes(m) ? await H() : await $i({
|
|
36423
36423
|
chainId: m,
|
|
36424
36424
|
walletType: x
|
|
36425
36425
|
}), i({ walletName: x, chainType: "cosmos" })), (await ki(x).getKey(m)).bech32Address;
|
|
@@ -36447,7 +36447,7 @@ const Zl = {
|
|
|
36447
36447
|
throw new Error(
|
|
36448
36448
|
`connect: Chain info not found for chainID: ${m}`
|
|
36449
36449
|
);
|
|
36450
|
-
await ki(x).experimentalSuggestChain(f), E.includes(m) ? await H() : await
|
|
36450
|
+
await ki(x).experimentalSuggestChain(f), E.includes(m) ? await H() : await $i({
|
|
36451
36451
|
chainId: m,
|
|
36452
36452
|
walletType: x
|
|
36453
36453
|
}), i({ walletName: x, chainType: "cosmos" }), H();
|
|
@@ -36685,7 +36685,7 @@ const Zl = {
|
|
|
36685
36685
|
}
|
|
36686
36686
|
return c;
|
|
36687
36687
|
}, [n, e, i, o]) };
|
|
36688
|
-
},
|
|
36688
|
+
}, Hi = ({
|
|
36689
36689
|
leftContent: e,
|
|
36690
36690
|
rightContent: n,
|
|
36691
36691
|
onClick: i,
|
|
@@ -36883,7 +36883,7 @@ const Zl = {
|
|
|
36883
36883
|
Ho(q) ? h.mutate(q) : q.onSelect();
|
|
36884
36884
|
};
|
|
36885
36885
|
return q.walletName === "prax" ? /* @__PURE__ */ r.jsx(
|
|
36886
|
-
|
|
36886
|
+
Hi,
|
|
36887
36887
|
{
|
|
36888
36888
|
onClick: S,
|
|
36889
36889
|
style: { marginTop: To },
|
|
@@ -36904,7 +36904,7 @@ const Zl = {
|
|
|
36904
36904
|
},
|
|
36905
36905
|
C
|
|
36906
36906
|
) : /* @__PURE__ */ r.jsx(
|
|
36907
|
-
|
|
36907
|
+
Hi,
|
|
36908
36908
|
{
|
|
36909
36909
|
onClick: S,
|
|
36910
36910
|
style: { marginTop: To },
|
|
@@ -37028,7 +37028,7 @@ const Zl = {
|
|
|
37028
37028
|
return [];
|
|
37029
37029
|
}
|
|
37030
37030
|
}, [e, o, t, c, l]);
|
|
37031
|
-
}, bx =
|
|
37031
|
+
}, bx = Ji(
|
|
37032
37032
|
(e) => {
|
|
37033
37033
|
const { chainId: n, chainType: i, connectEco: o } = e, t = ha({ chainID: n, chainType: i }), c = () => {
|
|
37034
37034
|
te.remove(ue.WalletSelectorModal), o && te.show(ue.ConnectedWalletModal);
|
|
@@ -37060,7 +37060,7 @@ const Zl = {
|
|
|
37060
37060
|
}
|
|
37061
37061
|
)
|
|
37062
37062
|
}
|
|
37063
|
-
), Ax = 60, cm = 5, Cx =
|
|
37063
|
+
), Ax = 60, cm = 5, Cx = Ji((e) => {
|
|
37064
37064
|
const n = J(ze), { chainImage: i, chainName: o } = hn({
|
|
37065
37065
|
assetDenom: n == null ? void 0 : n.denom,
|
|
37066
37066
|
chainId: n == null ? void 0 : n.chainID
|
|
@@ -37122,7 +37122,7 @@ const Zl = {
|
|
|
37122
37122
|
);
|
|
37123
37123
|
}, [p, t, (x = (d = i == null ? void 0 : i.primary) == null ? void 0 : d.text) == null ? void 0 : x.ultraLowContrast]);
|
|
37124
37124
|
return /* @__PURE__ */ r.jsx(
|
|
37125
|
-
|
|
37125
|
+
Hi,
|
|
37126
37126
|
{
|
|
37127
37127
|
style: { marginTop: cm },
|
|
37128
37128
|
onClick: () => {
|
|
@@ -37463,10 +37463,10 @@ const Zl = {
|
|
|
37463
37463
|
@media (max-width: 767px) {
|
|
37464
37464
|
width: 100%;
|
|
37465
37465
|
}
|
|
37466
|
-
`, Vx =
|
|
37467
|
-
const e = Ae(), { data: n } = J(
|
|
37466
|
+
`, Vx = Ji(() => {
|
|
37467
|
+
const e = Ae(), { data: n } = J(Zi), { data: i } = J(Ne), o = G(() => n == null ? void 0 : n.chainIDs.map(
|
|
37468
37468
|
(l) => i == null ? void 0 : i.find((m) => m.chainID === l)
|
|
37469
|
-
), [n, i]), t =
|
|
37469
|
+
), [n, i]), t = Yi(n == null ? void 0 : n.operations), c = G(() => t ? t.filter(
|
|
37470
37470
|
(l) => [
|
|
37471
37471
|
Me.axelarTransfer,
|
|
37472
37472
|
Me.hyperlaneTransfer,
|
|
@@ -37686,7 +37686,7 @@ const rm = Ox(void 0), da = ui((e) => {
|
|
|
37686
37686
|
if (!e || c) return i;
|
|
37687
37687
|
if (Ec(e))
|
|
37688
37688
|
return /* @__PURE__ */ r.jsx(
|
|
37689
|
-
|
|
37689
|
+
Hi,
|
|
37690
37690
|
{
|
|
37691
37691
|
onClick: () => o(e),
|
|
37692
37692
|
style: { margin: "5px 0" },
|
|
@@ -37700,7 +37700,7 @@ const rm = Ox(void 0), da = ui((e) => {
|
|
|
37700
37700
|
);
|
|
37701
37701
|
const s = a(e.asset.chainID, e.asset.denom);
|
|
37702
37702
|
return /* @__PURE__ */ r.jsx(
|
|
37703
|
-
|
|
37703
|
+
Hi,
|
|
37704
37704
|
{
|
|
37705
37705
|
onClick: () => o(e.asset),
|
|
37706
37706
|
style: { margin: "5px 0" },
|
|
@@ -37758,7 +37758,7 @@ const rm = Ox(void 0), da = ui((e) => {
|
|
|
37758
37758
|
object-fit: cover;
|
|
37759
37759
|
${({ theme: e }) => `background-color: ${e.secondary.background.hover};`};
|
|
37760
37760
|
`, Xr = () => /* @__PURE__ */ r.jsx(
|
|
37761
|
-
|
|
37761
|
+
Hi,
|
|
37762
37762
|
{
|
|
37763
37763
|
style: { margin: "5px 0" },
|
|
37764
37764
|
leftContent: /* @__PURE__ */ r.jsxs(Gx, { align: "center", gap: 8, children: [
|
|
@@ -38128,7 +38128,7 @@ const rm = Ox(void 0), da = ui((e) => {
|
|
|
38128
38128
|
l.totalAmount = m.totalAmount, l.totalUsd = m.totalUsd;
|
|
38129
38129
|
}), a;
|
|
38130
38130
|
}, [t, i]);
|
|
38131
|
-
}, _r = 65, $r = 5, a2 =
|
|
38131
|
+
}, _r = 65, $r = 5, a2 = Ji(
|
|
38132
38132
|
(e) => {
|
|
38133
38133
|
const n = jc(), { onSelect: i, selectedAsset: o, selectChain: t, context: c } = e, { data: a, isLoading: s } = J(yn), { isLoading: l } = J(Ne), m = s || l, [p, h] = de(!0), [d, x] = de(""), [k, E] = de(null), H = nm(_r + $r), q = () => {
|
|
38134
38134
|
x("");
|
|
@@ -38211,9 +38211,9 @@ const rm = Ox(void 0), da = ui((e) => {
|
|
|
38211
38211
|
height: ${({ height: e }) => e}px;
|
|
38212
38212
|
overflow: hidden;
|
|
38213
38213
|
`;
|
|
38214
|
-
var mm = {},
|
|
38215
|
-
Object.defineProperty(
|
|
38216
|
-
|
|
38214
|
+
var mm = {}, Ti = {};
|
|
38215
|
+
Object.defineProperty(Ti, "__esModule", { value: !0 });
|
|
38216
|
+
Ti.fromAscii = Ti.toAscii = void 0;
|
|
38217
38217
|
function s2(e) {
|
|
38218
38218
|
const n = (i) => i.split("").map((o) => {
|
|
38219
38219
|
const t = o.charCodeAt(0);
|
|
@@ -38223,7 +38223,7 @@ function s2(e) {
|
|
|
38223
38223
|
});
|
|
38224
38224
|
return Uint8Array.from(n(e));
|
|
38225
38225
|
}
|
|
38226
|
-
|
|
38226
|
+
Ti.toAscii = s2;
|
|
38227
38227
|
function l2(e) {
|
|
38228
38228
|
return ((i) => i.map((o) => {
|
|
38229
38229
|
if (o < 32 || o > 126)
|
|
@@ -38231,8 +38231,8 @@ function l2(e) {
|
|
|
38231
38231
|
return String.fromCharCode(o);
|
|
38232
38232
|
}))(Array.from(e)).join("");
|
|
38233
38233
|
}
|
|
38234
|
-
|
|
38235
|
-
var
|
|
38234
|
+
Ti.fromAscii = l2;
|
|
38235
|
+
var Ni = {}, Mt = {};
|
|
38236
38236
|
Mt.byteLength = u2;
|
|
38237
38237
|
Mt.toByteArray = d2;
|
|
38238
38238
|
Mt.fromByteArray = g2;
|
|
@@ -38298,19 +38298,19 @@ var f2 = mn && mn.__createBinding || (Object.create ? function(e, n, i, o) {
|
|
|
38298
38298
|
if (e != null) for (var i in e) i !== "default" && Object.prototype.hasOwnProperty.call(e, i) && f2(n, e, i);
|
|
38299
38299
|
return b2(n, e), n;
|
|
38300
38300
|
};
|
|
38301
|
-
Object.defineProperty(
|
|
38302
|
-
|
|
38301
|
+
Object.defineProperty(Ni, "__esModule", { value: !0 });
|
|
38302
|
+
Ni.fromBase64 = Ni.toBase64 = void 0;
|
|
38303
38303
|
const um = A2(Mt);
|
|
38304
38304
|
function C2(e) {
|
|
38305
38305
|
return um.fromByteArray(e);
|
|
38306
38306
|
}
|
|
38307
|
-
|
|
38307
|
+
Ni.toBase64 = C2;
|
|
38308
38308
|
function k2(e) {
|
|
38309
38309
|
if (!e.match(/^[a-zA-Z0-9+/]*={0,2}$/))
|
|
38310
38310
|
throw new Error("Invalid base64 string format");
|
|
38311
38311
|
return um.toByteArray(e);
|
|
38312
38312
|
}
|
|
38313
|
-
|
|
38313
|
+
Ni.fromBase64 = k2;
|
|
38314
38314
|
var Jn = {}, mt = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", Pc = {};
|
|
38315
38315
|
for (var No = 0; No < mt.length; No++) {
|
|
38316
38316
|
var $t = mt.charAt(No);
|
|
@@ -38456,16 +38456,16 @@ function S2(e) {
|
|
|
38456
38456
|
return Dm(n, i);
|
|
38457
38457
|
}
|
|
38458
38458
|
Jn.normalizeBech32 = S2;
|
|
38459
|
-
var
|
|
38460
|
-
Object.defineProperty(
|
|
38461
|
-
|
|
38459
|
+
var Vi = {};
|
|
38460
|
+
Object.defineProperty(Vi, "__esModule", { value: !0 });
|
|
38461
|
+
Vi.fromHex = Vi.toHex = void 0;
|
|
38462
38462
|
function I2(e) {
|
|
38463
38463
|
let n = "";
|
|
38464
38464
|
for (const i of e)
|
|
38465
38465
|
n += ("0" + i.toString(16)).slice(-2);
|
|
38466
38466
|
return n;
|
|
38467
38467
|
}
|
|
38468
|
-
|
|
38468
|
+
Vi.toHex = I2;
|
|
38469
38469
|
function H2(e) {
|
|
38470
38470
|
if (e.length % 2 !== 0)
|
|
38471
38471
|
throw new Error("hex string length must be a multiple of 2");
|
|
@@ -38478,10 +38478,10 @@ function H2(e) {
|
|
|
38478
38478
|
}
|
|
38479
38479
|
return n;
|
|
38480
38480
|
}
|
|
38481
|
-
|
|
38482
|
-
var
|
|
38483
|
-
Object.defineProperty(
|
|
38484
|
-
|
|
38481
|
+
Vi.fromHex = H2;
|
|
38482
|
+
var Ri = {};
|
|
38483
|
+
Object.defineProperty(Ri, "__esModule", { value: !0 });
|
|
38484
|
+
Ri.toRfc3339 = Ri.fromRfc3339 = void 0;
|
|
38485
38485
|
const T2 = /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/;
|
|
38486
38486
|
function Ci(e, n = 2) {
|
|
38487
38487
|
return e.toString().padStart(n, "0");
|
|
@@ -38496,33 +38496,33 @@ function N2(e) {
|
|
|
38496
38496
|
const d = m * (p * 60 + h) * 60, x = Date.UTC(i, o - 1, t, c, a, s, l) - d * 1e3;
|
|
38497
38497
|
return new Date(x);
|
|
38498
38498
|
}
|
|
38499
|
-
|
|
38499
|
+
Ri.fromRfc3339 = N2;
|
|
38500
38500
|
function V2(e) {
|
|
38501
38501
|
const n = e.getUTCFullYear(), i = Ci(e.getUTCMonth() + 1), o = Ci(e.getUTCDate()), t = Ci(e.getUTCHours()), c = Ci(e.getUTCMinutes()), a = Ci(e.getUTCSeconds()), s = Ci(e.getUTCMilliseconds(), 3);
|
|
38502
38502
|
return `${n}-${i}-${o}T${t}:${c}:${a}.${s}Z`;
|
|
38503
38503
|
}
|
|
38504
|
-
|
|
38505
|
-
var
|
|
38506
|
-
Object.defineProperty(
|
|
38507
|
-
|
|
38504
|
+
Ri.toRfc3339 = V2;
|
|
38505
|
+
var Li = {};
|
|
38506
|
+
Object.defineProperty(Li, "__esModule", { value: !0 });
|
|
38507
|
+
Li.fromUtf8 = Li.toUtf8 = void 0;
|
|
38508
38508
|
function R2(e) {
|
|
38509
38509
|
return new TextEncoder().encode(e);
|
|
38510
38510
|
}
|
|
38511
|
-
|
|
38511
|
+
Li.toUtf8 = R2;
|
|
38512
38512
|
function L2(e, n = !1) {
|
|
38513
38513
|
const i = !n;
|
|
38514
38514
|
return new TextDecoder("utf-8", { fatal: i }).decode(e);
|
|
38515
38515
|
}
|
|
38516
|
-
|
|
38516
|
+
Li.fromUtf8 = L2;
|
|
38517
38517
|
(function(e) {
|
|
38518
38518
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.toUtf8 = e.fromUtf8 = e.toRfc3339 = e.fromRfc3339 = e.toHex = e.fromHex = e.toBech32 = e.normalizeBech32 = e.fromBech32 = e.toBase64 = e.fromBase64 = e.toAscii = e.fromAscii = void 0;
|
|
38519
|
-
var n =
|
|
38519
|
+
var n = Ti;
|
|
38520
38520
|
Object.defineProperty(e, "fromAscii", { enumerable: !0, get: function() {
|
|
38521
38521
|
return n.fromAscii;
|
|
38522
38522
|
} }), Object.defineProperty(e, "toAscii", { enumerable: !0, get: function() {
|
|
38523
38523
|
return n.toAscii;
|
|
38524
38524
|
} });
|
|
38525
|
-
var i =
|
|
38525
|
+
var i = Ni;
|
|
38526
38526
|
Object.defineProperty(e, "fromBase64", { enumerable: !0, get: function() {
|
|
38527
38527
|
return i.fromBase64;
|
|
38528
38528
|
} }), Object.defineProperty(e, "toBase64", { enumerable: !0, get: function() {
|
|
@@ -38536,19 +38536,19 @@ Ri.fromUtf8 = L2;
|
|
|
38536
38536
|
} }), Object.defineProperty(e, "toBech32", { enumerable: !0, get: function() {
|
|
38537
38537
|
return o.toBech32;
|
|
38538
38538
|
} });
|
|
38539
|
-
var t =
|
|
38539
|
+
var t = Vi;
|
|
38540
38540
|
Object.defineProperty(e, "fromHex", { enumerable: !0, get: function() {
|
|
38541
38541
|
return t.fromHex;
|
|
38542
38542
|
} }), Object.defineProperty(e, "toHex", { enumerable: !0, get: function() {
|
|
38543
38543
|
return t.toHex;
|
|
38544
38544
|
} });
|
|
38545
|
-
var c =
|
|
38545
|
+
var c = Ri;
|
|
38546
38546
|
Object.defineProperty(e, "fromRfc3339", { enumerable: !0, get: function() {
|
|
38547
38547
|
return c.fromRfc3339;
|
|
38548
38548
|
} }), Object.defineProperty(e, "toRfc3339", { enumerable: !0, get: function() {
|
|
38549
38549
|
return c.toRfc3339;
|
|
38550
38550
|
} });
|
|
38551
|
-
var a =
|
|
38551
|
+
var a = Li;
|
|
38552
38552
|
Object.defineProperty(e, "fromUtf8", { enumerable: !0, get: function() {
|
|
38553
38553
|
return a.fromUtf8;
|
|
38554
38554
|
} }), Object.defineProperty(e, "toUtf8", { enumerable: !0, get: function() {
|
|
@@ -38584,7 +38584,7 @@ const O2 = ({
|
|
|
38584
38584
|
default:
|
|
38585
38585
|
return !1;
|
|
38586
38586
|
}
|
|
38587
|
-
}, U2 =
|
|
38587
|
+
}, U2 = Ji((e) => {
|
|
38588
38588
|
var y;
|
|
38589
38589
|
const n = fn(), { theme: i, signRequired: o, chainId: t, chainAddressIndex: c } = e, { data: a } = J(Ne), s = a == null ? void 0 : a.find((S) => S.chainID === t), l = s == null ? void 0 : s.prettyName, m = s == null ? void 0 : s.logoURI, [p, h] = de(!1), [d, x] = de(""), k = ha({ chainID: t, destinationWalletList: !0 }), E = K(Fn), H = [
|
|
38590
38590
|
...k,
|
|
@@ -38743,7 +38743,7 @@ var ue = /* @__PURE__ */ ((e) => (e.AssetAndChainSelectorModal = "AssetAndChainS
|
|
|
38743
38743
|
const Y2 = () => {
|
|
38744
38744
|
const [e, n] = ge(Fn), { route: i } = J(nn), o = i == null ? void 0 : i.requiredChainAddresses, { data: t } = J(Ne), c = J(Wc);
|
|
38745
38745
|
ge(bD);
|
|
38746
|
-
const { createCosmosWallets: a } = _l(), { createEvmWallets: s } = $l(), { createSolanaWallets: l } = em(), m = G(() => i != null && i.operations ?
|
|
38746
|
+
const { createCosmosWallets: a } = _l(), { createEvmWallets: s } = $l(), { createSolanaWallets: l } = em(), m = G(() => i != null && i.operations ? Yi(i.operations).filter((x) => x.signRequired).map((x) => x.fromChainID) : void 0, [i == null ? void 0 : i.operations]);
|
|
38747
38747
|
Fe(() => {
|
|
38748
38748
|
var d;
|
|
38749
38749
|
const h = {};
|
|
@@ -38882,7 +38882,7 @@ const Y2 = () => {
|
|
|
38882
38882
|
}
|
|
38883
38883
|
}
|
|
38884
38884
|
});
|
|
38885
|
-
}, [o, t, c, a, s, l, n, m]);
|
|
38885
|
+
}, [o, t, c, a, s, l, n, m, e]);
|
|
38886
38886
|
return xo({
|
|
38887
38887
|
queryKey: ["auto-set-address", { requiredChainAddresses: o, chains: t, sourceWallet: c, signRequiredChains: m }],
|
|
38888
38888
|
enabled: !!o && !!t && (!!c.cosmos || !!c.evm || !!c.svm),
|
|
@@ -38909,7 +38909,7 @@ const Y2 = () => {
|
|
|
38909
38909
|
explorerLink: (s == null ? void 0 : s.explorerLink) ?? "",
|
|
38910
38910
|
txHash: s == null ? void 0 : s.txHash
|
|
38911
38911
|
});
|
|
38912
|
-
}, n.estimatedRouteDurationSeconds * 1e3 *
|
|
38912
|
+
}, n.estimatedRouteDurationSeconds * 1e3 * 3);
|
|
38913
38913
|
a(l);
|
|
38914
38914
|
}
|
|
38915
38915
|
return () => {
|
|
@@ -38933,7 +38933,7 @@ const Y2 = () => {
|
|
|
38933
38933
|
transactionDetailsArray: c,
|
|
38934
38934
|
overallStatus: a,
|
|
38935
38935
|
transactionHistoryIndex: s
|
|
38936
|
-
} = J(nn), l = K(ql), { isPending: m } = J(Hl), p = G(() => t != null && t.operations ?
|
|
38936
|
+
} = J(nn), l = K(ql), { isPending: m } = J(Hl), p = G(() => t != null && t.operations ? Yi(t.operations) : [], [t == null ? void 0 : t.operations]), h = G(() => {
|
|
38937
38937
|
if (!(!(t != null && t.operations) || !(t != null && t.txsRequired))) {
|
|
38938
38938
|
if ((e == null ? void 0 : e.lastTxStatus) === "pending")
|
|
38939
38939
|
return m && o("pending"), "pending";
|
|
@@ -38954,7 +38954,7 @@ const Y2 = () => {
|
|
|
38954
38954
|
return "unconfirmed";
|
|
38955
38955
|
}
|
|
38956
38956
|
}
|
|
38957
|
-
}, [m, t == null ? void 0 : t.operations, t == null ? void 0 : t.txsRequired, o, e == null ? void 0 : e.isSettled, e == null ? void 0 : e.isSuccess, e == null ? void 0 : e.lastTxStatus, i]);
|
|
38957
|
+
}, [m, t == null ? void 0 : t.operations, t == null ? void 0 : t.txsRequired, o, e == null ? void 0 : e.isSettled, e == null ? void 0 : e.isSuccess, e == null ? void 0 : e.lastTxStatus, i, a]);
|
|
38958
38958
|
Fe(() => {
|
|
38959
38959
|
h && (l(n ?? s, {
|
|
38960
38960
|
status: h
|
|
@@ -39142,7 +39142,7 @@ const o1 = () => {
|
|
|
39142
39142
|
_2({
|
|
39143
39143
|
statusData: d
|
|
39144
39144
|
});
|
|
39145
|
-
const x = G(() => n != null && n.operations ?
|
|
39145
|
+
const x = G(() => n != null && n.operations ? Yi(n.operations) : [], [n == null ? void 0 : n.operations]), k = x[x.length - 1], E = $2({
|
|
39146
39146
|
chainAddresses: c,
|
|
39147
39147
|
route: n,
|
|
39148
39148
|
overallStatus: i,
|
|
@@ -39451,7 +39451,9 @@ const gm = () => {
|
|
|
39451
39451
|
if (t === void 0) return;
|
|
39452
39452
|
const p = t == null ? void 0 : t.amount;
|
|
39453
39453
|
let h = t == null ? void 0 : t.formattedAmount;
|
|
39454
|
-
return p === "0" && (h = p),
|
|
39454
|
+
return p === "0" && (h = p), h = ho(
|
|
39455
|
+
Ii(h)
|
|
39456
|
+
), h + m;
|
|
39455
39457
|
}, [t, o == null ? void 0 : o.symbol]);
|
|
39456
39458
|
return i ? /* @__PURE__ */ r.jsxs(
|
|
39457
39459
|
O,
|
|
@@ -39544,7 +39546,7 @@ const gm = () => {
|
|
|
39544
39546
|
e
|
|
39545
39547
|
]);
|
|
39546
39548
|
}, g1 = () => {
|
|
39547
|
-
const [e] = ge(
|
|
39549
|
+
const [e] = ge(Zi), [n] = ge(Xn), [i, o] = ge(ze), [t, c] = ge(gn);
|
|
39548
39550
|
Fe(() => {
|
|
39549
39551
|
if (!e.data || !i || !t || (i == null ? void 0 : i.amount) === "" && n === "swap-in" || (t == null ? void 0 : t.amount) === "" && n === "swap-out") return;
|
|
39550
39552
|
const a = un(
|
|
@@ -39556,18 +39558,18 @@ const gm = () => {
|
|
|
39556
39558
|
), l = Ir(
|
|
39557
39559
|
a,
|
|
39558
39560
|
(t == null ? void 0 : t.amount) ?? "",
|
|
39559
|
-
|
|
39561
|
+
uo
|
|
39560
39562
|
), m = Ir(
|
|
39561
39563
|
s,
|
|
39562
39564
|
(i == null ? void 0 : i.amount) ?? "",
|
|
39563
|
-
|
|
39565
|
+
uo
|
|
39564
39566
|
);
|
|
39565
39567
|
n === "swap-in" && l ? c((p) => ({
|
|
39566
39568
|
...p,
|
|
39567
|
-
amount:
|
|
39569
|
+
amount: Ii(ho(a))
|
|
39568
39570
|
})) : n === "swap-out" && m && o((p) => ({
|
|
39569
39571
|
...p,
|
|
39570
|
-
amount:
|
|
39572
|
+
amount: Ii(ho(s))
|
|
39571
39573
|
}));
|
|
39572
39574
|
}, [
|
|
39573
39575
|
e.data,
|
|
@@ -39583,7 +39585,7 @@ const gm = () => {
|
|
|
39583
39585
|
data: f,
|
|
39584
39586
|
isError: P,
|
|
39585
39587
|
error: y
|
|
39586
|
-
} = J(
|
|
39588
|
+
} = J(Zi), S = K(Fn);
|
|
39587
39589
|
D1(), x1(), g1();
|
|
39588
39590
|
const T = di(), u = T(c == null ? void 0 : c.chainID), D = J(Yn), g = Nl(f), { chainId: M, connector: A } = ht(), v = G(() => {
|
|
39589
39591
|
var R;
|
|
@@ -40101,7 +40103,7 @@ var P1 = {
|
|
|
40101
40103
|
}, z1 = function(n, i, o, t) {
|
|
40102
40104
|
return j1[n];
|
|
40103
40105
|
};
|
|
40104
|
-
function
|
|
40106
|
+
function co(e) {
|
|
40105
40107
|
return function(n, i) {
|
|
40106
40108
|
var o = i != null && i.context ? String(i.context) : "standalone", t;
|
|
40107
40109
|
if (o === "formatting" && e.formattingValues) {
|
|
@@ -40208,33 +40210,33 @@ var q1 = {
|
|
|
40208
40210
|
return o + "th";
|
|
40209
40211
|
}, R1 = {
|
|
40210
40212
|
ordinalNumber: V1,
|
|
40211
|
-
era:
|
|
40213
|
+
era: co({
|
|
40212
40214
|
values: q1,
|
|
40213
40215
|
defaultWidth: "wide"
|
|
40214
40216
|
}),
|
|
40215
|
-
quarter:
|
|
40217
|
+
quarter: co({
|
|
40216
40218
|
values: S1,
|
|
40217
40219
|
defaultWidth: "wide",
|
|
40218
40220
|
argumentCallback: function(n) {
|
|
40219
40221
|
return n - 1;
|
|
40220
40222
|
}
|
|
40221
40223
|
}),
|
|
40222
|
-
month:
|
|
40224
|
+
month: co({
|
|
40223
40225
|
values: I1,
|
|
40224
40226
|
defaultWidth: "wide"
|
|
40225
40227
|
}),
|
|
40226
|
-
day:
|
|
40228
|
+
day: co({
|
|
40227
40229
|
values: H1,
|
|
40228
40230
|
defaultWidth: "wide"
|
|
40229
40231
|
}),
|
|
40230
|
-
dayPeriod:
|
|
40232
|
+
dayPeriod: co({
|
|
40231
40233
|
values: T1,
|
|
40232
40234
|
defaultWidth: "wide",
|
|
40233
40235
|
formattingValues: N1,
|
|
40234
40236
|
defaultFormattingWidth: "wide"
|
|
40235
40237
|
})
|
|
40236
40238
|
};
|
|
40237
|
-
function
|
|
40239
|
+
function ao(e) {
|
|
40238
40240
|
return function(n) {
|
|
40239
40241
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = i.width, t = o && e.matchPatterns[o] || e.matchPatterns[e.defaultMatchWidth], c = n.match(t);
|
|
40240
40242
|
if (!c)
|
|
@@ -40326,13 +40328,13 @@ var W1 = /^(\d+)(th|st|nd|rd)?/i, G1 = /\d+/i, J1 = {
|
|
|
40326
40328
|
return parseInt(n, 10);
|
|
40327
40329
|
}
|
|
40328
40330
|
}),
|
|
40329
|
-
era:
|
|
40331
|
+
era: ao({
|
|
40330
40332
|
matchPatterns: J1,
|
|
40331
40333
|
defaultMatchWidth: "wide",
|
|
40332
40334
|
parsePatterns: Z1,
|
|
40333
40335
|
defaultParseWidth: "any"
|
|
40334
40336
|
}),
|
|
40335
|
-
quarter:
|
|
40337
|
+
quarter: ao({
|
|
40336
40338
|
matchPatterns: K1,
|
|
40337
40339
|
defaultMatchWidth: "wide",
|
|
40338
40340
|
parsePatterns: X1,
|
|
@@ -40341,19 +40343,19 @@ var W1 = /^(\d+)(th|st|nd|rd)?/i, G1 = /\d+/i, J1 = {
|
|
|
40341
40343
|
return n + 1;
|
|
40342
40344
|
}
|
|
40343
40345
|
}),
|
|
40344
|
-
month:
|
|
40346
|
+
month: ao({
|
|
40345
40347
|
matchPatterns: Y1,
|
|
40346
40348
|
defaultMatchWidth: "wide",
|
|
40347
40349
|
parsePatterns: Q1,
|
|
40348
40350
|
defaultParseWidth: "any"
|
|
40349
40351
|
}),
|
|
40350
|
-
day:
|
|
40352
|
+
day: ao({
|
|
40351
40353
|
matchPatterns: _1,
|
|
40352
40354
|
defaultMatchWidth: "wide",
|
|
40353
40355
|
parsePatterns: $1,
|
|
40354
40356
|
defaultParseWidth: "any"
|
|
40355
40357
|
}),
|
|
40356
|
-
dayPeriod:
|
|
40358
|
+
dayPeriod: ao({
|
|
40357
40359
|
matchPatterns: eg,
|
|
40358
40360
|
defaultMatchWidth: "any",
|
|
40359
40361
|
parsePatterns: ng,
|
|
@@ -40556,7 +40558,7 @@ const ag = (e) => {
|
|
|
40556
40558
|
const o = fn();
|
|
40557
40559
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
40558
40560
|
/* @__PURE__ */ r.jsx("img", { height: 20, width: 20, src: i }),
|
|
40559
|
-
/* @__PURE__ */ r.jsx(Z, { normalTextColor: !0, title: e, children:
|
|
40561
|
+
/* @__PURE__ */ r.jsx(Z, { normalTextColor: !0, title: e, children: Ii(e) }),
|
|
40560
40562
|
!o && /* @__PURE__ */ r.jsx(Z, { normalTextColor: !0, children: (n == null ? void 0 : n.recommendedSymbol) ?? (n == null ? void 0 : n.symbol) })
|
|
40561
40563
|
] });
|
|
40562
40564
|
}, lg = V(he)`
|
|
@@ -40775,7 +40777,7 @@ const ag = (e) => {
|
|
|
40775
40777
|
...n
|
|
40776
40778
|
}) => {
|
|
40777
40779
|
const i = jc(
|
|
40778
|
-
|
|
40780
|
+
Ji(() => /* @__PURE__ */ r.jsx(fg, { ...n }))
|
|
40779
40781
|
), t = Qm(e, { onClick: () => {
|
|
40780
40782
|
i.show();
|
|
40781
40783
|
} });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skip-go/widget",
|
|
3
3
|
"description": "Swap widget",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.17",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/skip-mev/skip-go",
|
|
7
7
|
"directory": "packages/widget"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@penumbra-zone/transport-dom": "^7.5.0",
|
|
40
40
|
"@r2wc/react-to-web-component": "^2.0.3",
|
|
41
41
|
"@radix-ui/react-dialog": "^1.1.1",
|
|
42
|
-
"@skip-go/client": "0.14.
|
|
42
|
+
"@skip-go/client": "0.14.8",
|
|
43
43
|
"@solana/spl-token": "^0.4.8",
|
|
44
44
|
"@solana/wallet-adapter-backpack": "^0.1.14",
|
|
45
45
|
"@solana/wallet-adapter-coinbase": "^0.1.19",
|