@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.
- package/dist/src/index.js +171 -81
- package/dist/src/index.js.map +1 -1
- package/dist/src/index.mjs +171 -81
- package/dist/src/index.mjs.map +1 -1
- package/dist/types/generated/accounts/nonce.d.ts +7 -7
- package/dist/types/generated/accounts/nonce.d.ts.map +1 -1
- package/dist/types/generated/errors/system.d.ts +4 -2
- package/dist/types/generated/errors/system.d.ts.map +1 -1
- package/dist/types/generated/instructions/advanceNonceAccount.d.ts +11 -8
- package/dist/types/generated/instructions/advanceNonceAccount.d.ts.map +1 -1
- package/dist/types/generated/instructions/allocate.d.ts +9 -6
- package/dist/types/generated/instructions/allocate.d.ts.map +1 -1
- package/dist/types/generated/instructions/allocateWithSeed.d.ts +12 -9
- package/dist/types/generated/instructions/allocateWithSeed.d.ts.map +1 -1
- package/dist/types/generated/instructions/assign.d.ts +10 -7
- package/dist/types/generated/instructions/assign.d.ts.map +1 -1
- package/dist/types/generated/instructions/assignWithSeed.d.ts +12 -9
- package/dist/types/generated/instructions/assignWithSeed.d.ts.map +1 -1
- package/dist/types/generated/instructions/authorizeNonceAccount.d.ts +11 -8
- package/dist/types/generated/instructions/authorizeNonceAccount.d.ts.map +1 -1
- package/dist/types/generated/instructions/createAccount.d.ts +11 -9
- package/dist/types/generated/instructions/createAccount.d.ts.map +1 -1
- package/dist/types/generated/instructions/createAccountAllowPrefund.d.ts +11 -9
- package/dist/types/generated/instructions/createAccountAllowPrefund.d.ts.map +1 -1
- package/dist/types/generated/instructions/createAccountWithSeed.d.ts +13 -10
- package/dist/types/generated/instructions/createAccountWithSeed.d.ts.map +1 -1
- package/dist/types/generated/instructions/initializeNonceAccount.d.ts +12 -9
- package/dist/types/generated/instructions/initializeNonceAccount.d.ts.map +1 -1
- package/dist/types/generated/instructions/transferSol.d.ts +10 -7
- package/dist/types/generated/instructions/transferSol.d.ts.map +1 -1
- package/dist/types/generated/instructions/transferSolWithSeed.d.ts +12 -9
- package/dist/types/generated/instructions/transferSolWithSeed.d.ts.map +1 -1
- package/dist/types/generated/instructions/upgradeNonceAccount.d.ts +8 -5
- package/dist/types/generated/instructions/upgradeNonceAccount.d.ts.map +1 -1
- package/dist/types/generated/instructions/withdrawNonceAccount.d.ts +13 -10
- package/dist/types/generated/instructions/withdrawNonceAccount.d.ts.map +1 -1
- package/dist/types/generated/programs/system.d.ts +46 -16
- package/dist/types/generated/programs/system.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/generated/accounts/nonce.ts +17 -8
- package/src/generated/errors/system.ts +5 -1
- package/src/generated/instructions/advanceNonceAccount.ts +38 -23
- package/src/generated/instructions/allocate.ts +25 -11
- package/src/generated/instructions/allocateWithSeed.ts +35 -17
- package/src/generated/instructions/assign.ts +27 -12
- package/src/generated/instructions/assignWithSeed.ts +38 -16
- package/src/generated/instructions/authorizeNonceAccount.ts +34 -16
- package/src/generated/instructions/createAccount.ts +33 -14
- package/src/generated/instructions/createAccountAllowPrefund.ts +30 -15
- package/src/generated/instructions/createAccountWithSeed.ts +41 -21
- package/src/generated/instructions/initializeNonceAccount.ts +39 -23
- package/src/generated/instructions/transferSol.ts +34 -14
- package/src/generated/instructions/transferSolWithSeed.ts +44 -20
- package/src/generated/instructions/upgradeNonceAccount.ts +25 -10
- package/src/generated/instructions/withdrawNonceAccount.ts +53 -35
- 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
|
|
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
|
|
39
|
-
payer:
|
|
40
|
-
newAccount:
|
|
41
|
-
baseAccount?:
|
|
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
|
|
49
|
-
programAddress?: TProgramAddress
|
|
50
|
-
|
|
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.d.ts","sourceRoot":"","sources":["../../../../src/generated/instructions/createAccountWithSeed.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,
|
|
1
|
+
{"version":3,"file":"createAccountWithSeed.d.ts","sourceRoot":"","sources":["../../../../src/generated/instructions/createAccountWithSeed.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,EACpB,KAAK,qBAAqB,EAC7B,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,sCAAsC,IAAI,CAAC;AAExD,wBAAgB,0CAA0C,IAAI,kBAAkB,CAE/E;AAED,MAAM,MAAM,gCAAgC,CACxC,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,aAAa,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC3D,kBAAkB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAChE,mBAAmB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,GAAG,SAAS,EAChF,kBAAkB,SAAS,SAAS,WAAW,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAC9D,WAAW,CAA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N,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC7B,WAAW,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;KAC9C,CAAC;IACF,IAAI,EAAE,oCAAoC,CAAC;CAC9C,CAAC;AAEF,wBAAgB,qCAAqC,CACjD,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,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
|
|
29
|
-
nonceAccount:
|
|
30
|
-
recentBlockhashesSysvar?:
|
|
31
|
-
rentSysvar?:
|
|
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
|
|
35
|
-
programAddress?: TProgramAddress
|
|
36
|
-
|
|
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;
|
|
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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Q,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"}
|
|
@@ -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
|
|
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
|
|
28
|
-
source:
|
|
29
|
-
destination:
|
|
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
|
|
33
|
-
programAddress?: TProgramAddress
|
|
34
|
-
|
|
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,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,
|
|
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,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC7B,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,0BAA0B,IAAI,CAAC;AAE5C,wBAAgB,gCAAgC,IAAI,kBAAkB,CAErE;AAED,MAAM,MAAM,sBAAsB,CAC9B,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,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,GACvB,qBAAqB,CAAC,cAAc,CAAC,GAAG,iBAAi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C,mBAAmB,CAAC,CAAC,CAC3G,CA2BA;AAED,MAAM,MAAM,4BAA4B,CACpC,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;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
|
|
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
|
|
33
|
-
source:
|
|
34
|
-
baseAccount:
|
|
35
|
-
destination:
|
|
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
|
|
41
|
-
programAddress?: TProgramAddress
|
|
42
|
-
|
|
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,
|
|
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,q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AAmB,EAAE,8BAA8B,CAAC,mBAAmB,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"}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
8
|
import { type AccountMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit';
|
|
9
|
+
import { type InstructionAccountInput, type InstructionAccountInputAddress, type ResolvedInstructionAccountMeta } from '@solana/kit/program-client-core';
|
|
9
10
|
import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
|
|
10
11
|
export declare const UPGRADE_NONCE_ACCOUNT_DISCRIMINATOR = 12;
|
|
11
12
|
export declare function getUpgradeNonceAccountDiscriminatorBytes(): ReadonlyUint8Array;
|
|
@@ -20,12 +21,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
|
|
24
|
-
nonceAccount:
|
|
24
|
+
export type UpgradeNonceAccountInput<TAccountNonceAccount extends InstructionAccountInput = InstructionAccountInput> = {
|
|
25
|
+
nonceAccount: TAccountNonceAccount;
|
|
25
26
|
};
|
|
26
|
-
export declare function getUpgradeNonceAccountInstruction<TAccountNonceAccount extends
|
|
27
|
-
programAddress?: TProgramAddress
|
|
28
|
-
|
|
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;
|
|
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,CA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AM,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
|
|
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
|
|
31
|
-
nonceAccount:
|
|
32
|
-
recipientAccount:
|
|
33
|
-
recentBlockhashesSysvar?:
|
|
34
|
-
rentSysvar?:
|
|
35
|
-
nonceAuthority:
|
|
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
|
|
39
|
-
programAddress?: TProgramAddress
|
|
40
|
-
|
|
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,
|
|
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,K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,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'
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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(
|
|
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,EACn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E;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.
|
|
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.
|
|
38
|
-
"@solana/kit-plugin-litesvm": "^0.
|
|
39
|
-
"@solana/kit-plugin-signer": "^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.
|
|
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(
|
|
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(
|
|
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
|
-
|
|
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
|
}
|