@wormhole-foundation/wormhole-connect 0.3.4-beta.1-development → 0.3.4-beta.3-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-TcYN7x14.js → cosmos-9t5ds48M.js} +1 -1
- 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/evm/getMessage.d.ts +1 -0
- package/dist/src/routes/ntt/chains/evm/getMessage.d.ts.map +1 -1
- package/dist/src/routes/ntt/chains/solana/nttManager.d.ts.map +1 -1
- package/dist/src/views/Bridge/Send.d.ts.map +1 -1
- package/lib/{aptos-YJ42vr_W.js → aptos-A2P3fZwR.js} +1 -1
- package/lib/{aptos-vICYdEEI.mjs → aptos-LzsTT-yE.mjs} +1 -1
- package/lib/{ccip-DygNc1gH.mjs → ccip-EX9Uy7uh.mjs} +3 -3
- package/lib/{ccip-Mv-Y7qQB.js → ccip-MYRIWxwr.js} +1 -1
- package/lib/{cosmos-WJXFYQNK.mjs → cosmos-8BhxGLk5.mjs} +3 -3
- package/lib/{cosmos-cD2komSf.js → cosmos-LAGywRPJ.js} +1 -1
- package/lib/{evm-yjlqBufh.mjs → evm-4xBDvIbh.mjs} +4 -4
- package/lib/{evm-xkdI8pSv.js → evm-rkkBtxAA.js} +3 -3
- package/lib/{index-BuS92LIv.mjs → index-6l7AaQMo.mjs} +68 -68
- package/lib/{index-PiMnvd2A.js → index-DFThg9zD.js} +1 -1
- package/lib/{index-M1p_Eh-u.js → index-DiFBiIsU.js} +9 -9
- package/lib/index-FCAzcpcI.js +3 -0
- package/lib/{index-3M-btPTH.mjs → index-HrOVvUmR.mjs} +1 -1
- package/lib/{index-svQdWcUQ.js → index-IzBi7jkq.js} +1 -1
- package/lib/{index-NdIfNoUC.mjs → index-SXsxLkBQ.mjs} +2 -2
- package/lib/{index-mmUC6z11.mjs → index-TXf-Y_5p.mjs} +158 -145
- package/lib/{index-Ts0hMNcs.js → index-f0MmfW4C.js} +1 -1
- package/lib/{index-HJ7OgT39.mjs → index-oQ6mMVQe.mjs} +3 -3
- package/lib/{index.es-5oDTE27I.mjs → index.es-B2GmSqJ1.mjs} +1 -1
- package/lib/{index.es-lSW75x3B.js → index.es-JGv9-9pp.js} +1 -1
- package/lib/{index.es-m4cVHI1t.js → index.es-dyXbfeDn.js} +1 -1
- package/lib/{index.es-HvEoXVEz.js → index.es-i0PmGTV8.js} +2 -2
- package/lib/{index.es-uwiDXd7k.mjs → index.es-qoSsRT_G.mjs} +4 -4
- package/lib/{index.es-e1jl9j_3.mjs → index.es-wdCYxk2S.mjs} +2 -2
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{libsodium-wrappers-XdwDixWb.mjs → libsodium-wrappers-ffJoUj0j.mjs} +1 -1
- package/lib/{libsodium-wrappers-6sU4RSpm.js → libsodium-wrappers-x1Tf86Kb.js} +1 -1
- package/lib/{sei-VsKceiXM.js → sei-ams4Dv3V.js} +1 -1
- package/lib/{sei-MWqmtPvc.mjs → sei-yioT3-Yb.mjs} +2 -2
- package/lib/{solana-azQ6daZ6.js → solana-2Gb2ijrF.js} +1 -1
- package/lib/{solana-wUE98qtT.mjs → solana-VyhiGF9X.mjs} +3 -3
- package/lib/{solanaEmbed.esm-TKwIiwFm.js → solanaEmbed.esm-AyFAReSD.js} +1 -1
- package/lib/{solanaEmbed.esm-NqE6Wm3_.mjs → solanaEmbed.esm-O2q9SxIk.mjs} +2 -2
- package/lib/src/routes/ntt/chains/evm/getMessage.d.ts +1 -0
- package/lib/src/routes/ntt/chains/evm/getMessage.d.ts.map +1 -1
- package/lib/src/routes/ntt/chains/solana/nttManager.d.ts.map +1 -1
- package/lib/src/views/Bridge/Send.d.ts.map +1 -1
- package/lib/{sui-QltJ7Szu.mjs → sui-8zqO_WMc.mjs} +1 -1
- package/lib/{sui-jKieURbL.js → sui-vAj128v8.js} +1 -1
- package/package.json +1 -1
- package/dist/assets/index-7UgR9Epe.js +0 -3
- package/lib/index-fGNWtA30.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--; )
|
|
@@ -193034,6 +193032,12 @@ class TokenNotRegisteredError extends Error {
|
|
|
193034
193032
|
}
|
|
193035
193033
|
}
|
|
193036
193034
|
TokenNotRegisteredError.MESSAGE = "Token not registered";
|
|
193035
|
+
class InsufficientFundsForGasError extends Error {
|
|
193036
|
+
constructor() {
|
|
193037
|
+
super(InsufficientFundsForGasError.MESSAGE);
|
|
193038
|
+
}
|
|
193039
|
+
}
|
|
193040
|
+
InsufficientFundsForGasError.MESSAGE = "Insufficient funds for gas";
|
|
193037
193041
|
class TokenBridgeAbstract {
|
|
193038
193042
|
/**
|
|
193039
193043
|
* Fetches the address for a token representation on any chain (These are the Wormhole token addresses, not necessarily the cannonical version of that token)
|
|
@@ -287659,7 +287663,7 @@ const walletConnection = {
|
|
|
287659
287663
|
if (Fe.getNetworkInfo().chainId !== e) {
|
|
287660
287664
|
if (Qe.context === Context.ETH)
|
|
287661
287665
|
try {
|
|
287662
|
-
const { switchChain: qe } = await import("./evm-
|
|
287666
|
+
const { switchChain: qe } = await import("./evm-4xBDvIbh.mjs").then((We) => We.f);
|
|
287663
287667
|
await qe(Fe, e);
|
|
287664
287668
|
} catch (qe) {
|
|
287665
287669
|
if (qe instanceof NotSupported)
|
|
@@ -287667,7 +287671,7 @@ const walletConnection = {
|
|
|
287667
287671
|
throw qe;
|
|
287668
287672
|
}
|
|
287669
287673
|
if (Qe.context === Context.COSMOS) {
|
|
287670
|
-
const { switchChain: qe } = await import("./cosmos-
|
|
287674
|
+
const { switchChain: qe } = await import("./cosmos-8BhxGLk5.mjs");
|
|
287671
287675
|
await qe(Fe, e);
|
|
287672
287676
|
}
|
|
287673
287677
|
return Fe.getAddress();
|
|
@@ -287676,7 +287680,7 @@ const walletConnection = {
|
|
|
287676
287680
|
const Re = walletConnection[e];
|
|
287677
287681
|
Re && await Re.disconnect();
|
|
287678
287682
|
}, watchAsset = async (e, Re) => {
|
|
287679
|
-
const Fe = walletConnection[Re], { watchAsset: Qe } = await import("./evm-
|
|
287683
|
+
const Fe = walletConnection[Re], { watchAsset: Qe } = await import("./evm-4xBDvIbh.mjs").then((Je) => Je.f);
|
|
287680
287684
|
await Qe(e, Fe);
|
|
287681
287685
|
}, signAndSendTransaction = async (e, Re, Fe, Qe = {}) => {
|
|
287682
287686
|
const Je = config$1.chains[e], qe = walletConnection[Fe];
|
|
@@ -287686,23 +287690,23 @@ const walletConnection = {
|
|
|
287686
287690
|
case Context.ETH:
|
|
287687
287691
|
return Re.transactionHash;
|
|
287688
287692
|
case Context.SOLANA: {
|
|
287689
|
-
const { signAndSendTransaction: We } = await import("./solana-
|
|
287693
|
+
const { signAndSendTransaction: We } = await import("./solana-VyhiGF9X.mjs");
|
|
287690
287694
|
return (await We(Re, qe, Qe)).id;
|
|
287691
287695
|
}
|
|
287692
287696
|
case Context.SUI: {
|
|
287693
|
-
const { signAndSendTransaction: We } = await import("./sui-
|
|
287697
|
+
const { signAndSendTransaction: We } = await import("./sui-8zqO_WMc.mjs");
|
|
287694
287698
|
return (await We(Re, qe)).id;
|
|
287695
287699
|
}
|
|
287696
287700
|
case Context.APTOS: {
|
|
287697
|
-
const { signAndSendTransaction: We } = await import("./aptos-
|
|
287701
|
+
const { signAndSendTransaction: We } = await import("./aptos-LzsTT-yE.mjs");
|
|
287698
287702
|
return (await We(Re, qe)).id;
|
|
287699
287703
|
}
|
|
287700
287704
|
case Context.SEI: {
|
|
287701
|
-
const { signAndSendTransaction: We } = await import("./sei-
|
|
287705
|
+
const { signAndSendTransaction: We } = await import("./sei-yioT3-Yb.mjs");
|
|
287702
287706
|
return (await We(Re, qe)).id;
|
|
287703
287707
|
}
|
|
287704
287708
|
case Context.COSMOS: {
|
|
287705
|
-
const { signAndSendTransaction: We } = await import("./cosmos-
|
|
287709
|
+
const { signAndSendTransaction: We } = await import("./cosmos-8BhxGLk5.mjs");
|
|
287706
287710
|
return (await We(Re, qe)).id;
|
|
287707
287711
|
}
|
|
287708
287712
|
default:
|
|
@@ -287735,39 +287739,39 @@ const walletConnection = {
|
|
|
287735
287739
|
if (e === void 0)
|
|
287736
287740
|
return [];
|
|
287737
287741
|
if (e.context === Context.ETH) {
|
|
287738
|
-
const { wallets: Re } = await import("./evm-
|
|
287742
|
+
const { wallets: Re } = await import("./evm-4xBDvIbh.mjs").then((Fe) => Fe.f);
|
|
287739
287743
|
return Object.values(mapWallets(Re, Context.ETH));
|
|
287740
287744
|
} else if (e.context === Context.SOLANA) {
|
|
287741
|
-
const { fetchOptions: Re } = await import("./solana-
|
|
287745
|
+
const { fetchOptions: Re } = await import("./solana-VyhiGF9X.mjs"), Fe = Re();
|
|
287742
287746
|
return Object.values(mapWallets(Fe, Context.SOLANA));
|
|
287743
287747
|
} else if (e.context === Context.SUI) {
|
|
287744
|
-
const Fe = await (await import("./sui-
|
|
287748
|
+
const Fe = await (await import("./sui-8zqO_WMc.mjs")).fetchOptions();
|
|
287745
287749
|
return Object.values(mapWallets(Fe, Context.SUI));
|
|
287746
287750
|
} else if (e.context === Context.APTOS) {
|
|
287747
|
-
const Fe = (await import("./aptos-
|
|
287751
|
+
const Fe = (await import("./aptos-LzsTT-yE.mjs")).fetchOptions();
|
|
287748
287752
|
return Object.values(mapWallets(Fe, Context.APTOS));
|
|
287749
287753
|
} else if (e.context === Context.SEI) {
|
|
287750
|
-
const Fe = await (await import("./sei-
|
|
287754
|
+
const Fe = await (await import("./sei-yioT3-Yb.mjs")).fetchOptions();
|
|
287751
287755
|
return Object.values(mapWallets(Fe, Context.SEI));
|
|
287752
287756
|
} else if (e.context === Context.COSMOS)
|
|
287753
287757
|
if (e.id === CHAIN_ID_EVMOS$1) {
|
|
287754
287758
|
const {
|
|
287755
287759
|
wallets: { cosmosEvm: Re }
|
|
287756
|
-
} = await import("./cosmos-
|
|
287760
|
+
} = await import("./cosmos-8BhxGLk5.mjs");
|
|
287757
287761
|
return Object.values(
|
|
287758
287762
|
mapWallets(Re, Context.COSMOS, ["OKX Wallet"])
|
|
287759
287763
|
);
|
|
287760
287764
|
} else if (e.id === CHAIN_ID_INJECTIVE$1) {
|
|
287761
287765
|
const {
|
|
287762
287766
|
wallets: { cosmosEvm: Re }
|
|
287763
|
-
} = await import("./cosmos-
|
|
287767
|
+
} = await import("./cosmos-8BhxGLk5.mjs");
|
|
287764
287768
|
return Object.values(
|
|
287765
287769
|
mapWallets(Re, Context.COSMOS, ["OKX Wallet"])
|
|
287766
287770
|
);
|
|
287767
287771
|
} else {
|
|
287768
287772
|
const {
|
|
287769
287773
|
wallets: { cosmos: Re }
|
|
287770
|
-
} = await import("./cosmos-
|
|
287774
|
+
} = await import("./cosmos-8BhxGLk5.mjs");
|
|
287771
287775
|
return Object.values(mapWallets(Re, Context.COSMOS));
|
|
287772
287776
|
}
|
|
287773
287777
|
return [];
|
|
@@ -303448,93 +303452,100 @@ const isNttToken = (e) => e ? Object.values(config$1.nttGroups).some(
|
|
|
303448
303452
|
const Fe = getNttManagerConfigByGroupKey(e, Re);
|
|
303449
303453
|
if (Fe)
|
|
303450
303454
|
return config$1.tokens[Fe.tokenKey];
|
|
303451
|
-
},
|
|
303455
|
+
}, RELAYING_INFO_IFACE = new Interface([
|
|
303452
303456
|
"event RelayingInfo(uint8 relayingType, bytes32 refundAddress, uint256 deliveryPayment)"
|
|
303453
|
-
]),
|
|
303457
|
+
]), RELAYING_INFO_EVENT_TOPIC = RELAYING_INFO_IFACE.getEventTopic("RelayingInfo"), TRANSFER_SENT_IFACE = new Interface([
|
|
303458
|
+
"event TransferSent(bytes32 recipient, bytes32 refundAddress, uint256 amount, uint256 fee, uint16 recipientChain, uint64 msgSequence)"
|
|
303459
|
+
]), TRANSFER_SENT_EVENT_TOPIC = TRANSFER_SENT_IFACE.getEventTopic("TransferSent"), getMessageEvm = async (e, Re, Fe) => {
|
|
303454
303460
|
const Qe = config$1.wh.mustGetProvider(Re);
|
|
303455
303461
|
if (!Fe && (Fe = await Qe.getTransactionReceipt(e), !Fe))
|
|
303456
303462
|
throw new Error(`No receipt for tx ${e} on ${Re}`);
|
|
303457
|
-
const
|
|
303458
|
-
|
|
303463
|
+
const Je = Fe.logs.find(
|
|
303464
|
+
(dr) => dr.topics[0] === TRANSFER_SENT_EVENT_TOPIC
|
|
303465
|
+
);
|
|
303466
|
+
if (!Je)
|
|
303467
|
+
throw new Error("TransferSent event not found");
|
|
303468
|
+
const qe = Je.address, Ke = await new Contract(
|
|
303469
|
+
qe,
|
|
303459
303470
|
["function token() public view returns (address)"],
|
|
303460
303471
|
Qe
|
|
303461
303472
|
).token();
|
|
303462
|
-
if (!
|
|
303473
|
+
if (!Ke)
|
|
303463
303474
|
throw new Error("No token address");
|
|
303464
|
-
const
|
|
303465
|
-
chain:
|
|
303466
|
-
address:
|
|
303467
|
-
},
|
|
303468
|
-
if (!
|
|
303469
|
-
throw new Error(`Token ${
|
|
303470
|
-
const
|
|
303471
|
-
(
|
|
303475
|
+
const dt = toChainName(Re), Ze = {
|
|
303476
|
+
chain: dt,
|
|
303477
|
+
address: Ke
|
|
303478
|
+
}, ht = getTokenById(Ze);
|
|
303479
|
+
if (!ht || !isNttToken(ht))
|
|
303480
|
+
throw new Error(`Token ${Ze} is not an NTT token`);
|
|
303481
|
+
const Wn = await getWormholeLogEvm(dt, Fe), Dt = Implementation__factory.createInterface().parseLog(Wn), Fn = Fe.logs.find(
|
|
303482
|
+
(dr) => dr.topics[0] === RELAYING_INFO_EVENT_TOPIC
|
|
303472
303483
|
);
|
|
303473
|
-
if (!
|
|
303484
|
+
if (!Fn)
|
|
303474
303485
|
throw new Error("RelayingInfo event not found");
|
|
303475
|
-
const
|
|
303476
|
-
let
|
|
303477
|
-
if (
|
|
303478
|
-
const { type:
|
|
303479
|
-
if (
|
|
303480
|
-
throw new Error(`Unexpected standard relayer payload type ${
|
|
303481
|
-
|
|
303482
|
-
} else if (
|
|
303483
|
-
|
|
303486
|
+
const Un = RELAYING_INFO_IFACE.parseLog(Fn), { relayingType: Hn, deliveryPayment: qn } = Un.args;
|
|
303487
|
+
let Xn;
|
|
303488
|
+
if (Hn === NttRelayingType.Standard) {
|
|
303489
|
+
const { type: dr, parsed: Jn } = parseWormholeLog(Wn);
|
|
303490
|
+
if (dr !== RelayerPayloadId.Delivery)
|
|
303491
|
+
throw new Error(`Unexpected standard relayer payload type ${dr}`);
|
|
303492
|
+
Xn = Jn.payload;
|
|
303493
|
+
} else if (Hn === NttRelayingType.Manual || Hn === NttRelayingType.Special)
|
|
303494
|
+
Xn = dist$8.Buffer.from(Dt.args.payload.slice(2), "hex");
|
|
303484
303495
|
else
|
|
303485
|
-
throw new Error(`Unexpected relaying type ${
|
|
303486
|
-
const
|
|
303496
|
+
throw new Error(`Unexpected relaying type ${Hn}`);
|
|
303497
|
+
const Zn = deserializePayload(
|
|
303487
303498
|
"Ntt:WormholeTransfer",
|
|
303488
|
-
|
|
303489
|
-
),
|
|
303490
|
-
toChainId(
|
|
303491
|
-
),
|
|
303492
|
-
if (!
|
|
303499
|
+
Xn
|
|
303500
|
+
), jn = Zn.nttManagerPayload, cr = toChainName(
|
|
303501
|
+
toChainId(jn.payload.recipientChain)
|
|
303502
|
+
), ir = getNttGroupKeyByAddress(qe, dt);
|
|
303503
|
+
if (!ir)
|
|
303493
303504
|
throw new Error(`No NTT group key for ${Fe.to}`);
|
|
303494
|
-
const
|
|
303495
|
-
|
|
303496
|
-
|
|
303505
|
+
const or = getNttManagerConfigByGroupKey(
|
|
303506
|
+
ir,
|
|
303507
|
+
cr
|
|
303497
303508
|
);
|
|
303498
|
-
if (!
|
|
303509
|
+
if (!or)
|
|
303499
303510
|
throw new Error("Recipient NTT manager not found");
|
|
303500
|
-
const
|
|
303501
|
-
if (!
|
|
303502
|
-
throw new Error(`Received token key not found for ${
|
|
303511
|
+
const Yn = or.tokenKey;
|
|
303512
|
+
if (!Yn)
|
|
303513
|
+
throw new Error(`Received token key not found for ${Ze}`);
|
|
303503
303514
|
return {
|
|
303504
303515
|
sendTx: Fe.transactionHash,
|
|
303505
303516
|
sender: Fe.from,
|
|
303506
|
-
amount:
|
|
303517
|
+
amount: jn.payload.trimmedAmount.amount.toString(),
|
|
303507
303518
|
payloadID: 0,
|
|
303508
303519
|
recipient: config$1.wh.parseAddress(
|
|
303509
|
-
|
|
303510
|
-
|
|
303520
|
+
jn.payload.recipientAddress.toString(),
|
|
303521
|
+
cr
|
|
303511
303522
|
),
|
|
303512
|
-
toChain:
|
|
303513
|
-
fromChain:
|
|
303514
|
-
tokenAddress:
|
|
303515
|
-
tokenChain:
|
|
303516
|
-
tokenId:
|
|
303517
|
-
tokenKey:
|
|
303518
|
-
tokenDecimals:
|
|
303519
|
-
receivedTokenKey:
|
|
303523
|
+
toChain: cr,
|
|
303524
|
+
fromChain: dt,
|
|
303525
|
+
tokenAddress: Ke,
|
|
303526
|
+
tokenChain: ht.nativeChain,
|
|
303527
|
+
tokenId: Ze,
|
|
303528
|
+
tokenKey: ht.key,
|
|
303529
|
+
tokenDecimals: jn.payload.trimmedAmount.decimals,
|
|
303530
|
+
receivedTokenKey: Yn,
|
|
303520
303531
|
emitterAddress: utils$P.hexlify(
|
|
303521
|
-
config$1.wh.formatAddress(
|
|
303532
|
+
config$1.wh.formatAddress(Dt.args.sender, dt)
|
|
303522
303533
|
),
|
|
303523
|
-
sequence:
|
|
303534
|
+
sequence: Dt.args.sequence.toString(),
|
|
303524
303535
|
block: Fe.blockNumber,
|
|
303525
303536
|
gasFee: Fe.gasUsed.mul(Fe.effectiveGasPrice).toString(),
|
|
303526
303537
|
recipientNttManager: config$1.wh.parseAddress(
|
|
303527
|
-
utils$P.hexlify(
|
|
303528
|
-
|
|
303538
|
+
utils$P.hexlify(Zn.recipientNttManager.toString()),
|
|
303539
|
+
cr
|
|
303529
303540
|
),
|
|
303530
303541
|
messageDigest: utils$P.hexlify(
|
|
303531
303542
|
Ntt.messageDigest(
|
|
303532
|
-
toChain(config$1.wh.toChainId(
|
|
303533
|
-
|
|
303543
|
+
toChain(config$1.wh.toChainId(dt)),
|
|
303544
|
+
jn
|
|
303534
303545
|
)
|
|
303535
303546
|
),
|
|
303536
|
-
relayerFee:
|
|
303537
|
-
relayingType:
|
|
303547
|
+
relayerFee: qn.toString(),
|
|
303548
|
+
relayingType: Hn
|
|
303538
303549
|
};
|
|
303539
303550
|
}, _abi$1 = [
|
|
303540
303551
|
{
|
|
@@ -313144,18 +313155,20 @@ const RATE_LIMIT_DURATION = 24 * 60 * 60, $0 = class $0 {
|
|
|
313144
313155
|
}
|
|
313145
313156
|
// View functions
|
|
313146
313157
|
async version(Re) {
|
|
313147
|
-
var
|
|
313148
|
-
|
|
313158
|
+
var Wn;
|
|
313159
|
+
if (await this.connection.getBalance(Re) === 0)
|
|
313160
|
+
throw new InsufficientFundsForGasError();
|
|
313161
|
+
const Qe = await this.program.methods.version().accountsStrict({}).instruction(), Je = await this.connection.getLatestBlockhash(), qe = new TransactionMessage({
|
|
313149
313162
|
payerKey: Re,
|
|
313150
|
-
recentBlockhash:
|
|
313151
|
-
instructions: [
|
|
313152
|
-
}).compileToV0Message(),
|
|
313163
|
+
recentBlockhash: Je.blockhash,
|
|
313164
|
+
instructions: [Qe]
|
|
313165
|
+
}).compileToV0Message(), We = new VersionedTransaction(qe), dt = (Wn = (await this.connection.simulateTransaction(We, {
|
|
313153
313166
|
sigVerify: !1
|
|
313154
|
-
})).value.returnData) == null ? void 0 :
|
|
313155
|
-
if (!
|
|
313167
|
+
})).value.returnData) == null ? void 0 : Wn.data[0];
|
|
313168
|
+
if (!dt)
|
|
313156
313169
|
throw new Error("No version() return data");
|
|
313157
|
-
const
|
|
313158
|
-
return
|
|
313170
|
+
const Ze = dist$8.Buffer.from(dt, "base64"), ht = Ze.readUInt32LE(0);
|
|
313171
|
+
return Ze.slice(4, ht + 4).toString();
|
|
313159
313172
|
}
|
|
313160
313173
|
/**
|
|
313161
313174
|
* Returns the address of the custody account. If the config is available
|
|
@@ -313258,7 +313271,7 @@ const getMessageSolana = async (e) => {
|
|
|
313258
313271
|
tokenChain: qn.nativeChain,
|
|
313259
313272
|
tokenId: Hn,
|
|
313260
313273
|
tokenKey: qn.key,
|
|
313261
|
-
tokenDecimals:
|
|
313274
|
+
tokenDecimals: Dt.payload.trimmedAmount.decimals,
|
|
313262
313275
|
receivedTokenKey: jn,
|
|
313263
313276
|
emitterAddress: utils$P.hexlify(
|
|
313264
313277
|
Re.formatAddress(ht.message.emitterAddress)
|
|
@@ -313714,7 +313727,7 @@ class Operator {
|
|
|
313714
313727
|
);
|
|
313715
313728
|
if (Un)
|
|
313716
313729
|
return Un.topics[3].substring(26).toLowerCase() === ((Ze = (dt = (Ke = config$1.wh.getContracts(Fe)) == null ? void 0 : Ke.cctpContracts) == null ? void 0 : dt.wormholeCCTP) == null ? void 0 : Ze.substring(2).toLowerCase()) ? Route.CCTPRelay : Route.CCTPManual;
|
|
313717
|
-
if (
|
|
313730
|
+
if (Fn.logs.some((Hn) => Hn.topics[0] === TRANSFER_SENT_EVENT_TOPIC)) {
|
|
313718
313731
|
const { relayingType: Hn } = await getMessageEvm(Re, Fe, Fn);
|
|
313719
313732
|
return Hn === NttRelayingType.Manual ? Route.NttManual : Route.NttRelay;
|
|
313720
313733
|
}
|
|
@@ -334084,7 +334097,7 @@ function Send(e) {
|
|
|
334084
334097
|
Fe(setIsTransactionInProgress(!1)), Fe(setSendTx(Ar)), Fe(setTxDetails(Cr)), Fe(setRoute$1(Wn)), Fe(setRoute("redeem")), fr("");
|
|
334085
334098
|
} catch (vr) {
|
|
334086
334099
|
console.error(vr), Fe(setIsTransactionInProgress(!1)), fr(
|
|
334087
|
-
(vr == null ? void 0 : vr.message) === INSUFFICIENT_ALLOWANCE ? "Error due to insufficient token allowance, please try again" : (vr == null ? void 0 : vr.message) === SWAP_ERROR ? SWAP_ERROR : (vr == null ? void 0 : vr.message) === NotEnoughCapacityError.MESSAGE ? `This transfer would be rate-limited due to high volume on ${(_r = config$1.chains[Qe.fromChain]) == null ? void 0 : _r.displayName}, please try again later` : (vr == null ? void 0 : vr.message) === ContractIsPausedError.MESSAGE || (vr == null ? void 0 : vr.message) === DestinationContractIsPausedError.MESSAGE ? vr.message : (vr == null ? void 0 : vr.message) === UnsupportedContractAbiVersion.MESSAGE ? "Unsupported contract ABI version" : "Error with transfer, please try again"
|
|
334100
|
+
(vr == null ? void 0 : vr.message) === INSUFFICIENT_ALLOWANCE ? "Error due to insufficient token allowance, please try again" : (vr == null ? void 0 : vr.message) === SWAP_ERROR ? SWAP_ERROR : (vr == null ? void 0 : vr.message) === NotEnoughCapacityError.MESSAGE ? `This transfer would be rate-limited due to high volume on ${(_r = config$1.chains[Qe.fromChain]) == null ? void 0 : _r.displayName}, please try again later` : (vr == null ? void 0 : vr.message) === ContractIsPausedError.MESSAGE || (vr == null ? void 0 : vr.message) === DestinationContractIsPausedError.MESSAGE ? vr.message : (vr == null ? void 0 : vr.message) === UnsupportedContractAbiVersion.MESSAGE ? "Unsupported contract ABI version" : (vr == null ? void 0 : vr.message) === InsufficientFundsForGasError.MESSAGE ? InsufficientFundsForGasError.MESSAGE : "Error with transfer, please try again"
|
|
334088
334101
|
);
|
|
334089
334102
|
}
|
|
334090
334103
|
}
|
|
@@ -339584,7 +339597,7 @@ export {
|
|
|
339584
339597
|
jsxRuntimeExports as az,
|
|
339585
339598
|
CHAIN_ID_ETH as b,
|
|
339586
339599
|
requireReadableBrowser as b0,
|
|
339587
|
-
|
|
339600
|
+
inherits_browserExports as b1,
|
|
339588
339601
|
WormholeConnect as b2,
|
|
339589
339602
|
MAINNET as b3,
|
|
339590
339603
|
TESTNET as b4,
|