@wormhole-foundation/sdk-definitions 0.5.1-beta.1 → 0.5.2-beta.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/chain.d.ts +2 -0
- package/dist/cjs/chain.d.ts.map +1 -1
- package/dist/cjs/chain.js +3 -0
- package/dist/cjs/chain.js.map +1 -1
- package/dist/cjs/layout-items/chain.d.ts +2 -2
- package/dist/cjs/platform.d.ts +1 -1
- package/dist/cjs/platform.d.ts.map +1 -1
- package/dist/cjs/platform.js +2 -2
- package/dist/cjs/platform.js.map +1 -1
- package/dist/cjs/protocol.d.ts +6 -4
- package/dist/cjs/protocol.d.ts.map +1 -1
- package/dist/cjs/protocol.js +11 -6
- package/dist/cjs/protocol.js.map +1 -1
- package/dist/cjs/protocols/core/core.d.ts +1 -1
- package/dist/cjs/protocols/core/core.d.ts.map +1 -1
- package/dist/cjs/protocols/core/governanceLayout.d.ts +42 -42
- package/dist/cjs/protocols/ntt/ntt.d.ts +116 -31
- package/dist/cjs/protocols/ntt/ntt.d.ts.map +1 -1
- package/dist/cjs/protocols/ntt/ntt.js +31 -6
- package/dist/cjs/protocols/ntt/ntt.js.map +1 -1
- package/dist/cjs/protocols/ntt/nttLayout.d.ts +13 -5
- package/dist/cjs/protocols/ntt/nttLayout.d.ts.map +1 -1
- package/dist/cjs/protocols/ntt/nttLayout.js +7 -2
- package/dist/cjs/protocols/ntt/nttLayout.js.map +1 -1
- package/dist/cjs/protocols/relayer/relayerLayout.d.ts +16 -16
- package/dist/cjs/protocols/tokenBridge/automaticTokenBridgeLayout.d.ts +4 -4
- package/dist/cjs/protocols/tokenBridge/tokenBridgeLayout.d.ts +14 -14
- package/dist/cjs/vaa/vaa.d.ts +4 -4
- package/dist/esm/chain.d.ts +2 -0
- package/dist/esm/chain.d.ts.map +1 -1
- package/dist/esm/chain.js +3 -0
- package/dist/esm/chain.js.map +1 -1
- package/dist/esm/layout-items/chain.d.ts +2 -2
- package/dist/esm/platform.d.ts +1 -1
- package/dist/esm/platform.d.ts.map +1 -1
- package/dist/esm/platform.js +2 -2
- package/dist/esm/platform.js.map +1 -1
- package/dist/esm/protocol.d.ts +6 -4
- package/dist/esm/protocol.d.ts.map +1 -1
- package/dist/esm/protocol.js +9 -4
- package/dist/esm/protocol.js.map +1 -1
- package/dist/esm/protocols/core/core.d.ts +1 -1
- package/dist/esm/protocols/core/core.d.ts.map +1 -1
- package/dist/esm/protocols/core/governanceLayout.d.ts +42 -42
- package/dist/esm/protocols/ntt/ntt.d.ts +116 -31
- package/dist/esm/protocols/ntt/ntt.d.ts.map +1 -1
- package/dist/esm/protocols/ntt/ntt.js +30 -5
- package/dist/esm/protocols/ntt/ntt.js.map +1 -1
- package/dist/esm/protocols/ntt/nttLayout.d.ts +13 -5
- package/dist/esm/protocols/ntt/nttLayout.d.ts.map +1 -1
- package/dist/esm/protocols/ntt/nttLayout.js +5 -1
- package/dist/esm/protocols/ntt/nttLayout.js.map +1 -1
- package/dist/esm/protocols/relayer/relayerLayout.d.ts +16 -16
- package/dist/esm/protocols/tokenBridge/automaticTokenBridgeLayout.d.ts +4 -4
- package/dist/esm/protocols/tokenBridge/tokenBridgeLayout.d.ts +14 -14
- package/dist/esm/vaa/vaa.d.ts +4 -4
- package/package.json +2 -2
|
@@ -16,8 +16,8 @@ declare const coreBridgePayloads: readonly [readonly ["UpgradeContract", readonl
|
|
|
16
16
|
};
|
|
17
17
|
}, {
|
|
18
18
|
readonly custom: {
|
|
19
|
-
to: (val: number) => "Solana" | "
|
|
20
|
-
from: (val: "Solana" | "
|
|
19
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
20
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
21
21
|
};
|
|
22
22
|
readonly binary: "uint";
|
|
23
23
|
readonly size: 2;
|
|
@@ -47,8 +47,8 @@ declare const coreBridgePayloads: readonly [readonly ["UpgradeContract", readonl
|
|
|
47
47
|
};
|
|
48
48
|
}, {
|
|
49
49
|
readonly custom: {
|
|
50
|
-
to: (val: number) => "Solana" | "
|
|
51
|
-
from: (val: "Solana" | "
|
|
50
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
51
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
52
52
|
};
|
|
53
53
|
readonly binary: "uint";
|
|
54
54
|
readonly size: 2;
|
|
@@ -82,8 +82,8 @@ declare const coreBridgePayloads: readonly [readonly ["UpgradeContract", readonl
|
|
|
82
82
|
};
|
|
83
83
|
}, {
|
|
84
84
|
readonly custom: {
|
|
85
|
-
to: (val: number) => "Solana" | "
|
|
86
|
-
from: (val: "Solana" | "
|
|
85
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
86
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
87
87
|
};
|
|
88
88
|
readonly binary: "uint";
|
|
89
89
|
readonly size: 2;
|
|
@@ -109,8 +109,8 @@ declare const coreBridgePayloads: readonly [readonly ["UpgradeContract", readonl
|
|
|
109
109
|
};
|
|
110
110
|
}, {
|
|
111
111
|
readonly custom: {
|
|
112
|
-
to: (val: number) => "Solana" | "
|
|
113
|
-
from: (val: "Solana" | "
|
|
112
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
113
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
114
114
|
};
|
|
115
115
|
readonly binary: "uint";
|
|
116
116
|
readonly size: 2;
|
|
@@ -144,8 +144,8 @@ declare const coreBridgePayloads: readonly [readonly ["UpgradeContract", readonl
|
|
|
144
144
|
};
|
|
145
145
|
}, {
|
|
146
146
|
readonly custom: {
|
|
147
|
-
to: (val: number) => "Solana" | "
|
|
148
|
-
from: (val: "Solana" | "
|
|
147
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
148
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
149
149
|
};
|
|
150
150
|
readonly binary: "uint";
|
|
151
151
|
readonly size: 2;
|
|
@@ -180,16 +180,16 @@ declare const tokenBridgePayloads: readonly [readonly ["RegisterChain", readonly
|
|
|
180
180
|
};
|
|
181
181
|
}, {
|
|
182
182
|
readonly custom: {
|
|
183
|
-
to: (val: number) => "Solana" | "
|
|
184
|
-
from: (val: "Solana" | "
|
|
183
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
184
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
185
185
|
};
|
|
186
186
|
readonly binary: "uint";
|
|
187
187
|
readonly size: 2;
|
|
188
188
|
readonly name: "chain";
|
|
189
189
|
}, {
|
|
190
190
|
readonly custom: {
|
|
191
|
-
to: (val: number) => "Solana" | "
|
|
192
|
-
from: (val: "Solana" | "
|
|
191
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
192
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
193
193
|
};
|
|
194
194
|
readonly binary: "uint";
|
|
195
195
|
readonly size: 2;
|
|
@@ -219,8 +219,8 @@ declare const tokenBridgePayloads: readonly [readonly ["RegisterChain", readonly
|
|
|
219
219
|
};
|
|
220
220
|
}, {
|
|
221
221
|
readonly custom: {
|
|
222
|
-
to: (val: number) => "Solana" | "
|
|
223
|
-
from: (val: "Solana" | "
|
|
222
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
223
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
224
224
|
};
|
|
225
225
|
readonly binary: "uint";
|
|
226
226
|
readonly size: 2;
|
|
@@ -250,8 +250,8 @@ declare const tokenBridgePayloads: readonly [readonly ["RegisterChain", readonly
|
|
|
250
250
|
};
|
|
251
251
|
}, {
|
|
252
252
|
readonly custom: {
|
|
253
|
-
to: (val: number) => "Solana" | "
|
|
254
|
-
from: (val: "Solana" | "
|
|
253
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
254
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
255
255
|
};
|
|
256
256
|
readonly binary: "uint";
|
|
257
257
|
readonly size: 2;
|
|
@@ -286,16 +286,16 @@ declare const nftBridgePayloads: readonly [readonly ["RegisterChain", readonly [
|
|
|
286
286
|
};
|
|
287
287
|
}, {
|
|
288
288
|
readonly custom: {
|
|
289
|
-
to: (val: number) => "Solana" | "
|
|
290
|
-
from: (val: "Solana" | "
|
|
289
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
290
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
291
291
|
};
|
|
292
292
|
readonly binary: "uint";
|
|
293
293
|
readonly size: 2;
|
|
294
294
|
readonly name: "chain";
|
|
295
295
|
}, {
|
|
296
296
|
readonly custom: {
|
|
297
|
-
to: (val: number) => "Solana" | "
|
|
298
|
-
from: (val: "Solana" | "
|
|
297
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
298
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
299
299
|
};
|
|
300
300
|
readonly binary: "uint";
|
|
301
301
|
readonly size: 2;
|
|
@@ -325,8 +325,8 @@ declare const nftBridgePayloads: readonly [readonly ["RegisterChain", readonly [
|
|
|
325
325
|
};
|
|
326
326
|
}, {
|
|
327
327
|
readonly custom: {
|
|
328
|
-
to: (val: number) => "Solana" | "
|
|
329
|
-
from: (val: "Solana" | "
|
|
328
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
329
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
330
330
|
};
|
|
331
331
|
readonly binary: "uint";
|
|
332
332
|
readonly size: 2;
|
|
@@ -356,8 +356,8 @@ declare const nftBridgePayloads: readonly [readonly ["RegisterChain", readonly [
|
|
|
356
356
|
};
|
|
357
357
|
}, {
|
|
358
358
|
readonly custom: {
|
|
359
|
-
to: (val: number) => "Solana" | "
|
|
360
|
-
from: (val: "Solana" | "
|
|
359
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
360
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
361
361
|
};
|
|
362
362
|
readonly binary: "uint";
|
|
363
363
|
readonly size: 2;
|
|
@@ -392,16 +392,16 @@ declare const relayerPayloads: readonly [readonly ["RegisterChain", readonly [{
|
|
|
392
392
|
};
|
|
393
393
|
}, {
|
|
394
394
|
readonly custom: {
|
|
395
|
-
to: (val: number) => "Solana" | "
|
|
396
|
-
from: (val: "Solana" | "
|
|
395
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
396
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
397
397
|
};
|
|
398
398
|
readonly binary: "uint";
|
|
399
399
|
readonly size: 2;
|
|
400
400
|
readonly name: "chain";
|
|
401
401
|
}, {
|
|
402
402
|
readonly custom: {
|
|
403
|
-
to: (val: number) => "Solana" | "
|
|
404
|
-
from: (val: "Solana" | "
|
|
403
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
404
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
405
405
|
};
|
|
406
406
|
readonly binary: "uint";
|
|
407
407
|
readonly size: 2;
|
|
@@ -431,8 +431,8 @@ declare const relayerPayloads: readonly [readonly ["RegisterChain", readonly [{
|
|
|
431
431
|
};
|
|
432
432
|
}, {
|
|
433
433
|
readonly custom: {
|
|
434
|
-
to: (val: number) => "Solana" | "
|
|
435
|
-
from: (val: "Solana" | "
|
|
434
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
435
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
436
436
|
};
|
|
437
437
|
readonly binary: "uint";
|
|
438
438
|
readonly size: 2;
|
|
@@ -462,8 +462,8 @@ declare const relayerPayloads: readonly [readonly ["RegisterChain", readonly [{
|
|
|
462
462
|
};
|
|
463
463
|
}, {
|
|
464
464
|
readonly custom: {
|
|
465
|
-
to: (val: number) => "Solana" | "
|
|
466
|
-
from: (val: "Solana" | "
|
|
465
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
466
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
467
467
|
};
|
|
468
468
|
readonly binary: "uint";
|
|
469
469
|
readonly size: 2;
|
|
@@ -494,8 +494,8 @@ declare const cctpPayloads: readonly [readonly ["UpdateFinality", readonly [{
|
|
|
494
494
|
};
|
|
495
495
|
}, {
|
|
496
496
|
readonly custom: {
|
|
497
|
-
to: (val: number) => "Solana" | "
|
|
498
|
-
from: (val: "Solana" | "
|
|
497
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
498
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
499
499
|
};
|
|
500
500
|
readonly binary: "uint";
|
|
501
501
|
readonly size: 2;
|
|
@@ -521,16 +521,16 @@ declare const cctpPayloads: readonly [readonly ["UpdateFinality", readonly [{
|
|
|
521
521
|
};
|
|
522
522
|
}, {
|
|
523
523
|
readonly custom: {
|
|
524
|
-
to: (val: number) => "Solana" | "
|
|
525
|
-
from: (val: "Solana" | "
|
|
524
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
525
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
526
526
|
};
|
|
527
527
|
readonly binary: "uint";
|
|
528
528
|
readonly size: 2;
|
|
529
529
|
readonly name: "chain";
|
|
530
530
|
}, {
|
|
531
531
|
readonly custom: {
|
|
532
|
-
to: (val: number) => "Solana" | "
|
|
533
|
-
from: (val: "Solana" | "
|
|
532
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia";
|
|
533
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia") => number;
|
|
534
534
|
};
|
|
535
535
|
readonly binary: "uint";
|
|
536
536
|
readonly size: 2;
|
|
@@ -564,8 +564,8 @@ declare const cctpPayloads: readonly [readonly ["UpdateFinality", readonly [{
|
|
|
564
564
|
};
|
|
565
565
|
}, {
|
|
566
566
|
readonly custom: {
|
|
567
|
-
to: (val: number) => "Solana" | "
|
|
568
|
-
from: (val: "Solana" | "
|
|
567
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null;
|
|
568
|
+
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" | "Rootstock" | "Scroll" | "Mantle" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | null) => number;
|
|
569
569
|
};
|
|
570
570
|
readonly binary: "uint";
|
|
571
571
|
readonly size: 2;
|
|
@@ -1,43 +1,128 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import "
|
|
3
|
-
import "../tokenBridge/tokenBridgeLayout.js";
|
|
1
|
+
import { type Chain, type Network, type Platform } from "@wormhole-foundation/sdk-base";
|
|
2
|
+
import type { AccountAddress, ChainAddress } from "../../address.js";
|
|
4
3
|
import type { EmptyPlatformMap } from "../../protocol.js";
|
|
5
|
-
import type { ProtocolPayload, ProtocolVAA, VAA } from "./../../vaa/index.js";
|
|
6
|
-
import type { ChainAddress, NativeAddress } from "../../address.js";
|
|
7
4
|
import type { UnsignedTransaction } from "../../unsignedTransaction.js";
|
|
5
|
+
import "../tokenBridge/automaticTokenBridgeLayout.js";
|
|
6
|
+
import "../tokenBridge/tokenBridgeLayout.js";
|
|
7
|
+
import type { ProtocolPayload, ProtocolVAA } from "./../../vaa/index.js";
|
|
8
8
|
import "../../registry.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
interface ProtocolToPlatformMapping {
|
|
12
|
-
NTT: EmptyPlatformMap<Platform, NTT.ProtocolName>;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
9
|
+
import { TokenAddress } from "../../types.js";
|
|
10
|
+
import { NttManagerMessage, nativeTokenTransferLayout } from "./nttLayout.js";
|
|
16
11
|
/**
|
|
17
|
-
* @namespace
|
|
12
|
+
* @namespace Ntt
|
|
18
13
|
*/
|
|
19
|
-
export declare namespace
|
|
20
|
-
const _protocol = "
|
|
21
|
-
/** The compile time type of the NTT protocol */
|
|
14
|
+
export declare namespace Ntt {
|
|
15
|
+
const _protocol = "Ntt";
|
|
22
16
|
export type ProtocolName = typeof _protocol;
|
|
23
|
-
|
|
24
|
-
export type
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
export type Message = NttManagerMessage<typeof nativeTokenTransferLayout>;
|
|
18
|
+
export type Attestation = any;
|
|
19
|
+
/**
|
|
20
|
+
* InboundQueuedTransfer is a queued transfer from another chain
|
|
21
|
+
* @property recipient the recipient of the transfer
|
|
22
|
+
* @property amount the amount of the transfer
|
|
23
|
+
* @property rateLimitExpiryTimestamp the timestamp when the rate limit expires
|
|
24
|
+
*/
|
|
25
|
+
export type InboundQueuedTransfer<C extends Chain> = {
|
|
26
|
+
recipient: AccountAddress<C>;
|
|
27
|
+
amount: bigint;
|
|
31
28
|
rateLimitExpiryTimestamp: number;
|
|
32
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* TransceiverInstruction is a single instruction for the transceiver
|
|
32
|
+
* @property index the index of the instruction, may not be > 255
|
|
33
|
+
* @property payload the payload of the instruction, may not exceed 255 bytes
|
|
34
|
+
*/
|
|
35
|
+
export type TransceiverInstruction = {
|
|
36
|
+
index: number;
|
|
37
|
+
payload: Uint8Array;
|
|
38
|
+
};
|
|
39
|
+
export function encodeTransceiverInstructions(ixs: TransceiverInstruction[]): Uint8Array;
|
|
40
|
+
/**
|
|
41
|
+
* messageDigest hashes a message for the Ntt manager, the digest is used
|
|
42
|
+
* to uniquely identify the message
|
|
43
|
+
* @param chain The chain that sent the message
|
|
44
|
+
* @param message The ntt message to hash
|
|
45
|
+
* @returns a 32 byte digest of the message
|
|
46
|
+
*/
|
|
47
|
+
export function messageDigest(chain: Chain, message: Message): Uint8Array;
|
|
33
48
|
export {};
|
|
34
49
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Ntt is the interface for the Ntt
|
|
52
|
+
*
|
|
53
|
+
* The Ntt is responsible for managing the coordination between the token contract and
|
|
54
|
+
* the transceiver(s). It is also responsible for managing the capacity of inbound or outbount transfers.
|
|
55
|
+
*
|
|
56
|
+
* @typeparam N the network
|
|
57
|
+
* @typeparam C the chain
|
|
58
|
+
*/
|
|
59
|
+
export interface Ntt<N extends Network, C extends Chain> {
|
|
60
|
+
/**
|
|
61
|
+
* transfer sends a message to the Ntt manager to initiate a transfer
|
|
62
|
+
* @param sender the address of the sender
|
|
63
|
+
* @param amount the amount to transfer
|
|
64
|
+
* @param destination the destination chain
|
|
65
|
+
* @param queue whether to queue the transfer if the outbound capacity is exceeded
|
|
66
|
+
*/
|
|
67
|
+
transfer(sender: AccountAddress<C>, amount: bigint, destination: ChainAddress, queue: boolean): AsyncGenerator<UnsignedTransaction<N, C>>;
|
|
68
|
+
/**
|
|
69
|
+
* redeem redeems a set of Attestations to the corresponding transceivers on the destination chain
|
|
70
|
+
* @param attestations The attestations to redeem, the length should be equal to the number of transceivers
|
|
71
|
+
*/
|
|
72
|
+
redeem(attestations: Ntt.Attestation[], payer?: AccountAddress<C>): AsyncGenerator<UnsignedTransaction<N, C>>;
|
|
73
|
+
/**
|
|
74
|
+
* getCurrentOutboundCapacity returns the current outbound capacity of the Ntt manager
|
|
75
|
+
*/
|
|
76
|
+
getCurrentOutboundCapacity(): Promise<bigint>;
|
|
77
|
+
/**
|
|
78
|
+
* getCurrentInboundCapacity returns the current inbound capacity of the Ntt manager
|
|
79
|
+
* @param fromChain the chain to check the inbound capacity for
|
|
80
|
+
*/
|
|
81
|
+
getCurrentInboundCapacity(fromChain: Chain): Promise<bigint>;
|
|
82
|
+
/**
|
|
83
|
+
* getInboundQueuedTransfer returns the details of an inbound queued transfer
|
|
84
|
+
* @param transceiverMessage the transceiver message
|
|
85
|
+
* @param fromChain the chain the transfer is from
|
|
86
|
+
*/
|
|
87
|
+
getInboundQueuedTransfer(fromChain: Chain, transceiverMessage: Ntt.Message): Promise<Ntt.InboundQueuedTransfer<C> | null>;
|
|
88
|
+
/**
|
|
89
|
+
* completeInboundQueuedTransfer completes an inbound queued transfer
|
|
90
|
+
* @param transceiverMessage the transceiver message
|
|
91
|
+
* @param token the token to transfer
|
|
92
|
+
* @param fromChain the chain the transfer is from
|
|
93
|
+
* @param payer the address to pay for the transfer
|
|
94
|
+
*/
|
|
95
|
+
completeInboundQueuedTransfer(fromChain: Chain, transceiverMessage: Ntt.Message, token: TokenAddress<C>, payer?: AccountAddress<C>): AsyncGenerator<UnsignedTransaction<N, C>>;
|
|
96
|
+
}
|
|
97
|
+
export interface NttTransceiver<N extends Network, C extends Chain, A extends Ntt.Attestation> {
|
|
98
|
+
/**
|
|
99
|
+
* receive calls the `receive*` method on the transceiver
|
|
100
|
+
*
|
|
101
|
+
* @param attestation the attestation to redeem against the transceiver
|
|
102
|
+
* @param sender the address of the sender
|
|
103
|
+
*/
|
|
104
|
+
receive(attestation: A, sender?: AccountAddress<C>): AsyncGenerator<UnsignedTransaction<N, C>>;
|
|
105
|
+
}
|
|
106
|
+
export declare namespace WormholeNttTransceiver {
|
|
107
|
+
const _payloads: readonly ["WormholeTransfer"];
|
|
108
|
+
export type PayloadNames = (typeof _payloads)[number];
|
|
109
|
+
export type VAA<PayloadName extends PayloadNames = PayloadNames> = ProtocolVAA<Ntt.ProtocolName, PayloadName>;
|
|
110
|
+
export type Payload<PayloadName extends PayloadNames = PayloadNames> = ProtocolPayload<Ntt.ProtocolName, PayloadName>;
|
|
111
|
+
export {};
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* WormholeNttTransceiver is the interface for the Wormhole Ntt transceiver
|
|
115
|
+
*
|
|
116
|
+
* The WormholeNttTransceiver is responsible for verifying VAAs against the core
|
|
117
|
+
* bridge and signaling the NttManager that it can mint tokens.
|
|
118
|
+
*/
|
|
119
|
+
export interface WormholeNttTransceiver<N extends Network, C extends Chain> extends NttTransceiver<N, C, WormholeNttTransceiver.VAA> {
|
|
120
|
+
}
|
|
121
|
+
declare module "../../registry.js" {
|
|
122
|
+
namespace WormholeRegistry {
|
|
123
|
+
interface ProtocolToPlatformMapping {
|
|
124
|
+
Ntt: EmptyPlatformMap<Platform, Ntt.ProtocolName>;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
42
127
|
}
|
|
43
128
|
//# sourceMappingURL=ntt.d.ts.map
|