@wormhole-foundation/sdk-definitions-ntt 0.9.0-multi-token-alpha.0 → 1.0.0
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/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/layouts/index.d.ts +13 -326
- package/dist/cjs/layouts/index.d.ts.map +1 -1
- package/dist/cjs/layouts/index.js +1 -19
- package/dist/cjs/layouts/index.js.map +1 -1
- package/dist/cjs/layouts/transceiver.d.ts +2 -2
- package/dist/cjs/layouts/transfer.d.ts +2 -2
- package/dist/cjs/ntt.d.ts +3 -3
- package/dist/cjs/ntt.d.ts.map +1 -1
- package/dist/cjs/ntt.js +0 -1
- package/dist/cjs/ntt.js.map +1 -1
- package/dist/cjs/nttWithExecutor.d.ts +35 -0
- package/dist/cjs/nttWithExecutor.d.ts.map +1 -0
- package/dist/cjs/nttWithExecutor.js +3 -0
- package/dist/cjs/nttWithExecutor.js.map +1 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/layouts/index.d.ts +13 -326
- package/dist/esm/layouts/index.d.ts.map +1 -1
- package/dist/esm/layouts/index.js +0 -18
- package/dist/esm/layouts/index.js.map +1 -1
- package/dist/esm/layouts/transceiver.d.ts +2 -2
- package/dist/esm/layouts/transfer.d.ts +2 -2
- package/dist/esm/ntt.d.ts +3 -3
- package/dist/esm/ntt.d.ts.map +1 -1
- package/dist/esm/ntt.js +0 -1
- package/dist/esm/ntt.js.map +1 -1
- package/dist/esm/nttWithExecutor.d.ts +35 -0
- package/dist/esm/nttWithExecutor.d.ts.map +1 -0
- package/dist/esm/nttWithExecutor.js +2 -0
- package/dist/esm/nttWithExecutor.js.map +1 -0
- package/package.json +3 -3
- package/dist/cjs/layouts/multiToken.d.ts +0 -209
- package/dist/cjs/layouts/multiToken.d.ts.map +0 -1
- package/dist/cjs/layouts/multiToken.js +0 -48
- package/dist/cjs/layouts/multiToken.js.map +0 -1
- package/dist/cjs/multiTokenNtt.d.ts +0 -133
- package/dist/cjs/multiTokenNtt.d.ts.map +0 -1
- package/dist/cjs/multiTokenNtt.js +0 -22
- package/dist/cjs/multiTokenNtt.js.map +0 -1
- package/dist/esm/layouts/multiToken.d.ts +0 -209
- package/dist/esm/layouts/multiToken.d.ts.map +0 -1
- package/dist/esm/layouts/multiToken.js +0 -44
- package/dist/esm/layouts/multiToken.js.map +0 -1
- package/dist/esm/multiTokenNtt.d.ts +0 -133
- package/dist/esm/multiTokenNtt.d.ts.map +0 -1
- package/dist/esm/multiTokenNtt.js +0 -19
- package/dist/esm/multiTokenNtt.js.map +0 -1
package/dist/cjs/index.d.ts
CHANGED
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAKA,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AAErC,cAAc,oBAAoB,CAAC;AACnC,mBAAmB,oBAAoB,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -17,8 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
const sdk_definitions_1 = require("@wormhole-foundation/sdk-definitions");
|
|
18
18
|
const index_js_1 = require("./layouts/index.js");
|
|
19
19
|
(0, sdk_definitions_1.registerPayloadTypes)("Ntt", index_js_1.nttNamedPayloads);
|
|
20
|
-
(0, sdk_definitions_1.registerPayloadTypes)("MultiTokenNtt", index_js_1.multiTokenNttNamedPayloads);
|
|
21
20
|
__exportStar(require("./ntt.js"), exports);
|
|
22
|
-
__exportStar(require("./
|
|
21
|
+
__exportStar(require("./nttWithExecutor.js"), exports);
|
|
23
22
|
__exportStar(require("./layouts/index.js"), exports);
|
|
24
23
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0EAA4E;AAC5E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0EAA4E;AAC5E,iDAAsD;AAEtD,IAAA,sCAAoB,EAAC,KAAK,EAAE,2BAAgB,CAAC,CAAC;AAE9C,2CAAyB;AACzB,uDAAqC;AAErC,qDAAmC"}
|
|
@@ -73,8 +73,8 @@ export declare const nttNamedPayloads: readonly [readonly ["WormholeTransfer", r
|
|
|
73
73
|
readonly name: "recipientAddress";
|
|
74
74
|
}, {
|
|
75
75
|
readonly custom: {
|
|
76
|
-
to: (val: number) => "Solana" | "Ethereum" | "
|
|
77
|
-
from: (val: "Solana" | "Ethereum" | "
|
|
76
|
+
to: (val: number) => "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
77
|
+
from: (val: "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
78
78
|
};
|
|
79
79
|
readonly binary: "uint";
|
|
80
80
|
readonly size: 2;
|
|
@@ -99,8 +99,8 @@ export declare const nttNamedPayloads: readonly [readonly ["WormholeTransfer", r
|
|
|
99
99
|
readonly binary: "bytes";
|
|
100
100
|
readonly layout: readonly [{
|
|
101
101
|
readonly custom: {
|
|
102
|
-
to: (val: number) => "Solana" | "Ethereum" | "
|
|
103
|
-
from: (val: "Solana" | "Ethereum" | "
|
|
102
|
+
to: (val: number) => "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
103
|
+
from: (val: "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
104
104
|
};
|
|
105
105
|
readonly binary: "uint";
|
|
106
106
|
readonly size: 2;
|
|
@@ -192,8 +192,8 @@ export declare const nttNamedPayloads: readonly [readonly ["WormholeTransfer", r
|
|
|
192
192
|
readonly name: "recipientAddress";
|
|
193
193
|
}, {
|
|
194
194
|
readonly custom: {
|
|
195
|
-
to: (val: number) => "Solana" | "Ethereum" | "
|
|
196
|
-
from: (val: "Solana" | "Ethereum" | "
|
|
195
|
+
to: (val: number) => "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
196
|
+
from: (val: "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
197
197
|
};
|
|
198
198
|
readonly binary: "uint";
|
|
199
199
|
readonly size: 2;
|
|
@@ -250,8 +250,8 @@ export declare const nttNamedPayloads: readonly [readonly ["WormholeTransfer", r
|
|
|
250
250
|
readonly binary: "bytes";
|
|
251
251
|
readonly layout: readonly [{
|
|
252
252
|
readonly custom: {
|
|
253
|
-
to: (val: number) => "Solana" | "Ethereum" | "
|
|
254
|
-
from: (val: "Solana" | "Ethereum" | "
|
|
253
|
+
to: (val: number) => "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
254
|
+
from: (val: "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
255
255
|
};
|
|
256
256
|
readonly binary: "uint";
|
|
257
257
|
readonly size: 2;
|
|
@@ -300,8 +300,8 @@ export declare const nttNamedPayloads: readonly [readonly ["WormholeTransfer", r
|
|
|
300
300
|
readonly idTag: "keyType";
|
|
301
301
|
readonly layouts: readonly [readonly [readonly [1, "VAA"], readonly [{
|
|
302
302
|
readonly custom: {
|
|
303
|
-
to: (val: number) => "Solana" | "Ethereum" | "
|
|
304
|
-
from: (val: "Solana" | "Ethereum" | "
|
|
303
|
+
to: (val: number) => "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
304
|
+
from: (val: "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
305
305
|
};
|
|
306
306
|
readonly binary: "uint";
|
|
307
307
|
readonly size: 2;
|
|
@@ -370,8 +370,8 @@ export declare const nttNamedPayloads: readonly [readonly ["WormholeTransfer", r
|
|
|
370
370
|
readonly omit: true;
|
|
371
371
|
}, {
|
|
372
372
|
readonly custom: {
|
|
373
|
-
to: (val: number) => "Solana" | "Ethereum" | "
|
|
374
|
-
from: (val: "Solana" | "Ethereum" | "
|
|
373
|
+
to: (val: number) => "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
374
|
+
from: (val: "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
375
375
|
};
|
|
376
376
|
readonly binary: "uint";
|
|
377
377
|
readonly size: 2;
|
|
@@ -385,326 +385,14 @@ export declare const nttNamedPayloads: readonly [readonly ["WormholeTransfer", r
|
|
|
385
385
|
};
|
|
386
386
|
readonly name: "transceiver";
|
|
387
387
|
}]]];
|
|
388
|
-
export declare const multiTokenNttNamedPayloads: readonly [readonly ["WormholeTransferStandardRelayer", readonly [{
|
|
389
|
-
readonly name: "payloadId";
|
|
390
|
-
readonly binary: "uint";
|
|
391
|
-
readonly size: 1;
|
|
392
|
-
readonly custom: 1;
|
|
393
|
-
readonly omit: true;
|
|
394
|
-
}, {
|
|
395
|
-
readonly binary: "bytes";
|
|
396
|
-
readonly layout: readonly [{
|
|
397
|
-
readonly custom: {
|
|
398
|
-
to: (val: number) => "Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
399
|
-
from: (val: "Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
400
|
-
};
|
|
401
|
-
readonly binary: "uint";
|
|
402
|
-
readonly size: 2;
|
|
403
|
-
readonly name: "chain";
|
|
404
|
-
}, {
|
|
405
|
-
readonly binary: "bytes";
|
|
406
|
-
readonly size: 32;
|
|
407
|
-
readonly custom: {
|
|
408
|
-
to: (val: Uint8Array) => import("@wormhole-foundation/sdk-definitions").UniversalAddress;
|
|
409
|
-
from: (val: import("@wormhole-foundation/sdk-definitions").UniversalAddress) => Uint8Array;
|
|
410
|
-
};
|
|
411
|
-
readonly name: "address";
|
|
412
|
-
}];
|
|
413
|
-
readonly name: "target";
|
|
414
|
-
}, import("binary-layout").CustomizableBytesReturn<{
|
|
415
|
-
readonly name: "payload";
|
|
416
|
-
readonly lengthSize: 4;
|
|
417
|
-
}, readonly [{
|
|
418
|
-
readonly name: "prefix";
|
|
419
|
-
readonly binary: "bytes";
|
|
420
|
-
readonly custom: Uint8Array;
|
|
421
|
-
readonly omit: true;
|
|
422
|
-
}, {
|
|
423
|
-
readonly binary: "bytes";
|
|
424
|
-
readonly size: 32;
|
|
425
|
-
readonly custom: {
|
|
426
|
-
to: (val: Uint8Array) => import("@wormhole-foundation/sdk-definitions").UniversalAddress;
|
|
427
|
-
from: (val: import("@wormhole-foundation/sdk-definitions").UniversalAddress) => Uint8Array;
|
|
428
|
-
};
|
|
429
|
-
readonly name: "sourceNttManager";
|
|
430
|
-
}, {
|
|
431
|
-
readonly binary: "bytes";
|
|
432
|
-
readonly size: 32;
|
|
433
|
-
readonly custom: {
|
|
434
|
-
to: (val: Uint8Array) => import("@wormhole-foundation/sdk-definitions").UniversalAddress;
|
|
435
|
-
from: (val: import("@wormhole-foundation/sdk-definitions").UniversalAddress) => Uint8Array;
|
|
436
|
-
};
|
|
437
|
-
readonly name: "recipientNttManager";
|
|
438
|
-
}, import("binary-layout").CustomizableBytesReturn<{
|
|
439
|
-
readonly name: "nttManagerPayload";
|
|
440
|
-
readonly lengthSize: 2;
|
|
441
|
-
}, readonly [{
|
|
442
|
-
readonly name: "id";
|
|
443
|
-
readonly binary: "bytes";
|
|
444
|
-
readonly size: 32;
|
|
445
|
-
}, {
|
|
446
|
-
readonly binary: "bytes";
|
|
447
|
-
readonly size: 32;
|
|
448
|
-
readonly custom: {
|
|
449
|
-
to: (val: Uint8Array) => import("@wormhole-foundation/sdk-definitions").UniversalAddress;
|
|
450
|
-
from: (val: import("@wormhole-foundation/sdk-definitions").UniversalAddress) => Uint8Array;
|
|
451
|
-
};
|
|
452
|
-
readonly name: "sender";
|
|
453
|
-
}, import("binary-layout").CustomizableBytesReturn<{
|
|
454
|
-
readonly name: "payload";
|
|
455
|
-
readonly lengthSize: 2;
|
|
456
|
-
}, readonly [{
|
|
457
|
-
readonly name: "prefix";
|
|
458
|
-
readonly binary: "bytes";
|
|
459
|
-
readonly custom: Uint8Array;
|
|
460
|
-
readonly omit: true;
|
|
461
|
-
}, {
|
|
462
|
-
readonly custom: {
|
|
463
|
-
to: (val: number) => "Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
464
|
-
from: (val: "Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
465
|
-
};
|
|
466
|
-
readonly binary: "uint";
|
|
467
|
-
readonly size: 2;
|
|
468
|
-
readonly name: "toChain";
|
|
469
|
-
}, {
|
|
470
|
-
readonly binary: "bytes";
|
|
471
|
-
readonly size: 32;
|
|
472
|
-
readonly custom: {
|
|
473
|
-
to: (val: Uint8Array) => import("@wormhole-foundation/sdk-definitions").UniversalAddress;
|
|
474
|
-
from: (val: import("@wormhole-foundation/sdk-definitions").UniversalAddress) => Uint8Array;
|
|
475
|
-
};
|
|
476
|
-
readonly name: "callee";
|
|
477
|
-
}, {
|
|
478
|
-
readonly binary: "bytes";
|
|
479
|
-
readonly size: 32;
|
|
480
|
-
readonly custom: {
|
|
481
|
-
to: (val: Uint8Array) => import("@wormhole-foundation/sdk-definitions").UniversalAddress;
|
|
482
|
-
from: (val: import("@wormhole-foundation/sdk-definitions").UniversalAddress) => Uint8Array;
|
|
483
|
-
};
|
|
484
|
-
readonly name: "sender";
|
|
485
|
-
}, import("binary-layout").CustomizableBytesReturn<{
|
|
486
|
-
readonly name: "data";
|
|
487
|
-
readonly lengthSize: 2;
|
|
488
|
-
}, readonly [{
|
|
489
|
-
readonly name: "prefix";
|
|
490
|
-
readonly binary: "bytes";
|
|
491
|
-
readonly custom: Uint8Array;
|
|
492
|
-
readonly omit: true;
|
|
493
|
-
}, {
|
|
494
|
-
readonly binary: "bytes";
|
|
495
|
-
readonly layout: readonly [{
|
|
496
|
-
readonly name: "decimals";
|
|
497
|
-
readonly binary: "uint";
|
|
498
|
-
readonly size: 1;
|
|
499
|
-
}, {
|
|
500
|
-
readonly name: "amount";
|
|
501
|
-
readonly binary: "uint";
|
|
502
|
-
readonly size: 8;
|
|
503
|
-
}];
|
|
504
|
-
readonly name: "trimmedAmount";
|
|
505
|
-
}, {
|
|
506
|
-
readonly binary: "bytes";
|
|
507
|
-
readonly layout: readonly [{
|
|
508
|
-
readonly binary: "bytes";
|
|
509
|
-
readonly layout: readonly [{
|
|
510
|
-
readonly binary: "bytes";
|
|
511
|
-
readonly size: number;
|
|
512
|
-
readonly custom: {
|
|
513
|
-
to: (val: Uint8Array) => string;
|
|
514
|
-
from: (val: string) => Uint8Array;
|
|
515
|
-
};
|
|
516
|
-
readonly name: "name";
|
|
517
|
-
}, {
|
|
518
|
-
readonly binary: "bytes";
|
|
519
|
-
readonly size: number;
|
|
520
|
-
readonly custom: {
|
|
521
|
-
to: (val: Uint8Array) => string;
|
|
522
|
-
from: (val: string) => Uint8Array;
|
|
523
|
-
};
|
|
524
|
-
readonly name: "symbol";
|
|
525
|
-
}, {
|
|
526
|
-
readonly name: "decimals";
|
|
527
|
-
readonly binary: "uint";
|
|
528
|
-
readonly size: 1;
|
|
529
|
-
}];
|
|
530
|
-
readonly name: "meta";
|
|
531
|
-
}, {
|
|
532
|
-
readonly binary: "bytes";
|
|
533
|
-
readonly layout: readonly [{
|
|
534
|
-
readonly custom: {
|
|
535
|
-
to: (val: number) => "Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
536
|
-
from: (val: "Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
537
|
-
};
|
|
538
|
-
readonly binary: "uint";
|
|
539
|
-
readonly size: 2;
|
|
540
|
-
readonly name: "chainId";
|
|
541
|
-
}, {
|
|
542
|
-
readonly binary: "bytes";
|
|
543
|
-
readonly size: 32;
|
|
544
|
-
readonly custom: {
|
|
545
|
-
to: (val: Uint8Array) => import("@wormhole-foundation/sdk-definitions").UniversalAddress;
|
|
546
|
-
from: (val: import("@wormhole-foundation/sdk-definitions").UniversalAddress) => Uint8Array;
|
|
547
|
-
};
|
|
548
|
-
readonly name: "tokenAddress";
|
|
549
|
-
}];
|
|
550
|
-
readonly name: "token";
|
|
551
|
-
}];
|
|
552
|
-
readonly name: "token";
|
|
553
|
-
}, {
|
|
554
|
-
readonly binary: "bytes";
|
|
555
|
-
readonly size: 32;
|
|
556
|
-
readonly custom: {
|
|
557
|
-
to: (val: Uint8Array) => import("@wormhole-foundation/sdk-definitions").UniversalAddress;
|
|
558
|
-
from: (val: import("@wormhole-foundation/sdk-definitions").UniversalAddress) => Uint8Array;
|
|
559
|
-
};
|
|
560
|
-
readonly name: "sender";
|
|
561
|
-
}, {
|
|
562
|
-
readonly binary: "bytes";
|
|
563
|
-
readonly size: 32;
|
|
564
|
-
readonly custom: {
|
|
565
|
-
to: (val: Uint8Array) => import("@wormhole-foundation/sdk-definitions").UniversalAddress;
|
|
566
|
-
from: (val: import("@wormhole-foundation/sdk-definitions").UniversalAddress) => Uint8Array;
|
|
567
|
-
};
|
|
568
|
-
readonly name: "to";
|
|
569
|
-
}]>]>]>, import("binary-layout").CustomizableBytesReturn<{
|
|
570
|
-
readonly name: "transceiverPayload";
|
|
571
|
-
readonly lengthSize: 2;
|
|
572
|
-
}, Uint8Array>]>, {
|
|
573
|
-
readonly binary: "uint";
|
|
574
|
-
readonly size: 32;
|
|
575
|
-
readonly name: "requestedReceiverValue";
|
|
576
|
-
}, {
|
|
577
|
-
readonly binary: "uint";
|
|
578
|
-
readonly size: 32;
|
|
579
|
-
readonly name: "extraReceiverValue";
|
|
580
|
-
}, {
|
|
581
|
-
readonly binary: "bytes";
|
|
582
|
-
readonly layout: readonly [{
|
|
583
|
-
readonly name: "size";
|
|
584
|
-
readonly binary: "uint";
|
|
585
|
-
readonly size: 4;
|
|
586
|
-
readonly custom: number;
|
|
587
|
-
readonly omit: true;
|
|
588
|
-
}, {
|
|
589
|
-
readonly name: "waste";
|
|
590
|
-
readonly binary: "uint";
|
|
591
|
-
readonly size: 31;
|
|
592
|
-
readonly custom: 0n;
|
|
593
|
-
readonly omit: true;
|
|
594
|
-
}, {
|
|
595
|
-
readonly name: "version";
|
|
596
|
-
readonly binary: "uint";
|
|
597
|
-
readonly size: 1;
|
|
598
|
-
readonly custom: 0;
|
|
599
|
-
readonly omit: true;
|
|
600
|
-
}, {
|
|
601
|
-
readonly binary: "uint";
|
|
602
|
-
readonly size: 32;
|
|
603
|
-
readonly name: "gasLimit";
|
|
604
|
-
}, {
|
|
605
|
-
readonly binary: "uint";
|
|
606
|
-
readonly size: 32;
|
|
607
|
-
readonly name: "targetChainRefundPerGasUnused";
|
|
608
|
-
}];
|
|
609
|
-
readonly name: "executionInfo";
|
|
610
|
-
}, {
|
|
611
|
-
readonly binary: "bytes";
|
|
612
|
-
readonly layout: readonly [{
|
|
613
|
-
readonly custom: {
|
|
614
|
-
to: (val: number) => "Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
615
|
-
from: (val: "Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
616
|
-
};
|
|
617
|
-
readonly binary: "uint";
|
|
618
|
-
readonly size: 2;
|
|
619
|
-
readonly name: "chain";
|
|
620
|
-
}, {
|
|
621
|
-
readonly binary: "bytes";
|
|
622
|
-
readonly size: 32;
|
|
623
|
-
readonly custom: {
|
|
624
|
-
to: (val: Uint8Array) => import("@wormhole-foundation/sdk-definitions").UniversalAddress;
|
|
625
|
-
from: (val: import("@wormhole-foundation/sdk-definitions").UniversalAddress) => Uint8Array;
|
|
626
|
-
};
|
|
627
|
-
readonly name: "address";
|
|
628
|
-
}];
|
|
629
|
-
readonly name: "refund";
|
|
630
|
-
}, {
|
|
631
|
-
readonly binary: "bytes";
|
|
632
|
-
readonly size: 32;
|
|
633
|
-
readonly custom: {
|
|
634
|
-
to: (val: Uint8Array) => import("@wormhole-foundation/sdk-definitions").UniversalAddress;
|
|
635
|
-
from: (val: import("@wormhole-foundation/sdk-definitions").UniversalAddress) => Uint8Array;
|
|
636
|
-
};
|
|
637
|
-
readonly name: "refundDeliveryProvider";
|
|
638
|
-
}, {
|
|
639
|
-
readonly binary: "bytes";
|
|
640
|
-
readonly size: 32;
|
|
641
|
-
readonly custom: {
|
|
642
|
-
to: (val: Uint8Array) => import("@wormhole-foundation/sdk-definitions").UniversalAddress;
|
|
643
|
-
from: (val: import("@wormhole-foundation/sdk-definitions").UniversalAddress) => Uint8Array;
|
|
644
|
-
};
|
|
645
|
-
readonly name: "sourceDeliveryProvider";
|
|
646
|
-
}, {
|
|
647
|
-
readonly binary: "bytes";
|
|
648
|
-
readonly size: 32;
|
|
649
|
-
readonly custom: {
|
|
650
|
-
to: (val: Uint8Array) => import("@wormhole-foundation/sdk-definitions").UniversalAddress;
|
|
651
|
-
from: (val: import("@wormhole-foundation/sdk-definitions").UniversalAddress) => Uint8Array;
|
|
652
|
-
};
|
|
653
|
-
readonly name: "senderAddress";
|
|
654
|
-
}, {
|
|
655
|
-
readonly name: "messageKeys";
|
|
656
|
-
readonly binary: "array";
|
|
657
|
-
readonly lengthSize: 1;
|
|
658
|
-
readonly layout: {
|
|
659
|
-
readonly binary: "switch";
|
|
660
|
-
readonly idSize: 1;
|
|
661
|
-
readonly idTag: "keyType";
|
|
662
|
-
readonly layouts: readonly [readonly [readonly [1, "VAA"], readonly [{
|
|
663
|
-
readonly custom: {
|
|
664
|
-
to: (val: number) => "Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
665
|
-
from: (val: "Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
666
|
-
};
|
|
667
|
-
readonly binary: "uint";
|
|
668
|
-
readonly size: 2;
|
|
669
|
-
readonly name: "chain";
|
|
670
|
-
}, {
|
|
671
|
-
readonly binary: "bytes";
|
|
672
|
-
readonly size: 32;
|
|
673
|
-
readonly custom: {
|
|
674
|
-
to: (val: Uint8Array) => import("@wormhole-foundation/sdk-definitions").UniversalAddress;
|
|
675
|
-
from: (val: import("@wormhole-foundation/sdk-definitions").UniversalAddress) => Uint8Array;
|
|
676
|
-
};
|
|
677
|
-
readonly name: "emitterAddress";
|
|
678
|
-
}, {
|
|
679
|
-
readonly binary: "uint";
|
|
680
|
-
readonly size: 8;
|
|
681
|
-
readonly name: "sequence";
|
|
682
|
-
}]], readonly [readonly [2, "CCTP"], readonly [{
|
|
683
|
-
readonly name: "size";
|
|
684
|
-
readonly binary: "uint";
|
|
685
|
-
readonly size: 4;
|
|
686
|
-
readonly custom: 12;
|
|
687
|
-
readonly omit: true;
|
|
688
|
-
}, {
|
|
689
|
-
readonly binary: "uint";
|
|
690
|
-
readonly size: 4;
|
|
691
|
-
readonly name: "domain";
|
|
692
|
-
}, {
|
|
693
|
-
readonly binary: "uint";
|
|
694
|
-
readonly size: 8;
|
|
695
|
-
readonly name: "nonce";
|
|
696
|
-
}]]];
|
|
697
|
-
};
|
|
698
|
-
}]]];
|
|
699
388
|
declare module "@wormhole-foundation/sdk-definitions" {
|
|
700
389
|
namespace WormholeRegistry {
|
|
701
|
-
interface PayloadLiteralToLayoutMapping extends RegisterPayloadTypes<"Ntt", typeof nttNamedPayloads
|
|
390
|
+
interface PayloadLiteralToLayoutMapping extends RegisterPayloadTypes<"Ntt", typeof nttNamedPayloads> {
|
|
702
391
|
}
|
|
703
392
|
}
|
|
704
393
|
}
|
|
705
394
|
export * from "./amount.js";
|
|
706
395
|
export * from "./manager.js";
|
|
707
|
-
export * from "./multiToken.js";
|
|
708
396
|
export * from "./prefix.js";
|
|
709
397
|
export * from "./transceiver.js";
|
|
710
398
|
export * from "./transceiverInstructions.js";
|
|
@@ -712,7 +400,6 @@ export * from "./transfer.js";
|
|
|
712
400
|
export * from "./wormhole.js";
|
|
713
401
|
export type * from "./amount.js";
|
|
714
402
|
export type * from "./manager.js";
|
|
715
|
-
export type * from "./multiToken.js";
|
|
716
403
|
export type * from "./prefix.js";
|
|
717
404
|
export type * from "./transceiver.js";
|
|
718
405
|
export type * from "./transceiverInstructions.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layouts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,oBAAoB,EAErB,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layouts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,oBAAoB,EAErB,MAAM,sCAAsC,CAAC;AAM9C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiBK,CAAC;AAGnC,OAAO,QAAQ,sCAAsC,CAAC;IACpD,UAAiB,gBAAgB,CAAC;QAChC,UAAU,6BACR,SAAQ,oBAAoB,CAAC,KAAK,EAAE,OAAO,gBAAgB,CAAC;SAAG;KAClE;CACF;AAED,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAE9B,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,cAAc,CAAC;AAClC,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,8BAA8B,CAAC;AAClD,mBAAmB,eAAe,CAAC;AACnC,mBAAmB,eAAe,CAAC"}
|
|
@@ -14,12 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.nttNamedPayloads = void 0;
|
|
18
18
|
const sdk_definitions_1 = require("@wormhole-foundation/sdk-definitions");
|
|
19
19
|
const manager_js_1 = require("./manager.js");
|
|
20
20
|
const transceiver_js_1 = require("./transceiver.js");
|
|
21
21
|
const transfer_js_1 = require("./transfer.js");
|
|
22
|
-
const multiToken_js_1 = require("./multiToken.js");
|
|
23
22
|
const wormhole_js_1 = require("./wormhole.js");
|
|
24
23
|
exports.nttNamedPayloads = [
|
|
25
24
|
[
|
|
@@ -30,28 +29,11 @@ exports.nttNamedPayloads = [
|
|
|
30
29
|
"WormholeTransferStandardRelayer",
|
|
31
30
|
(0, sdk_definitions_1.deliveryInstructionLayout)((0, wormhole_js_1.wormholeTransceiverMessageLayout)((0, manager_js_1.nttManagerMessageLayout)(transfer_js_1.nativeTokenTransferLayout))),
|
|
32
31
|
],
|
|
33
|
-
//[
|
|
34
|
-
// "MultiTokenWormholeTransferStandardRelayer",
|
|
35
|
-
// deliveryInstructionLayout(
|
|
36
|
-
// wormholeTransceiverMessageLayout(
|
|
37
|
-
// nttManagerMessageLayout(
|
|
38
|
-
// genericMessageLayout(multiTokenNativeTokenTransferLayout)
|
|
39
|
-
// )
|
|
40
|
-
// )
|
|
41
|
-
// ),
|
|
42
|
-
//],
|
|
43
32
|
["TransceiverInfo", transceiver_js_1.transceiverInfo],
|
|
44
33
|
["TransceiverRegistration", transceiver_js_1.transceiverRegistration],
|
|
45
34
|
];
|
|
46
|
-
exports.multiTokenNttNamedPayloads = [
|
|
47
|
-
[
|
|
48
|
-
"WormholeTransferStandardRelayer",
|
|
49
|
-
(0, sdk_definitions_1.deliveryInstructionLayout)((0, wormhole_js_1.wormholeTransceiverMessageLayout)((0, manager_js_1.nttManagerMessageLayout)((0, multiToken_js_1.genericMessageLayout)(multiToken_js_1.multiTokenNativeTokenTransferLayout)))),
|
|
50
|
-
],
|
|
51
|
-
];
|
|
52
35
|
__exportStar(require("./amount.js"), exports);
|
|
53
36
|
__exportStar(require("./manager.js"), exports);
|
|
54
|
-
__exportStar(require("./multiToken.js"), exports);
|
|
55
37
|
__exportStar(require("./prefix.js"), exports);
|
|
56
38
|
__exportStar(require("./transceiver.js"), exports);
|
|
57
39
|
__exportStar(require("./transceiverInstructions.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/layouts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0EAI8C;AAC9C,6CAAuD;AACvD,qDAA4E;AAC5E,+CAA0D;AAC1D
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/layouts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0EAI8C;AAC9C,6CAAuD;AACvD,qDAA4E;AAC5E,+CAA0D;AAC1D,+CAAiE;AAEpD,QAAA,gBAAgB,GAAG;IAC9B;QACE,kBAAkB;QAClB,IAAA,8CAAgC,EAC9B,IAAA,oCAAuB,EAAC,uCAAyB,CAAC,CACnD;KACF;IACD;QACE,iCAAiC;QACjC,IAAA,2CAAyB,EACvB,IAAA,8CAAgC,EAC9B,IAAA,oCAAuB,EAAC,uCAAyB,CAAC,CACnD,CACF;KACF;IACD,CAAC,iBAAiB,EAAE,gCAAe,CAAC;IACpC,CAAC,yBAAyB,EAAE,wCAAuB,CAAC;CACpB,CAAC;AAUnC,8CAA4B;AAC5B,+CAA6B;AAC7B,8CAA4B;AAC5B,mDAAiC;AACjC,+DAA6C;AAC7C,gDAA8B;AAC9B,gDAA8B"}
|
|
@@ -68,8 +68,8 @@ export declare const transceiverRegistration: readonly [{
|
|
|
68
68
|
readonly omit: true;
|
|
69
69
|
}, {
|
|
70
70
|
readonly custom: {
|
|
71
|
-
to: (val: number) => "Solana" | "Ethereum" | "
|
|
72
|
-
from: (val: "Solana" | "Ethereum" | "
|
|
71
|
+
to: (val: number) => "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
72
|
+
from: (val: "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
73
73
|
};
|
|
74
74
|
readonly binary: "uint";
|
|
75
75
|
readonly size: 2;
|
|
@@ -37,8 +37,8 @@ export declare const nativeTokenTransferLayout: readonly [{
|
|
|
37
37
|
readonly name: "recipientAddress";
|
|
38
38
|
}, {
|
|
39
39
|
readonly custom: {
|
|
40
|
-
to: (val: number) => "Solana" | "Ethereum" | "
|
|
41
|
-
from: (val: "Solana" | "Ethereum" | "
|
|
40
|
+
to: (val: number) => "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
41
|
+
from: (val: "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
42
42
|
};
|
|
43
43
|
readonly binary: "uint";
|
|
44
44
|
readonly size: 2;
|
package/dist/cjs/ntt.d.ts
CHANGED
|
@@ -25,8 +25,8 @@ export declare namespace Ntt {
|
|
|
25
25
|
queue: boolean;
|
|
26
26
|
/** Whether or not to request this transfer should be relayed, otherwise manual redemption is required */
|
|
27
27
|
automatic?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
|
|
28
|
+
/** Whether or not the token needs to be wrapped, only relevant for gas token transfers */
|
|
29
|
+
wrapNative?: boolean;
|
|
30
30
|
};
|
|
31
31
|
export type Attestation = VAA<"Ntt:WormholeTransfer"> | VAA<"Ntt:WormholeTransferStandardRelayer">;
|
|
32
32
|
/**
|
|
@@ -70,7 +70,7 @@ export declare namespace Ntt {
|
|
|
70
70
|
* Ntt is the interface for the Ntt
|
|
71
71
|
*
|
|
72
72
|
* The Ntt is responsible for managing the coordination between the token contract and
|
|
73
|
-
* the transceiver(s). It is also responsible for managing the capacity of inbound or
|
|
73
|
+
* the transceiver(s). It is also responsible for managing the capacity of inbound or outbound transfers.
|
|
74
74
|
*
|
|
75
75
|
* @typeparam N the network
|
|
76
76
|
* @typeparam C the chain
|