@wormhole-foundation/wormhole-connect 0.3.0-beta.5-development → 0.3.0-beta.7-development
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/assets/solana-r3vOVfGL.js +7 -0
- package/dist/main.js +8 -8
- package/dist/src/hooks/useExternalSearch.d.ts.map +1 -1
- package/dist/src/hooks/useFetchTokenPrices.d.ts.map +1 -1
- package/dist/src/routes/cctpManual/utils/attestation.d.ts.map +1 -1
- package/dist/src/routes/porticoBridge/porticoBridge.d.ts.map +1 -1
- package/dist/src/theme.d.ts.map +1 -1
- package/dist/src/utils/gas.d.ts +2 -1
- package/dist/src/utils/gas.d.ts.map +1 -1
- package/dist/src/utils/wallet/solana.d.ts.map +1 -1
- package/lib/{aptos-8Mrl9X6i.mjs → aptos-QdwVDDzw.mjs} +1 -1
- package/lib/{aptos-tebQQ3ZA.js → aptos-vhM1YtFf.js} +1 -1
- package/lib/{ccip-HJnlX_9S.mjs → ccip-EM_et4u1.mjs} +3 -3
- package/lib/{ccip-dCpwpTC_.js → ccip-finVNtKk.js} +1 -1
- package/lib/{cosmos-AFJ1XOrO.js → cosmos-fvmV1iIQ.js} +1 -1
- package/lib/{cosmos-nV16HvSD.mjs → cosmos-qCZ2N-2F.mjs} +3 -3
- package/lib/{evm-qZTmZv6E.js → evm-iXgJEzha.js} +3 -3
- package/lib/{evm-s1VmSVD6.mjs → evm-q7tplTE_.mjs} +4 -4
- package/lib/{index-TfurvHOR.js → index--nataACL.js} +1 -1
- package/lib/{index-aaFEhMHj.mjs → index-49J1iHnW.mjs} +119 -85
- package/lib/{index-5FmABmsD.mjs → index-DWWqC02d.mjs} +2 -2
- package/lib/{index-cLXEckE0.js → index-H-9aotAE.js} +1 -1
- package/lib/{index-Hc9ZLfg9.js → index-KhNenQBC.js} +7 -7
- package/lib/{index-8tyGYsKa.mjs → index-PAYEO8f8.mjs} +1 -1
- package/lib/{index-QjIV7nR2.js → index-U4tCg-MM.js} +1 -1
- package/lib/{index-Bb3TApAn.mjs → index-_ED2BW4O.mjs} +1 -1
- package/lib/{index-H90aaVbT.js → index-b7CigD4I.js} +1 -1
- package/lib/{index-NwD9aAK2.mjs → index-eFSkLRsX.mjs} +3 -3
- package/lib/{index.es-sXBX8dsm.mjs → index.es-JyYl3NEr.mjs} +2 -2
- package/lib/{index.es-qv9yd3Ok.mjs → index.es-MYE1njHi.mjs} +4 -4
- package/lib/{index.es-KO4vFhJP.js → index.es-SNGHSAN9.js} +2 -2
- package/lib/{index.es-wpPOI0qn.mjs → index.es-sg1QpZZ3.mjs} +1 -1
- package/lib/{index.es-HWWujjOD.js → index.es-vNsStN5y.js} +1 -1
- package/lib/{index.es-Z0ywZ73m.js → index.es-w5wVga5s.js} +1 -1
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{libsodium-wrappers-mnGNKT5v.mjs → libsodium-wrappers-L_u7xnKv.mjs} +1 -1
- package/lib/{libsodium-wrappers-Bp8SfOD4.js → libsodium-wrappers-QMhW8rmN.js} +1 -1
- package/lib/{sei-Ou4E9w5L.js → sei-Z32sFnVE.js} +1 -1
- package/lib/{sei-fE2ayrOo.mjs → sei-ftKJobWd.mjs} +2 -2
- package/lib/{solana-aFYDy2Js.mjs → solana-FtJTzny-.mjs} +206 -205
- package/lib/{solana-thpdGOoo.js → solana-iiNlAnmz.js} +1 -1
- package/lib/{solanaEmbed.esm-XmdisVOz.js → solanaEmbed.esm-1dEuSeiE.js} +1 -1
- package/lib/{solanaEmbed.esm-sDjJSYg0.mjs → solanaEmbed.esm-r3X45UMo.mjs} +2 -2
- package/lib/src/hooks/useExternalSearch.d.ts.map +1 -1
- package/lib/src/hooks/useFetchTokenPrices.d.ts.map +1 -1
- package/lib/src/routes/cctpManual/utils/attestation.d.ts.map +1 -1
- package/lib/src/routes/porticoBridge/porticoBridge.d.ts.map +1 -1
- package/lib/src/theme.d.ts.map +1 -1
- package/lib/src/utils/gas.d.ts +2 -1
- package/lib/src/utils/gas.d.ts.map +1 -1
- package/lib/src/utils/wallet/solana.d.ts.map +1 -1
- package/lib/{sui-ftfGMqx7.mjs → sui-EPTYtByv.mjs} +1 -1
- package/lib/{sui-OJe7CfrJ.js → sui-WUBDbipL.js} +1 -1
- package/package.json +1 -1
- package/dist/assets/solana-3KZTbTeS.js +0 -7
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
import { a as
|
|
1
|
+
import { g as St, a9 as x, aa as $, W as xt, ab as ut, f as gt, B as q, ac as ht, ad as wt, o as P, ae as Ct, af as Et } from "./index-49J1iHnW.mjs";
|
|
2
|
+
import { a as Ot, g as bt } from "./wallets-XPPz8jCP.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
var
|
|
5
|
+
var Tt = { exports: {} };
|
|
6
6
|
(function(a) {
|
|
7
7
|
var e = Object.prototype.hasOwnProperty, t = "~";
|
|
8
8
|
function n() {
|
|
@@ -46,7 +46,7 @@ var zt = { exports: {} };
|
|
|
46
46
|
var S = t ? t + o : o;
|
|
47
47
|
if (!this._events[S])
|
|
48
48
|
return !1;
|
|
49
|
-
var l = this._events[S], C = arguments.length,
|
|
49
|
+
var l = this._events[S], C = arguments.length, Q, d;
|
|
50
50
|
if (l.fn) {
|
|
51
51
|
switch (l.once && this.removeListener(o, l.fn, void 0, !0), C) {
|
|
52
52
|
case 1:
|
|
@@ -62,12 +62,12 @@ var zt = { exports: {} };
|
|
|
62
62
|
case 6:
|
|
63
63
|
return l.fn.call(l.context, M, h, L, f, D), !0;
|
|
64
64
|
}
|
|
65
|
-
for (d = 1,
|
|
66
|
-
|
|
67
|
-
l.fn.apply(l.context,
|
|
65
|
+
for (d = 1, Q = new Array(C - 1); d < C; d++)
|
|
66
|
+
Q[d - 1] = arguments[d];
|
|
67
|
+
l.fn.apply(l.context, Q);
|
|
68
68
|
} else {
|
|
69
|
-
var
|
|
70
|
-
for (d = 0; d <
|
|
69
|
+
var pt = l.length, G;
|
|
70
|
+
for (d = 0; d < pt; d++)
|
|
71
71
|
switch (l[d].once && this.removeListener(o, l[d].fn, void 0, !0), C) {
|
|
72
72
|
case 1:
|
|
73
73
|
l[d].fn.call(l[d].context);
|
|
@@ -82,10 +82,10 @@ var zt = { exports: {} };
|
|
|
82
82
|
l[d].fn.call(l[d].context, M, h, L);
|
|
83
83
|
break;
|
|
84
84
|
default:
|
|
85
|
-
if (!
|
|
86
|
-
for (
|
|
87
|
-
|
|
88
|
-
l[d].fn.apply(l[d].context,
|
|
85
|
+
if (!Q)
|
|
86
|
+
for (G = 1, Q = new Array(C - 1); G < C; G++)
|
|
87
|
+
Q[G - 1] = arguments[G];
|
|
88
|
+
l[d].fn.apply(l[d].context, Q);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
return !0;
|
|
@@ -112,41 +112,41 @@ var zt = { exports: {} };
|
|
|
112
112
|
var M;
|
|
113
113
|
return o ? (M = t ? t + o : o, this._events[M] && N(this, M)) : (this._events = new n(), this._eventsCount = 0), this;
|
|
114
114
|
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = t, c.EventEmitter = c, a.exports = c;
|
|
115
|
-
})(
|
|
116
|
-
var
|
|
117
|
-
const
|
|
115
|
+
})(Tt);
|
|
116
|
+
var Qt = Tt.exports;
|
|
117
|
+
const Yt = /* @__PURE__ */ St(Qt);
|
|
118
118
|
class z extends Error {
|
|
119
119
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
120
120
|
constructor(e, t) {
|
|
121
121
|
super(e), this.error = t;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
class
|
|
124
|
+
class b extends z {
|
|
125
125
|
constructor() {
|
|
126
126
|
super(...arguments), this.name = "WalletNotReadyError";
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
class
|
|
129
|
+
class zt extends z {
|
|
130
130
|
constructor() {
|
|
131
131
|
super(...arguments), this.name = "WalletLoadError";
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
class
|
|
134
|
+
class v extends z {
|
|
135
135
|
constructor() {
|
|
136
136
|
super(...arguments), this.name = "WalletConfigError";
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
class
|
|
139
|
+
class it extends z {
|
|
140
140
|
constructor() {
|
|
141
141
|
super(...arguments), this.name = "WalletConnectionError";
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
class
|
|
144
|
+
class Mt extends z {
|
|
145
145
|
constructor() {
|
|
146
146
|
super(...arguments), this.name = "WalletDisconnectedError";
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
class
|
|
149
|
+
class R extends z {
|
|
150
150
|
constructor() {
|
|
151
151
|
super(...arguments), this.name = "WalletDisconnectionError";
|
|
152
152
|
}
|
|
@@ -156,7 +156,7 @@ class p extends z {
|
|
|
156
156
|
super(...arguments), this.name = "WalletAccountError";
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
class
|
|
159
|
+
class k extends z {
|
|
160
160
|
constructor() {
|
|
161
161
|
super(...arguments), this.name = "WalletPublicKeyError";
|
|
162
162
|
}
|
|
@@ -166,7 +166,7 @@ class I extends z {
|
|
|
166
166
|
super(...arguments), this.name = "WalletNotConnectedError";
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
class
|
|
169
|
+
class U extends z {
|
|
170
170
|
constructor() {
|
|
171
171
|
super(...arguments), this.name = "WalletSendTransactionError";
|
|
172
172
|
}
|
|
@@ -176,17 +176,17 @@ class A extends z {
|
|
|
176
176
|
super(...arguments), this.name = "WalletSignTransactionError";
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
class
|
|
179
|
+
class X extends z {
|
|
180
180
|
constructor() {
|
|
181
181
|
super(...arguments), this.name = "WalletSignMessageError";
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
class
|
|
184
|
+
class Nt extends z {
|
|
185
185
|
constructor() {
|
|
186
186
|
super(...arguments), this.name = "WalletSignInError";
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
class
|
|
189
|
+
class Ut extends z {
|
|
190
190
|
constructor() {
|
|
191
191
|
super(...arguments), this.name = "WalletWindowClosedError";
|
|
192
192
|
}
|
|
@@ -195,7 +195,7 @@ var u;
|
|
|
195
195
|
(function(a) {
|
|
196
196
|
a.Installed = "Installed", a.NotDetected = "NotDetected", a.Loadable = "Loadable", a.Unsupported = "Unsupported";
|
|
197
197
|
})(u || (u = {}));
|
|
198
|
-
class
|
|
198
|
+
class ft extends Yt {
|
|
199
199
|
get connected() {
|
|
200
200
|
return !!this.publicKey;
|
|
201
201
|
}
|
|
@@ -212,7 +212,7 @@ class Lt extends Ut {
|
|
|
212
212
|
})).blockhash, e;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function K(a) {
|
|
216
216
|
if (typeof window > "u" || typeof document > "u")
|
|
217
217
|
return;
|
|
218
218
|
const e = [];
|
|
@@ -229,24 +229,24 @@ function F(a) {
|
|
|
229
229
|
document.readyState === "loading" && (document.addEventListener("DOMContentLoaded", t, { once: !0 }), e.push(() => document.removeEventListener("DOMContentLoaded", t))), // If the `complete` state has been reached, we're too late.
|
|
230
230
|
document.readyState !== "complete" && (window.addEventListener("load", t, { once: !0 }), e.push(() => window.removeEventListener("load", t))), t();
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function _(a) {
|
|
233
233
|
return "version" in a;
|
|
234
234
|
}
|
|
235
|
-
class
|
|
235
|
+
class lt extends ft {
|
|
236
236
|
async sendTransaction(e, t, n = {}) {
|
|
237
237
|
let i = !0;
|
|
238
238
|
try {
|
|
239
|
-
if (
|
|
239
|
+
if (_(e)) {
|
|
240
240
|
if (!this.supportedTransactionVersions)
|
|
241
|
-
throw new
|
|
241
|
+
throw new U("Sending versioned transactions isn't supported by this wallet");
|
|
242
242
|
if (!this.supportedTransactionVersions.has(e.version))
|
|
243
|
-
throw new
|
|
243
|
+
throw new U(`Sending transaction version ${e.version} isn't supported by this wallet`);
|
|
244
244
|
try {
|
|
245
245
|
e = await this.signTransaction(e);
|
|
246
246
|
const s = e.serialize();
|
|
247
247
|
return await t.sendRawTransaction(s, n);
|
|
248
248
|
} catch (s) {
|
|
249
|
-
throw s instanceof A ? (i = !1, s) : new
|
|
249
|
+
throw s instanceof A ? (i = !1, s) : new U(s == null ? void 0 : s.message, s);
|
|
250
250
|
}
|
|
251
251
|
} else
|
|
252
252
|
try {
|
|
@@ -255,7 +255,7 @@ class ut extends Lt {
|
|
|
255
255
|
const c = e.serialize();
|
|
256
256
|
return await t.sendRawTransaction(c, N);
|
|
257
257
|
} catch (s) {
|
|
258
|
-
throw s instanceof A ? (i = !1, s) : new
|
|
258
|
+
throw s instanceof A ? (i = !1, s) : new U(s == null ? void 0 : s.message, s);
|
|
259
259
|
}
|
|
260
260
|
} catch (s) {
|
|
261
261
|
throw i && this.emit("error", s), s;
|
|
@@ -263,7 +263,7 @@ class ut extends Lt {
|
|
|
263
263
|
}
|
|
264
264
|
async signAllTransactions(e) {
|
|
265
265
|
for (const n of e)
|
|
266
|
-
if (
|
|
266
|
+
if (_(n)) {
|
|
267
267
|
if (!this.supportedTransactionVersions)
|
|
268
268
|
throw new A("Signing versioned transactions isn't supported by this wallet");
|
|
269
269
|
if (!this.supportedTransactionVersions.has(n.version))
|
|
@@ -275,20 +275,20 @@ class ut extends Lt {
|
|
|
275
275
|
return t;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
-
class
|
|
278
|
+
class F extends lt {
|
|
279
279
|
}
|
|
280
|
-
const
|
|
281
|
-
function
|
|
282
|
-
return
|
|
280
|
+
const O = "solana:signAndSendTransaction", st = "solana:signIn", B = "solana:signMessage", j = "solana:signTransaction", Lt = "standard:connect", It = "standard:disconnect", mt = "standard:events";
|
|
281
|
+
function _t(a) {
|
|
282
|
+
return Lt in a.features && mt in a.features && (O in a.features || j in a.features);
|
|
283
283
|
}
|
|
284
|
-
var
|
|
284
|
+
var J;
|
|
285
285
|
(function(a) {
|
|
286
286
|
a.Mainnet = "mainnet-beta", a.Testnet = "testnet", a.Devnet = "devnet";
|
|
287
|
-
})(
|
|
288
|
-
const
|
|
289
|
-
class
|
|
287
|
+
})(J || (J = {}));
|
|
288
|
+
const Zt = "Bitget";
|
|
289
|
+
class Wt extends F {
|
|
290
290
|
constructor(e = {}) {
|
|
291
|
-
super(), this.name =
|
|
291
|
+
super(), this.name = Zt, this.url = "https://web3.bitget.com", this.icon = "data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjI1NiIgdmlld0JveD0iMCAwIDI1NiAyNTYiIHdpZHRoPSIyNTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxmaWx0ZXIgaWQ9ImEiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBoZWlnaHQ9IjQ1MS40MzEiIHdpZHRoPSI1NjkuNTU4IiB4PSItOTAuMjQxMSIgeT0iLTY5LjczNjkiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlQmxlbmQgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiBtb2RlPSJub3JtYWwiIHJlc3VsdD0ic2hhcGUiLz48ZmVHYXVzc2lhbkJsdXIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzIwMzVfMTEwNiIgc3RkRGV2aWF0aW9uPSI0OS4yMzA4Ii8+PC9maWx0ZXI+PGZpbHRlciBpZD0iYiIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIiBmaWx0ZXJVbml0c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LjkxMTctMi44ODYxIDcuNjI0Ny4wMjk3IDEwLjUyMTd6bTI2LjE0MS00OS42NjhoLS4zMzVsLjMzMS0uMDA0em0wIDAgNDkuNDYxIDQ5Ljc4MS01MC4xMDEgNDkuNzg1LTEzLjY0NSAxMy4yNjZoNDUuMTM1bDU3LjQ4NC01Ny43NzRjMi45MDEtMi45MTIgMi44ODYtNy42MjQtLjAzLTEwLjUyMWwtNDQuODIzLTQ0LjUzN3oiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=", this.supportedTransactionVersions = null, this._readyState = typeof window > "u" || typeof document > "u" ? u.Unsupported : u.NotDetected, this._connecting = !1, this._wallet = null, this._publicKey = null, this._readyState !== u.Unsupported && K(() => {
|
|
292
292
|
var t, n;
|
|
293
293
|
return (n = (t = window.bitkeep) == null ? void 0 : t.solana) != null && n.isBitKeep ? (this._readyState = u.Installed, this.emit("readyStateChange", this._readyState), !0) : !1;
|
|
294
294
|
});
|
|
@@ -307,7 +307,7 @@ class kt extends q {
|
|
|
307
307
|
if (this.connected || this.connecting)
|
|
308
308
|
return;
|
|
309
309
|
if (this._readyState !== u.Installed)
|
|
310
|
-
throw new
|
|
310
|
+
throw new b();
|
|
311
311
|
this._connecting = !0;
|
|
312
312
|
const e = window.bitkeep.solana;
|
|
313
313
|
let t;
|
|
@@ -320,7 +320,7 @@ class kt extends q {
|
|
|
320
320
|
try {
|
|
321
321
|
n = new x(t);
|
|
322
322
|
} catch (i) {
|
|
323
|
-
throw new
|
|
323
|
+
throw new k(i == null ? void 0 : i.message, i);
|
|
324
324
|
}
|
|
325
325
|
this._wallet = e, this._publicKey = n, this.emit("connect", n);
|
|
326
326
|
} catch (e) {
|
|
@@ -336,7 +336,7 @@ class kt extends q {
|
|
|
336
336
|
try {
|
|
337
337
|
await e.disconnect();
|
|
338
338
|
} catch (t) {
|
|
339
|
-
this.emit("error", new
|
|
339
|
+
this.emit("error", new R(t == null ? void 0 : t.message, t));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
this.emit("disconnect");
|
|
@@ -385,10 +385,10 @@ class kt extends q {
|
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
const
|
|
389
|
-
class
|
|
388
|
+
const kt = "Clover";
|
|
389
|
+
class vt extends F {
|
|
390
390
|
constructor(e = {}) {
|
|
391
|
-
super(), this.name =
|
|
391
|
+
super(), this.name = kt, this.url = "https://clv.org", this.icon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTM2LjQ4IDBIMTEuNTJDNS4xNTc2OCAwIDAgNS4xNTc2OCAwIDExLjUyVjM2LjQ4QzAgNDIuODQyMyA1LjE1NzY4IDQ4IDExLjUyIDQ4SDM2LjQ4QzQyLjg0MjMgNDggNDggNDIuODQyMyA0OCAzNi40OFYxMS41MkM0OCA1LjE1NzY4IDQyLjg0MjMgMCAzNi40OCAwWiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzc5MTBfMTYzMzUxKSIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTI0LjAwMDYgMzkuMzYwNkMzMi40ODM3IDM5LjM2MDYgMzkuMzYwNiAzMi40ODM3IDM5LjM2MDYgMjQuMDAwNkMzOS4zNjA2IDE1LjUxNzUgMzIuNDgzNyA4LjY0MDYyIDI0LjAwMDYgOC42NDA2MkMxNS41MTc1IDguNjQwNjIgOC42NDA2MiAxNS41MTc1IDguNjQwNjIgMjQuMDAwNkM4LjY0MDYyIDMyLjQ4MzcgMTUuNTE3NSAzOS4zNjA2IDI0LjAwMDYgMzkuMzYwNlpNMjEuMjg5OSAxNS44Njg4SDI2LjcxMVYyMS4zNDdIMjEuMjkwNFYyNi42NTRIMjYuNzExVjMyLjEzMjJIMjEuMjg5OVYyNi44MjUySDE1Ljg2OTNWMjEuMzQ3SDIxLjI4OTlWMTUuODY4OFpNMjYuNzEyIDIxLjM0N0gzMi4xMzMxVjI2LjgyNTJIMjYuNzEyVjIxLjM0N1oiIGZpbGw9ImJsYWNrIi8+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfNzkxMF8xNjMzNTEiIHgxPSI0OCIgeTE9Ii0xLjQzMDUxZS0wNiIgeDI9IjEuNDMwNTFlLTA2IiB5Mj0iNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0E5RkZFMCIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM4NkQ1RkYiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4=", this.supportedTransactionVersions = null, this._readyState = typeof window > "u" || typeof document > "u" ? u.Unsupported : u.NotDetected, this._connecting = !1, this._wallet = null, this._publicKey = null, this._readyState !== u.Unsupported && K(() => {
|
|
392
392
|
var t;
|
|
393
393
|
return (t = window.clover_solana) != null && t.isCloverWallet ? (this._readyState = u.Installed, this.emit("readyStateChange", this._readyState), !0) : !1;
|
|
394
394
|
});
|
|
@@ -407,7 +407,7 @@ class Gt extends q {
|
|
|
407
407
|
if (this.connected || this.connecting)
|
|
408
408
|
return;
|
|
409
409
|
if (this._readyState !== u.Installed)
|
|
410
|
-
throw new
|
|
410
|
+
throw new b();
|
|
411
411
|
this._connecting = !0;
|
|
412
412
|
const e = window.clover_solana;
|
|
413
413
|
let t;
|
|
@@ -420,7 +420,7 @@ class Gt extends q {
|
|
|
420
420
|
try {
|
|
421
421
|
n = new x(t);
|
|
422
422
|
} catch (i) {
|
|
423
|
-
throw new
|
|
423
|
+
throw new k(i == null ? void 0 : i.message, i);
|
|
424
424
|
}
|
|
425
425
|
this._wallet = e, this._publicKey = n, this.emit("connect", n);
|
|
426
426
|
} catch (e) {
|
|
@@ -469,17 +469,17 @@ class Gt extends q {
|
|
|
469
469
|
const { signature: n } = await t.signMessage(e);
|
|
470
470
|
return Uint8Array.from(n);
|
|
471
471
|
} catch (n) {
|
|
472
|
-
throw new
|
|
472
|
+
throw new X(n == null ? void 0 : n.message, n);
|
|
473
473
|
}
|
|
474
474
|
} catch (t) {
|
|
475
475
|
throw this.emit("error", t), t;
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
const
|
|
480
|
-
class
|
|
479
|
+
const Gt = "Coin98";
|
|
480
|
+
class Pt extends F {
|
|
481
481
|
constructor(e = {}) {
|
|
482
|
-
super(), this.name =
|
|
482
|
+
super(), this.name = Gt, this.url = "https://coin98.com", this.icon = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3NiA3NSI+CiAgPGRlZnM+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSIxMDEuNjgxJSIgeDI9Ii0xLjU1NyUiIHkxPSIxNS4yNjglIiB5Mj0iODQuOTE3JSI+CiAgICAgIDxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNGMUQ5NjEiLz4KICAgICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjQ0RBMTQ2Ii8+CiAgICA8L2xpbmVhckdyYWRpZW50PgogIDwvZGVmcz4KICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgPHJlY3Qgd2lkdGg9Ijc1IiBoZWlnaHQ9Ijc1IiBmaWxsPSIjMDAwIiByeD0iMTYiLz4KICAgIDxwYXRoIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTYxLjQ0IDBhMTMuN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LjkxMSAwIDAgMS0xLjUtNy41MzYgNi45MTggNi45MTggMCAwIDEgMi41NS0zLjEwMyA2LjkzNyA2LjkzNyAwIDAgMSAzLjg1LTEuMTY2Wm0yNC41Ni00LjgxYTEwLjA1OSAxMC4wNTkgMCAwIDAtNy4xMDMgMi45NCAxMC4wMiAxMC4wMiAwIDAgMC0yLjk0IDcuMDkgOS45IDkuOSAwIDAgMCAxLjIzIDQuNzk1IDEzLjU3NSAxMy41NzUgMCAwIDEgNC4yMTQtMi4zMjIgNS4wODIgNS4wODIgMCAwIDEtLjYyNS0yLjQ3NyA1LjIwNiA1LjIwNiAwIDAgMSAxLjUwMy0zLjczNiA1LjIyMyA1LjIyMyAwIDAgMSAzLjcyMi0xLjU1NCA1LjIzNCA1LjIzNCAwIDAgMSAzLjcyIDEuNTU0IDUuMjEzIDUuMjEzIDAgMCAxIDEuNTA1IDMuNzM2IDUuMjc5IDUuMjc5IDAgMCAxLS42MjMgMi40NzMgMTMuNTc0IDEzLjU3NCAwIDAgMSA0LjIxMyAyLjMyMiA5LjkwMyA5LjkwMyAwIDAgMCAxLjIzLTQuNzk1IDEwLjAzMiAxMC4wMzIgMCAwIDAtMi45NDYtNy4wODYgMTAuMDcgMTAuMDcgMCAwIDAtNy4xLTIuOTRabS0yMy43NSA3Ljk5aC0xLjYxN3YxLjc1YTIuNDE5IDIuNDE5IDAgMCAwLTEuNTgyIDIuNjg3IDIuNDE0IDIuNDE0IDAgMCAwIDIuMzkgMi4wMDYgMi40NSAyLjQ1IDAgMCAwIDEuNTU1LS41NzQgMi40MTQgMi40MTQgMCAwIDAtLjc0Ni00LjExOXYtMS43NVoiLz4KICA8L2c+Cjwvc3ZnPgo=", this.supportedTransactionVersions = null, this._readyState = typeof window > "u" || typeof document > "u" ? u.Unsupported : u.NotDetected, this._connecting = !1, this._wallet = null, this._publicKey = null, this._readyState !== u.Unsupported && K(() => {
|
|
483
483
|
var t;
|
|
484
484
|
return (t = window.coin98) != null && t.sol ? (this._readyState = u.Installed, this.emit("readyStateChange", this._readyState), !0) : !1;
|
|
485
485
|
});
|
|
@@ -502,7 +502,7 @@ class Bt extends q {
|
|
|
502
502
|
if (this.connected || this.connecting)
|
|
503
503
|
return;
|
|
504
504
|
if (this._readyState !== u.Installed)
|
|
505
|
-
throw new
|
|
505
|
+
throw new b();
|
|
506
506
|
this._connecting = !0;
|
|
507
507
|
const e = window.coin98.sol;
|
|
508
508
|
let t;
|
|
@@ -515,7 +515,7 @@ class Bt extends q {
|
|
|
515
515
|
try {
|
|
516
516
|
n = new x(t);
|
|
517
517
|
} catch (i) {
|
|
518
|
-
throw new
|
|
518
|
+
throw new k(i == null ? void 0 : i.message, i);
|
|
519
519
|
}
|
|
520
520
|
this._wallet = e, this._publicKey = n, this.emit("connect", n);
|
|
521
521
|
} catch (e) {
|
|
@@ -531,7 +531,7 @@ class Bt extends q {
|
|
|
531
531
|
try {
|
|
532
532
|
await e.disconnect();
|
|
533
533
|
} catch (t) {
|
|
534
|
-
this.emit("error", new
|
|
534
|
+
this.emit("error", new R(t == null ? void 0 : t.message, t));
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
this.emit("disconnect");
|
|
@@ -542,7 +542,7 @@ class Bt extends q {
|
|
|
542
542
|
if (!t)
|
|
543
543
|
throw new I();
|
|
544
544
|
try {
|
|
545
|
-
const n = await t.request({ method: "sol_sign", params: [e] }), i = new x(n.publicKey), s =
|
|
545
|
+
const n = await t.request({ method: "sol_sign", params: [e] }), i = new x(n.publicKey), s = $.decode(n.signature);
|
|
546
546
|
return e.addSignature(i, s), e;
|
|
547
547
|
} catch (n) {
|
|
548
548
|
throw new A(n == null ? void 0 : n.message, n);
|
|
@@ -559,7 +559,7 @@ class Bt extends q {
|
|
|
559
559
|
try {
|
|
560
560
|
const n = await t.request({ method: "sol_signAllTransactions", params: [e] }), i = new x(n.publicKey), s = n.signatures;
|
|
561
561
|
return e.map((N, c) => {
|
|
562
|
-
const g =
|
|
562
|
+
const g = $.decode(s[c]);
|
|
563
563
|
return N.addSignature(i, g), N;
|
|
564
564
|
});
|
|
565
565
|
} catch (n) {
|
|
@@ -576,19 +576,19 @@ class Bt extends q {
|
|
|
576
576
|
throw new I();
|
|
577
577
|
try {
|
|
578
578
|
const n = await t.request({ method: "sol_signMessage", params: [e] });
|
|
579
|
-
return
|
|
579
|
+
return $.decode(n.signature);
|
|
580
580
|
} catch (n) {
|
|
581
|
-
throw new
|
|
581
|
+
throw new X(n == null ? void 0 : n.message, n);
|
|
582
582
|
}
|
|
583
583
|
} catch (t) {
|
|
584
584
|
throw this.emit("error", t), t;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
const
|
|
589
|
-
class
|
|
588
|
+
const Bt = "Nightly";
|
|
589
|
+
class Vt extends F {
|
|
590
590
|
constructor() {
|
|
591
|
-
super(), this.name =
|
|
591
|
+
super(), this.name = Bt, this.url = "https://nightly.app", this.icon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYiIGhlaWdodD0iOTYiIHZpZXdCb3g9IjAgMCA5NiA5NiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQ4IDk2Qzc0LjUwOTcgOTYgOTYgNzQuNTA5NyA5NiA0OEM5NiAyMS40OTAzIDc0LjUwOTcgMCA0OCAwQzIxLjQ5MDMgMCAwIDIxLjQ5MDMgMCA0OEMwIDc0LjUwOTcgMjEuNDkwMyA5NiA0OCA5NloiIGZpbGw9IiM2RDczRjgiLz4KPHBhdGggZD0iTTQ4IDg1LjYzNTZDNDggODUuNjM1NiA1Mi40NTMzIDg1LjYzNTYgNTUuNDQgODIuNTg2N0M1OC45MTU1IDc5LjI4MDEgNTcuMzUxMSA3NS40MzEyIDYyLjI3NTUgNzEuNDMxMkM2Ni45ODY2IDY3LjY0NDUgNzIuOTI0NCA3MC4zMzc5IDcyLjkyNDQgNzAuMzM3OUM3Ny4w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? u.Unsupported : u.NotDetected, this._connecting = !1, this._publicKey = null, this._wallet = null, this._readyState !== u.Unsupported && K(() => {
|
|
592
592
|
var e;
|
|
593
593
|
return (e = window == null ? void 0 : window.nightly) != null && e.solana ? (this._readyState = u.Installed, this.emit("readyStateChange", this._readyState), !0) : !1;
|
|
594
594
|
});
|
|
@@ -607,13 +607,13 @@ class Ht extends q {
|
|
|
607
607
|
if (this.connected || this.connecting)
|
|
608
608
|
return;
|
|
609
609
|
if (this._readyState !== u.Installed)
|
|
610
|
-
throw new
|
|
610
|
+
throw new b();
|
|
611
611
|
this._connecting = !0;
|
|
612
612
|
const e = window.nightly.solana;
|
|
613
613
|
try {
|
|
614
614
|
await e.connect();
|
|
615
615
|
} catch (n) {
|
|
616
|
-
throw new
|
|
616
|
+
throw new it(n == null ? void 0 : n.message, n);
|
|
617
617
|
}
|
|
618
618
|
if (e.publicKey.toString() === "11111111111111111111111111111111")
|
|
619
619
|
throw new p();
|
|
@@ -621,7 +621,7 @@ class Ht extends q {
|
|
|
621
621
|
try {
|
|
622
622
|
t = new x(e.publicKey.toBytes());
|
|
623
623
|
} catch (n) {
|
|
624
|
-
throw new
|
|
624
|
+
throw new k(n == null ? void 0 : n.message, n);
|
|
625
625
|
}
|
|
626
626
|
this._wallet = e, this._publicKey = t, this.emit("connect", t);
|
|
627
627
|
} catch (e) {
|
|
@@ -637,7 +637,7 @@ class Ht extends q {
|
|
|
637
637
|
try {
|
|
638
638
|
await e.disconnect();
|
|
639
639
|
} catch {
|
|
640
|
-
this.emit("error", new
|
|
640
|
+
this.emit("error", new Mt());
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
this.emit("disconnect");
|
|
@@ -685,10 +685,10 @@ class Ht extends q {
|
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
|
-
const
|
|
689
|
-
class
|
|
688
|
+
const Dt = "solana:mainnet", Ht = "solana:devnet", Jt = "solana:testnet", Rt = "solana:localnet", Xt = "Solong";
|
|
689
|
+
class Kt extends lt {
|
|
690
690
|
constructor(e = {}) {
|
|
691
|
-
super(), this.name =
|
|
691
|
+
super(), this.name = Xt, this.url = "https://solongwallet.io", this.icon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAGlklEQVR4Ae3bA5DsyhfH8TNr49r2/du2bdu2bdu2zcdNrm3b9toz533rvctUn3Umk9p01WfdvVW/6nROBxJVS1rSkpa0pCUtaUlLWtKSpl4VXos3GJ4sujQFuUKfWl+qT730arzB8Ex9YksKcgXjFOCVeIPhBYydB8mawQ+yiGC8n0EN6zAVcgXhpQjoq1DDdsyDAAB9Pwo1HMC9INk0FIM8Bt1Qh9WohQQCvD+BtEMdtmC8I7y5aIE67MV0SBwDvB3qsE/UHwMJIpC/QB1OYiLEEeCPoQ7nMRcSwwDrao3Zl8aTIEGEUYlL0IAMXuQOr66UvsegDm+ExDJAPNiafSg0AlyIbmjAWX1aQzEkiH6T0QkNaEdpnAN8NNRhPcSF9e9el2ebBhyAuNBvGtLQgIuQOAd4D6jDMRQbM3AmOqEBDfq0xjJIEP3GohkakEFVjAP0y401sAsLnAE+pb6EsC5AA9J4sHsG+kX0PQR1eFJ8AwTWQh0+DjFm4a1Qh2/AOoz/BHX4ZdwD/CDU4aioX2GUMW+AOnB2bqiBBDHe86EOTYw5GRKJwQ/ijUM91OGTxgysxSmowzeNw7j08m5DHX4l7Igg2TY0g9hbLBZ+f7oxC98CdWjDvYzD+MVQh07GfEQsZyDgVWA71OGvorfnQQCAcqaYUFZDHW6j/itAoB70GcergzqsEa0rhGTTEA7mP0koK4xdyeOMmvBBhJU2zsjPMw7lu9O3zShpXheHk4hhcZ4w26AOG4RSxDiUfwZ12KdPqy+FBDHeV6EOZxizIg6HsMGbiQ5jdjzBXRfeefGg3tgbv9BYC0fhZE7sjUMY9Pf9rdcI5XtQh39BjBA/C3VYnM0zcgiDek+GOhzh93mQoMs7kIxze/eMhnxIEOPNM9bcFtTEeA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yC9EEe7oEv4Sy0D/YQ+IS4ver1JNT38z7sWnwbb8TT8Cg8Gs/Gu/Ar7EEXtI/2ud7Ni0GAYCbiJDQiazA57k9nTcdqaJb9UtSvitXbmjavCJ9AMzRkJ/B80boUJBLhDe7Nw1/QCR1i9fgKRg6HByzvjZ/hInQQMjiCT2PSMHxC1a/l8wvwGxyG9kEaW/EtPI4xiiE5JcLrd6PxcLwM78SH8EG8Fc/H/UUXVUByGh8SSYBJgEmASYCJJMAkwBi6A3xCqZhiBz8+AAAAAElFTkSuQmCC", this.supportedTransactionVersions = null, this._readyState = typeof window > "u" || typeof document > "u" ? u.Unsupported : u.NotDetected, this._connecting = !1, this._wallet = null, this._publicKey = null, this._readyState !== u.Unsupported && K(() => window.solong ? (this._readyState = u.Installed, this.emit("readyStateChange", this._readyState), !0) : !1);
|
|
692
692
|
}
|
|
693
693
|
get publicKey() {
|
|
694
694
|
return this._publicKey;
|
|
@@ -708,7 +708,7 @@ class Ft extends ut {
|
|
|
708
708
|
if (this.connected || this.connecting)
|
|
709
709
|
return;
|
|
710
710
|
if (this._readyState !== u.Installed)
|
|
711
|
-
throw new
|
|
711
|
+
throw new b();
|
|
712
712
|
this._connecting = !0;
|
|
713
713
|
const e = window.solong;
|
|
714
714
|
let t;
|
|
@@ -721,7 +721,7 @@ class Ft extends ut {
|
|
|
721
721
|
try {
|
|
722
722
|
n = new x(t);
|
|
723
723
|
} catch (i) {
|
|
724
|
-
throw new
|
|
724
|
+
throw new k(i == null ? void 0 : i.message, i);
|
|
725
725
|
}
|
|
726
726
|
this._wallet = e, this._publicKey = n, this.emit("connect", n);
|
|
727
727
|
} catch (e) {
|
|
@@ -748,10 +748,10 @@ class Ft extends ut {
|
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
|
-
const
|
|
752
|
-
class
|
|
751
|
+
const Ft = "Torus";
|
|
752
|
+
class qt extends F {
|
|
753
753
|
constructor({ params: e = { showTorusButton: !1 } } = { params: { showTorusButton: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S4xNDY1IDExLjY4MzNDMTkuMTQ2NSAxMi44OTM0IDIwLjEyNzUgMTMuODc0NCAyMS4zMzc2IDEzLjg3NDRaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K", this.supportedTransactionVersions = null, this._readyState = typeof window > "u" || typeof document > "u" ? u.Unsupported : u.Loadable, this._connecting = !1, this._wallet = null, this._publicKey = null, this._params = e;
|
|
755
755
|
}
|
|
756
756
|
get publicKey() {
|
|
757
757
|
return this._publicKey;
|
|
@@ -771,25 +771,25 @@ class $t extends q {
|
|
|
771
771
|
if (this.connected || this.connecting)
|
|
772
772
|
return;
|
|
773
773
|
if (this._readyState !== u.Loadable)
|
|
774
|
-
throw new
|
|
774
|
+
throw new b();
|
|
775
775
|
this._connecting = !0;
|
|
776
776
|
let e;
|
|
777
777
|
try {
|
|
778
|
-
e = (await import("./solanaEmbed.esm-
|
|
778
|
+
e = (await import("./solanaEmbed.esm-r3X45UMo.mjs")).default;
|
|
779
779
|
} catch (s) {
|
|
780
|
-
throw new
|
|
780
|
+
throw new zt(s == null ? void 0 : s.message, s);
|
|
781
781
|
}
|
|
782
782
|
let t;
|
|
783
783
|
try {
|
|
784
784
|
t = window.torus || new e();
|
|
785
785
|
} catch (s) {
|
|
786
|
-
throw new
|
|
786
|
+
throw new v(s == null ? void 0 : s.message, s);
|
|
787
787
|
}
|
|
788
788
|
if (!t.isInitialized)
|
|
789
789
|
try {
|
|
790
790
|
await t.init(this._params);
|
|
791
791
|
} catch (s) {
|
|
792
|
-
throw new
|
|
792
|
+
throw new it(s == null ? void 0 : s.message, s);
|
|
793
793
|
}
|
|
794
794
|
let n;
|
|
795
795
|
try {
|
|
@@ -801,7 +801,7 @@ class $t extends q {
|
|
|
801
801
|
try {
|
|
802
802
|
i = new x(n[0]);
|
|
803
803
|
} catch (s) {
|
|
804
|
-
throw new
|
|
804
|
+
throw new k(s == null ? void 0 : s.message, s);
|
|
805
805
|
}
|
|
806
806
|
this._wallet = t, this._publicKey = i, this.emit("connect", i);
|
|
807
807
|
} catch (e) {
|
|
@@ -817,7 +817,7 @@ class $t extends q {
|
|
|
817
817
|
try {
|
|
818
818
|
e.isLoggedIn && await e.cleanUp();
|
|
819
819
|
} catch (t) {
|
|
820
|
-
this.emit("error", new
|
|
820
|
+
this.emit("error", new R(t == null ? void 0 : t.message, t));
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
823
|
this.emit("disconnect");
|
|
@@ -833,7 +833,7 @@ class $t extends q {
|
|
|
833
833
|
const { signature: c } = await i.signAndSendTransaction(e, N);
|
|
834
834
|
return c;
|
|
835
835
|
} catch (s) {
|
|
836
|
-
throw s instanceof z ? s : new
|
|
836
|
+
throw s instanceof z ? s : new U(s == null ? void 0 : s.message, s);
|
|
837
837
|
}
|
|
838
838
|
} catch (i) {
|
|
839
839
|
throw this.emit("error", i), i;
|
|
@@ -875,14 +875,14 @@ class $t extends q {
|
|
|
875
875
|
try {
|
|
876
876
|
return await t.signMessage(e);
|
|
877
877
|
} catch (n) {
|
|
878
|
-
throw new
|
|
878
|
+
throw new X(n == null ? void 0 : n.message, n);
|
|
879
879
|
}
|
|
880
880
|
} catch (t) {
|
|
881
881
|
throw this.emit("error", t), t;
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function at(a) {
|
|
886
886
|
switch (a) {
|
|
887
887
|
case "processed":
|
|
888
888
|
case "confirmed":
|
|
@@ -901,16 +901,16 @@ function rt(a) {
|
|
|
901
901
|
return;
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
const
|
|
905
|
-
function
|
|
906
|
-
return a.includes(
|
|
904
|
+
const $t = "https://api.mainnet-beta.solana.com";
|
|
905
|
+
function te(a) {
|
|
906
|
+
return a.includes($t) ? Dt : /\bdevnet\b/i.test(a) ? Ht : /\btestnet\b/i.test(a) ? Jt : /\blocalhost\b/i.test(a) || /\b127\.0\.0\.1\b/.test(a) ? Rt : Dt;
|
|
907
907
|
}
|
|
908
|
-
const
|
|
909
|
-
class
|
|
908
|
+
const ee = "WalletConnect";
|
|
909
|
+
class ne extends lt {
|
|
910
910
|
constructor(e) {
|
|
911
|
-
super(), this.name =
|
|
911
|
+
super(), this.name = ee, this.url = "https://walletconnect.org", this.icon = "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4NSIgdmlld0JveD0iMCAwIDMwMCAxODUiIHdpZHRoPSIzMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTYxLjQzODU0MjkgMzYuMjU2MjYxMmM0OC45MTEyMjQxLTQ3Ljg4ODE2NjMgMTI4LjIxMTk4NzEtNDcuODg4MTY2MyAxNzcuMTIzMjA5MSAwbDUuODg2NTQ1IDUuNzYzNDE3NGMyLjQ0NTU2MSAyLjM5NDQwODEgMi40NDU1NjEgNi4yNzY1MTEyIDAgOC42NzA5MjA0bC0yMC4xMzY2OTUgMTkuNzE1NTAzYy0xLjIyMjc4MSAxLjE5NzIwNTEtMy4yMDUzIDEuMTk3MjA1MS00LjQyODA4MSAwbC04LjEwMDU4NC03LjkzMTE0NzljLTM0LjEyMTY5Mi0zMy40MDc5ODE3LTg5LjQ0Mzg4Ni0zMy40MDc5ODE3LTEyMy41NjU1Nzg4IDBsLTguNjc1MDU2MiA4LjQ5MzYwNTFjLTEuMjIyNzgxNiAxLjE5NzIwNDEtMy4yMDUzMDEgMS4xOTcyMDQxLTQuNDI4MDgwNiAwbC0yMC4xMzY2OTQ5LTE5LjcxNTUwMzFjLTIuNDQ1NTYxMi0yLjM5NDQwOTItMi40NDU1NjEyLTYuMjc2NTEyMiAwLTguNjcwOTIwNHptMjE4Ljc2Nzc5NjEgNDAuNzczNzQ0OSAxNy45MjE2OTcgMTcuNTQ2ODk3YzIuNDQ1NTQ5IDIuMzk0Mzk2OSAyLjQ0NTU2MyA2LjI3NjQ3NjkuMDAwMDMxIDguNjcwODg5OWwtODAuODEwMTcxIDc5LjEy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IxNDA0IDBsNTcuMzUzOTc1LTU2LjE1NDMyNDljMi40NDU1NjEtMi4zOTQ0MDkyIDYuNDEwNTk5LTIuMzk0NDA5MiA4Ljg1NjE2IDB6IiBmaWxsPSIjM2I5OWZjIi8+PC9zdmc+", this.supportedTransactionVersions = /* @__PURE__ */ new Set(["legacy", 0]), this._readyState = typeof window > "u" ? u.Unsupported : u.Loadable, this._disconnected = () => {
|
|
912
912
|
const t = this._wallet;
|
|
913
|
-
t && (t.client.off("session_delete", this._disconnected), this._wallet = null, this._publicKey = null, this.emit("error", new
|
|
913
|
+
t && (t.client.off("session_delete", this._disconnected), this._wallet = null, this._publicKey = null, this.emit("error", new Mt()), this.emit("disconnect"));
|
|
914
914
|
}, this._publicKey = null, this._connecting = !1, this._wallet = null, this._config = e;
|
|
915
915
|
}
|
|
916
916
|
get publicKey() {
|
|
@@ -927,22 +927,22 @@ class ie extends ut {
|
|
|
927
927
|
if (this.connected || this.connecting)
|
|
928
928
|
return;
|
|
929
929
|
if (this._readyState !== u.Loadable)
|
|
930
|
-
throw new
|
|
930
|
+
throw new b();
|
|
931
931
|
this._connecting = !0;
|
|
932
932
|
let e, t;
|
|
933
933
|
try {
|
|
934
|
-
({ WalletConnectWallet: e, WalletConnectChainID: t } = await import("./index-
|
|
934
|
+
({ WalletConnectWallet: e, WalletConnectChainID: t } = await import("./index-eFSkLRsX.mjs"));
|
|
935
935
|
} catch (s) {
|
|
936
|
-
throw new
|
|
936
|
+
throw new zt(s == null ? void 0 : s.message, s);
|
|
937
937
|
}
|
|
938
938
|
let n, i;
|
|
939
939
|
try {
|
|
940
940
|
n = new e({
|
|
941
|
-
network: this._config.network ===
|
|
941
|
+
network: this._config.network === J.Mainnet ? t.Mainnet : t.Devnet,
|
|
942
942
|
options: this._config.options
|
|
943
943
|
}), { publicKey: i } = await n.connect();
|
|
944
944
|
} catch (s) {
|
|
945
|
-
throw s.constructor.name === "QRCodeModalError" ? new
|
|
945
|
+
throw s.constructor.name === "QRCodeModalError" ? new Ut() : new it(s == null ? void 0 : s.message, s);
|
|
946
946
|
}
|
|
947
947
|
n.client.on("session_delete", this._disconnected), this._wallet = n, this._publicKey = i, this.emit("connect", i);
|
|
948
948
|
} catch (e) {
|
|
@@ -958,7 +958,7 @@ class ie extends ut {
|
|
|
958
958
|
try {
|
|
959
959
|
await e.disconnect();
|
|
960
960
|
} catch (t) {
|
|
961
|
-
this.emit("error", new
|
|
961
|
+
this.emit("error", new R(t == null ? void 0 : t.message, t));
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
964
|
this.emit("disconnect");
|
|
@@ -985,14 +985,14 @@ class ie extends ut {
|
|
|
985
985
|
try {
|
|
986
986
|
return await t.signMessage(e);
|
|
987
987
|
} catch (n) {
|
|
988
|
-
throw new
|
|
988
|
+
throw new X(n == null ? void 0 : n.message, n);
|
|
989
989
|
}
|
|
990
990
|
} catch (t) {
|
|
991
991
|
throw this.emit("error", t), t;
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
class
|
|
995
|
+
class E extends xt {
|
|
996
996
|
constructor(e, t) {
|
|
997
997
|
super(), this.adapter = e, this.connection = t, e.name.includes("Bitget") ? this._name = e.name + " Wallet" : this._name = e.name;
|
|
998
998
|
}
|
|
@@ -1034,7 +1034,7 @@ class O extends Ct {
|
|
|
1034
1034
|
}), this.adapter.removeAllListeners(), this.emit("disconnect"));
|
|
1035
1035
|
}
|
|
1036
1036
|
getChainId() {
|
|
1037
|
-
return
|
|
1037
|
+
return ut;
|
|
1038
1038
|
}
|
|
1039
1039
|
getAddress() {
|
|
1040
1040
|
var e;
|
|
@@ -1085,19 +1085,19 @@ class O extends Ct {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
getWalletState() {
|
|
1087
1087
|
const e = this.adapter.readyState;
|
|
1088
|
-
if (!(e in
|
|
1088
|
+
if (!(e in gt))
|
|
1089
1089
|
throw new Error(`Unknown wallet state ${e}`);
|
|
1090
|
-
return
|
|
1090
|
+
return gt[e];
|
|
1091
1091
|
}
|
|
1092
1092
|
getFeatures() {
|
|
1093
1093
|
const e = [
|
|
1094
|
-
|
|
1095
|
-
|
|
1094
|
+
q.SendTransaction,
|
|
1095
|
+
q.SignAndSendTransaction
|
|
1096
1096
|
];
|
|
1097
|
-
return this.adapter.signTransaction && this.adapter.signAllTransactions && e.push(
|
|
1097
|
+
return this.adapter.signTransaction && this.adapter.signAllTransactions && e.push(q.SignTransaction), this.adapter.signMessage && e.push(q.SignMessage), e;
|
|
1098
1098
|
}
|
|
1099
1099
|
supportsChain(e) {
|
|
1100
|
-
return e ===
|
|
1100
|
+
return e === ut;
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
1103
|
var y = function(a, e, t, n, i) {
|
|
@@ -1114,16 +1114,16 @@ var y = function(a, e, t, n, i) {
|
|
|
1114
1114
|
if (typeof e == "function" ? a !== e || !n : !e.has(a))
|
|
1115
1115
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1116
1116
|
return t === "m" ? n : t === "a" ? n.call(a) : n ? n.value : e.get(a);
|
|
1117
|
-
}, T, m,
|
|
1118
|
-
class
|
|
1117
|
+
}, T, m, Z, W, Y, V, et, w, nt, rt, tt, ct, H, ot, dt, yt, At, jt;
|
|
1118
|
+
class ie extends ft {
|
|
1119
1119
|
constructor({ wallet: e }) {
|
|
1120
|
-
super(), T.add(this), m.set(this, void 0),
|
|
1120
|
+
super(), T.add(this), m.set(this, void 0), Z.set(this, void 0), W.set(this, void 0), Y.set(this, void 0), V.set(this, void 0), et.set(this, void 0), w.set(this, void 0), nt.set(this, typeof window > "u" || typeof document > "u" ? u.Unsupported : u.Installed), ot.set(this, (t) => {
|
|
1121
1121
|
if ("accounts" in t) {
|
|
1122
1122
|
const n = r(this, w, "f").accounts[0];
|
|
1123
|
-
r(this, m, "f") && !r(this,
|
|
1123
|
+
r(this, m, "f") && !r(this, Y, "f") && n !== r(this, m, "f") && (n ? r(this, T, "m", tt).call(this, n) : (this.emit("error", new Mt()), r(this, T, "m", ct).call(this)));
|
|
1124
1124
|
}
|
|
1125
|
-
"features" in t && r(this, T, "m",
|
|
1126
|
-
}), y(this, w, e, "f"), y(this, m, null, "f"), y(this,
|
|
1125
|
+
"features" in t && r(this, T, "m", H).call(this);
|
|
1126
|
+
}), y(this, w, e, "f"), y(this, m, null, "f"), y(this, Z, null, "f"), y(this, W, !1, "f"), y(this, Y, !1, "f"), y(this, V, r(this, w, "f").features[mt].on("change", r(this, ot, "f")), "f"), r(this, T, "m", H).call(this);
|
|
1127
1127
|
}
|
|
1128
1128
|
get name() {
|
|
1129
1129
|
return r(this, w, "f").name;
|
|
@@ -1135,16 +1135,16 @@ class se extends Lt {
|
|
|
1135
1135
|
return r(this, w, "f").icon;
|
|
1136
1136
|
}
|
|
1137
1137
|
get readyState() {
|
|
1138
|
-
return r(this,
|
|
1138
|
+
return r(this, nt, "f");
|
|
1139
1139
|
}
|
|
1140
1140
|
get publicKey() {
|
|
1141
|
-
return r(this,
|
|
1141
|
+
return r(this, Z, "f");
|
|
1142
1142
|
}
|
|
1143
1143
|
get connecting() {
|
|
1144
|
-
return r(this,
|
|
1144
|
+
return r(this, W, "f");
|
|
1145
1145
|
}
|
|
1146
1146
|
get supportedTransactionVersions() {
|
|
1147
|
-
return r(this,
|
|
1147
|
+
return r(this, et, "f");
|
|
1148
1148
|
}
|
|
1149
1149
|
get wallet() {
|
|
1150
1150
|
return r(this, w, "f");
|
|
@@ -1153,26 +1153,26 @@ class se extends Lt {
|
|
|
1153
1153
|
return !0;
|
|
1154
1154
|
}
|
|
1155
1155
|
destroy() {
|
|
1156
|
-
y(this, m, null, "f"), y(this,
|
|
1156
|
+
y(this, m, null, "f"), y(this, Z, null, "f"), y(this, W, !1, "f"), y(this, Y, !1, "f");
|
|
1157
1157
|
const e = r(this, V, "f");
|
|
1158
1158
|
e && (y(this, V, null, "f"), e());
|
|
1159
1159
|
}
|
|
1160
1160
|
async autoConnect() {
|
|
1161
|
-
return r(this, T, "m",
|
|
1161
|
+
return r(this, T, "m", rt).call(this, { silent: !0 });
|
|
1162
1162
|
}
|
|
1163
1163
|
async connect() {
|
|
1164
|
-
return r(this, T, "m",
|
|
1164
|
+
return r(this, T, "m", rt).call(this);
|
|
1165
1165
|
}
|
|
1166
1166
|
async disconnect() {
|
|
1167
|
-
if (
|
|
1167
|
+
if (It in r(this, w, "f").features)
|
|
1168
1168
|
try {
|
|
1169
|
-
y(this,
|
|
1169
|
+
y(this, Y, !0, "f"), await r(this, w, "f").features[It].disconnect();
|
|
1170
1170
|
} catch (e) {
|
|
1171
|
-
this.emit("error", new
|
|
1171
|
+
this.emit("error", new R(e == null ? void 0 : e.message, e));
|
|
1172
1172
|
} finally {
|
|
1173
|
-
y(this,
|
|
1173
|
+
y(this, Y, !1, "f");
|
|
1174
1174
|
}
|
|
1175
|
-
r(this, T, "m",
|
|
1175
|
+
r(this, T, "m", ct).call(this);
|
|
1176
1176
|
}
|
|
1177
1177
|
async sendTransaction(e, t, n = {}) {
|
|
1178
1178
|
try {
|
|
@@ -1180,9 +1180,9 @@ class se extends Lt {
|
|
|
1180
1180
|
if (!i)
|
|
1181
1181
|
throw new I();
|
|
1182
1182
|
let s;
|
|
1183
|
-
if (
|
|
1184
|
-
if (i.features.includes(
|
|
1185
|
-
s =
|
|
1183
|
+
if (O in r(this, w, "f").features)
|
|
1184
|
+
if (i.features.includes(O))
|
|
1185
|
+
s = O;
|
|
1186
1186
|
else if (j in r(this, w, "f").features && i.features.includes(j))
|
|
1187
1187
|
s = j;
|
|
1188
1188
|
else
|
|
@@ -1192,131 +1192,131 @@ class se extends Lt {
|
|
|
1192
1192
|
throw new p();
|
|
1193
1193
|
s = j;
|
|
1194
1194
|
} else
|
|
1195
|
-
throw new
|
|
1196
|
-
const N =
|
|
1195
|
+
throw new v();
|
|
1196
|
+
const N = te(t.rpcEndpoint);
|
|
1197
1197
|
if (!i.chains.includes(N))
|
|
1198
|
-
throw new
|
|
1198
|
+
throw new U();
|
|
1199
1199
|
try {
|
|
1200
1200
|
const { signers: c, ...g } = n;
|
|
1201
1201
|
let o;
|
|
1202
|
-
if (
|
|
1202
|
+
if (_(e) ? (c != null && c.length && e.sign(c), o = e.serialize()) : (e = await this.prepareTransaction(e, t, g), c != null && c.length && e.partialSign(...c), o = new Uint8Array(e.serialize({
|
|
1203
1203
|
requireAllSignatures: !1,
|
|
1204
1204
|
verifySignatures: !1
|
|
1205
|
-
}))), s ===
|
|
1206
|
-
const [M] = await r(this, w, "f").features[
|
|
1205
|
+
}))), s === O) {
|
|
1206
|
+
const [M] = await r(this, w, "f").features[O].signAndSendTransaction({
|
|
1207
1207
|
account: i,
|
|
1208
1208
|
chain: N,
|
|
1209
1209
|
transaction: o,
|
|
1210
1210
|
options: {
|
|
1211
|
-
preflightCommitment:
|
|
1211
|
+
preflightCommitment: at(g.preflightCommitment || t.commitment),
|
|
1212
1212
|
skipPreflight: g.skipPreflight,
|
|
1213
1213
|
maxRetries: g.maxRetries,
|
|
1214
1214
|
minContextSlot: g.minContextSlot
|
|
1215
1215
|
}
|
|
1216
1216
|
});
|
|
1217
|
-
return
|
|
1217
|
+
return $.encode(M.signature);
|
|
1218
1218
|
} else {
|
|
1219
1219
|
const [M] = await r(this, w, "f").features[j].signTransaction({
|
|
1220
1220
|
account: i,
|
|
1221
1221
|
chain: N,
|
|
1222
1222
|
transaction: o,
|
|
1223
1223
|
options: {
|
|
1224
|
-
preflightCommitment:
|
|
1224
|
+
preflightCommitment: at(g.preflightCommitment || t.commitment),
|
|
1225
1225
|
minContextSlot: g.minContextSlot
|
|
1226
1226
|
}
|
|
1227
1227
|
});
|
|
1228
1228
|
return await t.sendRawTransaction(M.signedTransaction, {
|
|
1229
1229
|
...g,
|
|
1230
|
-
preflightCommitment:
|
|
1230
|
+
preflightCommitment: at(g.preflightCommitment || t.commitment)
|
|
1231
1231
|
});
|
|
1232
1232
|
}
|
|
1233
1233
|
} catch (c) {
|
|
1234
|
-
throw c instanceof z ? c : new
|
|
1234
|
+
throw c instanceof z ? c : new U(c == null ? void 0 : c.message, c);
|
|
1235
1235
|
}
|
|
1236
1236
|
} catch (i) {
|
|
1237
1237
|
throw this.emit("error", i), i;
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
1241
|
-
m = /* @__PURE__ */ new WeakMap(),
|
|
1241
|
+
m = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakSet(), rt = async function(e) {
|
|
1242
1242
|
try {
|
|
1243
1243
|
if (this.connected || this.connecting)
|
|
1244
1244
|
return;
|
|
1245
|
-
if (r(this,
|
|
1246
|
-
throw new
|
|
1247
|
-
if (y(this,
|
|
1245
|
+
if (r(this, nt, "f") !== u.Installed)
|
|
1246
|
+
throw new b();
|
|
1247
|
+
if (y(this, W, !0, "f"), !r(this, w, "f").accounts.length)
|
|
1248
1248
|
try {
|
|
1249
|
-
await r(this, w, "f").features[
|
|
1249
|
+
await r(this, w, "f").features[Lt].connect(e);
|
|
1250
1250
|
} catch (n) {
|
|
1251
|
-
throw new
|
|
1251
|
+
throw new it(n == null ? void 0 : n.message, n);
|
|
1252
1252
|
}
|
|
1253
1253
|
const t = r(this, w, "f").accounts[0];
|
|
1254
1254
|
if (!t)
|
|
1255
1255
|
throw new p();
|
|
1256
|
-
r(this, T, "m",
|
|
1256
|
+
r(this, T, "m", tt).call(this, t);
|
|
1257
1257
|
} catch (t) {
|
|
1258
1258
|
throw this.emit("error", t), t;
|
|
1259
1259
|
} finally {
|
|
1260
|
-
y(this,
|
|
1260
|
+
y(this, W, !1, "f");
|
|
1261
1261
|
}
|
|
1262
|
-
},
|
|
1262
|
+
}, tt = function(e) {
|
|
1263
1263
|
let t;
|
|
1264
1264
|
try {
|
|
1265
1265
|
t = new x(e.address);
|
|
1266
1266
|
} catch (n) {
|
|
1267
|
-
throw new
|
|
1267
|
+
throw new k(n == null ? void 0 : n.message, n);
|
|
1268
1268
|
}
|
|
1269
|
-
y(this, m, e, "f"), y(this,
|
|
1270
|
-
},
|
|
1271
|
-
y(this, m, null, "f"), y(this,
|
|
1272
|
-
},
|
|
1269
|
+
y(this, m, e, "f"), y(this, Z, t, "f"), r(this, T, "m", H).call(this), this.emit("connect", t);
|
|
1270
|
+
}, ct = function() {
|
|
1271
|
+
y(this, m, null, "f"), y(this, Z, null, "f"), r(this, T, "m", H).call(this), this.emit("disconnect");
|
|
1272
|
+
}, H = function() {
|
|
1273
1273
|
var t, n;
|
|
1274
|
-
const e =
|
|
1275
|
-
y(this,
|
|
1276
|
-
},
|
|
1274
|
+
const e = O in r(this, w, "f").features ? r(this, w, "f").features[O].supportedTransactionVersions : r(this, w, "f").features[j].supportedTransactionVersions;
|
|
1275
|
+
y(this, et, Ot(e, ["legacy"]) ? null : new Set(e), "f"), j in r(this, w, "f").features && ((t = r(this, m, "f")) != null && t.features.includes(j)) ? (this.signTransaction = r(this, T, "m", dt), this.signAllTransactions = r(this, T, "m", yt)) : (delete this.signTransaction, delete this.signAllTransactions), B in r(this, w, "f").features && ((n = r(this, m, "f")) != null && n.features.includes(B)) ? this.signMessage = r(this, T, "m", At) : delete this.signMessage, st in r(this, w, "f").features ? this.signIn = r(this, T, "m", jt) : delete this.signIn;
|
|
1276
|
+
}, dt = async function(e) {
|
|
1277
1277
|
try {
|
|
1278
1278
|
const t = r(this, m, "f");
|
|
1279
1279
|
if (!t)
|
|
1280
1280
|
throw new I();
|
|
1281
1281
|
if (!(j in r(this, w, "f").features))
|
|
1282
|
-
throw new
|
|
1282
|
+
throw new v();
|
|
1283
1283
|
if (!t.features.includes(j))
|
|
1284
1284
|
throw new p();
|
|
1285
1285
|
try {
|
|
1286
1286
|
const i = (await r(this, w, "f").features[j].signTransaction({
|
|
1287
1287
|
account: t,
|
|
1288
|
-
transaction:
|
|
1288
|
+
transaction: _(e) ? e.serialize() : new Uint8Array(e.serialize({
|
|
1289
1289
|
requireAllSignatures: !1,
|
|
1290
1290
|
verifySignatures: !1
|
|
1291
1291
|
}))
|
|
1292
1292
|
}))[0].signedTransaction;
|
|
1293
|
-
return
|
|
1293
|
+
return _(e) ? ht.deserialize(i) : wt.from(i);
|
|
1294
1294
|
} catch (n) {
|
|
1295
1295
|
throw n instanceof z ? n : new A(n == null ? void 0 : n.message, n);
|
|
1296
1296
|
}
|
|
1297
1297
|
} catch (t) {
|
|
1298
1298
|
throw this.emit("error", t), t;
|
|
1299
1299
|
}
|
|
1300
|
-
},
|
|
1300
|
+
}, yt = async function(e) {
|
|
1301
1301
|
try {
|
|
1302
1302
|
const t = r(this, m, "f");
|
|
1303
1303
|
if (!t)
|
|
1304
1304
|
throw new I();
|
|
1305
1305
|
if (!(j in r(this, w, "f").features))
|
|
1306
|
-
throw new
|
|
1306
|
+
throw new v();
|
|
1307
1307
|
if (!t.features.includes(j))
|
|
1308
1308
|
throw new p();
|
|
1309
1309
|
try {
|
|
1310
1310
|
const n = await r(this, w, "f").features[j].signTransaction(...e.map((i) => ({
|
|
1311
1311
|
account: t,
|
|
1312
|
-
transaction:
|
|
1312
|
+
transaction: _(i) ? i.serialize() : new Uint8Array(i.serialize({
|
|
1313
1313
|
requireAllSignatures: !1,
|
|
1314
1314
|
verifySignatures: !1
|
|
1315
1315
|
}))
|
|
1316
1316
|
})));
|
|
1317
1317
|
return e.map((i, s) => {
|
|
1318
1318
|
const N = n[s].signedTransaction;
|
|
1319
|
-
return
|
|
1319
|
+
return _(i) ? ht.deserialize(N) : wt.from(N);
|
|
1320
1320
|
});
|
|
1321
1321
|
} catch (n) {
|
|
1322
1322
|
throw new A(n == null ? void 0 : n.message, n);
|
|
@@ -1324,13 +1324,13 @@ m = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), k = /* @__
|
|
|
1324
1324
|
} catch (t) {
|
|
1325
1325
|
throw this.emit("error", t), t;
|
|
1326
1326
|
}
|
|
1327
|
-
},
|
|
1327
|
+
}, At = async function(e) {
|
|
1328
1328
|
try {
|
|
1329
1329
|
const t = r(this, m, "f");
|
|
1330
1330
|
if (!t)
|
|
1331
1331
|
throw new I();
|
|
1332
1332
|
if (!(B in r(this, w, "f").features))
|
|
1333
|
-
throw new
|
|
1333
|
+
throw new v();
|
|
1334
1334
|
if (!t.features.includes(B))
|
|
1335
1335
|
throw new p();
|
|
1336
1336
|
try {
|
|
@@ -1339,55 +1339,56 @@ m = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), k = /* @__
|
|
|
1339
1339
|
message: e
|
|
1340
1340
|
}))[0].signature;
|
|
1341
1341
|
} catch (n) {
|
|
1342
|
-
throw new
|
|
1342
|
+
throw new X(n == null ? void 0 : n.message, n);
|
|
1343
1343
|
}
|
|
1344
1344
|
} catch (t) {
|
|
1345
1345
|
throw this.emit("error", t), t;
|
|
1346
1346
|
}
|
|
1347
|
-
},
|
|
1347
|
+
}, jt = async function(e = {}) {
|
|
1348
1348
|
try {
|
|
1349
|
-
if (!(
|
|
1350
|
-
throw new
|
|
1349
|
+
if (!(st in r(this, w, "f").features))
|
|
1350
|
+
throw new v();
|
|
1351
1351
|
let t;
|
|
1352
1352
|
try {
|
|
1353
|
-
[t] = await r(this, w, "f").features[
|
|
1353
|
+
[t] = await r(this, w, "f").features[st].signIn(e);
|
|
1354
1354
|
} catch (n) {
|
|
1355
|
-
throw new
|
|
1355
|
+
throw new Nt(n == null ? void 0 : n.message, n);
|
|
1356
1356
|
}
|
|
1357
1357
|
if (!t)
|
|
1358
|
-
throw new
|
|
1359
|
-
return r(this, T, "m",
|
|
1358
|
+
throw new Nt();
|
|
1359
|
+
return r(this, T, "m", tt).call(this, t.account), t;
|
|
1360
1360
|
} catch (t) {
|
|
1361
1361
|
throw this.emit("error", t), t;
|
|
1362
1362
|
}
|
|
1363
1363
|
};
|
|
1364
|
-
function
|
|
1365
|
-
return
|
|
1364
|
+
function se(a) {
|
|
1365
|
+
return bt().get().filter(_t).map((e) => new E(new ie({ wallet: e }), a));
|
|
1366
1366
|
}
|
|
1367
|
-
const
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1367
|
+
const ae = (a) => a.getName().toLowerCase().replaceAll("wallet", "").trim();
|
|
1368
|
+
function le() {
|
|
1369
|
+
const a = P.isMainnet ? "mainnet-beta" : "devnet", e = new Ct(P.rpcs.solana || Et(a));
|
|
1370
|
+
return {
|
|
1371
|
+
...se(e).reduce((t, n) => (t[ae(n)] = n, t), {}),
|
|
1372
|
+
bitget: new E(new Wt(), e),
|
|
1373
|
+
clover: new E(new vt(), e),
|
|
1374
|
+
coin98: new E(new Pt(), e),
|
|
1375
|
+
solong: new E(new Kt(), e),
|
|
1376
|
+
torus: new E(new qt(), e),
|
|
1377
|
+
nightly: new E(new Vt(), e),
|
|
1378
|
+
...P.walletConnectProjectId ? {
|
|
1379
|
+
walletConnect: new E(
|
|
1380
|
+
new ne({
|
|
1381
|
+
network: P.isMainnet ? J.Mainnet : J.Devnet,
|
|
1382
|
+
options: {
|
|
1383
|
+
projectId: P.walletConnectProjectId
|
|
1384
|
+
}
|
|
1385
|
+
}),
|
|
1386
|
+
e
|
|
1387
|
+
)
|
|
1388
|
+
} : {}
|
|
1389
|
+
};
|
|
1389
1390
|
}
|
|
1390
|
-
async function
|
|
1391
|
+
async function ue(a, e, t) {
|
|
1391
1392
|
if (!e || !e.signAndSendTransaction)
|
|
1392
1393
|
throw new Error("wallet.signAndSendTransaction is undefined");
|
|
1393
1394
|
return await e.signAndSendTransaction({
|
|
@@ -1396,6 +1397,6 @@ async function we(a, e, t) {
|
|
|
1396
1397
|
});
|
|
1397
1398
|
}
|
|
1398
1399
|
export {
|
|
1399
|
-
|
|
1400
|
-
|
|
1400
|
+
le as fetchOptions,
|
|
1401
|
+
ue as signAndSendTransaction
|
|
1401
1402
|
};
|