@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.
@@ -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 { Idl, Instruction, InstructionCoder } from '@coral-xyz/anchor';
3
3
  export declare class WormholeInstructionCoder implements InstructionCoder {
4
4
  private ixLayout;
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import type { Idl, StateCoder } from '@coral-xyz/anchor';
3
3
  export declare class WormholeStateCoder implements StateCoder {
4
4
  constructor(_idl: Idl);
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import type { Idl, TypesCoder } from '@coral-xyz/anchor';
3
3
  export declare class WormholeTypesCoder implements TypesCoder {
4
4
  constructor(_idl: Idl);
@@ -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;
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { TransactionInstruction } from '@solana/web3.js';
3
3
  export declare const SIGNATURE_LENGTH = 65;
4
4
  export declare const ETHEREUM_KEY_LENGTH = 20;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wormhole-foundation/sdk-solana-core",
3
- "version": "0.5.2-beta.9",
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": true,
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.2-beta.9",
50
- "@wormhole-foundation/sdk-solana": "0.5.2-beta.9",
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",