@moonbeam-network/mrl 4.0.21 → 4.0.23
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 +74 -59
- 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@
|
|
24
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.0.2_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@
|
|
28
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.0.2_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@
|
|
32
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.0.2_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@
|
|
36
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.0.2_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@
|
|
153
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.0.2_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@
|
|
7319
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.0.2_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@
|
|
8389
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-core@4.0.2_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@
|
|
8392
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.0.2_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@
|
|
8530
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.0.2_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@
|
|
8638
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.0.2_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@
|
|
8642
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.0.2/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@
|
|
8647
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.0.2/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@
|
|
8723
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.0.2/node_modules/@wormhole-foundation/sdk-base/dist/esm/utils/misc.js
|
|
8724
8724
|
function lazyInstantiate(factory) {
|
|
8725
8725
|
let instance = null;
|
|
8726
8726
|
return () => {
|
|
@@ -8738,7 +8738,7 @@ function throws(fn) {
|
|
|
8738
8738
|
}
|
|
8739
8739
|
}
|
|
8740
8740
|
|
|
8741
|
-
// ../../node_modules/.pnpm/binary-layout@1.3.
|
|
8741
|
+
// ../../node_modules/.pnpm/binary-layout@1.3.2/node_modules/binary-layout/dist/index.mjs
|
|
8742
8742
|
var binaryLiterals = ["int", "uint", "bytes", "array", "switch"];
|
|
8743
8743
|
var defaultEndianness = "big";
|
|
8744
8744
|
var numberMaxSize = 6;
|
|
@@ -9612,7 +9612,7 @@ function bitsetItem(bitnames, size) {
|
|
|
9612
9612
|
};
|
|
9613
9613
|
}
|
|
9614
9614
|
|
|
9615
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@
|
|
9615
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.0.2/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@
|
|
10002
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.0.2/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@
|
|
10098
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.0.2/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)
|
|
@@ -10142,6 +10142,8 @@ var chainIdAndChainEntries = [
|
|
|
10142
10142
|
[57, "XRPLEVM"],
|
|
10143
10143
|
[58, "Plasma"],
|
|
10144
10144
|
[59, "CreditCoin"],
|
|
10145
|
+
[60, "Stacks"],
|
|
10146
|
+
[63, "Moca"],
|
|
10145
10147
|
[3104, "Wormchain"],
|
|
10146
10148
|
[4e3, "Cosmoshub"],
|
|
10147
10149
|
[4001, "Evmos"],
|
|
@@ -10185,7 +10187,7 @@ var toChain2 = (chain2) => {
|
|
|
10185
10187
|
throw Error(`Cannot convert to Chain: ${chain2}`);
|
|
10186
10188
|
};
|
|
10187
10189
|
|
|
10188
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@
|
|
10190
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.0.2/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/platforms.js
|
|
10189
10191
|
var platformAndChainsEntries = [
|
|
10190
10192
|
[
|
|
10191
10193
|
"Evm",
|
|
@@ -10225,8 +10227,9 @@ var platformAndChainsEntries = [
|
|
|
10225
10227
|
"XRPLEVM",
|
|
10226
10228
|
"Plasma",
|
|
10227
10229
|
"CreditCoin",
|
|
10228
|
-
"HyperCore"
|
|
10230
|
+
"HyperCore",
|
|
10229
10231
|
// not an actual EVM platform; treating as EVM
|
|
10232
|
+
"Moca"
|
|
10230
10233
|
]
|
|
10231
10234
|
],
|
|
10232
10235
|
[
|
|
@@ -10285,6 +10288,12 @@ var platformAndChainsEntries = [
|
|
|
10285
10288
|
[
|
|
10286
10289
|
"Near"
|
|
10287
10290
|
]
|
|
10291
|
+
],
|
|
10292
|
+
[
|
|
10293
|
+
"Stacks",
|
|
10294
|
+
[
|
|
10295
|
+
"Stacks"
|
|
10296
|
+
]
|
|
10288
10297
|
]
|
|
10289
10298
|
];
|
|
10290
10299
|
var platforms = column(platformAndChainsEntries, 0);
|
|
@@ -10299,11 +10308,12 @@ var platformAddressFormatEntries = [
|
|
|
10299
10308
|
["Algorand", "algorandAppId"],
|
|
10300
10309
|
["Sui", "hex"],
|
|
10301
10310
|
["Aptos", "hex"],
|
|
10302
|
-
["Near", "sha256"]
|
|
10311
|
+
["Near", "sha256"],
|
|
10312
|
+
["Stacks", "keccak256"]
|
|
10303
10313
|
];
|
|
10304
10314
|
var platformToAddressFormat = constMap(platformAddressFormatEntries);
|
|
10305
10315
|
|
|
10306
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@
|
|
10316
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-base@4.0.2/node_modules/@wormhole-foundation/sdk-base/dist/esm/constants/tbtc.js
|
|
10307
10317
|
var tbtc_exports = {};
|
|
10308
10318
|
__export(tbtc_exports, {
|
|
10309
10319
|
tbtcTokens: () => tbtcTokens
|
|
@@ -13125,7 +13135,7 @@ function sqrtMod(y) {
|
|
|
13125
13135
|
var Fpk1 = Field(secp256k1_CURVE.p, { sqrt: sqrtMod });
|
|
13126
13136
|
var secp256k1 = createCurve({ ...secp256k1_CURVE, Fp: Fpk1, lowS: true, endo: secp256k1_ENDO }, sha256);
|
|
13127
13137
|
|
|
13128
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13138
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/universalAddress.js
|
|
13129
13139
|
var algorandAppIdLayout = [
|
|
13130
13140
|
{ name: "appIdPrefix", binary: "bytes", custom: encoding_exports.bytes.encode("appID"), omit: true },
|
|
13131
13141
|
{ name: "appId", binary: "uint", size: 8 }
|
|
@@ -13177,15 +13187,19 @@ var UniversalAddress2 = class _UniversalAddress {
|
|
|
13177
13187
|
return sha512_2562(serialize4(algorandAppIdLayout, { appId: BigInt(address) }));
|
|
13178
13188
|
case "sha256":
|
|
13179
13189
|
return sha2562(address);
|
|
13190
|
+
case "keccak256":
|
|
13191
|
+
return keccak_2562(address);
|
|
13180
13192
|
}
|
|
13181
13193
|
})();
|
|
13194
|
+
if (!decoded)
|
|
13195
|
+
throw new Error(`string ${address} could not be decoded for format ${format}`);
|
|
13182
13196
|
if (decoded.length > _UniversalAddress.byteSize)
|
|
13183
13197
|
throw new Error(`string ${address} has invalid length for format ${format}`);
|
|
13184
13198
|
return decoded.length < _UniversalAddress.byteSize ? encoding_exports.bytes.zpad(decoded, _UniversalAddress.byteSize) : decoded;
|
|
13185
13199
|
}
|
|
13186
13200
|
};
|
|
13187
13201
|
|
|
13188
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13202
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/address.js
|
|
13189
13203
|
function isChainSpecificAddress(thing) {
|
|
13190
13204
|
return typeof thing === "object" && "setChain" in thing;
|
|
13191
13205
|
}
|
|
@@ -13215,7 +13229,7 @@ function toUniversal(chain2, address) {
|
|
|
13215
13229
|
return new UniversalAddress2(address, platformToAddressFormat.get(platform));
|
|
13216
13230
|
}
|
|
13217
13231
|
|
|
13218
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13232
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/registration.js
|
|
13219
13233
|
var composeLiteral = (protocol, payloadName) => protocol ? `${protocol}:${payloadName}` : payloadName;
|
|
13220
13234
|
var payloadFactory = /* @__PURE__ */ new Map();
|
|
13221
13235
|
function registerPayloadType(protocol, name, layout) {
|
|
@@ -13229,13 +13243,13 @@ function registerPayloadTypes(protocol, payloads) {
|
|
|
13229
13243
|
registerPayloadType(protocol, name, layout);
|
|
13230
13244
|
}
|
|
13231
13245
|
|
|
13232
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13246
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/amount.js
|
|
13233
13247
|
var amountItem = {
|
|
13234
13248
|
binary: "uint",
|
|
13235
13249
|
size: 32
|
|
13236
13250
|
};
|
|
13237
13251
|
|
|
13238
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13252
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/chain.js
|
|
13239
13253
|
var chainItemBase = { binary: "uint", size: 2 };
|
|
13240
13254
|
var chainItem = (opts) => ({
|
|
13241
13255
|
...chainItemBase,
|
|
@@ -13256,7 +13270,7 @@ var chainItem = (opts) => ({
|
|
|
13256
13270
|
}
|
|
13257
13271
|
});
|
|
13258
13272
|
|
|
13259
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13273
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/circle.js
|
|
13260
13274
|
var circleDomainItem = {
|
|
13261
13275
|
binary: "uint",
|
|
13262
13276
|
size: 4
|
|
@@ -13266,19 +13280,19 @@ var circleNonceItem = {
|
|
|
13266
13280
|
size: 8
|
|
13267
13281
|
};
|
|
13268
13282
|
|
|
13269
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13283
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/date.js
|
|
13270
13284
|
var dateConversion = {
|
|
13271
13285
|
to: (encoded) => new Date(Number(encoded * 1000n)),
|
|
13272
13286
|
from: (decoded) => BigInt(decoded.getTime()) / 1000n
|
|
13273
13287
|
};
|
|
13274
13288
|
|
|
13275
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13289
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/guardianSet.js
|
|
13276
13290
|
var guardianSetItem = {
|
|
13277
13291
|
binary: "uint",
|
|
13278
13292
|
size: 4
|
|
13279
13293
|
};
|
|
13280
13294
|
|
|
13281
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13295
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/payloadId.js
|
|
13282
13296
|
var payloadIdItem = (id2) => ({
|
|
13283
13297
|
name: "payloadId",
|
|
13284
13298
|
binary: "uint",
|
|
@@ -13287,13 +13301,13 @@ var payloadIdItem = (id2) => ({
|
|
|
13287
13301
|
omit: true
|
|
13288
13302
|
});
|
|
13289
13303
|
|
|
13290
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13304
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/sequence.js
|
|
13291
13305
|
var sequenceItem = {
|
|
13292
13306
|
binary: "uint",
|
|
13293
13307
|
size: 8
|
|
13294
13308
|
};
|
|
13295
13309
|
|
|
13296
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13310
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/signature.js
|
|
13297
13311
|
var Signature = class {
|
|
13298
13312
|
r;
|
|
13299
13313
|
s;
|
|
@@ -13337,7 +13351,7 @@ var SignatureUtils;
|
|
|
13337
13351
|
SignatureUtils2.recover = recover;
|
|
13338
13352
|
})(SignatureUtils || (SignatureUtils = {}));
|
|
13339
13353
|
|
|
13340
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13354
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/signature.js
|
|
13341
13355
|
var signatureLayout = [
|
|
13342
13356
|
{ name: "r", binary: "uint", size: 32 },
|
|
13343
13357
|
{ name: "s", binary: "uint", size: 32 },
|
|
@@ -13352,7 +13366,7 @@ var signatureItem = {
|
|
|
13352
13366
|
}
|
|
13353
13367
|
};
|
|
13354
13368
|
|
|
13355
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13369
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/universalAddress.js
|
|
13356
13370
|
var universalAddressItem = {
|
|
13357
13371
|
binary: "bytes",
|
|
13358
13372
|
size: 32,
|
|
@@ -13362,7 +13376,7 @@ var universalAddressItem = {
|
|
|
13362
13376
|
}
|
|
13363
13377
|
};
|
|
13364
13378
|
|
|
13365
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13379
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/layout-items/string.js
|
|
13366
13380
|
var trimZeros = (arr) => {
|
|
13367
13381
|
const i = arr.findIndex((x) => x !== 0);
|
|
13368
13382
|
return -1 < i ? arr.slice(i) : new Uint8Array([]);
|
|
@@ -13380,7 +13394,7 @@ var fixedLengthStringItem = (size) => ({
|
|
|
13380
13394
|
}
|
|
13381
13395
|
});
|
|
13382
13396
|
|
|
13383
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13397
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/vaa.js
|
|
13384
13398
|
var guardianSignatureLayout = [
|
|
13385
13399
|
{ name: "guardianIndex", binary: "uint", size: 1 },
|
|
13386
13400
|
{ name: "signature", ...signatureItem }
|
|
@@ -13400,7 +13414,7 @@ var envelopeLayout = [
|
|
|
13400
13414
|
];
|
|
13401
13415
|
var baseLayout = [...headerLayout, ...envelopeLayout];
|
|
13402
13416
|
|
|
13403
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13417
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/vaa/functions.js
|
|
13404
13418
|
function getPayloadLayout(layoutLiteral) {
|
|
13405
13419
|
const layout = payloadFactory.get(layoutLiteral);
|
|
13406
13420
|
if (!layout)
|
|
@@ -13425,7 +13439,7 @@ function payloadDiscriminator(payloadLiterals, allowAmbiguous) {
|
|
|
13425
13439
|
});
|
|
13426
13440
|
}
|
|
13427
13441
|
|
|
13428
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13442
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/automaticCircleBridgeLayout.js
|
|
13429
13443
|
var depositWithPayloadLayout = (customPayload) => [
|
|
13430
13444
|
payloadIdItem(1),
|
|
13431
13445
|
{
|
|
@@ -13455,7 +13469,7 @@ var automaticCircleBridgeNamedPayloads = [
|
|
|
13455
13469
|
];
|
|
13456
13470
|
registerPayloadTypes("AutomaticCircleBridge", automaticCircleBridgeNamedPayloads);
|
|
13457
13471
|
|
|
13458
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13472
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridgeLayout.js
|
|
13459
13473
|
var messageVersionItem = { binary: "uint", size: 4, custom: 0, omit: true };
|
|
13460
13474
|
var circleBurnMessageLayout = [
|
|
13461
13475
|
// messageBodyVersion is:
|
|
@@ -13485,7 +13499,7 @@ var circleBridgeNamedPayloads = [
|
|
|
13485
13499
|
];
|
|
13486
13500
|
registerPayloadTypes("CircleBridge", circleBridgeNamedPayloads);
|
|
13487
13501
|
|
|
13488
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13502
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/circleBridge/circleBridge.js
|
|
13489
13503
|
var CircleBridge;
|
|
13490
13504
|
(function(CircleBridge2) {
|
|
13491
13505
|
const _protocol = "CircleBridge";
|
|
@@ -13509,7 +13523,7 @@ var AutomaticCircleBridge;
|
|
|
13509
13523
|
AutomaticCircleBridge2.getTransferDiscriminator = lazyInstantiate(() => payloadDiscriminator([_protocol, _payloads]));
|
|
13510
13524
|
})(AutomaticCircleBridge || (AutomaticCircleBridge = {}));
|
|
13511
13525
|
|
|
13512
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13526
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridgeLayout.js
|
|
13513
13527
|
var fixedLengthStringItem2 = {
|
|
13514
13528
|
binary: "bytes",
|
|
13515
13529
|
size: 32,
|
|
@@ -13571,7 +13585,7 @@ var tokenBridgeNamedPayloads = [
|
|
|
13571
13585
|
];
|
|
13572
13586
|
registerPayloadTypes("TokenBridge", tokenBridgeNamedPayloads);
|
|
13573
13587
|
|
|
13574
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13588
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/porticoLayout.js
|
|
13575
13589
|
var flagsItem = bitsetItem(["shouldWrapNative", "shouldUnwrapNative"]);
|
|
13576
13590
|
var porticoFlagSetLayout = [
|
|
13577
13591
|
{ name: "recipientChain", binary: "uint", endianness: "little", size: 2 },
|
|
@@ -13606,7 +13620,7 @@ var namedPayloads = [
|
|
|
13606
13620
|
];
|
|
13607
13621
|
registerPayloadTypes("PorticoBridge", namedPayloads);
|
|
13608
13622
|
|
|
13609
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13623
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/portico/portico.js
|
|
13610
13624
|
var PorticoBridge;
|
|
13611
13625
|
(function(PorticoBridge2) {
|
|
13612
13626
|
const _protocol = "PorticoBridge";
|
|
@@ -13626,7 +13640,7 @@ var PorticoBridge;
|
|
|
13626
13640
|
};
|
|
13627
13641
|
})(PorticoBridge || (PorticoBridge = {}));
|
|
13628
13642
|
|
|
13629
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13643
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/relayer/relayerLayout.js
|
|
13630
13644
|
var encodedExecutionInfoItem = {
|
|
13631
13645
|
binary: "bytes",
|
|
13632
13646
|
layout: [
|
|
@@ -13693,7 +13707,7 @@ var namedPayloads2 = [
|
|
|
13693
13707
|
];
|
|
13694
13708
|
registerPayloadTypes("Relayer", namedPayloads2);
|
|
13695
13709
|
|
|
13696
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13710
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/automaticTokenBridgeLayout.js
|
|
13697
13711
|
var connectPayload = [
|
|
13698
13712
|
payloadIdItem(1),
|
|
13699
13713
|
{ name: "targetRelayerFee", ...amountItem },
|
|
@@ -13705,7 +13719,7 @@ var automaticTokenBridgeNamedPayloads = [
|
|
|
13705
13719
|
];
|
|
13706
13720
|
registerPayloadTypes("AutomaticTokenBridge", automaticTokenBridgeNamedPayloads);
|
|
13707
13721
|
|
|
13708
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13722
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/tokenBridge.js
|
|
13709
13723
|
var TokenBridge;
|
|
13710
13724
|
(function(TokenBridge2) {
|
|
13711
13725
|
const _protocol = "TokenBridge";
|
|
@@ -13725,21 +13739,21 @@ var ExecutorTokenBridge;
|
|
|
13725
13739
|
const _payloads = ["TransferWithExecutorRelay"];
|
|
13726
13740
|
})(ExecutorTokenBridge || (ExecutorTokenBridge = {}));
|
|
13727
13741
|
|
|
13728
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13742
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tokenBridge/executorTokenBridgeLayout.js
|
|
13729
13743
|
var payload = [{ name: "targetRecipient", ...universalAddressItem }];
|
|
13730
13744
|
var executorTokenBridgeNamedPayloads = [
|
|
13731
13745
|
["TransferWithExecutorRelay", transferWithPayloadLayout(payload)]
|
|
13732
13746
|
];
|
|
13733
13747
|
registerPayloadTypes("ExecutorTokenBridge", executorTokenBridgeNamedPayloads);
|
|
13734
13748
|
|
|
13735
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13749
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/globalAccountant.js
|
|
13736
13750
|
var modificationKinds = [
|
|
13737
13751
|
["Add", 1],
|
|
13738
13752
|
["Subtract", 2],
|
|
13739
13753
|
["Unknown", 3]
|
|
13740
13754
|
];
|
|
13741
13755
|
|
|
13742
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
13756
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/governance/layout.js
|
|
13743
13757
|
var rawEvmAddressItem = {
|
|
13744
13758
|
binary: "bytes",
|
|
13745
13759
|
size: 20,
|
|
@@ -14001,7 +14015,7 @@ registerPayloadTypes("GeneralPurposeGovernance", generalPurposeGovernancePayload
|
|
|
14001
14015
|
registerPayloadTypes("WormchainGovernance", wormchainGovernancePayloads);
|
|
14002
14016
|
registerPayloadTypes("GatewayGovernance", gatewayGovernancePayloads);
|
|
14003
14017
|
|
|
14004
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
14018
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtc.js
|
|
14005
14019
|
var TBTCBridge;
|
|
14006
14020
|
(function(TBTCBridge2) {
|
|
14007
14021
|
const _protocol = "TBTCBridge";
|
|
@@ -14019,7 +14033,7 @@ var TBTCBridge;
|
|
|
14019
14033
|
};
|
|
14020
14034
|
})(TBTCBridge || (TBTCBridge = {}));
|
|
14021
14035
|
|
|
14022
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
14036
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/tbtc/tbtcLayout.js
|
|
14023
14037
|
var tbtcPayloadLayout = [
|
|
14024
14038
|
{ name: "recipient", ...universalAddressItem }
|
|
14025
14039
|
];
|
|
@@ -14032,7 +14046,7 @@ var namedPayloads3 = [
|
|
|
14032
14046
|
];
|
|
14033
14047
|
registerPayloadTypes("TBTCBridge", namedPayloads3);
|
|
14034
14048
|
|
|
14035
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
14049
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/relayInstruction.js
|
|
14036
14050
|
var gasInstructionLayout = [
|
|
14037
14051
|
{ name: "gasLimit", binary: "uint", size: 16 },
|
|
14038
14052
|
{ name: "msgValue", binary: "uint", size: 16 }
|
|
@@ -14061,7 +14075,7 @@ var relayInstructionsLayout = [
|
|
|
14061
14075
|
}
|
|
14062
14076
|
];
|
|
14063
14077
|
|
|
14064
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
14078
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/signedQuote.js
|
|
14065
14079
|
var quoteLayout = [
|
|
14066
14080
|
{
|
|
14067
14081
|
name: "quote",
|
|
@@ -14104,7 +14118,7 @@ var signedQuoteLayout = [
|
|
|
14104
14118
|
{ name: "signature", binary: "bytes", size: 65 }
|
|
14105
14119
|
];
|
|
14106
14120
|
|
|
14107
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@
|
|
14121
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-definitions@4.0.2/node_modules/@wormhole-foundation/sdk-definitions/dist/esm/protocols/executor/api.js
|
|
14108
14122
|
var RelayStatus;
|
|
14109
14123
|
(function(RelayStatus2) {
|
|
14110
14124
|
RelayStatus2["Pending"] = "pending";
|
|
@@ -14123,7 +14137,7 @@ var RequestPrefix;
|
|
|
14123
14137
|
RequestPrefix2["ERC2"] = "ERC2";
|
|
14124
14138
|
})(RequestPrefix || (RequestPrefix = {}));
|
|
14125
14139
|
|
|
14126
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@
|
|
14140
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.0.2_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/executorTokenBridge.js
|
|
14127
14141
|
var RELAYER_ABI = [
|
|
14128
14142
|
"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)",
|
|
14129
14143
|
"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)",
|
|
@@ -14225,6 +14239,7 @@ var EvmExecutorTokenBridge = class _EvmExecutorTokenBridge {
|
|
|
14225
14239
|
switch (receivedToken.chain) {
|
|
14226
14240
|
case "Arbitrum":
|
|
14227
14241
|
case "Bsc":
|
|
14242
|
+
case "Monad":
|
|
14228
14243
|
case "Moonbeam":
|
|
14229
14244
|
gasLimit = 1000000n;
|
|
14230
14245
|
break;
|
|
@@ -14242,14 +14257,14 @@ var EvmExecutorTokenBridge = class _EvmExecutorTokenBridge {
|
|
|
14242
14257
|
}
|
|
14243
14258
|
};
|
|
14244
14259
|
|
|
14245
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@
|
|
14260
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.0.2_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/ethers-contracts/index.js
|
|
14246
14261
|
var ethers_contracts_exports2 = {};
|
|
14247
14262
|
__export(ethers_contracts_exports2, {
|
|
14248
14263
|
Bridge__factory: () => Bridge__factory,
|
|
14249
14264
|
TokenBridgeRelayer__factory: () => TokenBridgeRelayer__factory
|
|
14250
14265
|
});
|
|
14251
14266
|
|
|
14252
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@
|
|
14267
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.0.2_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
|
|
14253
14268
|
var _abi2 = [
|
|
14254
14269
|
{
|
|
14255
14270
|
anonymous: false,
|
|
@@ -15489,7 +15504,7 @@ var Bridge__factory = class extends ContractFactory {
|
|
|
15489
15504
|
}
|
|
15490
15505
|
};
|
|
15491
15506
|
|
|
15492
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@
|
|
15507
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.0.2_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
|
|
15493
15508
|
var _abi3 = [
|
|
15494
15509
|
{
|
|
15495
15510
|
inputs: [
|
|
@@ -16560,7 +16575,7 @@ var TokenBridgeRelayer__factory = class extends ContractFactory {
|
|
|
16560
16575
|
}
|
|
16561
16576
|
};
|
|
16562
16577
|
|
|
16563
|
-
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@
|
|
16578
|
+
// ../../node_modules/.pnpm/@wormhole-foundation+sdk-evm-tokenbridge@4.0.2_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/@wormhole-foundation/sdk-evm-tokenbridge/dist/esm/index.js
|
|
16564
16579
|
registerProtocol2(_platform2, "TokenBridge", EvmTokenBridge);
|
|
16565
16580
|
registerProtocol2(_platform2, "AutomaticTokenBridge", EvmAutomaticTokenBridge);
|
|
16566
16581
|
registerProtocol2(_platform2, "ExecutorTokenBridge", EvmExecutorTokenBridge);
|