@moonbeam-network/mrl 4.0.1 → 4.0.3

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@3.0.4_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@3.2.0_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@3.0.4_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@3.2.0_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@3.0.4_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@3.2.0_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@3.0.4_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@3.2.0_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@3.0.4_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@3.2.0_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@3.0.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
7319
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@3.2.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
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@3.0.4_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@3.2.0_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@3.0.4_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@3.2.0_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@3.0.4_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@3.2.0_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@3.0.4_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@3.2.0_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@3.0.4/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/array.js
8642
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.2.0/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@3.0.4/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/mapping.js
8647
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.2.0/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@3.0.4/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/misc.js
8723
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.2.0/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@3.0.4/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/encoding.js
9615
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.2.0/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@3.0.4/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/encoding.js
10002
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.2.0/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@3.0.4/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/chains.js
10098
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.2.0/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)
@@ -10113,7 +10113,6 @@ var chainIdAndChainEntries = [
10113
10113
  [14, "Celo"],
10114
10114
  [15, "Near"],
10115
10115
  [16, "Moonbeam"],
10116
- [17, "Neon"],
10117
10116
  [19, "Injective"],
10118
10117
  [20, "Osmosis"],
10119
10118
  [21, "Sui"],
@@ -10181,7 +10180,7 @@ var toChain2 = (chain2) => {
10181
10180
  throw Error(`Cannot convert to Chain: ${chain2}`);
10182
10181
  };
10183
10182
 
10184
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.0.4/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/platforms.js
10183
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.2.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/platforms.js
10185
10184
  var platformAndChainsEntries = [
10186
10185
  [
10187
10186
  "Evm",
@@ -10195,7 +10194,6 @@ var platformAndChainsEntries = [
10195
10194
  "Fantom",
10196
10195
  "Klaytn",
10197
10196
  "Moonbeam",
10198
- "Neon",
10199
10197
  "Optimism",
10200
10198
  "Polygon",
10201
10199
  "Sepolia",
@@ -10295,7 +10293,7 @@ var platformAddressFormatEntries = [
10295
10293
  ];
10296
10294
  var platformToAddressFormat = constMap(platformAddressFormatEntries);
10297
10295
 
10298
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.0.4/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/tbtc.js
10296
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.2.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/tbtc.js
10299
10297
  var tbtc_exports = {};
10300
10298
  __export(tbtc_exports, {
10301
10299
  tbtcTokens: () => tbtcTokens
@@ -13072,7 +13070,7 @@ function sqrtMod(y) {
13072
13070
  var Fpk1 = Field(secp256k1_CURVE.p, void 0, void 0, { sqrt: sqrtMod });
13073
13071
  var secp256k1 = createCurve({ ...secp256k1_CURVE, Fp: Fpk1, lowS: true, endo: secp256k1_ENDO }, sha256);
13074
13072
 
13075
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/universalAddress.js
13073
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/universalAddress.js
13076
13074
  var algorandAppIdLayout = [
13077
13075
  { name: "appIdPrefix", binary: "bytes", custom: encoding_exports.bytes.encode("appID"), omit: true },
13078
13076
  { name: "appId", binary: "uint", size: 8 }
@@ -13132,7 +13130,7 @@ var UniversalAddress2 = class _UniversalAddress {
13132
13130
  }
13133
13131
  };
13134
13132
 
13135
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/address.js
13133
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/address.js
13136
13134
  function isChainSpecificAddress(thing) {
13137
13135
  return typeof thing === "object" && "setChain" in thing;
13138
13136
  }
@@ -13162,7 +13160,7 @@ function toUniversal(chain2, address) {
13162
13160
  return new UniversalAddress2(address, platformToAddressFormat.get(platform));
13163
13161
  }
13164
13162
 
13165
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/registration.js
13163
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/registration.js
13166
13164
  var composeLiteral = (protocol, payloadName) => protocol ? `${protocol}:${payloadName}` : payloadName;
13167
13165
  var payloadFactory = /* @__PURE__ */ new Map();
13168
13166
  function registerPayloadType(protocol, name, layout) {
@@ -13176,13 +13174,13 @@ function registerPayloadTypes(protocol, payloads) {
13176
13174
  registerPayloadType(protocol, name, layout);
13177
13175
  }
13178
13176
 
13179
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/amount.js
13177
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/amount.js
13180
13178
  var amountItem = {
13181
13179
  binary: "uint",
13182
13180
  size: 32
13183
13181
  };
13184
13182
 
13185
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/chain.js
13183
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/chain.js
13186
13184
  var chainItemBase = { binary: "uint", size: 2 };
13187
13185
  var chainItem = (opts) => ({
13188
13186
  ...chainItemBase,
@@ -13203,7 +13201,7 @@ var chainItem = (opts) => ({
13203
13201
  }
13204
13202
  });
13205
13203
 
13206
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/circle.js
13204
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/circle.js
13207
13205
  var circleDomainItem = {
13208
13206
  binary: "uint",
13209
13207
  size: 4
@@ -13213,19 +13211,19 @@ var circleNonceItem = {
13213
13211
  size: 8
13214
13212
  };
13215
13213
 
13216
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/date.js
13214
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/date.js
13217
13215
  var dateConversion = {
13218
13216
  to: (encoded) => new Date(Number(encoded * 1000n)),
13219
13217
  from: (decoded) => BigInt(decoded.getTime()) / 1000n
13220
13218
  };
13221
13219
 
13222
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/guardianSet.js
13220
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/guardianSet.js
13223
13221
  var guardianSetItem = {
13224
13222
  binary: "uint",
13225
13223
  size: 4
13226
13224
  };
13227
13225
 
13228
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/payloadId.js
13226
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/payloadId.js
13229
13227
  var payloadIdItem = (id2) => ({
13230
13228
  name: "payloadId",
13231
13229
  binary: "uint",
@@ -13234,13 +13232,13 @@ var payloadIdItem = (id2) => ({
13234
13232
  omit: true
13235
13233
  });
13236
13234
 
13237
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/sequence.js
13235
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/sequence.js
13238
13236
  var sequenceItem = {
13239
13237
  binary: "uint",
13240
13238
  size: 8
13241
13239
  };
13242
13240
 
13243
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/signature.js
13241
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/signature.js
13244
13242
  var Signature = class {
13245
13243
  r;
13246
13244
  s;
@@ -13284,7 +13282,7 @@ var SignatureUtils;
13284
13282
  SignatureUtils2.recover = recover;
13285
13283
  })(SignatureUtils || (SignatureUtils = {}));
13286
13284
 
13287
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/signature.js
13285
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/signature.js
13288
13286
  var signatureLayout = [
13289
13287
  { name: "r", binary: "uint", size: 32 },
13290
13288
  { name: "s", binary: "uint", size: 32 },
@@ -13299,7 +13297,7 @@ var signatureItem = {
13299
13297
  }
13300
13298
  };
13301
13299
 
13302
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/universalAddress.js
13300
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/universalAddress.js
13303
13301
  var universalAddressItem = {
13304
13302
  binary: "bytes",
13305
13303
  size: 32,
@@ -13309,7 +13307,7 @@ var universalAddressItem = {
13309
13307
  }
13310
13308
  };
13311
13309
 
13312
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/string.js
13310
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/string.js
13313
13311
  var trimZeros = (arr) => {
13314
13312
  const i = arr.findIndex((x) => x !== 0);
13315
13313
  return -1 < i ? arr.slice(i) : new Uint8Array([]);
@@ -13327,7 +13325,7 @@ var fixedLengthStringItem = (size) => ({
13327
13325
  }
13328
13326
  });
13329
13327
 
13330
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/vaa.js
13328
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/vaa.js
13331
13329
  var guardianSignatureLayout = [
13332
13330
  { name: "guardianIndex", binary: "uint", size: 1 },
13333
13331
  { name: "signature", ...signatureItem }
@@ -13347,7 +13345,7 @@ var envelopeLayout = [
13347
13345
  ];
13348
13346
  var baseLayout = [...headerLayout, ...envelopeLayout];
13349
13347
 
13350
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/functions.js
13348
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/functions.js
13351
13349
  function getPayloadLayout(layoutLiteral) {
13352
13350
  const layout = payloadFactory.get(layoutLiteral);
13353
13351
  if (!layout)
@@ -13372,7 +13370,7 @@ function payloadDiscriminator(payloadLiterals, allowAmbiguous) {
13372
13370
  };
13373
13371
  }
13374
13372
 
13375
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/automaticCircleBridgeLayout.js
13373
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/automaticCircleBridgeLayout.js
13376
13374
  var depositWithPayloadLayout = (customPayload) => [
13377
13375
  payloadIdItem(1),
13378
13376
  {
@@ -13402,7 +13400,7 @@ var automaticCircleBridgeNamedPayloads = [
13402
13400
  ];
13403
13401
  registerPayloadTypes("AutomaticCircleBridge", automaticCircleBridgeNamedPayloads);
13404
13402
 
13405
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridgeLayout.js
13403
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridgeLayout.js
13406
13404
  var messageVersionItem = { binary: "uint", size: 4, custom: 0, omit: true };
13407
13405
  var circleBurnMessageLayout = [
13408
13406
  // messageBodyVersion is:
@@ -13432,7 +13430,7 @@ var circleBridgeNamedPayloads = [
13432
13430
  ];
13433
13431
  registerPayloadTypes("CircleBridge", circleBridgeNamedPayloads);
13434
13432
 
13435
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridge.js
13433
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridge.js
13436
13434
  var CircleBridge;
13437
13435
  (function(CircleBridge2) {
13438
13436
  const _protocol = "CircleBridge";
@@ -13456,7 +13454,7 @@ var AutomaticCircleBridge;
13456
13454
  AutomaticCircleBridge2.getTransferDiscriminator = lazyInstantiate(() => payloadDiscriminator([_protocol, _payloads]));
13457
13455
  })(AutomaticCircleBridge || (AutomaticCircleBridge = {}));
13458
13456
 
13459
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridgeLayout.js
13457
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridgeLayout.js
13460
13458
  var fixedLengthStringItem2 = {
13461
13459
  binary: "bytes",
13462
13460
  size: 32,
@@ -13518,7 +13516,7 @@ var tokenBridgeNamedPayloads = [
13518
13516
  ];
13519
13517
  registerPayloadTypes("TokenBridge", tokenBridgeNamedPayloads);
13520
13518
 
13521
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/porticoLayout.js
13519
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/porticoLayout.js
13522
13520
  var flagsItem = bitsetItem(["shouldWrapNative", "shouldUnwrapNative"]);
13523
13521
  var porticoFlagSetLayout = [
13524
13522
  { name: "recipientChain", binary: "uint", endianness: "little", size: 2 },
@@ -13553,7 +13551,7 @@ var namedPayloads = [
13553
13551
  ];
13554
13552
  registerPayloadTypes("PorticoBridge", namedPayloads);
13555
13553
 
13556
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/portico.js
13554
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/portico.js
13557
13555
  var PorticoBridge;
13558
13556
  (function(PorticoBridge2) {
13559
13557
  const _protocol = "PorticoBridge";
@@ -13573,7 +13571,7 @@ var PorticoBridge;
13573
13571
  };
13574
13572
  })(PorticoBridge || (PorticoBridge = {}));
13575
13573
 
13576
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/relayer/relayerLayout.js
13574
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/relayer/relayerLayout.js
13577
13575
  var encodedExecutionInfoItem = {
13578
13576
  binary: "bytes",
13579
13577
  layout: [
@@ -13640,7 +13638,7 @@ var namedPayloads2 = [
13640
13638
  ];
13641
13639
  registerPayloadTypes("Relayer", namedPayloads2);
13642
13640
 
13643
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/automaticTokenBridgeLayout.js
13641
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/automaticTokenBridgeLayout.js
13644
13642
  var connectPayload = [
13645
13643
  payloadIdItem(1),
13646
13644
  { name: "targetRelayerFee", ...amountItem },
@@ -13652,7 +13650,7 @@ var automaticTokenBridgeNamedPayloads = [
13652
13650
  ];
13653
13651
  registerPayloadTypes("AutomaticTokenBridge", automaticTokenBridgeNamedPayloads);
13654
13652
 
13655
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridge.js
13653
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridge.js
13656
13654
  var TokenBridge;
13657
13655
  (function(TokenBridge2) {
13658
13656
  const _protocol = "TokenBridge";
@@ -13672,21 +13670,21 @@ var ExecutorTokenBridge;
13672
13670
  const _payloads = ["TransferWithExecutorRelay"];
13673
13671
  })(ExecutorTokenBridge || (ExecutorTokenBridge = {}));
13674
13672
 
13675
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/executorTokenBridgeLayout.js
13673
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/executorTokenBridgeLayout.js
13676
13674
  var payload = [{ name: "targetRecipient", ...universalAddressItem }];
13677
13675
  var executorTokenBridgeNamedPayloads = [
13678
13676
  ["TransferWithExecutorRelay", transferWithPayloadLayout(payload)]
13679
13677
  ];
13680
13678
  registerPayloadTypes("ExecutorTokenBridge", executorTokenBridgeNamedPayloads);
13681
13679
 
13682
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/globalAccountant.js
13680
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/globalAccountant.js
13683
13681
  var modificationKinds = [
13684
13682
  ["Add", 1],
13685
13683
  ["Subtract", 2],
13686
13684
  ["Unknown", 3]
13687
13685
  ];
13688
13686
 
13689
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/layout.js
13687
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/layout.js
13690
13688
  var rawEvmAddressItem = {
13691
13689
  binary: "bytes",
13692
13690
  size: 20,
@@ -13948,7 +13946,7 @@ registerPayloadTypes("GeneralPurposeGovernance", generalPurposeGovernancePayload
13948
13946
  registerPayloadTypes("WormchainGovernance", wormchainGovernancePayloads);
13949
13947
  registerPayloadTypes("GatewayGovernance", gatewayGovernancePayloads);
13950
13948
 
13951
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtc.js
13949
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtc.js
13952
13950
  var TBTCBridge;
13953
13951
  (function(TBTCBridge2) {
13954
13952
  const _protocol = "TBTCBridge";
@@ -13966,7 +13964,7 @@ var TBTCBridge;
13966
13964
  };
13967
13965
  })(TBTCBridge || (TBTCBridge = {}));
13968
13966
 
13969
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtcLayout.js
13967
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtcLayout.js
13970
13968
  var tbtcPayloadLayout = [
13971
13969
  { name: "recipient", ...universalAddressItem }
13972
13970
  ];
@@ -13979,7 +13977,7 @@ var namedPayloads3 = [
13979
13977
  ];
13980
13978
  registerPayloadTypes("TBTCBridge", namedPayloads3);
13981
13979
 
13982
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/relayInstruction.js
13980
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/relayInstruction.js
13983
13981
  var gasInstructionLayout = [
13984
13982
  { name: "gasLimit", binary: "uint", size: 16 },
13985
13983
  { name: "msgValue", binary: "uint", size: 16 }
@@ -14008,7 +14006,7 @@ var relayInstructionsLayout = [
14008
14006
  }
14009
14007
  ];
14010
14008
 
14011
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/signedQuote.js
14009
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/signedQuote.js
14012
14010
  var quoteLayout = [
14013
14011
  {
14014
14012
  name: "quote",
@@ -14051,7 +14049,7 @@ var signedQuoteLayout = [
14051
14049
  { name: "signature", binary: "bytes", size: 65 }
14052
14050
  ];
14053
14051
 
14054
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.0.4/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/api.js
14052
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.2.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/api.js
14055
14053
  var RelayStatus;
14056
14054
  (function(RelayStatus2) {
14057
14055
  RelayStatus2["Pending"] = "pending";
@@ -14070,7 +14068,7 @@ var RequestPrefix;
14070
14068
  RequestPrefix2["ERC2"] = "ERC2";
14071
14069
  })(RequestPrefix || (RequestPrefix = {}));
14072
14070
 
14073
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.0.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/executorTokenBridge.js
14071
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.2.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/executorTokenBridge.js
14074
14072
  var RELAYER_ABI = [
14075
14073
  "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)",
14076
14074
  "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)",
@@ -14171,11 +14169,12 @@ var EvmExecutorTokenBridge = class _EvmExecutorTokenBridge {
14171
14169
  let gasLimit;
14172
14170
  switch (receivedToken.chain) {
14173
14171
  case "Arbitrum":
14172
+ case "Bsc":
14174
14173
  case "Moonbeam":
14175
- gasLimit = 800000n;
14174
+ gasLimit = 1000000n;
14176
14175
  break;
14177
14176
  default:
14178
- gasLimit = 425000n;
14177
+ gasLimit = 650000n;
14179
14178
  break;
14180
14179
  }
14181
14180
  return {
@@ -14188,14 +14187,14 @@ var EvmExecutorTokenBridge = class _EvmExecutorTokenBridge {
14188
14187
  }
14189
14188
  };
14190
14189
 
14191
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.0.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/index.js
14190
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.2.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/index.js
14192
14191
  var ethers_contracts_exports2 = {};
14193
14192
  __export(ethers_contracts_exports2, {
14194
14193
  Bridge__factory: () => Bridge__factory,
14195
14194
  TokenBridgeRelayer__factory: () => TokenBridgeRelayer__factory
14196
14195
  });
14197
14196
 
14198
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.0.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
14197
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.2.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
14199
14198
  var _abi2 = [
14200
14199
  {
14201
14200
  anonymous: false,
@@ -15435,7 +15434,7 @@ var Bridge__factory = class extends ContractFactory {
15435
15434
  }
15436
15435
  };
15437
15436
 
15438
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.0.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
15437
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.2.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
15439
15438
  var _abi3 = [
15440
15439
  {
15441
15440
  inputs: [
@@ -16506,7 +16505,7 @@ var TokenBridgeRelayer__factory = class extends ContractFactory {
16506
16505
  }
16507
16506
  };
16508
16507
 
16509
- // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.0.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/index.js
16508
+ // ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.2.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/index.js
16510
16509
  registerProtocol2(_platform2, "TokenBridge", EvmTokenBridge);
16511
16510
  registerProtocol2(_platform2, "AutomaticTokenBridge", EvmAutomaticTokenBridge);
16512
16511
  registerProtocol2(_platform2, "ExecutorTokenBridge", EvmExecutorTokenBridge);