@wormhole-foundation/sdk-definitions 0.3.0-beta.8 → 0.3.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/address.js.map +1 -1
- package/dist/cjs/chain.d.ts +4 -3
- package/dist/cjs/chain.d.ts.map +1 -1
- package/dist/cjs/chain.js +21 -0
- package/dist/cjs/chain.js.map +1 -1
- package/dist/cjs/layout-items/chain.d.ts +21 -9
- package/dist/cjs/layout-items/chain.d.ts.map +1 -1
- package/dist/cjs/payloads/automaticTokenBridge.d.ts +4 -4
- package/dist/cjs/payloads/bam.d.ts +20 -20
- package/dist/cjs/payloads/governance.d.ts +48 -48
- package/dist/cjs/payloads/portico.d.ts +212 -0
- package/dist/cjs/payloads/portico.d.ts.map +1 -0
- package/dist/cjs/payloads/portico.js +36 -0
- package/dist/cjs/payloads/portico.js.map +1 -0
- package/dist/cjs/payloads/relayer.d.ts +10 -10
- package/dist/cjs/payloads/tokenBridge.d.ts +14 -14
- package/dist/cjs/protocols/core.d.ts +1 -0
- package/dist/cjs/protocols/core.d.ts.map +1 -1
- package/dist/cjs/protocols/ibc.d.ts +1 -1
- package/dist/cjs/protocols/ibc.d.ts.map +1 -1
- package/dist/cjs/protocols/index.d.ts +4 -0
- package/dist/cjs/protocols/index.d.ts.map +1 -0
- package/dist/cjs/protocols/index.js +17 -0
- package/dist/cjs/protocols/index.js.map +1 -0
- package/dist/cjs/protocols/nftBridge.d.ts +10 -0
- package/dist/cjs/protocols/nftBridge.d.ts.map +1 -0
- package/dist/cjs/protocols/nftBridge.js +3 -0
- package/dist/cjs/protocols/nftBridge.js.map +1 -0
- package/dist/cjs/protocols/portico.d.ts +46 -0
- package/dist/cjs/protocols/portico.d.ts.map +1 -0
- package/dist/cjs/protocols/portico.js +22 -0
- package/dist/cjs/protocols/portico.js.map +1 -0
- package/dist/cjs/protocols/relayer.d.ts +10 -0
- package/dist/cjs/protocols/relayer.d.ts.map +1 -0
- package/dist/cjs/protocols/relayer.js +3 -0
- package/dist/cjs/protocols/relayer.js.map +1 -0
- package/dist/cjs/protocols/tokenBridge.d.ts +1 -1
- package/dist/cjs/protocols/tokenBridge.d.ts.map +1 -1
- package/dist/cjs/types.d.ts +3 -1
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/cjs/types.js +7 -0
- package/dist/cjs/types.js.map +1 -1
- package/dist/cjs/vaa/registration.d.ts +1 -1
- package/dist/cjs/vaa/registration.d.ts.map +1 -1
- package/dist/cjs/vaa/vaa.d.ts +4 -4
- package/dist/esm/address.js.map +1 -1
- package/dist/esm/chain.d.ts +4 -3
- package/dist/esm/chain.d.ts.map +1 -1
- package/dist/esm/chain.js +21 -0
- package/dist/esm/chain.js.map +1 -1
- package/dist/esm/layout-items/chain.d.ts +21 -9
- package/dist/esm/layout-items/chain.d.ts.map +1 -1
- package/dist/esm/payloads/automaticTokenBridge.d.ts +4 -4
- package/dist/esm/payloads/bam.d.ts +20 -20
- package/dist/esm/payloads/governance.d.ts +48 -48
- package/dist/esm/payloads/portico.d.ts +212 -0
- package/dist/esm/payloads/portico.d.ts.map +1 -0
- package/dist/esm/payloads/portico.js +33 -0
- package/dist/esm/payloads/portico.js.map +1 -0
- package/dist/esm/payloads/relayer.d.ts +10 -10
- package/dist/esm/payloads/tokenBridge.d.ts +14 -14
- package/dist/esm/protocols/core.d.ts +1 -0
- package/dist/esm/protocols/core.d.ts.map +1 -1
- package/dist/esm/protocols/ibc.d.ts +1 -1
- package/dist/esm/protocols/ibc.d.ts.map +1 -1
- package/dist/esm/protocols/index.d.ts +4 -0
- package/dist/esm/protocols/index.d.ts.map +1 -0
- package/dist/esm/protocols/index.js +13 -0
- package/dist/esm/protocols/index.js.map +1 -0
- package/dist/esm/protocols/nftBridge.d.ts +10 -0
- package/dist/esm/protocols/nftBridge.d.ts.map +1 -0
- package/dist/esm/protocols/nftBridge.js +2 -0
- package/dist/esm/protocols/nftBridge.js.map +1 -0
- package/dist/esm/protocols/portico.d.ts +46 -0
- package/dist/esm/protocols/portico.d.ts.map +1 -0
- package/dist/esm/protocols/portico.js +19 -0
- package/dist/esm/protocols/portico.js.map +1 -0
- package/dist/esm/protocols/relayer.d.ts +10 -0
- package/dist/esm/protocols/relayer.d.ts.map +1 -0
- package/dist/esm/protocols/relayer.js +2 -0
- package/dist/esm/protocols/relayer.js.map +1 -0
- package/dist/esm/protocols/tokenBridge.d.ts +1 -1
- package/dist/esm/protocols/tokenBridge.d.ts.map +1 -1
- package/dist/esm/types.d.ts +3 -1
- package/dist/esm/types.d.ts.map +1 -1
- package/dist/esm/types.js +8 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/esm/vaa/registration.d.ts +1 -1
- package/dist/esm/vaa/registration.d.ts.map +1 -1
- package/dist/esm/vaa/vaa.d.ts +4 -4
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/cjs/address.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../src/address.ts"],"names":[],"mappings":";;;AAAA,4DAMuC;AAEvC,+BAA+B;AAC/B,8FAA8F;AAC9F,gDAAgD;AAChD,iGAAiG;AACjG,iGAAiG;AACjG,8FAA8F;AAC9F,6FAA6F;AAC7F,oDAAoD;AACpD,yDAAsD;AA8CtD,MAAM,aAAa,GAAG,IAAI,GAAG,EAA8B,CAAC;AAE5D,SAAgB,cAAc,CAAqB,QAAW,EAAE,GAAqB;IACnF,IAAI,aAAa,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;QAC/B,OAAO,CAAC,IAAI,CAAC,4DAA4D,EAAE,QAAQ,CAAC,CAAC;QACrF,yFAAyF;QACzF,OAAO;KACR;IAED,aAAa,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AACnC,CAAC;AARD,wCAQC;AAED,SAAgB,kBAAkB,CAAkB,KAAQ;IAC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,CAAC,KAAK,CAAE,CAAC;IACvD,OAAO,IAAI,mCAAgB,CAAC,OAAO,EAAE,kCAAuB,CAAC,GAAG,CAAC,QAAQ,CAAE,CAAC,CAAC;AAC/E,CAAC;AAND,kCAMC"}
|
package/dist/cjs/chain.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Chain, Network, Platform, PlatformToChains,
|
|
1
|
+
import { ProtocolName, Chain, Network, Platform, PlatformToChains, tokens } from "@wormhole-foundation/sdk-base";
|
|
2
2
|
import { ChainAddress, TokenAddress, UniversalOrNative } from "./address";
|
|
3
3
|
import { WormholeMessageId } from "./attestation";
|
|
4
4
|
import { PlatformContext } from "./platform";
|
|
5
5
|
import { AutomaticCircleBridge, CircleBridge } from "./protocols/circleBridge";
|
|
6
|
+
import { WormholeCore } from "./protocols/core";
|
|
6
7
|
import { IbcBridge } from "./protocols/ibc";
|
|
7
8
|
import { AutomaticTokenBridge, TokenBridge } from "./protocols/tokenBridge";
|
|
8
9
|
import { RpcConnection } from "./rpc";
|
|
9
10
|
import { ChainConfig, SignedTx, TokenId } from "./types";
|
|
10
|
-
|
|
11
|
-
export declare abstract class ChainContext<N extends Network, P extends Platform, C extends Chain = PlatformToChains<P>> {
|
|
11
|
+
export declare abstract class ChainContext<N extends Network, P extends Platform = Platform, C extends Chain = PlatformToChains<P>> {
|
|
12
12
|
readonly network: N;
|
|
13
13
|
readonly platform: PlatformContext<N, P>;
|
|
14
14
|
readonly chain: C;
|
|
@@ -28,6 +28,7 @@ export declare abstract class ChainContext<N extends Network, P extends Platform
|
|
|
28
28
|
getLatestFinalizedBlock(): Promise<number>;
|
|
29
29
|
parseTransaction(txid: string): Promise<WormholeMessageId[]>;
|
|
30
30
|
sendWait(stxns: SignedTx): Promise<string[]>;
|
|
31
|
+
getToken(symbol: tokens.TokenSymbol): tokens.Token | undefined;
|
|
31
32
|
getNativeWrappedTokenId(): Promise<TokenId<C>>;
|
|
32
33
|
getTokenAccount(address: UniversalOrNative<C>, token: UniversalOrNative<C>): Promise<ChainAddress<C>>;
|
|
33
34
|
supportsProtocol(protocolName: ProtocolName): boolean;
|
package/dist/cjs/chain.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../src/chain.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../src/chain.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,gBAAgB,EAChB,MAAM,EACP,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAY,MAAM,WAAW,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzD,8BAAsB,YAAY,CAChC,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAC7B,CAAC,SAAS,KAAK,GAAG,gBAAgB,CAAC,CAAC,CAAC;IAErC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;IAEpB,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC,E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@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ChainContext = void 0;
|
|
4
|
+
const sdk_base_1 = require("@wormhole-foundation/sdk-base");
|
|
5
|
+
const address_1 = require("./address");
|
|
4
6
|
const protocol_1 = require("./protocol");
|
|
5
7
|
class ChainContext {
|
|
6
8
|
network;
|
|
@@ -28,6 +30,12 @@ class ChainContext {
|
|
|
28
30
|
}
|
|
29
31
|
// Get the number of decimals for a token
|
|
30
32
|
async getDecimals(token) {
|
|
33
|
+
// try to find it in the token cache first
|
|
34
|
+
if (this.config.tokenMap) {
|
|
35
|
+
const found = sdk_base_1.tokens.getTokenByAddress(this.network, this.chain, token.toString());
|
|
36
|
+
if (found)
|
|
37
|
+
return BigInt(found.decimals);
|
|
38
|
+
}
|
|
31
39
|
return this.platform.utils().getDecimals(this.chain, this.getRpc(), token);
|
|
32
40
|
}
|
|
33
41
|
// Get the balance of a token for a given address
|
|
@@ -48,7 +56,20 @@ class ChainContext {
|
|
|
48
56
|
async sendWait(stxns) {
|
|
49
57
|
return this.platform.utils().sendWait(this.chain, await this.getRpc(), stxns);
|
|
50
58
|
}
|
|
59
|
+
getToken(symbol) {
|
|
60
|
+
if (!this.config.tokenMap)
|
|
61
|
+
return;
|
|
62
|
+
if (!(symbol in this.config.tokenMap))
|
|
63
|
+
return;
|
|
64
|
+
return this.config.tokenMap[symbol];
|
|
65
|
+
}
|
|
51
66
|
async getNativeWrappedTokenId() {
|
|
67
|
+
// see if we have it configured
|
|
68
|
+
if (this.config.wrappedNative) {
|
|
69
|
+
const { address } = this.config.wrappedNative;
|
|
70
|
+
return { chain: this.chain, address: (0, address_1.toNative)(this.chain, address) };
|
|
71
|
+
}
|
|
72
|
+
// otherwise grab it from the token bridge fn
|
|
52
73
|
const tb = await this.getTokenBridge();
|
|
53
74
|
return { chain: this.chain, address: await tb.getWrappedNative() };
|
|
54
75
|
}
|
package/dist/cjs/chain.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain.js","sourceRoot":"","sources":["../../src/chain.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"chain.js","sourceRoot":"","sources":["../../src/chain.ts"],"names":[],"mappings":";;;AAAA,4DAOuC;AACvC,uCAAoF;AAGpF,yCAAkD;AAQlD,MAAsB,YAAY;IAKvB,OAAO,CAAI;IAEX,QAAQ,CAAwB;IAEhC,KAAK,CAAI;IACT,MAAM,CAAoB;IAEnC,0BAA0B;IAChB,GAAG,CAAoB;IACvB,UAAU,CAAyB;IACnC,WAAW,CAAwB;IACnC,eAAe,CAAiC;IAChD,YAAY,CAAyB;IACrC,gBAAgB,CAAkC;IAClD,SAAS,CAAsB;IAEzC,YAAY,KAAQ,EAAE,QAA+B,EAAE,GAAsB;QAC3E,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAE,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;QACnC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAED,MAAM;QACJ,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAClE,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAED,yCAAyC;IACzC,KAAK,CAAC,WAAW,CAAC,KAAsB;QACtC,0CAA0C;QAC1C,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;YACxB,MAAM,KAAK,GAAG,iBAAM,CAAC,iBAAiB,CAAC,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C,MAAM,EAAE,CAAC,CAAC;QACzE,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,EAAE;IACF,6BAA6B,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAC;IACrF,KAAK,CAAC,wBAAwB;QAC5B,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB;YAC3C,CAAC,CAAC,IAAI,CAAC,gBAAgB;YACvB,CAAC,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,uBAAuB,EAAE,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QAClF,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IAED,EAAE;IACF,iBAAiB,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;IAC7D,KAAK,CAAC,YAAY;QAChB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS;YAC7B,CAAC,CAAC,IAAI,CAAC,SAAS;YAChB,CAAC,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QACtE,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF;AA1JD,oCA0JC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
type AllowNull<T, B extends boolean> = B extends true ? T | null : T;
|
|
2
|
-
export declare const chainItem: <C extends readonly ("Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia")[] = ["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", "Wormchain", "Cosmoshub", "Evmos", "Kujira", "Sepolia"], N extends boolean = false>(opts?: {
|
|
3
|
-
allowedChains?: C;
|
|
4
|
-
allowNull?: N;
|
|
5
|
-
}) => {
|
|
2
|
+
export declare const chainItem: <C extends readonly ("Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky")[] = ["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", "Wormchain", "Cosmoshub", "Evmos", "Kujira", "Sepolia", "ArbitrumSepolia", "BaseSepolia", "OptimismSepolia", "Holesky"], N extends boolean = false>(opts?: {
|
|
3
|
+
allowedChains?: C | undefined;
|
|
4
|
+
allowNull?: N | undefined;
|
|
5
|
+
} | undefined) => {
|
|
6
6
|
readonly custom: {
|
|
7
7
|
to: (val: number) => AllowNull<C[number], N>;
|
|
8
8
|
from: (val: AllowNull<C[number], N>) => number;
|
|
@@ -10,10 +10,10 @@ export declare const chainItem: <C extends readonly ("Solana" | "Btc" | "Algoran
|
|
|
10
10
|
readonly binary: "uint";
|
|
11
11
|
readonly size: 2;
|
|
12
12
|
};
|
|
13
|
-
export declare const fixedChainItem: <C extends "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia">(chain: C) => {
|
|
13
|
+
export declare const fixedChainItem: <C extends "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky">(chain: C) => {
|
|
14
14
|
readonly custom: {
|
|
15
15
|
to: C;
|
|
16
|
-
from: (C extends bigint ? `bigint(${C})` : C extends boolean ? `boolean(${C})` : C) extends "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" ? {
|
|
16
|
+
from: (C extends bigint ? `bigint(${C})` : C extends boolean ? `boolean(${C})` : C) extends "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" ? {
|
|
17
17
|
readonly Solana: 1;
|
|
18
18
|
readonly Ethereum: 2;
|
|
19
19
|
readonly Terra: 3;
|
|
@@ -50,7 +50,11 @@ export declare const fixedChainItem: <C extends "Solana" | "Btc" | "Algorand" |
|
|
|
50
50
|
readonly Evmos: 4001;
|
|
51
51
|
readonly Kujira: 4002;
|
|
52
52
|
readonly Sepolia: 10002;
|
|
53
|
-
|
|
53
|
+
readonly ArbitrumSepolia: 10003;
|
|
54
|
+
readonly BaseSepolia: 10004;
|
|
55
|
+
readonly OptimismSepolia: 10005;
|
|
56
|
+
readonly Holesky: 10006;
|
|
57
|
+
}[("Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky") & (C extends bigint ? `bigint(${C})` : C extends boolean ? `boolean(${C})` : C)] extends {
|
|
54
58
|
[key: string]: unknown;
|
|
55
59
|
[key: number]: unknown;
|
|
56
60
|
[key: symbol]: unknown;
|
|
@@ -91,7 +95,11 @@ export declare const fixedChainItem: <C extends "Solana" | "Btc" | "Algorand" |
|
|
|
91
95
|
readonly Evmos: 4001;
|
|
92
96
|
readonly Kujira: 4002;
|
|
93
97
|
readonly Sepolia: 10002;
|
|
94
|
-
|
|
98
|
+
readonly ArbitrumSepolia: 10003;
|
|
99
|
+
readonly BaseSepolia: 10004;
|
|
100
|
+
readonly OptimismSepolia: 10005;
|
|
101
|
+
readonly Holesky: 10006;
|
|
102
|
+
}[("Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky") & (C extends bigint ? `bigint(${C})` : C extends boolean ? `boolean(${C})` : C)] : {
|
|
95
103
|
readonly Solana: 1;
|
|
96
104
|
readonly Ethereum: 2;
|
|
97
105
|
readonly Terra: 3;
|
|
@@ -128,7 +136,11 @@ export declare const fixedChainItem: <C extends "Solana" | "Btc" | "Algorand" |
|
|
|
128
136
|
readonly Evmos: 4001;
|
|
129
137
|
readonly Kujira: 4002;
|
|
130
138
|
readonly Sepolia: 10002;
|
|
131
|
-
|
|
139
|
+
readonly ArbitrumSepolia: 10003;
|
|
140
|
+
readonly BaseSepolia: 10004;
|
|
141
|
+
readonly OptimismSepolia: 10005;
|
|
142
|
+
readonly Holesky: 10006;
|
|
143
|
+
}[("Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky") & (C extends bigint ? `bigint(${C})` : C extends boolean ? `boolean(${C})` : C)] : never;
|
|
132
144
|
};
|
|
133
145
|
readonly binary: "uint";
|
|
134
146
|
readonly size: 2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../src/layout-items/chain.ts"],"names":[],"mappings":"AAaA,KAAK,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,IAAI,CAAC,SAAS,IAAI,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;AAErE,eAAO,MAAM,SAAS;;;;;kBAUN,MAAM;gDAmBsB,MAAM;;;;CAGZ,CAAC;AAEvC,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../src/layout-items/chain.ts"],"names":[],"mappings":"AAaA,KAAK,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,IAAI,CAAC,SAAS,IAAI,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;AAErE,eAAO,MAAM,SAAS;;;;;kBAUN,MAAM;gDAmBsB,MAAM;;;;CAGZ,CAAC;AAEvC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOW,CAAC"}
|
|
@@ -45,8 +45,8 @@ export declare const namedPayloads: readonly [readonly ["TransferWithRelay", rea
|
|
|
45
45
|
readonly name: "address";
|
|
46
46
|
}, {
|
|
47
47
|
readonly custom: {
|
|
48
|
-
to: (val: number) => "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia";
|
|
49
|
-
from: (val: "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") => number;
|
|
48
|
+
to: (val: number) => "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky";
|
|
49
|
+
from: (val: "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky") => number;
|
|
50
50
|
};
|
|
51
51
|
readonly binary: "uint";
|
|
52
52
|
readonly size: 2;
|
|
@@ -65,8 +65,8 @@ export declare const namedPayloads: readonly [readonly ["TransferWithRelay", rea
|
|
|
65
65
|
readonly name: "address";
|
|
66
66
|
}, {
|
|
67
67
|
readonly custom: {
|
|
68
|
-
to: (val: number) => "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia";
|
|
69
|
-
from: (val: "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") => number;
|
|
68
|
+
to: (val: number) => "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky";
|
|
69
|
+
from: (val: "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky") => number;
|
|
70
70
|
};
|
|
71
71
|
readonly binary: "uint";
|
|
72
72
|
readonly size: 2;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LengthPrefixedBytesLayoutItem } from "@wormhole-foundation/sdk-base";
|
|
2
2
|
import { RegisterPayloadTypes } from "../vaa";
|
|
3
|
-
export declare const messageLayout: <T extends number, C extends Pick<LengthPrefixedBytesLayoutItem, "custom">>(type: T, customContents?: C) => readonly [{
|
|
3
|
+
export declare const messageLayout: <T extends number, C extends Pick<LengthPrefixedBytesLayoutItem, "custom">>(type: T, customContents?: C | undefined) => readonly [{
|
|
4
4
|
readonly name: "magicByte";
|
|
5
5
|
readonly binary: "uint";
|
|
6
6
|
readonly size: 1;
|
|
@@ -24,8 +24,8 @@ export declare const messageLayout: <T extends number, C extends Pick<LengthPref
|
|
|
24
24
|
readonly size: 8;
|
|
25
25
|
}, {
|
|
26
26
|
readonly custom: {
|
|
27
|
-
to: (val: number) => "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia";
|
|
28
|
-
from: (val: "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") => number;
|
|
27
|
+
to: (val: number) => "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky";
|
|
28
|
+
from: (val: "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky") => number;
|
|
29
29
|
};
|
|
30
30
|
readonly binary: "uint";
|
|
31
31
|
readonly size: 2;
|
|
@@ -50,10 +50,10 @@ export declare const messageLayout: <T extends number, C extends Pick<LengthPref
|
|
|
50
50
|
readonly lengthSize: 2;
|
|
51
51
|
}];
|
|
52
52
|
export declare const tokenMessageLayout: <C extends Pick<LengthPrefixedBytesLayoutItem, "custom">, B extends Pick<import("@wormhole-foundation/sdk-base").FixedPrimitiveNumLayoutItem<number, false> | import("@wormhole-foundation/sdk-base").OptionalToFromNumLayoutItem<number, false> | import("@wormhole-foundation/sdk-base").FixedPrimitiveNumLayoutItem<bigint, false> | import("@wormhole-foundation/sdk-base").OptionalToFromNumLayoutItem<bigint, false>, "custom">, A extends Pick<import("@wormhole-foundation/sdk-base").FixedPrimitiveNumLayoutItem<number, false> | import("@wormhole-foundation/sdk-base").OptionalToFromNumLayoutItem<number, false> | import("@wormhole-foundation/sdk-base").FixedPrimitiveNumLayoutItem<bigint, false> | import("@wormhole-foundation/sdk-base").OptionalToFromNumLayoutItem<bigint, false>, "custom">>(custom?: {
|
|
53
|
-
contents?: C;
|
|
54
|
-
bridge?: B;
|
|
55
|
-
assetIdentifier?: A;
|
|
56
|
-
}) => readonly [{
|
|
53
|
+
contents?: C | undefined;
|
|
54
|
+
bridge?: B | undefined;
|
|
55
|
+
assetIdentifier?: A | undefined;
|
|
56
|
+
} | undefined) => readonly [{
|
|
57
57
|
readonly name: "magicByte";
|
|
58
58
|
readonly binary: "uint";
|
|
59
59
|
readonly size: 1;
|
|
@@ -77,8 +77,8 @@ export declare const tokenMessageLayout: <C extends Pick<LengthPrefixedBytesLayo
|
|
|
77
77
|
readonly size: 8;
|
|
78
78
|
}, {
|
|
79
79
|
readonly custom: {
|
|
80
|
-
to: (val: number) => "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia";
|
|
81
|
-
from: (val: "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") => number;
|
|
80
|
+
to: (val: number) => "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky";
|
|
81
|
+
from: (val: "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky") => number;
|
|
82
82
|
};
|
|
83
83
|
readonly binary: "uint";
|
|
84
84
|
readonly size: 2;
|
|
@@ -127,9 +127,9 @@ export declare const tokenMessageLayout: <C extends Pick<LengthPrefixedBytesLayo
|
|
|
127
127
|
readonly name: "amount";
|
|
128
128
|
}];
|
|
129
129
|
export declare const extendedMessageLayout: <C extends Pick<LengthPrefixedBytesLayoutItem, "custom">, R extends Pick<LengthPrefixedBytesLayoutItem, "custom">>(custom?: {
|
|
130
|
-
contents?: C;
|
|
131
|
-
relaySignal?: R;
|
|
132
|
-
}) => readonly [{
|
|
130
|
+
contents?: C | undefined;
|
|
131
|
+
relaySignal?: R | undefined;
|
|
132
|
+
} | undefined) => readonly [{
|
|
133
133
|
readonly name: "magicByte";
|
|
134
134
|
readonly binary: "uint";
|
|
135
135
|
readonly size: 1;
|
|
@@ -153,8 +153,8 @@ export declare const extendedMessageLayout: <C extends Pick<LengthPrefixedBytesL
|
|
|
153
153
|
readonly size: 8;
|
|
154
154
|
}, {
|
|
155
155
|
readonly custom: {
|
|
156
|
-
to: (val: number) => "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia";
|
|
157
|
-
from: (val: "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") => number;
|
|
156
|
+
to: (val: number) => "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky";
|
|
157
|
+
from: (val: "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky") => number;
|
|
158
158
|
};
|
|
159
159
|
readonly binary: "uint";
|
|
160
160
|
readonly size: 2;
|
|
@@ -212,8 +212,8 @@ export declare const namedPayloads: readonly [readonly ["Message", readonly [{
|
|
|
212
212
|
readonly size: 8;
|
|
213
213
|
}, {
|
|
214
214
|
readonly custom: {
|
|
215
|
-
to: (val: number) => "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia";
|
|
216
|
-
from: (val: "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") => number;
|
|
215
|
+
to: (val: number) => "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky";
|
|
216
|
+
from: (val: "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky") => number;
|
|
217
217
|
};
|
|
218
218
|
readonly binary: "uint";
|
|
219
219
|
readonly size: 2;
|
|
@@ -260,8 +260,8 @@ export declare const namedPayloads: readonly [readonly ["Message", readonly [{
|
|
|
260
260
|
readonly size: 8;
|
|
261
261
|
}, {
|
|
262
262
|
readonly custom: {
|
|
263
|
-
to: (val: number) => "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia";
|
|
264
|
-
from: (val: "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") => number;
|
|
263
|
+
to: (val: number) => "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky";
|
|
264
|
+
from: (val: "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky") => number;
|
|
265
265
|
};
|
|
266
266
|
readonly binary: "uint";
|
|
267
267
|
readonly size: 2;
|
|
@@ -332,8 +332,8 @@ export declare const namedPayloads: readonly [readonly ["Message", readonly [{
|
|
|
332
332
|
readonly size: 8;
|
|
333
333
|
}, {
|
|
334
334
|
readonly custom: {
|
|
335
|
-
to: (val: number) => "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia";
|
|
336
|
-
from: (val: "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") => number;
|
|
335
|
+
to: (val: number) => "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky";
|
|
336
|
+
from: (val: "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky") => number;
|
|
337
337
|
};
|
|
338
338
|
readonly binary: "uint";
|
|
339
339
|
readonly size: 2;
|