@wormhole-foundation/sdk-definitions 0.2.6 → 0.3.0-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/attestation.d.ts +2 -3
- package/dist/cjs/attestation.d.ts.map +1 -1
- package/dist/cjs/attestation.js +1 -1
- package/dist/cjs/attestation.js.map +1 -1
- package/dist/cjs/layout-items/chain.d.ts +9 -9
- package/dist/cjs/layout-items/circle.d.ts +2 -2
- package/dist/cjs/layout-items/circle.d.ts.map +1 -1
- package/dist/cjs/layout-items/circle.js.map +1 -1
- package/dist/cjs/payloads/bam.d.ts +20 -20
- package/dist/cjs/payloads/connect.d.ts +16 -16
- package/dist/cjs/payloads/governance.d.ts +42 -42
- package/dist/cjs/payloads/relayer.d.ts +12 -12
- package/dist/cjs/payloads/tokenBridge.d.ts +14 -14
- package/dist/cjs/protocol.d.ts +1 -1
- package/dist/cjs/protocols/cctp.d.ts +19 -7
- package/dist/cjs/protocols/cctp.d.ts.map +1 -1
- package/dist/cjs/protocols/cctp.js +11 -1
- package/dist/cjs/protocols/cctp.js.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/tokenBridge.d.ts +10 -0
- package/dist/cjs/protocols/tokenBridge.d.ts.map +1 -1
- package/dist/cjs/protocols/tokenBridge.js +8 -1
- package/dist/cjs/protocols/tokenBridge.js.map +1 -1
- package/dist/cjs/types.d.ts +2 -2
- package/dist/cjs/types.d.ts.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/attestation.d.ts +2 -3
- package/dist/esm/attestation.d.ts.map +1 -1
- package/dist/esm/attestation.js +1 -1
- package/dist/esm/attestation.js.map +1 -1
- package/dist/esm/layout-items/chain.d.ts +9 -9
- package/dist/esm/layout-items/circle.d.ts +2 -2
- package/dist/esm/layout-items/circle.d.ts.map +1 -1
- package/dist/esm/layout-items/circle.js.map +1 -1
- package/dist/esm/payloads/bam.d.ts +20 -20
- package/dist/esm/payloads/connect.d.ts +16 -16
- package/dist/esm/payloads/governance.d.ts +42 -42
- package/dist/esm/payloads/relayer.d.ts +12 -12
- package/dist/esm/payloads/tokenBridge.d.ts +14 -14
- package/dist/esm/protocol.d.ts +1 -1
- package/dist/esm/protocols/cctp.d.ts +19 -7
- package/dist/esm/protocols/cctp.d.ts.map +1 -1
- package/dist/esm/protocols/cctp.js +9 -1
- package/dist/esm/protocols/cctp.js.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/tokenBridge.d.ts +10 -0
- package/dist/esm/protocols/tokenBridge.d.ts.map +1 -1
- package/dist/esm/protocols/tokenBridge.js +6 -0
- package/dist/esm/protocols/tokenBridge.js.map +1 -1
- package/dist/esm/types.d.ts +2 -2
- package/dist/esm/types.d.ts.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 +2 -2
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { Chain } from "@wormhole-foundation/sdk-base";
|
|
1
|
+
import { Chain, ProtocolName } from "@wormhole-foundation/sdk-base";
|
|
2
2
|
import { SequenceId } from "./types";
|
|
3
3
|
import { UniversalAddress } from "./universalAddress";
|
|
4
4
|
import { VAA } from "./vaa";
|
|
5
|
+
export type AttestationId<PN extends ProtocolName = ProtocolName> = PN extends "TokenBridge" | "AutomaticTokenBridge" ? WormholeMessageId : PN extends "CircleBridge" | "AutomaticCircleBridge" ? CircleMessageId : PN extends "IbcBridge" ? IbcMessageId : never;
|
|
5
6
|
export type WormholeMessageId = {
|
|
6
7
|
chain: Chain;
|
|
7
8
|
emitter: UniversalAddress;
|
|
8
9
|
sequence: SequenceId;
|
|
9
|
-
vaa?: VAA;
|
|
10
10
|
};
|
|
11
11
|
export declare function isWormholeMessageId(thing: WormholeMessageId | any): thing is WormholeMessageId;
|
|
12
12
|
export type getWormholeAttestation = (id: WormholeMessageId) => Promise<VAA>;
|
|
13
13
|
export type CircleMessageId = {
|
|
14
|
-
message: string;
|
|
15
14
|
hash: string;
|
|
16
15
|
};
|
|
17
16
|
export declare function isCircleMessageId(thing: CircleMessageId | any): thing is CircleMessageId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attestation.d.ts","sourceRoot":"","sources":["../../src/attestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"attestation.d.ts","sourceRoot":"","sources":["../../src/attestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG5B,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,YAAY,GAAG,YAAY,IAAI,EAAE,SAClE,aAAa,GACb,sBAAsB,GACtB,iBAAiB,GACjB,EAAE,SAAS,cAAc,GAAG,uBAAuB,GACnD,eAAe,GACf,EAAE,SAAS,WAAW,GACtB,YAAY,GACZ,KAAK,CAAC;AAIV,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,EAAE,UAAU,CAAC;CACtB,CAAC;AACF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,GAAG,GAAG,GAAG,KAAK,IAAI,iBAAiB,CAM9F;AAED,MAAM,MAAM,sBAAsB,GAAG,CAAC,EAAE,EAAE,iBAAiB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;AAI7E,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AACF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,eAAe,GAAG,GAAG,GAAG,KAAK,IAAI,eAAe,CAExF;AAGD,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAEvC,MAAM,MAAM,oBAAoB,GAAG,CAAC,EAAE,EAAE,eAAe,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAIvF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AACF,wBAAgB,cAAc,CAAC,KAAK,EAAE,YAAY,GAAG,GAAG,GAAG,KAAK,IAAI,YAAY,CAS/E"}
|
package/dist/cjs/attestation.js
CHANGED
|
@@ -8,7 +8,7 @@ function isWormholeMessageId(thing) {
|
|
|
8
8
|
}
|
|
9
9
|
exports.isWormholeMessageId = isWormholeMessageId;
|
|
10
10
|
function isCircleMessageId(thing) {
|
|
11
|
-
return
|
|
11
|
+
return thing.hash !== undefined;
|
|
12
12
|
}
|
|
13
13
|
exports.isCircleMessageId = isCircleMessageId;
|
|
14
14
|
function isIbcMessageId(thing) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attestation.js","sourceRoot":"","sources":["../../src/attestation.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"attestation.js","sourceRoot":"","sources":["../../src/attestation.ts"],"names":[],"mappings":";;;AAuBA,SAAgB,mBAAmB,CAAC,KAA8B;IAChE,OAAO,CACe,KAAM,CAAC,QAAQ,KAAK,SAAS;QAC7B,KAAM,CAAC,OAAO,KAAK,SAAS;QAC5B,KAAM,CAAC,KAAK,KAAK,SAAS,CAC/C,CAAC;AACJ,CAAC;AAND,kDAMC;AASD,SAAgB,iBAAiB,CAAC,KAA4B;IAC5D,OAAyB,KAAM,CAAC,IAAI,KAAK,SAAS,CAAC;AACrD,CAAC;AAFD,8CAEC;AAiBD,SAAgB,cAAc,CAAC,KAAyB;IACtD,OAAO,CACU,KAAM,CAAC,UAAU,KAAK,SAAS;QAC/B,KAAM,CAAC,UAAU,KAAK,SAAS;QAC/B,KAAM,CAAC,KAAK,KAAK,SAAS;QAC1B,KAAM,CAAC,OAAO,KAAK,SAAS;QAC5B,KAAM,CAAC,OAAO,KAAK,SAAS;QAC5B,KAAM,CAAC,QAAQ,KAAK,SAAS,CAC7C,CAAC;AACJ,CAAC;AATD,wCASC"}
|
|
@@ -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 ("Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
3
|
-
allowedChains?: C
|
|
4
|
-
allowNull?: N
|
|
5
|
-
}
|
|
2
|
+
export declare const chainItem: <C extends readonly ("Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "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
|
+
}) => {
|
|
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 ("Ethereum" | "Avalanche" |
|
|
|
10
10
|
readonly binary: "uint";
|
|
11
11
|
readonly size: 2;
|
|
12
12
|
};
|
|
13
|
-
export declare const fixedChainItem: <C extends "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
13
|
+
export declare const fixedChainItem: <C extends "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia">(chain: C) => {
|
|
14
14
|
readonly custom: {
|
|
15
15
|
to: C;
|
|
16
|
-
from: (C extends bigint ? `bigint(${C})` : C extends boolean ? `boolean(${C})` : C) extends "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
16
|
+
from: (C extends bigint ? `bigint(${C})` : C extends boolean ? `boolean(${C})` : C) extends "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" ? {
|
|
17
17
|
readonly Solana: 1;
|
|
18
18
|
readonly Ethereum: 2;
|
|
19
19
|
readonly Terra: 3;
|
|
@@ -50,7 +50,7 @@ export declare const fixedChainItem: <C extends "Ethereum" | "Avalanche" | "Opti
|
|
|
50
50
|
readonly Evmos: 4001;
|
|
51
51
|
readonly Kujira: 4002;
|
|
52
52
|
readonly Sepolia: 10002;
|
|
53
|
-
}[("Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
53
|
+
}[("Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") & (C extends bigint ? `bigint(${C})` : C extends boolean ? `boolean(${C})` : C)] extends {
|
|
54
54
|
[key: string]: unknown;
|
|
55
55
|
[key: number]: unknown;
|
|
56
56
|
[key: symbol]: unknown;
|
|
@@ -91,7 +91,7 @@ export declare const fixedChainItem: <C extends "Ethereum" | "Avalanche" | "Opti
|
|
|
91
91
|
readonly Evmos: 4001;
|
|
92
92
|
readonly Kujira: 4002;
|
|
93
93
|
readonly Sepolia: 10002;
|
|
94
|
-
}[("Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
94
|
+
}[("Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") & (C extends bigint ? `bigint(${C})` : C extends boolean ? `boolean(${C})` : C)] : {
|
|
95
95
|
readonly Solana: 1;
|
|
96
96
|
readonly Ethereum: 2;
|
|
97
97
|
readonly Terra: 3;
|
|
@@ -128,7 +128,7 @@ export declare const fixedChainItem: <C extends "Ethereum" | "Avalanche" | "Opti
|
|
|
128
128
|
readonly Evmos: 4001;
|
|
129
129
|
readonly Kujira: 4002;
|
|
130
130
|
readonly Sepolia: 10002;
|
|
131
|
-
}[("Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
131
|
+
}[("Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") & (C extends bigint ? `bigint(${C})` : C extends boolean ? `boolean(${C})` : C)] : never;
|
|
132
132
|
};
|
|
133
133
|
readonly binary: "uint";
|
|
134
134
|
readonly size: 2;
|
|
@@ -3,8 +3,8 @@ export declare const circleDomainItem: {
|
|
|
3
3
|
readonly binary: "uint";
|
|
4
4
|
readonly size: 4;
|
|
5
5
|
readonly custom: {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
to: (id: number) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base";
|
|
7
|
+
from: (name: circle.CircleChain) => 0 | 1 | 2 | 3 | 5 | 6;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export declare const circleNonceItem: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["../../../src/layout-items/circle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["../../../src/layout-items/circle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAIvD,eAAO,MAAM,gBAAgB;;;;iBAIhB,MAAM;qBACF,OAAO,WAAW;;CAEA,CAAC;AAEpC,eAAO,MAAM,eAAe;;;CAGlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"circle.js","sourceRoot":"","sources":["../../../src/layout-items/circle.ts"],"names":[],"mappings":";;;AAAA,4DAAuD;
|
|
1
|
+
{"version":3,"file":"circle.js","sourceRoot":"","sources":["../../../src/layout-items/circle.ts"],"names":[],"mappings":";;;AAAA,4DAAuD;AAI1C,QAAA,gBAAgB,GAAG;IAC9B,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,CAAC;IACP,MAAM,EAAE;QACN,EAAE,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,iBAAM,CAAC,aAAa,CAAC,EAAE,CAAC;QAC5C,IAAI,EAAE,CAAC,IAAwB,EAAE,EAAE,CAAC,iBAAM,CAAC,aAAa,CAAC,IAAI,CAAC;KACR;CACvB,CAAC;AAEvB,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,CAAC;CACC,CAAC"}
|
|
@@ -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
|
|
3
|
+
export declare const messageLayout: <T extends number, C extends Pick<LengthPrefixedBytesLayoutItem, "custom">>(type: T, customContents?: C) => 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) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
28
|
-
from: (val: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
27
|
+
to: (val: number) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia";
|
|
28
|
+
from: (val: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") => 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
|
-
}
|
|
53
|
+
contents?: C;
|
|
54
|
+
bridge?: B;
|
|
55
|
+
assetIdentifier?: A;
|
|
56
|
+
}) => 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) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
81
|
-
from: (val: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
80
|
+
to: (val: number) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia";
|
|
81
|
+
from: (val: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") => 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
|
-
}
|
|
130
|
+
contents?: C;
|
|
131
|
+
relaySignal?: R;
|
|
132
|
+
}) => 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) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
157
|
-
from: (val: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
156
|
+
to: (val: number) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia";
|
|
157
|
+
from: (val: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") => 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) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
216
|
-
from: (val: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
215
|
+
to: (val: number) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia";
|
|
216
|
+
from: (val: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") => 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) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
264
|
-
from: (val: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
263
|
+
to: (val: number) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia";
|
|
264
|
+
from: (val: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") => 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) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
336
|
-
from: (val: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "
|
|
335
|
+
to: (val: number) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia";
|
|
336
|
+
from: (val: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base" | "Terra" | "Bsc" | "Polygon" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia") => number;
|
|
337
337
|
};
|
|
338
338
|
readonly binary: "uint";
|
|
339
339
|
readonly size: 2;
|
|
@@ -26,16 +26,16 @@ export declare const depositWithSizedLayoutPayload: <S extends number, L extends
|
|
|
26
26
|
readonly binary: "uint";
|
|
27
27
|
readonly size: 4;
|
|
28
28
|
readonly custom: {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
to: (id: number) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base";
|
|
30
|
+
from: (name: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base") => 0 | 1 | 2 | 3 | 5 | 6;
|
|
31
31
|
};
|
|
32
32
|
readonly name: "sourceDomain";
|
|
33
33
|
}, {
|
|
34
34
|
readonly binary: "uint";
|
|
35
35
|
readonly size: 4;
|
|
36
36
|
readonly custom: {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
to: (id: number) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base";
|
|
38
|
+
from: (name: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base") => 0 | 1 | 2 | 3 | 5 | 6;
|
|
39
39
|
};
|
|
40
40
|
readonly name: "targetDomain";
|
|
41
41
|
}, {
|
|
@@ -95,16 +95,16 @@ export declare const depositWithBytesPayload: <C extends Pick<LengthPrefixedByte
|
|
|
95
95
|
readonly binary: "uint";
|
|
96
96
|
readonly size: 4;
|
|
97
97
|
readonly custom: {
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
to: (id: number) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base";
|
|
99
|
+
from: (name: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base") => 0 | 1 | 2 | 3 | 5 | 6;
|
|
100
100
|
};
|
|
101
101
|
readonly name: "sourceDomain";
|
|
102
102
|
}, {
|
|
103
103
|
readonly binary: "uint";
|
|
104
104
|
readonly size: 4;
|
|
105
105
|
readonly custom: {
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
to: (id: number) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base";
|
|
107
|
+
from: (name: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base") => 0 | 1 | 2 | 3 | 5 | 6;
|
|
108
108
|
};
|
|
109
109
|
readonly name: "targetDomain";
|
|
110
110
|
}, {
|
|
@@ -181,16 +181,16 @@ export declare const namedPayloads: readonly [readonly ["DepositWithPayload", re
|
|
|
181
181
|
readonly binary: "uint";
|
|
182
182
|
readonly size: 4;
|
|
183
183
|
readonly custom: {
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
to: (id: number) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base";
|
|
185
|
+
from: (name: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base") => 0 | 1 | 2 | 3 | 5 | 6;
|
|
186
186
|
};
|
|
187
187
|
readonly name: "sourceDomain";
|
|
188
188
|
}, {
|
|
189
189
|
readonly binary: "uint";
|
|
190
190
|
readonly size: 4;
|
|
191
191
|
readonly custom: {
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
to: (id: number) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base";
|
|
193
|
+
from: (name: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base") => 0 | 1 | 2 | 3 | 5 | 6;
|
|
194
194
|
};
|
|
195
195
|
readonly name: "targetDomain";
|
|
196
196
|
}, {
|
|
@@ -243,16 +243,16 @@ export declare const namedPayloads: readonly [readonly ["DepositWithPayload", re
|
|
|
243
243
|
readonly binary: "uint";
|
|
244
244
|
readonly size: 4;
|
|
245
245
|
readonly custom: {
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
to: (id: number) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base";
|
|
247
|
+
from: (name: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base") => 0 | 1 | 2 | 3 | 5 | 6;
|
|
248
248
|
};
|
|
249
249
|
readonly name: "sourceDomain";
|
|
250
250
|
}, {
|
|
251
251
|
readonly binary: "uint";
|
|
252
252
|
readonly size: 4;
|
|
253
253
|
readonly custom: {
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
to: (id: number) => "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base";
|
|
255
|
+
from: (name: "Ethereum" | "Avalanche" | "Optimism" | "Arbitrum" | "Solana" | "Base") => 0 | 1 | 2 | 3 | 5 | 6;
|
|
256
256
|
};
|
|
257
257
|
readonly name: "targetDomain";
|
|
258
258
|
}, {
|