@solana-program/system 0.15.0 → 0.16.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 (56) hide show
  1. package/dist/src/index.js +125 -35
  2. package/dist/src/index.js.map +1 -1
  3. package/dist/src/index.mjs +125 -35
  4. package/dist/src/index.mjs.map +1 -1
  5. package/dist/types/generated/accounts/nonce.d.ts +7 -7
  6. package/dist/types/generated/accounts/nonce.d.ts.map +1 -1
  7. package/dist/types/generated/errors/system.d.ts +4 -2
  8. package/dist/types/generated/errors/system.d.ts.map +1 -1
  9. package/dist/types/generated/instructions/advanceNonceAccount.d.ts +3 -1
  10. package/dist/types/generated/instructions/advanceNonceAccount.d.ts.map +1 -1
  11. package/dist/types/generated/instructions/allocate.d.ts +3 -1
  12. package/dist/types/generated/instructions/allocate.d.ts.map +1 -1
  13. package/dist/types/generated/instructions/allocateWithSeed.d.ts +6 -4
  14. package/dist/types/generated/instructions/allocateWithSeed.d.ts.map +1 -1
  15. package/dist/types/generated/instructions/assign.d.ts +5 -3
  16. package/dist/types/generated/instructions/assign.d.ts.map +1 -1
  17. package/dist/types/generated/instructions/assignWithSeed.d.ts +6 -4
  18. package/dist/types/generated/instructions/assignWithSeed.d.ts.map +1 -1
  19. package/dist/types/generated/instructions/authorizeNonceAccount.d.ts +5 -3
  20. package/dist/types/generated/instructions/authorizeNonceAccount.d.ts.map +1 -1
  21. package/dist/types/generated/instructions/createAccount.d.ts +5 -3
  22. package/dist/types/generated/instructions/createAccount.d.ts.map +1 -1
  23. package/dist/types/generated/instructions/createAccountAllowPrefund.d.ts +5 -3
  24. package/dist/types/generated/instructions/createAccountAllowPrefund.d.ts.map +1 -1
  25. package/dist/types/generated/instructions/createAccountWithSeed.d.ts +6 -4
  26. package/dist/types/generated/instructions/createAccountWithSeed.d.ts.map +1 -1
  27. package/dist/types/generated/instructions/initializeNonceAccount.d.ts +5 -3
  28. package/dist/types/generated/instructions/initializeNonceAccount.d.ts.map +1 -1
  29. package/dist/types/generated/instructions/transferSol.d.ts +3 -1
  30. package/dist/types/generated/instructions/transferSol.d.ts.map +1 -1
  31. package/dist/types/generated/instructions/transferSolWithSeed.d.ts +5 -3
  32. package/dist/types/generated/instructions/transferSolWithSeed.d.ts.map +1 -1
  33. package/dist/types/generated/instructions/upgradeNonceAccount.d.ts +3 -1
  34. package/dist/types/generated/instructions/upgradeNonceAccount.d.ts.map +1 -1
  35. package/dist/types/generated/instructions/withdrawNonceAccount.d.ts +3 -1
  36. package/dist/types/generated/instructions/withdrawNonceAccount.d.ts.map +1 -1
  37. package/dist/types/generated/programs/system.d.ts +46 -16
  38. package/dist/types/generated/programs/system.d.ts.map +1 -1
  39. package/package.json +5 -5
  40. package/src/generated/accounts/nonce.ts +17 -8
  41. package/src/generated/errors/system.ts +5 -1
  42. package/src/generated/instructions/advanceNonceAccount.ts +3 -2
  43. package/src/generated/instructions/allocate.ts +3 -2
  44. package/src/generated/instructions/allocateWithSeed.ts +6 -4
  45. package/src/generated/instructions/assign.ts +5 -3
  46. package/src/generated/instructions/assignWithSeed.ts +9 -3
  47. package/src/generated/instructions/authorizeNonceAccount.ts +5 -3
  48. package/src/generated/instructions/createAccount.ts +5 -3
  49. package/src/generated/instructions/createAccountAllowPrefund.ts +5 -3
  50. package/src/generated/instructions/createAccountWithSeed.ts +6 -4
  51. package/src/generated/instructions/initializeNonceAccount.ts +5 -3
  52. package/src/generated/instructions/transferSol.ts +3 -2
  53. package/src/generated/instructions/transferSolWithSeed.ts +9 -3
  54. package/src/generated/instructions/upgradeNonceAccount.ts +3 -2
  55. package/src/generated/instructions/withdrawNonceAccount.ts +3 -2
  56. package/src/generated/programs/system.ts +119 -28
@@ -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,iBAAi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AAmB,CAAC,CAAC,EACxG,8BAA8B,CAAC,mBAAmB,EAAE,8BAA8B,CAAC,mBAAmB,CAAC,CAAC,CAC3G,CAiCA;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"}
@@ -25,7 +25,9 @@ export type UpgradeNonceAccountInput<TAccountNonceAccount extends InstructionAcc
25
25
  nonceAccount: TAccountNonceAccount;
26
26
  };
27
27
  export declare function getUpgradeNonceAccountInstruction<TAccountNonceAccount extends InstructionAccountInput, TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS>(input: UpgradeNonceAccountInput<TAccountNonceAccount>, config?: {
28
- programAddress?: TProgramAddress;
28
+ programAddress?: TProgramAddress | {
29
+ readonly address: TProgramAddress;
30
+ };
29
31
  }): UpgradeNonceAccountInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountNonceAccount, InstructionAccountInputAddress<TAccountNonceAccount>>>;
30
32
  export type ParsedUpgradeNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
31
33
  programAddress: Address<TProgram>;
@@ -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;AACrB,OAAO,EAEH,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EAEnC,KAAK,8BAA8B,EACtC,MAAM,iCAAiC,CAAC;AACzC,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,4CA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,CACxE,sCAAsC,EACtC,kCAAkC,CACrC,CAEA;AAED,MAAM,MAAM,wBAAwB,CAAC,oBAAoB,SAAS,uBAAuB,GAAG,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,GAAG;QAAE,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;KAAE,CAAA;CAAE,GACtF,8BAA8B,CAC7B,eAAe,EACf,8BAA8B,CAAC,oBAAoB,EAAE,8BAA8B,CAAC,oBAAoB,CAAC,CAAC,CAC7G,CAoBA;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"}
@@ -37,7 +37,9 @@ export type WithdrawNonceAccountInput<TAccountNonceAccount extends InstructionAc
37
37
  withdrawAmount: WithdrawNonceAccountInstructionDataArgs['withdrawAmount'];
38
38
  };
39
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?: {
40
- programAddress?: TProgramAddress;
40
+ programAddress?: TProgramAddress | {
41
+ readonly address: TProgramAddress;
42
+ };
41
43
  }): WithdrawNonceAccountInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountNonceAccount, InstructionAccountInputAddress<TAccountNonceAccount>>, ResolvedInstructionAccountMeta<TAccountRecipientAccount, InstructionAccountInputAddress<TAccountRecipientAccount>>, ResolvedInstructionAccountMeta<TAccountRecentBlockhashesSysvar, InstructionAccountInputAddress<TAccountRecentBlockhashesSysvar>>, ResolvedInstructionAccountMeta<TAccountRentSysvar, InstructionAccountInputAddress<TAccountRentSysvar>>, ResolvedInstructionAccountMeta<TAccountNonceAuthority, InstructionAccountInputAddress<TAccountNonceAuthority>>>;
42
44
  export type ParsedWithdrawNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
43
45
  programAddress: Address<TProgram>;
@@ -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,EACx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B,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,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,CAAC,GAAG,MAAM,EACpE,kBAAkB,SAAS,SAAS,W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,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"}
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
- import { type Address, type ClientWithPayer, type ClientWithRpc, type ClientWithTransactionPlanning, type ClientWithTransactionSending, type ExtendedClient, type GetAccountInfoApi, type GetMultipleAccountsApi, type Instruction, type InstructionWithData, type ReadonlyUint8Array } from '@solana/kit';
8
+ import { type Address, type ClientWithPayer, type ClientWithRpc, type ClientWithTransactionPlanning, type ClientWithTransactionSending, type ExtendedClient, type GetAccountInfoApi, type GetMultipleAccountsApi, type HasAddress, type Instruction, type InstructionWithData, type ReadonlyUint8Array } from '@solana/kit';
9
9
  import { type SelfFetchFunctions, type SelfPlanAndSendFunctions } from '@solana/kit/program-client-core';
10
10
  import { getNonceCodec, type Nonce, type NonceArgs } from '../accounts';
11
11
  import { getAdvanceNonceAccountInstruction, getAllocateInstruction, getAllocateWithSeedInstruction, getAssignInstruction, getAssignWithSeedInstruction, getAuthorizeNonceAccountInstruction, getCreateAccountAllowPrefundInstruction, getCreateAccountInstruction, getCreateAccountWithSeedInstruction, getInitializeNonceAccountInstruction, getTransferSolInstruction, getTransferSolWithSeedInstruction, getUpgradeNonceAccountInstruction, getWithdrawNonceAccountInstruction, type AdvanceNonceAccountInput, type AllocateInput, type AllocateWithSeedInput, type AssignInput, type AssignWithSeedInput, type AuthorizeNonceAccountInput, type CreateAccountAllowPrefundInput, type CreateAccountInput, type CreateAccountWithSeedInput, type InitializeNonceAccountInput, type ParsedAdvanceNonceAccountInstruction, type ParsedAllocateInstruction, type ParsedAllocateWithSeedInstruction, type ParsedAssignInstruction, type ParsedAssignWithSeedInstruction, type ParsedAuthorizeNonceAccountInstruction, type ParsedCreateAccountAllowPrefundInstruction, type ParsedCreateAccountInstruction, type ParsedCreateAccountWithSeedInstruction, type ParsedInitializeNonceAccountInstruction, type ParsedTransferSolInstruction, type ParsedTransferSolWithSeedInstruction, type ParsedUpgradeNonceAccountInstruction, type ParsedWithdrawNonceAccountInstruction, type TransferSolInput, type TransferSolWithSeedInput, type UpgradeNonceAccountInput, type WithdrawNonceAccountInput } from '../instructions';
@@ -72,23 +72,53 @@ export type SystemPluginAccounts = {
72
72
  nonce: ReturnType<typeof getNonceCodec> & SelfFetchFunctions<NonceArgs, Nonce>;
73
73
  };
74
74
  export type SystemPluginInstructions = {
75
- createAccount: (input: MakeOptional<CreateAccountInput, 'payer'>) => ReturnType<typeof getCreateAccountInstruction> & SelfPlanAndSendFunctions;
76
- assign: (input: AssignInput) => ReturnType<typeof getAssignInstruction> & SelfPlanAndSendFunctions;
77
- transferSol: (input: TransferSolInput) => ReturnType<typeof getTransferSolInstruction> & SelfPlanAndSendFunctions;
78
- createAccountWithSeed: (input: MakeOptional<CreateAccountWithSeedInput, 'payer'>) => ReturnType<typeof getCreateAccountWithSeedInstruction> & SelfPlanAndSendFunctions;
79
- advanceNonceAccount: (input: AdvanceNonceAccountInput) => ReturnType<typeof getAdvanceNonceAccountInstruction> & SelfPlanAndSendFunctions;
80
- withdrawNonceAccount: (input: WithdrawNonceAccountInput) => ReturnType<typeof getWithdrawNonceAccountInstruction> & SelfPlanAndSendFunctions;
81
- initializeNonceAccount: (input: InitializeNonceAccountInput) => ReturnType<typeof getInitializeNonceAccountInstruction> & SelfPlanAndSendFunctions;
82
- authorizeNonceAccount: (input: AuthorizeNonceAccountInput) => ReturnType<typeof getAuthorizeNonceAccountInstruction> & SelfPlanAndSendFunctions;
83
- allocate: (input: AllocateInput) => ReturnType<typeof getAllocateInstruction> & SelfPlanAndSendFunctions;
84
- allocateWithSeed: (input: AllocateWithSeedInput) => ReturnType<typeof getAllocateWithSeedInstruction> & SelfPlanAndSendFunctions;
85
- assignWithSeed: (input: AssignWithSeedInput) => ReturnType<typeof getAssignWithSeedInstruction> & SelfPlanAndSendFunctions;
86
- transferSolWithSeed: (input: TransferSolWithSeedInput) => ReturnType<typeof getTransferSolWithSeedInstruction> & SelfPlanAndSendFunctions;
87
- upgradeNonceAccount: (input: UpgradeNonceAccountInput) => ReturnType<typeof getUpgradeNonceAccountInstruction> & SelfPlanAndSendFunctions;
88
- createAccountAllowPrefund: (input: CreateAccountAllowPrefundInput) => ReturnType<typeof getCreateAccountAllowPrefundInstruction> & SelfPlanAndSendFunctions;
75
+ createAccount: (input: MakeOptional<CreateAccountInput, 'payer'>, config?: {
76
+ programAddress?: Address | HasAddress;
77
+ }) => ReturnType<typeof getCreateAccountInstruction> & SelfPlanAndSendFunctions;
78
+ assign: (input: AssignInput, config?: {
79
+ programAddress?: Address | HasAddress;
80
+ }) => ReturnType<typeof getAssignInstruction> & SelfPlanAndSendFunctions;
81
+ transferSol: (input: TransferSolInput, config?: {
82
+ programAddress?: Address | HasAddress;
83
+ }) => ReturnType<typeof getTransferSolInstruction> & SelfPlanAndSendFunctions;
84
+ createAccountWithSeed: (input: MakeOptional<CreateAccountWithSeedInput, 'payer'>, config?: {
85
+ programAddress?: Address | HasAddress;
86
+ }) => ReturnType<typeof getCreateAccountWithSeedInstruction> & SelfPlanAndSendFunctions;
87
+ advanceNonceAccount: (input: AdvanceNonceAccountInput, config?: {
88
+ programAddress?: Address | HasAddress;
89
+ }) => ReturnType<typeof getAdvanceNonceAccountInstruction> & SelfPlanAndSendFunctions;
90
+ withdrawNonceAccount: (input: WithdrawNonceAccountInput, config?: {
91
+ programAddress?: Address | HasAddress;
92
+ }) => ReturnType<typeof getWithdrawNonceAccountInstruction> & SelfPlanAndSendFunctions;
93
+ initializeNonceAccount: (input: InitializeNonceAccountInput, config?: {
94
+ programAddress?: Address | HasAddress;
95
+ }) => ReturnType<typeof getInitializeNonceAccountInstruction> & SelfPlanAndSendFunctions;
96
+ authorizeNonceAccount: (input: AuthorizeNonceAccountInput, config?: {
97
+ programAddress?: Address | HasAddress;
98
+ }) => ReturnType<typeof getAuthorizeNonceAccountInstruction> & SelfPlanAndSendFunctions;
99
+ allocate: (input: AllocateInput, config?: {
100
+ programAddress?: Address | HasAddress;
101
+ }) => ReturnType<typeof getAllocateInstruction> & SelfPlanAndSendFunctions;
102
+ allocateWithSeed: (input: AllocateWithSeedInput, config?: {
103
+ programAddress?: Address | HasAddress;
104
+ }) => ReturnType<typeof getAllocateWithSeedInstruction> & SelfPlanAndSendFunctions;
105
+ assignWithSeed: (input: AssignWithSeedInput, config?: {
106
+ programAddress?: Address | HasAddress;
107
+ }) => ReturnType<typeof getAssignWithSeedInstruction> & SelfPlanAndSendFunctions;
108
+ transferSolWithSeed: (input: TransferSolWithSeedInput, config?: {
109
+ programAddress?: Address | HasAddress;
110
+ }) => ReturnType<typeof getTransferSolWithSeedInstruction> & SelfPlanAndSendFunctions;
111
+ upgradeNonceAccount: (input: UpgradeNonceAccountInput, config?: {
112
+ programAddress?: Address | HasAddress;
113
+ }) => ReturnType<typeof getUpgradeNonceAccountInstruction> & SelfPlanAndSendFunctions;
114
+ createAccountAllowPrefund: (input: CreateAccountAllowPrefundInput, config?: {
115
+ programAddress?: Address | HasAddress;
116
+ }) => ReturnType<typeof getCreateAccountAllowPrefundInstruction> & SelfPlanAndSendFunctions;
89
117
  };
90
118
  export type SystemPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
91
- export declare function systemProgram(): <T extends SystemPluginRequirements>(client: T) => ExtendedClient<T, {
119
+ export declare function systemProgram(config?: {
120
+ programAddress?: Address | HasAddress;
121
+ }): <T extends SystemPluginRequirements>(client: T) => ExtendedClient<T, {
92
122
  system: SystemPlugin;
93
123
  }>;
94
124
  type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
@@ -1 +1 @@
1
- {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../src/generated/programs/system.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAQH,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EAC1B,MAAM,aAAa,CAAC;AACrB,OAAO,EAGH,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,KAAK,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EACH,iCAAiC,EACjC,sBAAsB,EACtB,8BAA8B,EAC9B,oBAAoB,EACpB,4BAA4B,EAC5B,mCAAmC,EACnC,uCAAuC,EACvC,2BAA2B,EAC3B,mCAAmC,EACnC,oCAAoC,EACpC,yBAAyB,EACzB,iCAAiC,EACjC,iCAAiC,EACjC,kCAAkC,EAelC,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK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SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../src/generated/programs/system.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAQH,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EAC1B,MAAM,aAAa,CAAC;AACrB,OAAO,EAGH,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,KAAK,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EACH,iCAAiC,EACjC,sBAAsB,EACtB,8BAA8B,EAC9B,oBAAoB,EACpB,4BAA4B,EAC5B,mCAAmC,EACnC,uCAAuC,EACvC,2BAA2B,EAC3B,mCAAmC,EACnC,oCAAoC,EACpC,yBAAyB,EACzB,iCAAiC,EACjC,iCAAiC,EACjC,kCAAkC,EAelC,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,EACtC,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,sCAAsC,EAC3C,KAAK,0CAA0C,EAC/C,KA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,EAAE,CACjB,KAAK,EAAE,wBAAwB,EAC/B,MAAM,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;KAAE,KACjD,UAAU,CAAC,OAAO,iCAAiC,CAAC,GAAG,wBAAwB,CAAC;IACrF,mBAAmB,EAAE,CACjB,KAAK,EAAE,wBAAwB,EAC/B,MAAM,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;KAAE,KACjD,UAAU,CAAC,OAAO,iCAAiC,CAAC,GAAG,wBAAwB,CAAC;IACrF,yBAAyB,EAAE,CACvB,KAAK,EAAE,8BAA8B,EACrC,MAAM,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;KAAE,KACjD,UAAU,CAAC,OAAO,uCAAuC,CAAC,GAAG,wBAAwB,CAAC;CAC9F,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAAC,iBAAiB,GAAG,sBAAsB,CAAC,GAC5F,eAAe,GACf,6BAA6B,GAC7B,4BAA4B,CAAC;AAEjC,wBAAgB,aAAa,CAAC,MAAM,GAAE;IAAE,cAAc,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;CAAO,IACxE,CAAC,SAAS,wBAAwB,EAAE,QAAQ,CAAC,KAAG,cAAc,CAAC,CAAC,EAAE;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,CAAC,CA+GtG;AAED,KAAK,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana-program/system",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "JavaScript client for the System program",
5
5
  "homepage": "https://github.com/solana-program/system#readme",
6
6
  "bugs": {
@@ -34,9 +34,9 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@solana-config/oxc": "^0.1.1",
37
- "@solana/kit": "^8.3.0",
38
- "@solana/kit-plugin-litesvm": "^0.18.0",
39
- "@solana/kit-plugin-signer": "^0.18.0",
37
+ "@solana/kit": "^8.5.0",
38
+ "@solana/kit-plugin-litesvm": "^0.19.0",
39
+ "@solana/kit-plugin-signer": "^0.19.0",
40
40
  "@types/node": "^24",
41
41
  "oxfmt": "^0.48.0",
42
42
  "oxlint": "^1.63.0",
@@ -48,7 +48,7 @@
48
48
  "vitest": "^4.0.15"
49
49
  },
50
50
  "peerDependencies": {
51
- "@solana/kit": "^8.3.0"
51
+ "@solana/kit": "^8.5.0"
52
52
  },
53
53
  "devEngines": {
54
54
  "runtime": {
@@ -27,6 +27,7 @@ import {
27
27
  type FixedSizeCodec,
28
28
  type FixedSizeDecoder,
29
29
  type FixedSizeEncoder,
30
+ type HasAddress,
30
31
  type MaybeAccount,
31
32
  type MaybeEncodedAccount,
32
33
  } from '@solana/kit';
@@ -52,8 +53,8 @@ export type Nonce = {
52
53
  export type NonceArgs = {
53
54
  version: NonceVersionArgs;
54
55
  state: NonceStateArgs;
55
- authority: Address;
56
- blockhash: Address;
56
+ authority: Address | HasAddress;
57
+ blockhash: Address | HasAddress;
57
58
  lamportsPerSignature: number | bigint;
58
59
  };
59
60
 
@@ -98,7 +99,7 @@ export function decodeNonce<TAddress extends string = string>(
98
99
 
99
100
  export async function fetchNonce<TAddress extends string = string>(
100
101
  rpc: Parameters<typeof fetchEncodedAccount>[0],
101
- address: Address<TAddress>,
102
+ address: Address<TAddress> | HasAddress<TAddress>,
102
103
  config?: FetchAccountConfig,
103
104
  ): Promise<Account<Nonce, TAddress>> {
104
105
  const maybeAccount = await fetchMaybeNonce(rpc, address, config);
@@ -108,16 +109,20 @@ export async function fetchNonce<TAddress extends string = string>(
108
109
 
109
110
  export async function fetchMaybeNonce<TAddress extends string = string>(
110
111
  rpc: Parameters<typeof fetchEncodedAccount>[0],
111
- address: Address<TAddress>,
112
+ address: Address<TAddress> | HasAddress<TAddress>,
112
113
  config?: FetchAccountConfig,
113
114
  ): Promise<MaybeAccount<Nonce, TAddress>> {
114
- const maybeAccount = await fetchEncodedAccount(rpc, address, config);
115
+ const maybeAccount = await fetchEncodedAccount(
116
+ rpc,
117
+ typeof address === 'string' ? address : address.address,
118
+ config,
119
+ );
115
120
  return decodeNonce(maybeAccount);
116
121
  }
117
122
 
118
123
  export async function fetchAllNonce(
119
124
  rpc: Parameters<typeof fetchEncodedAccounts>[0],
120
- addresses: Array<Address>,
125
+ addresses: Array<Address | HasAddress>,
121
126
  config?: FetchAccountsConfig,
122
127
  ): Promise<Account<Nonce>[]> {
123
128
  const maybeAccounts = await fetchAllMaybeNonce(rpc, addresses, config);
@@ -127,10 +132,14 @@ export async function fetchAllNonce(
127
132
 
128
133
  export async function fetchAllMaybeNonce(
129
134
  rpc: Parameters<typeof fetchEncodedAccounts>[0],
130
- addresses: Array<Address>,
135
+ addresses: Array<Address | HasAddress>,
131
136
  config?: FetchAccountsConfig,
132
137
  ): Promise<MaybeAccount<Nonce>[]> {
133
- const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
138
+ const maybeAccounts = await fetchEncodedAccounts(
139
+ rpc,
140
+ addresses.map(a => (typeof a === 'string' ? a : a.address)),
141
+ config,
142
+ );
134
143
  return maybeAccounts.map(maybeAccount => decodeNonce(maybeAccount));
135
144
  }
136
145
 
@@ -9,6 +9,7 @@
9
9
  import {
10
10
  isProgramError,
11
11
  type Address,
12
+ type HasAddress,
12
13
  type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM,
13
14
  type SolanaError,
14
15
  } from '@solana/kit';
@@ -71,7 +72,10 @@ export function isSystemError<TProgramErrorCode extends SystemError>(
71
72
  error: unknown,
72
73
  transactionMessage: { instructions: Record<number, { programAddress: Address }> },
73
74
  code?: TProgramErrorCode,
75
+ config: { programAddress?: Address | HasAddress } = {},
74
76
  ): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> &
75
77
  Readonly<{ context: Readonly<{ code: TProgramErrorCode }> }> {
76
- return isProgramError<TProgramErrorCode>(error, transactionMessage, SYSTEM_PROGRAM_ADDRESS, code);
78
+ const programAddressInput = config.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
79
+ const programAddress = typeof programAddressInput === 'string' ? programAddressInput : programAddressInput.address;
80
+ return isProgramError<TProgramErrorCode>(error, transactionMessage, programAddress, code);
77
81
  }
@@ -106,7 +106,7 @@ export function getAdvanceNonceAccountInstruction<
106
106
  TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS,
107
107
  >(
108
108
  input: AdvanceNonceAccountInput<TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountNonceAuthority>,
109
- config?: { programAddress?: TProgramAddress },
109
+ config?: { programAddress?: TProgramAddress | { readonly address: TProgramAddress } },
110
110
  ): AdvanceNonceAccountInstruction<
111
111
  TProgramAddress,
112
112
  ResolvedInstructionAccountMeta<TAccountNonceAccount, InstructionAccountInputAddress<TAccountNonceAccount>>,
@@ -117,7 +117,8 @@ export function getAdvanceNonceAccountInstruction<
117
117
  ResolvedInstructionAccountMeta<TAccountNonceAuthority, InstructionAccountInputAddress<TAccountNonceAuthority>>
118
118
  > {
119
119
  // Program address.
120
- const programAddress = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
120
+ const programAddressInput = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
121
+ const programAddress = typeof programAddressInput === 'string' ? programAddressInput : programAddressInput.address;
121
122
 
122
123
  // Account meta helper.
123
124
  const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
@@ -97,13 +97,14 @@ export function getAllocateInstruction<
97
97
  TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS,
98
98
  >(
99
99
  input: AllocateInput<TAccountNewAccount>,
100
- config?: { programAddress?: TProgramAddress },
100
+ config?: { programAddress?: TProgramAddress | { readonly address: TProgramAddress } },
101
101
  ): AllocateInstruction<
102
102
  TProgramAddress,
103
103
  ResolvedInstructionAccountMeta<TAccountNewAccount, InstructionAccountInputAddress<TAccountNewAccount>>
104
104
  > {
105
105
  // Program address.
106
- const programAddress = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
106
+ const programAddressInput = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
107
+ const programAddress = typeof programAddressInput === 'string' ? programAddressInput : programAddressInput.address;
107
108
 
108
109
  // Account meta helper.
109
110
  const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
@@ -29,6 +29,7 @@ import {
29
29
  type Codec,
30
30
  type Decoder,
31
31
  type Encoder,
32
+ type HasAddress,
32
33
  type Instruction,
33
34
  type InstructionWithAccounts,
34
35
  type InstructionWithData,
@@ -78,10 +79,10 @@ export type AllocateWithSeedInstructionData = {
78
79
  };
79
80
 
80
81
  export type AllocateWithSeedInstructionDataArgs = {
81
- base: Address;
82
+ base: Address | HasAddress;
82
83
  seed: string;
83
84
  space: number | bigint;
84
- programAddress: Address;
85
+ programAddress: Address | HasAddress;
85
86
  };
86
87
 
87
88
  export function getAllocateWithSeedInstructionDataEncoder(): Encoder<AllocateWithSeedInstructionDataArgs> {
@@ -132,14 +133,15 @@ export function getAllocateWithSeedInstruction<
132
133
  TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS,
133
134
  >(
134
135
  input: AllocateWithSeedInput<TAccountNewAccount, TAccountBaseAccount>,
135
- config?: { programAddress?: TProgramAddress },
136
+ config?: { programAddress?: TProgramAddress | { readonly address: TProgramAddress } },
136
137
  ): AllocateWithSeedInstruction<
137
138
  TProgramAddress,
138
139
  ResolvedInstructionAccountMeta<TAccountNewAccount, InstructionAccountInputAddress<TAccountNewAccount>>,
139
140
  ResolvedInstructionAccountMeta<TAccountBaseAccount, InstructionAccountInputAddress<TAccountBaseAccount>>
140
141
  > {
141
142
  // Program address.
142
- const programAddress = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
143
+ const programAddressInput = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
144
+ const programAddress = typeof programAddressInput === 'string' ? programAddressInput : programAddressInput.address;
143
145
 
144
146
  // Account meta helper.
145
147
  const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
@@ -23,6 +23,7 @@ import {
23
23
  type FixedSizeCodec,
24
24
  type FixedSizeDecoder,
25
25
  type FixedSizeEncoder,
26
+ type HasAddress,
26
27
  type Instruction,
27
28
  type InstructionWithAccounts,
28
29
  type InstructionWithData,
@@ -61,7 +62,7 @@ export type AssignInstruction<
61
62
 
62
63
  export type AssignInstructionData = { discriminator: number; programAddress: Address };
63
64
 
64
- export type AssignInstructionDataArgs = { programAddress: Address };
65
+ export type AssignInstructionDataArgs = { programAddress: Address | HasAddress };
65
66
 
66
67
  export function getAssignInstructionDataEncoder(): FixedSizeEncoder<AssignInstructionDataArgs> {
67
68
  return transformEncoder(
@@ -94,13 +95,14 @@ export function getAssignInstruction<
94
95
  TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS,
95
96
  >(
96
97
  input: AssignInput<TAccountAccount>,
97
- config?: { programAddress?: TProgramAddress },
98
+ config?: { programAddress?: TProgramAddress | { readonly address: TProgramAddress } },
98
99
  ): AssignInstruction<
99
100
  TProgramAddress,
100
101
  ResolvedInstructionAccountMeta<TAccountAccount, InstructionAccountInputAddress<TAccountAccount>>
101
102
  > {
102
103
  // Program address.
103
- const programAddress = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
104
+ const programAddressInput = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
105
+ const programAddress = typeof programAddressInput === 'string' ? programAddressInput : programAddressInput.address;
104
106
 
105
107
  // Account meta helper.
106
108
  const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
@@ -29,6 +29,7 @@ import {
29
29
  type Codec,
30
30
  type Decoder,
31
31
  type Encoder,
32
+ type HasAddress,
32
33
  type Instruction,
33
34
  type InstructionWithAccounts,
34
35
  type InstructionWithData,
@@ -76,7 +77,11 @@ export type AssignWithSeedInstructionData = {
76
77
  programAddress: Address;
77
78
  };
78
79
 
79
- export type AssignWithSeedInstructionDataArgs = { base: Address; seed: string; programAddress: Address };
80
+ export type AssignWithSeedInstructionDataArgs = {
81
+ base: Address | HasAddress;
82
+ seed: string;
83
+ programAddress: Address | HasAddress;
84
+ };
80
85
 
81
86
  export function getAssignWithSeedInstructionDataEncoder(): Encoder<AssignWithSeedInstructionDataArgs> {
82
87
  return transformEncoder(
@@ -123,14 +128,15 @@ export function getAssignWithSeedInstruction<
123
128
  TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS,
124
129
  >(
125
130
  input: AssignWithSeedInput<TAccountAccount, TAccountBaseAccount>,
126
- config?: { programAddress?: TProgramAddress },
131
+ config?: { programAddress?: TProgramAddress | { readonly address: TProgramAddress } },
127
132
  ): AssignWithSeedInstruction<
128
133
  TProgramAddress,
129
134
  ResolvedInstructionAccountMeta<TAccountAccount, InstructionAccountInputAddress<TAccountAccount>>,
130
135
  ResolvedInstructionAccountMeta<TAccountBaseAccount, InstructionAccountInputAddress<TAccountBaseAccount>>
131
136
  > {
132
137
  // Program address.
133
- const programAddress = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
138
+ const programAddressInput = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
139
+ const programAddress = typeof programAddressInput === 'string' ? programAddressInput : programAddressInput.address;
134
140
 
135
141
  // Account meta helper.
136
142
  const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
@@ -23,6 +23,7 @@ import {
23
23
  type FixedSizeCodec,
24
24
  type FixedSizeDecoder,
25
25
  type FixedSizeEncoder,
26
+ type HasAddress,
26
27
  type Instruction,
27
28
  type InstructionWithAccounts,
28
29
  type InstructionWithData,
@@ -65,7 +66,7 @@ export type AuthorizeNonceAccountInstruction<
65
66
 
66
67
  export type AuthorizeNonceAccountInstructionData = { discriminator: number; newNonceAuthority: Address };
67
68
 
68
- export type AuthorizeNonceAccountInstructionDataArgs = { newNonceAuthority: Address };
69
+ export type AuthorizeNonceAccountInstructionDataArgs = { newNonceAuthority: Address | HasAddress };
69
70
 
70
71
  export function getAuthorizeNonceAccountInstructionDataEncoder(): FixedSizeEncoder<AuthorizeNonceAccountInstructionDataArgs> {
71
72
  return transformEncoder(
@@ -109,14 +110,15 @@ export function getAuthorizeNonceAccountInstruction<
109
110
  TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS,
110
111
  >(
111
112
  input: AuthorizeNonceAccountInput<TAccountNonceAccount, TAccountNonceAuthority>,
112
- config?: { programAddress?: TProgramAddress },
113
+ config?: { programAddress?: TProgramAddress | { readonly address: TProgramAddress } },
113
114
  ): AuthorizeNonceAccountInstruction<
114
115
  TProgramAddress,
115
116
  ResolvedInstructionAccountMeta<TAccountNonceAccount, InstructionAccountInputAddress<TAccountNonceAccount>>,
116
117
  ResolvedInstructionAccountMeta<TAccountNonceAuthority, InstructionAccountInputAddress<TAccountNonceAuthority>>
117
118
  > {
118
119
  // Program address.
119
- const programAddress = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
120
+ const programAddressInput = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
121
+ const programAddress = typeof programAddressInput === 'string' ? programAddressInput : programAddressInput.address;
120
122
 
121
123
  // Account meta helper.
122
124
  const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
@@ -26,6 +26,7 @@ import {
26
26
  type FixedSizeCodec,
27
27
  type FixedSizeDecoder,
28
28
  type FixedSizeEncoder,
29
+ type HasAddress,
29
30
  type Instruction,
30
31
  type InstructionWithAccounts,
31
32
  type InstructionWithData,
@@ -77,7 +78,7 @@ export type CreateAccountInstructionData = {
77
78
  export type CreateAccountInstructionDataArgs = {
78
79
  lamports: number | bigint;
79
80
  space: number | bigint;
80
- programAddress: Address;
81
+ programAddress: Address | HasAddress;
81
82
  };
82
83
 
83
84
  export function getCreateAccountInstructionDataEncoder(): FixedSizeEncoder<CreateAccountInstructionDataArgs> {
@@ -125,7 +126,7 @@ export function getCreateAccountInstruction<
125
126
  TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS,
126
127
  >(
127
128
  input: CreateAccountInput<TAccountPayer, TAccountNewAccount>,
128
- config?: { programAddress?: TProgramAddress },
129
+ config?: { programAddress?: TProgramAddress | { readonly address: TProgramAddress } },
129
130
  ): CreateAccountInstruction<
130
131
  TProgramAddress,
131
132
  ResolvedInstructionAccountMeta<TAccountPayer, InstructionAccountInputAddress<TAccountPayer>>,
@@ -133,7 +134,8 @@ export function getCreateAccountInstruction<
133
134
  > &
134
135
  InstructionWithByteDelta {
135
136
  // Program address.
136
- const programAddress = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
137
+ const programAddressInput = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
138
+ const programAddress = typeof programAddressInput === 'string' ? programAddressInput : programAddressInput.address;
137
139
 
138
140
  // Account meta helper.
139
141
  const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
@@ -26,6 +26,7 @@ import {
26
26
  type FixedSizeCodec,
27
27
  type FixedSizeDecoder,
28
28
  type FixedSizeEncoder,
29
+ type HasAddress,
29
30
  type Instruction,
30
31
  type InstructionWithAccounts,
31
32
  type InstructionWithData,
@@ -81,7 +82,7 @@ export type CreateAccountAllowPrefundInstructionData = {
81
82
  export type CreateAccountAllowPrefundInstructionDataArgs = {
82
83
  lamports?: number | bigint;
83
84
  space: number | bigint;
84
- programAddress: Address;
85
+ programAddress: Address | HasAddress;
85
86
  };
86
87
 
87
88
  export function getCreateAccountAllowPrefundInstructionDataEncoder(): FixedSizeEncoder<CreateAccountAllowPrefundInstructionDataArgs> {
@@ -136,7 +137,7 @@ export function getCreateAccountAllowPrefundInstruction<
136
137
  TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS,
137
138
  >(
138
139
  input: CreateAccountAllowPrefundInput<TAccountNewAccount, TAccountPayer>,
139
- config?: { programAddress?: TProgramAddress },
140
+ config?: { programAddress?: TProgramAddress | { readonly address: TProgramAddress } },
140
141
  ): CreateAccountAllowPrefundInstruction<
141
142
  TProgramAddress,
142
143
  ResolvedInstructionAccountMeta<TAccountNewAccount, InstructionAccountInputAddress<TAccountNewAccount>>,
@@ -144,7 +145,8 @@ export function getCreateAccountAllowPrefundInstruction<
144
145
  > &
145
146
  InstructionWithByteDelta {
146
147
  // Program address.
147
- const programAddress = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
148
+ const programAddressInput = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
149
+ const programAddress = typeof programAddressInput === 'string' ? programAddressInput : programAddressInput.address;
148
150
 
149
151
  // Account meta helper.
150
152
  const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
@@ -29,6 +29,7 @@ import {
29
29
  type Codec,
30
30
  type Decoder,
31
31
  type Encoder,
32
+ type HasAddress,
32
33
  type Instruction,
33
34
  type InstructionWithAccounts,
34
35
  type InstructionWithData,
@@ -88,11 +89,11 @@ export type CreateAccountWithSeedInstructionData = {
88
89
  };
89
90
 
90
91
  export type CreateAccountWithSeedInstructionDataArgs = {
91
- base: Address;
92
+ base: Address | HasAddress;
92
93
  seed: string;
93
94
  amount: number | bigint;
94
95
  space: number | bigint;
95
- programAddress: Address;
96
+ programAddress: Address | HasAddress;
96
97
  };
97
98
 
98
99
  export function getCreateAccountWithSeedInstructionDataEncoder(): Encoder<CreateAccountWithSeedInstructionDataArgs> {
@@ -152,7 +153,7 @@ export function getCreateAccountWithSeedInstruction<
152
153
  TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS,
153
154
  >(
154
155
  input: CreateAccountWithSeedInput<TAccountPayer, TAccountNewAccount, TAccountBaseAccount>,
155
- config?: { programAddress?: TProgramAddress },
156
+ config?: { programAddress?: TProgramAddress | { readonly address: TProgramAddress } },
156
157
  ): CreateAccountWithSeedInstruction<
157
158
  TProgramAddress,
158
159
  ResolvedInstructionAccountMeta<TAccountPayer, InstructionAccountInputAddress<TAccountPayer>>,
@@ -160,7 +161,8 @@ export function getCreateAccountWithSeedInstruction<
160
161
  ResolvedInstructionAccountMeta<TAccountBaseAccount, InstructionAccountInputAddress<TAccountBaseAccount>>
161
162
  > {
162
163
  // Program address.
163
- const programAddress = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
164
+ const programAddressInput = config?.programAddress ?? SYSTEM_PROGRAM_ADDRESS;
165
+ const programAddress = typeof programAddressInput === 'string' ? programAddressInput : programAddressInput.address;
164
166
 
165
167
  // Account meta helper.
166
168
  const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');