@wormhole-foundation/wormhole-connect 0.3.4-beta.3-development → 0.3.4-beta.4-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/{cosmos-9t5ds48M.js → cosmos-TcYN7x14.js} +1 -1
- package/dist/assets/index-7UgR9Epe.js +3 -0
- package/dist/assets/{solana-QOFlt-jY.js → solana-r3vOVfGL.js} +2 -2
- package/dist/assets/{solanaEmbed.esm-bag_3ej_.js → solanaEmbed.esm-8lU7Qhqn.js} +1 -1
- package/dist/main.js +87 -87
- package/dist/src/routes/ntt/chains/solana/nttManager.d.ts.map +1 -1
- package/dist/src/routes/ntt/chains/solana/nttQuoter.d.ts +2 -2
- package/dist/src/routes/ntt/chains/solana/nttQuoter.d.ts.map +1 -1
- package/dist/src/routes/ntt/nttRelay.d.ts.map +1 -1
- package/lib/{aptos-LzsTT-yE.mjs → aptos-XkxFn0iA.mjs} +1 -1
- package/lib/{aptos-A2P3fZwR.js → aptos-yj-TK3PA.js} +1 -1
- package/lib/{ccip-EX9Uy7uh.mjs → ccip-FGsI2Vy1.mjs} +3 -3
- package/lib/{ccip-MYRIWxwr.js → ccip-fjiaQRuA.js} +1 -1
- package/lib/{cosmos-LAGywRPJ.js → cosmos-AUjYaZap.js} +1 -1
- package/lib/{cosmos-8BhxGLk5.mjs → cosmos-MDA8Rp7a.mjs} +3 -3
- package/lib/{evm-rkkBtxAA.js → evm-AzWd7TIg.js} +3 -3
- package/lib/{evm-4xBDvIbh.mjs → evm-EK7l4v5F.mjs} +4 -4
- package/lib/{index-oQ6mMVQe.mjs → index-0q2THm2w.mjs} +3 -3
- package/lib/index-9vpoegf2.js +3 -0
- package/lib/{index-TXf-Y_5p.mjs → index-GqCbgO6w.mjs} +96 -87
- package/lib/{index-DiFBiIsU.js → index-Lyx2KgEl.js} +6 -6
- package/lib/{index-IzBi7jkq.js → index-M5muoSKm.js} +1 -1
- package/lib/{index-6l7AaQMo.mjs → index-U4-cs6LF.mjs} +68 -68
- package/lib/{index-HrOVvUmR.mjs → index-ZqzSOsNH.mjs} +1 -1
- package/lib/{index-f0MmfW4C.js → index-e4IwQovx.js} +1 -1
- package/lib/{index-SXsxLkBQ.mjs → index-i3M9x9ys.mjs} +2 -2
- package/lib/{index-DFThg9zD.js → index-uD29Qviy.js} +1 -1
- package/lib/{index.es-i0PmGTV8.js → index.es-3N17U6U-.js} +2 -2
- package/lib/{index.es-wdCYxk2S.mjs → index.es-4yp-p17j.mjs} +2 -2
- package/lib/{index.es-qoSsRT_G.mjs → index.es-D5PlxUXA.mjs} +4 -4
- package/lib/{index.es-dyXbfeDn.js → index.es-OMs0sEbV.js} +1 -1
- package/lib/{index.es-JGv9-9pp.js → index.es-m2T5sCHF.js} +1 -1
- package/lib/{index.es-B2GmSqJ1.mjs → index.es-sWP5wBk1.mjs} +1 -1
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{libsodium-wrappers-x1Tf86Kb.js → libsodium-wrappers-LCJ8UHG9.js} +1 -1
- package/lib/{libsodium-wrappers-ffJoUj0j.mjs → libsodium-wrappers-w6994RX-.mjs} +1 -1
- package/lib/{sei-ams4Dv3V.js → sei-Oplz3AG7.js} +1 -1
- package/lib/{sei-yioT3-Yb.mjs → sei-w_LUpthw.mjs} +2 -2
- package/lib/{solana-VyhiGF9X.mjs → solana-1K5mHs_m.mjs} +3 -3
- package/lib/{solana-2Gb2ijrF.js → solana-GtJSObQi.js} +1 -1
- package/lib/{solanaEmbed.esm-AyFAReSD.js → solanaEmbed.esm-3t3NYEW9.js} +1 -1
- package/lib/{solanaEmbed.esm-O2q9SxIk.mjs → solanaEmbed.esm-7dEAUE3p.mjs} +2 -2
- package/lib/src/routes/ntt/chains/solana/nttManager.d.ts.map +1 -1
- package/lib/src/routes/ntt/chains/solana/nttQuoter.d.ts +2 -2
- package/lib/src/routes/ntt/chains/solana/nttQuoter.d.ts.map +1 -1
- package/lib/src/routes/ntt/nttRelay.d.ts.map +1 -1
- package/lib/{sui-8zqO_WMc.mjs → sui-Z4KdsJtV.mjs} +1 -1
- package/lib/{sui-vAj128v8.js → sui-tt-QRxQS.js} +1 -1
- package/package.json +1 -1
- package/dist/assets/index-bti7uInf.js +0 -3
- package/lib/index-FCAzcpcI.js +0 -3
|
@@ -14612,25 +14612,27 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
14612
14612
|
}
|
|
14613
14613
|
return browser$h.exports;
|
|
14614
14614
|
}
|
|
14615
|
-
var inherits_browser$1 = { exports: {} };
|
|
14616
|
-
|
|
14617
|
-
|
|
14618
|
-
|
|
14619
|
-
|
|
14620
|
-
|
|
14621
|
-
|
|
14622
|
-
|
|
14615
|
+
var inherits_browser$1 = { exports: {} }, hasRequiredInherits_browser;
|
|
14616
|
+
function requireInherits_browser() {
|
|
14617
|
+
return hasRequiredInherits_browser || (hasRequiredInherits_browser = 1, typeof Object.create == "function" ? inherits_browser$1.exports = function(Re, Fe) {
|
|
14618
|
+
Fe && (Re.super_ = Fe, Re.prototype = Object.create(Fe.prototype, {
|
|
14619
|
+
constructor: {
|
|
14620
|
+
value: Re,
|
|
14621
|
+
enumerable: !1,
|
|
14622
|
+
writable: !0,
|
|
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;
|
|
14623
14632
|
}
|
|
14624
|
-
})
|
|
14625
|
-
}
|
|
14626
|
-
|
|
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) {
|
|
14633
|
+
}), inherits_browser$1.exports;
|
|
14634
|
+
}
|
|
14635
|
+
var 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) {
|
|
14634
14636
|
return Function.prototype.apply.call(Re, Fe, Qe);
|
|
14635
14637
|
}, ReflectOwnKeys;
|
|
14636
14638
|
R$1 && typeof R$1.ownKeys == "function" ? ReflectOwnKeys = R$1.ownKeys : Object.getOwnPropertySymbols ? ReflectOwnKeys = function(Re) {
|
|
@@ -15209,7 +15211,7 @@ function require_stream_writable() {
|
|
|
15209
15211
|
return Je.isBuffer(Lr) || Lr instanceof qe;
|
|
15210
15212
|
}
|
|
15211
15213
|
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;
|
|
15212
|
-
|
|
15214
|
+
requireInherits_browser()(dr, Qe);
|
|
15213
15215
|
function ir() {
|
|
15214
15216
|
}
|
|
15215
15217
|
function or(Lr, qr, Xr) {
|
|
@@ -15430,7 +15432,7 @@ function require_stream_duplex() {
|
|
|
15430
15432
|
};
|
|
15431
15433
|
_stream_duplex = We;
|
|
15432
15434
|
var Re = require_stream_readable(), Fe = require_stream_writable();
|
|
15433
|
-
|
|
15435
|
+
requireInherits_browser()(We, Re);
|
|
15434
15436
|
for (var Qe = e(Fe.prototype), Je = 0; Je < Qe.length; Je++) {
|
|
15435
15437
|
var qe = Qe[Je];
|
|
15436
15438
|
We.prototype[qe] || (We.prototype[qe] = Fe.prototype[qe]);
|
|
@@ -15856,7 +15858,7 @@ function require_stream_readable() {
|
|
|
15856
15858
|
Ke && Ke.debuglog ? dt = Ke.debuglog("stream") : dt = function() {
|
|
15857
15859
|
};
|
|
15858
15860
|
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;
|
|
15859
|
-
|
|
15861
|
+
requireInherits_browser()(Jn, Fe);
|
|
15860
15862
|
var ir = ht.errorOrDestroy, or = ["error", "close", "destroy", "pause", "resume"];
|
|
15861
15863
|
function Yn(Hi, Ti, ao) {
|
|
15862
15864
|
if (typeof Hi.prependListener == "function")
|
|
@@ -16188,7 +16190,7 @@ function require_stream_transform() {
|
|
|
16188
16190
|
return _stream_transform;
|
|
16189
16191
|
hasRequired_stream_transform = 1, _stream_transform = Ke;
|
|
16190
16192
|
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();
|
|
16191
|
-
|
|
16193
|
+
requireInherits_browser()(Ke, qe);
|
|
16192
16194
|
function We(ht, Wn) {
|
|
16193
16195
|
var Dt = this._transformState;
|
|
16194
16196
|
Dt.transforming = !1;
|
|
@@ -16252,7 +16254,7 @@ function require_stream_passthrough() {
|
|
|
16252
16254
|
return _stream_passthrough;
|
|
16253
16255
|
hasRequired_stream_passthrough = 1, _stream_passthrough = Re;
|
|
16254
16256
|
var e = require_stream_transform();
|
|
16255
|
-
|
|
16257
|
+
requireInherits_browser()(Re, e);
|
|
16256
16258
|
function Re(Fe) {
|
|
16257
16259
|
if (!(this instanceof Re))
|
|
16258
16260
|
return new Re(Fe);
|
|
@@ -16342,7 +16344,7 @@ function requireHashBase() {
|
|
|
16342
16344
|
if (hasRequiredHashBase)
|
|
16343
16345
|
return hashBase;
|
|
16344
16346
|
hasRequiredHashBase = 1;
|
|
16345
|
-
var e = safeBufferExports.Buffer, Re = requireReadableBrowser().Transform, Fe =
|
|
16347
|
+
var e = safeBufferExports.Buffer, Re = requireReadableBrowser().Transform, Fe = requireInherits_browser();
|
|
16346
16348
|
function Qe(qe, We) {
|
|
16347
16349
|
if (!e.isBuffer(qe) && typeof qe != "string")
|
|
16348
16350
|
throw new TypeError(We + " must be a string or a buffer");
|
|
@@ -16400,7 +16402,7 @@ function requireMd5_js() {
|
|
|
16400
16402
|
if (hasRequiredMd5_js)
|
|
16401
16403
|
return md5_js;
|
|
16402
16404
|
hasRequiredMd5_js = 1;
|
|
16403
|
-
var e =
|
|
16405
|
+
var e = requireInherits_browser(), Re = requireHashBase(), Fe = safeBufferExports.Buffer, Qe = new Array(16);
|
|
16404
16406
|
function Je() {
|
|
16405
16407
|
Re.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878;
|
|
16406
16408
|
}
|
|
@@ -16436,7 +16438,7 @@ function requireRipemd160() {
|
|
|
16436
16438
|
if (hasRequiredRipemd160)
|
|
16437
16439
|
return ripemd160$6;
|
|
16438
16440
|
hasRequiredRipemd160 = 1;
|
|
16439
|
-
var e = bufferPolyfill.Buffer, Re =
|
|
16441
|
+
var e = bufferPolyfill.Buffer, Re = requireInherits_browser(), Fe = requireHashBase(), Qe = new Array(16), Je = [
|
|
16440
16442
|
0,
|
|
16441
16443
|
1,
|
|
16442
16444
|
2,
|
|
@@ -16837,7 +16839,7 @@ function requireSha() {
|
|
|
16837
16839
|
if (hasRequiredSha)
|
|
16838
16840
|
return sha$2;
|
|
16839
16841
|
hasRequiredSha = 1;
|
|
16840
|
-
var e =
|
|
16842
|
+
var e = requireInherits_browser(), Re = requireHash(), Fe = safeBufferExports.Buffer, Qe = [
|
|
16841
16843
|
1518500249,
|
|
16842
16844
|
1859775393,
|
|
16843
16845
|
-1894007588,
|
|
@@ -16878,7 +16880,7 @@ function requireSha1() {
|
|
|
16878
16880
|
if (hasRequiredSha1)
|
|
16879
16881
|
return sha1$1;
|
|
16880
16882
|
hasRequiredSha1 = 1;
|
|
16881
|
-
var e =
|
|
16883
|
+
var e = requireInherits_browser(), Re = requireHash(), Fe = safeBufferExports.Buffer, Qe = [
|
|
16882
16884
|
1518500249,
|
|
16883
16885
|
1859775393,
|
|
16884
16886
|
-1894007588,
|
|
@@ -16922,7 +16924,7 @@ function requireSha256() {
|
|
|
16922
16924
|
if (hasRequiredSha256)
|
|
16923
16925
|
return sha256$a;
|
|
16924
16926
|
hasRequiredSha256 = 1;
|
|
16925
|
-
var e =
|
|
16927
|
+
var e = requireInherits_browser(), Re = requireHash(), Fe = safeBufferExports.Buffer, Qe = [
|
|
16926
16928
|
1116352408,
|
|
16927
16929
|
1899447441,
|
|
16928
16930
|
3049323471,
|
|
@@ -17032,7 +17034,7 @@ function requireSha224() {
|
|
|
17032
17034
|
if (hasRequiredSha224)
|
|
17033
17035
|
return sha224$2;
|
|
17034
17036
|
hasRequiredSha224 = 1;
|
|
17035
|
-
var e =
|
|
17037
|
+
var e = requireInherits_browser(), Re = requireSha256(), Fe = requireHash(), Qe = safeBufferExports.Buffer, Je = new Array(64);
|
|
17036
17038
|
function qe() {
|
|
17037
17039
|
this.init(), this._w = Je, Fe.call(this, 64, 56);
|
|
17038
17040
|
}
|
|
@@ -17048,7 +17050,7 @@ function requireSha512() {
|
|
|
17048
17050
|
if (hasRequiredSha512)
|
|
17049
17051
|
return sha512$9;
|
|
17050
17052
|
hasRequiredSha512 = 1;
|
|
17051
|
-
var e =
|
|
17053
|
+
var e = requireInherits_browser(), Re = requireHash(), Fe = safeBufferExports.Buffer, Qe = [
|
|
17052
17054
|
1116352408,
|
|
17053
17055
|
3609767458,
|
|
17054
17056
|
1899447441,
|
|
@@ -17273,7 +17275,7 @@ function requireSha384() {
|
|
|
17273
17275
|
if (hasRequiredSha384)
|
|
17274
17276
|
return sha384$3;
|
|
17275
17277
|
hasRequiredSha384 = 1;
|
|
17276
|
-
var e =
|
|
17278
|
+
var e = requireInherits_browser(), Re = requireSha512(), Fe = requireHash(), Qe = safeBufferExports.Buffer, Je = new Array(160);
|
|
17277
17279
|
function qe() {
|
|
17278
17280
|
this.init(), this._w = Je, Fe.call(this, 128, 112);
|
|
17279
17281
|
}
|
|
@@ -17306,7 +17308,7 @@ function requireStreamBrowserify() {
|
|
|
17306
17308
|
if (hasRequiredStreamBrowserify)
|
|
17307
17309
|
return streamBrowserify;
|
|
17308
17310
|
hasRequiredStreamBrowserify = 1, streamBrowserify = Fe;
|
|
17309
|
-
var e = eventsExports.EventEmitter, Re =
|
|
17311
|
+
var e = eventsExports.EventEmitter, Re = requireInherits_browser();
|
|
17310
17312
|
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;
|
|
17311
17313
|
function Fe() {
|
|
17312
17314
|
e.call(this);
|
|
@@ -17344,7 +17346,7 @@ function requireCipherBase() {
|
|
|
17344
17346
|
if (hasRequiredCipherBase)
|
|
17345
17347
|
return cipherBase;
|
|
17346
17348
|
hasRequiredCipherBase = 1;
|
|
17347
|
-
var e = safeBufferExports.Buffer, Re = requireStreamBrowserify().Transform, Fe = requireString_decoder().StringDecoder, Qe =
|
|
17349
|
+
var e = safeBufferExports.Buffer, Re = requireStreamBrowserify().Transform, Fe = requireString_decoder().StringDecoder, Qe = requireInherits_browser();
|
|
17348
17350
|
function Je(qe) {
|
|
17349
17351
|
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;
|
|
17350
17352
|
}
|
|
@@ -17391,7 +17393,7 @@ function requireBrowser$9() {
|
|
|
17391
17393
|
if (hasRequiredBrowser$9)
|
|
17392
17394
|
return browser$f;
|
|
17393
17395
|
hasRequiredBrowser$9 = 1;
|
|
17394
|
-
var e =
|
|
17396
|
+
var e = requireInherits_browser(), Re = requireMd5_js(), Fe = requireRipemd160(), Qe = requireSha_js(), Je = requireCipherBase();
|
|
17395
17397
|
function qe(We) {
|
|
17396
17398
|
Je.call(this, "digest"), this._hash = We;
|
|
17397
17399
|
}
|
|
@@ -17408,7 +17410,7 @@ function requireLegacy() {
|
|
|
17408
17410
|
if (hasRequiredLegacy)
|
|
17409
17411
|
return legacy;
|
|
17410
17412
|
hasRequiredLegacy = 1;
|
|
17411
|
-
var e =
|
|
17413
|
+
var e = requireInherits_browser(), Re = safeBufferExports.Buffer, Fe = requireCipherBase(), Qe = Re.alloc(128), Je = 64;
|
|
17412
17414
|
function qe(We, Ke) {
|
|
17413
17415
|
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));
|
|
17414
17416
|
for (var dt = this._ipad = Re.allocUnsafe(Je), Ze = this._opad = Re.allocUnsafe(Je), ht = 0; ht < Je; ht++)
|
|
@@ -17437,7 +17439,7 @@ function requireBrowser$8() {
|
|
|
17437
17439
|
if (hasRequiredBrowser$8)
|
|
17438
17440
|
return browser$e;
|
|
17439
17441
|
hasRequiredBrowser$8 = 1;
|
|
17440
|
-
var e =
|
|
17442
|
+
var e = requireInherits_browser(), Re = requireLegacy(), Fe = requireCipherBase(), Qe = safeBufferExports.Buffer, Je = requireMd5(), qe = requireRipemd160(), We = requireSha_js(), Ke = Qe.alloc(128);
|
|
17441
17443
|
function dt(Ze, ht) {
|
|
17442
17444
|
Fe.call(this, "digest"), typeof ht == "string" && (ht = Qe.from(ht));
|
|
17443
17445
|
var Wn = Ze === "sha512" || Ze === "sha384" ? 128 : 64;
|
|
@@ -18565,7 +18567,7 @@ function requireDes$1() {
|
|
|
18565
18567
|
if (hasRequiredDes$1)
|
|
18566
18568
|
return des;
|
|
18567
18569
|
hasRequiredDes$1 = 1;
|
|
18568
|
-
var e = minimalisticAssert$1, Re =
|
|
18570
|
+
var e = minimalisticAssert$1, Re = requireInherits_browser(), Fe = requireUtils(), Qe = requireCipher();
|
|
18569
18571
|
function Je() {
|
|
18570
18572
|
this.tmp = new Array(2), this.keys = null;
|
|
18571
18573
|
}
|
|
@@ -18641,7 +18643,7 @@ function requireCbc$1() {
|
|
|
18641
18643
|
if (hasRequiredCbc$1)
|
|
18642
18644
|
return cbc$1;
|
|
18643
18645
|
hasRequiredCbc$1 = 1;
|
|
18644
|
-
var e = minimalisticAssert$1, Re =
|
|
18646
|
+
var e = minimalisticAssert$1, Re = requireInherits_browser(), Fe = {};
|
|
18645
18647
|
function Qe(qe) {
|
|
18646
18648
|
e.equal(qe.length, 8, "Invalid IV length"), this.iv = new Array(8);
|
|
18647
18649
|
for (var We = 0; We < this.iv.length; We++)
|
|
@@ -18685,7 +18687,7 @@ function requireEde() {
|
|
|
18685
18687
|
if (hasRequiredEde)
|
|
18686
18688
|
return ede;
|
|
18687
18689
|
hasRequiredEde = 1;
|
|
18688
|
-
var e = minimalisticAssert$1, Re =
|
|
18690
|
+
var e = minimalisticAssert$1, Re = requireInherits_browser(), Fe = requireCipher(), Qe = requireDes$1();
|
|
18689
18691
|
function Je(We, Ke) {
|
|
18690
18692
|
e.equal(Ke.length, 24, "Invalid key length");
|
|
18691
18693
|
var dt = Ke.slice(0, 8), Ze = Ke.slice(8, 16), ht = Ke.slice(16, 24);
|
|
@@ -18720,7 +18722,7 @@ function requireBrowserifyDes() {
|
|
|
18720
18722
|
if (hasRequiredBrowserifyDes)
|
|
18721
18723
|
return browserifyDes;
|
|
18722
18724
|
hasRequiredBrowserifyDes = 1;
|
|
18723
|
-
var e = requireCipherBase(), Re = requireDes(), Fe =
|
|
18725
|
+
var e = requireCipherBase(), Re = requireDes(), Fe = requireInherits_browser(), Qe = safeBufferExports.Buffer, Je = {
|
|
18724
18726
|
"des-ede3-cbc": Re.CBC.instantiate(Re.EDE),
|
|
18725
18727
|
"des-ede3": Re.EDE,
|
|
18726
18728
|
"des-ede-cbc": Re.CBC.instantiate(Re.EDE),
|
|
@@ -19222,7 +19224,7 @@ function requireAuthCipher() {
|
|
|
19222
19224
|
if (hasRequiredAuthCipher)
|
|
19223
19225
|
return authCipher;
|
|
19224
19226
|
hasRequiredAuthCipher = 1;
|
|
19225
|
-
var e = requireAes(), Re = safeBufferExports.Buffer, Fe = requireCipherBase(), Qe =
|
|
19227
|
+
var e = requireAes(), Re = safeBufferExports.Buffer, Fe = requireCipherBase(), Qe = requireInherits_browser(), Je = requireGhash(), qe = requireBufferXor(), We = requireIncr32();
|
|
19226
19228
|
function Ke(ht, Wn) {
|
|
19227
19229
|
var Dt = 0;
|
|
19228
19230
|
ht.length !== Wn.length && Dt++;
|
|
@@ -19281,7 +19283,7 @@ function requireStreamCipher() {
|
|
|
19281
19283
|
if (hasRequiredStreamCipher)
|
|
19282
19284
|
return streamCipher;
|
|
19283
19285
|
hasRequiredStreamCipher = 1;
|
|
19284
|
-
var e = requireAes(), Re = safeBufferExports.Buffer, Fe = requireCipherBase(), Qe =
|
|
19286
|
+
var e = requireAes(), Re = safeBufferExports.Buffer, Fe = requireCipherBase(), Qe = requireInherits_browser();
|
|
19285
19287
|
function Je(qe, We, Ke, dt) {
|
|
19286
19288
|
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;
|
|
19287
19289
|
}
|
|
@@ -19322,7 +19324,7 @@ function requireEncrypter() {
|
|
|
19322
19324
|
if (hasRequiredEncrypter)
|
|
19323
19325
|
return encrypter;
|
|
19324
19326
|
hasRequiredEncrypter = 1;
|
|
19325
|
-
var e = requireModes$1(), Re = requireAuthCipher(), Fe = safeBufferExports.Buffer, Qe = requireStreamCipher(), Je = requireCipherBase(), qe = requireAes(), We = requireEvp_bytestokey(), Ke =
|
|
19327
|
+
var e = requireModes$1(), Re = requireAuthCipher(), Fe = safeBufferExports.Buffer, Qe = requireStreamCipher(), Je = requireCipherBase(), qe = requireAes(), We = requireEvp_bytestokey(), Ke = requireInherits_browser();
|
|
19326
19328
|
function dt(Fn, Un, Hn) {
|
|
19327
19329
|
Je.call(this), this._cache = new ht(), this._cipher = new qe.AES(Un), this._prev = Fe.from(Hn), this._mode = Fn, this._autopadding = !0;
|
|
19328
19330
|
}
|
|
@@ -19382,7 +19384,7 @@ function requireDecrypter() {
|
|
|
19382
19384
|
if (hasRequiredDecrypter)
|
|
19383
19385
|
return decrypter;
|
|
19384
19386
|
hasRequiredDecrypter = 1;
|
|
19385
|
-
var e = requireAuthCipher(), Re = safeBufferExports.Buffer, Fe = requireModes$1(), Qe = requireStreamCipher(), Je = requireCipherBase(), qe = requireAes(), We = requireEvp_bytestokey(), Ke =
|
|
19387
|
+
var e = requireAuthCipher(), Re = safeBufferExports.Buffer, Fe = requireModes$1(), Qe = requireStreamCipher(), Je = requireCipherBase(), qe = requireAes(), We = requireEvp_bytestokey(), Ke = requireInherits_browser();
|
|
19386
19388
|
function dt(Fn, Un, Hn) {
|
|
19387
19389
|
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;
|
|
19388
19390
|
}
|
|
@@ -24879,7 +24881,7 @@ BasePoint$1.prototype.dblp = function e(Re) {
|
|
|
24879
24881
|
Fe = Fe.dbl();
|
|
24880
24882
|
return Fe;
|
|
24881
24883
|
};
|
|
24882
|
-
var utils$1l = utils$1o, BN$8 = bnExports$1, inherits$8 =
|
|
24884
|
+
var utils$1l = utils$1o, BN$8 = bnExports$1, inherits$8 = requireInherits_browser(), Base$2 = base$5, assert$o = utils$1l.assert;
|
|
24883
24885
|
function ShortCurve$1(e) {
|
|
24884
24886
|
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);
|
|
24885
24887
|
}
|
|
@@ -25263,7 +25265,7 @@ JPoint$1.prototype.inspect = function e() {
|
|
|
25263
25265
|
JPoint$1.prototype.isInfinity = function e() {
|
|
25264
25266
|
return this.z.cmpn(0) === 0;
|
|
25265
25267
|
};
|
|
25266
|
-
var BN$7 = bnExports$1, inherits$7 =
|
|
25268
|
+
var BN$7 = bnExports$1, inherits$7 = requireInherits_browser(), Base$1 = base$5, utils$1k = utils$1o;
|
|
25267
25269
|
function MontCurve(e) {
|
|
25268
25270
|
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));
|
|
25269
25271
|
}
|
|
@@ -25333,7 +25335,7 @@ Point$2.prototype.normalize = function e() {
|
|
|
25333
25335
|
Point$2.prototype.getX = function e() {
|
|
25334
25336
|
return this.normalize(), this.x.fromRed();
|
|
25335
25337
|
};
|
|
25336
|
-
var utils$1j = utils$1o, BN$6 = bnExports$1, inherits$6 =
|
|
25338
|
+
var utils$1j = utils$1o, BN$6 = bnExports$1, inherits$6 = requireInherits_browser(), Base = base$5, assert$n = utils$1j.assert;
|
|
25337
25339
|
function EdwardsCurve(e) {
|
|
25338
25340
|
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;
|
|
25339
25341
|
}
|
|
@@ -25474,7 +25476,7 @@ Point$1.prototype.mixedAdd = Point$1.prototype.add;
|
|
|
25474
25476
|
var Re = e;
|
|
25475
25477
|
Re.base = base$5, Re.short = short, Re.mont = mont, Re.edwards = edwards;
|
|
25476
25478
|
})(curve);
|
|
25477
|
-
var curves$1 = {}, hash$c = {}, utils$1i = {}, assert$m = minimalisticAssert$1, inherits$5 =
|
|
25479
|
+
var curves$1 = {}, hash$c = {}, utils$1i = {}, assert$m = minimalisticAssert$1, inherits$5 = requireInherits_browser();
|
|
25478
25480
|
utils$1i.inherits = inherits$5;
|
|
25479
25481
|
function isSurrogatePair(e, Re) {
|
|
25480
25482
|
return (e.charCodeAt(Re) & 64512) !== 55296 || Re < 0 || Re + 1 >= e.length ? !1 : (e.charCodeAt(Re + 1) & 64512) === 56320;
|
|
@@ -29130,7 +29132,7 @@ function requireReporter() {
|
|
|
29130
29132
|
if (hasRequiredReporter)
|
|
29131
29133
|
return reporter;
|
|
29132
29134
|
hasRequiredReporter = 1;
|
|
29133
|
-
const e =
|
|
29135
|
+
const e = requireInherits_browser();
|
|
29134
29136
|
function Re(Qe) {
|
|
29135
29137
|
this._reporterState = {
|
|
29136
29138
|
obj: null,
|
|
@@ -29196,7 +29198,7 @@ function requireBuffer() {
|
|
|
29196
29198
|
if (hasRequiredBuffer)
|
|
29197
29199
|
return buffer;
|
|
29198
29200
|
hasRequiredBuffer = 1;
|
|
29199
|
-
const e =
|
|
29201
|
+
const e = requireInherits_browser(), Re = requireReporter().Reporter, Fe = requireSafer().Buffer;
|
|
29200
29202
|
function Qe(qe, We) {
|
|
29201
29203
|
if (Re.call(this, We), !Fe.isBuffer(qe)) {
|
|
29202
29204
|
this.error("Input not Buffer");
|
|
@@ -29626,7 +29628,7 @@ function requireDer$1() {
|
|
|
29626
29628
|
if (hasRequiredDer$1)
|
|
29627
29629
|
return der_1$1;
|
|
29628
29630
|
hasRequiredDer$1 = 1;
|
|
29629
|
-
const e =
|
|
29631
|
+
const e = requireInherits_browser(), Re = requireSafer().Buffer, Fe = requireNode(), Qe = requireDer$2();
|
|
29630
29632
|
function Je(dt) {
|
|
29631
29633
|
this.enc = "der", this.name = dt.name, this.entity = dt, this.tree = new qe(), this.tree._init(dt.body);
|
|
29632
29634
|
}
|
|
@@ -29784,7 +29786,7 @@ function requirePem$1() {
|
|
|
29784
29786
|
if (hasRequiredPem$1)
|
|
29785
29787
|
return pem$1;
|
|
29786
29788
|
hasRequiredPem$1 = 1;
|
|
29787
|
-
const e =
|
|
29789
|
+
const e = requireInherits_browser(), Re = requireDer$1();
|
|
29788
29790
|
function Fe(Qe) {
|
|
29789
29791
|
Re.call(this, Qe), this.enc = "pem";
|
|
29790
29792
|
}
|
|
@@ -29808,7 +29810,7 @@ function requireDer() {
|
|
|
29808
29810
|
if (hasRequiredDer)
|
|
29809
29811
|
return der_1;
|
|
29810
29812
|
hasRequiredDer = 1;
|
|
29811
|
-
const e =
|
|
29813
|
+
const e = requireInherits_browser(), Re = requireBn$2(), Fe = requireBuffer().DecoderBuffer, Qe = requireNode(), Je = requireDer$2();
|
|
29812
29814
|
function qe(Ze) {
|
|
29813
29815
|
this.enc = "der", this.name = Ze.name, this.entity = Ze, this.tree = new We(), this.tree._init(Ze.body);
|
|
29814
29816
|
}
|
|
@@ -29983,7 +29985,7 @@ function requirePem() {
|
|
|
29983
29985
|
if (hasRequiredPem)
|
|
29984
29986
|
return pem;
|
|
29985
29987
|
hasRequiredPem = 1;
|
|
29986
|
-
const e =
|
|
29988
|
+
const e = requireInherits_browser(), Re = requireSafer().Buffer, Fe = requireDer();
|
|
29987
29989
|
function Qe(Je) {
|
|
29988
29990
|
Fe.call(this, Je), this.enc = "pem";
|
|
29989
29991
|
}
|
|
@@ -30022,7 +30024,7 @@ function requireDecoders() {
|
|
|
30022
30024
|
var hasRequiredApi;
|
|
30023
30025
|
function requireApi() {
|
|
30024
30026
|
return hasRequiredApi || (hasRequiredApi = 1, function(e) {
|
|
30025
|
-
const Re = requireEncoders(), Fe = requireDecoders(), Qe =
|
|
30027
|
+
const Re = requireEncoders(), Fe = requireDecoders(), Qe = requireInherits_browser(), Je = e;
|
|
30026
30028
|
Je.define = function(Ke, dt) {
|
|
30027
30029
|
return new qe(Ke, dt);
|
|
30028
30030
|
};
|
|
@@ -30511,7 +30513,7 @@ function requireBrowser$3() {
|
|
|
30511
30513
|
if (hasRequiredBrowser$3)
|
|
30512
30514
|
return browser$9;
|
|
30513
30515
|
hasRequiredBrowser$3 = 1;
|
|
30514
|
-
var e = safeBufferExports.Buffer, Re = requireBrowser$9(), Fe = requireReadableBrowser(), Qe =
|
|
30516
|
+
var e = safeBufferExports.Buffer, Re = requireBrowser$9(), Fe = requireReadableBrowser(), Qe = requireInherits_browser(), Je = requireSign(), qe = requireVerify(), We = require$$6$2;
|
|
30515
30517
|
Object.keys(We).forEach(function(Wn) {
|
|
30516
30518
|
We[Wn].id = e.from(We[Wn].id, "hex"), We[Wn.toLowerCase()] = We[Wn];
|
|
30517
30519
|
});
|
|
@@ -70929,7 +70931,7 @@ var isBufferBrowser = function e(Re) {
|
|
|
70929
70931
|
}
|
|
70930
70932
|
e.log = function() {
|
|
70931
70933
|
console.log("%s - %s", gr(), e.format.apply(e, arguments));
|
|
70932
|
-
}, e.inherits =
|
|
70934
|
+
}, e.inherits = requireInherits_browser(), e._extend = function(yr, Ar) {
|
|
70933
70935
|
if (!Ar || !Jn(Ar))
|
|
70934
70936
|
return yr;
|
|
70935
70937
|
for (var Cr = Object.keys(Ar), Er = Cr.length; Er--; )
|
|
@@ -287663,7 +287665,7 @@ const walletConnection = {
|
|
|
287663
287665
|
if (Fe.getNetworkInfo().chainId !== e) {
|
|
287664
287666
|
if (Qe.context === Context.ETH)
|
|
287665
287667
|
try {
|
|
287666
|
-
const { switchChain: qe } = await import("./evm-
|
|
287668
|
+
const { switchChain: qe } = await import("./evm-EK7l4v5F.mjs").then((We) => We.f);
|
|
287667
287669
|
await qe(Fe, e);
|
|
287668
287670
|
} catch (qe) {
|
|
287669
287671
|
if (qe instanceof NotSupported)
|
|
@@ -287671,7 +287673,7 @@ const walletConnection = {
|
|
|
287671
287673
|
throw qe;
|
|
287672
287674
|
}
|
|
287673
287675
|
if (Qe.context === Context.COSMOS) {
|
|
287674
|
-
const { switchChain: qe } = await import("./cosmos-
|
|
287676
|
+
const { switchChain: qe } = await import("./cosmos-MDA8Rp7a.mjs");
|
|
287675
287677
|
await qe(Fe, e);
|
|
287676
287678
|
}
|
|
287677
287679
|
return Fe.getAddress();
|
|
@@ -287680,7 +287682,7 @@ const walletConnection = {
|
|
|
287680
287682
|
const Re = walletConnection[e];
|
|
287681
287683
|
Re && await Re.disconnect();
|
|
287682
287684
|
}, watchAsset = async (e, Re) => {
|
|
287683
|
-
const Fe = walletConnection[Re], { watchAsset: Qe } = await import("./evm-
|
|
287685
|
+
const Fe = walletConnection[Re], { watchAsset: Qe } = await import("./evm-EK7l4v5F.mjs").then((Je) => Je.f);
|
|
287684
287686
|
await Qe(e, Fe);
|
|
287685
287687
|
}, signAndSendTransaction = async (e, Re, Fe, Qe = {}) => {
|
|
287686
287688
|
const Je = config$1.chains[e], qe = walletConnection[Fe];
|
|
@@ -287690,23 +287692,23 @@ const walletConnection = {
|
|
|
287690
287692
|
case Context.ETH:
|
|
287691
287693
|
return Re.transactionHash;
|
|
287692
287694
|
case Context.SOLANA: {
|
|
287693
|
-
const { signAndSendTransaction: We } = await import("./solana-
|
|
287695
|
+
const { signAndSendTransaction: We } = await import("./solana-1K5mHs_m.mjs");
|
|
287694
287696
|
return (await We(Re, qe, Qe)).id;
|
|
287695
287697
|
}
|
|
287696
287698
|
case Context.SUI: {
|
|
287697
|
-
const { signAndSendTransaction: We } = await import("./sui-
|
|
287699
|
+
const { signAndSendTransaction: We } = await import("./sui-Z4KdsJtV.mjs");
|
|
287698
287700
|
return (await We(Re, qe)).id;
|
|
287699
287701
|
}
|
|
287700
287702
|
case Context.APTOS: {
|
|
287701
|
-
const { signAndSendTransaction: We } = await import("./aptos-
|
|
287703
|
+
const { signAndSendTransaction: We } = await import("./aptos-XkxFn0iA.mjs");
|
|
287702
287704
|
return (await We(Re, qe)).id;
|
|
287703
287705
|
}
|
|
287704
287706
|
case Context.SEI: {
|
|
287705
|
-
const { signAndSendTransaction: We } = await import("./sei-
|
|
287707
|
+
const { signAndSendTransaction: We } = await import("./sei-w_LUpthw.mjs");
|
|
287706
287708
|
return (await We(Re, qe)).id;
|
|
287707
287709
|
}
|
|
287708
287710
|
case Context.COSMOS: {
|
|
287709
|
-
const { signAndSendTransaction: We } = await import("./cosmos-
|
|
287711
|
+
const { signAndSendTransaction: We } = await import("./cosmos-MDA8Rp7a.mjs");
|
|
287710
287712
|
return (await We(Re, qe)).id;
|
|
287711
287713
|
}
|
|
287712
287714
|
default:
|
|
@@ -287739,39 +287741,39 @@ const walletConnection = {
|
|
|
287739
287741
|
if (e === void 0)
|
|
287740
287742
|
return [];
|
|
287741
287743
|
if (e.context === Context.ETH) {
|
|
287742
|
-
const { wallets: Re } = await import("./evm-
|
|
287744
|
+
const { wallets: Re } = await import("./evm-EK7l4v5F.mjs").then((Fe) => Fe.f);
|
|
287743
287745
|
return Object.values(mapWallets(Re, Context.ETH));
|
|
287744
287746
|
} else if (e.context === Context.SOLANA) {
|
|
287745
|
-
const { fetchOptions: Re } = await import("./solana-
|
|
287747
|
+
const { fetchOptions: Re } = await import("./solana-1K5mHs_m.mjs"), Fe = Re();
|
|
287746
287748
|
return Object.values(mapWallets(Fe, Context.SOLANA));
|
|
287747
287749
|
} else if (e.context === Context.SUI) {
|
|
287748
|
-
const Fe = await (await import("./sui-
|
|
287750
|
+
const Fe = await (await import("./sui-Z4KdsJtV.mjs")).fetchOptions();
|
|
287749
287751
|
return Object.values(mapWallets(Fe, Context.SUI));
|
|
287750
287752
|
} else if (e.context === Context.APTOS) {
|
|
287751
|
-
const Fe = (await import("./aptos-
|
|
287753
|
+
const Fe = (await import("./aptos-XkxFn0iA.mjs")).fetchOptions();
|
|
287752
287754
|
return Object.values(mapWallets(Fe, Context.APTOS));
|
|
287753
287755
|
} else if (e.context === Context.SEI) {
|
|
287754
|
-
const Fe = await (await import("./sei-
|
|
287756
|
+
const Fe = await (await import("./sei-w_LUpthw.mjs")).fetchOptions();
|
|
287755
287757
|
return Object.values(mapWallets(Fe, Context.SEI));
|
|
287756
287758
|
} else if (e.context === Context.COSMOS)
|
|
287757
287759
|
if (e.id === CHAIN_ID_EVMOS$1) {
|
|
287758
287760
|
const {
|
|
287759
287761
|
wallets: { cosmosEvm: Re }
|
|
287760
|
-
} = await import("./cosmos-
|
|
287762
|
+
} = await import("./cosmos-MDA8Rp7a.mjs");
|
|
287761
287763
|
return Object.values(
|
|
287762
287764
|
mapWallets(Re, Context.COSMOS, ["OKX Wallet"])
|
|
287763
287765
|
);
|
|
287764
287766
|
} else if (e.id === CHAIN_ID_INJECTIVE$1) {
|
|
287765
287767
|
const {
|
|
287766
287768
|
wallets: { cosmosEvm: Re }
|
|
287767
|
-
} = await import("./cosmos-
|
|
287769
|
+
} = await import("./cosmos-MDA8Rp7a.mjs");
|
|
287768
287770
|
return Object.values(
|
|
287769
287771
|
mapWallets(Re, Context.COSMOS, ["OKX Wallet"])
|
|
287770
287772
|
);
|
|
287771
287773
|
} else {
|
|
287772
287774
|
const {
|
|
287773
287775
|
wallets: { cosmos: Re }
|
|
287774
|
-
} = await import("./cosmos-
|
|
287776
|
+
} = await import("./cosmos-MDA8Rp7a.mjs");
|
|
287775
287777
|
return Object.values(mapWallets(Re, Context.COSMOS));
|
|
287776
287778
|
}
|
|
287777
287779
|
return [];
|
|
@@ -312392,25 +312394,25 @@ class NttQuoter {
|
|
|
312392
312394
|
}
|
|
312393
312395
|
}
|
|
312394
312396
|
// calculates the relay cost in lamports
|
|
312395
|
-
async calcRelayCost(Re, Fe = 0) {
|
|
312396
|
-
const [
|
|
312397
|
+
async calcRelayCost(Re, Fe, Qe = 0) {
|
|
312398
|
+
const [Je, qe, We, Ke] = await Promise.all([
|
|
312397
312399
|
this.getRegisteredChain(Re),
|
|
312398
|
-
this.getRegisteredNtt(
|
|
312400
|
+
this.getRegisteredNtt(new PublicKey$4(Fe)),
|
|
312399
312401
|
this.getInstance(),
|
|
312400
312402
|
this.program.provider.connection.getMinimumBalanceForRentExemption(
|
|
312401
312403
|
this.program.account.relayRequest.size
|
|
312402
312404
|
)
|
|
312403
312405
|
]);
|
|
312404
|
-
if (
|
|
312406
|
+
if (Je.nativePriceUsd === 0)
|
|
312405
312407
|
throw new Error("Native price is 0");
|
|
312406
|
-
if (
|
|
312408
|
+
if (We.solPriceUsd === 0)
|
|
312407
312409
|
throw new Error("SOL price is 0");
|
|
312408
|
-
if (
|
|
312410
|
+
if (Qe > Je.maxGasDropoffEth)
|
|
312409
312411
|
throw new Error("Requested gas dropoff exceeds allowed maximum");
|
|
312410
|
-
const
|
|
312411
|
-
return U64.to(
|
|
312412
|
+
const dt = Je.nativePriceUsd * (Qe + Je.gasPriceGwei * qe.gasCost / GWEI_PER_ETH), Ze = Ke / LAMPORTS_PER_SOL + (Je.basePriceUsd + dt) / We.solPriceUsd;
|
|
312413
|
+
return U64.to(Ze * 1.05, LAMPORTS_PER_SOL);
|
|
312412
312414
|
}
|
|
312413
|
-
async createRequestRelayInstruction(Re, Fe, Qe, Je) {
|
|
312415
|
+
async createRequestRelayInstruction(Re, Fe, Qe, Je, qe) {
|
|
312414
312416
|
return this.program.methods.requestRelay({
|
|
312415
312417
|
maxFee: Je,
|
|
312416
312418
|
gasDropoff: new BN$a(0)
|
|
@@ -312418,6 +312420,7 @@ class NttQuoter {
|
|
|
312418
312420
|
payer: Re,
|
|
312419
312421
|
instance: this.instance,
|
|
312420
312422
|
registeredChain: this.registeredChainPda(toChainId$1(Qe)),
|
|
312423
|
+
registeredNtt: this.registeredNttPda(new PublicKey$4(qe)),
|
|
312421
312424
|
outboxItem: Fe,
|
|
312422
312425
|
relayRequest: this.relayRequestPda(Fe),
|
|
312423
312426
|
systemProgram: SystemProgram.programId
|
|
@@ -312720,11 +312723,12 @@ const RATE_LIMIT_DURATION = 24 * 60 * 60, $0 = class $0 {
|
|
|
312720
312723
|
);
|
|
312721
312724
|
if (!cr || !cr.solanaQuoter)
|
|
312722
312725
|
throw new Error("no quoter");
|
|
312723
|
-
const ir = new NttQuoter(cr.solanaQuoter), or = await ir.calcRelayCost(qe), Yn = await ir.createRequestRelayInstruction(
|
|
312726
|
+
const ir = new NttQuoter(cr.solanaQuoter), or = await ir.calcRelayCost(qe, cr.address), Yn = await ir.createRequestRelayInstruction(
|
|
312724
312727
|
ht,
|
|
312725
312728
|
dt.publicKey,
|
|
312726
312729
|
qe,
|
|
312727
|
-
or
|
|
312730
|
+
or,
|
|
312731
|
+
cr.address
|
|
312728
312732
|
);
|
|
312729
312733
|
Xn.add(Yn);
|
|
312730
312734
|
}
|
|
@@ -312738,6 +312742,7 @@ const RATE_LIMIT_DURATION = 24 * 60 * 60, $0 = class $0 {
|
|
|
312738
312742
|
);
|
|
312739
312743
|
}
|
|
312740
312744
|
async receiveMessage(Re, Fe) {
|
|
312745
|
+
await this.checkAbi(Fe);
|
|
312741
312746
|
const Qe = config$1.wh.mustGetContracts("solana").core;
|
|
312742
312747
|
if (!Qe)
|
|
312743
312748
|
throw new Error("Core not found");
|
|
@@ -312833,6 +312838,7 @@ const RATE_LIMIT_DURATION = 24 * 60 * 60, $0 = class $0 {
|
|
|
312833
312838
|
};
|
|
312834
312839
|
}
|
|
312835
312840
|
async completeInboundQueuedTransfer(Re, Fe, Qe) {
|
|
312841
|
+
await this.checkAbi(Qe);
|
|
312836
312842
|
const Je = new PublicKey$4(Qe), qe = {
|
|
312837
312843
|
payer: Je,
|
|
312838
312844
|
messageDigest: Re,
|
|
@@ -313599,7 +313605,10 @@ class NttRelay extends NttBase {
|
|
|
313599
313605
|
if (toChainName(Fe) === "solana") {
|
|
313600
313606
|
if (!dt.solanaQuoter)
|
|
313601
313607
|
throw new Error("no solana quoter");
|
|
313602
|
-
const ht = await new NttQuoter(dt.solanaQuoter).calcRelayCost(
|
|
313608
|
+
const ht = await new NttQuoter(dt.solanaQuoter).calcRelayCost(
|
|
313609
|
+
Qe,
|
|
313610
|
+
dt.address
|
|
313611
|
+
);
|
|
313603
313612
|
return { fee: BigNumber$2.from(ht.toString()), feeToken: "native" };
|
|
313604
313613
|
}
|
|
313605
313614
|
throw new Error("unsupported chain");
|
|
@@ -339597,7 +339606,7 @@ export {
|
|
|
339597
339606
|
jsxRuntimeExports as az,
|
|
339598
339607
|
CHAIN_ID_ETH as b,
|
|
339599
339608
|
requireReadableBrowser as b0,
|
|
339600
|
-
|
|
339609
|
+
requireInherits_browser as b1,
|
|
339601
339610
|
WormholeConnect as b2,
|
|
339602
339611
|
MAINNET as b3,
|
|
339603
339612
|
TESTNET as b4,
|