@moonbeam-network/mrl 4.2.0 → 4.2.2

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/build/index.mjs CHANGED
@@ -21,19 +21,19 @@ import {
21
21
  wormholeFactory
22
22
  } from "@moonbeam-network/xcm-builder";
23
23
 
24
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/index.js
24
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.7.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/index.js
25
25
  import { registerProtocol as registerProtocol2 } from "@wormhole-foundation/sdk-connect";
26
26
  import { _platform as _platform2 } from "@wormhole-foundation/sdk-evm";
27
27
 
28
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/tokenBridge.js
28
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.7.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/tokenBridge.js
29
29
  import { ErrNotWrapped, UniversalAddress, isNative, keccak256 as keccak2562, nativeChainIds as nativeChainIds2, serialize as serialize2, toChain, toChainId, toNative } from "@wormhole-foundation/sdk-connect";
30
30
  import { EvmAddress as EvmAddress2, EvmPlatform as EvmPlatform2, EvmUnsignedTransaction as EvmUnsignedTransaction2, EvmZeroAddress, addChainId as addChainId2, addFrom as addFrom2, unusedArbiterFee, unusedNonce, WETH_CONTRACTS } from "@wormhole-foundation/sdk-evm";
31
31
 
32
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-core/dist/esm/index.js
32
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.7.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-core/dist/esm/index.js
33
33
  import { registerProtocol } from "@wormhole-foundation/sdk-connect";
34
34
  import { _platform } from "@wormhole-foundation/sdk-evm";
35
35
 
36
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-core/dist/esm/core.js
36
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.7.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-core/dist/esm/core.js
37
37
  import { nativeChainIds, createVAA, isWormholeMessageId, encoding, serialize } from "@wormhole-foundation/sdk-connect";
38
38
  import { EvmAddress, EvmPlatform, EvmUnsignedTransaction, addChainId, addFrom } from "@wormhole-foundation/sdk-evm";
39
39
  var EvmWormholeCore = class _EvmWormholeCore {
@@ -150,7 +150,7 @@ var EvmWormholeCore = class _EvmWormholeCore {
150
150
  }
151
151
  };
152
152
 
153
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-core/dist/esm/ethers-contracts/index.js
153
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.7.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-core/dist/esm/ethers-contracts/index.js
154
154
  var ethers_contracts_exports = {};
155
155
  __export(ethers_contracts_exports, {
156
156
  Implementation__factory: () => Implementation__factory
@@ -7316,7 +7316,7 @@ var ContractFactory = class _ContractFactory {
7316
7316
  }
7317
7317
  };
7318
7318
 
7319
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-core/dist/esm/ethers-contracts/factories/Implementation__factory.js
7319
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.7.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-core/dist/esm/ethers-contracts/factories/Implementation__factory.js
7320
7320
  var _abi = [
7321
7321
  {
7322
7322
  anonymous: false,
@@ -8386,10 +8386,10 @@ var Implementation__factory = class extends ContractFactory {
8386
8386
  }
8387
8387
  };
8388
8388
 
8389
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-core/dist/esm/index.js
8389
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.7.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-core/dist/esm/index.js
8390
8390
  registerProtocol(_platform, "WormholeCore", EvmWormholeCore);
8391
8391
 
8392
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/tokenBridge.js
8392
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.7.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/tokenBridge.js
8393
8393
  var EvmTokenBridge = class _EvmTokenBridge {
8394
8394
  network;
8395
8395
  chain;
@@ -8527,7 +8527,7 @@ var EvmTokenBridge = class _EvmTokenBridge {
8527
8527
  }
8528
8528
  };
8529
8529
 
8530
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/automaticTokenBridge.js
8530
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.7.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/automaticTokenBridge.js
8531
8531
  import { isNative as isNative2, serialize as serialize3, toNative as toNative2, nativeChainIds as nativeChainIds3, toChainId as toChainId2 } from "@wormhole-foundation/sdk-connect";
8532
8532
  import { EvmAddress as EvmAddress3, EvmPlatform as EvmPlatform3, EvmUnsignedTransaction as EvmUnsignedTransaction3, WETH_CONTRACTS as WETH_CONTRACTS2, addChainId as addChainId3, addFrom as addFrom3 } from "@wormhole-foundation/sdk-evm";
8533
8533
  var EvmAutomaticTokenBridge = class _EvmAutomaticTokenBridge {
@@ -8635,16 +8635,16 @@ var EvmAutomaticTokenBridge = class _EvmAutomaticTokenBridge {
8635
8635
  }
8636
8636
  };
8637
8637
 
8638
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/executorTokenBridge.js
8638
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.7.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/executorTokenBridge.js
8639
8639
  import { nativeChainIds as nativeChainIds4, toChainId as toChainId3, signedQuoteLayout as signedQuoteLayout2, isNative as isNative4, serializeLayout, serialize as serialize5, contracts } from "@wormhole-foundation/sdk-connect";
8640
8640
  import { EvmAddress as EvmAddress4, EvmPlatform as EvmPlatform4, EvmUnsignedTransaction as EvmUnsignedTransaction4, addChainId as addChainId4, addFrom as addFrom4 } from "@wormhole-foundation/sdk-evm";
8641
8641
 
8642
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.6.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/array.js
8642
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.1/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/array.js
8643
8643
  var range = (length) => [...Array(length).keys()];
8644
8644
  var column = (tupArr, index) => tupArr.map((tuple) => tuple[index]);
8645
8645
  var zip = (arr) => range(arr[0].length).map((col) => range(arr.length).map((row) => arr[row][col]));
8646
8646
 
8647
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.6.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/mapping.js
8647
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.1/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/mapping.js
8648
8648
  function isMappableKey(key) {
8649
8649
  return ["string", "number", "symbol", "bigint", "boolean"].includes(typeof key);
8650
8650
  }
@@ -8720,7 +8720,7 @@ function constMap(mappingEntries, shape) {
8720
8720
  return toConstMap(toMapping(mappingEntries, shape));
8721
8721
  }
8722
8722
 
8723
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.6.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/misc.js
8723
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.1/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/misc.js
8724
8724
  function lazyInstantiate(factory) {
8725
8725
  let instance = null;
8726
8726
  return () => {
@@ -9612,7 +9612,7 @@ function bitsetItem(bitnames, size) {
9612
9612
  };
9613
9613
  }
9614
9614
 
9615
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.6.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/encoding.js
9615
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.1/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/encoding.js
9616
9616
  var encoding_exports = {};
9617
9617
  __export(encoding_exports, {
9618
9618
  b58: () => b58,
@@ -9999,7 +9999,7 @@ function genBech32(encoding2) {
9999
9999
  }
10000
10000
  var bech32 = /* @__PURE__ */ genBech32("bech32");
10001
10001
 
10002
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.6.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/encoding.js
10002
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.1/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/encoding.js
10003
10003
  var stripPrefix = (prefix, str) => str.startsWith(prefix) ? str.slice(prefix.length) : str;
10004
10004
  var isHexRegex = /^(?:0x)?[0-9a-fA-F]+$/;
10005
10005
  var hex = {
@@ -10095,7 +10095,7 @@ var bytes2 = {
10095
10095
  }
10096
10096
  };
10097
10097
 
10098
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.6.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/chains.js
10098
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.1/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/chains.js
10099
10099
  var chainIdAndChainEntries = [
10100
10100
  //Unlike the old sdk, we are not including an "Unset" chain with chainId 0 here because:
10101
10101
  // * no other types would be associated with it (such as contracts or a platform)
@@ -10188,7 +10188,7 @@ var toChain2 = (chain2) => {
10188
10188
  throw Error(`Cannot convert to Chain: ${chain2}`);
10189
10189
  };
10190
10190
 
10191
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.6.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/platforms.js
10191
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.1/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/platforms.js
10192
10192
  var platformAndChainsEntries = [
10193
10193
  [
10194
10194
  "Evm",
@@ -10315,7 +10315,7 @@ var platformAddressFormatEntries = [
10315
10315
  ];
10316
10316
  var platformToAddressFormat = constMap(platformAddressFormatEntries);
10317
10317
 
10318
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.6.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/tbtc.js
10318
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.1/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/tbtc.js
10319
10319
  var tbtc_exports = {};
10320
10320
  __export(tbtc_exports, {
10321
10321
  tbtcTokens: () => tbtcTokens
@@ -13137,7 +13137,7 @@ function sqrtMod(y) {
13137
13137
  var Fpk1 = Field(secp256k1_CURVE.p, { sqrt: sqrtMod });
13138
13138
  var secp256k1 = createCurve({ ...secp256k1_CURVE, Fp: Fpk1, lowS: true, endo: secp256k1_ENDO }, sha256);
13139
13139
 
13140
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/universalAddress.js
13140
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/universalAddress.js
13141
13141
  var algorandAppIdLayout = [
13142
13142
  { name: "appIdPrefix", binary: "bytes", custom: encoding_exports.bytes.encode("appID"), omit: true },
13143
13143
  { name: "appId", binary: "uint", size: 8 }
@@ -13201,7 +13201,7 @@ var UniversalAddress2 = class _UniversalAddress {
13201
13201
  }
13202
13202
  };
13203
13203
 
13204
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/address.js
13204
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/address.js
13205
13205
  function isChainSpecificAddress(thing) {
13206
13206
  return typeof thing === "object" && "setChain" in thing;
13207
13207
  }
@@ -13231,7 +13231,7 @@ function toUniversal(chain2, address) {
13231
13231
  return new UniversalAddress2(address, platformToAddressFormat.get(platform));
13232
13232
  }
13233
13233
 
13234
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/registration.js
13234
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/registration.js
13235
13235
  var composeLiteral = (protocol, payloadName) => protocol ? `${protocol}:${payloadName}` : payloadName;
13236
13236
  var payloadFactory = /* @__PURE__ */ new Map();
13237
13237
  function registerPayloadType(protocol, name, layout) {
@@ -13245,13 +13245,13 @@ function registerPayloadTypes(protocol, payloads) {
13245
13245
  registerPayloadType(protocol, name, layout);
13246
13246
  }
13247
13247
 
13248
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/amount.js
13248
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/amount.js
13249
13249
  var amountItem = {
13250
13250
  binary: "uint",
13251
13251
  size: 32
13252
13252
  };
13253
13253
 
13254
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/chain.js
13254
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/chain.js
13255
13255
  var chainItemBase = { binary: "uint", size: 2 };
13256
13256
  var chainItem = (opts) => ({
13257
13257
  ...chainItemBase,
@@ -13272,7 +13272,7 @@ var chainItem = (opts) => ({
13272
13272
  }
13273
13273
  });
13274
13274
 
13275
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/circle.js
13275
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/circle.js
13276
13276
  var circleDomainItem = {
13277
13277
  binary: "uint",
13278
13278
  size: 4
@@ -13282,19 +13282,19 @@ var circleNonceItem = {
13282
13282
  size: 8
13283
13283
  };
13284
13284
 
13285
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/date.js
13285
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/date.js
13286
13286
  var dateConversion = {
13287
13287
  to: (encoded) => new Date(Number(encoded * 1000n)),
13288
13288
  from: (decoded) => BigInt(decoded.getTime()) / 1000n
13289
13289
  };
13290
13290
 
13291
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/guardianSet.js
13291
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/guardianSet.js
13292
13292
  var guardianSetItem = {
13293
13293
  binary: "uint",
13294
13294
  size: 4
13295
13295
  };
13296
13296
 
13297
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/payloadId.js
13297
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/payloadId.js
13298
13298
  var payloadIdItem = (id2) => ({
13299
13299
  name: "payloadId",
13300
13300
  binary: "uint",
@@ -13303,13 +13303,13 @@ var payloadIdItem = (id2) => ({
13303
13303
  omit: true
13304
13304
  });
13305
13305
 
13306
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/sequence.js
13306
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/sequence.js
13307
13307
  var sequenceItem = {
13308
13308
  binary: "uint",
13309
13309
  size: 8
13310
13310
  };
13311
13311
 
13312
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/signature.js
13312
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/signature.js
13313
13313
  var Signature = class {
13314
13314
  r;
13315
13315
  s;
@@ -13353,7 +13353,7 @@ var SignatureUtils;
13353
13353
  SignatureUtils2.recover = recover;
13354
13354
  })(SignatureUtils || (SignatureUtils = {}));
13355
13355
 
13356
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/signature.js
13356
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/signature.js
13357
13357
  var signatureLayout = [
13358
13358
  { name: "r", binary: "uint", size: 32 },
13359
13359
  { name: "s", binary: "uint", size: 32 },
@@ -13368,7 +13368,7 @@ var signatureItem = {
13368
13368
  }
13369
13369
  };
13370
13370
 
13371
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/universalAddress.js
13371
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/universalAddress.js
13372
13372
  var universalAddressItem = {
13373
13373
  binary: "bytes",
13374
13374
  size: 32,
@@ -13378,7 +13378,7 @@ var universalAddressItem = {
13378
13378
  }
13379
13379
  };
13380
13380
 
13381
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/string.js
13381
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/string.js
13382
13382
  var trimZeros = (arr) => {
13383
13383
  const i = arr.findIndex((x) => x !== 0);
13384
13384
  return -1 < i ? arr.slice(i) : new Uint8Array([]);
@@ -13396,7 +13396,7 @@ var fixedLengthStringItem = (size) => ({
13396
13396
  }
13397
13397
  });
13398
13398
 
13399
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/vaa.js
13399
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/vaa.js
13400
13400
  var guardianSignatureLayout = [
13401
13401
  { name: "guardianIndex", binary: "uint", size: 1 },
13402
13402
  { name: "signature", ...signatureItem }
@@ -13416,7 +13416,7 @@ var envelopeLayout = [
13416
13416
  ];
13417
13417
  var baseLayout = [...headerLayout, ...envelopeLayout];
13418
13418
 
13419
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/functions.js
13419
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/functions.js
13420
13420
  function getPayloadLayout(layoutLiteral) {
13421
13421
  const layout = payloadFactory.get(layoutLiteral);
13422
13422
  if (!layout)
@@ -13441,7 +13441,7 @@ function payloadDiscriminator(payloadLiterals, allowAmbiguous) {
13441
13441
  });
13442
13442
  }
13443
13443
 
13444
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/automaticCircleBridgeLayout.js
13444
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/automaticCircleBridgeLayout.js
13445
13445
  var depositWithPayloadLayout = (customPayload) => [
13446
13446
  payloadIdItem(1),
13447
13447
  {
@@ -13471,7 +13471,7 @@ var automaticCircleBridgeNamedPayloads = [
13471
13471
  ];
13472
13472
  registerPayloadTypes("AutomaticCircleBridge", automaticCircleBridgeNamedPayloads);
13473
13473
 
13474
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridgeLayout.js
13474
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridgeLayout.js
13475
13475
  var messageVersionItem = { binary: "uint", size: 4, custom: 0, omit: true };
13476
13476
  var circleBurnMessageLayout = [
13477
13477
  // messageBodyVersion is:
@@ -13501,7 +13501,7 @@ var circleBridgeNamedPayloads = [
13501
13501
  ];
13502
13502
  registerPayloadTypes("CircleBridge", circleBridgeNamedPayloads);
13503
13503
 
13504
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridge.js
13504
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridge.js
13505
13505
  var CircleBridge;
13506
13506
  (function(CircleBridge2) {
13507
13507
  const _protocol = "CircleBridge";
@@ -13525,7 +13525,7 @@ var AutomaticCircleBridge;
13525
13525
  AutomaticCircleBridge2.getTransferDiscriminator = lazyInstantiate(() => payloadDiscriminator([_protocol, _payloads]));
13526
13526
  })(AutomaticCircleBridge || (AutomaticCircleBridge = {}));
13527
13527
 
13528
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridgeLayout.js
13528
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridgeLayout.js
13529
13529
  var fixedLengthStringItem2 = {
13530
13530
  binary: "bytes",
13531
13531
  size: 32,
@@ -13587,7 +13587,7 @@ var tokenBridgeNamedPayloads = [
13587
13587
  ];
13588
13588
  registerPayloadTypes("TokenBridge", tokenBridgeNamedPayloads);
13589
13589
 
13590
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/porticoLayout.js
13590
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/porticoLayout.js
13591
13591
  var flagsItem = bitsetItem(["shouldWrapNative", "shouldUnwrapNative"]);
13592
13592
  var porticoFlagSetLayout = [
13593
13593
  { name: "recipientChain", binary: "uint", endianness: "little", size: 2 },
@@ -13622,7 +13622,7 @@ var namedPayloads = [
13622
13622
  ];
13623
13623
  registerPayloadTypes("PorticoBridge", namedPayloads);
13624
13624
 
13625
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/portico.js
13625
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/portico.js
13626
13626
  var PorticoBridge;
13627
13627
  (function(PorticoBridge2) {
13628
13628
  const _protocol = "PorticoBridge";
@@ -13642,7 +13642,7 @@ var PorticoBridge;
13642
13642
  };
13643
13643
  })(PorticoBridge || (PorticoBridge = {}));
13644
13644
 
13645
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/relayer/relayerLayout.js
13645
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/relayer/relayerLayout.js
13646
13646
  var encodedExecutionInfoItem = {
13647
13647
  binary: "bytes",
13648
13648
  layout: [
@@ -13709,7 +13709,7 @@ var namedPayloads2 = [
13709
13709
  ];
13710
13710
  registerPayloadTypes("Relayer", namedPayloads2);
13711
13711
 
13712
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/automaticTokenBridgeLayout.js
13712
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/automaticTokenBridgeLayout.js
13713
13713
  var connectPayload = [
13714
13714
  payloadIdItem(1),
13715
13715
  { name: "targetRelayerFee", ...amountItem },
@@ -13721,7 +13721,7 @@ var automaticTokenBridgeNamedPayloads = [
13721
13721
  ];
13722
13722
  registerPayloadTypes("AutomaticTokenBridge", automaticTokenBridgeNamedPayloads);
13723
13723
 
13724
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridge.js
13724
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridge.js
13725
13725
  var TokenBridge;
13726
13726
  (function(TokenBridge2) {
13727
13727
  const _protocol = "TokenBridge";
@@ -13741,21 +13741,21 @@ var ExecutorTokenBridge;
13741
13741
  const _payloads = ["TransferWithExecutorRelay"];
13742
13742
  })(ExecutorTokenBridge || (ExecutorTokenBridge = {}));
13743
13743
 
13744
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/executorTokenBridgeLayout.js
13744
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/executorTokenBridgeLayout.js
13745
13745
  var payload = [{ name: "targetRecipient", ...universalAddressItem }];
13746
13746
  var executorTokenBridgeNamedPayloads = [
13747
13747
  ["TransferWithExecutorRelay", transferWithPayloadLayout(payload)]
13748
13748
  ];
13749
13749
  registerPayloadTypes("ExecutorTokenBridge", executorTokenBridgeNamedPayloads);
13750
13750
 
13751
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/globalAccountant.js
13751
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/globalAccountant.js
13752
13752
  var modificationKinds = [
13753
13753
  ["Add", 1],
13754
13754
  ["Subtract", 2],
13755
13755
  ["Unknown", 3]
13756
13756
  ];
13757
13757
 
13758
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/layout.js
13758
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/layout.js
13759
13759
  var rawEvmAddressItem = {
13760
13760
  binary: "bytes",
13761
13761
  size: 20,
@@ -14017,7 +14017,7 @@ registerPayloadTypes("GeneralPurposeGovernance", generalPurposeGovernancePayload
14017
14017
  registerPayloadTypes("WormchainGovernance", wormchainGovernancePayloads);
14018
14018
  registerPayloadTypes("GatewayGovernance", gatewayGovernancePayloads);
14019
14019
 
14020
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtc.js
14020
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtc.js
14021
14021
  var TBTCBridge;
14022
14022
  (function(TBTCBridge2) {
14023
14023
  const _protocol = "TBTCBridge";
@@ -14035,7 +14035,7 @@ var TBTCBridge;
14035
14035
  };
14036
14036
  })(TBTCBridge || (TBTCBridge = {}));
14037
14037
 
14038
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtcLayout.js
14038
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtcLayout.js
14039
14039
  var tbtcPayloadLayout = [
14040
14040
  { name: "recipient", ...universalAddressItem }
14041
14041
  ];
@@ -14048,7 +14048,7 @@ var namedPayloads3 = [
14048
14048
  ];
14049
14049
  registerPayloadTypes("TBTCBridge", namedPayloads3);
14050
14050
 
14051
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/relayInstruction.js
14051
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/relayInstruction.js
14052
14052
  var gasInstructionLayout = [
14053
14053
  { name: "gasLimit", binary: "uint", size: 16 },
14054
14054
  { name: "msgValue", binary: "uint", size: 16 }
@@ -14086,7 +14086,7 @@ var relayInstructionsLayout = [
14086
14086
  }
14087
14087
  ];
14088
14088
 
14089
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/signedQuote.js
14089
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/signedQuote.js
14090
14090
  var quoteLayout = [
14091
14091
  {
14092
14092
  name: "quote",
@@ -14129,7 +14129,7 @@ var signedQuoteLayout = [
14129
14129
  { name: "signature", binary: "bytes", size: 65 }
14130
14130
  ];
14131
14131
 
14132
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/api.js
14132
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/api.js
14133
14133
  var RelayStatus;
14134
14134
  (function(RelayStatus2) {
14135
14135
  RelayStatus2["Pending"] = "pending";
@@ -14148,7 +14148,7 @@ var RequestPrefix;
14148
14148
  RequestPrefix2["ERC2"] = "ERC2";
14149
14149
  })(RequestPrefix || (RequestPrefix = {}));
14150
14150
 
14151
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/executorTokenBridge.js
14151
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.7.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/executorTokenBridge.js
14152
14152
  var RELAYER_ABI = [
14153
14153
  "function transferTokensWithRelay(address token, uint256 amount, uint16 targetChain, bytes32 targetRecipient, uint32 nonce, bytes32 dstTransferRecipient, bytes32 dstExecutionAddress, uint256 executionAmount, address refundAddr, bytes calldata signedQuoteBytes, bytes calldata relayInstructions) payable returns (uint64)",
14154
14154
  "function wrapAndTransferEthWithRelay(uint16 targetChain, bytes32 targetRecipient, uint32 nonce, bytes32 dstTransferRecipient, bytes32 dstExecutionAddress, uint256 executionAmount, address refundAddr, bytes calldata signedQuoteBytes, bytes calldata relayInstructions) payable returns (uint64)",
@@ -14250,6 +14250,7 @@ var EvmExecutorTokenBridge = class _EvmExecutorTokenBridge {
14250
14250
  switch (receivedToken.chain) {
14251
14251
  case "Arbitrum":
14252
14252
  case "Bsc":
14253
+ case "MegaETH":
14253
14254
  case "Monad":
14254
14255
  case "Moonbeam":
14255
14256
  gasLimit = 1000000n;
@@ -14268,14 +14269,14 @@ var EvmExecutorTokenBridge = class _EvmExecutorTokenBridge {
14268
14269
  }
14269
14270
  };
14270
14271
 
14271
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/index.js
14272
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.7.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/index.js
14272
14273
  var ethers_contracts_exports2 = {};
14273
14274
  __export(ethers_contracts_exports2, {
14274
14275
  Bridge__factory: () => Bridge__factory,
14275
14276
  TokenBridgeRelayer__factory: () => TokenBridgeRelayer__factory
14276
14277
  });
14277
14278
 
14278
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/factories/Bridge__factory.js
14279
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.7.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/factories/Bridge__factory.js
14279
14280
  var _abi2 = [
14280
14281
  {
14281
14282
  anonymous: false,
@@ -15515,7 +15516,7 @@ var Bridge__factory = class extends ContractFactory {
15515
15516
  }
15516
15517
  };
15517
15518
 
15518
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/factories/TokenBridgeRelayer__factory.js
15519
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.7.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/factories/TokenBridgeRelayer__factory.js
15519
15520
  var _abi3 = [
15520
15521
  {
15521
15522
  inputs: [
@@ -16586,7 +16587,7 @@ var TokenBridgeRelayer__factory = class extends ContractFactory {
16586
16587
  }
16587
16588
  };
16588
16589
 
16589
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/index.js
16590
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.7.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/index.js
16590
16591
  registerProtocol2(_platform2, "TokenBridge", EvmTokenBridge);
16591
16592
  registerProtocol2(_platform2, "AutomaticTokenBridge", EvmAutomaticTokenBridge);
16592
16593
  registerProtocol2(_platform2, "ExecutorTokenBridge", EvmExecutorTokenBridge);
@@ -17621,7 +17622,7 @@ async function getExtraFees({
17621
17622
  chain: chain2
17622
17623
  }) : void 0;
17623
17624
  const localFee = protocolFee && protocolFeeBalance ? { fee: protocolFee, balance: protocolFeeBalance } : void 0;
17624
- const remoteFee = relayerFee ? { fee: relayerFee, balance: feeAsset } : void 0;
17625
+ const remoteFee = relayerFee ? { fee: relayerFee, balance: asset } : void 0;
17625
17626
  return {
17626
17627
  local: localFee,
17627
17628
  remote: remoteFee