@psalomo/jsonrpc-client 1.1.0 → 1.3.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/index.d.mts CHANGED
@@ -1,205 +1,170 @@
1
- import { RpcStateChangesInBlockByTypeRequest, RpcStateChangesInBlockResponse, RpcStateChangesInBlockRequest, RpcStateChangesInBlockByTypeResponse, RpcCongestionLevelRequest, RpcCongestionLevelResponse, GenesisConfigRequest, GenesisConfig, RpcLightClientBlockProofRequest, RpcLightClientBlockProofResponse, RpcLightClientExecutionProofRequest, RpcLightClientExecutionProofResponse, RpcMaintenanceWindowsRequest, EXPERIMENTALMaintenanceWindowsResponse, RpcProtocolConfigRequest, RpcProtocolConfigResponse, RpcReceiptRequest, RpcReceiptResponse, RpcSplitStorageInfoRequest, RpcSplitStorageInfoResponse, RpcTransactionStatusRequest, RpcTransactionResponse, RpcValidatorsOrderedRequest, EXPERIMENTALValidatorsOrderedResponse, RpcBlockRequest, RpcBlockResponse, RpcSendTransactionRequest, CryptoHash, RpcChunkRequest, RpcChunkResponse, RpcClientConfigRequest, RpcClientConfigResponse, RpcGasPriceRequest, RpcGasPriceResponse, RpcHealthRequest, RpcHealthResponse, MaintenanceWindowsResponse, RpcNetworkInfoRequest, RpcNetworkInfoResponse, RpcLightClientNextBlockRequest, RpcLightClientNextBlockResponse, RpcQueryRequest, RpcQueryResponse, RpcStatusRequest, RpcStatusResponse, RpcValidatorRequest, RpcValidatorResponse, AccountView, CallResult, AccessKeyView } from '@near-js/jsonrpc-types';
2
- export { JsonRpcRequestSchema, JsonRpcResponseSchema, RPC_METHODS } from '@near-js/jsonrpc-types';
1
+ import { N as NearRpcClient } from './convenience-5WSFl5pu.mjs';
2
+ export { b as ClientConfig, a as CompleteClientInterface, C as ConvenienceMethods, D as DynamicRpcMethods, g as JsonRpcClientError, f as JsonRpcError, h as JsonRpcNetworkError, J as JsonRpcRequest, c as JsonRpcResponse, k as NearRpcError, j as RpcError, R as RpcRequest, i as RpcResponse, d as defaultClient, e as enableValidation, p as parseCallResultToJson, v as viewFunctionAsJson } from './convenience-5WSFl5pu.mjs';
3
+ import { AccountView, CallResult, AccessKeyView, RpcStateChangesInBlockByTypeRequest, RpcStateChangesInBlockResponse, RpcStateChangesInBlockRequest, RpcStateChangesInBlockByTypeResponse, RpcCongestionLevelRequest, RpcCongestionLevelResponse, GenesisConfigRequest, GenesisConfig, RpcLightClientBlockProofRequest, RpcLightClientBlockProofResponse, RpcLightClientExecutionProofRequest, RpcLightClientExecutionProofResponse, RpcMaintenanceWindowsRequest, EXPERIMENTALMaintenanceWindowsResponse, RpcProtocolConfigRequest, RpcProtocolConfigResponse, RpcReceiptRequest, RpcReceiptResponse, RpcSplitStorageInfoRequest, RpcSplitStorageInfoResponse, RpcTransactionStatusRequest, RpcTransactionResponse, RpcValidatorsOrderedRequest, EXPERIMENTALValidatorsOrderedResponse, RpcBlockRequest, RpcBlockResponse, RpcSendTransactionRequest, CryptoHash, RpcChunkRequest, RpcChunkResponse, RpcClientConfigRequest, RpcClientConfigResponse, RpcGasPriceRequest, RpcGasPriceResponse, RpcHealthRequest, RpcHealthResponse, MaintenanceWindowsResponse, RpcNetworkInfoRequest, RpcNetworkInfoResponse, RpcLightClientNextBlockRequest, RpcLightClientNextBlockResponse, RpcQueryRequest, RpcQueryResponse, RpcStatusRequest, RpcStatusResponse, RpcValidatorRequest, RpcValidatorResponse } from '@psalomo/jsonrpc-types';
4
+ export { JsonRpcRequestSchema, JsonRpcResponseSchema, RPC_METHODS } from '@psalomo/jsonrpc-types';
3
5
 
4
- interface ValidationResult {
5
- validateRequest: (request: JsonRpcRequest) => void;
6
- validateResponse: (response: JsonRpcResponse) => void;
7
- validateMethodRequest?: (method: string, request: JsonRpcRequest) => void;
8
- validateMethodResponse?: (method: string, response: JsonRpcResponse) => void;
9
- }
10
- /**
11
- * Enable validation for the client
12
- * This function should only be called if you want to include schema validation
13
- * Calling this function will include Zod schemas in your bundle
14
- */
15
- declare function enableValidation(): ValidationResult;
16
-
17
- interface ClientConfig {
18
- endpoint: string;
19
- headers?: Record<string, string>;
20
- timeout?: number;
21
- retries?: number;
22
- validation?: ValidationResult;
23
- }
24
- interface JsonRpcRequest<T = unknown> {
25
- jsonrpc: '2.0';
26
- id: string;
27
- method: string;
28
- params?: T;
29
- }
30
- interface JsonRpcResponse<T = unknown> {
31
- jsonrpc: '2.0';
32
- id: string;
33
- result?: T;
34
- error?: JsonRpcError;
35
- }
36
- interface JsonRpcError {
37
- code: number;
38
- message: string;
39
- data?: unknown;
40
- }
41
- declare class JsonRpcClientError extends Error {
42
- code?: number | undefined;
43
- data?: unknown | undefined;
44
- constructor(message: string, code?: number | undefined, data?: unknown | undefined);
45
- }
46
- declare class JsonRpcNetworkError extends Error {
47
- originalError?: Error | undefined;
48
- responseBody?: unknown | undefined;
49
- constructor(message: string, originalError?: Error | undefined, responseBody?: unknown | undefined);
50
- }
51
- /**
52
- * NEAR RPC Client with static function architecture
53
- * This client only holds configuration and provides a makeRequest method
54
- * Individual RPC methods are provided as standalone functions that take this client as a parameter
55
- */
56
- declare class NearRpcClient {
57
- readonly endpoint: string;
58
- readonly headers: Record<string, string>;
59
- readonly timeout: number;
60
- readonly retries: number;
61
- private readonly validation;
62
- constructor(config: string | ClientConfig);
63
- /**
64
- * Make a raw JSON-RPC request
65
- * This is used internally by the standalone RPC functions
66
- */
67
- makeRequest<TParams = unknown, TResult = unknown>(method: string, params?: TParams): Promise<TResult>;
68
- /**
69
- * Create a new client with modified configuration
70
- */
71
- withConfig(config: Partial<ClientConfig>): NearRpcClient;
72
- }
73
- declare const defaultClient: NearRpcClient;
74
-
75
- interface RpcRequest {
76
- jsonrpc: '2.0';
77
- id: string | number;
78
- method: string;
79
- params: unknown;
80
- }
81
- interface RpcResponse<T = unknown> {
82
- jsonrpc: '2.0';
83
- id: string | number;
84
- result?: T;
85
- error?: RpcError;
86
- }
87
- interface RpcError {
88
- code: number;
89
- message: string;
90
- data?: unknown;
91
- }
92
- declare class NearRpcError extends Error {
93
- code: number;
94
- data?: unknown | undefined;
95
- constructor(code: number, message: string, data?: unknown | undefined);
96
- }
97
-
98
- interface DynamicRpcMethods {
99
- experimentalChanges(params?: RpcStateChangesInBlockByTypeRequest): Promise<RpcStateChangesInBlockResponse>;
100
- experimentalChangesInBlock(params?: RpcStateChangesInBlockRequest): Promise<RpcStateChangesInBlockByTypeResponse>;
101
- experimentalCongestionLevel(params?: RpcCongestionLevelRequest): Promise<RpcCongestionLevelResponse>;
102
- experimentalGenesisConfig(params?: GenesisConfigRequest): Promise<GenesisConfig>;
103
- experimentalLightClientBlockProof(params?: RpcLightClientBlockProofRequest): Promise<RpcLightClientBlockProofResponse>;
104
- experimentalLightClientProof(params?: RpcLightClientExecutionProofRequest): Promise<RpcLightClientExecutionProofResponse>;
105
- experimentalMaintenanceWindows(params?: RpcMaintenanceWindowsRequest): Promise<EXPERIMENTALMaintenanceWindowsResponse>;
106
- experimentalProtocolConfig(params?: RpcProtocolConfigRequest): Promise<RpcProtocolConfigResponse>;
107
- experimentalReceipt(params?: RpcReceiptRequest): Promise<RpcReceiptResponse>;
108
- experimentalSplitStorageInfo(params?: RpcSplitStorageInfoRequest): Promise<RpcSplitStorageInfoResponse>;
109
- experimentalTxStatus(params?: RpcTransactionStatusRequest): Promise<RpcTransactionResponse>;
110
- experimentalValidatorsOrdered(params?: RpcValidatorsOrderedRequest): Promise<EXPERIMENTALValidatorsOrderedResponse>;
111
- block(params?: RpcBlockRequest): Promise<RpcBlockResponse>;
112
- blockEffects(params?: RpcStateChangesInBlockRequest): Promise<RpcStateChangesInBlockByTypeResponse>;
113
- broadcastTxAsync(params?: RpcSendTransactionRequest): Promise<CryptoHash>;
114
- broadcastTxCommit(params?: RpcSendTransactionRequest): Promise<RpcTransactionResponse>;
115
- changes(params?: RpcStateChangesInBlockByTypeRequest): Promise<RpcStateChangesInBlockResponse>;
116
- chunk(params?: RpcChunkRequest): Promise<RpcChunkResponse>;
117
- clientConfig(params?: RpcClientConfigRequest): Promise<RpcClientConfigResponse>;
118
- gasPrice(params?: RpcGasPriceRequest): Promise<RpcGasPriceResponse>;
119
- genesisConfig(params?: GenesisConfigRequest): Promise<GenesisConfig>;
120
- health(params?: RpcHealthRequest): Promise<RpcHealthResponse>;
121
- lightClientProof(params?: RpcLightClientExecutionProofRequest): Promise<RpcLightClientExecutionProofResponse>;
122
- maintenanceWindows(params?: RpcMaintenanceWindowsRequest): Promise<MaintenanceWindowsResponse>;
123
- networkInfo(params?: RpcNetworkInfoRequest): Promise<RpcNetworkInfoResponse>;
124
- nextLightClientBlock(params?: RpcLightClientNextBlockRequest): Promise<RpcLightClientNextBlockResponse>;
125
- query(params?: RpcQueryRequest): Promise<RpcQueryResponse>;
126
- sendTx(params?: RpcSendTransactionRequest): Promise<RpcTransactionResponse>;
127
- status(params?: RpcStatusRequest): Promise<RpcStatusResponse>;
128
- tx(params?: RpcTransactionStatusRequest): Promise<RpcTransactionResponse>;
129
- validators(params?: RpcValidatorRequest): Promise<RpcValidatorResponse>;
130
- }
131
- interface ConvenienceMethods {
132
- viewAccount(params: {
133
- accountId: string;
134
- finality?: 'final' | 'near-final' | 'optimistic';
135
- blockId?: string | number;
136
- }): Promise<AccountView>;
137
- viewFunction(params: {
138
- accountId: string;
139
- methodName: string;
140
- argsBase64?: string;
141
- finality?: 'final' | 'near-final' | 'optimistic';
142
- blockId?: string | number;
143
- }): Promise<CallResult>;
144
- viewAccessKey(params: {
145
- accountId: string;
146
- publicKey: string;
147
- finality?: 'final' | 'near-final' | 'optimistic';
148
- blockId?: string | number;
149
- }): Promise<AccessKeyView>;
150
- }
151
- interface CompleteClientInterface extends DynamicRpcMethods, ConvenienceMethods {
152
- call<TParams = unknown, TResult = unknown>(method: string, params?: TParams): Promise<TResult>;
153
- }
6
+ declare function viewAccount(client: NearRpcClient, params: {
7
+ accountId: string;
8
+ finality?: 'final' | 'near-final' | 'optimistic';
9
+ blockId?: string | number;
10
+ }): Promise<AccountView>;
11
+ declare function viewFunction(client: NearRpcClient, params: {
12
+ accountId: string;
13
+ methodName: string;
14
+ argsBase64?: string;
15
+ finality?: 'final' | 'near-final' | 'optimistic';
16
+ blockId?: string | number;
17
+ }): Promise<CallResult>;
18
+ declare function viewAccessKey(client: NearRpcClient, params: {
19
+ accountId: string;
20
+ publicKey: string;
21
+ finality?: 'final' | 'near-final' | 'optimistic';
22
+ blockId?: string | number;
23
+ }): Promise<AccessKeyView>;
24
+ /**
25
+ * [Deprecated] Returns changes for a given account, contract or contract code
26
+ * for given block height or hash. Consider using changes instead.
27
+ */
154
28
  declare function experimentalChanges(client: NearRpcClient, params?: RpcStateChangesInBlockByTypeRequest): Promise<RpcStateChangesInBlockResponse>;
29
+ /**
30
+ * [Deprecated] Returns changes in block for given block height or hash over
31
+ * all transactions for all the types. Includes changes like account_touched,
32
+ * access_key_touched, data_touched, contract_code_touched. Consider using
33
+ * block_effects instead
34
+ */
155
35
  declare function experimentalChangesInBlock(client: NearRpcClient, params?: RpcStateChangesInBlockRequest): Promise<RpcStateChangesInBlockByTypeResponse>;
36
+ /**
37
+ * Queries the congestion level of a shard. More info about congestion
38
+ * [here](https://near.github.io/nearcore/architecture/how/receipt-congestion.html?highlight=congestion#receipt-congestion)
39
+ */
156
40
  declare function experimentalCongestionLevel(client: NearRpcClient, params?: RpcCongestionLevelRequest): Promise<RpcCongestionLevelResponse>;
41
+ /**
42
+ * [Deprecated] Get initial state and parameters for the genesis block.
43
+ * Consider genesis_config instead.
44
+ */
157
45
  declare function experimentalGenesisConfig(client: NearRpcClient, params?: GenesisConfigRequest): Promise<GenesisConfig>;
46
+ /** Returns the proofs for a transaction execution. */
158
47
  declare function experimentalLightClientBlockProof(client: NearRpcClient, params?: RpcLightClientBlockProofRequest): Promise<RpcLightClientBlockProofResponse>;
48
+ /** Returns the proofs for a transaction execution. */
159
49
  declare function experimentalLightClientProof(client: NearRpcClient, params?: RpcLightClientExecutionProofRequest): Promise<RpcLightClientExecutionProofResponse>;
50
+ /**
51
+ * [Deprecated] Returns the future windows for maintenance in current epoch
52
+ * for the specified account. In the maintenance windows, the node will not be
53
+ * block producer or chunk producer. Consider using maintenance_windows
54
+ * instead.
55
+ */
160
56
  declare function experimentalMaintenanceWindows(client: NearRpcClient, params?: RpcMaintenanceWindowsRequest): Promise<EXPERIMENTALMaintenanceWindowsResponse>;
57
+ /**
58
+ * A configuration that defines the protocol-level parameters such as
59
+ * gas/storage costs, limits, feature flags, other settings
60
+ */
161
61
  declare function experimentalProtocolConfig(client: NearRpcClient, params?: RpcProtocolConfigRequest): Promise<RpcProtocolConfigResponse>;
62
+ /** Fetches a receipt by its ID (as is, without a status or execution outcome) */
162
63
  declare function experimentalReceipt(client: NearRpcClient, params?: RpcReceiptRequest): Promise<RpcReceiptResponse>;
64
+ /**
65
+ * Contains the split storage information. More info on split storage
66
+ * [here](https://near-nodes.io/archival/split-storage-archival)
67
+ */
163
68
  declare function experimentalSplitStorageInfo(client: NearRpcClient, params?: RpcSplitStorageInfoRequest): Promise<RpcSplitStorageInfoResponse>;
69
+ /**
70
+ * Queries status of a transaction by hash, returning the final transaction
71
+ * result and details of all receipts.
72
+ */
164
73
  declare function experimentalTxStatus(client: NearRpcClient, params?: RpcTransactionStatusRequest): Promise<RpcTransactionResponse>;
74
+ /**
75
+ * Returns the current epoch validators ordered in the block producer order
76
+ * with repetition. This endpoint is solely used for bridge currently and is
77
+ * not intended for other external use cases.
78
+ */
165
79
  declare function experimentalValidatorsOrdered(client: NearRpcClient, params?: RpcValidatorsOrderedRequest): Promise<EXPERIMENTALValidatorsOrderedResponse>;
80
+ /** Returns block details for given height or hash */
166
81
  declare function block(client: NearRpcClient, params?: RpcBlockRequest): Promise<RpcBlockResponse>;
82
+ /**
83
+ * Returns changes in block for given block height or hash over all
84
+ * transactions for all the types. Includes changes like account_touched,
85
+ * access_key_touched, data_touched, contract_code_touched.
86
+ */
167
87
  declare function blockEffects(client: NearRpcClient, params?: RpcStateChangesInBlockRequest): Promise<RpcStateChangesInBlockByTypeResponse>;
88
+ /**
89
+ * [Deprecated] Sends a transaction and immediately returns transaction hash.
90
+ * Consider using send_tx instead.
91
+ */
168
92
  declare function broadcastTxAsync(client: NearRpcClient, params?: RpcSendTransactionRequest): Promise<CryptoHash>;
93
+ /**
94
+ * [Deprecated] Sends a transaction and waits until transaction is fully
95
+ * complete. (Has a 10 second timeout). Consider using send_tx instead.
96
+ */
169
97
  declare function broadcastTxCommit(client: NearRpcClient, params?: RpcSendTransactionRequest): Promise<RpcTransactionResponse>;
98
+ /**
99
+ * Returns changes for a given account, contract or contract code for given
100
+ * block height or hash.
101
+ */
170
102
  declare function changes(client: NearRpcClient, params?: RpcStateChangesInBlockByTypeRequest): Promise<RpcStateChangesInBlockResponse>;
103
+ /**
104
+ * Returns details of a specific chunk. You can run a block details query to
105
+ * get a valid chunk hash.
106
+ */
171
107
  declare function chunk(client: NearRpcClient, params?: RpcChunkRequest): Promise<RpcChunkResponse>;
108
+ /** Queries client node configuration */
172
109
  declare function clientConfig(client: NearRpcClient, params?: RpcClientConfigRequest): Promise<RpcClientConfigResponse>;
110
+ /**
111
+ * Returns gas price for a specific block_height or block_hash. Using [null]
112
+ * will return the most recent block's gas price.
113
+ */
173
114
  declare function gasPrice(client: NearRpcClient, params?: RpcGasPriceRequest): Promise<RpcGasPriceResponse>;
115
+ /** Get initial state and parameters for the genesis block */
174
116
  declare function genesisConfig(client: NearRpcClient, params?: GenesisConfigRequest): Promise<GenesisConfig>;
117
+ /** Returns the current health status of the RPC node the client connects to. */
175
118
  declare function health(client: NearRpcClient, params?: RpcHealthRequest): Promise<RpcHealthResponse>;
119
+ /** Returns the proofs for a transaction execution. */
176
120
  declare function lightClientProof(client: NearRpcClient, params?: RpcLightClientExecutionProofRequest): Promise<RpcLightClientExecutionProofResponse>;
121
+ /**
122
+ * Returns the future windows for maintenance in current epoch for the
123
+ * specified account. In the maintenance windows, the node will not be block
124
+ * producer or chunk producer.
125
+ */
177
126
  declare function maintenanceWindows(client: NearRpcClient, params?: RpcMaintenanceWindowsRequest): Promise<MaintenanceWindowsResponse>;
127
+ /**
128
+ * Queries the current state of node network connections. This includes
129
+ * information about active peers, transmitted data, known producers, etc.
130
+ */
178
131
  declare function networkInfo(client: NearRpcClient, params?: RpcNetworkInfoRequest): Promise<RpcNetworkInfoResponse>;
132
+ /** Returns the next light client block. */
179
133
  declare function nextLightClientBlock(client: NearRpcClient, params?: RpcLightClientNextBlockRequest): Promise<RpcLightClientNextBlockResponse>;
134
+ /**
135
+ * This module allows you to make generic requests to the network. The
136
+ * `RpcQueryRequest` struct takes in a
137
+ * [`BlockReference`](https://docs.rs/near-primitives/0.12.0/near_primitives/types/enum.BlockReference.html)
138
+ * and a
139
+ * [`QueryRequest`](https://docs.rs/near-primitives/0.12.0/near_primitives/views/enum.QueryRequest.html).
140
+ * The `BlockReference` enum allows you to specify a block by `Finality`,
141
+ * `BlockId` or `SyncCheckpoint`. The `QueryRequest` enum provides multiple
142
+ * variants for performing the following actions: - View an account's details
143
+ * - View a contract's code - View the state of an account - View the
144
+ * `AccessKey` of an account - View the `AccessKeyList` of an account - Call a
145
+ * function in a contract deployed on the network.
146
+ */
180
147
  declare function query(client: NearRpcClient, params?: RpcQueryRequest): Promise<RpcQueryResponse>;
148
+ /**
149
+ * Sends transaction. Returns the guaranteed execution status and the results
150
+ * the blockchain can provide at the moment.
151
+ */
181
152
  declare function sendTx(client: NearRpcClient, params?: RpcSendTransactionRequest): Promise<RpcTransactionResponse>;
153
+ /**
154
+ * Requests the status of the connected RPC node. This includes information
155
+ * about sync status, nearcore node version, protocol version, the current set
156
+ * of validators, etc.
157
+ */
182
158
  declare function status(client: NearRpcClient, params?: RpcStatusRequest): Promise<RpcStatusResponse>;
159
+ /**
160
+ * Queries status of a transaction by hash and returns the final transaction
161
+ * result.
162
+ */
183
163
  declare function tx(client: NearRpcClient, params?: RpcTransactionStatusRequest): Promise<RpcTransactionResponse>;
164
+ /**
165
+ * Queries active validators on the network. Returns details and the state of
166
+ * validation on the blockchain.
167
+ */
184
168
  declare function validators(client: NearRpcClient, params?: RpcValidatorRequest): Promise<RpcValidatorResponse>;
185
169
 
186
- declare function viewAccount(client: NearRpcClient, params: {
187
- accountId: string;
188
- finality?: 'final' | 'near-final' | 'optimistic';
189
- blockId?: string | number;
190
- }): Promise<AccountView>;
191
- declare function viewFunction(client: NearRpcClient, params: {
192
- accountId: string;
193
- methodName: string;
194
- argsBase64?: string;
195
- finality?: 'final' | 'near-final' | 'optimistic';
196
- blockId?: string | number;
197
- }): Promise<CallResult>;
198
- declare function viewAccessKey(client: NearRpcClient, params: {
199
- accountId: string;
200
- publicKey: string;
201
- finality?: 'final' | 'near-final' | 'optimistic';
202
- blockId?: string | number;
203
- }): Promise<AccessKeyView>;
204
-
205
- export { type ClientConfig, type CompleteClientInterface, type ConvenienceMethods, type DynamicRpcMethods, JsonRpcClientError, type JsonRpcError, JsonRpcNetworkError, type JsonRpcRequest, type JsonRpcResponse, NearRpcClient, NearRpcError, type RpcError, type RpcRequest, type RpcResponse, block, blockEffects, broadcastTxAsync, broadcastTxCommit, changes, chunk, clientConfig, NearRpcClient as default, defaultClient, enableValidation, experimentalChanges, experimentalChangesInBlock, experimentalCongestionLevel, experimentalGenesisConfig, experimentalLightClientBlockProof, experimentalLightClientProof, experimentalMaintenanceWindows, experimentalProtocolConfig, experimentalReceipt, experimentalSplitStorageInfo, experimentalTxStatus, experimentalValidatorsOrdered, gasPrice, genesisConfig, health, lightClientProof, maintenanceWindows, networkInfo, nextLightClientBlock, query, sendTx, status, tx, validators, viewAccessKey, viewAccount, viewFunction };
170
+ export { NearRpcClient, block, blockEffects, broadcastTxAsync, broadcastTxCommit, changes, chunk, clientConfig, NearRpcClient as default, experimentalChanges, experimentalChangesInBlock, experimentalCongestionLevel, experimentalGenesisConfig, experimentalLightClientBlockProof, experimentalLightClientProof, experimentalMaintenanceWindows, experimentalProtocolConfig, experimentalReceipt, experimentalSplitStorageInfo, experimentalTxStatus, experimentalValidatorsOrdered, gasPrice, genesisConfig, health, lightClientProof, maintenanceWindows, networkInfo, nextLightClientBlock, query, sendTx, status, tx, validators, viewAccessKey, viewAccount, viewFunction };
package/dist/index.d.ts CHANGED
@@ -2,9 +2,9 @@ export * from './client';
2
2
  export * from './types';
3
3
  export { NearRpcClient, defaultClient } from './client';
4
4
  export type { DynamicRpcMethods, ConvenienceMethods, CompleteClientInterface, } from './generated-types';
5
- export { JsonRpcRequestSchema, JsonRpcResponseSchema, } from '@near-js/jsonrpc-types';
6
- export { RPC_METHODS } from '@near-js/jsonrpc-types';
7
- export * from './generated-functions';
5
+ export { JsonRpcRequestSchema, JsonRpcResponseSchema, } from '@psalomo/jsonrpc-types';
6
+ export { RPC_METHODS } from '@psalomo/jsonrpc-types';
7
+ export * from './validated/index.js';
8
8
  export { enableValidation } from './validation.js';
9
9
  export { NearRpcClient as default } from './client';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGxD,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGrD,cAAc,uBAAuB,CAAC;AAGtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGxD,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGrD,cAAc,sBAAsB,CAAC;AAGrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,UAAU,CAAC"}