@moonbeam-network/mrl 4.2.3 → 4.2.4

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.7.1_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.4_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.7.1_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.4_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.7.1_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.4_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.7.1_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.4_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.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
153
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.7.4_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.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
7319
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.7.4_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.7.1_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.4_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.7.1_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.4_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.7.1_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.4_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.7.1_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.4_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.7.1/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/array.js
8642
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.4/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.7.1/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/mapping.js
8647
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.4/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.7.1/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/misc.js
8723
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.4/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.7.1/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/encoding.js
9615
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.4/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.7.1/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/encoding.js
10002
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.4/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.7.1/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/chains.js
10098
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.4/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)
@@ -10162,6 +10162,7 @@ var chainIdAndChainEntries = [
10162
10162
  [10005, "OptimismSepolia"],
10163
10163
  [10006, "Holesky"],
10164
10164
  [10007, "PolygonSepolia"],
10165
+ [10009, "MonadTestnet"],
10165
10166
  // guardians are not connected to HyperCore; this is an arbitrary number chosen by Mayan
10166
10167
  [65e3, "HyperCore"]
10167
10168
  ];
@@ -10188,7 +10189,7 @@ var toChain2 = (chain2) => {
10188
10189
  throw Error(`Cannot convert to Chain: ${chain2}`);
10189
10190
  };
10190
10191
 
10191
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.1/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/platforms.js
10192
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.4/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/platforms.js
10192
10193
  var platformAndChainsEntries = [
10193
10194
  [
10194
10195
  "Evm",
@@ -10231,7 +10232,8 @@ var platformAndChainsEntries = [
10231
10232
  "HyperCore",
10232
10233
  // not an actual EVM platform; treating as EVM
10233
10234
  "Moca",
10234
- "MegaETH"
10235
+ "MegaETH",
10236
+ "MonadTestnet"
10235
10237
  ]
10236
10238
  ],
10237
10239
  [
@@ -10315,7 +10317,7 @@ var platformAddressFormatEntries = [
10315
10317
  ];
10316
10318
  var platformToAddressFormat = constMap(platformAddressFormatEntries);
10317
10319
 
10318
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.1/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/tbtc.js
10320
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.7.4/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/tbtc.js
10319
10321
  var tbtc_exports = {};
10320
10322
  __export(tbtc_exports, {
10321
10323
  tbtcTokens: () => tbtcTokens
@@ -13137,7 +13139,7 @@ function sqrtMod(y) {
13137
13139
  var Fpk1 = Field(secp256k1_CURVE.p, { sqrt: sqrtMod });
13138
13140
  var secp256k1 = createCurve({ ...secp256k1_CURVE, Fp: Fpk1, lowS: true, endo: secp256k1_ENDO }, sha256);
13139
13141
 
13140
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/universalAddress.js
13142
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/universalAddress.js
13141
13143
  var algorandAppIdLayout = [
13142
13144
  { name: "appIdPrefix", binary: "bytes", custom: encoding_exports.bytes.encode("appID"), omit: true },
13143
13145
  { name: "appId", binary: "uint", size: 8 }
@@ -13201,7 +13203,7 @@ var UniversalAddress2 = class _UniversalAddress {
13201
13203
  }
13202
13204
  };
13203
13205
 
13204
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/address.js
13206
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/address.js
13205
13207
  function isChainSpecificAddress(thing) {
13206
13208
  return typeof thing === "object" && "setChain" in thing;
13207
13209
  }
@@ -13231,7 +13233,7 @@ function toUniversal(chain2, address) {
13231
13233
  return new UniversalAddress2(address, platformToAddressFormat.get(platform));
13232
13234
  }
13233
13235
 
13234
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/registration.js
13236
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/registration.js
13235
13237
  var composeLiteral = (protocol, payloadName) => protocol ? `${protocol}:${payloadName}` : payloadName;
13236
13238
  var payloadFactory = /* @__PURE__ */ new Map();
13237
13239
  function registerPayloadType(protocol, name, layout) {
@@ -13245,13 +13247,13 @@ function registerPayloadTypes(protocol, payloads) {
13245
13247
  registerPayloadType(protocol, name, layout);
13246
13248
  }
13247
13249
 
13248
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/amount.js
13250
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/amount.js
13249
13251
  var amountItem = {
13250
13252
  binary: "uint",
13251
13253
  size: 32
13252
13254
  };
13253
13255
 
13254
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/chain.js
13256
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/chain.js
13255
13257
  var chainItemBase = { binary: "uint", size: 2 };
13256
13258
  var chainItem = (opts) => ({
13257
13259
  ...chainItemBase,
@@ -13272,7 +13274,7 @@ var chainItem = (opts) => ({
13272
13274
  }
13273
13275
  });
13274
13276
 
13275
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/circle.js
13277
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/circle.js
13276
13278
  var circleDomainItem = {
13277
13279
  binary: "uint",
13278
13280
  size: 4
@@ -13282,19 +13284,19 @@ var circleNonceItem = {
13282
13284
  size: 8
13283
13285
  };
13284
13286
 
13285
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/date.js
13287
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/date.js
13286
13288
  var dateConversion = {
13287
13289
  to: (encoded) => new Date(Number(encoded * 1000n)),
13288
13290
  from: (decoded) => BigInt(decoded.getTime()) / 1000n
13289
13291
  };
13290
13292
 
13291
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/guardianSet.js
13293
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/guardianSet.js
13292
13294
  var guardianSetItem = {
13293
13295
  binary: "uint",
13294
13296
  size: 4
13295
13297
  };
13296
13298
 
13297
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/payloadId.js
13299
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/payloadId.js
13298
13300
  var payloadIdItem = (id2) => ({
13299
13301
  name: "payloadId",
13300
13302
  binary: "uint",
@@ -13303,13 +13305,13 @@ var payloadIdItem = (id2) => ({
13303
13305
  omit: true
13304
13306
  });
13305
13307
 
13306
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/sequence.js
13308
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/sequence.js
13307
13309
  var sequenceItem = {
13308
13310
  binary: "uint",
13309
13311
  size: 8
13310
13312
  };
13311
13313
 
13312
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/signature.js
13314
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/signature.js
13313
13315
  var Signature = class {
13314
13316
  r;
13315
13317
  s;
@@ -13353,7 +13355,7 @@ var SignatureUtils;
13353
13355
  SignatureUtils2.recover = recover;
13354
13356
  })(SignatureUtils || (SignatureUtils = {}));
13355
13357
 
13356
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/signature.js
13358
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/signature.js
13357
13359
  var signatureLayout = [
13358
13360
  { name: "r", binary: "uint", size: 32 },
13359
13361
  { name: "s", binary: "uint", size: 32 },
@@ -13368,7 +13370,7 @@ var signatureItem = {
13368
13370
  }
13369
13371
  };
13370
13372
 
13371
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/universalAddress.js
13373
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/universalAddress.js
13372
13374
  var universalAddressItem = {
13373
13375
  binary: "bytes",
13374
13376
  size: 32,
@@ -13378,7 +13380,7 @@ var universalAddressItem = {
13378
13380
  }
13379
13381
  };
13380
13382
 
13381
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/string.js
13383
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/string.js
13382
13384
  var trimZeros = (arr) => {
13383
13385
  const i = arr.findIndex((x) => x !== 0);
13384
13386
  return -1 < i ? arr.slice(i) : new Uint8Array([]);
@@ -13396,7 +13398,7 @@ var fixedLengthStringItem = (size) => ({
13396
13398
  }
13397
13399
  });
13398
13400
 
13399
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/vaa.js
13401
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/vaa.js
13400
13402
  var guardianSignatureLayout = [
13401
13403
  { name: "guardianIndex", binary: "uint", size: 1 },
13402
13404
  { name: "signature", ...signatureItem }
@@ -13416,7 +13418,7 @@ var envelopeLayout = [
13416
13418
  ];
13417
13419
  var baseLayout = [...headerLayout, ...envelopeLayout];
13418
13420
 
13419
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/functions.js
13421
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/functions.js
13420
13422
  function getPayloadLayout(layoutLiteral) {
13421
13423
  const layout = payloadFactory.get(layoutLiteral);
13422
13424
  if (!layout)
@@ -13441,7 +13443,7 @@ function payloadDiscriminator(payloadLiterals, allowAmbiguous) {
13441
13443
  });
13442
13444
  }
13443
13445
 
13444
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/automaticCircleBridgeLayout.js
13446
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/automaticCircleBridgeLayout.js
13445
13447
  var depositWithPayloadLayout = (customPayload) => [
13446
13448
  payloadIdItem(1),
13447
13449
  {
@@ -13471,7 +13473,7 @@ var automaticCircleBridgeNamedPayloads = [
13471
13473
  ];
13472
13474
  registerPayloadTypes("AutomaticCircleBridge", automaticCircleBridgeNamedPayloads);
13473
13475
 
13474
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridgeLayout.js
13476
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridgeLayout.js
13475
13477
  var messageVersionItem = { binary: "uint", size: 4, custom: 0, omit: true };
13476
13478
  var circleBurnMessageLayout = [
13477
13479
  // messageBodyVersion is:
@@ -13501,7 +13503,7 @@ var circleBridgeNamedPayloads = [
13501
13503
  ];
13502
13504
  registerPayloadTypes("CircleBridge", circleBridgeNamedPayloads);
13503
13505
 
13504
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridge.js
13506
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridge.js
13505
13507
  var CircleBridge;
13506
13508
  (function(CircleBridge2) {
13507
13509
  const _protocol = "CircleBridge";
@@ -13525,7 +13527,7 @@ var AutomaticCircleBridge;
13525
13527
  AutomaticCircleBridge2.getTransferDiscriminator = lazyInstantiate(() => payloadDiscriminator([_protocol, _payloads]));
13526
13528
  })(AutomaticCircleBridge || (AutomaticCircleBridge = {}));
13527
13529
 
13528
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridgeLayout.js
13530
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridgeLayout.js
13529
13531
  var fixedLengthStringItem2 = {
13530
13532
  binary: "bytes",
13531
13533
  size: 32,
@@ -13587,7 +13589,7 @@ var tokenBridgeNamedPayloads = [
13587
13589
  ];
13588
13590
  registerPayloadTypes("TokenBridge", tokenBridgeNamedPayloads);
13589
13591
 
13590
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/porticoLayout.js
13592
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/porticoLayout.js
13591
13593
  var flagsItem = bitsetItem(["shouldWrapNative", "shouldUnwrapNative"]);
13592
13594
  var porticoFlagSetLayout = [
13593
13595
  { name: "recipientChain", binary: "uint", endianness: "little", size: 2 },
@@ -13622,7 +13624,7 @@ var namedPayloads = [
13622
13624
  ];
13623
13625
  registerPayloadTypes("PorticoBridge", namedPayloads);
13624
13626
 
13625
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/portico.js
13627
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/portico.js
13626
13628
  var PorticoBridge;
13627
13629
  (function(PorticoBridge2) {
13628
13630
  const _protocol = "PorticoBridge";
@@ -13642,7 +13644,7 @@ var PorticoBridge;
13642
13644
  };
13643
13645
  })(PorticoBridge || (PorticoBridge = {}));
13644
13646
 
13645
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/relayer/relayerLayout.js
13647
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/relayer/relayerLayout.js
13646
13648
  var encodedExecutionInfoItem = {
13647
13649
  binary: "bytes",
13648
13650
  layout: [
@@ -13709,7 +13711,7 @@ var namedPayloads2 = [
13709
13711
  ];
13710
13712
  registerPayloadTypes("Relayer", namedPayloads2);
13711
13713
 
13712
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/automaticTokenBridgeLayout.js
13714
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/automaticTokenBridgeLayout.js
13713
13715
  var connectPayload = [
13714
13716
  payloadIdItem(1),
13715
13717
  { name: "targetRelayerFee", ...amountItem },
@@ -13721,7 +13723,7 @@ var automaticTokenBridgeNamedPayloads = [
13721
13723
  ];
13722
13724
  registerPayloadTypes("AutomaticTokenBridge", automaticTokenBridgeNamedPayloads);
13723
13725
 
13724
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridge.js
13726
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridge.js
13725
13727
  var TokenBridge;
13726
13728
  (function(TokenBridge2) {
13727
13729
  const _protocol = "TokenBridge";
@@ -13741,21 +13743,21 @@ var ExecutorTokenBridge;
13741
13743
  const _payloads = ["TransferWithExecutorRelay"];
13742
13744
  })(ExecutorTokenBridge || (ExecutorTokenBridge = {}));
13743
13745
 
13744
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/executorTokenBridgeLayout.js
13746
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/executorTokenBridgeLayout.js
13745
13747
  var payload = [{ name: "targetRecipient", ...universalAddressItem }];
13746
13748
  var executorTokenBridgeNamedPayloads = [
13747
13749
  ["TransferWithExecutorRelay", transferWithPayloadLayout(payload)]
13748
13750
  ];
13749
13751
  registerPayloadTypes("ExecutorTokenBridge", executorTokenBridgeNamedPayloads);
13750
13752
 
13751
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/globalAccountant.js
13753
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/globalAccountant.js
13752
13754
  var modificationKinds = [
13753
13755
  ["Add", 1],
13754
13756
  ["Subtract", 2],
13755
13757
  ["Unknown", 3]
13756
13758
  ];
13757
13759
 
13758
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/layout.js
13760
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/layout.js
13759
13761
  var rawEvmAddressItem = {
13760
13762
  binary: "bytes",
13761
13763
  size: 20,
@@ -14017,7 +14019,7 @@ registerPayloadTypes("GeneralPurposeGovernance", generalPurposeGovernancePayload
14017
14019
  registerPayloadTypes("WormchainGovernance", wormchainGovernancePayloads);
14018
14020
  registerPayloadTypes("GatewayGovernance", gatewayGovernancePayloads);
14019
14021
 
14020
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtc.js
14022
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtc.js
14021
14023
  var TBTCBridge;
14022
14024
  (function(TBTCBridge2) {
14023
14025
  const _protocol = "TBTCBridge";
@@ -14035,7 +14037,7 @@ var TBTCBridge;
14035
14037
  };
14036
14038
  })(TBTCBridge || (TBTCBridge = {}));
14037
14039
 
14038
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtcLayout.js
14040
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtcLayout.js
14039
14041
  var tbtcPayloadLayout = [
14040
14042
  { name: "recipient", ...universalAddressItem }
14041
14043
  ];
@@ -14048,7 +14050,7 @@ var namedPayloads3 = [
14048
14050
  ];
14049
14051
  registerPayloadTypes("TBTCBridge", namedPayloads3);
14050
14052
 
14051
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/relayInstruction.js
14053
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/relayInstruction.js
14052
14054
  var gasInstructionLayout = [
14053
14055
  { name: "gasLimit", binary: "uint", size: 16 },
14054
14056
  { name: "msgValue", binary: "uint", size: 16 }
@@ -14086,7 +14088,7 @@ var relayInstructionsLayout = [
14086
14088
  }
14087
14089
  ];
14088
14090
 
14089
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/signedQuote.js
14091
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/signedQuote.js
14090
14092
  var quoteLayout = [
14091
14093
  {
14092
14094
  name: "quote",
@@ -14129,7 +14131,7 @@ var signedQuoteLayout = [
14129
14131
  { name: "signature", binary: "bytes", size: 65 }
14130
14132
  ];
14131
14133
 
14132
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.1/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/api.js
14134
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.7.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/api.js
14133
14135
  var RelayStatus;
14134
14136
  (function(RelayStatus2) {
14135
14137
  RelayStatus2["Pending"] = "pending";
@@ -14148,7 +14150,7 @@ var RequestPrefix;
14148
14150
  RequestPrefix2["ERC2"] = "ERC2";
14149
14151
  })(RequestPrefix || (RequestPrefix = {}));
14150
14152
 
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
14153
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.7.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/executorTokenBridge.js
14152
14154
  var RELAYER_ABI = [
14153
14155
  "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
14156
  "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)",
@@ -14269,14 +14271,14 @@ var EvmExecutorTokenBridge = class _EvmExecutorTokenBridge {
14269
14271
  }
14270
14272
  };
14271
14273
 
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
14274
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.7.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/index.js
14273
14275
  var ethers_contracts_exports2 = {};
14274
14276
  __export(ethers_contracts_exports2, {
14275
14277
  Bridge__factory: () => Bridge__factory,
14276
14278
  TokenBridgeRelayer__factory: () => TokenBridgeRelayer__factory
14277
14279
  });
14278
14280
 
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
14281
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.7.4_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
14280
14282
  var _abi2 = [
14281
14283
  {
14282
14284
  anonymous: false,
@@ -15516,7 +15518,7 @@ var Bridge__factory = class extends ContractFactory {
15516
15518
  }
15517
15519
  };
15518
15520
 
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
15521
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.7.4_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
15520
15522
  var _abi3 = [
15521
15523
  {
15522
15524
  inputs: [
@@ -16587,7 +16589,7 @@ var TokenBridgeRelayer__factory = class extends ContractFactory {
16587
16589
  }
16588
16590
  };
16589
16591
 
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
16592
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.7.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/index.js
16591
16593
  registerProtocol2(_platform2, "TokenBridge", EvmTokenBridge);
16592
16594
  registerProtocol2(_platform2, "AutomaticTokenBridge", EvmAutomaticTokenBridge);
16593
16595
  registerProtocol2(_platform2, "ExecutorTokenBridge", EvmExecutorTokenBridge);