@moonbeam-network/mrl 4.3.2 → 4.3.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 +56 -56
- package/build/index.mjs.map +1 -1
- package/package.json +14 -14
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.
|
|
24
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.15.0_bufferutil@4.1.0_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.
|
|
28
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.15.0_bufferutil@4.1.0_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.
|
|
32
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.15.0_bufferutil@4.1.0_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.
|
|
36
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.15.0_bufferutil@4.1.0_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.
|
|
153
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.15.0_bufferutil@4.1.0_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
|
|
@@ -7334,7 +7334,7 @@ var ContractFactory = class _ContractFactory {
|
|
|
7334
7334
|
}
|
|
7335
7335
|
};
|
|
7336
7336
|
|
|
7337
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.
|
|
7337
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.15.0_bufferutil@4.1.0_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-core/dist/esm/ethers-contracts/factories/Implementation__factory.js
|
|
7338
7338
|
var _abi = [
|
|
7339
7339
|
{
|
|
7340
7340
|
anonymous: false,
|
|
@@ -8404,10 +8404,10 @@ var Implementation__factory = class extends ContractFactory {
|
|
|
8404
8404
|
}
|
|
8405
8405
|
};
|
|
8406
8406
|
|
|
8407
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.
|
|
8407
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.15.0_bufferutil@4.1.0_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-core/dist/esm/index.js
|
|
8408
8408
|
registerProtocol(_platform, "WormholeCore", EvmWormholeCore);
|
|
8409
8409
|
|
|
8410
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.
|
|
8410
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.15.0_bufferutil@4.1.0_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/tokenBridge.js
|
|
8411
8411
|
var EvmTokenBridge = class _EvmTokenBridge {
|
|
8412
8412
|
network;
|
|
8413
8413
|
chain;
|
|
@@ -8545,7 +8545,7 @@ var EvmTokenBridge = class _EvmTokenBridge {
|
|
|
8545
8545
|
}
|
|
8546
8546
|
};
|
|
8547
8547
|
|
|
8548
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.
|
|
8548
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.15.0_bufferutil@4.1.0_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/automaticTokenBridge.js
|
|
8549
8549
|
import { isNative as isNative2, serialize as serialize3, toNative as toNative2, nativeChainIds as nativeChainIds3, toChainId as toChainId2 } from "@wormhole-foundation/sdk-connect";
|
|
8550
8550
|
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";
|
|
8551
8551
|
var EvmAutomaticTokenBridge = class _EvmAutomaticTokenBridge {
|
|
@@ -8653,16 +8653,16 @@ var EvmAutomaticTokenBridge = class _EvmAutomaticTokenBridge {
|
|
|
8653
8653
|
}
|
|
8654
8654
|
};
|
|
8655
8655
|
|
|
8656
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.
|
|
8656
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.15.0_bufferutil@4.1.0_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/executorTokenBridge.js
|
|
8657
8657
|
import { nativeChainIds as nativeChainIds4, toChainId as toChainId3, signedQuoteLayout as signedQuoteLayout2, isNative as isNative4, serializeLayout, serialize as serialize5, contracts, getExecutorTokenBridgeDestinationAddresses } from "@wormhole-foundation/sdk-connect";
|
|
8658
8658
|
import { EvmAddress as EvmAddress4, EvmPlatform as EvmPlatform4, EvmUnsignedTransaction as EvmUnsignedTransaction4, addChainId as addChainId4, addFrom as addFrom4 } from "@wormhole-foundation/sdk-evm";
|
|
8659
8659
|
|
|
8660
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.
|
|
8660
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.15.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/array.js
|
|
8661
8661
|
var range = (length) => [...Array(length).keys()];
|
|
8662
8662
|
var column = (tupArr, index) => tupArr.map((tuple) => tuple[index]);
|
|
8663
8663
|
var zip = (arr) => range(arr[0].length).map((col) => range(arr.length).map((row) => arr[row][col]));
|
|
8664
8664
|
|
|
8665
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.
|
|
8665
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.15.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/mapping.js
|
|
8666
8666
|
function isMappableKey(key) {
|
|
8667
8667
|
return ["string", "number", "symbol", "bigint", "boolean"].includes(typeof key);
|
|
8668
8668
|
}
|
|
@@ -8738,7 +8738,7 @@ function constMap(mappingEntries, shape) {
|
|
|
8738
8738
|
return toConstMap(toMapping(mappingEntries, shape));
|
|
8739
8739
|
}
|
|
8740
8740
|
|
|
8741
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.
|
|
8741
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.15.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/misc.js
|
|
8742
8742
|
function lazyInstantiate(factory) {
|
|
8743
8743
|
let instance = null;
|
|
8744
8744
|
return () => {
|
|
@@ -9630,7 +9630,7 @@ function bitsetItem(bitnames, size) {
|
|
|
9630
9630
|
};
|
|
9631
9631
|
}
|
|
9632
9632
|
|
|
9633
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.
|
|
9633
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.15.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/encoding.js
|
|
9634
9634
|
var encoding_exports = {};
|
|
9635
9635
|
__export(encoding_exports, {
|
|
9636
9636
|
b58: () => b58,
|
|
@@ -10017,7 +10017,7 @@ function genBech32(encoding2) {
|
|
|
10017
10017
|
}
|
|
10018
10018
|
var bech32 = /* @__PURE__ */ genBech32("bech32");
|
|
10019
10019
|
|
|
10020
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.
|
|
10020
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.15.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/encoding.js
|
|
10021
10021
|
var stripPrefix = (prefix, str) => str.startsWith(prefix) ? str.slice(prefix.length) : str;
|
|
10022
10022
|
var isHexRegex = /^(?:0x)?[0-9a-fA-F]+$/;
|
|
10023
10023
|
var hex = {
|
|
@@ -10113,7 +10113,7 @@ var bytes2 = {
|
|
|
10113
10113
|
}
|
|
10114
10114
|
};
|
|
10115
10115
|
|
|
10116
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.
|
|
10116
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.15.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/chains.js
|
|
10117
10117
|
var chainIdAndChainEntries = [
|
|
10118
10118
|
//Unlike the old sdk, we are not including an "Unset" chain with chainId 0 here because:
|
|
10119
10119
|
// * no other types would be associated with it (such as contracts or a platform)
|
|
@@ -10209,7 +10209,7 @@ var toChain2 = (chain2) => {
|
|
|
10209
10209
|
throw Error(`Cannot convert to Chain: ${chain2}`);
|
|
10210
10210
|
};
|
|
10211
10211
|
|
|
10212
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.
|
|
10212
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.15.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/platforms.js
|
|
10213
10213
|
var platformAndChainsEntries = [
|
|
10214
10214
|
[
|
|
10215
10215
|
"Evm",
|
|
@@ -10345,7 +10345,7 @@ var platformAddressFormatEntries = [
|
|
|
10345
10345
|
];
|
|
10346
10346
|
var platformToAddressFormat = constMap(platformAddressFormatEntries);
|
|
10347
10347
|
|
|
10348
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.
|
|
10348
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.15.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/tbtc.js
|
|
10349
10349
|
var tbtc_exports = {};
|
|
10350
10350
|
__export(tbtc_exports, {
|
|
10351
10351
|
tbtcTokens: () => tbtcTokens
|
|
@@ -13167,7 +13167,7 @@ function sqrtMod(y) {
|
|
|
13167
13167
|
var Fpk1 = Field(secp256k1_CURVE.p, { sqrt: sqrtMod });
|
|
13168
13168
|
var secp256k1 = createCurve({ ...secp256k1_CURVE, Fp: Fpk1, lowS: true, endo: secp256k1_ENDO }, sha256);
|
|
13169
13169
|
|
|
13170
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13170
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/universalAddress.js
|
|
13171
13171
|
var algorandAppIdLayout = [
|
|
13172
13172
|
{ name: "appIdPrefix", binary: "bytes", custom: encoding_exports.bytes.encode("appID"), omit: true },
|
|
13173
13173
|
{ name: "appId", binary: "uint", size: 8 }
|
|
@@ -13231,7 +13231,7 @@ var UniversalAddress2 = class _UniversalAddress {
|
|
|
13231
13231
|
}
|
|
13232
13232
|
};
|
|
13233
13233
|
|
|
13234
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13234
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/address.js
|
|
13235
13235
|
function isChainSpecificAddress(thing) {
|
|
13236
13236
|
return typeof thing === "object" && "setChain" in thing;
|
|
13237
13237
|
}
|
|
@@ -13261,7 +13261,7 @@ function toUniversal(chain2, address) {
|
|
|
13261
13261
|
return new UniversalAddress2(address, platformToAddressFormat.get(platform));
|
|
13262
13262
|
}
|
|
13263
13263
|
|
|
13264
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13264
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/registration.js
|
|
13265
13265
|
var composeLiteral = (protocol, payloadName) => protocol ? `${protocol}:${payloadName}` : payloadName;
|
|
13266
13266
|
var payloadFactory = /* @__PURE__ */ new Map();
|
|
13267
13267
|
function registerPayloadType(protocol, name, layout) {
|
|
@@ -13275,13 +13275,13 @@ function registerPayloadTypes(protocol, payloads) {
|
|
|
13275
13275
|
registerPayloadType(protocol, name, layout);
|
|
13276
13276
|
}
|
|
13277
13277
|
|
|
13278
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13278
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/amount.js
|
|
13279
13279
|
var amountItem = {
|
|
13280
13280
|
binary: "uint",
|
|
13281
13281
|
size: 32
|
|
13282
13282
|
};
|
|
13283
13283
|
|
|
13284
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13284
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/chain.js
|
|
13285
13285
|
var chainItemBase = { binary: "uint", size: 2 };
|
|
13286
13286
|
var chainItem = (opts) => ({
|
|
13287
13287
|
...chainItemBase,
|
|
@@ -13302,7 +13302,7 @@ var chainItem = (opts) => ({
|
|
|
13302
13302
|
}
|
|
13303
13303
|
});
|
|
13304
13304
|
|
|
13305
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13305
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/circle.js
|
|
13306
13306
|
var circleDomainItem = {
|
|
13307
13307
|
binary: "uint",
|
|
13308
13308
|
size: 4
|
|
@@ -13312,19 +13312,19 @@ var circleNonceItem = {
|
|
|
13312
13312
|
size: 8
|
|
13313
13313
|
};
|
|
13314
13314
|
|
|
13315
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13315
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/date.js
|
|
13316
13316
|
var dateConversion = {
|
|
13317
13317
|
to: (encoded) => new Date(Number(encoded * 1000n)),
|
|
13318
13318
|
from: (decoded) => BigInt(decoded.getTime()) / 1000n
|
|
13319
13319
|
};
|
|
13320
13320
|
|
|
13321
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13321
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/guardianSet.js
|
|
13322
13322
|
var guardianSetItem = {
|
|
13323
13323
|
binary: "uint",
|
|
13324
13324
|
size: 4
|
|
13325
13325
|
};
|
|
13326
13326
|
|
|
13327
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13327
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/payloadId.js
|
|
13328
13328
|
var payloadIdItem = (id2) => ({
|
|
13329
13329
|
name: "payloadId",
|
|
13330
13330
|
binary: "uint",
|
|
@@ -13333,13 +13333,13 @@ var payloadIdItem = (id2) => ({
|
|
|
13333
13333
|
omit: true
|
|
13334
13334
|
});
|
|
13335
13335
|
|
|
13336
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13336
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/sequence.js
|
|
13337
13337
|
var sequenceItem = {
|
|
13338
13338
|
binary: "uint",
|
|
13339
13339
|
size: 8
|
|
13340
13340
|
};
|
|
13341
13341
|
|
|
13342
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13342
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/signature.js
|
|
13343
13343
|
var Signature = class {
|
|
13344
13344
|
r;
|
|
13345
13345
|
s;
|
|
@@ -13383,7 +13383,7 @@ var SignatureUtils;
|
|
|
13383
13383
|
SignatureUtils2.recover = recover;
|
|
13384
13384
|
})(SignatureUtils || (SignatureUtils = {}));
|
|
13385
13385
|
|
|
13386
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13386
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/signature.js
|
|
13387
13387
|
var signatureLayout = [
|
|
13388
13388
|
{ name: "r", binary: "uint", size: 32 },
|
|
13389
13389
|
{ name: "s", binary: "uint", size: 32 },
|
|
@@ -13398,7 +13398,7 @@ var signatureItem = {
|
|
|
13398
13398
|
}
|
|
13399
13399
|
};
|
|
13400
13400
|
|
|
13401
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13401
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/universalAddress.js
|
|
13402
13402
|
var universalAddressItem = {
|
|
13403
13403
|
binary: "bytes",
|
|
13404
13404
|
size: 32,
|
|
@@ -13408,7 +13408,7 @@ var universalAddressItem = {
|
|
|
13408
13408
|
}
|
|
13409
13409
|
};
|
|
13410
13410
|
|
|
13411
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13411
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/string.js
|
|
13412
13412
|
var trimZeros = (arr) => {
|
|
13413
13413
|
const i = arr.findIndex((x) => x !== 0);
|
|
13414
13414
|
return -1 < i ? arr.slice(i) : new Uint8Array([]);
|
|
@@ -13426,7 +13426,7 @@ var fixedLengthStringItem = (size) => ({
|
|
|
13426
13426
|
}
|
|
13427
13427
|
});
|
|
13428
13428
|
|
|
13429
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13429
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/vaa.js
|
|
13430
13430
|
var guardianSignatureLayout = [
|
|
13431
13431
|
{ name: "guardianIndex", binary: "uint", size: 1 },
|
|
13432
13432
|
{ name: "signature", ...signatureItem }
|
|
@@ -13446,7 +13446,7 @@ var envelopeLayout = [
|
|
|
13446
13446
|
];
|
|
13447
13447
|
var baseLayout = [...headerLayout, ...envelopeLayout];
|
|
13448
13448
|
|
|
13449
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13449
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/functions.js
|
|
13450
13450
|
function getPayloadLayout(layoutLiteral) {
|
|
13451
13451
|
const layout = payloadFactory.get(layoutLiteral);
|
|
13452
13452
|
if (!layout)
|
|
@@ -13471,7 +13471,7 @@ function payloadDiscriminator(payloadLiterals, allowAmbiguous) {
|
|
|
13471
13471
|
});
|
|
13472
13472
|
}
|
|
13473
13473
|
|
|
13474
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13474
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/automaticCircleBridgeLayout.js
|
|
13475
13475
|
var depositWithPayloadLayout = (customPayload) => [
|
|
13476
13476
|
payloadIdItem(1),
|
|
13477
13477
|
{
|
|
@@ -13501,7 +13501,7 @@ var automaticCircleBridgeNamedPayloads = [
|
|
|
13501
13501
|
];
|
|
13502
13502
|
registerPayloadTypes("AutomaticCircleBridge", automaticCircleBridgeNamedPayloads);
|
|
13503
13503
|
|
|
13504
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13504
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridgeLayout.js
|
|
13505
13505
|
var messageVersionItem = { binary: "uint", size: 4, custom: 0, omit: true };
|
|
13506
13506
|
var circleBurnMessageLayout = [
|
|
13507
13507
|
// messageBodyVersion is:
|
|
@@ -13531,7 +13531,7 @@ var circleBridgeNamedPayloads = [
|
|
|
13531
13531
|
];
|
|
13532
13532
|
registerPayloadTypes("CircleBridge", circleBridgeNamedPayloads);
|
|
13533
13533
|
|
|
13534
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13534
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridge.js
|
|
13535
13535
|
var CircleBridge;
|
|
13536
13536
|
(function(CircleBridge2) {
|
|
13537
13537
|
const _protocol = "CircleBridge";
|
|
@@ -13555,7 +13555,7 @@ var AutomaticCircleBridge;
|
|
|
13555
13555
|
AutomaticCircleBridge2.getTransferDiscriminator = lazyInstantiate(() => payloadDiscriminator([_protocol, _payloads]));
|
|
13556
13556
|
})(AutomaticCircleBridge || (AutomaticCircleBridge = {}));
|
|
13557
13557
|
|
|
13558
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13558
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridgeLayout.js
|
|
13559
13559
|
var fixedLengthStringItem2 = {
|
|
13560
13560
|
binary: "bytes",
|
|
13561
13561
|
size: 32,
|
|
@@ -13617,7 +13617,7 @@ var tokenBridgeNamedPayloads = [
|
|
|
13617
13617
|
];
|
|
13618
13618
|
registerPayloadTypes("TokenBridge", tokenBridgeNamedPayloads);
|
|
13619
13619
|
|
|
13620
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13620
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/porticoLayout.js
|
|
13621
13621
|
var flagsItem = bitsetItem(["shouldWrapNative", "shouldUnwrapNative"]);
|
|
13622
13622
|
var porticoFlagSetLayout = [
|
|
13623
13623
|
{ name: "recipientChain", binary: "uint", endianness: "little", size: 2 },
|
|
@@ -13652,7 +13652,7 @@ var namedPayloads = [
|
|
|
13652
13652
|
];
|
|
13653
13653
|
registerPayloadTypes("PorticoBridge", namedPayloads);
|
|
13654
13654
|
|
|
13655
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13655
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/portico.js
|
|
13656
13656
|
var PorticoBridge;
|
|
13657
13657
|
(function(PorticoBridge2) {
|
|
13658
13658
|
const _protocol = "PorticoBridge";
|
|
@@ -13672,7 +13672,7 @@ var PorticoBridge;
|
|
|
13672
13672
|
};
|
|
13673
13673
|
})(PorticoBridge || (PorticoBridge = {}));
|
|
13674
13674
|
|
|
13675
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13675
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/relayer/relayerLayout.js
|
|
13676
13676
|
var encodedExecutionInfoItem = {
|
|
13677
13677
|
binary: "bytes",
|
|
13678
13678
|
layout: [
|
|
@@ -13739,7 +13739,7 @@ var namedPayloads2 = [
|
|
|
13739
13739
|
];
|
|
13740
13740
|
registerPayloadTypes("Relayer", namedPayloads2);
|
|
13741
13741
|
|
|
13742
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13742
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/automaticTokenBridgeLayout.js
|
|
13743
13743
|
var connectPayload = [
|
|
13744
13744
|
payloadIdItem(1),
|
|
13745
13745
|
{ name: "targetRelayerFee", ...amountItem },
|
|
@@ -13751,7 +13751,7 @@ var automaticTokenBridgeNamedPayloads = [
|
|
|
13751
13751
|
];
|
|
13752
13752
|
registerPayloadTypes("AutomaticTokenBridge", automaticTokenBridgeNamedPayloads);
|
|
13753
13753
|
|
|
13754
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13754
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridge.js
|
|
13755
13755
|
var TokenBridge;
|
|
13756
13756
|
(function(TokenBridge2) {
|
|
13757
13757
|
const _protocol = "TokenBridge";
|
|
@@ -13771,21 +13771,21 @@ var ExecutorTokenBridge;
|
|
|
13771
13771
|
const _payloads = ["TransferWithExecutorRelay"];
|
|
13772
13772
|
})(ExecutorTokenBridge || (ExecutorTokenBridge = {}));
|
|
13773
13773
|
|
|
13774
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13774
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/executorTokenBridgeLayout.js
|
|
13775
13775
|
var payload = [{ name: "targetRecipient", ...universalAddressItem }];
|
|
13776
13776
|
var executorTokenBridgeNamedPayloads = [
|
|
13777
13777
|
["TransferWithExecutorRelay", transferWithPayloadLayout(payload)]
|
|
13778
13778
|
];
|
|
13779
13779
|
registerPayloadTypes("ExecutorTokenBridge", executorTokenBridgeNamedPayloads);
|
|
13780
13780
|
|
|
13781
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13781
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/globalAccountant.js
|
|
13782
13782
|
var modificationKinds = [
|
|
13783
13783
|
["Add", 1],
|
|
13784
13784
|
["Subtract", 2],
|
|
13785
13785
|
["Unknown", 3]
|
|
13786
13786
|
];
|
|
13787
13787
|
|
|
13788
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
13788
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/layout.js
|
|
13789
13789
|
var rawEvmAddressItem = {
|
|
13790
13790
|
binary: "bytes",
|
|
13791
13791
|
size: 20,
|
|
@@ -14047,7 +14047,7 @@ registerPayloadTypes("GeneralPurposeGovernance", generalPurposeGovernancePayload
|
|
|
14047
14047
|
registerPayloadTypes("WormchainGovernance", wormchainGovernancePayloads);
|
|
14048
14048
|
registerPayloadTypes("GatewayGovernance", gatewayGovernancePayloads);
|
|
14049
14049
|
|
|
14050
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
14050
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtc.js
|
|
14051
14051
|
var TBTCBridge;
|
|
14052
14052
|
(function(TBTCBridge2) {
|
|
14053
14053
|
const _protocol = "TBTCBridge";
|
|
@@ -14065,7 +14065,7 @@ var TBTCBridge;
|
|
|
14065
14065
|
};
|
|
14066
14066
|
})(TBTCBridge || (TBTCBridge = {}));
|
|
14067
14067
|
|
|
14068
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
14068
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtcLayout.js
|
|
14069
14069
|
var tbtcPayloadLayout = [
|
|
14070
14070
|
{ name: "recipient", ...universalAddressItem }
|
|
14071
14071
|
];
|
|
@@ -14078,7 +14078,7 @@ var namedPayloads3 = [
|
|
|
14078
14078
|
];
|
|
14079
14079
|
registerPayloadTypes("TBTCBridge", namedPayloads3);
|
|
14080
14080
|
|
|
14081
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
14081
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/relayInstruction.js
|
|
14082
14082
|
var gasInstructionLayout = [
|
|
14083
14083
|
{ name: "gasLimit", binary: "uint", size: 16 },
|
|
14084
14084
|
{ name: "msgValue", binary: "uint", size: 16 }
|
|
@@ -14116,7 +14116,7 @@ var relayInstructionsLayout = [
|
|
|
14116
14116
|
}
|
|
14117
14117
|
];
|
|
14118
14118
|
|
|
14119
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
14119
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/signedQuote.js
|
|
14120
14120
|
var quoteLayout = [
|
|
14121
14121
|
{
|
|
14122
14122
|
name: "quote",
|
|
@@ -14159,7 +14159,7 @@ var signedQuoteLayout = [
|
|
|
14159
14159
|
{ name: "signature", binary: "bytes", size: 65 }
|
|
14160
14160
|
];
|
|
14161
14161
|
|
|
14162
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.
|
|
14162
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.15.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/api.js
|
|
14163
14163
|
var RelayStatus;
|
|
14164
14164
|
(function(RelayStatus2) {
|
|
14165
14165
|
RelayStatus2["Pending"] = "pending";
|
|
@@ -14178,7 +14178,7 @@ var RequestPrefix;
|
|
|
14178
14178
|
RequestPrefix2["ERC2"] = "ERC2";
|
|
14179
14179
|
})(RequestPrefix || (RequestPrefix = {}));
|
|
14180
14180
|
|
|
14181
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.
|
|
14181
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.15.0_bufferutil@4.1.0_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/executorTokenBridge.js
|
|
14182
14182
|
var RELAYER_ABI = [
|
|
14183
14183
|
"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)",
|
|
14184
14184
|
"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)",
|
|
@@ -14300,14 +14300,14 @@ var EvmExecutorTokenBridge = class _EvmExecutorTokenBridge {
|
|
|
14300
14300
|
}
|
|
14301
14301
|
};
|
|
14302
14302
|
|
|
14303
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.
|
|
14303
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.15.0_bufferutil@4.1.0_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/index.js
|
|
14304
14304
|
var ethers_contracts_exports2 = {};
|
|
14305
14305
|
__export(ethers_contracts_exports2, {
|
|
14306
14306
|
Bridge__factory: () => Bridge__factory,
|
|
14307
14307
|
TokenBridgeRelayer__factory: () => TokenBridgeRelayer__factory
|
|
14308
14308
|
});
|
|
14309
14309
|
|
|
14310
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.
|
|
14310
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.15.0_bufferutil@4.1.0_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/factories/Bridge__factory.js
|
|
14311
14311
|
var _abi2 = [
|
|
14312
14312
|
{
|
|
14313
14313
|
anonymous: false,
|
|
@@ -15547,7 +15547,7 @@ var Bridge__factory = class extends ContractFactory {
|
|
|
15547
15547
|
}
|
|
15548
15548
|
};
|
|
15549
15549
|
|
|
15550
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.
|
|
15550
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.15.0_bufferutil@4.1.0_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/factories/TokenBridgeRelayer__factory.js
|
|
15551
15551
|
var _abi3 = [
|
|
15552
15552
|
{
|
|
15553
15553
|
inputs: [
|
|
@@ -16618,7 +16618,7 @@ var TokenBridgeRelayer__factory = class extends ContractFactory {
|
|
|
16618
16618
|
}
|
|
16619
16619
|
};
|
|
16620
16620
|
|
|
16621
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.
|
|
16621
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.15.0_bufferutil@4.1.0_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/index.js
|
|
16622
16622
|
registerProtocol2(_platform2, "TokenBridge", EvmTokenBridge);
|
|
16623
16623
|
registerProtocol2(_platform2, "AutomaticTokenBridge", EvmAutomaticTokenBridge);
|
|
16624
16624
|
registerProtocol2(_platform2, "ExecutorTokenBridge", EvmExecutorTokenBridge);
|