@wormhole-foundation/sdk-solana-tokenbridge 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, PublicKeyInitData, TransactionInstruction } from '@solana/web3.js';
3
3
  import { PublicKey } from '@solana/web3.js';
4
4
  export declare class Creator {
@@ -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 deriveTokenBridgeConfigKey(tokenBridgeProgramId: PublicKeyInitData): PublicKey;
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import type { Commitment, Connection, PublicKeyInitData } from '@solana/web3.js';
3
3
  import { PublicKey } from '@solana/web3.js';
4
4
  import type { ChainId } from '@wormhole-foundation/sdk-connect';
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import type { Commitment, Connection, PublicKeyInitData } from '@solana/web3.js';
3
3
  import { PublicKey } from '@solana/web3.js';
4
4
  import type { ChainId } from '@wormhole-foundation/sdk-connect';
@@ -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 TokenBridgeAccountsCoder<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, InstructionCoder } from '@coral-xyz/anchor';
3
3
  export declare class TokenBridgeInstructionCoder implements InstructionCoder {
4
4
  constructor(_: Idl);
@@ -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 TokenBridgeStateCoder 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 TokenBridgeTypesCoder 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 { PublicKeyInitData } from '@solana/web3.js';
3
3
  import { PublicKey } from '@solana/web3.js';
4
4
  import type { TokenBridge } from '@wormhole-foundation/sdk-connect';
@@ -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 createTransferNativeInstruction(connection: Connection, tokenBridgeProgramId: PublicKeyInitData, wormholeProgramId: PublicKeyInitData, payer: PublicKeyInitData, message: PublicKeyInitData, from: PublicKeyInitData, mint: PublicKeyInitData, nonce: number, amount: bigint, fee: bigint, targetAddress: Buffer | Uint8Array, targetChain: number): TransactionInstruction;
@@ -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 createTransferNativeWithPayloadInstruction(connection: Connection, tokenBridgeProgramId: PublicKeyInitData, wormholeProgramId: PublicKeyInitData, payer: PublicKeyInitData, message: PublicKeyInitData, from: PublicKeyInitData, mint: PublicKeyInitData, nonce: number, amount: bigint, targetAddress: Buffer | Uint8Array, targetChain: number, payload: Buffer | Uint8Array): TransactionInstruction;
@@ -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 createTransferWrappedInstruction(connection: Connection, tokenBridgeProgramId: PublicKeyInitData, wormholeProgramId: PublicKeyInitData, payer: PublicKeyInitData, message: PublicKeyInitData, from: PublicKeyInitData, fromOwner: PublicKeyInitData, tokenChain: number, tokenAddress: Buffer | Uint8Array, nonce: number, amount: bigint, fee: bigint, targetAddress: Buffer | Uint8Array, targetChain: number): TransactionInstruction;
@@ -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 createTransferWrappedWithPayloadInstruction(connection: Connection, tokenBridgeProgramId: PublicKeyInitData, wormholeProgramId: PublicKeyInitData, payer: PublicKeyInitData, message: PublicKeyInitData, from: PublicKeyInitData, fromOwner: PublicKeyInitData, tokenChain: number, tokenAddress: Buffer | Uint8Array, nonce: number, amount: bigint, targetAddress: Buffer | Uint8Array, targetChain: number, payload: Buffer | Uint8Array): TransactionInstruction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wormhole-foundation/sdk-solana-tokenbridge",
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",
@@ -45,10 +48,9 @@
45
48
  "nock": "^13.3.3"
46
49
  },
47
50
  "dependencies": {
48
- "@wormhole-foundation/sdk-connect": "0.5.2-beta.9",
49
- "@wormhole-foundation/sdk-solana": "0.5.2-beta.9",
50
- "@wormhole-foundation/sdk-solana-core": "0.5.2-beta.9",
51
- "@coral-xyz/borsh": "0.29.0",
51
+ "@wormhole-foundation/sdk-connect": "0.5.3-beta.0",
52
+ "@wormhole-foundation/sdk-solana": "0.5.3-beta.0",
53
+ "@wormhole-foundation/sdk-solana-core": "0.5.3-beta.0",
52
54
  "@coral-xyz/anchor": "0.29.0",
53
55
  "@solana/spl-token": "0.3.9",
54
56
  "@solana/web3.js": "1.89.1"