@solana-program/token-wrap 2.2.0 → 2.4.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.
Files changed (34) hide show
  1. package/dist/src/index.js +206 -282
  2. package/dist/src/index.js.map +1 -1
  3. package/dist/src/index.mjs +207 -284
  4. package/dist/src/index.mjs.map +1 -1
  5. package/dist/types/{generated → src/generated}/accounts/backpointer.d.ts +6 -2
  6. package/dist/types/{generated → src/generated}/accounts/index.d.ts +2 -2
  7. package/dist/types/{generated → src/generated}/errors/index.d.ts +2 -2
  8. package/dist/types/{generated → src/generated}/errors/tokenWrap.d.ts +2 -2
  9. package/dist/types/{generated → src/generated}/index.d.ts +2 -2
  10. package/dist/types/{generated → src/generated}/instructions/closeStuckEscrow.d.ts +3 -3
  11. package/dist/types/{generated → src/generated}/instructions/createMint.d.ts +3 -3
  12. package/dist/types/{generated → src/generated}/instructions/index.d.ts +2 -2
  13. package/dist/types/{generated → src/generated}/instructions/syncMetadataToSplToken.d.ts +3 -3
  14. package/dist/types/{generated → src/generated}/instructions/syncMetadataToToken2022.d.ts +3 -3
  15. package/dist/types/{generated → src/generated}/instructions/unwrap.d.ts +3 -3
  16. package/dist/types/{generated → src/generated}/instructions/wrap.d.ts +3 -3
  17. package/dist/types/{generated → src/generated}/pdas/backpointer.d.ts +2 -2
  18. package/dist/types/{generated → src/generated}/pdas/index.d.ts +2 -2
  19. package/dist/types/{generated → src/generated}/pdas/wrappedMint.d.ts +2 -2
  20. package/dist/types/{generated → src/generated}/pdas/wrappedMintAuthority.d.ts +2 -2
  21. package/dist/types/{generated → src/generated}/programs/index.d.ts +2 -2
  22. package/dist/types/{generated → src/generated}/programs/tokenWrap.d.ts +4 -3
  23. package/dist/types/{generated → src/generated}/shared/index.d.ts +2 -2
  24. package/dist/types/{unwrap.d.ts → src/unwrap.d.ts} +1 -2
  25. package/dist/types/{utilities.d.ts → src/utilities.d.ts} +1 -3
  26. package/dist/types/{wrap.d.ts → src/wrap.d.ts} +1 -2
  27. package/dist/types/tsup.config.d.ts +3 -0
  28. package/package.json +16 -18
  29. /package/dist/types/{create-mint.d.ts → src/create-mint.d.ts} +0 -0
  30. /package/dist/types/{examples → src/examples}/multisig.d.ts +0 -0
  31. /package/dist/types/{examples → src/examples}/single-signer.d.ts +0 -0
  32. /package/dist/types/{examples → src/examples}/sync-spl-to-token2022.d.ts +0 -0
  33. /package/dist/types/{examples → src/examples}/sync-token2022-to-spl.d.ts +0 -0
  34. /package/dist/types/{index.d.ts → src/index.d.ts} +0 -0
@@ -1,18 +1,22 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
8
  import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount } from '@solana/kit';
9
9
  import { BackpointerSeeds } from '../pdas';
10
+ /** Account to store the address of the unwrapped mint. */
10
11
  export type Backpointer = {
11
12
  unwrappedMint: Address;
12
13
  };
13
14
  export type BackpointerArgs = Backpointer;
15
+ /** Gets the encoder for {@link BackpointerArgs} account data. */
14
16
  export declare function getBackpointerEncoder(): FixedSizeEncoder<BackpointerArgs>;
17
+ /** Gets the decoder for {@link Backpointer} account data. */
15
18
  export declare function getBackpointerDecoder(): FixedSizeDecoder<Backpointer>;
19
+ /** Gets the codec for {@link Backpointer} account data. */
16
20
  export declare function getBackpointerCodec(): FixedSizeCodec<BackpointerArgs, Backpointer>;
17
21
  export declare function decodeBackpointer<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Backpointer, TAddress>;
18
22
  export declare function decodeBackpointer<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Backpointer, TAddress>;
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
@@ -1,14 +1,14 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
8
  import { type AccountMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit';
9
9
  import { TOKEN_WRAP_PROGRAM_ADDRESS } from '../programs';
10
10
  export declare const CLOSE_STUCK_ESCROW_DISCRIMINATOR = 3;
11
- export declare function getCloseStuckEscrowDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export declare function getCloseStuckEscrowDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
12
  export type CloseStuckEscrowInstruction<TProgram extends string = typeof TOKEN_WRAP_PROGRAM_ADDRESS, TAccountEscrow extends string | AccountMeta<string> = string, TAccountDestination extends string | AccountMeta<string> = string, TAccountUnwrappedMint extends string | AccountMeta<string> = string, TAccountWrappedMint extends string | AccountMeta<string> = string, TAccountWrappedMintAuthority extends string | AccountMeta<string> = string, TAccountToken2022Program extends string | AccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
13
  TAccountEscrow extends string ? WritableAccount<TAccountEscrow> : TAccountEscrow,
14
14
  TAccountDestination extends string ? WritableAccount<TAccountDestination> : TAccountDestination,
@@ -1,14 +1,14 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
8
  import { type AccountMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit';
9
9
  import { TOKEN_WRAP_PROGRAM_ADDRESS } from '../programs';
10
10
  export declare const CREATE_MINT_DISCRIMINATOR = 0;
11
- export declare function getCreateMintDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export declare function getCreateMintDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
12
  export type CreateMintInstruction<TProgram extends string = typeof TOKEN_WRAP_PROGRAM_ADDRESS, TAccountWrappedMint extends string | AccountMeta<string> = string, TAccountBackpointer extends string | AccountMeta<string> = string, TAccountUnwrappedMint extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountWrappedTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
13
  TAccountWrappedMint extends string ? WritableAccount<TAccountWrappedMint> : TAccountWrappedMint,
14
14
  TAccountBackpointer extends string ? WritableAccount<TAccountBackpointer> : TAccountBackpointer,
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
@@ -1,14 +1,14 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
8
  import { type AccountMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit';
9
9
  import { TOKEN_WRAP_PROGRAM_ADDRESS } from '../programs';
10
10
  export declare const SYNC_METADATA_TO_SPL_TOKEN_DISCRIMINATOR = 5;
11
- export declare function getSyncMetadataToSplTokenDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export declare function getSyncMetadataToSplTokenDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
12
  export type SyncMetadataToSplTokenInstruction<TProgram extends string = typeof TOKEN_WRAP_PROGRAM_ADDRESS, TAccountMetaplexMetadata extends string | AccountMeta<string> = string, TAccountWrappedMintAuthority extends string | AccountMeta<string> = string, TAccountWrappedMint extends string | AccountMeta<string> = string, TAccountUnwrappedMint extends string | AccountMeta<string> = string, TAccountMetaplexProgram extends string | AccountMeta<string> = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRentSysvar extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountSourceMetadata extends string | AccountMeta<string> = string, TAccountOwnerProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
13
  TAccountMetaplexMetadata extends string ? WritableAccount<TAccountMetaplexMetadata> : TAccountMetaplexMetadata,
14
14
  TAccountWrappedMintAuthority extends string ? WritableAccount<TAccountWrappedMintAuthority> : TAccountWrappedMintAuthority,
@@ -1,14 +1,14 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
8
  import { type AccountMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit';
9
9
  import { TOKEN_WRAP_PROGRAM_ADDRESS } from '../programs';
10
10
  export declare const SYNC_METADATA_TO_TOKEN2022_DISCRIMINATOR = 4;
11
- export declare function getSyncMetadataToToken2022DiscriminatorBytes(): ReadonlyUint8Array;
11
+ export declare function getSyncMetadataToToken2022DiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
12
  export type SyncMetadataToToken2022Instruction<TProgram extends string = typeof TOKEN_WRAP_PROGRAM_ADDRESS, TAccountWrappedMint extends string | AccountMeta<string> = string, TAccountWrappedMintAuthority extends string | AccountMeta<string> = string, TAccountUnwrappedMint extends string | AccountMeta<string> = string, TAccountToken2022Program extends string | AccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TAccountSourceMetadata extends string | AccountMeta<string> = string, TAccountOwnerProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
13
  TAccountWrappedMint extends string ? WritableAccount<TAccountWrappedMint> : TAccountWrappedMint,
14
14
  TAccountWrappedMintAuthority extends string ? ReadonlyAccount<TAccountWrappedMintAuthority> : TAccountWrappedMintAuthority,
@@ -1,14 +1,14 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
8
  import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
9
9
  import { TOKEN_WRAP_PROGRAM_ADDRESS } from '../programs';
10
10
  export declare const UNWRAP_DISCRIMINATOR = 2;
11
- export declare function getUnwrapDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export declare function getUnwrapDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
12
  export type UnwrapInstruction<TProgram extends string = typeof TOKEN_WRAP_PROGRAM_ADDRESS, TAccountUnwrappedEscrow extends string | AccountMeta<string> = string, TAccountRecipientUnwrappedToken extends string | AccountMeta<string> = string, TAccountWrappedMintAuthority extends string | AccountMeta<string> = string, TAccountUnwrappedMint extends string | AccountMeta<string> = string, TAccountWrappedTokenProgram extends string | AccountMeta<string> = string, TAccountUnwrappedTokenProgram extends string | AccountMeta<string> = string, TAccountWrappedTokenAccount extends string | AccountMeta<string> = string, TAccountWrappedMint extends string | AccountMeta<string> = string, TAccountTransferAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
13
  TAccountUnwrappedEscrow extends string ? WritableAccount<TAccountUnwrappedEscrow> : TAccountUnwrappedEscrow,
14
14
  TAccountRecipientUnwrappedToken extends string ? WritableAccount<TAccountRecipientUnwrappedToken> : TAccountRecipientUnwrappedToken,
@@ -1,14 +1,14 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
8
  import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
9
9
  import { TOKEN_WRAP_PROGRAM_ADDRESS } from '../programs';
10
10
  export declare const WRAP_DISCRIMINATOR = 1;
11
- export declare function getWrapDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export declare function getWrapDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
12
  export type WrapInstruction<TProgram extends string = typeof TOKEN_WRAP_PROGRAM_ADDRESS, TAccountRecipientWrappedTokenAccount extends string | AccountMeta<string> = string, TAccountWrappedMint extends string | AccountMeta<string> = string, TAccountWrappedMintAuthority extends string | AccountMeta<string> = string, TAccountUnwrappedTokenProgram extends string | AccountMeta<string> = string, TAccountWrappedTokenProgram extends string | AccountMeta<string> = string, TAccountUnwrappedTokenAccount extends string | AccountMeta<string> = string, TAccountUnwrappedMint extends string | AccountMeta<string> = string, TAccountUnwrappedEscrow extends string | AccountMeta<string> = string, TAccountTransferAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
13
  TAccountRecipientWrappedTokenAccount extends string ? WritableAccount<TAccountRecipientWrappedTokenAccount> : TAccountRecipientWrappedTokenAccount,
14
14
  TAccountWrappedMint extends string ? WritableAccount<TAccountWrappedMint> : TAccountWrappedMint,
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
@@ -1,11 +1,11 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
- import { type Address, type ReadonlyUint8Array } from '@solana/kit';
8
+ import { type Address, type Instruction, type InstructionWithData, type ReadonlyUint8Array } from '@solana/kit';
9
9
  import { type ParsedCloseStuckEscrowInstruction, type ParsedCreateMintInstruction, type ParsedSyncMetadataToSplTokenInstruction, type ParsedSyncMetadataToToken2022Instruction, type ParsedUnwrapInstruction, type ParsedWrapInstruction } from '../instructions';
10
10
  export declare const TOKEN_WRAP_PROGRAM_ADDRESS: Address<"TwRapQCDhWkZRrDaHfZGuHxkZ91gHDRkyuzNqeU5MgR">;
11
11
  export declare enum TokenWrapAccount {
@@ -35,3 +35,4 @@ export type ParsedTokenWrapInstruction<TProgram extends string = 'TwRapQCDhWkZRr
35
35
  } & ParsedSyncMetadataToToken2022Instruction<TProgram>) | ({
36
36
  instructionType: TokenWrapInstruction.SyncMetadataToSplToken;
37
37
  } & ParsedSyncMetadataToSplTokenInstruction<TProgram>);
38
+ export declare function parseTokenWrapInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedTokenWrapInstruction<TProgram>;
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This code was AUTOGENERATED using the codama library.
2
+ * This code was AUTOGENERATED using the Codama library.
3
3
  * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
4
+ * to add features, then rerun Codama to update it.
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
@@ -1,5 +1,4 @@
1
- import { Address, GetAccountInfoApi, Instruction, Rpc, TransactionMessage, TransactionMessageWithBlockhashLifetime, TransactionMessageWithFeePayerSigner, TransactionSigner } from '@solana/kit';
2
- import { Blockhash } from '@solana/rpc-types';
1
+ import { Address, Blockhash, GetAccountInfoApi, Instruction, Rpc, TransactionMessage, TransactionMessageWithBlockhashLifetime, TransactionMessageWithFeePayerSigner, TransactionSigner } from '@solana/kit';
3
2
  export interface SingleSignerUnwrapArgs {
4
3
  rpc: Rpc<GetAccountInfoApi>;
5
4
  payer: TransactionSigner;
@@ -1,7 +1,5 @@
1
- import { Address, FullySignedTransaction, GetAccountInfoApi, GetMinimumBalanceForRentExemptionApi, Instruction, KeyPairSigner, Rpc, Transaction, TransactionWithBlockhashLifetime, TransactionWithinSizeLimit } from '@solana/kit';
2
1
  import { Token } from '@solana-program/token-2022';
3
- import { Blockhash } from '@solana/rpc-types';
4
- import { Account } from '@solana/accounts';
2
+ import { Account, Address, Blockhash, FullySignedTransaction, GetAccountInfoApi, GetMinimumBalanceForRentExemptionApi, Instruction, KeyPairSigner, Rpc, Transaction, TransactionWithBlockhashLifetime, TransactionWithinSizeLimit } from '@solana/kit';
5
3
  export declare function createTokenAccount({ rpc, payer, mint, owner, tokenProgram, }: {
6
4
  rpc: Rpc<GetMinimumBalanceForRentExemptionApi>;
7
5
  payer: KeyPairSigner;
@@ -1,5 +1,4 @@
1
- import { Address, GetAccountInfoApi, Instruction, Rpc, TransactionMessage, TransactionMessageWithBlockhashLifetime, TransactionMessageWithFeePayerSigner, TransactionSigner } from '@solana/kit';
2
- import { Blockhash } from '@solana/rpc-types';
1
+ import { Address, Blockhash, GetAccountInfoApi, Instruction, Rpc, TransactionMessage, TransactionMessageWithBlockhashLifetime, TransactionMessageWithFeePayerSigner, TransactionSigner } from '@solana/kit';
3
2
  interface IxBuilderArgs {
4
3
  unwrappedTokenAccount: Address;
5
4
  wrappedTokenProgram: Address;
@@ -0,0 +1,3 @@
1
+ import { Options } from 'tsup';
2
+ declare const _default: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
3
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana-program/token-wrap",
3
- "version": "2.2.0",
3
+ "version": "2.4.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",
@@ -32,28 +32,26 @@
32
32
  "url": "https://github.com/solana-program/token-wrap/issues"
33
33
  },
34
34
  "peerDependencies": {
35
- "@solana/kit": "^3.0.1"
35
+ "@solana/kit": "^6.0.0"
36
36
  },
37
37
  "dependencies": {
38
- "@solana-program/system": "^0.8.0",
39
- "@solana-program/token": "^0.5.1",
40
- "@solana-program/token-2022": "^0.4.2",
41
- "@solana/accounts": "^3.0.1",
42
- "@solana/rpc-types": "^3.0.1"
38
+ "@solana-program/system": "^0.11.0",
39
+ "@solana-program/token": "^0.10.0",
40
+ "@solana-program/token-2022": "^0.9.0"
43
41
  },
44
42
  "devDependencies": {
45
- "@eslint/js": "^9.34.0",
46
- "@solana/kit": "^3.0.1",
47
- "@tsconfig/strictest": "^2.0.5",
48
- "@types/node": "^24.3.0",
49
- "eslint": "^9.34.0",
43
+ "@eslint/js": "^9.39.2",
44
+ "@solana/kit": "^6.0.0",
45
+ "@tsconfig/strictest": "^2.0.8",
46
+ "@types/node": "^25.0.3",
47
+ "eslint": "^9.39.2",
50
48
  "eslint-config-prettier": "^10.1.8",
51
- "prettier": "^3.6.2",
52
- "tsup": "^8.5.0",
53
- "tsx": "^4.20.5",
54
- "typedoc": "^0.28.12",
55
- "typescript": "^5.9.2",
56
- "typescript-eslint": "^8.41.0"
49
+ "prettier": "^3.8.1",
50
+ "tsup": "^8.5.1",
51
+ "tsx": "^4.21.0",
52
+ "typedoc": "^0.28.15",
53
+ "typescript": "^5.9.3",
54
+ "typescript-eslint": "^8.49.0"
57
55
  },
58
56
  "scripts": {
59
57
  "build": "tsc && tsup",
File without changes