@directcryptopay/sdk 0.1.0 → 0.2.1
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/README.md +202 -256
- package/dist/{add-KF4m4jFK.js → add-sji6scSD.js} +1 -1
- package/dist/{all-wallets-D6NAjQgX.js → all-wallets-B4H-890E.js} +1 -1
- package/dist/{app-store-D7TTn-EO.js → app-store-Z433s97G.js} +1 -1
- package/dist/{apple-DjX2E2hE.js → apple-b8Lxj7nb.js} +1 -1
- package/dist/{arrow-bottom-C0YrNJYB.js → arrow-bottom-M9oWWo_9.js} +1 -1
- package/dist/{arrow-bottom-circle-Dlxvx_XG.js → arrow-bottom-circle-N9c4CXY1.js} +1 -1
- package/dist/{arrow-left-x8_-lUyK.js → arrow-left-Dw8AKfwf.js} +1 -1
- package/dist/{arrow-right-BTZybj80.js → arrow-right-DwLQZSC_.js} +1 -1
- package/dist/{arrow-top-LzH7iLCp.js → arrow-top-zhUjkBe1.js} +1 -1
- package/dist/{bank-23jp-IV_.js → bank-CbQdnILK.js} +1 -1
- package/dist/{browser-EjoorDid.js → browser-xAqNwt7z.js} +1 -1
- package/dist/{card-DGgWwtwC.js → card-Dr1QBmWp.js} +1 -1
- package/dist/{ccip-BMANewTU.js → ccip-BIGqktC1.js} +6 -6
- package/dist/{checkmark-B1qcQhBo.js → checkmark-BhT1dTgG.js} +1 -1
- package/dist/{checkmark-bold-Cyc4IEEJ.js → checkmark-bold-CPB29wqQ.js} +1 -1
- package/dist/{chevron-bottom-ClHs08rB.js → chevron-bottom-BhNyx2II.js} +1 -1
- package/dist/{chevron-left-O8h_551_.js → chevron-left-CGuEjQlY.js} +1 -1
- package/dist/{chevron-right-DP3xpyIA.js → chevron-right-CvIRRsqZ.js} +1 -1
- package/dist/{chevron-top-CuwkBUs9.js → chevron-top-RSzCqjBd.js} +1 -1
- package/dist/{chrome-store-zfT_aJ3R.js → chrome-store-Cs8dAgs0.js} +1 -1
- package/dist/{clock-DHZqivIS.js → clock-fhZO5otC.js} +1 -1
- package/dist/{close-Cp9rNAw4.js → close-BPuztrdR.js} +1 -1
- package/dist/{coinPlaceholder-U7-T1KKQ.js → coinPlaceholder-C8X2i7Kh.js} +1 -1
- package/dist/{compass-Ds5-PRSR.js → compass-WMc5huk0.js} +1 -1
- package/dist/{copy-Jg4HdIMf.js → copy-DVAeT17y.js} +1 -1
- package/dist/core/api.d.ts +10 -1
- package/dist/core/wallet.d.ts +23 -2
- package/dist/{cursor-DmMevduB.js → cursor-BJ4YLXfy.js} +1 -1
- package/dist/{cursor-transparent-Dn9-1SV8.js → cursor-transparent-DN2fLQN4.js} +1 -1
- package/dist/dcp-sdk.umd.js +603 -603
- package/dist/dcp.d.ts +11 -1
- package/dist/{desktop-C4udXXlZ.js → desktop-6avxisBw.js} +1 -1
- package/dist/{disconnect-wd1BYLxt.js → disconnect-AReVI8Gk.js} +1 -1
- package/dist/{discord-DthxuCAP.js → discord-CxrI30BZ.js} +1 -1
- package/dist/{email-B3jSnUFE.js → email-B8dIIaay.js} +24 -24
- package/dist/{embedded-wallet-CJHmoBI2.js → embedded-wallet-C_5hF7rM.js} +24 -24
- package/dist/{etherscan-Cjp4xfMW.js → etherscan-BnAy8cIF.js} +1 -1
- package/dist/{exclamation-triangle-CRNR5WOy.js → exclamation-triangle-Bu7nHwx9.js} +1 -1
- package/dist/{extension-Cydk0mZt.js → extension-F0LIhvcf.js} +1 -1
- package/dist/{external-link-CuPTAoq9.js → external-link-CP6phyaM.js} +1 -1
- package/dist/{facebook-CghqXmdf.js → facebook-BtQ-Io2y.js} +1 -1
- package/dist/{farcaster-BREqMX4y.js → farcaster-BmaN1ugd.js} +1 -1
- package/dist/{filters-Dn_Ys7ew.js → filters-DpEwoOmy.js} +1 -1
- package/dist/{github-C-A7JmIY.js → github-q7qO9V-b.js} +1 -1
- package/dist/{google-CCdM_naE.js → google-DH_ZE8bW.js} +1 -1
- package/dist/{hashTypedData-D2Qmzscs.js → hashTypedData-ZH9ZnWu3.js} +6 -6
- package/dist/{help-circle-DIH4vyj3.js → help-circle-BAQVmKas.js} +1 -1
- package/dist/{id-DkJ0gBuy.js → id-Cj68Zwgo.js} +1 -1
- package/dist/{if-defined-BciplFKz.js → if-defined-CNte9B3N.js} +89 -89
- package/dist/{image-qMjyiXM0.js → image-BKJDw6N-.js} +1 -1
- package/dist/{index-BpXOsxzU.js → index-5mp7WkhV.js} +2 -2
- package/dist/{index-CX60z_g2.js → index-7toZMdtG.js} +32 -32
- package/dist/{index-CMPIqsB1.js → index-B1uKzdvN.js} +3 -3
- package/dist/{index-eW8y-mXH.js → index-BHFZVF-b.js} +3 -3
- package/dist/{index-DiHImG4L.js → index-BJ7cbG3N.js} +12400 -11573
- package/dist/{index-CqVegmN4.js → index-BKwa5JSA.js} +10 -10
- package/dist/{index-D-IzHD_8.js → index-BP4B9VUt.js} +2 -2
- package/dist/{index-DmOMXRG1.js → index-BVdzXHpO.js} +11 -11
- package/dist/{index-B2iDt0TJ.js → index-BYND0GJ9.js} +2 -2
- package/dist/{index-lbhz9evJ.js → index-BaJ0zEbh.js} +2 -2
- package/dist/{index-B7K86vWu.js → index-BdSIrl-R.js} +38 -38
- package/dist/{index-C4BX3QW8.js → index-Bh0MPFwP.js} +3 -3
- package/dist/{index-BBkcvSiY.js → index-Bsh7_qTp.js} +53 -53
- package/dist/{index-DoSYqTQg.js → index-BwnXTNNg.js} +3 -3
- package/dist/{index-Ij6XA6_4.js → index-C0kPDbg_.js} +2 -2
- package/dist/{index-fxzIDZsb.js → index-CKikVKe2.js} +2 -2
- package/dist/{index-SzyBYfzA.js → index-CPTcEPbD.js} +1582 -1881
- package/dist/{index-C27dwOyE.js → index-ChVh0Hkp.js} +3 -3
- package/dist/{index-CwB_qRfM.js → index-Cle_NnnS.js} +6 -6
- package/dist/{index-CUdQyyFn.js → index-CmWdvIFT.js} +2 -2
- package/dist/{index-1adX-Fit.js → index-D2AMA8Bu.js} +2 -2
- package/dist/{index-CTYngdl0.js → index-D5r0iSq4.js} +1 -1
- package/dist/index-D6h-qfpt.js +276 -0
- package/dist/{index-CppCc1n8.js → index-DAUM8CO4.js} +2 -2
- package/dist/{index-DtCsAVBg.js → index-DGjZW6uR.js} +2 -2
- package/dist/{index-CxOF7GqE.js → index-DQe94z7X.js} +3 -3
- package/dist/{index-AvC0IGDl.js → index-DTo6w99t.js} +101 -101
- package/dist/{index-B5zkXsLJ.js → index-DYdXjap2.js} +9 -9
- package/dist/{index-BdjxQs66.js → index-DceCxNV5.js} +5 -5
- package/dist/{index-Da8oZh8H.js → index-DobBVPe4.js} +14 -14
- package/dist/{index-DRNiFv9I.js → index-Dy4NyE6l.js} +7 -7
- package/dist/{index-Bijd4_Ns.js → index-Uw9cSw0q.js} +3 -3
- package/dist/{index-DpHXq5_E.js → index-f3LXSfM5.js} +6 -6
- package/dist/{index--3Zp0jAb.js → index-qiuyrukh.js} +2 -2
- package/dist/{index-CuiyMA8F.js → index-zddvaohA.js} +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{info-DMIGgjkL.js → info-RfPsmroW.js} +1 -1
- package/dist/{info-circle-CJuIKZSx.js → info-circle-DFKHB_ZN.js} +1 -1
- package/dist/{lightbulb-qFT6WEWV.js → lightbulb-B-Bykj9X.js} +1 -1
- package/dist/{localBatchGatewayRequest-CsMVMFBc.js → localBatchGatewayRequest-CjGcn5nM.js} +1 -1
- package/dist/{mail-DoYgQvOt.js → mail-mBAgGuw5.js} +1 -1
- package/dist/{mobile-URtsh7o-.js → mobile-Dhh3ndkf.js} +1 -1
- package/dist/{more-DoQd10TF.js → more-D1h7UTvg.js} +1 -1
- package/dist/{network-placeholder-BBA2Ue6C.js → network-placeholder-Dqynvc-t.js} +1 -1
- package/dist/{nftPlaceholder-C9RXWz9k.js → nftPlaceholder-Df7MW4MM.js} +1 -1
- package/dist/{off-YcuDQczT.js → off-BmG3cHTX.js} +1 -1
- package/dist/{onramp-BfqDIx4o.js → onramp-C401Aenb.js} +46 -46
- package/dist/{parseSignature-280HB24T.js → parseSignature-S8VEpRHC.js} +967 -1222
- package/dist/{play-store-sFaloG_r.js → play-store-4q1fzL_P.js} +1 -1
- package/dist/{plus-l0wekSht.js → plus-603Gs3yG.js} +1 -1
- package/dist/{qr-code-CihrUU4G.js → qr-code-Dgwhf6M1.js} +1 -1
- package/dist/{receive-dfY1Cu-g.js → receive-CYXbbEUR.js} +10 -10
- package/dist/{recycle-horizontal-nXu6YaPw.js → recycle-horizontal-Bu8zZ563.js} +1 -1
- package/dist/{ref-huAzXCX0.js → ref-DpmKRWBK.js} +2 -2
- package/dist/{refresh-D2ZbVeNC.js → refresh-BMZFu0mu.js} +1 -1
- package/dist/{reown-logo-BMaTMJmc.js → reown-logo-BXph7ThY.js} +1 -1
- package/dist/{search-YVM9q3J-.js → search-Cm_V42Y_.js} +1 -1
- package/dist/{secp256k1-DPQgTBwQ.js → secp256k1-C0iX1TUr.js} +19 -19
- package/dist/{secp256k1-BrysY3Sv.js → secp256k1-DOQBqE4Z.js} +1 -1
- package/dist/{send-BwQZPKxI.js → send-BSMYxDuP.js} +1 -1
- package/dist/{send-GyetMVu1.js → send-C8EeIzRB.js} +20 -20
- package/dist/{socials-B0W91J9k.js → socials-DQrHQajs.js} +15 -15
- package/dist/{swapHorizontal-Dy_oQEkp.js → swapHorizontal-98rnJewS.js} +1 -1
- package/dist/{swapHorizontalBold-C4JpaMpc.js → swapHorizontalBold-C299FjEt.js} +1 -1
- package/dist/{swapHorizontalMedium-D5NuVZFh.js → swapHorizontalMedium-Cqm6i4WJ.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-Bq4P2MCj.js → swapHorizontalRoundedBold-De7hFfqZ.js} +1 -1
- package/dist/{swapVertical-CVQ8Mg03.js → swapVertical-DSL75l8L.js} +1 -1
- package/dist/{swaps-CA04SSdK.js → swaps-BuTNp65Y.js} +24 -24
- package/dist/{telegram-BP4SgW_L.js → telegram-cJP7hgUb.js} +1 -1
- package/dist/{three-dots-BJYGJ-dQ.js → three-dots-DHnEh28O.js} +1 -1
- package/dist/{transactions-Bq-98Tsg.js → transactions-DujFkB-M.js} +3 -3
- package/dist/{twitch-DTATWo9M.js → twitch-CR2iGcBo.js} +1 -1
- package/dist/{twitterIcon-D5UWPInb.js → twitterIcon-E5TAQjOn.js} +1 -1
- package/dist/types.d.ts +60 -0
- package/dist/ui/Modal.d.ts +3 -3
- package/dist/ui/index.d.ts +2 -2
- package/dist/{verify-Byvj8Wi1.js → verify-DEukUJp0.js} +1 -1
- package/dist/{verify-filled-B40taNm0.js → verify-filled-BXsx1i_p.js} +1 -1
- package/dist/{w3m-modal-HV6SE74G.js → w3m-modal-Bm7BqVng.js} +40 -40
- package/dist/{wallet-Cp-6Kk88.js → wallet-CzyyvdrT.js} +1 -1
- package/dist/{wallet-placeholder-C3juwA9o.js → wallet-placeholder-BrcmyGEe.js} +1 -1
- package/dist/{walletconnect-CRkIiLCx.js → walletconnect-BSYogWiE.js} +1 -1
- package/dist/{warning-circle-DtvCLwG4.js → warning-circle-Cgp2BW3m.js} +1 -1
- package/dist/{x-Cqyx5eCt.js → x-BJinLpTw.js} +1 -1
- package/package.json +1 -1
- package/dist/index-B2-vKLd8.js +0 -276
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dU as H, dV as L, dW as x, cE as _, cH as z, cL as I, cF as A, cG as $, cC as O } from "./index-BJ7cbG3N.js";
|
|
2
2
|
const g = {
|
|
3
3
|
getSpacingStyles(t, e) {
|
|
4
4
|
if (Array.isArray(t))
|
|
@@ -91,7 +91,7 @@ function T(t) {
|
|
|
91
91
|
* Copyright 2017 Google LLC
|
|
92
92
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
93
93
|
*/
|
|
94
|
-
const G = { attribute: !0, type: String, converter:
|
|
94
|
+
const G = { attribute: !0, type: String, converter: L, reflect: !1, hasChanged: H }, E = (t = G, e, i) => {
|
|
95
95
|
const { kind: r, metadata: n } = i;
|
|
96
96
|
let o = globalThis.litPropertyMetadata.get(n);
|
|
97
97
|
if (o === void 0 && globalThis.litPropertyMetadata.set(n, o = /* @__PURE__ */ new Map()), r === "setter" && ((t = Object.create(t)).wrapped = !0), o.set(i.name, t), r === "accessor") {
|
|
@@ -113,7 +113,7 @@ const G = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged:
|
|
|
113
113
|
throw Error("Unsupported decorator location: " + r);
|
|
114
114
|
};
|
|
115
115
|
function c(t) {
|
|
116
|
-
return (e, i) => typeof i == "object" ?
|
|
116
|
+
return (e, i) => typeof i == "object" ? E(t, e, i) : ((r, n, o) => {
|
|
117
117
|
const a = n.hasOwnProperty(o);
|
|
118
118
|
return n.constructor.createProperty(o, r), a ? Object.getOwnPropertyDescriptor(n, o) : void 0;
|
|
119
119
|
})(t, e, i);
|
|
@@ -131,13 +131,13 @@ function st(t) {
|
|
|
131
131
|
* Copyright 2020 Google LLC
|
|
132
132
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
133
133
|
*/
|
|
134
|
-
const
|
|
134
|
+
const N = (t) => t === null || typeof t != "object" && typeof t != "function", W = (t) => t.strings === void 0;
|
|
135
135
|
/**
|
|
136
136
|
* @license
|
|
137
137
|
* Copyright 2017 Google LLC
|
|
138
138
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
139
139
|
*/
|
|
140
|
-
const
|
|
140
|
+
const j = { ATTRIBUTE: 1, CHILD: 2 }, B = (t) => (...e) => ({ _$litDirective$: t, values: e });
|
|
141
141
|
let M = class {
|
|
142
142
|
constructor(e) {
|
|
143
143
|
}
|
|
@@ -189,7 +189,7 @@ function q(t, e = !1, i = 0) {
|
|
|
189
189
|
else m(this, t);
|
|
190
190
|
}
|
|
191
191
|
const K = (t) => {
|
|
192
|
-
t.type ==
|
|
192
|
+
t.type == j.CHILD && (t._$AP ?? (t._$AP = q), t._$AQ ?? (t._$AQ = V));
|
|
193
193
|
};
|
|
194
194
|
class X extends M {
|
|
195
195
|
constructor() {
|
|
@@ -253,7 +253,7 @@ class Z {
|
|
|
253
253
|
* Copyright 2017 Google LLC
|
|
254
254
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
255
255
|
*/
|
|
256
|
-
const k = (t) => !
|
|
256
|
+
const k = (t) => !N(t) && typeof t.then == "function", P = 1073741823;
|
|
257
257
|
class Q extends X {
|
|
258
258
|
constructor() {
|
|
259
259
|
super(...arguments), this._$Cwt = P, this._$Cbt = [], this._$CK = new Y(this), this._$CX = new Z();
|
|
@@ -288,7 +288,7 @@ class Q extends X {
|
|
|
288
288
|
this._$CK.reconnect(this), this._$CX.resume();
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
const J =
|
|
291
|
+
const J = B(Q);
|
|
292
292
|
class tt {
|
|
293
293
|
constructor() {
|
|
294
294
|
this.cache = /* @__PURE__ */ new Map();
|
|
@@ -336,83 +336,83 @@ var v = function(t, e, i, r) {
|
|
|
336
336
|
return n > 3 && o && Object.defineProperty(e, i, o), o;
|
|
337
337
|
};
|
|
338
338
|
const R = {
|
|
339
|
-
add: async () => (await import("./add-
|
|
340
|
-
allWallets: async () => (await import("./all-wallets-
|
|
341
|
-
arrowBottomCircle: async () => (await import("./arrow-bottom-circle-
|
|
342
|
-
appStore: async () => (await import("./app-store-
|
|
343
|
-
apple: async () => (await import("./apple-
|
|
344
|
-
arrowBottom: async () => (await import("./arrow-bottom-
|
|
345
|
-
arrowLeft: async () => (await import("./arrow-left-
|
|
346
|
-
arrowRight: async () => (await import("./arrow-right-
|
|
347
|
-
arrowTop: async () => (await import("./arrow-top-
|
|
348
|
-
bank: async () => (await import("./bank-
|
|
349
|
-
browser: async () => (await import("./browser-
|
|
350
|
-
card: async () => (await import("./card-
|
|
351
|
-
checkmark: async () => (await import("./checkmark-
|
|
352
|
-
checkmarkBold: async () => (await import("./checkmark-bold-
|
|
353
|
-
chevronBottom: async () => (await import("./chevron-bottom-
|
|
354
|
-
chevronLeft: async () => (await import("./chevron-left-
|
|
355
|
-
chevronRight: async () => (await import("./chevron-right-
|
|
356
|
-
chevronTop: async () => (await import("./chevron-top-
|
|
357
|
-
chromeStore: async () => (await import("./chrome-store-
|
|
358
|
-
clock: async () => (await import("./clock-
|
|
359
|
-
close: async () => (await import("./close-
|
|
360
|
-
compass: async () => (await import("./compass-
|
|
361
|
-
coinPlaceholder: async () => (await import("./coinPlaceholder-
|
|
362
|
-
copy: async () => (await import("./copy-
|
|
363
|
-
cursor: async () => (await import("./cursor-
|
|
364
|
-
cursorTransparent: async () => (await import("./cursor-transparent-
|
|
365
|
-
desktop: async () => (await import("./desktop-
|
|
366
|
-
disconnect: async () => (await import("./disconnect-
|
|
367
|
-
discord: async () => (await import("./discord-
|
|
368
|
-
etherscan: async () => (await import("./etherscan-
|
|
369
|
-
extension: async () => (await import("./extension-
|
|
370
|
-
externalLink: async () => (await import("./external-link-
|
|
371
|
-
facebook: async () => (await import("./facebook-
|
|
372
|
-
farcaster: async () => (await import("./farcaster-
|
|
373
|
-
filters: async () => (await import("./filters-
|
|
374
|
-
github: async () => (await import("./github-
|
|
375
|
-
google: async () => (await import("./google-
|
|
376
|
-
helpCircle: async () => (await import("./help-circle-
|
|
377
|
-
image: async () => (await import("./image-
|
|
378
|
-
id: async () => (await import("./id-
|
|
379
|
-
infoCircle: async () => (await import("./info-circle-
|
|
380
|
-
lightbulb: async () => (await import("./lightbulb-
|
|
381
|
-
mail: async () => (await import("./mail-
|
|
382
|
-
mobile: async () => (await import("./mobile-
|
|
383
|
-
more: async () => (await import("./more-
|
|
384
|
-
networkPlaceholder: async () => (await import("./network-placeholder-
|
|
385
|
-
nftPlaceholder: async () => (await import("./nftPlaceholder-
|
|
386
|
-
off: async () => (await import("./off-
|
|
387
|
-
playStore: async () => (await import("./play-store-
|
|
388
|
-
plus: async () => (await import("./plus-
|
|
389
|
-
qrCode: async () => (await import("./qr-code-
|
|
390
|
-
recycleHorizontal: async () => (await import("./recycle-horizontal-
|
|
391
|
-
refresh: async () => (await import("./refresh-
|
|
392
|
-
search: async () => (await import("./search-
|
|
393
|
-
send: async () => (await import("./send-
|
|
394
|
-
swapHorizontal: async () => (await import("./swapHorizontal-
|
|
395
|
-
swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-
|
|
396
|
-
swapHorizontalBold: async () => (await import("./swapHorizontalBold-
|
|
397
|
-
swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-
|
|
398
|
-
swapVertical: async () => (await import("./swapVertical-
|
|
399
|
-
telegram: async () => (await import("./telegram-
|
|
400
|
-
threeDots: async () => (await import("./three-dots-
|
|
401
|
-
twitch: async () => (await import("./twitch-
|
|
402
|
-
twitter: async () => (await import("./x-
|
|
403
|
-
twitterIcon: async () => (await import("./twitterIcon-
|
|
404
|
-
verify: async () => (await import("./verify-
|
|
405
|
-
verifyFilled: async () => (await import("./verify-filled-
|
|
406
|
-
wallet: async () => (await import("./wallet-
|
|
407
|
-
walletConnect: async () => (await import("./walletconnect-
|
|
408
|
-
walletConnectLightBrown: async () => (await import("./walletconnect-
|
|
409
|
-
walletConnectBrown: async () => (await import("./walletconnect-
|
|
410
|
-
walletPlaceholder: async () => (await import("./wallet-placeholder-
|
|
411
|
-
warningCircle: async () => (await import("./warning-circle-
|
|
412
|
-
x: async () => (await import("./x-
|
|
413
|
-
info: async () => (await import("./info-
|
|
414
|
-
exclamationTriangle: async () => (await import("./exclamation-triangle-
|
|
415
|
-
reown: async () => (await import("./reown-logo-
|
|
339
|
+
add: async () => (await import("./add-sji6scSD.js")).addSvg,
|
|
340
|
+
allWallets: async () => (await import("./all-wallets-B4H-890E.js")).allWalletsSvg,
|
|
341
|
+
arrowBottomCircle: async () => (await import("./arrow-bottom-circle-N9c4CXY1.js")).arrowBottomCircleSvg,
|
|
342
|
+
appStore: async () => (await import("./app-store-Z433s97G.js")).appStoreSvg,
|
|
343
|
+
apple: async () => (await import("./apple-b8Lxj7nb.js")).appleSvg,
|
|
344
|
+
arrowBottom: async () => (await import("./arrow-bottom-M9oWWo_9.js")).arrowBottomSvg,
|
|
345
|
+
arrowLeft: async () => (await import("./arrow-left-Dw8AKfwf.js")).arrowLeftSvg,
|
|
346
|
+
arrowRight: async () => (await import("./arrow-right-DwLQZSC_.js")).arrowRightSvg,
|
|
347
|
+
arrowTop: async () => (await import("./arrow-top-zhUjkBe1.js")).arrowTopSvg,
|
|
348
|
+
bank: async () => (await import("./bank-CbQdnILK.js")).bankSvg,
|
|
349
|
+
browser: async () => (await import("./browser-xAqNwt7z.js")).browserSvg,
|
|
350
|
+
card: async () => (await import("./card-Dr1QBmWp.js")).cardSvg,
|
|
351
|
+
checkmark: async () => (await import("./checkmark-BhT1dTgG.js")).checkmarkSvg,
|
|
352
|
+
checkmarkBold: async () => (await import("./checkmark-bold-CPB29wqQ.js")).checkmarkBoldSvg,
|
|
353
|
+
chevronBottom: async () => (await import("./chevron-bottom-BhNyx2II.js")).chevronBottomSvg,
|
|
354
|
+
chevronLeft: async () => (await import("./chevron-left-CGuEjQlY.js")).chevronLeftSvg,
|
|
355
|
+
chevronRight: async () => (await import("./chevron-right-CvIRRsqZ.js")).chevronRightSvg,
|
|
356
|
+
chevronTop: async () => (await import("./chevron-top-RSzCqjBd.js")).chevronTopSvg,
|
|
357
|
+
chromeStore: async () => (await import("./chrome-store-Cs8dAgs0.js")).chromeStoreSvg,
|
|
358
|
+
clock: async () => (await import("./clock-fhZO5otC.js")).clockSvg,
|
|
359
|
+
close: async () => (await import("./close-BPuztrdR.js")).closeSvg,
|
|
360
|
+
compass: async () => (await import("./compass-WMc5huk0.js")).compassSvg,
|
|
361
|
+
coinPlaceholder: async () => (await import("./coinPlaceholder-C8X2i7Kh.js")).coinPlaceholderSvg,
|
|
362
|
+
copy: async () => (await import("./copy-DVAeT17y.js")).copySvg,
|
|
363
|
+
cursor: async () => (await import("./cursor-BJ4YLXfy.js")).cursorSvg,
|
|
364
|
+
cursorTransparent: async () => (await import("./cursor-transparent-DN2fLQN4.js")).cursorTransparentSvg,
|
|
365
|
+
desktop: async () => (await import("./desktop-6avxisBw.js")).desktopSvg,
|
|
366
|
+
disconnect: async () => (await import("./disconnect-AReVI8Gk.js")).disconnectSvg,
|
|
367
|
+
discord: async () => (await import("./discord-CxrI30BZ.js")).discordSvg,
|
|
368
|
+
etherscan: async () => (await import("./etherscan-BnAy8cIF.js")).etherscanSvg,
|
|
369
|
+
extension: async () => (await import("./extension-F0LIhvcf.js")).extensionSvg,
|
|
370
|
+
externalLink: async () => (await import("./external-link-CP6phyaM.js")).externalLinkSvg,
|
|
371
|
+
facebook: async () => (await import("./facebook-BtQ-Io2y.js")).facebookSvg,
|
|
372
|
+
farcaster: async () => (await import("./farcaster-BmaN1ugd.js")).farcasterSvg,
|
|
373
|
+
filters: async () => (await import("./filters-DpEwoOmy.js")).filtersSvg,
|
|
374
|
+
github: async () => (await import("./github-q7qO9V-b.js")).githubSvg,
|
|
375
|
+
google: async () => (await import("./google-DH_ZE8bW.js")).googleSvg,
|
|
376
|
+
helpCircle: async () => (await import("./help-circle-BAQVmKas.js")).helpCircleSvg,
|
|
377
|
+
image: async () => (await import("./image-BKJDw6N-.js")).imageSvg,
|
|
378
|
+
id: async () => (await import("./id-Cj68Zwgo.js")).idSvg,
|
|
379
|
+
infoCircle: async () => (await import("./info-circle-DFKHB_ZN.js")).infoCircleSvg,
|
|
380
|
+
lightbulb: async () => (await import("./lightbulb-B-Bykj9X.js")).lightbulbSvg,
|
|
381
|
+
mail: async () => (await import("./mail-mBAgGuw5.js")).mailSvg,
|
|
382
|
+
mobile: async () => (await import("./mobile-Dhh3ndkf.js")).mobileSvg,
|
|
383
|
+
more: async () => (await import("./more-D1h7UTvg.js")).moreSvg,
|
|
384
|
+
networkPlaceholder: async () => (await import("./network-placeholder-Dqynvc-t.js")).networkPlaceholderSvg,
|
|
385
|
+
nftPlaceholder: async () => (await import("./nftPlaceholder-Df7MW4MM.js")).nftPlaceholderSvg,
|
|
386
|
+
off: async () => (await import("./off-BmG3cHTX.js")).offSvg,
|
|
387
|
+
playStore: async () => (await import("./play-store-4q1fzL_P.js")).playStoreSvg,
|
|
388
|
+
plus: async () => (await import("./plus-603Gs3yG.js")).plusSvg,
|
|
389
|
+
qrCode: async () => (await import("./qr-code-Dgwhf6M1.js")).qrCodeIcon,
|
|
390
|
+
recycleHorizontal: async () => (await import("./recycle-horizontal-Bu8zZ563.js")).recycleHorizontalSvg,
|
|
391
|
+
refresh: async () => (await import("./refresh-BMZFu0mu.js")).refreshSvg,
|
|
392
|
+
search: async () => (await import("./search-Cm_V42Y_.js")).searchSvg,
|
|
393
|
+
send: async () => (await import("./send-BSMYxDuP.js")).sendSvg,
|
|
394
|
+
swapHorizontal: async () => (await import("./swapHorizontal-98rnJewS.js")).swapHorizontalSvg,
|
|
395
|
+
swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-Cqm6i4WJ.js")).swapHorizontalMediumSvg,
|
|
396
|
+
swapHorizontalBold: async () => (await import("./swapHorizontalBold-C299FjEt.js")).swapHorizontalBoldSvg,
|
|
397
|
+
swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-De7hFfqZ.js")).swapHorizontalRoundedBoldSvg,
|
|
398
|
+
swapVertical: async () => (await import("./swapVertical-DSL75l8L.js")).swapVerticalSvg,
|
|
399
|
+
telegram: async () => (await import("./telegram-cJP7hgUb.js")).telegramSvg,
|
|
400
|
+
threeDots: async () => (await import("./three-dots-DHnEh28O.js")).threeDotsSvg,
|
|
401
|
+
twitch: async () => (await import("./twitch-CR2iGcBo.js")).twitchSvg,
|
|
402
|
+
twitter: async () => (await import("./x-BJinLpTw.js")).xSvg,
|
|
403
|
+
twitterIcon: async () => (await import("./twitterIcon-E5TAQjOn.js")).twitterIconSvg,
|
|
404
|
+
verify: async () => (await import("./verify-DEukUJp0.js")).verifySvg,
|
|
405
|
+
verifyFilled: async () => (await import("./verify-filled-BXsx1i_p.js")).verifyFilledSvg,
|
|
406
|
+
wallet: async () => (await import("./wallet-CzyyvdrT.js")).walletSvg,
|
|
407
|
+
walletConnect: async () => (await import("./walletconnect-BSYogWiE.js")).walletConnectSvg,
|
|
408
|
+
walletConnectLightBrown: async () => (await import("./walletconnect-BSYogWiE.js")).walletConnectLightBrownSvg,
|
|
409
|
+
walletConnectBrown: async () => (await import("./walletconnect-BSYogWiE.js")).walletConnectBrownSvg,
|
|
410
|
+
walletPlaceholder: async () => (await import("./wallet-placeholder-BrcmyGEe.js")).walletPlaceholderSvg,
|
|
411
|
+
warningCircle: async () => (await import("./warning-circle-Cgp2BW3m.js")).warningCircleSvg,
|
|
412
|
+
x: async () => (await import("./x-BJinLpTw.js")).xSvg,
|
|
413
|
+
info: async () => (await import("./info-RfPsmroW.js")).infoSvg,
|
|
414
|
+
exclamationTriangle: async () => (await import("./exclamation-triangle-Bu7nHwx9.js")).exclamationTriangleSvg,
|
|
415
|
+
reown: async () => (await import("./reown-logo-BXph7ThY.js")).reownSvg
|
|
416
416
|
};
|
|
417
417
|
async function it(t) {
|
|
418
418
|
if (C.has(t))
|
|
@@ -432,7 +432,7 @@ let w = class extends A {
|
|
|
432
432
|
`, $`${J(it(this.name), $`<div class="fallback"></div>`)}`;
|
|
433
433
|
}
|
|
434
434
|
};
|
|
435
|
-
w.styles = [z,
|
|
435
|
+
w.styles = [z, I, et];
|
|
436
436
|
v([
|
|
437
437
|
c()
|
|
438
438
|
], w.prototype, "size", void 0);
|
|
@@ -453,10 +453,10 @@ w = v([
|
|
|
453
453
|
* Copyright 2018 Google LLC
|
|
454
454
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
455
455
|
*/
|
|
456
|
-
const ot =
|
|
456
|
+
const ot = B(class extends M {
|
|
457
457
|
constructor(t) {
|
|
458
458
|
var e;
|
|
459
|
-
if (super(t), t.type !==
|
|
459
|
+
if (super(t), t.type !== j.ATTRIBUTE || t.name !== "class" || ((e = t.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
460
460
|
}
|
|
461
461
|
render(t) {
|
|
462
462
|
return " " + Object.keys(t).filter(((e) => t[e])).join(" ") + " ";
|
|
@@ -736,7 +736,7 @@ export {
|
|
|
736
736
|
g as U,
|
|
737
737
|
ot as a,
|
|
738
738
|
T as c,
|
|
739
|
-
|
|
739
|
+
B as e,
|
|
740
740
|
X as f,
|
|
741
741
|
c as n,
|
|
742
742
|
ht as o,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cD as C } from "./index-BJ7cbG3N.js";
|
|
2
2
|
const l = C`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
|
|
3
3
|
<path d="M4.98926 3.73932C4.2989 3.73932 3.73926 4.29896 3.73926 4.98932C3.73926 5.67968 4.2989 6.23932 4.98926 6.23932C5.67962 6.23932 6.23926 5.67968 6.23926 4.98932C6.23926 4.29896 5.67962 3.73932 4.98926 3.73932Z" fill="currentColor"/>
|
|
4
4
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.60497 0.500001H6.39504C5.41068 0.499977 4.59185 0.499958 3.93178 0.571471C3.24075 0.64634 2.60613 0.809093 2.04581 1.21619C1.72745 1.44749 1.44749 1.72745 1.21619 2.04581C0.809093 2.60613 0.64634 3.24075 0.571471 3.93178C0.499958 4.59185 0.499977 5.41065 0.500001 6.39501V7.57815C0.499998 8.37476 0.499995 9.05726 0.534869 9.62725C0.570123 10.2034 0.644114 10.7419 0.828442 11.2302C0.925651 11.4877 1.05235 11.7287 1.21619 11.9542C1.44749 12.2726 1.72745 12.5525 2.04581 12.7838C2.60613 13.1909 3.24075 13.3537 3.93178 13.4285C4.59185 13.5001 5.41066 13.5 6.39503 13.5H7.60496C8.58933 13.5 9.40815 13.5001 10.0682 13.4285C10.7593 13.3537 11.3939 13.1909 11.9542 12.7838C12.2726 12.5525 12.5525 12.2726 12.7838 11.9542C13.1909 11.3939 13.3537 10.7593 13.4285 10.0682C13.5 9.40816 13.5 8.58935 13.5 7.60497V6.39505C13.5 5.41068 13.5 4.59185 13.4285 3.93178C13.3537 3.24075 13.1909 2.60613 12.7838 2.04581C12.5525 1.72745 12.2726 1.44749 11.9542 1.21619C11.3939 0.809093 10.7593 0.64634 10.0682 0.571471C9.40816 0.499958 8.58933 0.499977 7.60497 0.500001ZM3.22138 2.83422C3.38394 2.71612 3.62634 2.61627 4.14721 2.55984C4.68679 2.50138 5.39655 2.5 6.45 2.5H7.55C8.60345 2.5 9.31322 2.50138 9.8528 2.55984C10.3737 2.61627 10.6161 2.71612 10.7786 2.83422C10.9272 2.94216 11.0578 3.07281 11.1658 3.22138C11.2839 3.38394 11.3837 3.62634 11.4402 4.14721C11.4986 4.68679 11.5 5.39655 11.5 6.45V6.49703C10.9674 6.11617 10.386 5.84936 9.74213 5.81948C8.40536 5.75745 7.3556 6.73051 6.40509 7.84229C6.33236 7.92737 6.27406 7.98735 6.22971 8.02911L6.1919 8.00514L6.17483 7.99427C6.09523 7.94353 5.98115 7.87083 5.85596 7.80302C5.56887 7.64752 5.18012 7.4921 4.68105 7.4921C4.66697 7.4921 4.6529 7.49239 4.63884 7.49299C3.79163 7.52878 3.09922 8.1106 2.62901 8.55472C2.58751 8.59392 2.54594 8.6339 2.50435 8.6745C2.50011 8.34653 2.5 7.97569 2.5 7.55V6.45C2.5 5.39655 2.50138 4.68679 2.55984 4.14721C2.61627 3.62634 2.71612 3.38394 2.83422 3.22138C2.94216 3.07281 3.07281 2.94216 3.22138 2.83422ZM10.3703 8.14825C10.6798 8.37526 11.043 8.71839 11.4832 9.20889C11.4744 9.44992 11.4608 9.662 11.4402 9.8528C11.3837 10.3737 11.2839 10.6161 11.1658 10.7786C11.0578 10.9272 10.9272 11.0578 10.7786 11.1658C10.6161 11.2839 10.3737 11.3837 9.8528 11.4402C9.31322 11.4986 8.60345 11.5 7.55 11.5H6.45C5.39655 11.5 4.68679 11.4986 4.14721 11.4402C3.62634 11.3837 3.38394 11.2839 3.22138 11.1658C3.15484 11.1174 3.0919 11.0645 3.03298 11.0075C3.10126 10.9356 3.16806 10.8649 3.23317 10.7959L3.29772 10.7276C3.55763 10.4525 3.78639 10.2126 4.00232 10.0087C4.22016 9.80294 4.39412 9.66364 4.53524 9.57742C4.63352 9.51738 4.69022 9.49897 4.71275 9.49345C4.76387 9.49804 4.81803 9.51537 4.90343 9.56162C4.96409 9.59447 5.02355 9.63225 5.11802 9.69238L5.12363 9.69595C5.20522 9.74789 5.32771 9.82587 5.46078 9.89278C5.76529 10.0459 6.21427 10.186 6.74977 10.0158C7.21485 9.86796 7.59367 9.52979 7.92525 9.14195C8.91377 7.98571 9.38267 7.80495 9.64941 7.81733C9.7858 7.82366 10.0101 7.884 10.3703 8.14825Z" fill="currentColor"/>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as T } from "./index-C1QEJL-2.js";
|
|
2
|
-
import { bk as y } from "./index-
|
|
3
|
-
import { h as k, e as I } from "./hashTypedData-
|
|
2
|
+
import { bk as y } from "./index-BJ7cbG3N.js";
|
|
3
|
+
import { h as k, e as I } from "./hashTypedData-ZH9ZnWu3.js";
|
|
4
4
|
const q = () => "9.1.0", v = (t) => t.toString(16).padStart(2, "0"), C = (t) => {
|
|
5
5
|
const e = new Uint8Array(t / 2);
|
|
6
6
|
return window.crypto.getRandomValues(e), Array.from(e, v).join("");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as q, c as ne } from "./if-defined-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
const
|
|
1
|
+
import { cY as g, cX as v, d5 as A, d6 as N, d7 as l, cT as V, cU as j, cJ as S, cZ as f, d8 as D, d0 as x, d1 as F, d9 as Q, da as R, db as $, dc as H, dd as Y, cV as K, cW as J, cE as X, cH as Z, cI as ee, cF as te, cG as M } from "./index-BJ7cbG3N.js";
|
|
2
|
+
import { n as q, c as ne } from "./if-defined-CNte9B3N.js";
|
|
3
|
+
import "./index-CmWdvIFT.js";
|
|
4
|
+
import "./index-CKikVKe2.js";
|
|
5
|
+
const W = {
|
|
6
6
|
async getTokenList() {
|
|
7
7
|
var a;
|
|
8
8
|
const t = g.state.activeCaipNetwork, n = await A.fetchSwapTokens({
|
|
@@ -70,13 +70,13 @@ const _ = {
|
|
|
70
70
|
eip2612: !1
|
|
71
71
|
}))) || [];
|
|
72
72
|
}
|
|
73
|
-
},
|
|
73
|
+
}, h = {
|
|
74
74
|
getGasPriceInEther(t, n) {
|
|
75
75
|
const o = n * t;
|
|
76
76
|
return Number(o) / 1e18;
|
|
77
77
|
},
|
|
78
78
|
getGasPriceInUSD(t, n, o) {
|
|
79
|
-
const a =
|
|
79
|
+
const a = h.getGasPriceInEther(n, o);
|
|
80
80
|
return l.bigNumber(t).times(a).toNumber();
|
|
81
81
|
},
|
|
82
82
|
getPriceImpact({ sourceTokenAmount: t, sourceTokenPriceInUSD: n, toTokenPriceInUSD: o, toTokenAmount: a }) {
|
|
@@ -105,8 +105,8 @@ const _ = {
|
|
|
105
105
|
const i = t.decimals, u = o, c = n.decimals, T = a;
|
|
106
106
|
if (T <= 0)
|
|
107
107
|
return "0";
|
|
108
|
-
const d = l.bigNumber(s).times(85e-4), w = l.bigNumber(s).minus(d).times(l.bigNumber(10).pow(i)),
|
|
109
|
-
return w.times(
|
|
108
|
+
const d = l.bigNumber(s).times(85e-4), w = l.bigNumber(s).minus(d).times(l.bigNumber(10).pow(i)), P = l.bigNumber(u).div(T), b = i - c;
|
|
109
|
+
return w.times(P).div(l.bigNumber(10).pow(b)).div(l.bigNumber(10).pow(c)).toFixed(c).toString();
|
|
110
110
|
}
|
|
111
111
|
}, z = 15e4, oe = 6, k = {
|
|
112
112
|
// Loading states
|
|
@@ -152,14 +152,14 @@ const _ = {
|
|
|
152
152
|
}, e = j(k), U = {
|
|
153
153
|
state: e,
|
|
154
154
|
subscribe(t) {
|
|
155
|
-
return
|
|
155
|
+
return J(e, () => t(e));
|
|
156
156
|
},
|
|
157
157
|
subscribeKey(t, n) {
|
|
158
158
|
return K(e, t, n);
|
|
159
159
|
},
|
|
160
160
|
getParams() {
|
|
161
|
-
var T, d, p, w,
|
|
162
|
-
const t = g.state.activeCaipAddress, n = g.state.activeChain, o = F.getPlainAddress(t), a = g.getActiveNetworkTokenAddress(), s =
|
|
161
|
+
var T, d, p, w, P, b, I, y;
|
|
162
|
+
const t = g.state.activeCaipAddress, n = g.state.activeChain, o = F.getPlainAddress(t), a = g.getActiveNetworkTokenAddress(), s = H.getConnectorId(n);
|
|
163
163
|
if (!o)
|
|
164
164
|
throw new Error("No address found to swap the tokens from.");
|
|
165
165
|
const i = !((T = e.toToken) != null && T.address) || !((d = e.toToken) != null && d.decimals), u = !((p = e.sourceToken) != null && p.address) || !((w = e.sourceToken) != null && w.decimals) || !l.bigNumber(e.sourceTokenAmount).gt(0), c = !e.sourceTokenAmount;
|
|
@@ -167,7 +167,7 @@ const _ = {
|
|
|
167
167
|
networkAddress: a,
|
|
168
168
|
fromAddress: o,
|
|
169
169
|
fromCaipAddress: t,
|
|
170
|
-
sourceTokenAddress: (
|
|
170
|
+
sourceTokenAddress: (P = e.sourceToken) == null ? void 0 : P.address,
|
|
171
171
|
toTokenAddress: (b = e.toToken) == null ? void 0 : b.address,
|
|
172
172
|
toTokenAmount: e.toTokenAmount,
|
|
173
173
|
toTokenDecimals: (I = e.toToken) == null ? void 0 : I.decimals,
|
|
@@ -177,7 +177,7 @@ const _ = {
|
|
|
177
177
|
invalidSourceToken: u,
|
|
178
178
|
invalidSourceTokenAmount: c,
|
|
179
179
|
availableToSwap: t && !i && !u && !c,
|
|
180
|
-
isAuthConnector: s ===
|
|
180
|
+
isAuthConnector: s === Y.CONNECTOR_ID.AUTH
|
|
181
181
|
};
|
|
182
182
|
},
|
|
183
183
|
setSourceToken(t) {
|
|
@@ -243,7 +243,7 @@ const _ = {
|
|
|
243
243
|
n && (e.networkTokenSymbol = n.symbol, r.setSourceToken(n), r.setSourceTokenAmount("1"));
|
|
244
244
|
},
|
|
245
245
|
async getTokenList() {
|
|
246
|
-
const t = await
|
|
246
|
+
const t = await W.getTokenList();
|
|
247
247
|
e.tokens = t, e.popularTokens = t.sort((n, o) => n.symbol < o.symbol ? -1 : n.symbol > o.symbol ? 1 : 0), e.suggestedTokens = t.filter((n) => !!$.SWAP_SUGGESTED_TOKENS.includes(n.symbol), {});
|
|
248
248
|
},
|
|
249
249
|
async getAddressPrice(t) {
|
|
@@ -278,7 +278,7 @@ const _ = {
|
|
|
278
278
|
},
|
|
279
279
|
async getInitialGasPrice() {
|
|
280
280
|
var n, o;
|
|
281
|
-
const t = await
|
|
281
|
+
const t = await W.fetchGasPrice();
|
|
282
282
|
if (!t)
|
|
283
283
|
return { gasPrice: null, gasPriceInUSD: null };
|
|
284
284
|
switch ((o = (n = g.state) == null ? void 0 : n.activeCaipNetwork) == null ? void 0 : o.chainNamespace) {
|
|
@@ -289,7 +289,7 @@ const _ = {
|
|
|
289
289
|
};
|
|
290
290
|
case "eip155":
|
|
291
291
|
default:
|
|
292
|
-
const a = t.standard ?? "0", s = BigInt(a), i = BigInt(z), u =
|
|
292
|
+
const a = t.standard ?? "0", s = BigInt(a), i = BigInt(z), u = h.getGasPriceInUSD(e.networkPrice, i, s);
|
|
293
293
|
return e.gasFee = a, e.gasPriceInUSD = u, { gasPrice: s, gasPriceInUSD: u };
|
|
294
294
|
}
|
|
295
295
|
},
|
|
@@ -312,7 +312,7 @@ const _ = {
|
|
|
312
312
|
e.loadingQuote = !1;
|
|
313
313
|
const T = (u = (i = c == null ? void 0 : c.quotes) == null ? void 0 : i[0]) == null ? void 0 : u.toAmount;
|
|
314
314
|
if (!T) {
|
|
315
|
-
|
|
315
|
+
Q.open({
|
|
316
316
|
shortMessage: "Incorrect amount",
|
|
317
317
|
longMessage: "Please enter a valid amount"
|
|
318
318
|
}, "error");
|
|
@@ -330,7 +330,7 @@ const _ = {
|
|
|
330
330
|
if (!(!t || !n || !o || !a || e.loadingQuote))
|
|
331
331
|
try {
|
|
332
332
|
e.loadingBuildTransaction = !0;
|
|
333
|
-
const s = await
|
|
333
|
+
const s = await W.fetchSwapAllowance({
|
|
334
334
|
userAddress: t,
|
|
335
335
|
tokenAddress: o.address,
|
|
336
336
|
sourceTokenAmount: e.sourceTokenAmount,
|
|
@@ -400,7 +400,7 @@ const _ = {
|
|
|
400
400
|
value: BigInt(T ? i ?? "0" : "0"),
|
|
401
401
|
toAmount: e.toTokenAmount
|
|
402
402
|
};
|
|
403
|
-
return e.gasPriceInUSD =
|
|
403
|
+
return e.gasPriceInUSD = h.getGasPriceInUSD(e.networkPrice, d, p), e.approvalTransaction = void 0, e.swapTransaction = w, w;
|
|
404
404
|
} catch {
|
|
405
405
|
S.goBack(), f.showError("Failed to create transaction"), e.approvalTransaction = void 0, e.swapTransaction = void 0, e.fetchError = !0;
|
|
406
406
|
return;
|
|
@@ -443,7 +443,7 @@ const _ = {
|
|
|
443
443
|
}
|
|
444
444
|
},
|
|
445
445
|
async sendTransactionForSwap(t) {
|
|
446
|
-
var u, c, T, d, p, w,
|
|
446
|
+
var u, c, T, d, p, w, P, b, I, y, E, G, L, O;
|
|
447
447
|
if (!t)
|
|
448
448
|
return;
|
|
449
449
|
const { fromAddress: n, toTokenAmount: o, isAuthConnector: a } = r.getParams();
|
|
@@ -466,7 +466,7 @@ const _ = {
|
|
|
466
466
|
type: "track",
|
|
467
467
|
event: "SWAP_SUCCESS",
|
|
468
468
|
properties: {
|
|
469
|
-
network: ((
|
|
469
|
+
network: ((P = g.state.activeCaipNetwork) == null ? void 0 : P.caipNetworkId) || "",
|
|
470
470
|
swapFromToken: ((b = r.state.sourceToken) == null ? void 0 : b.symbol) || "",
|
|
471
471
|
swapToToken: ((I = r.state.toToken) == null ? void 0 : I.symbol) || "",
|
|
472
472
|
swapFromAmount: r.state.sourceTokenAmount || "",
|
|
@@ -482,8 +482,8 @@ const _ = {
|
|
|
482
482
|
properties: {
|
|
483
483
|
message: (m == null ? void 0 : m.shortMessage) || (m == null ? void 0 : m.message) || "Unknown",
|
|
484
484
|
network: ((E = g.state.activeCaipNetwork) == null ? void 0 : E.caipNetworkId) || "",
|
|
485
|
-
swapFromToken: ((
|
|
486
|
-
swapToToken: ((
|
|
485
|
+
swapFromToken: ((G = r.state.sourceToken) == null ? void 0 : G.symbol) || "",
|
|
486
|
+
swapToToken: ((L = r.state.toToken) == null ? void 0 : L.symbol) || "",
|
|
487
487
|
swapFromAmount: r.state.sourceTokenAmount || "",
|
|
488
488
|
swapToAmount: r.state.toTokenAmount || "",
|
|
489
489
|
isSmartAccount: ((O = v.state.preferredAccountTypes) == null ? void 0 : O.eip155) === x.ACCOUNT_TYPES.SMART_ACCOUNT
|
|
@@ -494,19 +494,19 @@ const _ = {
|
|
|
494
494
|
},
|
|
495
495
|
// -- Checks -------------------------------------------- //
|
|
496
496
|
hasInsufficientToken(t, n) {
|
|
497
|
-
return
|
|
497
|
+
return h.isInsufficientSourceTokenForSwap(t, n, e.myTokensWithBalance);
|
|
498
498
|
},
|
|
499
499
|
// -- Calculations -------------------------------------- //
|
|
500
500
|
setTransactionDetails() {
|
|
501
501
|
const { toTokenAddress: t, toTokenDecimals: n } = r.getParams();
|
|
502
|
-
!t || !n || (e.gasPriceInUSD =
|
|
502
|
+
!t || !n || (e.gasPriceInUSD = h.getGasPriceInUSD(e.networkPrice, BigInt(e.gasFee), BigInt(z)), e.priceImpact = h.getPriceImpact({
|
|
503
503
|
sourceTokenAmount: e.sourceTokenAmount,
|
|
504
504
|
sourceTokenPriceInUSD: e.sourceTokenPriceInUSD,
|
|
505
505
|
toTokenPriceInUSD: e.toTokenPriceInUSD,
|
|
506
506
|
toTokenAmount: e.toTokenAmount
|
|
507
|
-
}), e.maxSlippage =
|
|
507
|
+
}), e.maxSlippage = h.getMaxSlippage(e.slippage, e.toTokenAmount), e.providerFee = h.getProviderFee(e.sourceTokenAmount));
|
|
508
508
|
}
|
|
509
|
-
}, r =
|
|
509
|
+
}, r = V(U), se = X`
|
|
510
510
|
:host {
|
|
511
511
|
display: block;
|
|
512
512
|
}
|
|
@@ -529,7 +529,7 @@ const _ = {
|
|
|
529
529
|
box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
|
|
530
530
|
}
|
|
531
531
|
`;
|
|
532
|
-
var
|
|
532
|
+
var _ = function(t, n, o, a) {
|
|
533
533
|
var s = arguments.length, i = s < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, o) : a, u;
|
|
534
534
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") i = Reflect.decorate(t, n, o, a);
|
|
535
535
|
else for (var c = t.length - 1; c >= 0; c--) (u = t[c]) && (i = (s < 3 ? u(i) : s > 3 ? u(n, o, i) : u(n, o)) || i);
|
|
@@ -559,13 +559,13 @@ let C = class extends te {
|
|
|
559
559
|
}
|
|
560
560
|
};
|
|
561
561
|
C.styles = [Z, ee, se];
|
|
562
|
-
|
|
562
|
+
_([
|
|
563
563
|
q()
|
|
564
564
|
], C.prototype, "imageSrc", void 0);
|
|
565
|
-
|
|
565
|
+
_([
|
|
566
566
|
q()
|
|
567
567
|
], C.prototype, "text", void 0);
|
|
568
|
-
C =
|
|
568
|
+
C = _([
|
|
569
569
|
ne("wui-token-button")
|
|
570
570
|
], C);
|
|
571
571
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as r, c as w } from "./if-defined-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { cE as v, cH as b, cI as g, cF as h, cG as l } from "./index-BJ7cbG3N.js";
|
|
2
|
+
import { n as r, c as w } from "./if-defined-CNte9B3N.js";
|
|
3
|
+
import "./index-CmWdvIFT.js";
|
|
4
4
|
const p = v`
|
|
5
5
|
button {
|
|
6
6
|
border: none;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as t, c as w, U as m } from "./if-defined-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { cE as v, cH as g, cI as h, cF as p, cG as u } from "./index-BJ7cbG3N.js";
|
|
2
|
+
import { n as t, c as w, U as m } from "./if-defined-CNte9B3N.js";
|
|
3
|
+
import "./index-CmWdvIFT.js";
|
|
4
4
|
const S = {
|
|
5
5
|
URLS: {
|
|
6
6
|
FAQ: "https://walletconnect.com/faq"
|