@rash2x/bridge-widget 0.6.68 → 0.6.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/evaa-bridge.cjs +1 -1
- package/dist/evaa-bridge.mjs +1 -1
- package/dist/{index-D3Rdww1n.cjs → index-BdIFtxSM.cjs} +32 -3
- package/dist/index-BdIFtxSM.cjs.map +1 -0
- package/dist/{index-qL-cBcPF.js → index-CkDt6lc8.js} +2 -2
- package/dist/{index-qL-cBcPF.js.map → index-CkDt6lc8.js.map} +1 -1
- package/dist/{index-BwdYKUP-.js → index-DV105AWa.js} +32 -3
- package/dist/index-DV105AWa.js.map +1 -0
- package/dist/{index-DNsYRKu0.cjs → index-Qp6MEGwg.cjs} +2 -2
- package/dist/{index-DNsYRKu0.cjs.map → index-Qp6MEGwg.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BwdYKUP-.js.map +0 -1
- package/dist/index-D3Rdww1n.cjs.map +0 -1
package/dist/evaa-bridge.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-BdIFtxSM.cjs");
|
|
4
4
|
exports.DEFAULT_SLIPPAGE_BPS = index.DEFAULT_SLIPPAGE_BPS;
|
|
5
5
|
exports.EvaaBridge = index.EvaaBridge;
|
|
6
6
|
exports.RoutePriority = index.RoutePriority;
|
package/dist/evaa-bridge.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L, d, f, e, D, Q, H, z, W, U, w, s, v, r, p, q, G, Z, a5, $, a2, x, A, y, a0, B, _, a3, a4, S, a1, P, I, V, Y, a6, J, K, X, F, N, t, o, i, u, l, m, j, n, h, k } from "./index-
|
|
1
|
+
import { L, d, f, e, D, Q, H, z, W, U, w, s, v, r, p, q, G, Z, a5, $, a2, x, A, y, a0, B, _, a3, a4, S, a1, P, I, V, Y, a6, J, K, X, F, N, t, o, i, u, l, m, j, n, h, k } from "./index-DV105AWa.js";
|
|
2
2
|
export {
|
|
3
3
|
L as DEFAULT_SLIPPAGE_BPS,
|
|
4
4
|
d as EvaaBridge,
|
|
@@ -4245,7 +4245,36 @@ const CircleLinedIcon = (props) => {
|
|
|
4245
4245
|
const DevStatusControls = () => {
|
|
4246
4246
|
const { current, updateStatus, setSrcHash, setError } = useTransactionStore();
|
|
4247
4247
|
if (!current) return null;
|
|
4248
|
-
|
|
4248
|
+
const statuses = [
|
|
4249
|
+
"executing",
|
|
4250
|
+
"approving",
|
|
4251
|
+
"processing",
|
|
4252
|
+
"completed",
|
|
4253
|
+
"failed"
|
|
4254
|
+
];
|
|
4255
|
+
const handleStatusChange = (status) => {
|
|
4256
|
+
if (status === "failed") {
|
|
4257
|
+
setError("UNKNOWN_ERROR", { message: "Test error message" });
|
|
4258
|
+
} else {
|
|
4259
|
+
updateStatus(status);
|
|
4260
|
+
}
|
|
4261
|
+
if ((status === "processing" || status === "completed" || status === "failed") && !current.srcTxHash) {
|
|
4262
|
+
setSrcHash(
|
|
4263
|
+
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
|
|
4264
|
+
);
|
|
4265
|
+
}
|
|
4266
|
+
};
|
|
4267
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "fixed bottom-0 left-4 z-100", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-1", children: statuses.map((status) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4268
|
+
button.Button,
|
|
4269
|
+
{
|
|
4270
|
+
size: "sm",
|
|
4271
|
+
variant: current.status === status ? "default" : "outline",
|
|
4272
|
+
onClick: () => handleStatusChange(status),
|
|
4273
|
+
className: "text-xs h-7 px-2",
|
|
4274
|
+
children: status
|
|
4275
|
+
},
|
|
4276
|
+
status
|
|
4277
|
+
)) }) });
|
|
4249
4278
|
};
|
|
4250
4279
|
const ProgressStep = ({
|
|
4251
4280
|
icon = /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "w-16 h-16 animate-spin" }),
|
|
@@ -25827,7 +25856,7 @@ class WalletConnectModal {
|
|
|
25827
25856
|
}
|
|
25828
25857
|
async initUi() {
|
|
25829
25858
|
if (typeof window !== "undefined") {
|
|
25830
|
-
await Promise.resolve().then(() => require("./index-
|
|
25859
|
+
await Promise.resolve().then(() => require("./index-Qp6MEGwg.cjs"));
|
|
25831
25860
|
const modal = document.createElement("wcm-modal");
|
|
25832
25861
|
document.body.insertAdjacentElement("beforeend", modal);
|
|
25833
25862
|
OptionsCtrl.setIsUiLoaded(true);
|
|
@@ -26594,4 +26623,4 @@ exports.useSettingsStore = useSettingsStore;
|
|
|
26594
26623
|
exports.useSwapModel = useSwapModel;
|
|
26595
26624
|
exports.useTokensStore = useTokensStore;
|
|
26596
26625
|
exports.useTransactionStore = useTransactionStore;
|
|
26597
|
-
//# sourceMappingURL=index-
|
|
26626
|
+
//# sourceMappingURL=index-BdIFtxSM.cjs.map
|