@wormhole-foundation/wormhole-connect 0.3.4-beta.4-development → 0.3.4-beta.5-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/{ccip-xr4FQXXG.js → ccip-3Wt6ReJT.js} +1 -1
- package/dist/assets/{cosmos-TcYN7x14.js → cosmos-9t5ds48M.js} +1 -1
- package/dist/assets/{evm-hFktu6UR.js → evm-OtsElgWW.js} +15 -15
- package/dist/assets/index-bti7uInf.js +3 -0
- package/dist/assets/{solana-r3vOVfGL.js → solana-QOFlt-jY.js} +2 -2
- package/dist/assets/{solanaEmbed.esm-8lU7Qhqn.js → solanaEmbed.esm-bag_3ej_.js} +1 -1
- package/dist/main.js +87 -87
- package/dist/src/routes/ntt/chains/solana/nttManager.d.ts +3 -4
- package/dist/src/routes/ntt/chains/solana/nttManager.d.ts.map +1 -1
- package/dist/src/views/Bridge/Bridge.d.ts.map +1 -1
- package/lib/{aptos-yj-TK3PA.js → aptos-FYfrFJAn.js} +1 -1
- package/lib/{aptos-XkxFn0iA.mjs → aptos-yOAGVL0A.mjs} +1 -1
- package/lib/{ccip-fjiaQRuA.js → ccip-4DZ4y4JK.js} +1 -1
- package/lib/{ccip-FGsI2Vy1.mjs → ccip-bVd-xAgW.mjs} +3 -3
- package/lib/{cosmos-MDA8Rp7a.mjs → cosmos-1ZHcemM-.mjs} +3 -3
- package/lib/{cosmos-AUjYaZap.js → cosmos-I3W2GDrq.js} +1 -1
- package/lib/{evm-EK7l4v5F.mjs → evm-6AZAv06H.mjs} +344 -342
- package/lib/{evm-AzWd7TIg.js → evm-Dzswfm9c.js} +12 -12
- package/lib/index-89JtoVA8.js +3 -0
- package/lib/{index-i3M9x9ys.mjs → index-9RUWMOOC.mjs} +2 -2
- package/lib/{index-M5muoSKm.js → index-IL1hzgXP.js} +1 -1
- package/lib/{index-ZqzSOsNH.mjs → index-NnYKIwKJ.mjs} +1 -1
- package/lib/{index-uD29Qviy.js → index-SMvLj77M.js} +1 -1
- package/lib/{index-Lyx2KgEl.js → index-V4A_PX6c.js} +7 -7
- package/lib/{index-e4IwQovx.js → index-Y9Whgj7X.js} +1 -1
- package/lib/{index-GqCbgO6w.mjs → index-aNk0rR65.mjs} +195 -187
- package/lib/{index-0q2THm2w.mjs → index-n7HccAMm.mjs} +3 -3
- package/lib/{index-U4-cs6LF.mjs → index-sTeBL6uV.mjs} +68 -68
- package/lib/{index.es-sWP5wBk1.mjs → index.es-B5KKhbgG.mjs} +1 -1
- package/lib/{index.es-OMs0sEbV.js → index.es-FooOQYo2.js} +1 -1
- package/lib/{index.es-m2T5sCHF.js → index.es-Fw2-l5Vm.js} +1 -1
- package/lib/{index.es-4yp-p17j.mjs → index.es-XUetntT2.mjs} +2 -2
- package/lib/{index.es-3N17U6U-.js → index.es-iJxWQe3h.js} +2 -2
- package/lib/{index.es-D5PlxUXA.mjs → index.es-uE9XWdwW.mjs} +4 -4
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{libsodium-wrappers-LCJ8UHG9.js → libsodium-wrappers-HWiLdcvs.js} +1 -1
- package/lib/{libsodium-wrappers-w6994RX-.mjs → libsodium-wrappers-Iiu5QMxq.mjs} +1 -1
- package/lib/{sei-Oplz3AG7.js → sei-DXA4aJ5R.js} +1 -1
- package/lib/{sei-w_LUpthw.mjs → sei-tHeAuZcQ.mjs} +2 -2
- package/lib/{solana-1K5mHs_m.mjs → solana-tyLp6YrX.mjs} +3 -3
- package/lib/{solana-GtJSObQi.js → solana-zPx_afVl.js} +1 -1
- package/lib/{solanaEmbed.esm-7dEAUE3p.mjs → solanaEmbed.esm-fOkHBl3q.mjs} +2 -2
- package/lib/{solanaEmbed.esm-3t3NYEW9.js → solanaEmbed.esm-tQPC6nIa.js} +1 -1
- package/lib/src/routes/ntt/chains/solana/nttManager.d.ts +3 -4
- package/lib/src/routes/ntt/chains/solana/nttManager.d.ts.map +1 -1
- package/lib/src/views/Bridge/Bridge.d.ts.map +1 -1
- package/lib/{sui-tt-QRxQS.js → sui-ATDAv5fP.js} +1 -1
- package/lib/{sui-Z4KdsJtV.mjs → sui-l6oFo8G_.mjs} +1 -1
- package/package.json +2 -2
- package/dist/assets/index-7UgR9Epe.js +0 -3
- package/lib/index-9vpoegf2.js +0 -3
|
@@ -14612,27 +14612,25 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
14612
14612
|
}
|
|
14613
14613
|
return browser$h.exports;
|
|
14614
14614
|
}
|
|
14615
|
-
var inherits_browser$1 = { exports: {} }
|
|
14616
|
-
function
|
|
14617
|
-
|
|
14618
|
-
|
|
14619
|
-
|
|
14620
|
-
|
|
14621
|
-
|
|
14622
|
-
|
|
14623
|
-
configurable: !0
|
|
14624
|
-
}
|
|
14625
|
-
}));
|
|
14626
|
-
} : inherits_browser$1.exports = function(Re, Fe) {
|
|
14627
|
-
if (Fe) {
|
|
14628
|
-
Re.super_ = Fe;
|
|
14629
|
-
var Qe = function() {
|
|
14630
|
-
};
|
|
14631
|
-
Qe.prototype = Fe.prototype, Re.prototype = new Qe(), Re.prototype.constructor = Re;
|
|
14615
|
+
var inherits_browser$1 = { exports: {} };
|
|
14616
|
+
typeof Object.create == "function" ? inherits_browser$1.exports = function(Re, Fe) {
|
|
14617
|
+
Fe && (Re.super_ = Fe, Re.prototype = Object.create(Fe.prototype, {
|
|
14618
|
+
constructor: {
|
|
14619
|
+
value: Re,
|
|
14620
|
+
enumerable: !1,
|
|
14621
|
+
writable: !0,
|
|
14622
|
+
configurable: !0
|
|
14632
14623
|
}
|
|
14633
|
-
})
|
|
14634
|
-
}
|
|
14635
|
-
|
|
14624
|
+
}));
|
|
14625
|
+
} : inherits_browser$1.exports = function(Re, Fe) {
|
|
14626
|
+
if (Fe) {
|
|
14627
|
+
Re.super_ = Fe;
|
|
14628
|
+
var Qe = function() {
|
|
14629
|
+
};
|
|
14630
|
+
Qe.prototype = Fe.prototype, Re.prototype = new Qe(), Re.prototype.constructor = Re;
|
|
14631
|
+
}
|
|
14632
|
+
};
|
|
14633
|
+
var inherits_browserExports = inherits_browser$1.exports, readableBrowser = { exports: {} }, events$1 = { exports: {} }, R$1 = typeof Reflect == "object" ? Reflect : null, ReflectApply = R$1 && typeof R$1.apply == "function" ? R$1.apply : function e(Re, Fe, Qe) {
|
|
14636
14634
|
return Function.prototype.apply.call(Re, Fe, Qe);
|
|
14637
14635
|
}, ReflectOwnKeys;
|
|
14638
14636
|
R$1 && typeof R$1.ownKeys == "function" ? ReflectOwnKeys = R$1.ownKeys : Object.getOwnPropertySymbols ? ReflectOwnKeys = function(Re) {
|
|
@@ -15211,7 +15209,7 @@ function require_stream_writable() {
|
|
|
15211
15209
|
return Je.isBuffer(Lr) || Lr instanceof qe;
|
|
15212
15210
|
}
|
|
15213
15211
|
var dt = requireDestroy(), Ze = requireState(), ht = Ze.getHighWaterMark, Wn = requireErrorsBrowser().codes, Dt = Wn.ERR_INVALID_ARG_TYPE, Fn = Wn.ERR_METHOD_NOT_IMPLEMENTED, Un = Wn.ERR_MULTIPLE_CALLBACK, Hn = Wn.ERR_STREAM_CANNOT_PIPE, qn = Wn.ERR_STREAM_DESTROYED, Xn = Wn.ERR_STREAM_NULL_VALUES, Zn = Wn.ERR_STREAM_WRITE_AFTER_END, jn = Wn.ERR_UNKNOWN_ENCODING, cr = dt.errorOrDestroy;
|
|
15214
|
-
|
|
15212
|
+
inherits_browserExports(dr, Qe);
|
|
15215
15213
|
function ir() {
|
|
15216
15214
|
}
|
|
15217
15215
|
function or(Lr, qr, Xr) {
|
|
@@ -15432,7 +15430,7 @@ function require_stream_duplex() {
|
|
|
15432
15430
|
};
|
|
15433
15431
|
_stream_duplex = We;
|
|
15434
15432
|
var Re = require_stream_readable(), Fe = require_stream_writable();
|
|
15435
|
-
|
|
15433
|
+
inherits_browserExports(We, Re);
|
|
15436
15434
|
for (var Qe = e(Fe.prototype), Je = 0; Je < Qe.length; Je++) {
|
|
15437
15435
|
var qe = Qe[Je];
|
|
15438
15436
|
We.prototype[qe] || (We.prototype[qe] = Fe.prototype[qe]);
|
|
@@ -15858,7 +15856,7 @@ function require_stream_readable() {
|
|
|
15858
15856
|
Ke && Ke.debuglog ? dt = Ke.debuglog("stream") : dt = function() {
|
|
15859
15857
|
};
|
|
15860
15858
|
var Ze = requireBuffer_list(), ht = requireDestroy(), Wn = requireState(), Dt = Wn.getHighWaterMark, Fn = requireErrorsBrowser().codes, Un = Fn.ERR_INVALID_ARG_TYPE, Hn = Fn.ERR_STREAM_PUSH_AFTER_EOF, qn = Fn.ERR_METHOD_NOT_IMPLEMENTED, Xn = Fn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, Zn, jn, cr;
|
|
15861
|
-
|
|
15859
|
+
inherits_browserExports(Jn, Fe);
|
|
15862
15860
|
var ir = ht.errorOrDestroy, or = ["error", "close", "destroy", "pause", "resume"];
|
|
15863
15861
|
function Yn(Hi, Ti, ao) {
|
|
15864
15862
|
if (typeof Hi.prependListener == "function")
|
|
@@ -16190,7 +16188,7 @@ function require_stream_transform() {
|
|
|
16190
16188
|
return _stream_transform;
|
|
16191
16189
|
hasRequired_stream_transform = 1, _stream_transform = Ke;
|
|
16192
16190
|
var e = requireErrorsBrowser().codes, Re = e.ERR_METHOD_NOT_IMPLEMENTED, Fe = e.ERR_MULTIPLE_CALLBACK, Qe = e.ERR_TRANSFORM_ALREADY_TRANSFORMING, Je = e.ERR_TRANSFORM_WITH_LENGTH_0, qe = require_stream_duplex();
|
|
16193
|
-
|
|
16191
|
+
inherits_browserExports(Ke, qe);
|
|
16194
16192
|
function We(ht, Wn) {
|
|
16195
16193
|
var Dt = this._transformState;
|
|
16196
16194
|
Dt.transforming = !1;
|
|
@@ -16254,7 +16252,7 @@ function require_stream_passthrough() {
|
|
|
16254
16252
|
return _stream_passthrough;
|
|
16255
16253
|
hasRequired_stream_passthrough = 1, _stream_passthrough = Re;
|
|
16256
16254
|
var e = require_stream_transform();
|
|
16257
|
-
|
|
16255
|
+
inherits_browserExports(Re, e);
|
|
16258
16256
|
function Re(Fe) {
|
|
16259
16257
|
if (!(this instanceof Re))
|
|
16260
16258
|
return new Re(Fe);
|
|
@@ -16344,7 +16342,7 @@ function requireHashBase() {
|
|
|
16344
16342
|
if (hasRequiredHashBase)
|
|
16345
16343
|
return hashBase;
|
|
16346
16344
|
hasRequiredHashBase = 1;
|
|
16347
|
-
var e = safeBufferExports.Buffer, Re = requireReadableBrowser().Transform, Fe =
|
|
16345
|
+
var e = safeBufferExports.Buffer, Re = requireReadableBrowser().Transform, Fe = inherits_browserExports;
|
|
16348
16346
|
function Qe(qe, We) {
|
|
16349
16347
|
if (!e.isBuffer(qe) && typeof qe != "string")
|
|
16350
16348
|
throw new TypeError(We + " must be a string or a buffer");
|
|
@@ -16402,7 +16400,7 @@ function requireMd5_js() {
|
|
|
16402
16400
|
if (hasRequiredMd5_js)
|
|
16403
16401
|
return md5_js;
|
|
16404
16402
|
hasRequiredMd5_js = 1;
|
|
16405
|
-
var e =
|
|
16403
|
+
var e = inherits_browserExports, Re = requireHashBase(), Fe = safeBufferExports.Buffer, Qe = new Array(16);
|
|
16406
16404
|
function Je() {
|
|
16407
16405
|
Re.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878;
|
|
16408
16406
|
}
|
|
@@ -16438,7 +16436,7 @@ function requireRipemd160() {
|
|
|
16438
16436
|
if (hasRequiredRipemd160)
|
|
16439
16437
|
return ripemd160$6;
|
|
16440
16438
|
hasRequiredRipemd160 = 1;
|
|
16441
|
-
var e = bufferPolyfill.Buffer, Re =
|
|
16439
|
+
var e = bufferPolyfill.Buffer, Re = inherits_browserExports, Fe = requireHashBase(), Qe = new Array(16), Je = [
|
|
16442
16440
|
0,
|
|
16443
16441
|
1,
|
|
16444
16442
|
2,
|
|
@@ -16839,7 +16837,7 @@ function requireSha() {
|
|
|
16839
16837
|
if (hasRequiredSha)
|
|
16840
16838
|
return sha$2;
|
|
16841
16839
|
hasRequiredSha = 1;
|
|
16842
|
-
var e =
|
|
16840
|
+
var e = inherits_browserExports, Re = requireHash(), Fe = safeBufferExports.Buffer, Qe = [
|
|
16843
16841
|
1518500249,
|
|
16844
16842
|
1859775393,
|
|
16845
16843
|
-1894007588,
|
|
@@ -16880,7 +16878,7 @@ function requireSha1() {
|
|
|
16880
16878
|
if (hasRequiredSha1)
|
|
16881
16879
|
return sha1$1;
|
|
16882
16880
|
hasRequiredSha1 = 1;
|
|
16883
|
-
var e =
|
|
16881
|
+
var e = inherits_browserExports, Re = requireHash(), Fe = safeBufferExports.Buffer, Qe = [
|
|
16884
16882
|
1518500249,
|
|
16885
16883
|
1859775393,
|
|
16886
16884
|
-1894007588,
|
|
@@ -16924,7 +16922,7 @@ function requireSha256() {
|
|
|
16924
16922
|
if (hasRequiredSha256)
|
|
16925
16923
|
return sha256$a;
|
|
16926
16924
|
hasRequiredSha256 = 1;
|
|
16927
|
-
var e =
|
|
16925
|
+
var e = inherits_browserExports, Re = requireHash(), Fe = safeBufferExports.Buffer, Qe = [
|
|
16928
16926
|
1116352408,
|
|
16929
16927
|
1899447441,
|
|
16930
16928
|
3049323471,
|
|
@@ -17034,7 +17032,7 @@ function requireSha224() {
|
|
|
17034
17032
|
if (hasRequiredSha224)
|
|
17035
17033
|
return sha224$2;
|
|
17036
17034
|
hasRequiredSha224 = 1;
|
|
17037
|
-
var e =
|
|
17035
|
+
var e = inherits_browserExports, Re = requireSha256(), Fe = requireHash(), Qe = safeBufferExports.Buffer, Je = new Array(64);
|
|
17038
17036
|
function qe() {
|
|
17039
17037
|
this.init(), this._w = Je, Fe.call(this, 64, 56);
|
|
17040
17038
|
}
|
|
@@ -17050,7 +17048,7 @@ function requireSha512() {
|
|
|
17050
17048
|
if (hasRequiredSha512)
|
|
17051
17049
|
return sha512$9;
|
|
17052
17050
|
hasRequiredSha512 = 1;
|
|
17053
|
-
var e =
|
|
17051
|
+
var e = inherits_browserExports, Re = requireHash(), Fe = safeBufferExports.Buffer, Qe = [
|
|
17054
17052
|
1116352408,
|
|
17055
17053
|
3609767458,
|
|
17056
17054
|
1899447441,
|
|
@@ -17275,7 +17273,7 @@ function requireSha384() {
|
|
|
17275
17273
|
if (hasRequiredSha384)
|
|
17276
17274
|
return sha384$3;
|
|
17277
17275
|
hasRequiredSha384 = 1;
|
|
17278
|
-
var e =
|
|
17276
|
+
var e = inherits_browserExports, Re = requireSha512(), Fe = requireHash(), Qe = safeBufferExports.Buffer, Je = new Array(160);
|
|
17279
17277
|
function qe() {
|
|
17280
17278
|
this.init(), this._w = Je, Fe.call(this, 128, 112);
|
|
17281
17279
|
}
|
|
@@ -17308,7 +17306,7 @@ function requireStreamBrowserify() {
|
|
|
17308
17306
|
if (hasRequiredStreamBrowserify)
|
|
17309
17307
|
return streamBrowserify;
|
|
17310
17308
|
hasRequiredStreamBrowserify = 1, streamBrowserify = Fe;
|
|
17311
|
-
var e = eventsExports.EventEmitter, Re =
|
|
17309
|
+
var e = eventsExports.EventEmitter, Re = inherits_browserExports;
|
|
17312
17310
|
Re(Fe, e), Fe.Readable = require_stream_readable(), Fe.Writable = require_stream_writable(), Fe.Duplex = require_stream_duplex(), Fe.Transform = require_stream_transform(), Fe.PassThrough = require_stream_passthrough(), Fe.finished = requireEndOfStream(), Fe.pipeline = requirePipeline(), Fe.Stream = Fe;
|
|
17313
17311
|
function Fe() {
|
|
17314
17312
|
e.call(this);
|
|
@@ -17346,7 +17344,7 @@ function requireCipherBase() {
|
|
|
17346
17344
|
if (hasRequiredCipherBase)
|
|
17347
17345
|
return cipherBase;
|
|
17348
17346
|
hasRequiredCipherBase = 1;
|
|
17349
|
-
var e = safeBufferExports.Buffer, Re = requireStreamBrowserify().Transform, Fe = requireString_decoder().StringDecoder, Qe =
|
|
17347
|
+
var e = safeBufferExports.Buffer, Re = requireStreamBrowserify().Transform, Fe = requireString_decoder().StringDecoder, Qe = inherits_browserExports;
|
|
17350
17348
|
function Je(qe) {
|
|
17351
17349
|
Re.call(this), this.hashMode = typeof qe == "string", this.hashMode ? this[qe] = this._finalOrDigest : this.final = this._finalOrDigest, this._final && (this.__final = this._final, this._final = null), this._decoder = null, this._encoding = null;
|
|
17352
17350
|
}
|
|
@@ -17393,7 +17391,7 @@ function requireBrowser$9() {
|
|
|
17393
17391
|
if (hasRequiredBrowser$9)
|
|
17394
17392
|
return browser$f;
|
|
17395
17393
|
hasRequiredBrowser$9 = 1;
|
|
17396
|
-
var e =
|
|
17394
|
+
var e = inherits_browserExports, Re = requireMd5_js(), Fe = requireRipemd160(), Qe = requireSha_js(), Je = requireCipherBase();
|
|
17397
17395
|
function qe(We) {
|
|
17398
17396
|
Je.call(this, "digest"), this._hash = We;
|
|
17399
17397
|
}
|
|
@@ -17410,7 +17408,7 @@ function requireLegacy() {
|
|
|
17410
17408
|
if (hasRequiredLegacy)
|
|
17411
17409
|
return legacy;
|
|
17412
17410
|
hasRequiredLegacy = 1;
|
|
17413
|
-
var e =
|
|
17411
|
+
var e = inherits_browserExports, Re = safeBufferExports.Buffer, Fe = requireCipherBase(), Qe = Re.alloc(128), Je = 64;
|
|
17414
17412
|
function qe(We, Ke) {
|
|
17415
17413
|
Fe.call(this, "digest"), typeof Ke == "string" && (Ke = Re.from(Ke)), this._alg = We, this._key = Ke, Ke.length > Je ? Ke = We(Ke) : Ke.length < Je && (Ke = Re.concat([Ke, Qe], Je));
|
|
17416
17414
|
for (var dt = this._ipad = Re.allocUnsafe(Je), Ze = this._opad = Re.allocUnsafe(Je), ht = 0; ht < Je; ht++)
|
|
@@ -17439,7 +17437,7 @@ function requireBrowser$8() {
|
|
|
17439
17437
|
if (hasRequiredBrowser$8)
|
|
17440
17438
|
return browser$e;
|
|
17441
17439
|
hasRequiredBrowser$8 = 1;
|
|
17442
|
-
var e =
|
|
17440
|
+
var e = inherits_browserExports, Re = requireLegacy(), Fe = requireCipherBase(), Qe = safeBufferExports.Buffer, Je = requireMd5(), qe = requireRipemd160(), We = requireSha_js(), Ke = Qe.alloc(128);
|
|
17443
17441
|
function dt(Ze, ht) {
|
|
17444
17442
|
Fe.call(this, "digest"), typeof ht == "string" && (ht = Qe.from(ht));
|
|
17445
17443
|
var Wn = Ze === "sha512" || Ze === "sha384" ? 128 : 64;
|
|
@@ -18567,7 +18565,7 @@ function requireDes$1() {
|
|
|
18567
18565
|
if (hasRequiredDes$1)
|
|
18568
18566
|
return des;
|
|
18569
18567
|
hasRequiredDes$1 = 1;
|
|
18570
|
-
var e = minimalisticAssert$1, Re =
|
|
18568
|
+
var e = minimalisticAssert$1, Re = inherits_browserExports, Fe = requireUtils(), Qe = requireCipher();
|
|
18571
18569
|
function Je() {
|
|
18572
18570
|
this.tmp = new Array(2), this.keys = null;
|
|
18573
18571
|
}
|
|
@@ -18643,7 +18641,7 @@ function requireCbc$1() {
|
|
|
18643
18641
|
if (hasRequiredCbc$1)
|
|
18644
18642
|
return cbc$1;
|
|
18645
18643
|
hasRequiredCbc$1 = 1;
|
|
18646
|
-
var e = minimalisticAssert$1, Re =
|
|
18644
|
+
var e = minimalisticAssert$1, Re = inherits_browserExports, Fe = {};
|
|
18647
18645
|
function Qe(qe) {
|
|
18648
18646
|
e.equal(qe.length, 8, "Invalid IV length"), this.iv = new Array(8);
|
|
18649
18647
|
for (var We = 0; We < this.iv.length; We++)
|
|
@@ -18687,7 +18685,7 @@ function requireEde() {
|
|
|
18687
18685
|
if (hasRequiredEde)
|
|
18688
18686
|
return ede;
|
|
18689
18687
|
hasRequiredEde = 1;
|
|
18690
|
-
var e = minimalisticAssert$1, Re =
|
|
18688
|
+
var e = minimalisticAssert$1, Re = inherits_browserExports, Fe = requireCipher(), Qe = requireDes$1();
|
|
18691
18689
|
function Je(We, Ke) {
|
|
18692
18690
|
e.equal(Ke.length, 24, "Invalid key length");
|
|
18693
18691
|
var dt = Ke.slice(0, 8), Ze = Ke.slice(8, 16), ht = Ke.slice(16, 24);
|
|
@@ -18722,7 +18720,7 @@ function requireBrowserifyDes() {
|
|
|
18722
18720
|
if (hasRequiredBrowserifyDes)
|
|
18723
18721
|
return browserifyDes;
|
|
18724
18722
|
hasRequiredBrowserifyDes = 1;
|
|
18725
|
-
var e = requireCipherBase(), Re = requireDes(), Fe =
|
|
18723
|
+
var e = requireCipherBase(), Re = requireDes(), Fe = inherits_browserExports, Qe = safeBufferExports.Buffer, Je = {
|
|
18726
18724
|
"des-ede3-cbc": Re.CBC.instantiate(Re.EDE),
|
|
18727
18725
|
"des-ede3": Re.EDE,
|
|
18728
18726
|
"des-ede-cbc": Re.CBC.instantiate(Re.EDE),
|
|
@@ -19224,7 +19222,7 @@ function requireAuthCipher() {
|
|
|
19224
19222
|
if (hasRequiredAuthCipher)
|
|
19225
19223
|
return authCipher;
|
|
19226
19224
|
hasRequiredAuthCipher = 1;
|
|
19227
|
-
var e = requireAes(), Re = safeBufferExports.Buffer, Fe = requireCipherBase(), Qe =
|
|
19225
|
+
var e = requireAes(), Re = safeBufferExports.Buffer, Fe = requireCipherBase(), Qe = inherits_browserExports, Je = requireGhash(), qe = requireBufferXor(), We = requireIncr32();
|
|
19228
19226
|
function Ke(ht, Wn) {
|
|
19229
19227
|
var Dt = 0;
|
|
19230
19228
|
ht.length !== Wn.length && Dt++;
|
|
@@ -19283,7 +19281,7 @@ function requireStreamCipher() {
|
|
|
19283
19281
|
if (hasRequiredStreamCipher)
|
|
19284
19282
|
return streamCipher;
|
|
19285
19283
|
hasRequiredStreamCipher = 1;
|
|
19286
|
-
var e = requireAes(), Re = safeBufferExports.Buffer, Fe = requireCipherBase(), Qe =
|
|
19284
|
+
var e = requireAes(), Re = safeBufferExports.Buffer, Fe = requireCipherBase(), Qe = inherits_browserExports;
|
|
19287
19285
|
function Je(qe, We, Ke, dt) {
|
|
19288
19286
|
Fe.call(this), this._cipher = new e.AES(We), this._prev = Re.from(Ke), this._cache = Re.allocUnsafe(0), this._secCache = Re.allocUnsafe(0), this._decrypt = dt, this._mode = qe;
|
|
19289
19287
|
}
|
|
@@ -19324,7 +19322,7 @@ function requireEncrypter() {
|
|
|
19324
19322
|
if (hasRequiredEncrypter)
|
|
19325
19323
|
return encrypter;
|
|
19326
19324
|
hasRequiredEncrypter = 1;
|
|
19327
|
-
var e = requireModes$1(), Re = requireAuthCipher(), Fe = safeBufferExports.Buffer, Qe = requireStreamCipher(), Je = requireCipherBase(), qe = requireAes(), We = requireEvp_bytestokey(), Ke =
|
|
19325
|
+
var e = requireModes$1(), Re = requireAuthCipher(), Fe = safeBufferExports.Buffer, Qe = requireStreamCipher(), Je = requireCipherBase(), qe = requireAes(), We = requireEvp_bytestokey(), Ke = inherits_browserExports;
|
|
19328
19326
|
function dt(Fn, Un, Hn) {
|
|
19329
19327
|
Je.call(this), this._cache = new ht(), this._cipher = new qe.AES(Un), this._prev = Fe.from(Hn), this._mode = Fn, this._autopadding = !0;
|
|
19330
19328
|
}
|
|
@@ -19384,7 +19382,7 @@ function requireDecrypter() {
|
|
|
19384
19382
|
if (hasRequiredDecrypter)
|
|
19385
19383
|
return decrypter;
|
|
19386
19384
|
hasRequiredDecrypter = 1;
|
|
19387
|
-
var e = requireAuthCipher(), Re = safeBufferExports.Buffer, Fe = requireModes$1(), Qe = requireStreamCipher(), Je = requireCipherBase(), qe = requireAes(), We = requireEvp_bytestokey(), Ke =
|
|
19385
|
+
var e = requireAuthCipher(), Re = safeBufferExports.Buffer, Fe = requireModes$1(), Qe = requireStreamCipher(), Je = requireCipherBase(), qe = requireAes(), We = requireEvp_bytestokey(), Ke = inherits_browserExports;
|
|
19388
19386
|
function dt(Fn, Un, Hn) {
|
|
19389
19387
|
Je.call(this), this._cache = new Ze(), this._last = void 0, this._cipher = new qe.AES(Un), this._prev = Re.from(Hn), this._mode = Fn, this._autopadding = !0;
|
|
19390
19388
|
}
|
|
@@ -24881,7 +24879,7 @@ BasePoint$1.prototype.dblp = function e(Re) {
|
|
|
24881
24879
|
Fe = Fe.dbl();
|
|
24882
24880
|
return Fe;
|
|
24883
24881
|
};
|
|
24884
|
-
var utils$1l = utils$1o, BN$8 = bnExports$1, inherits$8 =
|
|
24882
|
+
var utils$1l = utils$1o, BN$8 = bnExports$1, inherits$8 = inherits_browserExports, Base$2 = base$5, assert$o = utils$1l.assert;
|
|
24885
24883
|
function ShortCurve$1(e) {
|
|
24886
24884
|
Base$2.call(this, "short", e), this.a = new BN$8(e.a, 16).toRed(this.red), this.b = new BN$8(e.b, 16).toRed(this.red), this.tinv = this.two.redInvm(), this.zeroA = this.a.fromRed().cmpn(0) === 0, this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0, this.endo = this._getEndomorphism(e), this._endoWnafT1 = new Array(4), this._endoWnafT2 = new Array(4);
|
|
24887
24885
|
}
|
|
@@ -25265,7 +25263,7 @@ JPoint$1.prototype.inspect = function e() {
|
|
|
25265
25263
|
JPoint$1.prototype.isInfinity = function e() {
|
|
25266
25264
|
return this.z.cmpn(0) === 0;
|
|
25267
25265
|
};
|
|
25268
|
-
var BN$7 = bnExports$1, inherits$7 =
|
|
25266
|
+
var BN$7 = bnExports$1, inherits$7 = inherits_browserExports, Base$1 = base$5, utils$1k = utils$1o;
|
|
25269
25267
|
function MontCurve(e) {
|
|
25270
25268
|
Base$1.call(this, "mont", e), this.a = new BN$7(e.a, 16).toRed(this.red), this.b = new BN$7(e.b, 16).toRed(this.red), this.i4 = new BN$7(4).toRed(this.red).redInvm(), this.two = new BN$7(2).toRed(this.red), this.a24 = this.i4.redMul(this.a.redAdd(this.two));
|
|
25271
25269
|
}
|
|
@@ -25335,7 +25333,7 @@ Point$2.prototype.normalize = function e() {
|
|
|
25335
25333
|
Point$2.prototype.getX = function e() {
|
|
25336
25334
|
return this.normalize(), this.x.fromRed();
|
|
25337
25335
|
};
|
|
25338
|
-
var utils$1j = utils$1o, BN$6 = bnExports$1, inherits$6 =
|
|
25336
|
+
var utils$1j = utils$1o, BN$6 = bnExports$1, inherits$6 = inherits_browserExports, Base = base$5, assert$n = utils$1j.assert;
|
|
25339
25337
|
function EdwardsCurve(e) {
|
|
25340
25338
|
this.twisted = (e.a | 0) !== 1, this.mOneA = this.twisted && (e.a | 0) === -1, this.extended = this.mOneA, Base.call(this, "edwards", e), this.a = new BN$6(e.a, 16).umod(this.red.m), this.a = this.a.toRed(this.red), this.c = new BN$6(e.c, 16).toRed(this.red), this.c2 = this.c.redSqr(), this.d = new BN$6(e.d, 16).toRed(this.red), this.dd = this.d.redAdd(this.d), assert$n(!this.twisted || this.c.fromRed().cmpn(1) === 0), this.oneC = (e.c | 0) === 1;
|
|
25341
25339
|
}
|
|
@@ -25476,7 +25474,7 @@ Point$1.prototype.mixedAdd = Point$1.prototype.add;
|
|
|
25476
25474
|
var Re = e;
|
|
25477
25475
|
Re.base = base$5, Re.short = short, Re.mont = mont, Re.edwards = edwards;
|
|
25478
25476
|
})(curve);
|
|
25479
|
-
var curves$1 = {}, hash$c = {}, utils$1i = {}, assert$m = minimalisticAssert$1, inherits$5 =
|
|
25477
|
+
var curves$1 = {}, hash$c = {}, utils$1i = {}, assert$m = minimalisticAssert$1, inherits$5 = inherits_browserExports;
|
|
25480
25478
|
utils$1i.inherits = inherits$5;
|
|
25481
25479
|
function isSurrogatePair(e, Re) {
|
|
25482
25480
|
return (e.charCodeAt(Re) & 64512) !== 55296 || Re < 0 || Re + 1 >= e.length ? !1 : (e.charCodeAt(Re + 1) & 64512) === 56320;
|
|
@@ -29132,7 +29130,7 @@ function requireReporter() {
|
|
|
29132
29130
|
if (hasRequiredReporter)
|
|
29133
29131
|
return reporter;
|
|
29134
29132
|
hasRequiredReporter = 1;
|
|
29135
|
-
const e =
|
|
29133
|
+
const e = inherits_browserExports;
|
|
29136
29134
|
function Re(Qe) {
|
|
29137
29135
|
this._reporterState = {
|
|
29138
29136
|
obj: null,
|
|
@@ -29198,7 +29196,7 @@ function requireBuffer() {
|
|
|
29198
29196
|
if (hasRequiredBuffer)
|
|
29199
29197
|
return buffer;
|
|
29200
29198
|
hasRequiredBuffer = 1;
|
|
29201
|
-
const e =
|
|
29199
|
+
const e = inherits_browserExports, Re = requireReporter().Reporter, Fe = requireSafer().Buffer;
|
|
29202
29200
|
function Qe(qe, We) {
|
|
29203
29201
|
if (Re.call(this, We), !Fe.isBuffer(qe)) {
|
|
29204
29202
|
this.error("Input not Buffer");
|
|
@@ -29628,7 +29626,7 @@ function requireDer$1() {
|
|
|
29628
29626
|
if (hasRequiredDer$1)
|
|
29629
29627
|
return der_1$1;
|
|
29630
29628
|
hasRequiredDer$1 = 1;
|
|
29631
|
-
const e =
|
|
29629
|
+
const e = inherits_browserExports, Re = requireSafer().Buffer, Fe = requireNode(), Qe = requireDer$2();
|
|
29632
29630
|
function Je(dt) {
|
|
29633
29631
|
this.enc = "der", this.name = dt.name, this.entity = dt, this.tree = new qe(), this.tree._init(dt.body);
|
|
29634
29632
|
}
|
|
@@ -29786,7 +29784,7 @@ function requirePem$1() {
|
|
|
29786
29784
|
if (hasRequiredPem$1)
|
|
29787
29785
|
return pem$1;
|
|
29788
29786
|
hasRequiredPem$1 = 1;
|
|
29789
|
-
const e =
|
|
29787
|
+
const e = inherits_browserExports, Re = requireDer$1();
|
|
29790
29788
|
function Fe(Qe) {
|
|
29791
29789
|
Re.call(this, Qe), this.enc = "pem";
|
|
29792
29790
|
}
|
|
@@ -29810,7 +29808,7 @@ function requireDer() {
|
|
|
29810
29808
|
if (hasRequiredDer)
|
|
29811
29809
|
return der_1;
|
|
29812
29810
|
hasRequiredDer = 1;
|
|
29813
|
-
const e =
|
|
29811
|
+
const e = inherits_browserExports, Re = requireBn$2(), Fe = requireBuffer().DecoderBuffer, Qe = requireNode(), Je = requireDer$2();
|
|
29814
29812
|
function qe(Ze) {
|
|
29815
29813
|
this.enc = "der", this.name = Ze.name, this.entity = Ze, this.tree = new We(), this.tree._init(Ze.body);
|
|
29816
29814
|
}
|
|
@@ -29985,7 +29983,7 @@ function requirePem() {
|
|
|
29985
29983
|
if (hasRequiredPem)
|
|
29986
29984
|
return pem;
|
|
29987
29985
|
hasRequiredPem = 1;
|
|
29988
|
-
const e =
|
|
29986
|
+
const e = inherits_browserExports, Re = requireSafer().Buffer, Fe = requireDer();
|
|
29989
29987
|
function Qe(Je) {
|
|
29990
29988
|
Fe.call(this, Je), this.enc = "pem";
|
|
29991
29989
|
}
|
|
@@ -30024,7 +30022,7 @@ function requireDecoders() {
|
|
|
30024
30022
|
var hasRequiredApi;
|
|
30025
30023
|
function requireApi() {
|
|
30026
30024
|
return hasRequiredApi || (hasRequiredApi = 1, function(e) {
|
|
30027
|
-
const Re = requireEncoders(), Fe = requireDecoders(), Qe =
|
|
30025
|
+
const Re = requireEncoders(), Fe = requireDecoders(), Qe = inherits_browserExports, Je = e;
|
|
30028
30026
|
Je.define = function(Ke, dt) {
|
|
30029
30027
|
return new qe(Ke, dt);
|
|
30030
30028
|
};
|
|
@@ -30513,7 +30511,7 @@ function requireBrowser$3() {
|
|
|
30513
30511
|
if (hasRequiredBrowser$3)
|
|
30514
30512
|
return browser$9;
|
|
30515
30513
|
hasRequiredBrowser$3 = 1;
|
|
30516
|
-
var e = safeBufferExports.Buffer, Re = requireBrowser$9(), Fe = requireReadableBrowser(), Qe =
|
|
30514
|
+
var e = safeBufferExports.Buffer, Re = requireBrowser$9(), Fe = requireReadableBrowser(), Qe = inherits_browserExports, Je = requireSign(), qe = requireVerify(), We = require$$6$2;
|
|
30517
30515
|
Object.keys(We).forEach(function(Wn) {
|
|
30518
30516
|
We[Wn].id = e.from(We[Wn].id, "hex"), We[Wn.toLowerCase()] = We[Wn];
|
|
30519
30517
|
});
|
|
@@ -70931,7 +70929,7 @@ var isBufferBrowser = function e(Re) {
|
|
|
70931
70929
|
}
|
|
70932
70930
|
e.log = function() {
|
|
70933
70931
|
console.log("%s - %s", gr(), e.format.apply(e, arguments));
|
|
70934
|
-
}, e.inherits =
|
|
70932
|
+
}, e.inherits = inherits_browserExports, e._extend = function(yr, Ar) {
|
|
70935
70933
|
if (!Ar || !Jn(Ar))
|
|
70936
70934
|
return yr;
|
|
70937
70935
|
for (var Cr = Object.keys(Ar), Er = Cr.length; Er--; )
|
|
@@ -287665,7 +287663,7 @@ const walletConnection = {
|
|
|
287665
287663
|
if (Fe.getNetworkInfo().chainId !== e) {
|
|
287666
287664
|
if (Qe.context === Context.ETH)
|
|
287667
287665
|
try {
|
|
287668
|
-
const { switchChain: qe } = await import("./evm-
|
|
287666
|
+
const { switchChain: qe } = await import("./evm-6AZAv06H.mjs").then((We) => We.f);
|
|
287669
287667
|
await qe(Fe, e);
|
|
287670
287668
|
} catch (qe) {
|
|
287671
287669
|
if (qe instanceof NotSupported)
|
|
@@ -287673,7 +287671,7 @@ const walletConnection = {
|
|
|
287673
287671
|
throw qe;
|
|
287674
287672
|
}
|
|
287675
287673
|
if (Qe.context === Context.COSMOS) {
|
|
287676
|
-
const { switchChain: qe } = await import("./cosmos-
|
|
287674
|
+
const { switchChain: qe } = await import("./cosmos-1ZHcemM-.mjs");
|
|
287677
287675
|
await qe(Fe, e);
|
|
287678
287676
|
}
|
|
287679
287677
|
return Fe.getAddress();
|
|
@@ -287682,7 +287680,7 @@ const walletConnection = {
|
|
|
287682
287680
|
const Re = walletConnection[e];
|
|
287683
287681
|
Re && await Re.disconnect();
|
|
287684
287682
|
}, watchAsset = async (e, Re) => {
|
|
287685
|
-
const Fe = walletConnection[Re], { watchAsset: Qe } = await import("./evm-
|
|
287683
|
+
const Fe = walletConnection[Re], { watchAsset: Qe } = await import("./evm-6AZAv06H.mjs").then((Je) => Je.f);
|
|
287686
287684
|
await Qe(e, Fe);
|
|
287687
287685
|
}, signAndSendTransaction = async (e, Re, Fe, Qe = {}) => {
|
|
287688
287686
|
const Je = config$1.chains[e], qe = walletConnection[Fe];
|
|
@@ -287692,23 +287690,23 @@ const walletConnection = {
|
|
|
287692
287690
|
case Context.ETH:
|
|
287693
287691
|
return Re.transactionHash;
|
|
287694
287692
|
case Context.SOLANA: {
|
|
287695
|
-
const { signAndSendTransaction: We } = await import("./solana-
|
|
287693
|
+
const { signAndSendTransaction: We } = await import("./solana-tyLp6YrX.mjs");
|
|
287696
287694
|
return (await We(Re, qe, Qe)).id;
|
|
287697
287695
|
}
|
|
287698
287696
|
case Context.SUI: {
|
|
287699
|
-
const { signAndSendTransaction: We } = await import("./sui-
|
|
287697
|
+
const { signAndSendTransaction: We } = await import("./sui-l6oFo8G_.mjs");
|
|
287700
287698
|
return (await We(Re, qe)).id;
|
|
287701
287699
|
}
|
|
287702
287700
|
case Context.APTOS: {
|
|
287703
|
-
const { signAndSendTransaction: We } = await import("./aptos-
|
|
287701
|
+
const { signAndSendTransaction: We } = await import("./aptos-yOAGVL0A.mjs");
|
|
287704
287702
|
return (await We(Re, qe)).id;
|
|
287705
287703
|
}
|
|
287706
287704
|
case Context.SEI: {
|
|
287707
|
-
const { signAndSendTransaction: We } = await import("./sei-
|
|
287705
|
+
const { signAndSendTransaction: We } = await import("./sei-tHeAuZcQ.mjs");
|
|
287708
287706
|
return (await We(Re, qe)).id;
|
|
287709
287707
|
}
|
|
287710
287708
|
case Context.COSMOS: {
|
|
287711
|
-
const { signAndSendTransaction: We } = await import("./cosmos-
|
|
287709
|
+
const { signAndSendTransaction: We } = await import("./cosmos-1ZHcemM-.mjs");
|
|
287712
287710
|
return (await We(Re, qe)).id;
|
|
287713
287711
|
}
|
|
287714
287712
|
default:
|
|
@@ -287741,39 +287739,39 @@ const walletConnection = {
|
|
|
287741
287739
|
if (e === void 0)
|
|
287742
287740
|
return [];
|
|
287743
287741
|
if (e.context === Context.ETH) {
|
|
287744
|
-
const { wallets: Re } = await import("./evm-
|
|
287742
|
+
const { wallets: Re } = await import("./evm-6AZAv06H.mjs").then((Fe) => Fe.f);
|
|
287745
287743
|
return Object.values(mapWallets(Re, Context.ETH));
|
|
287746
287744
|
} else if (e.context === Context.SOLANA) {
|
|
287747
|
-
const { fetchOptions: Re } = await import("./solana-
|
|
287745
|
+
const { fetchOptions: Re } = await import("./solana-tyLp6YrX.mjs"), Fe = Re();
|
|
287748
287746
|
return Object.values(mapWallets(Fe, Context.SOLANA));
|
|
287749
287747
|
} else if (e.context === Context.SUI) {
|
|
287750
|
-
const Fe = await (await import("./sui-
|
|
287748
|
+
const Fe = await (await import("./sui-l6oFo8G_.mjs")).fetchOptions();
|
|
287751
287749
|
return Object.values(mapWallets(Fe, Context.SUI));
|
|
287752
287750
|
} else if (e.context === Context.APTOS) {
|
|
287753
|
-
const Fe = (await import("./aptos-
|
|
287751
|
+
const Fe = (await import("./aptos-yOAGVL0A.mjs")).fetchOptions();
|
|
287754
287752
|
return Object.values(mapWallets(Fe, Context.APTOS));
|
|
287755
287753
|
} else if (e.context === Context.SEI) {
|
|
287756
|
-
const Fe = await (await import("./sei-
|
|
287754
|
+
const Fe = await (await import("./sei-tHeAuZcQ.mjs")).fetchOptions();
|
|
287757
287755
|
return Object.values(mapWallets(Fe, Context.SEI));
|
|
287758
287756
|
} else if (e.context === Context.COSMOS)
|
|
287759
287757
|
if (e.id === CHAIN_ID_EVMOS$1) {
|
|
287760
287758
|
const {
|
|
287761
287759
|
wallets: { cosmosEvm: Re }
|
|
287762
|
-
} = await import("./cosmos-
|
|
287760
|
+
} = await import("./cosmos-1ZHcemM-.mjs");
|
|
287763
287761
|
return Object.values(
|
|
287764
287762
|
mapWallets(Re, Context.COSMOS, ["OKX Wallet"])
|
|
287765
287763
|
);
|
|
287766
287764
|
} else if (e.id === CHAIN_ID_INJECTIVE$1) {
|
|
287767
287765
|
const {
|
|
287768
287766
|
wallets: { cosmosEvm: Re }
|
|
287769
|
-
} = await import("./cosmos-
|
|
287767
|
+
} = await import("./cosmos-1ZHcemM-.mjs");
|
|
287770
287768
|
return Object.values(
|
|
287771
287769
|
mapWallets(Re, Context.COSMOS, ["OKX Wallet"])
|
|
287772
287770
|
);
|
|
287773
287771
|
} else {
|
|
287774
287772
|
const {
|
|
287775
287773
|
wallets: { cosmos: Re }
|
|
287776
|
-
} = await import("./cosmos-
|
|
287774
|
+
} = await import("./cosmos-1ZHcemM-.mjs");
|
|
287777
287775
|
return Object.values(mapWallets(Re, Context.COSMOS));
|
|
287778
287776
|
}
|
|
287779
287777
|
return [];
|
|
@@ -312670,79 +312668,76 @@ var theta = {};
|
|
|
312670
312668
|
const RATE_LIMIT_DURATION = 24 * 60 * 60, $0 = class $0 {
|
|
312671
312669
|
constructor(Re) {
|
|
312672
312670
|
ys(this, "connection");
|
|
312673
|
-
ys(this, "program");
|
|
312674
312671
|
ys(this, "wormholeId");
|
|
312675
312672
|
this.nttId = Re;
|
|
312676
312673
|
const { connection: Fe } = solanaContext();
|
|
312677
312674
|
if (!Fe)
|
|
312678
312675
|
throw new Error("Connection not found");
|
|
312679
|
-
this.connection = Fe
|
|
312676
|
+
this.connection = Fe;
|
|
312680
312677
|
const Qe = config$1.wh.mustGetContracts("solana").core;
|
|
312681
312678
|
if (!Qe)
|
|
312682
312679
|
throw new Error("Core not found");
|
|
312683
312680
|
this.wormholeId = Qe;
|
|
312684
312681
|
}
|
|
312685
312682
|
async send(Re, Fe, Qe, Je, qe, We) {
|
|
312686
|
-
await this.
|
|
312687
|
-
const Ke = await this.getConfig(), dt = Keypair.generate(), Ze = config$1.wh.getContext(qe), ht = new PublicKey$4(Fe), Wn = getAssociatedTokenAddressSync(
|
|
312683
|
+
const Ke = await this.getProgram(), dt = await this.getConfig(), Ze = Keypair.generate(), ht = config$1.wh.getContext(qe), Wn = new PublicKey$4(Fe), Dt = getAssociatedTokenAddressSync(
|
|
312688
312684
|
new PublicKey$4(Re.address),
|
|
312689
|
-
|
|
312690
|
-
),
|
|
312691
|
-
payer:
|
|
312692
|
-
from:
|
|
312685
|
+
Wn
|
|
312686
|
+
), Fn = {
|
|
312687
|
+
payer: Wn,
|
|
312688
|
+
from: Dt,
|
|
312693
312689
|
amount: new BN$a(Je.toString()),
|
|
312694
312690
|
recipientChain: toChainName(qe),
|
|
312695
|
-
recipientAddress:
|
|
312696
|
-
fromAuthority:
|
|
312697
|
-
outboxItem:
|
|
312698
|
-
config:
|
|
312691
|
+
recipientAddress: ht.formatAddress(Qe),
|
|
312692
|
+
fromAuthority: Wn,
|
|
312693
|
+
outboxItem: Ze.publicKey,
|
|
312694
|
+
config: dt,
|
|
312699
312695
|
shouldQueue: !1
|
|
312700
312696
|
// revert instead of getting queued
|
|
312701
312697
|
};
|
|
312702
|
-
let
|
|
312703
|
-
|
|
312704
|
-
const
|
|
312705
|
-
payer:
|
|
312706
|
-
outboxItem:
|
|
312707
|
-
revertOnDelay: !
|
|
312708
|
-
}),
|
|
312709
|
-
amount:
|
|
312710
|
-
recipientChain: { id: toChainId$1(
|
|
312711
|
-
recipientAddress: Array.from(
|
|
312712
|
-
shouldQueue:
|
|
312713
|
-
},
|
|
312698
|
+
let Un;
|
|
312699
|
+
dt.mode.locking ? Un = await this.createTransferLockInstruction(Fn) : Un = await this.createTransferBurnInstruction(Fn);
|
|
312700
|
+
const Hn = await this.createReleaseOutboundInstruction({
|
|
312701
|
+
payer: Wn,
|
|
312702
|
+
outboxItem: Ze.publicKey,
|
|
312703
|
+
revertOnDelay: !Fn.shouldQueue
|
|
312704
|
+
}), qn = {
|
|
312705
|
+
amount: Fn.amount,
|
|
312706
|
+
recipientChain: { id: toChainId$1(Fn.recipientChain) },
|
|
312707
|
+
recipientAddress: Array.from(Fn.recipientAddress),
|
|
312708
|
+
shouldQueue: Fn.shouldQueue
|
|
312709
|
+
}, Xn = createApproveInstruction(
|
|
312710
|
+
Dt,
|
|
312711
|
+
this.sessionAuthorityAddress(Fn.fromAuthority, qn),
|
|
312714
312712
|
Wn,
|
|
312715
|
-
this.sessionAuthorityAddress(Dt.fromAuthority, Hn),
|
|
312716
|
-
ht,
|
|
312717
312713
|
BigInt(Je.toString())
|
|
312718
|
-
),
|
|
312719
|
-
if (
|
|
312720
|
-
const
|
|
312721
|
-
|
|
312714
|
+
), Zn = new Transaction();
|
|
312715
|
+
if (Zn.add(Xn, Un, Hn), !We) {
|
|
312716
|
+
const ir = getNttManagerConfigByAddress(
|
|
312717
|
+
Ke.programId.toString(),
|
|
312722
312718
|
"solana"
|
|
312723
312719
|
);
|
|
312724
|
-
if (!
|
|
312720
|
+
if (!ir || !ir.solanaQuoter)
|
|
312725
312721
|
throw new Error("no quoter");
|
|
312726
|
-
const
|
|
312727
|
-
|
|
312728
|
-
|
|
312722
|
+
const or = new NttQuoter(ir.solanaQuoter), Yn = await or.calcRelayCost(qe, ir.address), dr = await or.createRequestRelayInstruction(
|
|
312723
|
+
Wn,
|
|
312724
|
+
Ze.publicKey,
|
|
312729
312725
|
qe,
|
|
312730
|
-
|
|
312731
|
-
|
|
312726
|
+
Yn,
|
|
312727
|
+
ir.address
|
|
312732
312728
|
);
|
|
312733
|
-
|
|
312729
|
+
Zn.add(dr);
|
|
312734
312730
|
}
|
|
312735
|
-
|
|
312736
|
-
const { blockhash:
|
|
312737
|
-
return
|
|
312731
|
+
Zn.feePayer = Wn;
|
|
312732
|
+
const { blockhash: jn } = await this.connection.getLatestBlockhash("finalized");
|
|
312733
|
+
return Zn.recentBlockhash = jn, await addComputeBudget(this.connection, Zn), Zn.partialSign(Ze), await signAndSendTransaction(
|
|
312738
312734
|
"solana",
|
|
312739
|
-
|
|
312735
|
+
Zn,
|
|
312740
312736
|
TransferWallet.SENDING,
|
|
312741
312737
|
{ commitment: "finalized" }
|
|
312742
312738
|
);
|
|
312743
312739
|
}
|
|
312744
312740
|
async receiveMessage(Re, Fe) {
|
|
312745
|
-
await this.checkAbi(Fe);
|
|
312746
312741
|
const Qe = config$1.wh.mustGetContracts("solana").core;
|
|
312747
312742
|
if (!Qe)
|
|
312748
312743
|
throw new Error("Core not found");
|
|
@@ -312838,7 +312833,6 @@ const RATE_LIMIT_DURATION = 24 * 60 * 60, $0 = class $0 {
|
|
|
312838
312833
|
};
|
|
312839
312834
|
}
|
|
312840
312835
|
async completeInboundQueuedTransfer(Re, Fe, Qe) {
|
|
312841
|
-
await this.checkAbi(Qe);
|
|
312842
312836
|
const Je = new PublicKey$4(Qe), qe = {
|
|
312843
312837
|
payer: Je,
|
|
312844
312838
|
messageDigest: Re,
|
|
@@ -312884,7 +312878,7 @@ const RATE_LIMIT_DURATION = 24 * 60 * 60, $0 = class $0 {
|
|
|
312884
312878
|
derivePda(Re) {
|
|
312885
312879
|
const Fe = Re instanceof dist$8.Buffer ? [Re] : Re, [Qe] = PublicKey$4.findProgramAddressSync(
|
|
312886
312880
|
Fe,
|
|
312887
|
-
this.
|
|
312881
|
+
new PublicKey$4(this.nttId)
|
|
312888
312882
|
);
|
|
312889
312883
|
return Qe;
|
|
312890
312884
|
}
|
|
@@ -312971,7 +312965,7 @@ const RATE_LIMIT_DURATION = 24 * 60 * 60, $0 = class $0 {
|
|
|
312971
312965
|
recipientAddress: Array.from(Re.recipientAddress),
|
|
312972
312966
|
shouldQueue: Re.shouldQueue
|
|
312973
312967
|
};
|
|
312974
|
-
return await this.
|
|
312968
|
+
return await (await this.getProgram()).methods.transferBurn({
|
|
312975
312969
|
amount: Re.amount,
|
|
312976
312970
|
recipientChain: { id: Qe },
|
|
312977
312971
|
recipientAddress: Array.from(Re.recipientAddress),
|
|
@@ -313004,7 +312998,7 @@ const RATE_LIMIT_DURATION = 24 * 60 * 60, $0 = class $0 {
|
|
|
313004
312998
|
recipientAddress: Array.from(Re.recipientAddress),
|
|
313005
312999
|
shouldQueue: Re.shouldQueue
|
|
313006
313000
|
};
|
|
313007
|
-
return await this.
|
|
313001
|
+
return await (await this.getProgram()).methods.transferLock({
|
|
313008
313002
|
amount: Re.amount,
|
|
313009
313003
|
recipientChain: { id: Fe },
|
|
313010
313004
|
recipientAddress: Array.from(Re.recipientAddress),
|
|
@@ -313032,56 +313026,56 @@ const RATE_LIMIT_DURATION = 24 * 60 * 60, $0 = class $0 {
|
|
|
313032
313026
|
* Creates a release_outbound instruction. The `payer` needs to sign the transaction.
|
|
313033
313027
|
*/
|
|
313034
313028
|
async createReleaseOutboundInstruction(Re) {
|
|
313035
|
-
const Fe = getWormholeDerivedAccounts(
|
|
313036
|
-
|
|
313029
|
+
const Fe = await this.getProgram(), Qe = getWormholeDerivedAccounts(
|
|
313030
|
+
Fe.programId,
|
|
313037
313031
|
this.wormholeId
|
|
313038
313032
|
);
|
|
313039
|
-
return await
|
|
313033
|
+
return await Fe.methods.releaseWormholeOutbound({
|
|
313040
313034
|
revertOnDelay: Re.revertOnDelay
|
|
313041
313035
|
}).accounts({
|
|
313042
313036
|
payer: Re.payer,
|
|
313043
313037
|
config: { config: this.configAccountAddress() },
|
|
313044
313038
|
outboxItem: Re.outboxItem,
|
|
313045
313039
|
wormholeMessage: this.wormholeMessageAccountAddress(Re.outboxItem),
|
|
313046
|
-
emitter:
|
|
313047
|
-
transceiver: this.registeredTransceiverAddress(
|
|
313040
|
+
emitter: Qe.wormholeEmitter,
|
|
313041
|
+
transceiver: this.registeredTransceiverAddress(Fe.programId),
|
|
313048
313042
|
wormhole: {
|
|
313049
|
-
bridge:
|
|
313050
|
-
feeCollector:
|
|
313051
|
-
sequence:
|
|
313043
|
+
bridge: Qe.wormholeBridge,
|
|
313044
|
+
feeCollector: Qe.wormholeFeeCollector,
|
|
313045
|
+
sequence: Qe.wormholeSequence,
|
|
313052
313046
|
program: this.wormholeId
|
|
313053
313047
|
}
|
|
313054
313048
|
}).instruction();
|
|
313055
313049
|
}
|
|
313056
313050
|
async createReleaseInboundMintInstruction(Re) {
|
|
313057
|
-
const Fe = await this.getConfig(Re.config),
|
|
313058
|
-
return await
|
|
313051
|
+
const Fe = await this.getProgram(), Qe = await this.getConfig(Re.config), Je = await this.mintAccountAddress(Qe);
|
|
313052
|
+
return await Fe.methods.releaseInboundMint({
|
|
313059
313053
|
revertOnDelay: Re.revertOnDelay
|
|
313060
313054
|
}).accounts({
|
|
313061
313055
|
common: {
|
|
313062
313056
|
payer: Re.payer,
|
|
313063
313057
|
config: { config: this.configAccountAddress() },
|
|
313064
313058
|
inboxItem: this.inboxItemAccountAddress(Re.messageDigest),
|
|
313065
|
-
recipient: getAssociatedTokenAddressSync(
|
|
313066
|
-
mint:
|
|
313059
|
+
recipient: getAssociatedTokenAddressSync(Je, Re.recipient),
|
|
313060
|
+
mint: Je,
|
|
313067
313061
|
tokenAuthority: this.tokenAuthorityAddress()
|
|
313068
313062
|
}
|
|
313069
313063
|
}).instruction();
|
|
313070
313064
|
}
|
|
313071
313065
|
async createReleaseInboundUnlockInstruction(Re) {
|
|
313072
|
-
const Fe = await this.getConfig(Re.config),
|
|
313073
|
-
return await
|
|
313066
|
+
const Fe = await this.getProgram(), Qe = await this.getConfig(Re.config), Je = await this.mintAccountAddress(Qe);
|
|
313067
|
+
return await Fe.methods.releaseInboundUnlock({
|
|
313074
313068
|
revertOnDelay: Re.revertOnDelay
|
|
313075
313069
|
}).accounts({
|
|
313076
313070
|
common: {
|
|
313077
313071
|
payer: Re.payer,
|
|
313078
313072
|
config: { config: this.configAccountAddress() },
|
|
313079
313073
|
inboxItem: this.inboxItemAccountAddress(Re.messageDigest),
|
|
313080
|
-
recipient: getAssociatedTokenAddressSync(
|
|
313081
|
-
mint:
|
|
313074
|
+
recipient: getAssociatedTokenAddressSync(Je, Re.recipient),
|
|
313075
|
+
mint: Je,
|
|
313082
313076
|
tokenAuthority: this.tokenAuthorityAddress()
|
|
313083
313077
|
},
|
|
313084
|
-
custody: await this.custodyAccountAddress(
|
|
313078
|
+
custody: await this.custodyAccountAddress(Qe)
|
|
313085
313079
|
}).instruction();
|
|
313086
313080
|
}
|
|
313087
313081
|
async createReceiveWormholeMessageInstruction(Re) {
|
|
@@ -313089,7 +313083,7 @@ const RATE_LIMIT_DURATION = 24 * 60 * 60, $0 = class $0 {
|
|
|
313089
313083
|
"Ntt:WormholeTransfer",
|
|
313090
313084
|
Fe.payload
|
|
313091
313085
|
), Je = toChainId$1(Fe.emitterChain), qe = this.transceiverPeerAccountAddress(Je);
|
|
313092
|
-
return await this.
|
|
313086
|
+
return await (await this.getProgram()).methods.receiveWormholeMessage().accounts({
|
|
313093
313087
|
payer: Re.payer,
|
|
313094
313088
|
config: { config: this.configAccountAddress() },
|
|
313095
313089
|
peer: qe,
|
|
@@ -313107,8 +313101,8 @@ const RATE_LIMIT_DURATION = 24 * 60 * 60, $0 = class $0 {
|
|
|
313107
313101
|
), qe = toChainId$1(Qe.emitterChain), We = Ntt.messageDigest(
|
|
313108
313102
|
toChain(qe),
|
|
313109
313103
|
Je
|
|
313110
|
-
), Ke = this.peerAccountAddress(qe), dt = this.inboxRateLimitAccountAddress(qe);
|
|
313111
|
-
return await
|
|
313104
|
+
), Ke = this.peerAccountAddress(qe), dt = this.inboxRateLimitAccountAddress(qe), Ze = await this.getProgram();
|
|
313105
|
+
return await Ze.methods.redeem({}).accounts({
|
|
313112
313106
|
payer: Re.payer,
|
|
313113
313107
|
config: this.configAccountAddress(),
|
|
313114
313108
|
peer: Ke,
|
|
@@ -313116,7 +313110,7 @@ const RATE_LIMIT_DURATION = 24 * 60 * 60, $0 = class $0 {
|
|
|
313116
313110
|
qe,
|
|
313117
313111
|
dist$8.Buffer.from(Je.id)
|
|
313118
313112
|
),
|
|
313119
|
-
transceiver: this.registeredTransceiverAddress(
|
|
313113
|
+
transceiver: this.registeredTransceiverAddress(Ze.programId),
|
|
313120
313114
|
mint: await this.mintAccountAddress(Fe),
|
|
313121
313115
|
inboxItem: this.inboxItemAccountAddress(utils$P.hexlify(We)),
|
|
313122
313116
|
inboxRateLimit: dt,
|
|
@@ -313133,7 +313127,7 @@ const RATE_LIMIT_DURATION = 24 * 60 * 60, $0 = class $0 {
|
|
|
313133
313127
|
* once and passed around.
|
|
313134
313128
|
*/
|
|
313135
313129
|
async getConfig(Re) {
|
|
313136
|
-
return Re ?? await this.
|
|
313130
|
+
return Re ?? await (await this.getProgram()).account.config.fetch(this.configAccountAddress());
|
|
313137
313131
|
}
|
|
313138
313132
|
async isPaused(Re) {
|
|
313139
313133
|
return (await this.getConfig(Re)).paused;
|
|
@@ -313145,36 +313139,43 @@ const RATE_LIMIT_DURATION = 24 * 60 * 60, $0 = class $0 {
|
|
|
313145
313139
|
return (await this.getConfig(Re)).tokenProgram;
|
|
313146
313140
|
}
|
|
313147
313141
|
async getInboxItem(Re) {
|
|
313148
|
-
return await this.
|
|
313142
|
+
return await (await this.getProgram()).account.inboxItem.fetch(
|
|
313149
313143
|
this.inboxItemAccountAddress(Re)
|
|
313150
313144
|
);
|
|
313151
313145
|
}
|
|
313152
313146
|
async getOutboxRateLimit() {
|
|
313153
|
-
return await this.
|
|
313147
|
+
return await (await this.getProgram()).account.outboxRateLimit.fetch(
|
|
313154
313148
|
this.outboxRateLimitAccountAddress()
|
|
313155
313149
|
);
|
|
313156
313150
|
}
|
|
313157
313151
|
async getInboxRateLimit(Re) {
|
|
313158
|
-
return await this.
|
|
313152
|
+
return await (await this.getProgram()).account.inboxRateLimit.fetch(
|
|
313159
313153
|
this.inboxRateLimitAccountAddress(Re)
|
|
313160
313154
|
);
|
|
313161
313155
|
}
|
|
313162
313156
|
// View functions
|
|
313163
|
-
async
|
|
313164
|
-
var
|
|
313165
|
-
|
|
313166
|
-
|
|
313167
|
-
|
|
313168
|
-
|
|
313169
|
-
|
|
313170
|
-
|
|
313171
|
-
|
|
313172
|
-
|
|
313173
|
-
})
|
|
313174
|
-
|
|
313175
|
-
|
|
313176
|
-
|
|
313177
|
-
|
|
313157
|
+
async getVersion() {
|
|
313158
|
+
var We;
|
|
313159
|
+
const Fe = await new Program(IDL$1, this.nttId, {
|
|
313160
|
+
connection: this.connection
|
|
313161
|
+
}).methods.version().accountsStrict({}).instruction(), Qe = await this.connection.getLatestBlockhash(), Je = new PublicKey$4(
|
|
313162
|
+
"CHaW6yNSbYdAvxhRiEy7Wa6g7JLJQBYZxudadXTNqWX8"
|
|
313163
|
+
), qe = new TransactionMessage({
|
|
313164
|
+
payerKey: Je,
|
|
313165
|
+
recentBlockhash: Qe.blockhash,
|
|
313166
|
+
instructions: [Fe]
|
|
313167
|
+
}).compileToV0Message();
|
|
313168
|
+
try {
|
|
313169
|
+
const Ke = new VersionedTransaction(qe), Ze = (We = (await this.connection.simulateTransaction(Ke, {
|
|
313170
|
+
sigVerify: !1
|
|
313171
|
+
})).value.returnData) == null ? void 0 : We.data[0];
|
|
313172
|
+
if (!Ze)
|
|
313173
|
+
throw new Error("No version() return data");
|
|
313174
|
+
const ht = dist$8.Buffer.from(Ze, "base64"), Wn = ht.readUInt32LE(0);
|
|
313175
|
+
return ht.slice(4, Wn + 4).toString();
|
|
313176
|
+
} catch (Ke) {
|
|
313177
|
+
throw console.error(`Unable to fetch solana contract version: ${Ke}`), Ke;
|
|
313178
|
+
}
|
|
313178
313179
|
}
|
|
313179
313180
|
/**
|
|
313180
313181
|
* Returns the address of the custody account. If the config is available
|
|
@@ -313190,10 +313191,14 @@ const RATE_LIMIT_DURATION = 24 * 60 * 60, $0 = class $0 {
|
|
|
313190
313191
|
owner: this.tokenAuthorityAddress()
|
|
313191
313192
|
});
|
|
313192
313193
|
}
|
|
313193
|
-
async
|
|
313194
|
-
let
|
|
313195
|
-
if (
|
|
313196
|
-
|
|
313194
|
+
async getProgram() {
|
|
313195
|
+
let Re = $0.abiVersionCache.get(this.nttId);
|
|
313196
|
+
if (!Re) {
|
|
313197
|
+
if (await this.getVersion() !== "1.0.0")
|
|
313198
|
+
throw new UnsupportedContractAbiVersion();
|
|
313199
|
+
Re = new Program(IDL$1, this.nttId, { connection: this.connection }), $0.abiVersionCache.set(this.nttId, Re);
|
|
313200
|
+
}
|
|
313201
|
+
return Re;
|
|
313197
313202
|
}
|
|
313198
313203
|
};
|
|
313199
313204
|
ys($0, "abiVersionCache", /* @__PURE__ */ new Map());
|
|
@@ -337291,42 +337296,45 @@ function Bridge() {
|
|
|
337291
337296
|
};
|
|
337292
337297
|
}, [Ze, qe, dt, Fe]), useEffect(() => {
|
|
337293
337298
|
(async () => {
|
|
337294
|
-
var
|
|
337299
|
+
var $n, nr;
|
|
337295
337300
|
let fr = await RouteOperator.allSupportedDestTokens(
|
|
337296
337301
|
config$1.tokens[Ke],
|
|
337297
337302
|
qe,
|
|
337298
337303
|
We
|
|
337299
337304
|
);
|
|
337300
|
-
|
|
337301
|
-
|
|
337302
|
-
|
|
337305
|
+
if (Ke) {
|
|
337306
|
+
const pr = fr.filter((ar) => ar.nativeChain === We);
|
|
337307
|
+
pr.length > 0 && (fr = pr);
|
|
337308
|
+
}
|
|
337309
|
+
Fe(setSupportedDestTokens(fr));
|
|
337310
|
+
const sr = await RouteOperator.allSupportedDestTokens(
|
|
337303
337311
|
void 0,
|
|
337304
337312
|
qe,
|
|
337305
337313
|
We
|
|
337306
337314
|
);
|
|
337307
|
-
Fe(setAllSupportedDestTokens(
|
|
337308
|
-
const
|
|
337309
|
-
if (We &&
|
|
337310
|
-
const
|
|
337311
|
-
(
|
|
337312
|
-
var
|
|
337313
|
-
return
|
|
337315
|
+
Fe(setAllSupportedDestTokens(sr)), We && fr.length === 1 && Fe(setDestToken(fr[0].key));
|
|
337316
|
+
const Qn = fr.map((pr) => pr.symbol);
|
|
337317
|
+
if (We && Qn.every((pr) => pr === Qn[0]) && ["USDC", "tBTC"].includes(Qn[0])) {
|
|
337318
|
+
const pr = ($n = fr.find(
|
|
337319
|
+
(ar) => {
|
|
337320
|
+
var gr;
|
|
337321
|
+
return ar.symbol === Qn[0] && ar.nativeChain === ((gr = ar.tokenId) == null ? void 0 : gr.chain) && ar.nativeChain === We;
|
|
337314
337322
|
}
|
|
337315
|
-
)) == null ? void 0 :
|
|
337316
|
-
|
|
337323
|
+
)) == null ? void 0 : $n.key;
|
|
337324
|
+
pr && Fe(setDestToken(pr));
|
|
337317
337325
|
}
|
|
337318
337326
|
if (Ke && dt === "" && We && (!Ze || isPorticoRoute(Ze))) {
|
|
337319
|
-
const
|
|
337327
|
+
const pr = (nr = config$1.tokens[Ke]) == null ? void 0 : nr.symbol;
|
|
337320
337328
|
if ([
|
|
337321
337329
|
...ETHBridge.SUPPORTED_TOKENS,
|
|
337322
337330
|
...wstETHBridge.SUPPORTED_TOKENS
|
|
337323
|
-
].includes(
|
|
337324
|
-
let
|
|
337325
|
-
if (!
|
|
337326
|
-
const
|
|
337327
|
-
|
|
337331
|
+
].includes(pr)) {
|
|
337332
|
+
let gr = getNativeVersionOfToken(pr, We);
|
|
337333
|
+
if (!gr) {
|
|
337334
|
+
const _r = getWrappedToken(config$1.tokens[Ke]);
|
|
337335
|
+
gr = getNativeVersionOfToken(_r.symbol, We);
|
|
337328
337336
|
}
|
|
337329
|
-
|
|
337337
|
+
gr && isSupportedToken(gr, fr) && Fe(setDestToken(gr));
|
|
337330
337338
|
}
|
|
337331
337339
|
}
|
|
337332
337340
|
})();
|
|
@@ -339606,7 +339614,7 @@ export {
|
|
|
339606
339614
|
jsxRuntimeExports as az,
|
|
339607
339615
|
CHAIN_ID_ETH as b,
|
|
339608
339616
|
requireReadableBrowser as b0,
|
|
339609
|
-
|
|
339617
|
+
inherits_browserExports as b1,
|
|
339610
339618
|
WormholeConnect as b2,
|
|
339611
339619
|
MAINNET as b3,
|
|
339612
339620
|
TESTNET as b4,
|