@moonbeam-network/mrl 4.1.0 → 4.1.1
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 +69 -58
- package/build/index.mjs.map +1 -1
- package/package.json +12 -12
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.6.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@4.
|
|
28
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/tokenBridge.js
|
|
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.6.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@4.
|
|
36
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-core/dist/esm/core.js
|
|
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.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-core/dist/esm/ethers-contracts/index.js
|
|
154
154
|
var ethers_contracts_exports = {};
|
|
155
155
|
__export(ethers_contracts_exports, {
|
|
156
156
|
Implementation__factory: () => Implementation__factory
|
|
@@ -7316,7 +7316,7 @@ var ContractFactory = class _ContractFactory {
|
|
|
7316
7316
|
}
|
|
7317
7317
|
};
|
|
7318
7318
|
|
|
7319
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.
|
|
7319
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-core/dist/esm/ethers-contracts/factories/Implementation__factory.js
|
|
7320
7320
|
var _abi = [
|
|
7321
7321
|
{
|
|
7322
7322
|
anonymous: false,
|
|
@@ -8386,10 +8386,10 @@ var Implementation__factory = class extends ContractFactory {
|
|
|
8386
8386
|
}
|
|
8387
8387
|
};
|
|
8388
8388
|
|
|
8389
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.
|
|
8389
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-core/dist/esm/index.js
|
|
8390
8390
|
registerProtocol(_platform, "WormholeCore", EvmWormholeCore);
|
|
8391
8391
|
|
|
8392
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.
|
|
8392
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/tokenBridge.js
|
|
8393
8393
|
var EvmTokenBridge = class _EvmTokenBridge {
|
|
8394
8394
|
network;
|
|
8395
8395
|
chain;
|
|
@@ -8527,7 +8527,7 @@ var EvmTokenBridge = class _EvmTokenBridge {
|
|
|
8527
8527
|
}
|
|
8528
8528
|
};
|
|
8529
8529
|
|
|
8530
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.
|
|
8530
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/automaticTokenBridge.js
|
|
8531
8531
|
import { isNative as isNative2, serialize as serialize3, toNative as toNative2, nativeChainIds as nativeChainIds3, toChainId as toChainId2 } from "@wormhole-foundation/sdk-connect";
|
|
8532
8532
|
import { EvmAddress as EvmAddress3, EvmPlatform as EvmPlatform3, EvmUnsignedTransaction as EvmUnsignedTransaction3, WETH_CONTRACTS as WETH_CONTRACTS2, addChainId as addChainId3, addFrom as addFrom3 } from "@wormhole-foundation/sdk-evm";
|
|
8533
8533
|
var EvmAutomaticTokenBridge = class _EvmAutomaticTokenBridge {
|
|
@@ -8635,16 +8635,16 @@ var EvmAutomaticTokenBridge = class _EvmAutomaticTokenBridge {
|
|
|
8635
8635
|
}
|
|
8636
8636
|
};
|
|
8637
8637
|
|
|
8638
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.
|
|
8638
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/executorTokenBridge.js
|
|
8639
8639
|
import { nativeChainIds as nativeChainIds4, toChainId as toChainId3, signedQuoteLayout as signedQuoteLayout2, isNative as isNative4, serializeLayout, serialize as serialize5, contracts } from "@wormhole-foundation/sdk-connect";
|
|
8640
8640
|
import { EvmAddress as EvmAddress4, EvmPlatform as EvmPlatform4, EvmUnsignedTransaction as EvmUnsignedTransaction4, addChainId as addChainId4, addFrom as addFrom4 } from "@wormhole-foundation/sdk-evm";
|
|
8641
8641
|
|
|
8642
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.0
|
|
8642
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.6.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@4.0
|
|
8647
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.6.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@4.0
|
|
8723
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.6.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@4.0
|
|
9615
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.6.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@4.0
|
|
10002
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.6.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@4.0
|
|
10098
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.6.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)
|
|
@@ -10144,6 +10144,7 @@ var chainIdAndChainEntries = [
|
|
|
10144
10144
|
[59, "CreditCoin"],
|
|
10145
10145
|
[60, "Stacks"],
|
|
10146
10146
|
[63, "Moca"],
|
|
10147
|
+
[64, "MegaETH"],
|
|
10147
10148
|
[3104, "Wormchain"],
|
|
10148
10149
|
[4e3, "Cosmoshub"],
|
|
10149
10150
|
[4001, "Evmos"],
|
|
@@ -10187,7 +10188,7 @@ var toChain2 = (chain2) => {
|
|
|
10187
10188
|
throw Error(`Cannot convert to Chain: ${chain2}`);
|
|
10188
10189
|
};
|
|
10189
10190
|
|
|
10190
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.0
|
|
10191
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.6.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/platforms.js
|
|
10191
10192
|
var platformAndChainsEntries = [
|
|
10192
10193
|
[
|
|
10193
10194
|
"Evm",
|
|
@@ -10229,7 +10230,8 @@ var platformAndChainsEntries = [
|
|
|
10229
10230
|
"CreditCoin",
|
|
10230
10231
|
"HyperCore",
|
|
10231
10232
|
// not an actual EVM platform; treating as EVM
|
|
10232
|
-
"Moca"
|
|
10233
|
+
"Moca",
|
|
10234
|
+
"MegaETH"
|
|
10233
10235
|
]
|
|
10234
10236
|
],
|
|
10235
10237
|
[
|
|
@@ -10313,7 +10315,7 @@ var platformAddressFormatEntries = [
|
|
|
10313
10315
|
];
|
|
10314
10316
|
var platformToAddressFormat = constMap(platformAddressFormatEntries);
|
|
10315
10317
|
|
|
10316
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.0
|
|
10318
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.6.0/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/tbtc.js
|
|
10317
10319
|
var tbtc_exports = {};
|
|
10318
10320
|
__export(tbtc_exports, {
|
|
10319
10321
|
tbtcTokens: () => tbtcTokens
|
|
@@ -13135,7 +13137,7 @@ function sqrtMod(y) {
|
|
|
13135
13137
|
var Fpk1 = Field(secp256k1_CURVE.p, { sqrt: sqrtMod });
|
|
13136
13138
|
var secp256k1 = createCurve({ ...secp256k1_CURVE, Fp: Fpk1, lowS: true, endo: secp256k1_ENDO }, sha256);
|
|
13137
13139
|
|
|
13138
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13140
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/universalAddress.js
|
|
13139
13141
|
var algorandAppIdLayout = [
|
|
13140
13142
|
{ name: "appIdPrefix", binary: "bytes", custom: encoding_exports.bytes.encode("appID"), omit: true },
|
|
13141
13143
|
{ name: "appId", binary: "uint", size: 8 }
|
|
@@ -13199,7 +13201,7 @@ var UniversalAddress2 = class _UniversalAddress {
|
|
|
13199
13201
|
}
|
|
13200
13202
|
};
|
|
13201
13203
|
|
|
13202
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13204
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/address.js
|
|
13203
13205
|
function isChainSpecificAddress(thing) {
|
|
13204
13206
|
return typeof thing === "object" && "setChain" in thing;
|
|
13205
13207
|
}
|
|
@@ -13229,7 +13231,7 @@ function toUniversal(chain2, address) {
|
|
|
13229
13231
|
return new UniversalAddress2(address, platformToAddressFormat.get(platform));
|
|
13230
13232
|
}
|
|
13231
13233
|
|
|
13232
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13234
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/registration.js
|
|
13233
13235
|
var composeLiteral = (protocol, payloadName) => protocol ? `${protocol}:${payloadName}` : payloadName;
|
|
13234
13236
|
var payloadFactory = /* @__PURE__ */ new Map();
|
|
13235
13237
|
function registerPayloadType(protocol, name, layout) {
|
|
@@ -13243,13 +13245,13 @@ function registerPayloadTypes(protocol, payloads) {
|
|
|
13243
13245
|
registerPayloadType(protocol, name, layout);
|
|
13244
13246
|
}
|
|
13245
13247
|
|
|
13246
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13248
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/amount.js
|
|
13247
13249
|
var amountItem = {
|
|
13248
13250
|
binary: "uint",
|
|
13249
13251
|
size: 32
|
|
13250
13252
|
};
|
|
13251
13253
|
|
|
13252
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13254
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/chain.js
|
|
13253
13255
|
var chainItemBase = { binary: "uint", size: 2 };
|
|
13254
13256
|
var chainItem = (opts) => ({
|
|
13255
13257
|
...chainItemBase,
|
|
@@ -13270,7 +13272,7 @@ var chainItem = (opts) => ({
|
|
|
13270
13272
|
}
|
|
13271
13273
|
});
|
|
13272
13274
|
|
|
13273
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13275
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/circle.js
|
|
13274
13276
|
var circleDomainItem = {
|
|
13275
13277
|
binary: "uint",
|
|
13276
13278
|
size: 4
|
|
@@ -13280,19 +13282,19 @@ var circleNonceItem = {
|
|
|
13280
13282
|
size: 8
|
|
13281
13283
|
};
|
|
13282
13284
|
|
|
13283
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13285
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/date.js
|
|
13284
13286
|
var dateConversion = {
|
|
13285
13287
|
to: (encoded) => new Date(Number(encoded * 1000n)),
|
|
13286
13288
|
from: (decoded) => BigInt(decoded.getTime()) / 1000n
|
|
13287
13289
|
};
|
|
13288
13290
|
|
|
13289
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13291
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/guardianSet.js
|
|
13290
13292
|
var guardianSetItem = {
|
|
13291
13293
|
binary: "uint",
|
|
13292
13294
|
size: 4
|
|
13293
13295
|
};
|
|
13294
13296
|
|
|
13295
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13297
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/payloadId.js
|
|
13296
13298
|
var payloadIdItem = (id2) => ({
|
|
13297
13299
|
name: "payloadId",
|
|
13298
13300
|
binary: "uint",
|
|
@@ -13301,13 +13303,13 @@ var payloadIdItem = (id2) => ({
|
|
|
13301
13303
|
omit: true
|
|
13302
13304
|
});
|
|
13303
13305
|
|
|
13304
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13306
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/sequence.js
|
|
13305
13307
|
var sequenceItem = {
|
|
13306
13308
|
binary: "uint",
|
|
13307
13309
|
size: 8
|
|
13308
13310
|
};
|
|
13309
13311
|
|
|
13310
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13312
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/signature.js
|
|
13311
13313
|
var Signature = class {
|
|
13312
13314
|
r;
|
|
13313
13315
|
s;
|
|
@@ -13351,7 +13353,7 @@ var SignatureUtils;
|
|
|
13351
13353
|
SignatureUtils2.recover = recover;
|
|
13352
13354
|
})(SignatureUtils || (SignatureUtils = {}));
|
|
13353
13355
|
|
|
13354
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13356
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/signature.js
|
|
13355
13357
|
var signatureLayout = [
|
|
13356
13358
|
{ name: "r", binary: "uint", size: 32 },
|
|
13357
13359
|
{ name: "s", binary: "uint", size: 32 },
|
|
@@ -13366,7 +13368,7 @@ var signatureItem = {
|
|
|
13366
13368
|
}
|
|
13367
13369
|
};
|
|
13368
13370
|
|
|
13369
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13371
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/universalAddress.js
|
|
13370
13372
|
var universalAddressItem = {
|
|
13371
13373
|
binary: "bytes",
|
|
13372
13374
|
size: 32,
|
|
@@ -13376,7 +13378,7 @@ var universalAddressItem = {
|
|
|
13376
13378
|
}
|
|
13377
13379
|
};
|
|
13378
13380
|
|
|
13379
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13381
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/string.js
|
|
13380
13382
|
var trimZeros = (arr) => {
|
|
13381
13383
|
const i = arr.findIndex((x) => x !== 0);
|
|
13382
13384
|
return -1 < i ? arr.slice(i) : new Uint8Array([]);
|
|
@@ -13394,7 +13396,7 @@ var fixedLengthStringItem = (size) => ({
|
|
|
13394
13396
|
}
|
|
13395
13397
|
});
|
|
13396
13398
|
|
|
13397
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13399
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/vaa.js
|
|
13398
13400
|
var guardianSignatureLayout = [
|
|
13399
13401
|
{ name: "guardianIndex", binary: "uint", size: 1 },
|
|
13400
13402
|
{ name: "signature", ...signatureItem }
|
|
@@ -13414,7 +13416,7 @@ var envelopeLayout = [
|
|
|
13414
13416
|
];
|
|
13415
13417
|
var baseLayout = [...headerLayout, ...envelopeLayout];
|
|
13416
13418
|
|
|
13417
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13419
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/functions.js
|
|
13418
13420
|
function getPayloadLayout(layoutLiteral) {
|
|
13419
13421
|
const layout = payloadFactory.get(layoutLiteral);
|
|
13420
13422
|
if (!layout)
|
|
@@ -13439,7 +13441,7 @@ function payloadDiscriminator(payloadLiterals, allowAmbiguous) {
|
|
|
13439
13441
|
});
|
|
13440
13442
|
}
|
|
13441
13443
|
|
|
13442
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13444
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/automaticCircleBridgeLayout.js
|
|
13443
13445
|
var depositWithPayloadLayout = (customPayload) => [
|
|
13444
13446
|
payloadIdItem(1),
|
|
13445
13447
|
{
|
|
@@ -13469,7 +13471,7 @@ var automaticCircleBridgeNamedPayloads = [
|
|
|
13469
13471
|
];
|
|
13470
13472
|
registerPayloadTypes("AutomaticCircleBridge", automaticCircleBridgeNamedPayloads);
|
|
13471
13473
|
|
|
13472
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13474
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridgeLayout.js
|
|
13473
13475
|
var messageVersionItem = { binary: "uint", size: 4, custom: 0, omit: true };
|
|
13474
13476
|
var circleBurnMessageLayout = [
|
|
13475
13477
|
// messageBodyVersion is:
|
|
@@ -13499,7 +13501,7 @@ var circleBridgeNamedPayloads = [
|
|
|
13499
13501
|
];
|
|
13500
13502
|
registerPayloadTypes("CircleBridge", circleBridgeNamedPayloads);
|
|
13501
13503
|
|
|
13502
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13504
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridge.js
|
|
13503
13505
|
var CircleBridge;
|
|
13504
13506
|
(function(CircleBridge2) {
|
|
13505
13507
|
const _protocol = "CircleBridge";
|
|
@@ -13523,7 +13525,7 @@ var AutomaticCircleBridge;
|
|
|
13523
13525
|
AutomaticCircleBridge2.getTransferDiscriminator = lazyInstantiate(() => payloadDiscriminator([_protocol, _payloads]));
|
|
13524
13526
|
})(AutomaticCircleBridge || (AutomaticCircleBridge = {}));
|
|
13525
13527
|
|
|
13526
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13528
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridgeLayout.js
|
|
13527
13529
|
var fixedLengthStringItem2 = {
|
|
13528
13530
|
binary: "bytes",
|
|
13529
13531
|
size: 32,
|
|
@@ -13585,7 +13587,7 @@ var tokenBridgeNamedPayloads = [
|
|
|
13585
13587
|
];
|
|
13586
13588
|
registerPayloadTypes("TokenBridge", tokenBridgeNamedPayloads);
|
|
13587
13589
|
|
|
13588
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13590
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/porticoLayout.js
|
|
13589
13591
|
var flagsItem = bitsetItem(["shouldWrapNative", "shouldUnwrapNative"]);
|
|
13590
13592
|
var porticoFlagSetLayout = [
|
|
13591
13593
|
{ name: "recipientChain", binary: "uint", endianness: "little", size: 2 },
|
|
@@ -13620,7 +13622,7 @@ var namedPayloads = [
|
|
|
13620
13622
|
];
|
|
13621
13623
|
registerPayloadTypes("PorticoBridge", namedPayloads);
|
|
13622
13624
|
|
|
13623
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13625
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/portico.js
|
|
13624
13626
|
var PorticoBridge;
|
|
13625
13627
|
(function(PorticoBridge2) {
|
|
13626
13628
|
const _protocol = "PorticoBridge";
|
|
@@ -13640,7 +13642,7 @@ var PorticoBridge;
|
|
|
13640
13642
|
};
|
|
13641
13643
|
})(PorticoBridge || (PorticoBridge = {}));
|
|
13642
13644
|
|
|
13643
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13645
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/relayer/relayerLayout.js
|
|
13644
13646
|
var encodedExecutionInfoItem = {
|
|
13645
13647
|
binary: "bytes",
|
|
13646
13648
|
layout: [
|
|
@@ -13707,7 +13709,7 @@ var namedPayloads2 = [
|
|
|
13707
13709
|
];
|
|
13708
13710
|
registerPayloadTypes("Relayer", namedPayloads2);
|
|
13709
13711
|
|
|
13710
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13712
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/automaticTokenBridgeLayout.js
|
|
13711
13713
|
var connectPayload = [
|
|
13712
13714
|
payloadIdItem(1),
|
|
13713
13715
|
{ name: "targetRelayerFee", ...amountItem },
|
|
@@ -13719,7 +13721,7 @@ var automaticTokenBridgeNamedPayloads = [
|
|
|
13719
13721
|
];
|
|
13720
13722
|
registerPayloadTypes("AutomaticTokenBridge", automaticTokenBridgeNamedPayloads);
|
|
13721
13723
|
|
|
13722
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13724
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridge.js
|
|
13723
13725
|
var TokenBridge;
|
|
13724
13726
|
(function(TokenBridge2) {
|
|
13725
13727
|
const _protocol = "TokenBridge";
|
|
@@ -13739,21 +13741,21 @@ var ExecutorTokenBridge;
|
|
|
13739
13741
|
const _payloads = ["TransferWithExecutorRelay"];
|
|
13740
13742
|
})(ExecutorTokenBridge || (ExecutorTokenBridge = {}));
|
|
13741
13743
|
|
|
13742
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13744
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/executorTokenBridgeLayout.js
|
|
13743
13745
|
var payload = [{ name: "targetRecipient", ...universalAddressItem }];
|
|
13744
13746
|
var executorTokenBridgeNamedPayloads = [
|
|
13745
13747
|
["TransferWithExecutorRelay", transferWithPayloadLayout(payload)]
|
|
13746
13748
|
];
|
|
13747
13749
|
registerPayloadTypes("ExecutorTokenBridge", executorTokenBridgeNamedPayloads);
|
|
13748
13750
|
|
|
13749
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13751
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/globalAccountant.js
|
|
13750
13752
|
var modificationKinds = [
|
|
13751
13753
|
["Add", 1],
|
|
13752
13754
|
["Subtract", 2],
|
|
13753
13755
|
["Unknown", 3]
|
|
13754
13756
|
];
|
|
13755
13757
|
|
|
13756
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
13758
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/layout.js
|
|
13757
13759
|
var rawEvmAddressItem = {
|
|
13758
13760
|
binary: "bytes",
|
|
13759
13761
|
size: 20,
|
|
@@ -14015,7 +14017,7 @@ registerPayloadTypes("GeneralPurposeGovernance", generalPurposeGovernancePayload
|
|
|
14015
14017
|
registerPayloadTypes("WormchainGovernance", wormchainGovernancePayloads);
|
|
14016
14018
|
registerPayloadTypes("GatewayGovernance", gatewayGovernancePayloads);
|
|
14017
14019
|
|
|
14018
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
14020
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtc.js
|
|
14019
14021
|
var TBTCBridge;
|
|
14020
14022
|
(function(TBTCBridge2) {
|
|
14021
14023
|
const _protocol = "TBTCBridge";
|
|
@@ -14033,7 +14035,7 @@ var TBTCBridge;
|
|
|
14033
14035
|
};
|
|
14034
14036
|
})(TBTCBridge || (TBTCBridge = {}));
|
|
14035
14037
|
|
|
14036
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
14038
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtcLayout.js
|
|
14037
14039
|
var tbtcPayloadLayout = [
|
|
14038
14040
|
{ name: "recipient", ...universalAddressItem }
|
|
14039
14041
|
];
|
|
@@ -14046,7 +14048,7 @@ var namedPayloads3 = [
|
|
|
14046
14048
|
];
|
|
14047
14049
|
registerPayloadTypes("TBTCBridge", namedPayloads3);
|
|
14048
14050
|
|
|
14049
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
14051
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/relayInstruction.js
|
|
14050
14052
|
var gasInstructionLayout = [
|
|
14051
14053
|
{ name: "gasLimit", binary: "uint", size: 16 },
|
|
14052
14054
|
{ name: "msgValue", binary: "uint", size: 16 }
|
|
@@ -14055,6 +14057,14 @@ var gasDropOffInstructionLayout = [
|
|
|
14055
14057
|
{ name: "dropOff", binary: "uint", size: 16 },
|
|
14056
14058
|
{ name: "recipient", ...universalAddressItem }
|
|
14057
14059
|
];
|
|
14060
|
+
var stacksNttReceiveInstructionLayout = [
|
|
14061
|
+
{ name: "nttManager", binary: "bytes", lengthSize: 1 },
|
|
14062
|
+
// Stacks contract principal (variable length)
|
|
14063
|
+
{ name: "recipient", binary: "bytes", lengthSize: 1 },
|
|
14064
|
+
// Stacks recipient address (variable length)
|
|
14065
|
+
{ name: "gasDropOff", binary: "uint", size: 16 }
|
|
14066
|
+
// STX amount for gas drop-off
|
|
14067
|
+
];
|
|
14058
14068
|
var relayInstructionLayout = [
|
|
14059
14069
|
{
|
|
14060
14070
|
name: "request",
|
|
@@ -14063,7 +14073,8 @@ var relayInstructionLayout = [
|
|
|
14063
14073
|
idTag: "type",
|
|
14064
14074
|
layouts: [
|
|
14065
14075
|
[[1, "GasInstruction"], gasInstructionLayout],
|
|
14066
|
-
[[2, "GasDropOffInstruction"], gasDropOffInstructionLayout]
|
|
14076
|
+
[[2, "GasDropOffInstruction"], gasDropOffInstructionLayout],
|
|
14077
|
+
[[3, "StacksNttReceiveInstruction"], stacksNttReceiveInstructionLayout]
|
|
14067
14078
|
]
|
|
14068
14079
|
}
|
|
14069
14080
|
];
|
|
@@ -14075,7 +14086,7 @@ var relayInstructionsLayout = [
|
|
|
14075
14086
|
}
|
|
14076
14087
|
];
|
|
14077
14088
|
|
|
14078
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
14089
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/signedQuote.js
|
|
14079
14090
|
var quoteLayout = [
|
|
14080
14091
|
{
|
|
14081
14092
|
name: "quote",
|
|
@@ -14118,7 +14129,7 @@ var signedQuoteLayout = [
|
|
|
14118
14129
|
{ name: "signature", binary: "bytes", size: 65 }
|
|
14119
14130
|
];
|
|
14120
14131
|
|
|
14121
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0
|
|
14132
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.6.0/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/api.js
|
|
14122
14133
|
var RelayStatus;
|
|
14123
14134
|
(function(RelayStatus2) {
|
|
14124
14135
|
RelayStatus2["Pending"] = "pending";
|
|
@@ -14137,7 +14148,7 @@ var RequestPrefix;
|
|
|
14137
14148
|
RequestPrefix2["ERC2"] = "ERC2";
|
|
14138
14149
|
})(RequestPrefix || (RequestPrefix = {}));
|
|
14139
14150
|
|
|
14140
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.
|
|
14151
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/executorTokenBridge.js
|
|
14141
14152
|
var RELAYER_ABI = [
|
|
14142
14153
|
"function transferTokensWithRelay(address token, uint256 amount, uint16 targetChain, bytes32 targetRecipient, uint32 nonce, bytes32 dstTransferRecipient, bytes32 dstExecutionAddress, uint256 executionAmount, address refundAddr, bytes calldata signedQuoteBytes, bytes calldata relayInstructions) payable returns (uint64)",
|
|
14143
14154
|
"function wrapAndTransferEthWithRelay(uint16 targetChain, bytes32 targetRecipient, uint32 nonce, bytes32 dstTransferRecipient, bytes32 dstExecutionAddress, uint256 executionAmount, address refundAddr, bytes calldata signedQuoteBytes, bytes calldata relayInstructions) payable returns (uint64)",
|
|
@@ -14257,14 +14268,14 @@ var EvmExecutorTokenBridge = class _EvmExecutorTokenBridge {
|
|
|
14257
14268
|
}
|
|
14258
14269
|
};
|
|
14259
14270
|
|
|
14260
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.
|
|
14271
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/index.js
|
|
14261
14272
|
var ethers_contracts_exports2 = {};
|
|
14262
14273
|
__export(ethers_contracts_exports2, {
|
|
14263
14274
|
Bridge__factory: () => Bridge__factory,
|
|
14264
14275
|
TokenBridgeRelayer__factory: () => TokenBridgeRelayer__factory
|
|
14265
14276
|
});
|
|
14266
14277
|
|
|
14267
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.
|
|
14278
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/factories/Bridge__factory.js
|
|
14268
14279
|
var _abi2 = [
|
|
14269
14280
|
{
|
|
14270
14281
|
anonymous: false,
|
|
@@ -15504,7 +15515,7 @@ var Bridge__factory = class extends ContractFactory {
|
|
|
15504
15515
|
}
|
|
15505
15516
|
};
|
|
15506
15517
|
|
|
15507
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.
|
|
15518
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/factories/TokenBridgeRelayer__factory.js
|
|
15508
15519
|
var _abi3 = [
|
|
15509
15520
|
{
|
|
15510
15521
|
inputs: [
|
|
@@ -16575,7 +16586,7 @@ var TokenBridgeRelayer__factory = class extends ContractFactory {
|
|
|
16575
16586
|
}
|
|
16576
16587
|
};
|
|
16577
16588
|
|
|
16578
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.
|
|
16589
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.6.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/index.js
|
|
16579
16590
|
registerProtocol2(_platform2, "TokenBridge", EvmTokenBridge);
|
|
16580
16591
|
registerProtocol2(_platform2, "AutomaticTokenBridge", EvmAutomaticTokenBridge);
|
|
16581
16592
|
registerProtocol2(_platform2, "ExecutorTokenBridge", EvmExecutorTokenBridge);
|