@wormhole-foundation/sdk-solana-core 0.5.2-beta.9 → 0.5.3-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/utils/accounts/claim.d.ts +1 -1
- package/dist/cjs/utils/accounts/config.d.ts +1 -1
- package/dist/cjs/utils/accounts/guardianSet.d.ts +1 -1
- package/dist/cjs/utils/accounts/postedVaa.d.ts +1 -1
- package/dist/cjs/utils/accounts/sequence.d.ts +1 -1
- package/dist/cjs/utils/accounts/signatureSet.d.ts +1 -1
- package/dist/cjs/utils/coder/accounts.d.ts +1 -1
- package/dist/cjs/utils/coder/instruction.d.ts +1 -1
- package/dist/cjs/utils/coder/state.d.ts +1 -1
- package/dist/cjs/utils/coder/types.d.ts +1 -1
- package/dist/cjs/utils/instructions/initialize.d.ts +1 -1
- package/dist/cjs/utils/instructions/secp256k1.d.ts +1 -1
- package/package.json +7 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import type { Commitment, Connection, PublicKey, PublicKeyInitData } from '@solana/web3.js';
|
|
3
3
|
export declare function deriveClaimKey(programId: PublicKeyInitData, emitterAddress: Buffer | Uint8Array | string, emitterChain: number, sequence: bigint | number): PublicKey;
|
|
4
4
|
export declare function getClaim(connection: Connection, programId: PublicKeyInitData, emitterAddress: Buffer | Uint8Array | string, emitterChain: number, sequence: bigint | number, commitment?: Commitment): Promise<boolean>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import type { Connection, PublicKey, Commitment, PublicKeyInitData } from '@solana/web3.js';
|
|
3
3
|
export declare function deriveWormholeBridgeDataKey(wormholeProgramId: PublicKeyInitData): PublicKey;
|
|
4
4
|
export declare function getWormholeBridgeData(connection: Connection, wormholeProgramId: PublicKeyInitData, commitment?: Commitment): Promise<BridgeData>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import type { Connection, PublicKey, Commitment, PublicKeyInitData } from '@solana/web3.js';
|
|
3
3
|
export declare function deriveGuardianSetKey(wormholeProgramId: PublicKeyInitData, index: number): PublicKey;
|
|
4
4
|
export declare function getGuardianSet(connection: Connection, wormholeProgramId: PublicKeyInitData, index: number, commitment?: Commitment): Promise<GuardianSetData>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import type { PublicKey, PublicKeyInitData } from '@solana/web3.js';
|
|
3
3
|
export declare function derivePostedVaaKey(wormholeProgramId: PublicKeyInitData, hash: Buffer): PublicKey;
|
|
4
4
|
//# sourceMappingURL=postedVaa.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import type { Connection, Commitment, PublicKeyInitData } from '@solana/web3.js';
|
|
3
3
|
import { PublicKey } from '@solana/web3.js';
|
|
4
4
|
export declare function deriveEmitterSequenceKey(emitter: PublicKeyInitData, wormholeProgramId: PublicKeyInitData): PublicKey;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import type { Connection, Commitment, PublicKeyInitData } from '@solana/web3.js';
|
|
3
3
|
export declare function getSignatureSetData(connection: Connection, signatureSet: PublicKeyInitData, commitment?: Commitment): Promise<SignatureSetData>;
|
|
4
4
|
export declare class SignatureSetData {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import type { AccountsCoder, Idl } from '@coral-xyz/anchor';
|
|
3
3
|
import { anchor } from '@wormhole-foundation/sdk-solana';
|
|
4
4
|
export declare class WormholeAccountsCoder<A extends string = string> implements AccountsCoder {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import type { Connection, PublicKeyInitData, TransactionInstruction } from '@solana/web3.js';
|
|
3
3
|
import { PublicKey } from '@solana/web3.js';
|
|
4
4
|
export declare function createInitializeInstruction(connection: Connection, wormholeProgramId: PublicKeyInitData, payer: PublicKeyInitData, guardianSetExpirationTime: number, fee: bigint, initialGuardians: Buffer[]): TransactionInstruction;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wormhole-foundation/sdk-solana-core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3-beta.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/wormhole-foundation/connect-sdk.git"
|
|
@@ -31,7 +31,10 @@
|
|
|
31
31
|
"engines": {
|
|
32
32
|
"node": ">=16"
|
|
33
33
|
},
|
|
34
|
-
"sideEffects":
|
|
34
|
+
"sideEffects": [
|
|
35
|
+
"dist/cjs/index.js",
|
|
36
|
+
"/dist/esm/index.js"
|
|
37
|
+
],
|
|
35
38
|
"scripts": {
|
|
36
39
|
"build:cjs": "tsc -p ./tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
|
|
37
40
|
"build:esm": "tsc -p ./tsconfig.esm.json",
|
|
@@ -46,11 +49,10 @@
|
|
|
46
49
|
"nock": "^13.3.3"
|
|
47
50
|
},
|
|
48
51
|
"dependencies": {
|
|
49
|
-
"@wormhole-foundation/sdk-connect": "0.5.
|
|
50
|
-
"@wormhole-foundation/sdk-solana": "0.5.
|
|
52
|
+
"@wormhole-foundation/sdk-connect": "0.5.3-beta.0",
|
|
53
|
+
"@wormhole-foundation/sdk-solana": "0.5.3-beta.0",
|
|
51
54
|
"@coral-xyz/borsh": "0.29.0",
|
|
52
55
|
"@coral-xyz/anchor": "0.29.0",
|
|
53
|
-
"@solana/spl-token": "0.3.9",
|
|
54
56
|
"@solana/web3.js": "1.89.1"
|
|
55
57
|
},
|
|
56
58
|
"type": "module",
|