@moonbeam-network/mrl 4.0.8 → 4.0.10
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@3.4.
|
|
24
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.4.7_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.4.
|
|
28
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.4.7_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.4.
|
|
32
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@3.4.7_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.4.
|
|
36
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@3.4.7_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.4.
|
|
153
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@3.4.7_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.4.
|
|
7319
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@3.4.7_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.4.
|
|
8389
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@3.4.7_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.4.
|
|
8392
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.4.7_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.4.
|
|
8530
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.4.7_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.4.
|
|
8638
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.4.7_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.4.
|
|
8642
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.4.7/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.4.
|
|
8647
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.4.7/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.4.
|
|
8723
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.4.7/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.4.
|
|
9615
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.4.7/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.4.
|
|
10002
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.4.7/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.4.
|
|
10098
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.4.7/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)
|
|
@@ -10181,7 +10181,7 @@ var toChain2 = (chain2) => {
|
|
|
10181
10181
|
throw Error(`Cannot convert to Chain: ${chain2}`);
|
|
10182
10182
|
};
|
|
10183
10183
|
|
|
10184
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.4.
|
|
10184
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.4.7/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/platforms.js
|
|
10185
10185
|
var platformAndChainsEntries = [
|
|
10186
10186
|
[
|
|
10187
10187
|
"Evm",
|
|
@@ -10295,7 +10295,7 @@ var platformAddressFormatEntries = [
|
|
|
10295
10295
|
];
|
|
10296
10296
|
var platformToAddressFormat = constMap(platformAddressFormatEntries);
|
|
10297
10297
|
|
|
10298
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.4.
|
|
10298
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@3.4.7/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/tbtc.js
|
|
10299
10299
|
var tbtc_exports = {};
|
|
10300
10300
|
__export(tbtc_exports, {
|
|
10301
10301
|
tbtcTokens: () => tbtcTokens
|
|
@@ -13117,7 +13117,7 @@ function sqrtMod(y) {
|
|
|
13117
13117
|
var Fpk1 = Field(secp256k1_CURVE.p, { sqrt: sqrtMod });
|
|
13118
13118
|
var secp256k1 = createCurve({ ...secp256k1_CURVE, Fp: Fpk1, lowS: true, endo: secp256k1_ENDO }, sha256);
|
|
13119
13119
|
|
|
13120
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13120
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/universalAddress.js
|
|
13121
13121
|
var algorandAppIdLayout = [
|
|
13122
13122
|
{ name: "appIdPrefix", binary: "bytes", custom: encoding_exports.bytes.encode("appID"), omit: true },
|
|
13123
13123
|
{ name: "appId", binary: "uint", size: 8 }
|
|
@@ -13177,7 +13177,7 @@ var UniversalAddress2 = class _UniversalAddress {
|
|
|
13177
13177
|
}
|
|
13178
13178
|
};
|
|
13179
13179
|
|
|
13180
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13180
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/address.js
|
|
13181
13181
|
function isChainSpecificAddress(thing) {
|
|
13182
13182
|
return typeof thing === "object" && "setChain" in thing;
|
|
13183
13183
|
}
|
|
@@ -13207,7 +13207,7 @@ function toUniversal(chain2, address) {
|
|
|
13207
13207
|
return new UniversalAddress2(address, platformToAddressFormat.get(platform));
|
|
13208
13208
|
}
|
|
13209
13209
|
|
|
13210
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13210
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/registration.js
|
|
13211
13211
|
var composeLiteral = (protocol, payloadName) => protocol ? `${protocol}:${payloadName}` : payloadName;
|
|
13212
13212
|
var payloadFactory = /* @__PURE__ */ new Map();
|
|
13213
13213
|
function registerPayloadType(protocol, name, layout) {
|
|
@@ -13221,13 +13221,13 @@ function registerPayloadTypes(protocol, payloads) {
|
|
|
13221
13221
|
registerPayloadType(protocol, name, layout);
|
|
13222
13222
|
}
|
|
13223
13223
|
|
|
13224
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13224
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/amount.js
|
|
13225
13225
|
var amountItem = {
|
|
13226
13226
|
binary: "uint",
|
|
13227
13227
|
size: 32
|
|
13228
13228
|
};
|
|
13229
13229
|
|
|
13230
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13230
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/chain.js
|
|
13231
13231
|
var chainItemBase = { binary: "uint", size: 2 };
|
|
13232
13232
|
var chainItem = (opts) => ({
|
|
13233
13233
|
...chainItemBase,
|
|
@@ -13248,7 +13248,7 @@ var chainItem = (opts) => ({
|
|
|
13248
13248
|
}
|
|
13249
13249
|
});
|
|
13250
13250
|
|
|
13251
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13251
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/circle.js
|
|
13252
13252
|
var circleDomainItem = {
|
|
13253
13253
|
binary: "uint",
|
|
13254
13254
|
size: 4
|
|
@@ -13258,19 +13258,19 @@ var circleNonceItem = {
|
|
|
13258
13258
|
size: 8
|
|
13259
13259
|
};
|
|
13260
13260
|
|
|
13261
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13261
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/date.js
|
|
13262
13262
|
var dateConversion = {
|
|
13263
13263
|
to: (encoded) => new Date(Number(encoded * 1000n)),
|
|
13264
13264
|
from: (decoded) => BigInt(decoded.getTime()) / 1000n
|
|
13265
13265
|
};
|
|
13266
13266
|
|
|
13267
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13267
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/guardianSet.js
|
|
13268
13268
|
var guardianSetItem = {
|
|
13269
13269
|
binary: "uint",
|
|
13270
13270
|
size: 4
|
|
13271
13271
|
};
|
|
13272
13272
|
|
|
13273
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13273
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/payloadId.js
|
|
13274
13274
|
var payloadIdItem = (id2) => ({
|
|
13275
13275
|
name: "payloadId",
|
|
13276
13276
|
binary: "uint",
|
|
@@ -13279,13 +13279,13 @@ var payloadIdItem = (id2) => ({
|
|
|
13279
13279
|
omit: true
|
|
13280
13280
|
});
|
|
13281
13281
|
|
|
13282
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13282
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/sequence.js
|
|
13283
13283
|
var sequenceItem = {
|
|
13284
13284
|
binary: "uint",
|
|
13285
13285
|
size: 8
|
|
13286
13286
|
};
|
|
13287
13287
|
|
|
13288
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13288
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/signature.js
|
|
13289
13289
|
var Signature = class {
|
|
13290
13290
|
r;
|
|
13291
13291
|
s;
|
|
@@ -13329,7 +13329,7 @@ var SignatureUtils;
|
|
|
13329
13329
|
SignatureUtils2.recover = recover;
|
|
13330
13330
|
})(SignatureUtils || (SignatureUtils = {}));
|
|
13331
13331
|
|
|
13332
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13332
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/signature.js
|
|
13333
13333
|
var signatureLayout = [
|
|
13334
13334
|
{ name: "r", binary: "uint", size: 32 },
|
|
13335
13335
|
{ name: "s", binary: "uint", size: 32 },
|
|
@@ -13344,7 +13344,7 @@ var signatureItem = {
|
|
|
13344
13344
|
}
|
|
13345
13345
|
};
|
|
13346
13346
|
|
|
13347
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13347
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/universalAddress.js
|
|
13348
13348
|
var universalAddressItem = {
|
|
13349
13349
|
binary: "bytes",
|
|
13350
13350
|
size: 32,
|
|
@@ -13354,7 +13354,7 @@ var universalAddressItem = {
|
|
|
13354
13354
|
}
|
|
13355
13355
|
};
|
|
13356
13356
|
|
|
13357
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13357
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/string.js
|
|
13358
13358
|
var trimZeros = (arr) => {
|
|
13359
13359
|
const i = arr.findIndex((x) => x !== 0);
|
|
13360
13360
|
return -1 < i ? arr.slice(i) : new Uint8Array([]);
|
|
@@ -13372,7 +13372,7 @@ var fixedLengthStringItem = (size) => ({
|
|
|
13372
13372
|
}
|
|
13373
13373
|
});
|
|
13374
13374
|
|
|
13375
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13375
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/vaa.js
|
|
13376
13376
|
var guardianSignatureLayout = [
|
|
13377
13377
|
{ name: "guardianIndex", binary: "uint", size: 1 },
|
|
13378
13378
|
{ name: "signature", ...signatureItem }
|
|
@@ -13392,7 +13392,7 @@ var envelopeLayout = [
|
|
|
13392
13392
|
];
|
|
13393
13393
|
var baseLayout = [...headerLayout, ...envelopeLayout];
|
|
13394
13394
|
|
|
13395
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13395
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/functions.js
|
|
13396
13396
|
function getPayloadLayout(layoutLiteral) {
|
|
13397
13397
|
const layout = payloadFactory.get(layoutLiteral);
|
|
13398
13398
|
if (!layout)
|
|
@@ -13417,7 +13417,7 @@ function payloadDiscriminator(payloadLiterals, allowAmbiguous) {
|
|
|
13417
13417
|
});
|
|
13418
13418
|
}
|
|
13419
13419
|
|
|
13420
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13420
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/automaticCircleBridgeLayout.js
|
|
13421
13421
|
var depositWithPayloadLayout = (customPayload) => [
|
|
13422
13422
|
payloadIdItem(1),
|
|
13423
13423
|
{
|
|
@@ -13447,7 +13447,7 @@ var automaticCircleBridgeNamedPayloads = [
|
|
|
13447
13447
|
];
|
|
13448
13448
|
registerPayloadTypes("AutomaticCircleBridge", automaticCircleBridgeNamedPayloads);
|
|
13449
13449
|
|
|
13450
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13450
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridgeLayout.js
|
|
13451
13451
|
var messageVersionItem = { binary: "uint", size: 4, custom: 0, omit: true };
|
|
13452
13452
|
var circleBurnMessageLayout = [
|
|
13453
13453
|
// messageBodyVersion is:
|
|
@@ -13477,7 +13477,7 @@ var circleBridgeNamedPayloads = [
|
|
|
13477
13477
|
];
|
|
13478
13478
|
registerPayloadTypes("CircleBridge", circleBridgeNamedPayloads);
|
|
13479
13479
|
|
|
13480
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13480
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridge.js
|
|
13481
13481
|
var CircleBridge;
|
|
13482
13482
|
(function(CircleBridge2) {
|
|
13483
13483
|
const _protocol = "CircleBridge";
|
|
@@ -13501,7 +13501,7 @@ var AutomaticCircleBridge;
|
|
|
13501
13501
|
AutomaticCircleBridge2.getTransferDiscriminator = lazyInstantiate(() => payloadDiscriminator([_protocol, _payloads]));
|
|
13502
13502
|
})(AutomaticCircleBridge || (AutomaticCircleBridge = {}));
|
|
13503
13503
|
|
|
13504
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13504
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridgeLayout.js
|
|
13505
13505
|
var fixedLengthStringItem2 = {
|
|
13506
13506
|
binary: "bytes",
|
|
13507
13507
|
size: 32,
|
|
@@ -13563,7 +13563,7 @@ var tokenBridgeNamedPayloads = [
|
|
|
13563
13563
|
];
|
|
13564
13564
|
registerPayloadTypes("TokenBridge", tokenBridgeNamedPayloads);
|
|
13565
13565
|
|
|
13566
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13566
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/porticoLayout.js
|
|
13567
13567
|
var flagsItem = bitsetItem(["shouldWrapNative", "shouldUnwrapNative"]);
|
|
13568
13568
|
var porticoFlagSetLayout = [
|
|
13569
13569
|
{ name: "recipientChain", binary: "uint", endianness: "little", size: 2 },
|
|
@@ -13598,7 +13598,7 @@ var namedPayloads = [
|
|
|
13598
13598
|
];
|
|
13599
13599
|
registerPayloadTypes("PorticoBridge", namedPayloads);
|
|
13600
13600
|
|
|
13601
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13601
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/portico.js
|
|
13602
13602
|
var PorticoBridge;
|
|
13603
13603
|
(function(PorticoBridge2) {
|
|
13604
13604
|
const _protocol = "PorticoBridge";
|
|
@@ -13618,7 +13618,7 @@ var PorticoBridge;
|
|
|
13618
13618
|
};
|
|
13619
13619
|
})(PorticoBridge || (PorticoBridge = {}));
|
|
13620
13620
|
|
|
13621
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13621
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/relayer/relayerLayout.js
|
|
13622
13622
|
var encodedExecutionInfoItem = {
|
|
13623
13623
|
binary: "bytes",
|
|
13624
13624
|
layout: [
|
|
@@ -13685,7 +13685,7 @@ var namedPayloads2 = [
|
|
|
13685
13685
|
];
|
|
13686
13686
|
registerPayloadTypes("Relayer", namedPayloads2);
|
|
13687
13687
|
|
|
13688
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13688
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/automaticTokenBridgeLayout.js
|
|
13689
13689
|
var connectPayload = [
|
|
13690
13690
|
payloadIdItem(1),
|
|
13691
13691
|
{ name: "targetRelayerFee", ...amountItem },
|
|
@@ -13697,7 +13697,7 @@ var automaticTokenBridgeNamedPayloads = [
|
|
|
13697
13697
|
];
|
|
13698
13698
|
registerPayloadTypes("AutomaticTokenBridge", automaticTokenBridgeNamedPayloads);
|
|
13699
13699
|
|
|
13700
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13700
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridge.js
|
|
13701
13701
|
var TokenBridge;
|
|
13702
13702
|
(function(TokenBridge2) {
|
|
13703
13703
|
const _protocol = "TokenBridge";
|
|
@@ -13717,21 +13717,21 @@ var ExecutorTokenBridge;
|
|
|
13717
13717
|
const _payloads = ["TransferWithExecutorRelay"];
|
|
13718
13718
|
})(ExecutorTokenBridge || (ExecutorTokenBridge = {}));
|
|
13719
13719
|
|
|
13720
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13720
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/executorTokenBridgeLayout.js
|
|
13721
13721
|
var payload = [{ name: "targetRecipient", ...universalAddressItem }];
|
|
13722
13722
|
var executorTokenBridgeNamedPayloads = [
|
|
13723
13723
|
["TransferWithExecutorRelay", transferWithPayloadLayout(payload)]
|
|
13724
13724
|
];
|
|
13725
13725
|
registerPayloadTypes("ExecutorTokenBridge", executorTokenBridgeNamedPayloads);
|
|
13726
13726
|
|
|
13727
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13727
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/globalAccountant.js
|
|
13728
13728
|
var modificationKinds = [
|
|
13729
13729
|
["Add", 1],
|
|
13730
13730
|
["Subtract", 2],
|
|
13731
13731
|
["Unknown", 3]
|
|
13732
13732
|
];
|
|
13733
13733
|
|
|
13734
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13734
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/layout.js
|
|
13735
13735
|
var rawEvmAddressItem = {
|
|
13736
13736
|
binary: "bytes",
|
|
13737
13737
|
size: 20,
|
|
@@ -13993,7 +13993,7 @@ registerPayloadTypes("GeneralPurposeGovernance", generalPurposeGovernancePayload
|
|
|
13993
13993
|
registerPayloadTypes("WormchainGovernance", wormchainGovernancePayloads);
|
|
13994
13994
|
registerPayloadTypes("GatewayGovernance", gatewayGovernancePayloads);
|
|
13995
13995
|
|
|
13996
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
13996
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtc.js
|
|
13997
13997
|
var TBTCBridge;
|
|
13998
13998
|
(function(TBTCBridge2) {
|
|
13999
13999
|
const _protocol = "TBTCBridge";
|
|
@@ -14011,7 +14011,7 @@ var TBTCBridge;
|
|
|
14011
14011
|
};
|
|
14012
14012
|
})(TBTCBridge || (TBTCBridge = {}));
|
|
14013
14013
|
|
|
14014
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
14014
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtcLayout.js
|
|
14015
14015
|
var tbtcPayloadLayout = [
|
|
14016
14016
|
{ name: "recipient", ...universalAddressItem }
|
|
14017
14017
|
];
|
|
@@ -14024,7 +14024,7 @@ var namedPayloads3 = [
|
|
|
14024
14024
|
];
|
|
14025
14025
|
registerPayloadTypes("TBTCBridge", namedPayloads3);
|
|
14026
14026
|
|
|
14027
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
14027
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/relayInstruction.js
|
|
14028
14028
|
var gasInstructionLayout = [
|
|
14029
14029
|
{ name: "gasLimit", binary: "uint", size: 16 },
|
|
14030
14030
|
{ name: "msgValue", binary: "uint", size: 16 }
|
|
@@ -14053,7 +14053,7 @@ var relayInstructionsLayout = [
|
|
|
14053
14053
|
}
|
|
14054
14054
|
];
|
|
14055
14055
|
|
|
14056
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
14056
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/signedQuote.js
|
|
14057
14057
|
var quoteLayout = [
|
|
14058
14058
|
{
|
|
14059
14059
|
name: "quote",
|
|
@@ -14096,7 +14096,7 @@ var signedQuoteLayout = [
|
|
|
14096
14096
|
{ name: "signature", binary: "bytes", size: 65 }
|
|
14097
14097
|
];
|
|
14098
14098
|
|
|
14099
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.
|
|
14099
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@3.4.7/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/api.js
|
|
14100
14100
|
var RelayStatus;
|
|
14101
14101
|
(function(RelayStatus2) {
|
|
14102
14102
|
RelayStatus2["Pending"] = "pending";
|
|
@@ -14115,7 +14115,7 @@ var RequestPrefix;
|
|
|
14115
14115
|
RequestPrefix2["ERC2"] = "ERC2";
|
|
14116
14116
|
})(RequestPrefix || (RequestPrefix = {}));
|
|
14117
14117
|
|
|
14118
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.4.
|
|
14118
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.4.7_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/executorTokenBridge.js
|
|
14119
14119
|
var RELAYER_ABI = [
|
|
14120
14120
|
"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)",
|
|
14121
14121
|
"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)",
|
|
@@ -14234,14 +14234,14 @@ var EvmExecutorTokenBridge = class _EvmExecutorTokenBridge {
|
|
|
14234
14234
|
}
|
|
14235
14235
|
};
|
|
14236
14236
|
|
|
14237
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.4.
|
|
14237
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.4.7_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/index.js
|
|
14238
14238
|
var ethers_contracts_exports2 = {};
|
|
14239
14239
|
__export(ethers_contracts_exports2, {
|
|
14240
14240
|
Bridge__factory: () => Bridge__factory,
|
|
14241
14241
|
TokenBridgeRelayer__factory: () => TokenBridgeRelayer__factory
|
|
14242
14242
|
});
|
|
14243
14243
|
|
|
14244
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.4.
|
|
14244
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.4.7_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
|
|
14245
14245
|
var _abi2 = [
|
|
14246
14246
|
{
|
|
14247
14247
|
anonymous: false,
|
|
@@ -15481,7 +15481,7 @@ var Bridge__factory = class extends ContractFactory {
|
|
|
15481
15481
|
}
|
|
15482
15482
|
};
|
|
15483
15483
|
|
|
15484
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.4.
|
|
15484
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.4.7_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
|
|
15485
15485
|
var _abi3 = [
|
|
15486
15486
|
{
|
|
15487
15487
|
inputs: [
|
|
@@ -16552,7 +16552,7 @@ var TokenBridgeRelayer__factory = class extends ContractFactory {
|
|
|
16552
16552
|
}
|
|
16553
16553
|
};
|
|
16554
16554
|
|
|
16555
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.4.
|
|
16555
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@3.4.7_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/index.js
|
|
16556
16556
|
registerProtocol2(_platform2, "TokenBridge", EvmTokenBridge);
|
|
16557
16557
|
registerProtocol2(_platform2, "AutomaticTokenBridge", EvmAutomaticTokenBridge);
|
|
16558
16558
|
registerProtocol2(_platform2, "ExecutorTokenBridge", EvmExecutorTokenBridge);
|