@solana/kora 0.2.0 → 0.3.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/kora",
3
- "version": "0.2.0",
3
+ "version": "0.3.0-beta.0",
4
4
  "description": "TypeScript SDK for Kora RPC",
5
5
  "main": "dist/src/index.js",
6
6
  "type": "module",
@@ -22,23 +22,18 @@
22
22
  "directory": "sdks/ts"
23
23
  },
24
24
  "peerDependencies": {
25
- "@solana-program/compute-budget": "^0.13.0",
25
+ "@solana-program/compute-budget": "^0.15.0",
26
26
  "@solana-program/token": "^0.12.0",
27
- "@solana/kit": "^6.1.0",
28
- "@solana/kit-plugin-instruction-plan": "^0.6.0",
27
+ "@solana/kit": "^6.3.0",
28
+ "@solana/kit-plugin-instruction-plan": "^0.7.0",
29
29
  "@solana/kit-plugin-payer": "^0.6.0",
30
- "@solana/kit-plugin-rpc": "^0.6.0"
30
+ "@solana/kit-plugin-rpc": "^0.7.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@eslint/js": "^9.39.3",
34
- "@solana-program/compute-budget": "^0.13.0",
35
- "@solana-program/system": "^0.11.0",
36
- "@solana-program/token": "^0.12.0",
34
+ "@solana-program/system": "^0.12.0",
37
35
  "@solana/eslint-config-solana": "6.0.0",
38
- "@solana/kit": "^6.1.0",
39
- "@solana/kit-plugin-instruction-plan": "^0.6.0",
40
- "@solana/kit-plugin-payer": "^0.6.0",
41
- "@solana/kit-plugin-rpc": "^0.6.0",
36
+ "@solana/kit-client-litesvm": "^0.7.0",
42
37
  "@solana/prettier-config-solana": "^0.0.6",
43
38
  "@types/jest": "^29.5.12",
44
39
  "@types/node": "^20.17.27",
@@ -56,8 +51,7 @@
56
51
  "typedoc": "^0.28.9",
57
52
  "typedoc-plugin-markdown": "^4.8.0",
58
53
  "typescript": "^5.9.3",
59
- "typescript-eslint": "^8.56.1",
60
- "ws": "^8.18.3"
54
+ "typescript-eslint": "^8.56.1"
61
55
  },
62
56
  "scripts": {
63
57
  "build": "tsc",
@@ -71,8 +65,6 @@
71
65
  "test:integration:privy": "KORA_SIGNER_TYPE=privy pnpm test integration.test.ts",
72
66
  "test:integration:turnkey": "KORA_SIGNER_TYPE=turnkey pnpm test integration.test.ts",
73
67
  "test:unit": "pnpm test unit.test.ts",
74
- "test:ci:integration": "node scripts/test-with-validator.js",
75
- "test:ci:integration:auth": "ENABLE_AUTH=true node scripts/test-with-validator.js",
76
68
  "test:ci:unit": "jest test/unit.test.ts",
77
69
  "lint": "eslint src/",
78
70
  "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
@@ -1,31 +0,0 @@
1
- import type { EstimateTransactionFeeRequest, GetPaymentInstructionRequest, KitBlockhashResponse, KitConfigResponse, KitEstimateFeeResponse, KitPayerSignerResponse, KitPaymentInstructionResponse, KitSignAndSendTransactionResponse, KitSignTransactionResponse, KitSupportedTokensResponse, KitTransferTransactionResponse, KoraPluginConfig, SignAndSendTransactionRequest, SignTransactionRequest, TransferTransactionRequest } from '../types/index.js';
2
- /**
3
- * Kit plugin that adds `.kora` namespace with all Kora RPC methods.
4
- * Responses are cast to Kit types (Address, Blockhash, Signature).
5
- *
6
- * Requires `@solana/kit` v5.4.0+ for the `createEmptyClient().use()` pattern.
7
- *
8
- * @example
9
- * ```typescript
10
- * const client = createEmptyClient()
11
- * .use(koraPlugin({ endpoint: 'https://kora.example.com' }));
12
- *
13
- * const config = await client.kora.getConfig();
14
- * const { signer_pubkey } = await client.kora.signTransaction({ transaction: tx });
15
- * ```
16
- */
17
- export declare function koraPlugin(config: KoraPluginConfig): <T extends object>(c: T) => T & {
18
- kora: {
19
- estimateTransactionFee(request: EstimateTransactionFeeRequest): Promise<KitEstimateFeeResponse>;
20
- getBlockhash(): Promise<KitBlockhashResponse>;
21
- getConfig(): Promise<KitConfigResponse>;
22
- getPayerSigner(): Promise<KitPayerSignerResponse>;
23
- getPaymentInstruction(request: GetPaymentInstructionRequest): Promise<KitPaymentInstructionResponse>;
24
- getSupportedTokens(): Promise<KitSupportedTokensResponse>;
25
- signAndSendTransaction(request: SignAndSendTransactionRequest): Promise<KitSignAndSendTransactionResponse>;
26
- signTransaction(request: SignTransactionRequest): Promise<KitSignTransactionResponse>;
27
- transferTransaction(request: TransferTransactionRequest): Promise<KitTransferTransactionResponse>;
28
- };
29
- };
30
- /** Type representing the Kora plugin namespace on the client. */
31
- export type KoraPlugin = ReturnType<ReturnType<typeof koraPlugin>>['kora'];