@solana/rpc-spec
Advanced tools
Comparing version 2.0.0-canary-20241023085850 to 2.0.0-canary-20241023090538
export * from './rpc'; | ||
export * from './rpc-api'; | ||
export * from './rpc-shared'; | ||
export * from './rpc-transport'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,3 +0,2 @@ | ||
import { Callable } from '@solana/rpc-spec-types'; | ||
import { RpcRequestTransformer, RpcResponse, RpcResponseTransformer } from './rpc-shared'; | ||
import { Callable, RpcRequestTransformer, RpcResponse, RpcResponseTransformer } from '@solana/rpc-spec-types'; | ||
export type RpcApiConfig = Readonly<{ | ||
@@ -4,0 +3,0 @@ requestTransformer?: RpcRequestTransformer; |
@@ -1,2 +0,2 @@ | ||
import { RpcResponse } from './rpc-shared'; | ||
import { RpcResponse } from '@solana/rpc-spec-types'; | ||
type RpcTransportRequest = Readonly<{ | ||
@@ -3,0 +3,0 @@ payload: unknown; |
{ | ||
"name": "@solana/rpc-spec", | ||
"version": "2.0.0-canary-20241023085850", | ||
"version": "2.0.0-canary-20241023090538", | ||
"description": "A generic implementation of JSON RPCs using proxies", | ||
@@ -57,4 +57,4 @@ "exports": { | ||
"dependencies": { | ||
"@solana/errors": "2.0.0-canary-20241023085850", | ||
"@solana/rpc-spec-types": "2.0.0-canary-20241023085850" | ||
"@solana/errors": "2.0.0-canary-20241023090538", | ||
"@solana/rpc-spec-types": "2.0.0-canary-20241023090538" | ||
}, | ||
@@ -61,0 +61,0 @@ "peerDependencies": { |
@@ -44,21 +44,2 @@ [![npm][npm-image]][npm-url] | ||
### `RpcRequest` | ||
An object that describes the elements of a JSON RPC request. It consists of the following properties: | ||
- `methodName`: The name of the JSON RPC method to be called. | ||
- `params`: The parameters to be passed to the JSON RPC method. | ||
### `RpcRequestTransformer` | ||
A function that accepts an `RpcRequest` and returns another `RpcRequest`. This allows the `RpcApi` to transform the request before it is sent to the JSON RPC server. | ||
### `RpcResponse` | ||
A type that represents the response from a JSON RPC server. This could be any sort of data which is why `RpcResponse` defaults to `unknown`. You may use a type parameter to specify the shape of the response — e.g. `RpcResponse<{ result: number }>`. | ||
### `RpcResponseTransformer` | ||
A function that accepts an `RpcResponse` and returns another `RpcResponse`. This allows the `RpcApi` to transform the response before it is returned to the caller. | ||
### `RpcApi<TRpcMethods>` | ||
@@ -65,0 +46,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
74138
21
439
133
+ Added@solana/errors@2.0.0-canary-20241023090538(transitive)
+ Added@solana/rpc-spec-types@2.0.0-canary-20241023090538(transitive)
- Removed@solana/errors@2.0.0-canary-20241023085850(transitive)
- Removed@solana/rpc-spec-types@2.0.0-canary-20241023085850(transitive)