@rash2x/bridge-widget 0.1.0 → 0.1.3
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 +69 -170
- package/dist/evaa-bridge.cjs.map +1 -1
- package/dist/evaa-bridge.mjs +67 -168
- package/dist/evaa-bridge.mjs.map +1 -1
- package/dist/index.d.ts +624 -0
- package/dist/styles.css +104 -125
- package/package.json +19 -14
- package/dist/assets/fonts/Gilroy-Black.ttf +0 -0
- package/dist/assets/fonts/Gilroy-Bold.ttf +0 -0
- package/dist/assets/fonts/Gilroy-ExtraBold.ttf +0 -0
- package/dist/assets/fonts/Gilroy-Heavy.ttf +0 -0
- package/dist/assets/fonts/Gilroy-Light.ttf +0 -0
- package/dist/assets/fonts/Gilroy-Medium.ttf +0 -0
- package/dist/assets/fonts/Gilroy-Regular.ttf +0 -0
- package/dist/assets/fonts/Gilroy-SemiBold.ttf +0 -0
- package/dist/assets/fonts/Gilroy-Thin.ttf +0 -0
- package/dist/assets/fonts/Gilroy-UltraLight.ttf +0 -0
- package/dist/assets/fonts/fonts.css +0 -81
- package/dist/assets/fonts/hanson-bold.woff +0 -0
- package/dist/assets/fonts/hanson-bold.woff2 +0 -0
- package/dist/tonconnect-manifest.json +0 -7
- package/dist/vite.svg +0 -1
package/dist/evaa-bridge.cjs
CHANGED
|
@@ -36,6 +36,7 @@ const reactDom = require("react-dom");
|
|
|
36
36
|
const framerMotion = require("framer-motion");
|
|
37
37
|
const TooltipPrimitive = require("@radix-ui/react-tooltip");
|
|
38
38
|
const wagmi = require("wagmi");
|
|
39
|
+
const tronwalletAdapterReactHooks = require("@tronweb3/tronwallet-adapter-react-hooks");
|
|
39
40
|
const uiReact = require("@tonconnect/ui-react");
|
|
40
41
|
const reactQuery = require("@tanstack/react-query");
|
|
41
42
|
const core = require("@ton/core");
|
|
@@ -47,6 +48,7 @@ const connectkit = require("connectkit");
|
|
|
47
48
|
const i18next = require("i18next");
|
|
48
49
|
const sonner = require("sonner");
|
|
49
50
|
const ethers = require("ethers");
|
|
51
|
+
const tronwalletAdapters = require("@tronweb3/tronwallet-adapters");
|
|
50
52
|
function _interopNamespaceDefault(e) {
|
|
51
53
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
52
54
|
if (e) {
|
|
@@ -1281,144 +1283,11 @@ function Input({ className, type, ...props }) {
|
|
|
1281
1283
|
}
|
|
1282
1284
|
);
|
|
1283
1285
|
}
|
|
1284
|
-
function getDefaultExportFromCjs(x) {
|
|
1285
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1286
|
-
}
|
|
1287
|
-
function getAugmentedNamespace(n) {
|
|
1288
|
-
if (Object.prototype.hasOwnProperty.call(n, "__esModule")) return n;
|
|
1289
|
-
var f = n.default;
|
|
1290
|
-
if (typeof f == "function") {
|
|
1291
|
-
var a = function a2() {
|
|
1292
|
-
var isInstance = false;
|
|
1293
|
-
try {
|
|
1294
|
-
isInstance = this instanceof a2;
|
|
1295
|
-
} catch {
|
|
1296
|
-
}
|
|
1297
|
-
if (isInstance) {
|
|
1298
|
-
return Reflect.construct(f, arguments, this.constructor);
|
|
1299
|
-
}
|
|
1300
|
-
return f.apply(this, arguments);
|
|
1301
|
-
};
|
|
1302
|
-
a.prototype = f.prototype;
|
|
1303
|
-
} else a = {};
|
|
1304
|
-
Object.defineProperty(a, "__esModule", { value: true });
|
|
1305
|
-
Object.keys(n).forEach(function(k) {
|
|
1306
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
1307
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
1308
|
-
enumerable: true,
|
|
1309
|
-
get: function() {
|
|
1310
|
-
return n[k];
|
|
1311
|
-
}
|
|
1312
|
-
});
|
|
1313
|
-
});
|
|
1314
|
-
return a;
|
|
1315
|
-
}
|
|
1316
|
-
var NetworkType;
|
|
1317
|
-
(function(NetworkType2) {
|
|
1318
|
-
NetworkType2["Mainnet"] = "Mainnet";
|
|
1319
|
-
NetworkType2["Shasta"] = "Shasta";
|
|
1320
|
-
NetworkType2["Nile"] = "Nile";
|
|
1321
|
-
NetworkType2["Unknown"] = "Unknown";
|
|
1322
|
-
})(NetworkType || (NetworkType = {}));
|
|
1323
|
-
var ChainNetwork;
|
|
1324
|
-
(function(ChainNetwork2) {
|
|
1325
|
-
ChainNetwork2["Mainnet"] = "Mainnet";
|
|
1326
|
-
ChainNetwork2["Shasta"] = "Shasta";
|
|
1327
|
-
ChainNetwork2["Nile"] = "Nile";
|
|
1328
|
-
})(ChainNetwork || (ChainNetwork = {}));
|
|
1329
|
-
function printError() {
|
|
1330
|
-
console.error(`
|
|
1331
|
-
You are using WalletContext without provide the WalletContext.Provider.
|
|
1332
|
-
Please wrap your sub-components with a WalletProvider and provide required values.
|
|
1333
|
-
`);
|
|
1334
|
-
}
|
|
1335
|
-
const DEFAULT_CONTEXT = {
|
|
1336
|
-
autoConnect: false,
|
|
1337
|
-
connecting: false,
|
|
1338
|
-
connected: false,
|
|
1339
|
-
disconnecting: false,
|
|
1340
|
-
/* eslint-disable */
|
|
1341
|
-
select(_name) {
|
|
1342
|
-
printError();
|
|
1343
|
-
},
|
|
1344
|
-
connect() {
|
|
1345
|
-
printError();
|
|
1346
|
-
return Promise.reject();
|
|
1347
|
-
},
|
|
1348
|
-
disconnect() {
|
|
1349
|
-
printError();
|
|
1350
|
-
return Promise.reject();
|
|
1351
|
-
},
|
|
1352
|
-
signTransaction(_transaction) {
|
|
1353
|
-
printError();
|
|
1354
|
-
return Promise.reject();
|
|
1355
|
-
},
|
|
1356
|
-
signMessage(_message) {
|
|
1357
|
-
printError();
|
|
1358
|
-
return Promise.reject();
|
|
1359
|
-
}
|
|
1360
|
-
/* eslint-enable */
|
|
1361
|
-
};
|
|
1362
|
-
Object.defineProperty(DEFAULT_CONTEXT, "wallets", {
|
|
1363
|
-
get() {
|
|
1364
|
-
printError();
|
|
1365
|
-
return [];
|
|
1366
|
-
}
|
|
1367
|
-
});
|
|
1368
|
-
Object.defineProperty(DEFAULT_CONTEXT, "wallet", {
|
|
1369
|
-
get() {
|
|
1370
|
-
printError();
|
|
1371
|
-
return null;
|
|
1372
|
-
}
|
|
1373
|
-
});
|
|
1374
|
-
Object.defineProperty(DEFAULT_CONTEXT, "address", {
|
|
1375
|
-
get() {
|
|
1376
|
-
printError();
|
|
1377
|
-
return null;
|
|
1378
|
-
}
|
|
1379
|
-
});
|
|
1380
|
-
const WalletContext = require$$0.createContext(DEFAULT_CONTEXT);
|
|
1381
|
-
function useWallet() {
|
|
1382
|
-
return require$$0.useContext(WalletContext);
|
|
1383
|
-
}
|
|
1384
|
-
(function(thisArg, _arguments, P, generator) {
|
|
1385
|
-
function adopt(value) {
|
|
1386
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
1387
|
-
resolve(value);
|
|
1388
|
-
});
|
|
1389
|
-
}
|
|
1390
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
1391
|
-
function fulfilled(value) {
|
|
1392
|
-
try {
|
|
1393
|
-
step(generator.next(value));
|
|
1394
|
-
} catch (e) {
|
|
1395
|
-
reject(e);
|
|
1396
|
-
}
|
|
1397
|
-
}
|
|
1398
|
-
function rejected(value) {
|
|
1399
|
-
try {
|
|
1400
|
-
step(generator["throw"](value));
|
|
1401
|
-
} catch (e) {
|
|
1402
|
-
reject(e);
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1405
|
-
function step(result) {
|
|
1406
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
1407
|
-
}
|
|
1408
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1409
|
-
});
|
|
1410
|
-
});
|
|
1411
|
-
({
|
|
1412
|
-
"0x2b6653dc": NetworkType.Mainnet,
|
|
1413
|
-
"0x94a9059e": NetworkType.Shasta,
|
|
1414
|
-
"0xcd8690dc": NetworkType.Nile
|
|
1415
|
-
});
|
|
1416
|
-
const TronLinkAdapterName = "TronLink";
|
|
1417
1286
|
function useAddresses() {
|
|
1418
1287
|
const { fromChain, toChain } = useChainsStore();
|
|
1419
1288
|
const { address: evmAddress } = wagmi.useAccount();
|
|
1420
1289
|
const tonAddress = uiReact.useTonAddress();
|
|
1421
|
-
const { address: tronAddress } = useWallet();
|
|
1290
|
+
const { address: tronAddress } = tronwalletAdapterReactHooks.useWallet();
|
|
1422
1291
|
const srcAddress = require$$0.useMemo(() => {
|
|
1423
1292
|
if (!fromChain?.chainKey) return void 0;
|
|
1424
1293
|
const chainKey = fromChain.chainKey.toLowerCase();
|
|
@@ -1797,7 +1666,7 @@ const TokenRow = ({
|
|
|
1797
1666
|
Button,
|
|
1798
1667
|
{
|
|
1799
1668
|
onClick: onPick,
|
|
1800
|
-
className: `w-full
|
|
1669
|
+
className: `w-full h-[50px] cursor-pointer bg-transparent flex shadow-none items-center justify-between gap-2.5 px-5 py-2.5 hover:bg-modal-item-hover rounded-12 transition-[300] ${isSelected ? "border border-ring" : ""}`,
|
|
1801
1670
|
children: [
|
|
1802
1671
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
1803
1672
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3499,7 +3368,7 @@ const ReceiveRow = () => {
|
|
|
3499
3368
|
label: t("transaction.route"),
|
|
3500
3369
|
right: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
3501
3370
|
/* @__PURE__ */ jsxRuntime.jsx(StargateIcon, { className: "size-4" }),
|
|
3502
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground font-normal text-sm
|
|
3371
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground font-normal text-sm leading-[100%]", children: routeText }),
|
|
3503
3372
|
hasGasOnDestination && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs bg-settings-active text-settings-active-foreground px-1.5 py-0.5 rounded", children: t(`settings.gasPresets.${gasPreset}`) })
|
|
3504
3373
|
] })
|
|
3505
3374
|
}
|
|
@@ -4334,7 +4203,7 @@ const WalletSelectModal = ({
|
|
|
4334
4203
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4335
4204
|
Button,
|
|
4336
4205
|
{
|
|
4337
|
-
className: "w-full
|
|
4206
|
+
className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-between gap-2.5 px-5 py-2.5 hover:bg-muted h-auto rounded-12 transition-[300]",
|
|
4338
4207
|
children: [
|
|
4339
4208
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-3 min-w-0", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2.5", children: [
|
|
4340
4209
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-7.5 h-7.5 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "size-7.5" }) }),
|
|
@@ -4364,7 +4233,7 @@ const WalletSelectModal = ({
|
|
|
4364
4233
|
type: "button",
|
|
4365
4234
|
onClick: show,
|
|
4366
4235
|
disabled: isConnecting,
|
|
4367
|
-
className: "w-full
|
|
4236
|
+
className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-between gap-2.5 px-5 py-2.5 hover:bg-muted h-auto rounded-12 transition-[300] disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4368
4237
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 min-w-0", children: [
|
|
4369
4238
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-7.5 h-7.5 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "size-7.5" }) }),
|
|
4370
4239
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start min-w-0", children: [
|
|
@@ -4381,7 +4250,7 @@ const WalletSelectModal = ({
|
|
|
4381
4250
|
{
|
|
4382
4251
|
onClick: () => handleWalletSelect(wallet.id),
|
|
4383
4252
|
disabled: !wallet.enabled,
|
|
4384
|
-
className: "w-full
|
|
4253
|
+
className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-between gap-2.5 px-5 py-2.5 hover:bg-muted h-auto rounded-12 transition-[300] disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4385
4254
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 min-w-0", children: [
|
|
4386
4255
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-7.5 h-7.5 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "size-7.5" }) }),
|
|
4387
4256
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start min-w-0", children: [
|
|
@@ -5015,6 +4884,38 @@ const TransactionSuccessVector = (props) => {
|
|
|
5015
4884
|
)
|
|
5016
4885
|
] });
|
|
5017
4886
|
};
|
|
4887
|
+
function getDefaultExportFromCjs(x) {
|
|
4888
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
4889
|
+
}
|
|
4890
|
+
function getAugmentedNamespace(n) {
|
|
4891
|
+
if (Object.prototype.hasOwnProperty.call(n, "__esModule")) return n;
|
|
4892
|
+
var f = n.default;
|
|
4893
|
+
if (typeof f == "function") {
|
|
4894
|
+
var a = function a2() {
|
|
4895
|
+
var isInstance = false;
|
|
4896
|
+
try {
|
|
4897
|
+
isInstance = this instanceof a2;
|
|
4898
|
+
} catch {
|
|
4899
|
+
}
|
|
4900
|
+
if (isInstance) {
|
|
4901
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
4902
|
+
}
|
|
4903
|
+
return f.apply(this, arguments);
|
|
4904
|
+
};
|
|
4905
|
+
a.prototype = f.prototype;
|
|
4906
|
+
} else a = {};
|
|
4907
|
+
Object.defineProperty(a, "__esModule", { value: true });
|
|
4908
|
+
Object.keys(n).forEach(function(k) {
|
|
4909
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
4910
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
4911
|
+
enumerable: true,
|
|
4912
|
+
get: function() {
|
|
4913
|
+
return n[k];
|
|
4914
|
+
}
|
|
4915
|
+
});
|
|
4916
|
+
});
|
|
4917
|
+
return a;
|
|
4918
|
+
}
|
|
5018
4919
|
var fireworks$1 = {};
|
|
5019
4920
|
var presets = {};
|
|
5020
4921
|
var dist = {};
|
|
@@ -5022,7 +4923,7 @@ var module$1 = {};
|
|
|
5022
4923
|
(function main(global, module2, isWorker, workerSize) {
|
|
5023
4924
|
var canUseWorker = !!(global.Worker && global.Blob && global.Promise && global.OffscreenCanvas && global.OffscreenCanvasRenderingContext2D && global.HTMLCanvasElement && global.HTMLCanvasElement.prototype.transferControlToOffscreen && global.URL && global.URL.createObjectURL);
|
|
5024
4925
|
var canUsePaths = typeof Path2D === "function" && typeof DOMMatrix === "function";
|
|
5025
|
-
var canDrawBitmap = function() {
|
|
4926
|
+
var canDrawBitmap = (function() {
|
|
5026
4927
|
if (!global.OffscreenCanvas) {
|
|
5027
4928
|
return false;
|
|
5028
4929
|
}
|
|
@@ -5036,7 +4937,7 @@ var module$1 = {};
|
|
|
5036
4937
|
return false;
|
|
5037
4938
|
}
|
|
5038
4939
|
return true;
|
|
5039
|
-
}();
|
|
4940
|
+
})();
|
|
5040
4941
|
function noop() {
|
|
5041
4942
|
}
|
|
5042
4943
|
function promise(func) {
|
|
@@ -5048,7 +4949,7 @@ var module$1 = {};
|
|
|
5048
4949
|
func(noop, noop);
|
|
5049
4950
|
return null;
|
|
5050
4951
|
}
|
|
5051
|
-
var bitmapMapper = /* @__PURE__ */ function(skipTransform, map) {
|
|
4952
|
+
var bitmapMapper = /* @__PURE__ */ (function(skipTransform, map) {
|
|
5052
4953
|
return {
|
|
5053
4954
|
transform: function(bitmap) {
|
|
5054
4955
|
if (skipTransform) {
|
|
@@ -5067,8 +4968,8 @@ var module$1 = {};
|
|
|
5067
4968
|
map.clear();
|
|
5068
4969
|
}
|
|
5069
4970
|
};
|
|
5070
|
-
}(canDrawBitmap, /* @__PURE__ */ new Map());
|
|
5071
|
-
var raf = function() {
|
|
4971
|
+
})(canDrawBitmap, /* @__PURE__ */ new Map());
|
|
4972
|
+
var raf = (function() {
|
|
5072
4973
|
var TIME = Math.floor(1e3 / 60);
|
|
5073
4974
|
var frame, cancel;
|
|
5074
4975
|
var frames = {};
|
|
@@ -5101,8 +5002,8 @@ var module$1 = {};
|
|
|
5101
5002
|
};
|
|
5102
5003
|
}
|
|
5103
5004
|
return { frame, cancel };
|
|
5104
|
-
}();
|
|
5105
|
-
var getWorker = /* @__PURE__ */ function() {
|
|
5005
|
+
})();
|
|
5006
|
+
var getWorker = /* @__PURE__ */ (function() {
|
|
5106
5007
|
var worker;
|
|
5107
5008
|
var prom;
|
|
5108
5009
|
var resolves = {};
|
|
@@ -5183,7 +5084,7 @@ var module$1 = {};
|
|
|
5183
5084
|
}
|
|
5184
5085
|
return worker;
|
|
5185
5086
|
};
|
|
5186
|
-
}();
|
|
5087
|
+
})();
|
|
5187
5088
|
var defaults = {
|
|
5188
5089
|
particleCount: 50,
|
|
5189
5090
|
angle: 90,
|
|
@@ -5703,7 +5604,7 @@ var module$1 = {};
|
|
|
5703
5604
|
module2.exports.create = confettiCannon;
|
|
5704
5605
|
module2.exports.shapeFromPath = shapeFromPath;
|
|
5705
5606
|
module2.exports.shapeFromText = shapeFromText;
|
|
5706
|
-
})(function() {
|
|
5607
|
+
})((function() {
|
|
5707
5608
|
if (typeof window !== "undefined") {
|
|
5708
5609
|
return window;
|
|
5709
5610
|
}
|
|
@@ -5711,7 +5612,7 @@ var module$1 = {};
|
|
|
5711
5612
|
return self;
|
|
5712
5613
|
}
|
|
5713
5614
|
return this || {};
|
|
5714
|
-
}(), module$1, false);
|
|
5615
|
+
})(), module$1, false);
|
|
5715
5616
|
const confetti_module = module$1.exports;
|
|
5716
5617
|
var create = module$1.exports.create;
|
|
5717
5618
|
const confetti_module$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -5735,7 +5636,7 @@ function requireDist() {
|
|
|
5735
5636
|
};
|
|
5736
5637
|
return __assign.apply(this, arguments);
|
|
5737
5638
|
};
|
|
5738
|
-
var __createBinding = dist && dist.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
5639
|
+
var __createBinding = dist && dist.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
5739
5640
|
if (k2 === void 0) k2 = k;
|
|
5740
5641
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5741
5642
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -5744,13 +5645,13 @@ function requireDist() {
|
|
|
5744
5645
|
} };
|
|
5745
5646
|
}
|
|
5746
5647
|
Object.defineProperty(o, k2, desc);
|
|
5747
|
-
} : function(o, m, k, k2) {
|
|
5648
|
+
}) : (function(o, m, k, k2) {
|
|
5748
5649
|
if (k2 === void 0) k2 = k;
|
|
5749
5650
|
o[k2] = m[k];
|
|
5750
|
-
});
|
|
5751
|
-
var __setModuleDefault = dist && dist.__setModuleDefault || (Object.create ? function(o, v) {
|
|
5651
|
+
}));
|
|
5652
|
+
var __setModuleDefault = dist && dist.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
5752
5653
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
5753
|
-
} : function(o, v) {
|
|
5654
|
+
}) : function(o, v) {
|
|
5754
5655
|
o["default"] = v;
|
|
5755
5656
|
});
|
|
5756
5657
|
var __importStar = dist && dist.__importStar || function(mod) {
|
|
@@ -5821,7 +5722,7 @@ function requirePresets() {
|
|
|
5821
5722
|
};
|
|
5822
5723
|
return __assign.apply(this, arguments);
|
|
5823
5724
|
};
|
|
5824
|
-
var __createBinding = presets && presets.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
5725
|
+
var __createBinding = presets && presets.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
5825
5726
|
if (k2 === void 0) k2 = k;
|
|
5826
5727
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5827
5728
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -5830,13 +5731,13 @@ function requirePresets() {
|
|
|
5830
5731
|
} };
|
|
5831
5732
|
}
|
|
5832
5733
|
Object.defineProperty(o, k2, desc);
|
|
5833
|
-
} : function(o, m, k, k2) {
|
|
5734
|
+
}) : (function(o, m, k, k2) {
|
|
5834
5735
|
if (k2 === void 0) k2 = k;
|
|
5835
5736
|
o[k2] = m[k];
|
|
5836
|
-
});
|
|
5837
|
-
var __setModuleDefault = presets && presets.__setModuleDefault || (Object.create ? function(o, v) {
|
|
5737
|
+
}));
|
|
5738
|
+
var __setModuleDefault = presets && presets.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
5838
5739
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
5839
|
-
} : function(o, v) {
|
|
5740
|
+
}) : function(o, v) {
|
|
5840
5741
|
o["default"] = v;
|
|
5841
5742
|
});
|
|
5842
5743
|
var __importStar = presets && presets.__importStar || function(mod) {
|
|
@@ -5920,7 +5821,7 @@ function requireConductor() {
|
|
|
5920
5821
|
if (hasRequiredConductor) return conductor;
|
|
5921
5822
|
hasRequiredConductor = 1;
|
|
5922
5823
|
Object.defineProperty(conductor, "__esModule", { value: true });
|
|
5923
|
-
var Conductor = /* @__PURE__ */ function() {
|
|
5824
|
+
var Conductor = /* @__PURE__ */ (function() {
|
|
5924
5825
|
function Conductor2(_a) {
|
|
5925
5826
|
var confetti = _a.confetti, decorateOptions = _a.decorateOptions;
|
|
5926
5827
|
var _this = this;
|
|
@@ -5953,7 +5854,7 @@ function requireConductor() {
|
|
|
5953
5854
|
this.decorateOptions = decorateOptions;
|
|
5954
5855
|
}
|
|
5955
5856
|
return Conductor2;
|
|
5956
|
-
}();
|
|
5857
|
+
})();
|
|
5957
5858
|
conductor.default = Conductor;
|
|
5958
5859
|
return conductor;
|
|
5959
5860
|
}
|
|
@@ -5973,7 +5874,7 @@ var hasRequiredFireworks$1;
|
|
|
5973
5874
|
function requireFireworks$1() {
|
|
5974
5875
|
if (hasRequiredFireworks$1) return fireworks;
|
|
5975
5876
|
hasRequiredFireworks$1 = 1;
|
|
5976
|
-
var __extends = fireworks && fireworks.__extends || /* @__PURE__ */ function() {
|
|
5877
|
+
var __extends = fireworks && fireworks.__extends || /* @__PURE__ */ (function() {
|
|
5977
5878
|
var extendStatics = function(d, b) {
|
|
5978
5879
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
5979
5880
|
d2.__proto__ = b2;
|
|
@@ -5991,7 +5892,7 @@ function requireFireworks$1() {
|
|
|
5991
5892
|
}
|
|
5992
5893
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
5993
5894
|
};
|
|
5994
|
-
}();
|
|
5895
|
+
})();
|
|
5995
5896
|
var __read = fireworks && fireworks.__read || function(o, n) {
|
|
5996
5897
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
5997
5898
|
if (!m) return o;
|
|
@@ -6024,7 +5925,7 @@ function requireFireworks$1() {
|
|
|
6024
5925
|
Object.defineProperty(fireworks, "__esModule", { value: true });
|
|
6025
5926
|
var index_1 = __importDefault(requireConductor());
|
|
6026
5927
|
var randomInRange_1 = __importDefault(requireRandomInRange());
|
|
6027
|
-
var FireworksConductor = function(_super) {
|
|
5928
|
+
var FireworksConductor = (function(_super) {
|
|
6028
5929
|
__extends(FireworksConductor2, _super);
|
|
6029
5930
|
function FireworksConductor2() {
|
|
6030
5931
|
var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;
|
|
@@ -6055,7 +5956,7 @@ function requireFireworks$1() {
|
|
|
6055
5956
|
return _this;
|
|
6056
5957
|
}
|
|
6057
5958
|
return FireworksConductor2;
|
|
6058
|
-
}(index_1.default);
|
|
5959
|
+
})(index_1.default);
|
|
6059
5960
|
fireworks.default = FireworksConductor;
|
|
6060
5961
|
return fireworks;
|
|
6061
5962
|
}
|
|
@@ -7147,7 +7048,7 @@ class TronChainStrategy {
|
|
|
7147
7048
|
if (!tronWeb && (typeof window === "undefined" || !window.tronLink)) {
|
|
7148
7049
|
throw new WalletNotFoundError("tron", "TronLink");
|
|
7149
7050
|
}
|
|
7150
|
-
this.config.tronSelect(TronLinkAdapterName);
|
|
7051
|
+
this.config.tronSelect(tronwalletAdapters.TronLinkAdapterName);
|
|
7151
7052
|
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
7152
7053
|
await this.config.tronConnect();
|
|
7153
7054
|
}
|
|
@@ -7692,7 +7593,7 @@ const EvaaBridgeWithProviders = (props) => {
|
|
|
7692
7593
|
select: tronSelect,
|
|
7693
7594
|
connect: tronConnect,
|
|
7694
7595
|
disconnect: tronDisconnect
|
|
7695
|
-
} = useWallet();
|
|
7596
|
+
} = tronwalletAdapterReactHooks.useWallet();
|
|
7696
7597
|
const { setTonConnected, setMetaMaskConnected, setTronConnected } = useConnectedWalletsStore();
|
|
7697
7598
|
require$$0.useEffect(() => {
|
|
7698
7599
|
setTonConnected(!!tonAddress);
|
|
@@ -7729,7 +7630,6 @@ const EvaaBridgeWithProviders = (props) => {
|
|
|
7729
7630
|
};
|
|
7730
7631
|
const EvaaBridgeContent = ({
|
|
7731
7632
|
className,
|
|
7732
|
-
theme,
|
|
7733
7633
|
onInitialized,
|
|
7734
7634
|
onAmountChange,
|
|
7735
7635
|
onChainChange
|
|
@@ -7831,11 +7731,10 @@ const EvaaBridgeContent = ({
|
|
|
7831
7731
|
"section",
|
|
7832
7732
|
{
|
|
7833
7733
|
className: cn(
|
|
7834
|
-
"p-5 bg-card max-w-md w-full rounded-3xl mx-auto flex flex-col gap-4
|
|
7734
|
+
"p-5 bg-card max-w-md w-full rounded-3xl mx-auto flex flex-col gap-4 relative",
|
|
7835
7735
|
className
|
|
7836
7736
|
),
|
|
7837
7737
|
ref: modalContainerRef,
|
|
7838
|
-
"data-theme": theme,
|
|
7839
7738
|
children: [
|
|
7840
7739
|
/* @__PURE__ */ jsxRuntime.jsx(FormHeader, { modalContainer: modalContainerRef.current }),
|
|
7841
7740
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-[1px]", children: [
|