@solana-program/system 0.12.2 → 0.14.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 +3 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/index.mjs +4 -2
- package/dist/src/index.mjs.map +1 -1
- package/dist/types/generated/programs/system.d.ts +5 -3
- package/dist/types/generated/programs/system.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/generated/programs/system.ts +10 -2
|
@@ -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 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 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';
|
|
@@ -65,6 +65,8 @@ export declare function parseSystemInstruction<TProgram extends string>(instruct
|
|
|
65
65
|
export type SystemPlugin = {
|
|
66
66
|
accounts: SystemPluginAccounts;
|
|
67
67
|
instructions: SystemPluginInstructions;
|
|
68
|
+
identifyInstruction: typeof identifySystemInstruction;
|
|
69
|
+
parseInstruction: typeof parseSystemInstruction;
|
|
68
70
|
};
|
|
69
71
|
export type SystemPluginAccounts = {
|
|
70
72
|
nonce: ReturnType<typeof getNonceCodec> & SelfFetchFunctions<NonceArgs, Nonce>;
|
|
@@ -86,9 +88,9 @@ export type SystemPluginInstructions = {
|
|
|
86
88
|
createAccountAllowPrefund: (input: CreateAccountAllowPrefundInput) => ReturnType<typeof getCreateAccountAllowPrefundInstruction> & SelfPlanAndSendFunctions;
|
|
87
89
|
};
|
|
88
90
|
export type SystemPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
|
|
89
|
-
export declare function systemProgram(): <T extends SystemPluginRequirements>(client: T) =>
|
|
91
|
+
export declare function systemProgram(): <T extends SystemPluginRequirements>(client: T) => ExtendedClient<T, {
|
|
90
92
|
system: SystemPlugin;
|
|
91
|
-
}
|
|
93
|
+
}>;
|
|
92
94
|
type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
93
95
|
export {};
|
|
94
96
|
//# sourceMappingURL=system.d.ts.map
|
|
@@ -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,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EAC1B,MAAM,aAAa,CAAC;AACrB,OAAO,EAGH,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,KAAK,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EACH,iCAAiC,EACjC,sBAAsB,EACtB,8BAA8B,EAC9B,oBAAoB,EACpB,4BAA4B,EAC5B,mCAAmC,EACnC,uCAAuC,EACvC,2BAA2B,EAC3B,mCAAmC,EACnC,oCAAoC,EACpC,yBAAyB,EACzB,iCAAiC,EACjC,iCAAiC,EACjC,kCAAkC,EAelC,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,EACtC,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,sCAAsC,EAC3C,KAAK,0CAA0C,EAC/C,KAAK,8BAA8B,EACnC,KAAK,sCAAsC,EAC3C,KAAK,uCAAuC,EA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version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../src/generated/programs/system.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAQH,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EAC1B,MAAM,aAAa,CAAC;AACrB,OAAO,EAGH,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,KAAK,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EACH,iCAAiC,EACjC,sBAAsB,EACtB,8BAA8B,EAC9B,oBAAoB,EACpB,4BAA4B,EAC5B,mCAAmC,EACnC,uCAAuC,EACvC,2BAA2B,EAC3B,mCAAmC,EACnC,oCAAoC,EACpC,yBAAyB,EACzB,iCAAiC,EACjC,iCAAiC,EACjC,kCAAkC,EAelC,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,EACtC,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,sCAAsC,EAC3C,KAAK,0CAA0C,EAC/C,KAAK,8BAA8B,EACnC,KAAK,sCAAsC,EAC3C,KAAK,uCAAuC,EAC5C,KAAK,4BAA4B,EACjC,KAAK,oCAAoC,EACzC,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAC1C,KAAK,gB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zG,gBAAgB,EAAE,CACd,KAAK,EAAE,qBAAqB,KAC3B,UAAU,CAAC,OAAO,8BAA8B,CAAC,GAAG,wBAAwB,CAAC;IAClF,cAAc,EAAE,CACZ,KAAK,EAAE,mBAAmB,KACzB,UAAU,CAAC,OAAO,4BAA4B,CAAC,GAAG,wBAAwB,CAAC;IAChF,mBAAmB,EAAE,CACjB,KAAK,EAAE,wBAAwB,KAC9B,UAAU,CAAC,OAAO,iCAAiC,CAAC,GAAG,wBAAwB,CAAC;IACrF,mBAAmB,EAAE,CACjB,KAAK,EAAE,wBAAwB,KAC9B,UAAU,CAAC,OAAO,iCAAiC,CAAC,GAAG,wBAAwB,CAAC;IACrF,yBAAyB,EAAE,CACvB,KAAK,EAAE,8BAA8B,KACpC,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,KACjB,CAAC,SAAS,wBAAwB,EAAE,QAAQ,CAAC,KAAG,cAAc,CAAC,CAAC,EAAE;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,CAAC,CAyCtG;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.14.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": "^
|
|
38
|
-
"@solana/kit-plugin-litesvm": "^0.
|
|
39
|
-
"@solana/kit-plugin-signer": "^0.
|
|
37
|
+
"@solana/kit": "^8.0.0",
|
|
38
|
+
"@solana/kit-plugin-litesvm": "^0.18.0",
|
|
39
|
+
"@solana/kit-plugin-signer": "^0.18.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": "^
|
|
51
|
+
"@solana/kit": "^8.0.0"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "rimraf dist && tsup && tsc -p ./tsconfig.declarations.json",
|
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
type ClientWithRpc,
|
|
20
20
|
type ClientWithTransactionPlanning,
|
|
21
21
|
type ClientWithTransactionSending,
|
|
22
|
+
type ExtendedClient,
|
|
22
23
|
type GetAccountInfoApi,
|
|
23
24
|
type GetMultipleAccountsApi,
|
|
24
25
|
type Instruction,
|
|
@@ -285,7 +286,12 @@ export function parseSystemInstruction<TProgram extends string>(
|
|
|
285
286
|
}
|
|
286
287
|
}
|
|
287
288
|
|
|
288
|
-
export type SystemPlugin = {
|
|
289
|
+
export type SystemPlugin = {
|
|
290
|
+
accounts: SystemPluginAccounts;
|
|
291
|
+
instructions: SystemPluginInstructions;
|
|
292
|
+
identifyInstruction: typeof identifySystemInstruction;
|
|
293
|
+
parseInstruction: typeof parseSystemInstruction;
|
|
294
|
+
};
|
|
289
295
|
|
|
290
296
|
export type SystemPluginAccounts = { nonce: ReturnType<typeof getNonceCodec> & SelfFetchFunctions<NonceArgs, Nonce> };
|
|
291
297
|
|
|
@@ -334,7 +340,7 @@ export type SystemPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMult
|
|
|
334
340
|
ClientWithTransactionSending;
|
|
335
341
|
|
|
336
342
|
export function systemProgram() {
|
|
337
|
-
return <T extends SystemPluginRequirements>(client: T):
|
|
343
|
+
return <T extends SystemPluginRequirements>(client: T): ExtendedClient<T, { system: SystemPlugin }> => {
|
|
338
344
|
return extendClient(client, {
|
|
339
345
|
system: <SystemPlugin>{
|
|
340
346
|
accounts: { nonce: addSelfFetchFunctions(client, getNonceCodec()) },
|
|
@@ -370,6 +376,8 @@ export function systemProgram() {
|
|
|
370
376
|
createAccountAllowPrefund: input =>
|
|
371
377
|
addSelfPlanAndSendFunctions(client, getCreateAccountAllowPrefundInstruction(input)),
|
|
372
378
|
},
|
|
379
|
+
identifyInstruction: identifySystemInstruction,
|
|
380
|
+
parseInstruction: parseSystemInstruction,
|
|
373
381
|
},
|
|
374
382
|
});
|
|
375
383
|
};
|