@solana-program/token-wrap 2.0.0 → 2.1.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.
@@ -5,6 +5,7 @@
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
+ export * from './closeStuckEscrow';
8
9
  export * from './createMint';
9
10
  export * from './unwrap';
10
11
  export * from './wrap';
@@ -6,7 +6,7 @@
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
8
  import { type Address, type ReadonlyUint8Array } from '@solana/kit';
9
- import { type ParsedCreateMintInstruction, type ParsedUnwrapInstruction, type ParsedWrapInstruction } from '../instructions';
9
+ import { type ParsedCloseStuckEscrowInstruction, type ParsedCreateMintInstruction, type ParsedUnwrapInstruction, type ParsedWrapInstruction } from '../instructions';
10
10
  export declare const TOKEN_WRAP_PROGRAM_ADDRESS: Address<"TwRapQCDhWkZRrDaHfZGuHxkZ91gHDRkyuzNqeU5MgR">;
11
11
  export declare enum TokenWrapAccount {
12
12
  Backpointer = 0
@@ -14,7 +14,8 @@ export declare enum TokenWrapAccount {
14
14
  export declare enum TokenWrapInstruction {
15
15
  CreateMint = 0,
16
16
  Wrap = 1,
17
- Unwrap = 2
17
+ Unwrap = 2,
18
+ CloseStuckEscrow = 3
18
19
  }
19
20
  export declare function identifyTokenWrapInstruction(instruction: {
20
21
  data: ReadonlyUint8Array;
@@ -25,4 +26,6 @@ export type ParsedTokenWrapInstruction<TProgram extends string = 'TwRapQCDhWkZRr
25
26
  instructionType: TokenWrapInstruction.Wrap;
26
27
  } & ParsedWrapInstruction<TProgram>) | ({
27
28
  instructionType: TokenWrapInstruction.Unwrap;
28
- } & ParsedUnwrapInstruction<TProgram>);
29
+ } & ParsedUnwrapInstruction<TProgram>) | ({
30
+ instructionType: TokenWrapInstruction.CloseStuckEscrow;
31
+ } & ParsedCloseStuckEscrowInstruction<TProgram>);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana-program/token-wrap",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Javascript helpers for interacting with the Solana Token Wrap program",
5
5
  "author": "Anza Maintainers <maintainers@anza.xyz>",
6
6
  "license": "Apache-2.0",
@@ -37,23 +37,23 @@
37
37
  "dependencies": {
38
38
  "@solana-program/system": "^0.7.0",
39
39
  "@solana-program/token": "^0.5.1",
40
- "@solana-program/token-2022": "^0.4.1",
40
+ "@solana-program/token-2022": "^0.4.2",
41
41
  "@solana/accounts": "^2.1.1",
42
42
  "@solana/rpc-types": "^2.1.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@eslint/js": "^9.28.0",
45
+ "@eslint/js": "^9.29.0",
46
46
  "@solana/kit": "^2.1.1",
47
47
  "@tsconfig/strictest": "^2.0.5",
48
- "@types/node": "^22.15.30",
49
- "eslint": "^9.28.0",
48
+ "@types/node": "^24.0.4",
49
+ "eslint": "^9.29.0",
50
50
  "eslint-config-prettier": "^10.1.5",
51
- "prettier": "^3.5.3",
51
+ "prettier": "^3.6.1",
52
52
  "tsup": "^8.5.0",
53
- "tsx": "^4.19.3",
53
+ "tsx": "^4.20.3",
54
54
  "typedoc": "^0.28.5",
55
55
  "typescript": "^5.8.2",
56
- "typescript-eslint": "^8.33.1"
56
+ "typescript-eslint": "^8.35.0"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsc && tsup",