@solana-program/system 0.14.1 → 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 +171 -81
  2. package/dist/src/index.js.map +1 -1
  3. package/dist/src/index.mjs +171 -81
  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 +11 -8
  10. package/dist/types/generated/instructions/advanceNonceAccount.d.ts.map +1 -1
  11. package/dist/types/generated/instructions/allocate.d.ts +9 -6
  12. package/dist/types/generated/instructions/allocate.d.ts.map +1 -1
  13. package/dist/types/generated/instructions/allocateWithSeed.d.ts +12 -9
  14. package/dist/types/generated/instructions/allocateWithSeed.d.ts.map +1 -1
  15. package/dist/types/generated/instructions/assign.d.ts +10 -7
  16. package/dist/types/generated/instructions/assign.d.ts.map +1 -1
  17. package/dist/types/generated/instructions/assignWithSeed.d.ts +12 -9
  18. package/dist/types/generated/instructions/assignWithSeed.d.ts.map +1 -1
  19. package/dist/types/generated/instructions/authorizeNonceAccount.d.ts +11 -8
  20. package/dist/types/generated/instructions/authorizeNonceAccount.d.ts.map +1 -1
  21. package/dist/types/generated/instructions/createAccount.d.ts +11 -9
  22. package/dist/types/generated/instructions/createAccount.d.ts.map +1 -1
  23. package/dist/types/generated/instructions/createAccountAllowPrefund.d.ts +11 -9
  24. package/dist/types/generated/instructions/createAccountAllowPrefund.d.ts.map +1 -1
  25. package/dist/types/generated/instructions/createAccountWithSeed.d.ts +13 -10
  26. package/dist/types/generated/instructions/createAccountWithSeed.d.ts.map +1 -1
  27. package/dist/types/generated/instructions/initializeNonceAccount.d.ts +12 -9
  28. package/dist/types/generated/instructions/initializeNonceAccount.d.ts.map +1 -1
  29. package/dist/types/generated/instructions/transferSol.d.ts +10 -7
  30. package/dist/types/generated/instructions/transferSol.d.ts.map +1 -1
  31. package/dist/types/generated/instructions/transferSolWithSeed.d.ts +12 -9
  32. package/dist/types/generated/instructions/transferSolWithSeed.d.ts.map +1 -1
  33. package/dist/types/generated/instructions/upgradeNonceAccount.d.ts +8 -5
  34. package/dist/types/generated/instructions/upgradeNonceAccount.d.ts.map +1 -1
  35. package/dist/types/generated/instructions/withdrawNonceAccount.d.ts +13 -10
  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 +38 -23
  43. package/src/generated/instructions/allocate.ts +25 -11
  44. package/src/generated/instructions/allocateWithSeed.ts +35 -17
  45. package/src/generated/instructions/assign.ts +27 -12
  46. package/src/generated/instructions/assignWithSeed.ts +38 -16
  47. package/src/generated/instructions/authorizeNonceAccount.ts +34 -16
  48. package/src/generated/instructions/createAccount.ts +33 -14
  49. package/src/generated/instructions/createAccountAllowPrefund.ts +30 -15
  50. package/src/generated/instructions/createAccountWithSeed.ts +41 -21
  51. package/src/generated/instructions/initializeNonceAccount.ts +39 -23
  52. package/src/generated/instructions/transferSol.ts +34 -14
  53. package/src/generated/instructions/transferSolWithSeed.ts +44 -20
  54. package/src/generated/instructions/upgradeNonceAccount.ts +25 -10
  55. package/src/generated/instructions/withdrawNonceAccount.ts +53 -35
  56. package/src/generated/programs/system.ts +119 -28
@@ -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, type WritableSignerAccount } from '@solana/kit';
8
+ import { type AccountMeta, type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, type HasAddress, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlySignerAccount, type ReadonlyUint8Array, type WritableAccount, type WritableSignerAccount } 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 CREATE_ACCOUNT_WITH_SEED_DISCRIMINATOR = 3;
11
12
  export declare function getCreateAccountWithSeedDiscriminatorBytes(): ReadonlyUint8Array;
@@ -26,28 +27,30 @@ export type CreateAccountWithSeedInstructionData = {
26
27
  programAddress: Address;
27
28
  };
28
29
  export type CreateAccountWithSeedInstructionDataArgs = {
29
- base: Address;
30
+ base: Address | HasAddress;
30
31
  seed: string;
31
32
  amount: number | bigint;
32
33
  space: number | bigint;
33
- programAddress: Address;
34
+ programAddress: Address | HasAddress;
34
35
  };
35
36
  export declare function getCreateAccountWithSeedInstructionDataEncoder(): Encoder<CreateAccountWithSeedInstructionDataArgs>;
36
37
  export declare function getCreateAccountWithSeedInstructionDataDecoder(): Decoder<CreateAccountWithSeedInstructionData>;
37
38
  export declare function getCreateAccountWithSeedInstructionDataCodec(): Codec<CreateAccountWithSeedInstructionDataArgs, CreateAccountWithSeedInstructionData>;
38
- export type CreateAccountWithSeedInput<TAccountPayer extends string = string, TAccountNewAccount extends string = string, TAccountBaseAccount extends string = string> = {
39
- payer: TransactionSigner<TAccountPayer>;
40
- newAccount: Address<TAccountNewAccount>;
41
- baseAccount?: TransactionSigner<TAccountBaseAccount>;
39
+ export type CreateAccountWithSeedInput<TAccountPayer extends InstructionSignerInput = InstructionSignerInput, TAccountNewAccount extends InstructionAccountInput = InstructionAccountInput, TAccountBaseAccount extends InstructionSignerInput = InstructionSignerInput> = {
40
+ payer: TAccountPayer;
41
+ newAccount: TAccountNewAccount;
42
+ baseAccount?: TAccountBaseAccount;
42
43
  base: CreateAccountWithSeedInstructionDataArgs['base'];
43
44
  seed: CreateAccountWithSeedInstructionDataArgs['seed'];
44
45
  amount: CreateAccountWithSeedInstructionDataArgs['amount'];
45
46
  space: CreateAccountWithSeedInstructionDataArgs['space'];
46
47
  programAddress: CreateAccountWithSeedInstructionDataArgs['programAddress'];
47
48
  };
48
- export declare function getCreateAccountWithSeedInstruction<TAccountPayer extends string, TAccountNewAccount extends string, TAccountBaseAccount extends string, TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS>(input: CreateAccountWithSeedInput<TAccountPayer, TAccountNewAccount, TAccountBaseAccount>, config?: {
49
- programAddress?: TProgramAddress;
50
- }): CreateAccountWithSeedInstruction<TProgramAddress, TAccountPayer, TAccountNewAccount, TAccountBaseAccount>;
49
+ export declare function getCreateAccountWithSeedInstruction<TAccountPayer extends InstructionSignerInput, TAccountNewAccount extends InstructionAccountInput, TAccountBaseAccount extends InstructionSignerInput, TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS>(input: CreateAccountWithSeedInput<TAccountPayer, TAccountNewAccount, TAccountBaseAccount>, config?: {
50
+ programAddress?: TProgramAddress | {
51
+ readonly address: TProgramAddress;
52
+ };
53
+ }): CreateAccountWithSeedInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountPayer, InstructionAccountInputAddress<TAccountPayer>>, ResolvedInstructionAccountMeta<TAccountNewAccount, InstructionAccountInputAddress<TAccountNewAccount>>, ResolvedInstructionAccountMeta<TAccountBaseAccount, InstructionAccountInputAddress<TAccountBaseAccount>>>;
51
54
  export type ParsedCreateAccountWithSeedInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
52
55
  programAddress: Address<TProgram>;
53
56
  accounts: {
@@ -1 +1 @@
1
- {"version":3,"file":"createAccountWithSeed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AAQ,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,sCAAsC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAwBjE"}
@@ -5,7 +5,8 @@
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
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';
8
+ import { type AccountMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type HasAddress, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, 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 INITIALIZE_NONCE_ACCOUNT_DISCRIMINATOR = 6;
11
12
  export declare function getInitializeNonceAccountDiscriminatorBytes(): ReadonlyUint8Array;
@@ -20,20 +21,22 @@ export type InitializeNonceAccountInstructionData = {
20
21
  nonceAuthority: Address;
21
22
  };
22
23
  export type InitializeNonceAccountInstructionDataArgs = {
23
- nonceAuthority: Address;
24
+ nonceAuthority: Address | HasAddress;
24
25
  };
25
26
  export declare function getInitializeNonceAccountInstructionDataEncoder(): FixedSizeEncoder<InitializeNonceAccountInstructionDataArgs>;
26
27
  export declare function getInitializeNonceAccountInstructionDataDecoder(): FixedSizeDecoder<InitializeNonceAccountInstructionData>;
27
28
  export declare function getInitializeNonceAccountInstructionDataCodec(): FixedSizeCodec<InitializeNonceAccountInstructionDataArgs, InitializeNonceAccountInstructionData>;
28
- export type InitializeNonceAccountInput<TAccountNonceAccount extends string = string, TAccountRecentBlockhashesSysvar extends string = string, TAccountRentSysvar extends string = string> = {
29
- nonceAccount: Address<TAccountNonceAccount>;
30
- recentBlockhashesSysvar?: Address<TAccountRecentBlockhashesSysvar>;
31
- rentSysvar?: Address<TAccountRentSysvar>;
29
+ export type InitializeNonceAccountInput<TAccountNonceAccount extends InstructionAccountInput = InstructionAccountInput, TAccountRecentBlockhashesSysvar extends InstructionAccountInput = InstructionAccountInput, TAccountRentSysvar extends InstructionAccountInput = InstructionAccountInput> = {
30
+ nonceAccount: TAccountNonceAccount;
31
+ recentBlockhashesSysvar?: TAccountRecentBlockhashesSysvar;
32
+ rentSysvar?: TAccountRentSysvar;
32
33
  nonceAuthority: InitializeNonceAccountInstructionDataArgs['nonceAuthority'];
33
34
  };
34
- export declare function getInitializeNonceAccountInstruction<TAccountNonceAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountRentSysvar extends string, TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS>(input: InitializeNonceAccountInput<TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar>, config?: {
35
- programAddress?: TProgramAddress;
36
- }): InitializeNonceAccountInstruction<TProgramAddress, TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar>;
35
+ export declare function getInitializeNonceAccountInstruction<TAccountNonceAccount extends InstructionAccountInput, TAccountRecentBlockhashesSysvar extends InstructionAccountInput, TAccountRentSysvar extends InstructionAccountInput, TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS>(input: InitializeNonceAccountInput<TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar>, config?: {
36
+ programAddress?: TProgramAddress | {
37
+ readonly address: TProgramAddress;
38
+ };
39
+ }): InitializeNonceAccountInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountNonceAccount, InstructionAccountInputAddress<TAccountNonceAccount>>, ResolvedInstructionAccountMeta<TAccountRecentBlockhashesSysvar, InstructionAccountInputAddress<TAccountRecentBlockhashesSysvar>>, ResolvedInstructionAccountMeta<TAccountRentSysvar, InstructionAccountInputAddress<TAccountRentSysvar>>>;
37
40
  export type ParsedInitializeNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
38
41
  programAddress: Address<TProgram>;
39
42
  accounts: {
@@ -1 +1 @@
1
- {"version":3,"file":"initializeNonceAccount.d.ts","sourceRoot":"","sources":["../../../../src/generated/instructions/initializeNonceAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAWH,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,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACvB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,sCAAsC,IAAI,CAAC;AAExD,wBAAgB,2CAA2C,IAAI,kBAAkB,CAEhF;AAED,MAAM,MAAM,iCAAiC,CACzC,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,oBAAoB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAClE,+BAA+B,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAChE,6CAA6C,EACjD,kBAAkB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,6CAA6C,EACvG,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,SAA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AC,EAC7G,MAAM,CAAC,EAAE;IAAE,cAAc,CAAC,EAAE,eAAe,CAAA;CAAE,GAC9C,iCAAiC,CAChC,eAAe,EACf,oBAAoB,EACpB,+BAA+B,EAC/B,kBAAkB,CACrB,CA0CA;AAED,MAAM,MAAM,uCAAuC,CAC/C,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,uBAAuB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC1C,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAChC,CAAC;IACF,IAAI,EAAE,qCAAqC,CAAC;CAC/C,CAAC;AAEF,wBAAgB,sCAAsC,CAClD,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,uCAAuC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAsBlE"}
1
+ {"version":3,"file":"initializeNonceAccount.d.ts","sourceRoot":"","sources":["../../../../src/generated/instructions/initializeNonceAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAWH,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAEH,KAAK,uBAAuB,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AAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC/B,uBAAuB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC1C,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAChC,CAAC;IACF,IAAI,EAAE,qCAAqC,CAAC;CAC/C,CAAC;AAEF,wBAAgB,sCAAsC,CAClD,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,uCAAuC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAsBlE"}
@@ -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 ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
8
+ import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyUint8Array, type WritableAccount, type WritableSignerAccount } 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_DISCRIMINATOR = 2;
11
12
  export declare function getTransferSolDiscriminatorBytes(): ReadonlyUint8Array;
@@ -24,14 +25,16 @@ export type TransferSolInstructionDataArgs = {
24
25
  export declare function getTransferSolInstructionDataEncoder(): FixedSizeEncoder<TransferSolInstructionDataArgs>;
25
26
  export declare function getTransferSolInstructionDataDecoder(): FixedSizeDecoder<TransferSolInstructionData>;
26
27
  export declare function getTransferSolInstructionDataCodec(): FixedSizeCodec<TransferSolInstructionDataArgs, TransferSolInstructionData>;
27
- export type TransferSolInput<TAccountSource extends string = string, TAccountDestination extends string = string> = {
28
- source: TransactionSigner<TAccountSource>;
29
- destination: Address<TAccountDestination>;
28
+ export type TransferSolInput<TAccountSource extends InstructionSignerInput = InstructionSignerInput, TAccountDestination extends InstructionAccountInput = InstructionAccountInput> = {
29
+ source: TAccountSource;
30
+ destination: TAccountDestination;
30
31
  amount: TransferSolInstructionDataArgs['amount'];
31
32
  };
32
- export declare function getTransferSolInstruction<TAccountSource extends string, TAccountDestination extends string, TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS>(input: TransferSolInput<TAccountSource, TAccountDestination>, config?: {
33
- programAddress?: TProgramAddress;
34
- }): TransferSolInstruction<TProgramAddress, TAccountSource, TAccountDestination>;
33
+ export declare function getTransferSolInstruction<TAccountSource extends InstructionSignerInput, TAccountDestination extends InstructionAccountInput, TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS>(input: TransferSolInput<TAccountSource, TAccountDestination>, config?: {
34
+ programAddress?: TProgramAddress | {
35
+ readonly address: TProgramAddress;
36
+ };
37
+ }): TransferSolInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSource, InstructionAccountInputAddress<TAccountSource>>, ResolvedInstructionAccountMeta<TAccountDestination, InstructionAccountInputAddress<TAccountDestination>>>;
35
38
  export type ParsedTransferSolInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
36
39
  programAddress: Address<TProgram>;
37
40
  accounts: {
@@ -1 +1 @@
1
- {"version":3,"file":"transferSol.d.ts","sourceRoot":"","sources":["../../../../src/generated/instructions/transferSol.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAWH,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc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a,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;KACjC,CAAC;IACF,IAAI,EAAE,0BAA0B,CAAC;CACpC,CAAC;AAEF,wBAAgB,2BAA2B,CAAC,QAAQ,SAAS,MAAM,EAAE,aAAa,SAAS,SAAS,WAAW,EAAE,EAC7G,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAC9B,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GAC5C,4BAA4B,CAAC,QAAQ,EAAE,aAAa,CAAC,CAkBvD"}
@@ -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 HasAddress, 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;
@@ -24,22 +25,24 @@ export type TransferSolWithSeedInstructionData = {
24
25
  export type TransferSolWithSeedInstructionDataArgs = {
25
26
  amount: number | bigint;
26
27
  fromSeed: string;
27
- fromOwner: Address;
28
+ fromOwner: Address | HasAddress;
28
29
  };
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
- programAddress?: TProgramAddress;
42
- }): TransferSolWithSeedInstruction<TProgramAddress, TAccountSource, TAccountBaseAccount, TAccountDestination>;
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?: {
42
+ programAddress?: TProgramAddress | {
43
+ readonly address: TProgramAddress;
44
+ };
45
+ }): TransferSolWithSeedInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSource, InstructionAccountInputAddress<TAccountSource>>, ResolvedInstructionAccountMeta<TAccountBaseAccount, InstructionAccountInputAddress<TAccountBaseAccount>>, ResolvedInstructionAccountMeta<TAccountDestination, InstructionAccountInputAddress<TAccountDestination>>>;
43
46
  export type ParsedTransferSolWithSeedInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
44
47
  programAddress: Address<TProgram>;
45
48
  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,EACjE,mBAAmB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAA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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,UAAU,EACf,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,qBAAqB,CAAC,mBAAmB,CAAC,GAAG,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Decoder, 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,14 @@ 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
- programAddress?: TProgramAddress;
28
- }): UpgradeNonceAccountInstruction<TProgramAddress, TAccountNonceAccount>;
27
+ export declare function getUpgradeNonceAccountInstruction<TAccountNonceAccount extends InstructionAccountInput, TProgramAddress extends Address = typeof SYSTEM_PROGRAM_ADDRESS>(input: UpgradeNonceAccountInput<TAccountNonceAccount>, config?: {
28
+ programAddress?: TProgramAddress | {
29
+ readonly address: TProgramAddress;
30
+ };
31
+ }): UpgradeNonceAccountInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountNonceAccount, InstructionAccountInputAddress<TAccountNonceAccount>>>;
29
32
  export type ParsedUpgradeNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
30
33
  programAddress: Address<TProgram>;
31
34
  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,EAA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tC,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"}
@@ -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,19 @@ 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
- programAddress?: TProgramAddress;
40
- }): WithdrawNonceAccountInstruction<TProgramAddress, TAccountNonceAccount, TAccountRecipientAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar, TAccountNonceAuthority>;
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 | {
41
+ readonly address: TProgramAddress;
42
+ };
43
+ }): WithdrawNonceAccountInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountNonceAccount, InstructionAccountInputAddress<TAccountNonceAccount>>, ResolvedInstructionAccountMeta<TAccountRecipientAccount, InstructionAccountInputAddress<TAccountRecipientAccount>>, ResolvedInstructionAccountMeta<TAccountRecentBlockhashesSysvar, InstructionAccountInputAddress<TAccountRecentBlockhashesSysvar>>, ResolvedInstructionAccountMeta<TAccountRentSysvar, InstructionAccountInputAddress<TAccountRentSysvar>>, ResolvedInstructionAccountMeta<TAccountNonceAuthority, InstructionAccountInputAddress<TAccountNonceAuthority>>>;
41
44
  export type ParsedWithdrawNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
42
45
  programAddress: Address<TProgram>;
43
46
  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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AE;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"}
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,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B,CAAC,wBAAwB,EAAE,8BAA8B,CAAC,wBAAwB,CAAC,CAAC,EAClH,8BAA8B,CAC1B,+BAA+B,EAC/B,8BAA8B,CAAC,+BAA+B,CAAC,CAClE,EACD,8BAA8B,CAAC,kBAAkB,EAAE,8BAA8B,CAAC,kBAAkB,CAAC,CAAC,EACtG,8BAA8B,CAAC,sBAAsB,EAAE,8BAA8B,CAAC,sBAAsB,CAAC,CAAC,CACjH,CAuDA;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"}
@@ -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,iCAAi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AAwB,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.14.1",
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.0.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.0.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
  }