@solana-program/system 0.10.0 → 0.12.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 (40) hide show
  1. package/dist/src/index.js +369 -365
  2. package/dist/src/index.js.map +1 -1
  3. package/dist/src/index.mjs +369 -367
  4. package/dist/src/index.mjs.map +1 -1
  5. package/dist/types/generated/accounts/nonce.d.ts +3 -0
  6. package/dist/types/generated/accounts/nonce.d.ts.map +1 -1
  7. package/dist/types/generated/errors/system.d.ts.map +1 -1
  8. package/dist/types/generated/instructions/advanceNonceAccount.d.ts +1 -1
  9. package/dist/types/generated/instructions/advanceNonceAccount.d.ts.map +1 -1
  10. package/dist/types/generated/instructions/allocate.d.ts +1 -1
  11. package/dist/types/generated/instructions/allocate.d.ts.map +1 -1
  12. package/dist/types/generated/instructions/allocateWithSeed.d.ts +1 -1
  13. package/dist/types/generated/instructions/allocateWithSeed.d.ts.map +1 -1
  14. package/dist/types/generated/instructions/assign.d.ts +1 -1
  15. package/dist/types/generated/instructions/assign.d.ts.map +1 -1
  16. package/dist/types/generated/instructions/assignWithSeed.d.ts +1 -1
  17. package/dist/types/generated/instructions/assignWithSeed.d.ts.map +1 -1
  18. package/dist/types/generated/instructions/authorizeNonceAccount.d.ts +1 -1
  19. package/dist/types/generated/instructions/authorizeNonceAccount.d.ts.map +1 -1
  20. package/dist/types/generated/instructions/createAccount.d.ts +2 -2
  21. package/dist/types/generated/instructions/createAccount.d.ts.map +1 -1
  22. package/dist/types/generated/instructions/createAccountWithSeed.d.ts +1 -1
  23. package/dist/types/generated/instructions/createAccountWithSeed.d.ts.map +1 -1
  24. package/dist/types/generated/instructions/initializeNonceAccount.d.ts +1 -1
  25. package/dist/types/generated/instructions/initializeNonceAccount.d.ts.map +1 -1
  26. package/dist/types/generated/instructions/transferSol.d.ts +1 -1
  27. package/dist/types/generated/instructions/transferSol.d.ts.map +1 -1
  28. package/dist/types/generated/instructions/transferSolWithSeed.d.ts +1 -1
  29. package/dist/types/generated/instructions/transferSolWithSeed.d.ts.map +1 -1
  30. package/dist/types/generated/instructions/upgradeNonceAccount.d.ts +1 -1
  31. package/dist/types/generated/instructions/upgradeNonceAccount.d.ts.map +1 -1
  32. package/dist/types/generated/instructions/withdrawNonceAccount.d.ts +1 -1
  33. package/dist/types/generated/instructions/withdrawNonceAccount.d.ts.map +1 -1
  34. package/dist/types/generated/programs/system.d.ts +33 -2
  35. package/dist/types/generated/programs/system.d.ts.map +1 -1
  36. package/dist/types/generated/types/nonceState.d.ts.map +1 -1
  37. package/dist/types/generated/types/nonceVersion.d.ts.map +1 -1
  38. package/package.json +15 -27
  39. package/dist/types/generated/shared/index.d.ts +0 -50
  40. package/dist/types/generated/shared/index.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana-program/system",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "JavaScript client for the System program",
5
5
  "sideEffects": false,
6
6
  "module": "./dist/src/index.mjs",
@@ -32,40 +32,28 @@
32
32
  },
33
33
  "homepage": "https://github.com/solana-program/system#readme",
34
34
  "peerDependencies": {
35
- "@solana/kit": "^5.0"
35
+ "@solana/kit": "^6.1.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@ava/typescript": "^4.1.0",
39
- "@solana/eslint-config-solana": "^3.0.3",
40
- "@solana/kit": "^5.0",
38
+ "@solana/eslint-config-solana": "^6.0.0",
39
+ "@solana/kit-plugins": "^0.5.0",
40
+ "@solana/kit": "^6.1.0",
41
41
  "@types/node": "^24",
42
- "@typescript-eslint/eslint-plugin": "^7.16.1",
43
- "@typescript-eslint/parser": "^7.16.1",
44
- "ava": "^6.1.3",
45
- "eslint": "^8.57.0",
46
- "prettier": "^3.6.2",
47
- "rimraf": "^5.0.5",
42
+ "eslint": "^9.39.2",
43
+ "prettier": "^3.7.4",
44
+ "rimraf": "^6.1.2",
48
45
  "tsup": "^8.1.2",
49
- "typedoc": "^0.25.12",
50
- "typescript": "^5.5.3"
51
- },
52
- "ava": {
53
- "nodeArguments": [
54
- "--no-warnings"
55
- ],
56
- "typescript": {
57
- "compile": false,
58
- "rewritePaths": {
59
- "test/": "dist/test/"
60
- }
61
- }
46
+ "typedoc": "^0.28.15",
47
+ "typescript": "^5.9.3",
48
+ "vitest": "^4.0.15"
62
49
  },
63
50
  "scripts": {
64
51
  "build": "rimraf dist && tsup && tsc -p ./tsconfig.declarations.json",
65
52
  "build:docs": "typedoc",
66
- "test": "ava",
67
- "lint": "eslint --ext js,ts,tsx src",
68
- "lint:fix": "eslint --fix --ext js,ts,tsx src",
53
+ "dev": "vitest",
54
+ "test": "vitest run",
55
+ "lint": "eslint src",
56
+ "lint:fix": "eslint --fix src",
69
57
  "format": "prettier --check src test",
70
58
  "format:fix": "prettier --write src test"
71
59
  }
@@ -1,50 +0,0 @@
1
- /**
2
- * This code was AUTOGENERATED using the Codama library.
3
- * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun Codama to update it.
5
- *
6
- * @see https://github.com/codama-idl/codama
7
- */
8
- import { type AccountMeta, type AccountSignerMeta, type Address, type ProgramDerivedAddress, type TransactionSigner } from '@solana/kit';
9
- /**
10
- * Asserts that the given value is not null or undefined.
11
- * @internal
12
- */
13
- export declare function expectSome<T>(value: T | null | undefined): T;
14
- /**
15
- * Asserts that the given value is a PublicKey.
16
- * @internal
17
- */
18
- export declare function expectAddress<T extends string = string>(value: Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null | undefined): Address<T>;
19
- /**
20
- * Asserts that the given value is a PDA.
21
- * @internal
22
- */
23
- export declare function expectProgramDerivedAddress<T extends string = string>(value: Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null | undefined): ProgramDerivedAddress<T>;
24
- /**
25
- * Asserts that the given value is a TransactionSigner.
26
- * @internal
27
- */
28
- export declare function expectTransactionSigner<T extends string = string>(value: Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null | undefined): TransactionSigner<T>;
29
- /**
30
- * Defines an instruction account to resolve.
31
- * @internal
32
- */
33
- export type ResolvedAccount<T extends string = string, U extends Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null = Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null> = {
34
- isWritable: boolean;
35
- value: U;
36
- };
37
- /**
38
- * Defines an instruction that stores additional bytes on-chain.
39
- * @internal
40
- */
41
- export type InstructionWithByteDelta = {
42
- byteDelta: number;
43
- };
44
- /**
45
- * Get account metas and signers from resolved accounts.
46
- * @internal
47
- */
48
- export declare function getAccountMetaFactory(programAddress: Address, optionalAccountStrategy: 'omitted' | 'programId'): (account: ResolvedAccount) => AccountMeta | AccountSignerMeta | undefined;
49
- export declare function isTransactionSigner<TAddress extends string = string>(value: Address<TAddress> | ProgramDerivedAddress<TAddress> | TransactionSigner<TAddress>): value is TransactionSigner<TAddress>;
50
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/shared/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EAEvB,MAAM,aAAa,CAAC;AAErB;;;GAGG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,CAAC,CAK5D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EACrD,KAAK,EACD,OAAO,CAAC,CAAC,CAAC,GACV,qBAAqB,CAAC,CAAC,CAAC,GACxB,iBAAiB,CAAC,CAAC,CAAC,GACpB,IAAI,GACJ,SAAS,GACZ,OAAO,CAAC,CAAC,CAAC,CAWZ;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,MA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