@solana-program/system 0.14.1 → 0.15.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 (47) hide show
  1. package/dist/src/index.js +46 -46
  2. package/dist/src/index.js.map +1 -1
  3. package/dist/src/index.mjs +46 -46
  4. package/dist/src/index.mjs.map +1 -1
  5. package/dist/types/generated/instructions/advanceNonceAccount.d.ts +8 -7
  6. package/dist/types/generated/instructions/advanceNonceAccount.d.ts.map +1 -1
  7. package/dist/types/generated/instructions/allocate.d.ts +6 -5
  8. package/dist/types/generated/instructions/allocate.d.ts.map +1 -1
  9. package/dist/types/generated/instructions/allocateWithSeed.d.ts +7 -6
  10. package/dist/types/generated/instructions/allocateWithSeed.d.ts.map +1 -1
  11. package/dist/types/generated/instructions/assign.d.ts +6 -5
  12. package/dist/types/generated/instructions/assign.d.ts.map +1 -1
  13. package/dist/types/generated/instructions/assignWithSeed.d.ts +7 -6
  14. package/dist/types/generated/instructions/assignWithSeed.d.ts.map +1 -1
  15. package/dist/types/generated/instructions/authorizeNonceAccount.d.ts +7 -6
  16. package/dist/types/generated/instructions/authorizeNonceAccount.d.ts.map +1 -1
  17. package/dist/types/generated/instructions/createAccount.d.ts +7 -7
  18. package/dist/types/generated/instructions/createAccount.d.ts.map +1 -1
  19. package/dist/types/generated/instructions/createAccountAllowPrefund.d.ts +7 -7
  20. package/dist/types/generated/instructions/createAccountAllowPrefund.d.ts.map +1 -1
  21. package/dist/types/generated/instructions/createAccountWithSeed.d.ts +8 -7
  22. package/dist/types/generated/instructions/createAccountWithSeed.d.ts.map +1 -1
  23. package/dist/types/generated/instructions/initializeNonceAccount.d.ts +7 -6
  24. package/dist/types/generated/instructions/initializeNonceAccount.d.ts.map +1 -1
  25. package/dist/types/generated/instructions/transferSol.d.ts +7 -6
  26. package/dist/types/generated/instructions/transferSol.d.ts.map +1 -1
  27. package/dist/types/generated/instructions/transferSolWithSeed.d.ts +8 -7
  28. package/dist/types/generated/instructions/transferSolWithSeed.d.ts.map +1 -1
  29. package/dist/types/generated/instructions/upgradeNonceAccount.d.ts +5 -4
  30. package/dist/types/generated/instructions/upgradeNonceAccount.d.ts.map +1 -1
  31. package/dist/types/generated/instructions/withdrawNonceAccount.d.ts +10 -9
  32. package/dist/types/generated/instructions/withdrawNonceAccount.d.ts.map +1 -1
  33. package/package.json +3 -3
  34. package/src/generated/instructions/advanceNonceAccount.ts +35 -21
  35. package/src/generated/instructions/allocate.ts +22 -9
  36. package/src/generated/instructions/allocateWithSeed.ts +29 -13
  37. package/src/generated/instructions/assign.ts +22 -9
  38. package/src/generated/instructions/assignWithSeed.ts +29 -13
  39. package/src/generated/instructions/authorizeNonceAccount.ts +29 -13
  40. package/src/generated/instructions/createAccount.ts +28 -11
  41. package/src/generated/instructions/createAccountAllowPrefund.ts +25 -12
  42. package/src/generated/instructions/createAccountWithSeed.ts +35 -17
  43. package/src/generated/instructions/initializeNonceAccount.ts +34 -20
  44. package/src/generated/instructions/transferSol.ts +31 -12
  45. package/src/generated/instructions/transferSolWithSeed.ts +35 -17
  46. package/src/generated/instructions/upgradeNonceAccount.ts +22 -8
  47. package/src/generated/instructions/withdrawNonceAccount.ts +50 -33
@@ -5,7 +5,8 @@
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
- import { type AccountMeta, type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
8
+ import { type AccountMeta, type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlySignerAccount, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit';
9
+ import { type InstructionAccountInput, type InstructionAccountInputAddress, type InstructionSignerInput, type ResolvedInstructionAccountMeta } from '@solana/kit/program-client-core';
9
10
  import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
10
11
  export declare const TRANSFER_SOL_WITH_SEED_DISCRIMINATOR = 11;
11
12
  export declare function getTransferSolWithSeedDiscriminatorBytes(): ReadonlyUint8Array;
@@ -29,17 +30,17 @@ export type TransferSolWithSeedInstructionDataArgs = {
29
30
  export declare function getTransferSolWithSeedInstructionDataEncoder(): Encoder<TransferSolWithSeedInstructionDataArgs>;
30
31
  export declare function getTransferSolWithSeedInstructionDataDecoder(): Decoder<TransferSolWithSeedInstructionData>;
31
32
  export declare function getTransferSolWithSeedInstructionDataCodec(): Codec<TransferSolWithSeedInstructionDataArgs, TransferSolWithSeedInstructionData>;
32
- export type TransferSolWithSeedInput<TAccountSource extends string = string, TAccountBaseAccount extends string = string, TAccountDestination extends string = string> = {
33
- source: Address<TAccountSource>;
34
- baseAccount: TransactionSigner<TAccountBaseAccount>;
35
- destination: Address<TAccountDestination>;
33
+ export type TransferSolWithSeedInput<TAccountSource extends InstructionAccountInput = InstructionAccountInput, TAccountBaseAccount extends InstructionSignerInput = InstructionSignerInput, TAccountDestination extends InstructionAccountInput = InstructionAccountInput> = {
34
+ source: TAccountSource;
35
+ baseAccount: TAccountBaseAccount;
36
+ destination: TAccountDestination;
36
37
  amount: TransferSolWithSeedInstructionDataArgs['amount'];
37
38
  fromSeed: TransferSolWithSeedInstructionDataArgs['fromSeed'];
38
39
  fromOwner: TransferSolWithSeedInstructionDataArgs['fromOwner'];
39
40
  };
40
- export declare function getTransferSolWithSeedInstruction<TAccountSource extends string, TAccountBaseAccount extends string, TAccountDestination extends string, TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS>(input: TransferSolWithSeedInput<TAccountSource, TAccountBaseAccount, TAccountDestination>, config?: {
41
+ export declare function getTransferSolWithSeedInstruction<TAccountSource extends InstructionAccountInput, TAccountBaseAccount extends InstructionSignerInput, TAccountDestination extends InstructionAccountInput, TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS>(input: TransferSolWithSeedInput<TAccountSource, TAccountBaseAccount, TAccountDestination>, config?: {
41
42
  programAddress?: TProgramAddress;
42
- }): TransferSolWithSeedInstruction<TProgramAddress, TAccountSource, TAccountBaseAccount, TAccountDestination>;
43
+ }): TransferSolWithSeedInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSource, InstructionAccountInputAddress<TAccountSource>>, ResolvedInstructionAccountMeta<TAccountBaseAccount, InstructionAccountInputAddress<TAccountBaseAccount>>, ResolvedInstructionAccountMeta<TAccountDestination, InstructionAccountInputAddress<TAccountDestination>>>;
43
44
  export type ParsedTransferSolWithSeedInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
44
45
  programAddress: Address<TProgram>;
45
46
  accounts: {
@@ -1 +1 @@
1
- {"version":3,"file":"transferSolWithSeed.d.ts","sourceRoot":"","sources":["../../../../src/generated/instructions/transferSolWithSeed.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAiBH,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACvB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,oCAAoC,KAAK,CAAC;AAEvD,wBAAgB,wCAAwC,IAAI,kBAAkB,CAE7E;AAED,MAAM,MAAM,8BAA8B,CACtC,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,cAAc,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC5D,mBAAmB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EACj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AC,GAC5C,oCAAoC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAkB/D"}
1
+ {"version":3,"file":"transferSolWithSeed.d.ts","sourceRoot":"","sources":["../../../../src/generated/instructions/transferSolWithSeed.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAiBH,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAEH,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAE3B,KAAK,8BAA8B,EACtC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,oCAAoC,KAAK,CAAC;AAEvD,wBAAgB,wCAAwC,IAAI,kBAAkB,CAE7E;AAED,MAAM,MAAM,8BAA8B,CACtC,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,cAAc,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC5D,mBAAmB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EACjE,mBAAmB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EACjE,kBAAkB,SAAS,SAAS,WAAW,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAC9D,WAAW,CAAC,QAAQ,CAAC,GACrB,mBAAmB,CAAC,kBAAkB,CAAC,GACvC,uBAAuB,CACnB;IACI,cAAc,SAAS,MAAM,GAAG,eAAe,CAAC,cAAc,CAAC,GAAG,cAAc;IAChF,mBAAmB,SAAS,MAAM,GAC5B,q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AuB,EACnD,eAAe,SAAS,OAAO,GAAG,OAAO,sBAAsB,EAE/D,KAAK,EAAE,wBAAwB,CAAC,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,CAAC,EACzF,MAAM,CAAC,EAAE;IAAE,cAAc,CAAC,EAAE,eAAe,CAAA;CAAE,GAC9C,8BAA8B,CAC7B,eAAe,EACf,8BAA8B,CAAC,cAAc,EAAE,8BAA8B,CAAC,cAAc,CAAC,CAAC,EAC9F,8BAA8B,CAAC,mBAAmB,EAAE,8BAA8B,CAAC,mBAAmB,CAAC,CAAC,EACxG,8BAA8B,CAAC,mBAAmB,EAAE,8BAA8B,CAAC,mBAAmB,CAAC,CAAC,CAC3G,CAgCA;AAED,MAAM,MAAM,oCAAoC,CAC5C,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,aAAa,SAAS,SAAS,WAAW,EAAE,GAAG,SAAS,WAAW,EAAE,IACrE;IACA,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACN,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACzB,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC9B,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KACjC,CAAC;IACF,IAAI,EAAE,kCAAkC,CAAC;CAC5C,CAAC;AAEF,wBAAgB,mCAAmC,CAC/C,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAC9B,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GAC5C,oCAAoC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAkB/D"}
@@ -6,6 +6,7 @@
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 ReadonlyUint8Array, type WritableAccount } from '@solana/kit';
9
+ import { type InstructionAccountInput, type InstructionAccountInputAddress, type ResolvedInstructionAccountMeta } from '@solana/kit/program-client-core';
9
10
  import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
10
11
  export declare const UPGRADE_NONCE_ACCOUNT_DISCRIMINATOR = 12;
11
12
  export declare function getUpgradeNonceAccountDiscriminatorBytes(): ReadonlyUint8Array;
@@ -20,12 +21,12 @@ export type UpgradeNonceAccountInstructionDataArgs = {};
20
21
  export declare function getUpgradeNonceAccountInstructionDataEncoder(): FixedSizeEncoder<UpgradeNonceAccountInstructionDataArgs>;
21
22
  export declare function getUpgradeNonceAccountInstructionDataDecoder(): FixedSizeDecoder<UpgradeNonceAccountInstructionData>;
22
23
  export declare function getUpgradeNonceAccountInstructionDataCodec(): FixedSizeCodec<UpgradeNonceAccountInstructionDataArgs, UpgradeNonceAccountInstructionData>;
23
- export type UpgradeNonceAccountInput<TAccountNonceAccount extends string = string> = {
24
- nonceAccount: Address<TAccountNonceAccount>;
24
+ export type UpgradeNonceAccountInput<TAccountNonceAccount extends InstructionAccountInput = InstructionAccountInput> = {
25
+ nonceAccount: TAccountNonceAccount;
25
26
  };
26
- export declare function getUpgradeNonceAccountInstruction<TAccountNonceAccount extends string, TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS>(input: UpgradeNonceAccountInput<TAccountNonceAccount>, config?: {
27
+ export declare function getUpgradeNonceAccountInstruction<TAccountNonceAccount extends InstructionAccountInput, TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS>(input: UpgradeNonceAccountInput<TAccountNonceAccount>, config?: {
27
28
  programAddress?: TProgramAddress;
28
- }): UpgradeNonceAccountInstruction<TProgramAddress, TAccountNonceAccount>;
29
+ }): UpgradeNonceAccountInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountNonceAccount, InstructionAccountInputAddress<TAccountNonceAccount>>>;
29
30
  export type ParsedUpgradeNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
30
31
  programAddress: Address<TProgram>;
31
32
  accounts: {
@@ -1 +1 @@
1
- {"version":3,"file":"upgradeNonceAccount.d.ts","sourceRoot":"","sources":["../../../../src/generated/instructions/upgradeNonceAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EASH,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACvB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,mCAAmC,KAAK,CAAC;AAEtD,wBAAgB,wCAAwC,IAAI,kBAAkB,CAE7E;AAED,MAAM,MAAM,8BAA8B,CACtC,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,oBAAoB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAClE,kBAAkB,SAAS,SAAS,WAAW,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAC9D,WAAW,CAAC,QAAQ,CAAC,GACrB,mBAAmB,CAAC,kBAAkB,CAAC,GACvC,uBAAuB,CACnB;IACI,oBAAoB,SAAS,MAAM,GAAG,eAAe,CAAC,oBAAoB,CAAC,GAAG,oBAAoB;IAClG,GAAG,kBAAkB;CACxB,CACJ,CAAC;AAEN,MAAM,MAAM,kCAAkC,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3E,MAAM,MAAM,sCAAsC,GAAG,EAAE,CAAC;AAExD,wBAAgB,4CAA4C,IAAI,gBAAgB,CAAC,sCAAsC,CAAC,CAKvH;AAED,wBA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G,uBAAuB,IAAI;IACnH,YAAY,EAAE,oBAAoB,CAAC;CACtC,CAAC;AAEF,wBAAgB,iCAAiC,CAC7C,oBAAoB,SAAS,uBAAuB,EACpD,eAAe,SAAS,OAAO,GAAG,OAAO,sBAAsB,EAE/D,KAAK,EAAE,wBAAwB,CAAC,oBAAoB,CAAC,EACrD,MAAM,CAAC,EAAE;IAAE,cAAc,CAAC,EAAE,eAAe,CAAA;CAAE,GAC9C,8BAA8B,CAC7B,eAAe,EACf,8BAA8B,CAAC,oBAAoB,EAAE,8BAA8B,CAAC,oBAAoB,CAAC,CAAC,CAC7G,CAmBA;AAED,MAAM,MAAM,oCAAoC,CAC5C,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,aAAa,SAAS,SAAS,WAAW,EAAE,GAAG,SAAS,WAAW,EAAE,IACrE;IACA,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACN,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAClC,CAAC;IACF,IAAI,EAAE,kCAAkC,CAAC;CAC5C,CAAC;AAEF,wBAAgB,mCAAmC,CAC/C,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAC9B,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GAC5C,oCAAoC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAkB/D"}
@@ -5,7 +5,8 @@
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
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';
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 WritableAccount } from '@solana/kit';
9
+ import { type InstructionAccountInput, type InstructionAccountInputAddress, type InstructionSignerInput, type ResolvedInstructionAccountMeta } from '@solana/kit/program-client-core';
9
10
  import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
10
11
  export declare const WITHDRAW_NONCE_ACCOUNT_DISCRIMINATOR = 5;
11
12
  export declare function getWithdrawNonceAccountDiscriminatorBytes(): ReadonlyUint8Array;
@@ -27,17 +28,17 @@ export type WithdrawNonceAccountInstructionDataArgs = {
27
28
  export declare function getWithdrawNonceAccountInstructionDataEncoder(): FixedSizeEncoder<WithdrawNonceAccountInstructionDataArgs>;
28
29
  export declare function getWithdrawNonceAccountInstructionDataDecoder(): FixedSizeDecoder<WithdrawNonceAccountInstructionData>;
29
30
  export declare function getWithdrawNonceAccountInstructionDataCodec(): FixedSizeCodec<WithdrawNonceAccountInstructionDataArgs, WithdrawNonceAccountInstructionData>;
30
- export type WithdrawNonceAccountInput<TAccountNonceAccount extends string = string, TAccountRecipientAccount extends string = string, TAccountRecentBlockhashesSysvar extends string = string, TAccountRentSysvar extends string = string, TAccountNonceAuthority extends string = string> = {
31
- nonceAccount: Address<TAccountNonceAccount>;
32
- recipientAccount: Address<TAccountRecipientAccount>;
33
- recentBlockhashesSysvar?: Address<TAccountRecentBlockhashesSysvar>;
34
- rentSysvar?: Address<TAccountRentSysvar>;
35
- nonceAuthority: TransactionSigner<TAccountNonceAuthority>;
31
+ export type WithdrawNonceAccountInput<TAccountNonceAccount extends InstructionAccountInput = InstructionAccountInput, TAccountRecipientAccount extends InstructionAccountInput = InstructionAccountInput, TAccountRecentBlockhashesSysvar extends InstructionAccountInput = InstructionAccountInput, TAccountRentSysvar extends InstructionAccountInput = InstructionAccountInput, TAccountNonceAuthority extends InstructionSignerInput = InstructionSignerInput> = {
32
+ nonceAccount: TAccountNonceAccount;
33
+ recipientAccount: TAccountRecipientAccount;
34
+ recentBlockhashesSysvar?: TAccountRecentBlockhashesSysvar;
35
+ rentSysvar?: TAccountRentSysvar;
36
+ nonceAuthority: TAccountNonceAuthority;
36
37
  withdrawAmount: WithdrawNonceAccountInstructionDataArgs['withdrawAmount'];
37
38
  };
38
- export declare function getWithdrawNonceAccountInstruction<TAccountNonceAccount extends string, TAccountRecipientAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountRentSysvar extends string, TAccountNonceAuthority extends string, TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS>(input: WithdrawNonceAccountInput<TAccountNonceAccount, TAccountRecipientAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar, TAccountNonceAuthority>, config?: {
39
+ export declare function getWithdrawNonceAccountInstruction<TAccountNonceAccount extends InstructionAccountInput, TAccountRecipientAccount extends InstructionAccountInput, TAccountRecentBlockhashesSysvar extends InstructionAccountInput, TAccountRentSysvar extends InstructionAccountInput, TAccountNonceAuthority extends InstructionSignerInput, TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS>(input: WithdrawNonceAccountInput<TAccountNonceAccount, TAccountRecipientAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar, TAccountNonceAuthority>, config?: {
39
40
  programAddress?: TProgramAddress;
40
- }): WithdrawNonceAccountInstruction<TProgramAddress, TAccountNonceAccount, TAccountRecipientAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar, TAccountNonceAuthority>;
41
+ }): WithdrawNonceAccountInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountNonceAccount, InstructionAccountInputAddress<TAccountNonceAccount>>, ResolvedInstructionAccountMeta<TAccountRecipientAccount, InstructionAccountInputAddress<TAccountRecipientAccount>>, ResolvedInstructionAccountMeta<TAccountRecentBlockhashesSysvar, InstructionAccountInputAddress<TAccountRecentBlockhashesSysvar>>, ResolvedInstructionAccountMeta<TAccountRentSysvar, InstructionAccountInputAddress<TAccountRentSysvar>>, ResolvedInstructionAccountMeta<TAccountNonceAuthority, InstructionAccountInputAddress<TAccountNonceAuthority>>>;
41
42
  export type ParsedWithdrawNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
42
43
  programAddress: Address<TProgram>;
43
44
  accounts: {
@@ -1 +1 @@
1
- {"version":3,"file":"withdrawNonceAccount.d.ts","sourceRoot":"","sources":["../../../../src/generated/instructions/withdrawNonceAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAWH,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACvB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,oCAAoC,IAAI,CAAC;AAEtD,wBAAgB,yCAAyC,IAAI,kBAAkB,CAE9E;AAED,MAAM,MAAM,+BAA+B,CACvC,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,oBAAoB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAClE,wBAAwB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EACtE,+BAA+B,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAChE,6CAA6C,EACjD,kBAAkB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,6CAA6C,EACvG,sBAAsB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM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AC,CAAC,CAAC;QAC7B,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KACpC,CAAC;IACF,IAAI,EAAE,mCAAmC,CAAC;CAC7C,CAAC;AAEF,wBAAgB,oCAAoC,CAChD,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAC9B,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GAC5C,qCAAqC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAwBhE"}
1
+ {"version":3,"file":"withdrawNonceAccount.d.ts","sourceRoot":"","sources":["../../../../src/generated/instructions/withdrawNonceAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAWH,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAEH,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAE3B,KAAK,8BAA8B,EACtC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,oCAAoC,IAAI,CAAC;AAEtD,wBAAgB,yCAAyC,IAAI,kBAAkB,CAE9E;AAED,MAAM,MAAM,+BAA+B,CACvC,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,oBAAoB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAClE,wBAAwB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,C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,CAAC,sBAAsB,CAAC,CAAC,CACjH,CAsDA;AAED,MAAM,MAAM,qCAAqC,CAC7C,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,aAAa,SAAS,SAAS,WAAW,EAAE,GAAG,SAAS,WAAW,EAAE,IACrE;IACA,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACN,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC/B,gBAAgB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACnC,uBAAuB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC1C,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC7B,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KACpC,CAAC;IACF,IAAI,EAAE,mCAAmC,CAAC;CAC7C,CAAC;AAEF,wBAAgB,oCAAoC,CAChD,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAC9B,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GAC5C,qCAAqC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAwBhE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana-program/system",
3
- "version": "0.14.1",
3
+ "version": "0.15.0",
4
4
  "description": "JavaScript client for the System program",
5
5
  "homepage": "https://github.com/solana-program/system#readme",
6
6
  "bugs": {
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@solana-config/oxc": "^0.1.1",
37
- "@solana/kit": "^8.0.0",
37
+ "@solana/kit": "^8.3.0",
38
38
  "@solana/kit-plugin-litesvm": "^0.18.0",
39
39
  "@solana/kit-plugin-signer": "^0.18.0",
40
40
  "@types/node": "^24",
@@ -48,7 +48,7 @@
48
48
  "vitest": "^4.0.15"
49
49
  },
50
50
  "peerDependencies": {
51
- "@solana/kit": "^8.0.0"
51
+ "@solana/kit": "^8.3.0"
52
52
  },
53
53
  "devEngines": {
54
54
  "runtime": {
@@ -27,10 +27,16 @@ import {
27
27
  type ReadonlyAccount,
28
28
  type ReadonlySignerAccount,
29
29
  type ReadonlyUint8Array,
30
- type TransactionSigner,
31
30
  type WritableAccount,
32
31
  } from '@solana/kit';
33
- import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core';
32
+ import {
33
+ getAccountMetaFactory,
34
+ type InstructionAccountInput,
35
+ type InstructionAccountInputAddress,
36
+ type InstructionSignerInput,
37
+ type ResolvedInstructionAccount,
38
+ type ResolvedInstructionAccountMeta,
39
+ } from '@solana/kit/program-client-core';
34
40
  import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
35
41
 
36
42
  export const ADVANCE_NONCE_ACCOUNT_DISCRIMINATOR = 4;
@@ -84,37 +90,43 @@ export function getAdvanceNonceAccountInstructionDataCodec(): FixedSizeCodec<
84
90
  }
85
91
 
86
92
  export type AdvanceNonceAccountInput<
87
- TAccountNonceAccount extends string = string,
88
- TAccountRecentBlockhashesSysvar extends string = string,
89
- TAccountNonceAuthority extends string = string,
93
+ TAccountNonceAccount extends InstructionAccountInput = InstructionAccountInput,
94
+ TAccountRecentBlockhashesSysvar extends InstructionAccountInput = InstructionAccountInput,
95
+ TAccountNonceAuthority extends InstructionSignerInput = InstructionSignerInput,
90
96
  > = {
91
- nonceAccount: Address<TAccountNonceAccount>;
92
- recentBlockhashesSysvar?: Address<TAccountRecentBlockhashesSysvar>;
93
- nonceAuthority: TransactionSigner<TAccountNonceAuthority>;
97
+ nonceAccount: TAccountNonceAccount;
98
+ recentBlockhashesSysvar?: TAccountRecentBlockhashesSysvar;
99
+ nonceAuthority: TAccountNonceAuthority;
94
100
  };
95
101
 
96
102
  export function getAdvanceNonceAccountInstruction<
97
- TAccountNonceAccount extends string,
98
- TAccountRecentBlockhashesSysvar extends string,
99
- TAccountNonceAuthority extends string,
103
+ TAccountNonceAccount extends InstructionAccountInput,
104
+ TAccountRecentBlockhashesSysvar extends InstructionAccountInput,
105
+ TAccountNonceAuthority extends InstructionSignerInput,
100
106
  TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS,
101
107
  >(
102
108
  input: AdvanceNonceAccountInput<TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountNonceAuthority>,
103
109
  config?: { programAddress?: TProgramAddress },
104
110
  ): AdvanceNonceAccountInstruction<
105
111
  TProgramAddress,
106
- TAccountNonceAccount,
107
- TAccountRecentBlockhashesSysvar,
108
- TAccountNonceAuthority
112
+ ResolvedInstructionAccountMeta<TAccountNonceAccount, InstructionAccountInputAddress<TAccountNonceAccount>>,
113
+ ResolvedInstructionAccountMeta<
114
+ TAccountRecentBlockhashesSysvar,
115
+ InstructionAccountInputAddress<TAccountRecentBlockhashesSysvar>
116
+ >,
117
+ ResolvedInstructionAccountMeta<TAccountNonceAuthority, InstructionAccountInputAddress<TAccountNonceAuthority>>
109
118
  > {
110
119
  // Program address.
111
120
  const programAddress = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
112
121
 
122
+ // Account meta helper.
123
+ const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
124
+
113
125
  // Original accounts.
114
126
  const originalAccounts = {
115
- nonceAccount: { value: input.nonceAccount ?? null, isWritable: true },
116
- recentBlockhashesSysvar: { value: input.recentBlockhashesSysvar ?? null, isWritable: false },
117
- nonceAuthority: { value: input.nonceAuthority ?? null, isWritable: false },
127
+ nonceAccount: { value: input.nonceAccount ?? null, isSigner: false, isWritable: true },
128
+ recentBlockhashesSysvar: { value: input.recentBlockhashesSysvar ?? null, isSigner: false, isWritable: false },
129
+ nonceAuthority: { value: input.nonceAuthority ?? null, isSigner: true, isWritable: false },
118
130
  };
119
131
  const accounts = originalAccounts as Record<keyof typeof originalAccounts, ResolvedInstructionAccount>;
120
132
 
@@ -124,7 +136,6 @@ export function getAdvanceNonceAccountInstruction<
124
136
  'SysvarRecentB1ockHashes11111111111111111111' as Address<'SysvarRecentB1ockHashes11111111111111111111'>;
125
137
  }
126
138
 
127
- const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
128
139
  return Object.freeze({
129
140
  accounts: [
130
141
  getAccountMeta('nonceAccount', accounts.nonceAccount),
@@ -135,9 +146,12 @@ export function getAdvanceNonceAccountInstruction<
135
146
  programAddress,
136
147
  } as AdvanceNonceAccountInstruction<
137
148
  TProgramAddress,
138
- TAccountNonceAccount,
139
- TAccountRecentBlockhashesSysvar,
140
- TAccountNonceAuthority
149
+ ResolvedInstructionAccountMeta<TAccountNonceAccount, InstructionAccountInputAddress<TAccountNonceAccount>>,
150
+ ResolvedInstructionAccountMeta<
151
+ TAccountRecentBlockhashesSysvar,
152
+ InstructionAccountInputAddress<TAccountRecentBlockhashesSysvar>
153
+ >,
154
+ ResolvedInstructionAccountMeta<TAccountNonceAuthority, InstructionAccountInputAddress<TAccountNonceAuthority>>
141
155
  >);
142
156
  }
143
157
 
@@ -27,10 +27,15 @@ import {
27
27
  type InstructionWithAccounts,
28
28
  type InstructionWithData,
29
29
  type ReadonlyUint8Array,
30
- type TransactionSigner,
31
30
  type WritableSignerAccount,
32
31
  } from '@solana/kit';
33
- import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core';
32
+ import {
33
+ getAccountMetaFactory,
34
+ type InstructionAccountInputAddress,
35
+ type InstructionSignerInput,
36
+ type ResolvedInstructionAccount,
37
+ type ResolvedInstructionAccountMeta,
38
+ } from '@solana/kit/program-client-core';
34
39
  import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
35
40
 
36
41
  export const ALLOCATE_DISCRIMINATOR = 8;
@@ -82,34 +87,42 @@ export function getAllocateInstructionDataCodec(): FixedSizeCodec<
82
87
  return combineCodec(getAllocateInstructionDataEncoder(), getAllocateInstructionDataDecoder());
83
88
  }
84
89
 
85
- export type AllocateInput<TAccountNewAccount extends string = string> = {
86
- newAccount: TransactionSigner<TAccountNewAccount>;
90
+ export type AllocateInput<TAccountNewAccount extends InstructionSignerInput = InstructionSignerInput> = {
91
+ newAccount: TAccountNewAccount;
87
92
  space: AllocateInstructionDataArgs['space'];
88
93
  };
89
94
 
90
95
  export function getAllocateInstruction<
91
- TAccountNewAccount extends string,
96
+ TAccountNewAccount extends InstructionSignerInput,
92
97
  TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS,
93
98
  >(
94
99
  input: AllocateInput<TAccountNewAccount>,
95
100
  config?: { programAddress?: TProgramAddress },
96
- ): AllocateInstruction<TProgramAddress, TAccountNewAccount> {
101
+ ): AllocateInstruction<
102
+ TProgramAddress,
103
+ ResolvedInstructionAccountMeta<TAccountNewAccount, InstructionAccountInputAddress<TAccountNewAccount>>
104
+ > {
97
105
  // Program address.
98
106
  const programAddress = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
99
107
 
108
+ // Account meta helper.
109
+ const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
110
+
100
111
  // Original accounts.
101
- const originalAccounts = { newAccount: { value: input.newAccount ?? null, isWritable: true } };
112
+ const originalAccounts = { newAccount: { value: input.newAccount ?? null, isSigner: true, isWritable: true } };
102
113
  const accounts = originalAccounts as Record<keyof typeof originalAccounts, ResolvedInstructionAccount>;
103
114
 
104
115
  // Original args.
105
116
  const args = { ...input };
106
117
 
107
- const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
108
118
  return Object.freeze({
109
119
  accounts: [getAccountMeta('newAccount', accounts.newAccount)],
110
120
  data: getAllocateInstructionDataEncoder().encode(args as AllocateInstructionDataArgs),
111
121
  programAddress,
112
- } as AllocateInstruction<TProgramAddress, TAccountNewAccount>);
122
+ } as AllocateInstruction<
123
+ TProgramAddress,
124
+ ResolvedInstructionAccountMeta<TAccountNewAccount, InstructionAccountInputAddress<TAccountNewAccount>>
125
+ >);
113
126
  }
114
127
 
115
128
  export type ParsedAllocateInstruction<
@@ -34,10 +34,16 @@ import {
34
34
  type InstructionWithData,
35
35
  type ReadonlySignerAccount,
36
36
  type ReadonlyUint8Array,
37
- type TransactionSigner,
38
37
  type WritableAccount,
39
38
  } from '@solana/kit';
40
- import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core';
39
+ import {
40
+ getAccountMetaFactory,
41
+ type InstructionAccountInput,
42
+ type InstructionAccountInputAddress,
43
+ type InstructionSignerInput,
44
+ type ResolvedInstructionAccount,
45
+ type ResolvedInstructionAccountMeta,
46
+ } from '@solana/kit/program-client-core';
41
47
  import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
42
48
 
43
49
  export const ALLOCATE_WITH_SEED_DISCRIMINATOR = 9;
@@ -109,11 +115,11 @@ export function getAllocateWithSeedInstructionDataCodec(): Codec<
109
115
  }
110
116
 
111
117
  export type AllocateWithSeedInput<
112
- TAccountNewAccount extends string = string,
113
- TAccountBaseAccount extends string = string,
118
+ TAccountNewAccount extends InstructionAccountInput = InstructionAccountInput,
119
+ TAccountBaseAccount extends InstructionSignerInput = InstructionSignerInput,
114
120
  > = {
115
- newAccount: Address<TAccountNewAccount>;
116
- baseAccount: TransactionSigner<TAccountBaseAccount>;
121
+ newAccount: TAccountNewAccount;
122
+ baseAccount: TAccountBaseAccount;
117
123
  base: AllocateWithSeedInstructionDataArgs['base'];
118
124
  seed: AllocateWithSeedInstructionDataArgs['seed'];
119
125
  space: AllocateWithSeedInstructionDataArgs['space'];
@@ -121,27 +127,33 @@ export type AllocateWithSeedInput<
121
127
  };
122
128
 
123
129
  export function getAllocateWithSeedInstruction<
124
- TAccountNewAccount extends string,
125
- TAccountBaseAccount extends string,
130
+ TAccountNewAccount extends InstructionAccountInput,
131
+ TAccountBaseAccount extends InstructionSignerInput,
126
132
  TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS,
127
133
  >(
128
134
  input: AllocateWithSeedInput<TAccountNewAccount, TAccountBaseAccount>,
129
135
  config?: { programAddress?: TProgramAddress },
130
- ): AllocateWithSeedInstruction<TProgramAddress, TAccountNewAccount, TAccountBaseAccount> {
136
+ ): AllocateWithSeedInstruction<
137
+ TProgramAddress,
138
+ ResolvedInstructionAccountMeta<TAccountNewAccount, InstructionAccountInputAddress<TAccountNewAccount>>,
139
+ ResolvedInstructionAccountMeta<TAccountBaseAccount, InstructionAccountInputAddress<TAccountBaseAccount>>
140
+ > {
131
141
  // Program address.
132
142
  const programAddress = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
133
143
 
144
+ // Account meta helper.
145
+ const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
146
+
134
147
  // Original accounts.
135
148
  const originalAccounts = {
136
- newAccount: { value: input.newAccount ?? null, isWritable: true },
137
- baseAccount: { value: input.baseAccount ?? null, isWritable: false },
149
+ newAccount: { value: input.newAccount ?? null, isSigner: false, isWritable: true },
150
+ baseAccount: { value: input.baseAccount ?? null, isSigner: true, isWritable: false },
138
151
  };
139
152
  const accounts = originalAccounts as Record<keyof typeof originalAccounts, ResolvedInstructionAccount>;
140
153
 
141
154
  // Original args.
142
155
  const args = { ...input };
143
156
 
144
- const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
145
157
  return Object.freeze({
146
158
  accounts: [
147
159
  getAccountMeta('newAccount', accounts.newAccount),
@@ -149,7 +161,11 @@ export function getAllocateWithSeedInstruction<
149
161
  ],
150
162
  data: getAllocateWithSeedInstructionDataEncoder().encode(args as AllocateWithSeedInstructionDataArgs),
151
163
  programAddress,
152
- } as AllocateWithSeedInstruction<TProgramAddress, TAccountNewAccount, TAccountBaseAccount>);
164
+ } as AllocateWithSeedInstruction<
165
+ TProgramAddress,
166
+ ResolvedInstructionAccountMeta<TAccountNewAccount, InstructionAccountInputAddress<TAccountNewAccount>>,
167
+ ResolvedInstructionAccountMeta<TAccountBaseAccount, InstructionAccountInputAddress<TAccountBaseAccount>>
168
+ >);
153
169
  }
154
170
 
155
171
  export type ParsedAllocateWithSeedInstruction<
@@ -27,10 +27,15 @@ import {
27
27
  type InstructionWithAccounts,
28
28
  type InstructionWithData,
29
29
  type ReadonlyUint8Array,
30
- type TransactionSigner,
31
30
  type WritableSignerAccount,
32
31
  } from '@solana/kit';
33
- import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core';
32
+ import {
33
+ getAccountMetaFactory,
34
+ type InstructionAccountInputAddress,
35
+ type InstructionSignerInput,
36
+ type ResolvedInstructionAccount,
37
+ type ResolvedInstructionAccountMeta,
38
+ } from '@solana/kit/program-client-core';
34
39
  import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
35
40
 
36
41
  export const ASSIGN_DISCRIMINATOR = 1;
@@ -79,34 +84,42 @@ export function getAssignInstructionDataCodec(): FixedSizeCodec<AssignInstructio
79
84
  return combineCodec(getAssignInstructionDataEncoder(), getAssignInstructionDataDecoder());
80
85
  }
81
86
 
82
- export type AssignInput<TAccountAccount extends string = string> = {
83
- account: TransactionSigner<TAccountAccount>;
87
+ export type AssignInput<TAccountAccount extends InstructionSignerInput = InstructionSignerInput> = {
88
+ account: TAccountAccount;
84
89
  programAddress: AssignInstructionDataArgs['programAddress'];
85
90
  };
86
91
 
87
92
  export function getAssignInstruction<
88
- TAccountAccount extends string,
93
+ TAccountAccount extends InstructionSignerInput,
89
94
  TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS,
90
95
  >(
91
96
  input: AssignInput<TAccountAccount>,
92
97
  config?: { programAddress?: TProgramAddress },
93
- ): AssignInstruction<TProgramAddress, TAccountAccount> {
98
+ ): AssignInstruction<
99
+ TProgramAddress,
100
+ ResolvedInstructionAccountMeta<TAccountAccount, InstructionAccountInputAddress<TAccountAccount>>
101
+ > {
94
102
  // Program address.
95
103
  const programAddress = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
96
104
 
105
+ // Account meta helper.
106
+ const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
107
+
97
108
  // Original accounts.
98
- const originalAccounts = { account: { value: input.account ?? null, isWritable: true } };
109
+ const originalAccounts = { account: { value: input.account ?? null, isSigner: true, isWritable: true } };
99
110
  const accounts = originalAccounts as Record<keyof typeof originalAccounts, ResolvedInstructionAccount>;
100
111
 
101
112
  // Original args.
102
113
  const args = { ...input };
103
114
 
104
- const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
105
115
  return Object.freeze({
106
116
  accounts: [getAccountMeta('account', accounts.account)],
107
117
  data: getAssignInstructionDataEncoder().encode(args as AssignInstructionDataArgs),
108
118
  programAddress,
109
- } as AssignInstruction<TProgramAddress, TAccountAccount>);
119
+ } as AssignInstruction<
120
+ TProgramAddress,
121
+ ResolvedInstructionAccountMeta<TAccountAccount, InstructionAccountInputAddress<TAccountAccount>>
122
+ >);
110
123
  }
111
124
 
112
125
  export type ParsedAssignInstruction<
@@ -34,10 +34,16 @@ import {
34
34
  type InstructionWithData,
35
35
  type ReadonlySignerAccount,
36
36
  type ReadonlyUint8Array,
37
- type TransactionSigner,
38
37
  type WritableAccount,
39
38
  } from '@solana/kit';
40
- import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core';
39
+ import {
40
+ getAccountMetaFactory,
41
+ type InstructionAccountInput,
42
+ type InstructionAccountInputAddress,
43
+ type InstructionSignerInput,
44
+ type ResolvedInstructionAccount,
45
+ type ResolvedInstructionAccountMeta,
46
+ } from '@solana/kit/program-client-core';
41
47
  import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
42
48
 
43
49
  export const ASSIGN_WITH_SEED_DISCRIMINATOR = 10;
@@ -101,43 +107,53 @@ export function getAssignWithSeedInstructionDataCodec(): Codec<
101
107
  }
102
108
 
103
109
  export type AssignWithSeedInput<
104
- TAccountAccount extends string = string,
105
- TAccountBaseAccount extends string = string,
110
+ TAccountAccount extends InstructionAccountInput = InstructionAccountInput,
111
+ TAccountBaseAccount extends InstructionSignerInput = InstructionSignerInput,
106
112
  > = {
107
- account: Address<TAccountAccount>;
108
- baseAccount: TransactionSigner<TAccountBaseAccount>;
113
+ account: TAccountAccount;
114
+ baseAccount: TAccountBaseAccount;
109
115
  base: AssignWithSeedInstructionDataArgs['base'];
110
116
  seed: AssignWithSeedInstructionDataArgs['seed'];
111
117
  programAddress: AssignWithSeedInstructionDataArgs['programAddress'];
112
118
  };
113
119
 
114
120
  export function getAssignWithSeedInstruction<
115
- TAccountAccount extends string,
116
- TAccountBaseAccount extends string,
121
+ TAccountAccount extends InstructionAccountInput,
122
+ TAccountBaseAccount extends InstructionSignerInput,
117
123
  TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS,
118
124
  >(
119
125
  input: AssignWithSeedInput<TAccountAccount, TAccountBaseAccount>,
120
126
  config?: { programAddress?: TProgramAddress },
121
- ): AssignWithSeedInstruction<TProgramAddress, TAccountAccount, TAccountBaseAccount> {
127
+ ): AssignWithSeedInstruction<
128
+ TProgramAddress,
129
+ ResolvedInstructionAccountMeta<TAccountAccount, InstructionAccountInputAddress<TAccountAccount>>,
130
+ ResolvedInstructionAccountMeta<TAccountBaseAccount, InstructionAccountInputAddress<TAccountBaseAccount>>
131
+ > {
122
132
  // Program address.
123
133
  const programAddress = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
124
134
 
135
+ // Account meta helper.
136
+ const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
137
+
125
138
  // Original accounts.
126
139
  const originalAccounts = {
127
- account: { value: input.account ?? null, isWritable: true },
128
- baseAccount: { value: input.baseAccount ?? null, isWritable: false },
140
+ account: { value: input.account ?? null, isSigner: false, isWritable: true },
141
+ baseAccount: { value: input.baseAccount ?? null, isSigner: true, isWritable: false },
129
142
  };
130
143
  const accounts = originalAccounts as Record<keyof typeof originalAccounts, ResolvedInstructionAccount>;
131
144
 
132
145
  // Original args.
133
146
  const args = { ...input };
134
147
 
135
- const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
136
148
  return Object.freeze({
137
149
  accounts: [getAccountMeta('account', accounts.account), getAccountMeta('baseAccount', accounts.baseAccount)],
138
150
  data: getAssignWithSeedInstructionDataEncoder().encode(args as AssignWithSeedInstructionDataArgs),
139
151
  programAddress,
140
- } as AssignWithSeedInstruction<TProgramAddress, TAccountAccount, TAccountBaseAccount>);
152
+ } as AssignWithSeedInstruction<
153
+ TProgramAddress,
154
+ ResolvedInstructionAccountMeta<TAccountAccount, InstructionAccountInputAddress<TAccountAccount>>,
155
+ ResolvedInstructionAccountMeta<TAccountBaseAccount, InstructionAccountInputAddress<TAccountBaseAccount>>
156
+ >);
141
157
  }
142
158
 
143
159
  export type ParsedAssignWithSeedInstruction<