@psalomo/jsonrpc-client 1.2.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/browser-standalone.js +230 -33
- package/dist/{convenience-DFvZCHOk.d.mts → convenience-5WSFl5pu.d.mts} +228 -0
- package/dist/{convenience-DFvZCHOk.d.ts → convenience-5WSFl5pu.d.ts} +228 -0
- package/dist/generated-types.d.ts +228 -0
- package/dist/generated-types.d.ts.map +1 -1
- package/dist/index.d.mts +116 -2
- package/dist/no-validation/index.d.mts +1 -1
- package/dist/validated/index.d.ts +114 -0
- package/dist/validated/index.d.ts.map +1 -1
- package/package.json +2 -2
@@ -1,36 +1,150 @@
|
|
1
1
|
import type { AccessKeyView, AccountView, CallResult, CryptoHash, EXPERIMENTALMaintenanceWindowsResponse, EXPERIMENTALValidatorsOrderedResponse, GenesisConfig, GenesisConfigRequest, MaintenanceWindowsResponse, RpcBlockRequest, RpcBlockResponse, RpcChunkRequest, RpcChunkResponse, RpcClientConfigRequest, RpcClientConfigResponse, RpcCongestionLevelRequest, RpcCongestionLevelResponse, RpcGasPriceRequest, RpcGasPriceResponse, RpcHealthRequest, RpcHealthResponse, RpcLightClientBlockProofRequest, RpcLightClientBlockProofResponse, RpcLightClientExecutionProofRequest, RpcLightClientExecutionProofResponse, RpcLightClientNextBlockRequest, RpcLightClientNextBlockResponse, RpcMaintenanceWindowsRequest, RpcNetworkInfoRequest, RpcNetworkInfoResponse, RpcProtocolConfigRequest, RpcProtocolConfigResponse, RpcQueryRequest, RpcQueryResponse, RpcReceiptRequest, RpcReceiptResponse, RpcSendTransactionRequest, RpcSplitStorageInfoRequest, RpcSplitStorageInfoResponse, RpcStateChangesInBlockByTypeRequest, RpcStateChangesInBlockByTypeResponse, RpcStateChangesInBlockRequest, RpcStateChangesInBlockResponse, RpcStatusRequest, RpcStatusResponse, RpcTransactionResponse, RpcTransactionStatusRequest, RpcValidatorRequest, RpcValidatorResponse, RpcValidatorsOrderedRequest } from '@psalomo/jsonrpc-types';
|
2
2
|
import type { NearRpcClient } from './client';
|
3
3
|
export interface DynamicRpcMethods {
|
4
|
+
/**
|
5
|
+
* [Deprecated] Returns changes for a given account, contract or contract code
|
6
|
+
* for given block height or hash. Consider using changes instead.
|
7
|
+
*/
|
4
8
|
experimentalChanges(params?: RpcStateChangesInBlockByTypeRequest): Promise<RpcStateChangesInBlockResponse>;
|
9
|
+
/**
|
10
|
+
* [Deprecated] Returns changes in block for given block height or hash over
|
11
|
+
* all transactions for all the types. Includes changes like account_touched,
|
12
|
+
* access_key_touched, data_touched, contract_code_touched. Consider using
|
13
|
+
* block_effects instead
|
14
|
+
*/
|
5
15
|
experimentalChangesInBlock(params?: RpcStateChangesInBlockRequest): Promise<RpcStateChangesInBlockByTypeResponse>;
|
16
|
+
/**
|
17
|
+
* Queries the congestion level of a shard. More info about congestion
|
18
|
+
* [here](https://near.github.io/nearcore/architecture/how/receipt-congestion.html?highlight=congestion#receipt-congestion)
|
19
|
+
*/
|
6
20
|
experimentalCongestionLevel(params?: RpcCongestionLevelRequest): Promise<RpcCongestionLevelResponse>;
|
21
|
+
/**
|
22
|
+
* [Deprecated] Get initial state and parameters for the genesis block.
|
23
|
+
* Consider genesis_config instead.
|
24
|
+
*/
|
7
25
|
experimentalGenesisConfig(params?: GenesisConfigRequest): Promise<GenesisConfig>;
|
26
|
+
/** Returns the proofs for a transaction execution. */
|
8
27
|
experimentalLightClientBlockProof(params?: RpcLightClientBlockProofRequest): Promise<RpcLightClientBlockProofResponse>;
|
28
|
+
/** Returns the proofs for a transaction execution. */
|
9
29
|
experimentalLightClientProof(params?: RpcLightClientExecutionProofRequest): Promise<RpcLightClientExecutionProofResponse>;
|
30
|
+
/**
|
31
|
+
* [Deprecated] Returns the future windows for maintenance in current epoch
|
32
|
+
* for the specified account. In the maintenance windows, the node will not be
|
33
|
+
* block producer or chunk producer. Consider using maintenance_windows
|
34
|
+
* instead.
|
35
|
+
*/
|
10
36
|
experimentalMaintenanceWindows(params?: RpcMaintenanceWindowsRequest): Promise<EXPERIMENTALMaintenanceWindowsResponse>;
|
37
|
+
/**
|
38
|
+
* A configuration that defines the protocol-level parameters such as
|
39
|
+
* gas/storage costs, limits, feature flags, other settings
|
40
|
+
*/
|
11
41
|
experimentalProtocolConfig(params?: RpcProtocolConfigRequest): Promise<RpcProtocolConfigResponse>;
|
42
|
+
/** Fetches a receipt by its ID (as is, without a status or execution outcome) */
|
12
43
|
experimentalReceipt(params?: RpcReceiptRequest): Promise<RpcReceiptResponse>;
|
44
|
+
/**
|
45
|
+
* Contains the split storage information. More info on split storage
|
46
|
+
* [here](https://near-nodes.io/archival/split-storage-archival)
|
47
|
+
*/
|
13
48
|
experimentalSplitStorageInfo(params?: RpcSplitStorageInfoRequest): Promise<RpcSplitStorageInfoResponse>;
|
49
|
+
/**
|
50
|
+
* Queries status of a transaction by hash, returning the final transaction
|
51
|
+
* result and details of all receipts.
|
52
|
+
*/
|
14
53
|
experimentalTxStatus(params?: RpcTransactionStatusRequest): Promise<RpcTransactionResponse>;
|
54
|
+
/**
|
55
|
+
* Returns the current epoch validators ordered in the block producer order
|
56
|
+
* with repetition. This endpoint is solely used for bridge currently and is
|
57
|
+
* not intended for other external use cases.
|
58
|
+
*/
|
15
59
|
experimentalValidatorsOrdered(params?: RpcValidatorsOrderedRequest): Promise<EXPERIMENTALValidatorsOrderedResponse>;
|
60
|
+
/** Returns block details for given height or hash */
|
16
61
|
block(params?: RpcBlockRequest): Promise<RpcBlockResponse>;
|
62
|
+
/**
|
63
|
+
* Returns changes in block for given block height or hash over all
|
64
|
+
* transactions for all the types. Includes changes like account_touched,
|
65
|
+
* access_key_touched, data_touched, contract_code_touched.
|
66
|
+
*/
|
17
67
|
blockEffects(params?: RpcStateChangesInBlockRequest): Promise<RpcStateChangesInBlockByTypeResponse>;
|
68
|
+
/**
|
69
|
+
* [Deprecated] Sends a transaction and immediately returns transaction hash.
|
70
|
+
* Consider using send_tx instead.
|
71
|
+
*/
|
18
72
|
broadcastTxAsync(params?: RpcSendTransactionRequest): Promise<CryptoHash>;
|
73
|
+
/**
|
74
|
+
* [Deprecated] Sends a transaction and waits until transaction is fully
|
75
|
+
* complete. (Has a 10 second timeout). Consider using send_tx instead.
|
76
|
+
*/
|
19
77
|
broadcastTxCommit(params?: RpcSendTransactionRequest): Promise<RpcTransactionResponse>;
|
78
|
+
/**
|
79
|
+
* Returns changes for a given account, contract or contract code for given
|
80
|
+
* block height or hash.
|
81
|
+
*/
|
20
82
|
changes(params?: RpcStateChangesInBlockByTypeRequest): Promise<RpcStateChangesInBlockResponse>;
|
83
|
+
/**
|
84
|
+
* Returns details of a specific chunk. You can run a block details query to
|
85
|
+
* get a valid chunk hash.
|
86
|
+
*/
|
21
87
|
chunk(params?: RpcChunkRequest): Promise<RpcChunkResponse>;
|
88
|
+
/** Queries client node configuration */
|
22
89
|
clientConfig(params?: RpcClientConfigRequest): Promise<RpcClientConfigResponse>;
|
90
|
+
/**
|
91
|
+
* Returns gas price for a specific block_height or block_hash. Using [null]
|
92
|
+
* will return the most recent block's gas price.
|
93
|
+
*/
|
23
94
|
gasPrice(params?: RpcGasPriceRequest): Promise<RpcGasPriceResponse>;
|
95
|
+
/** Get initial state and parameters for the genesis block */
|
24
96
|
genesisConfig(params?: GenesisConfigRequest): Promise<GenesisConfig>;
|
97
|
+
/** Returns the current health status of the RPC node the client connects to. */
|
25
98
|
health(params?: RpcHealthRequest): Promise<RpcHealthResponse>;
|
99
|
+
/** Returns the proofs for a transaction execution. */
|
26
100
|
lightClientProof(params?: RpcLightClientExecutionProofRequest): Promise<RpcLightClientExecutionProofResponse>;
|
101
|
+
/**
|
102
|
+
* Returns the future windows for maintenance in current epoch for the
|
103
|
+
* specified account. In the maintenance windows, the node will not be block
|
104
|
+
* producer or chunk producer.
|
105
|
+
*/
|
27
106
|
maintenanceWindows(params?: RpcMaintenanceWindowsRequest): Promise<MaintenanceWindowsResponse>;
|
107
|
+
/**
|
108
|
+
* Queries the current state of node network connections. This includes
|
109
|
+
* information about active peers, transmitted data, known producers, etc.
|
110
|
+
*/
|
28
111
|
networkInfo(params?: RpcNetworkInfoRequest): Promise<RpcNetworkInfoResponse>;
|
112
|
+
/** Returns the next light client block. */
|
29
113
|
nextLightClientBlock(params?: RpcLightClientNextBlockRequest): Promise<RpcLightClientNextBlockResponse>;
|
114
|
+
/**
|
115
|
+
* This module allows you to make generic requests to the network. The
|
116
|
+
* `RpcQueryRequest` struct takes in a
|
117
|
+
* [`BlockReference`](https://docs.rs/near-primitives/0.12.0/near_primitives/types/enum.BlockReference.html)
|
118
|
+
* and a
|
119
|
+
* [`QueryRequest`](https://docs.rs/near-primitives/0.12.0/near_primitives/views/enum.QueryRequest.html).
|
120
|
+
* The `BlockReference` enum allows you to specify a block by `Finality`,
|
121
|
+
* `BlockId` or `SyncCheckpoint`. The `QueryRequest` enum provides multiple
|
122
|
+
* variants for performing the following actions: - View an account's details
|
123
|
+
* - View a contract's code - View the state of an account - View the
|
124
|
+
* `AccessKey` of an account - View the `AccessKeyList` of an account - Call a
|
125
|
+
* function in a contract deployed on the network.
|
126
|
+
*/
|
30
127
|
query(params?: RpcQueryRequest): Promise<RpcQueryResponse>;
|
128
|
+
/**
|
129
|
+
* Sends transaction. Returns the guaranteed execution status and the results
|
130
|
+
* the blockchain can provide at the moment.
|
131
|
+
*/
|
31
132
|
sendTx(params?: RpcSendTransactionRequest): Promise<RpcTransactionResponse>;
|
133
|
+
/**
|
134
|
+
* Requests the status of the connected RPC node. This includes information
|
135
|
+
* about sync status, nearcore node version, protocol version, the current set
|
136
|
+
* of validators, etc.
|
137
|
+
*/
|
32
138
|
status(params?: RpcStatusRequest): Promise<RpcStatusResponse>;
|
139
|
+
/**
|
140
|
+
* Queries status of a transaction by hash and returns the final transaction
|
141
|
+
* result.
|
142
|
+
*/
|
33
143
|
tx(params?: RpcTransactionStatusRequest): Promise<RpcTransactionResponse>;
|
144
|
+
/**
|
145
|
+
* Queries active validators on the network. Returns details and the state of
|
146
|
+
* validation on the blockchain.
|
147
|
+
*/
|
34
148
|
validators(params?: RpcValidatorRequest): Promise<RpcValidatorResponse>;
|
35
149
|
}
|
36
150
|
export interface ConvenienceMethods {
|
@@ -56,35 +170,149 @@ export interface ConvenienceMethods {
|
|
56
170
|
export interface CompleteClientInterface extends DynamicRpcMethods, ConvenienceMethods {
|
57
171
|
call<TParams = unknown, TResult = unknown>(method: string, params?: TParams): Promise<TResult>;
|
58
172
|
}
|
173
|
+
/**
|
174
|
+
* [Deprecated] Returns changes for a given account, contract or contract code
|
175
|
+
* for given block height or hash. Consider using changes instead.
|
176
|
+
*/
|
59
177
|
export declare function experimentalChanges(client: NearRpcClient, params?: RpcStateChangesInBlockByTypeRequest): Promise<RpcStateChangesInBlockResponse>;
|
178
|
+
/**
|
179
|
+
* [Deprecated] Returns changes in block for given block height or hash over
|
180
|
+
* all transactions for all the types. Includes changes like account_touched,
|
181
|
+
* access_key_touched, data_touched, contract_code_touched. Consider using
|
182
|
+
* block_effects instead
|
183
|
+
*/
|
60
184
|
export declare function experimentalChangesInBlock(client: NearRpcClient, params?: RpcStateChangesInBlockRequest): Promise<RpcStateChangesInBlockByTypeResponse>;
|
185
|
+
/**
|
186
|
+
* Queries the congestion level of a shard. More info about congestion
|
187
|
+
* [here](https://near.github.io/nearcore/architecture/how/receipt-congestion.html?highlight=congestion#receipt-congestion)
|
188
|
+
*/
|
61
189
|
export declare function experimentalCongestionLevel(client: NearRpcClient, params?: RpcCongestionLevelRequest): Promise<RpcCongestionLevelResponse>;
|
190
|
+
/**
|
191
|
+
* [Deprecated] Get initial state and parameters for the genesis block.
|
192
|
+
* Consider genesis_config instead.
|
193
|
+
*/
|
62
194
|
export declare function experimentalGenesisConfig(client: NearRpcClient, params?: GenesisConfigRequest): Promise<GenesisConfig>;
|
195
|
+
/** Returns the proofs for a transaction execution. */
|
63
196
|
export declare function experimentalLightClientBlockProof(client: NearRpcClient, params?: RpcLightClientBlockProofRequest): Promise<RpcLightClientBlockProofResponse>;
|
197
|
+
/** Returns the proofs for a transaction execution. */
|
64
198
|
export declare function experimentalLightClientProof(client: NearRpcClient, params?: RpcLightClientExecutionProofRequest): Promise<RpcLightClientExecutionProofResponse>;
|
199
|
+
/**
|
200
|
+
* [Deprecated] Returns the future windows for maintenance in current epoch
|
201
|
+
* for the specified account. In the maintenance windows, the node will not be
|
202
|
+
* block producer or chunk producer. Consider using maintenance_windows
|
203
|
+
* instead.
|
204
|
+
*/
|
65
205
|
export declare function experimentalMaintenanceWindows(client: NearRpcClient, params?: RpcMaintenanceWindowsRequest): Promise<EXPERIMENTALMaintenanceWindowsResponse>;
|
206
|
+
/**
|
207
|
+
* A configuration that defines the protocol-level parameters such as
|
208
|
+
* gas/storage costs, limits, feature flags, other settings
|
209
|
+
*/
|
66
210
|
export declare function experimentalProtocolConfig(client: NearRpcClient, params?: RpcProtocolConfigRequest): Promise<RpcProtocolConfigResponse>;
|
211
|
+
/** Fetches a receipt by its ID (as is, without a status or execution outcome) */
|
67
212
|
export declare function experimentalReceipt(client: NearRpcClient, params?: RpcReceiptRequest): Promise<RpcReceiptResponse>;
|
213
|
+
/**
|
214
|
+
* Contains the split storage information. More info on split storage
|
215
|
+
* [here](https://near-nodes.io/archival/split-storage-archival)
|
216
|
+
*/
|
68
217
|
export declare function experimentalSplitStorageInfo(client: NearRpcClient, params?: RpcSplitStorageInfoRequest): Promise<RpcSplitStorageInfoResponse>;
|
218
|
+
/**
|
219
|
+
* Queries status of a transaction by hash, returning the final transaction
|
220
|
+
* result and details of all receipts.
|
221
|
+
*/
|
69
222
|
export declare function experimentalTxStatus(client: NearRpcClient, params?: RpcTransactionStatusRequest): Promise<RpcTransactionResponse>;
|
223
|
+
/**
|
224
|
+
* Returns the current epoch validators ordered in the block producer order
|
225
|
+
* with repetition. This endpoint is solely used for bridge currently and is
|
226
|
+
* not intended for other external use cases.
|
227
|
+
*/
|
70
228
|
export declare function experimentalValidatorsOrdered(client: NearRpcClient, params?: RpcValidatorsOrderedRequest): Promise<EXPERIMENTALValidatorsOrderedResponse>;
|
229
|
+
/** Returns block details for given height or hash */
|
71
230
|
export declare function block(client: NearRpcClient, params?: RpcBlockRequest): Promise<RpcBlockResponse>;
|
231
|
+
/**
|
232
|
+
* Returns changes in block for given block height or hash over all
|
233
|
+
* transactions for all the types. Includes changes like account_touched,
|
234
|
+
* access_key_touched, data_touched, contract_code_touched.
|
235
|
+
*/
|
72
236
|
export declare function blockEffects(client: NearRpcClient, params?: RpcStateChangesInBlockRequest): Promise<RpcStateChangesInBlockByTypeResponse>;
|
237
|
+
/**
|
238
|
+
* [Deprecated] Sends a transaction and immediately returns transaction hash.
|
239
|
+
* Consider using send_tx instead.
|
240
|
+
*/
|
73
241
|
export declare function broadcastTxAsync(client: NearRpcClient, params?: RpcSendTransactionRequest): Promise<CryptoHash>;
|
242
|
+
/**
|
243
|
+
* [Deprecated] Sends a transaction and waits until transaction is fully
|
244
|
+
* complete. (Has a 10 second timeout). Consider using send_tx instead.
|
245
|
+
*/
|
74
246
|
export declare function broadcastTxCommit(client: NearRpcClient, params?: RpcSendTransactionRequest): Promise<RpcTransactionResponse>;
|
247
|
+
/**
|
248
|
+
* Returns changes for a given account, contract or contract code for given
|
249
|
+
* block height or hash.
|
250
|
+
*/
|
75
251
|
export declare function changes(client: NearRpcClient, params?: RpcStateChangesInBlockByTypeRequest): Promise<RpcStateChangesInBlockResponse>;
|
252
|
+
/**
|
253
|
+
* Returns details of a specific chunk. You can run a block details query to
|
254
|
+
* get a valid chunk hash.
|
255
|
+
*/
|
76
256
|
export declare function chunk(client: NearRpcClient, params?: RpcChunkRequest): Promise<RpcChunkResponse>;
|
257
|
+
/** Queries client node configuration */
|
77
258
|
export declare function clientConfig(client: NearRpcClient, params?: RpcClientConfigRequest): Promise<RpcClientConfigResponse>;
|
259
|
+
/**
|
260
|
+
* Returns gas price for a specific block_height or block_hash. Using [null]
|
261
|
+
* will return the most recent block's gas price.
|
262
|
+
*/
|
78
263
|
export declare function gasPrice(client: NearRpcClient, params?: RpcGasPriceRequest): Promise<RpcGasPriceResponse>;
|
264
|
+
/** Get initial state and parameters for the genesis block */
|
79
265
|
export declare function genesisConfig(client: NearRpcClient, params?: GenesisConfigRequest): Promise<GenesisConfig>;
|
266
|
+
/** Returns the current health status of the RPC node the client connects to. */
|
80
267
|
export declare function health(client: NearRpcClient, params?: RpcHealthRequest): Promise<RpcHealthResponse>;
|
268
|
+
/** Returns the proofs for a transaction execution. */
|
81
269
|
export declare function lightClientProof(client: NearRpcClient, params?: RpcLightClientExecutionProofRequest): Promise<RpcLightClientExecutionProofResponse>;
|
270
|
+
/**
|
271
|
+
* Returns the future windows for maintenance in current epoch for the
|
272
|
+
* specified account. In the maintenance windows, the node will not be block
|
273
|
+
* producer or chunk producer.
|
274
|
+
*/
|
82
275
|
export declare function maintenanceWindows(client: NearRpcClient, params?: RpcMaintenanceWindowsRequest): Promise<MaintenanceWindowsResponse>;
|
276
|
+
/**
|
277
|
+
* Queries the current state of node network connections. This includes
|
278
|
+
* information about active peers, transmitted data, known producers, etc.
|
279
|
+
*/
|
83
280
|
export declare function networkInfo(client: NearRpcClient, params?: RpcNetworkInfoRequest): Promise<RpcNetworkInfoResponse>;
|
281
|
+
/** Returns the next light client block. */
|
84
282
|
export declare function nextLightClientBlock(client: NearRpcClient, params?: RpcLightClientNextBlockRequest): Promise<RpcLightClientNextBlockResponse>;
|
283
|
+
/**
|
284
|
+
* This module allows you to make generic requests to the network. The
|
285
|
+
* `RpcQueryRequest` struct takes in a
|
286
|
+
* [`BlockReference`](https://docs.rs/near-primitives/0.12.0/near_primitives/types/enum.BlockReference.html)
|
287
|
+
* and a
|
288
|
+
* [`QueryRequest`](https://docs.rs/near-primitives/0.12.0/near_primitives/views/enum.QueryRequest.html).
|
289
|
+
* The `BlockReference` enum allows you to specify a block by `Finality`,
|
290
|
+
* `BlockId` or `SyncCheckpoint`. The `QueryRequest` enum provides multiple
|
291
|
+
* variants for performing the following actions: - View an account's details
|
292
|
+
* - View a contract's code - View the state of an account - View the
|
293
|
+
* `AccessKey` of an account - View the `AccessKeyList` of an account - Call a
|
294
|
+
* function in a contract deployed on the network.
|
295
|
+
*/
|
85
296
|
export declare function query(client: NearRpcClient, params?: RpcQueryRequest): Promise<RpcQueryResponse>;
|
297
|
+
/**
|
298
|
+
* Sends transaction. Returns the guaranteed execution status and the results
|
299
|
+
* the blockchain can provide at the moment.
|
300
|
+
*/
|
86
301
|
export declare function sendTx(client: NearRpcClient, params?: RpcSendTransactionRequest): Promise<RpcTransactionResponse>;
|
302
|
+
/**
|
303
|
+
* Requests the status of the connected RPC node. This includes information
|
304
|
+
* about sync status, nearcore node version, protocol version, the current set
|
305
|
+
* of validators, etc.
|
306
|
+
*/
|
87
307
|
export declare function status(client: NearRpcClient, params?: RpcStatusRequest): Promise<RpcStatusResponse>;
|
308
|
+
/**
|
309
|
+
* Queries status of a transaction by hash and returns the final transaction
|
310
|
+
* result.
|
311
|
+
*/
|
88
312
|
export declare function tx(client: NearRpcClient, params?: RpcTransactionStatusRequest): Promise<RpcTransactionResponse>;
|
313
|
+
/**
|
314
|
+
* Queries active validators on the network. Returns details and the state of
|
315
|
+
* validation on the blockchain.
|
316
|
+
*/
|
89
317
|
export declare function validators(client: NearRpcClient, params?: RpcValidatorRequest): Promise<RpcValidatorResponse>;
|
90
318
|
//# sourceMappingURL=generated-types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generated-types.d.ts","sourceRoot":"","sources":["../src/generated-types.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,UAAU,EACV,UAAU,EACV,sCAAsC,EACtC,qCAAqC,EACrC,aAAa,EACb,oBAAoB,EACpB,0BAA0B,EAC1B,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,EAClB,mBAA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CAAC,UAAU,CAAC,CAAC;IAExB,aAAa,CAAC,MAAM,EAAE;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,OAAO,GAAG,YAAY,GAAG,YAAY,CAAC;QACjD,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KAC3B,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CAC5B;AAGD,MAAM,WAAW,uBACf,SAAQ,iBAAiB,EACvB,kBAAkB;IAEpB,IAAI,CAAC,OAAO,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EACvC,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,OAAO,CAAC,CAAC;CACrB;
|
1
|
+
{"version":3,"file":"generated-types.d.ts","sourceRoot":"","sources":["../src/generated-types.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,UAAU,EACV,UAAU,EACV,sCAAsC,EACtC,qCAAqC,EACrC,aAAa,EACb,oBAAoB,EACpB,0BAA0B,EAC1B,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,+BAA+B,EAC/B,gCAAgC,EAChC,mCAAmC,EACnC,oCAAoC,EACpC,8BAA8B,EAC9B,+BAA+B,EAC/B,4BAA4B,EAC5B,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,mCAAmC,EACnC,oCAAoC,EACpC,6BAA6B,EAC7B,8BAA8B,EAC9B,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,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WAAW,CAC/B,MAAM,EAAE,aAAa,EACrB,MAAM,CAAC,EAAE,qBAAqB,GAC7B,OAAO,CAAC,sBAAsB,CAAC,CAEjC;AAED,2CAA2C;AAC3C,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,aAAa,EACrB,MAAM,CAAC,EAAE,8BAA8B,GACtC,OAAO,CAAC,+BAA+B,CAAC,CAE1C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,KAAK,CACzB,MAAM,EAAE,aAAa,EACrB,MAAM,CAAC,EAAE,eAAe,GACvB,OAAO,CAAC,gBAAgB,CAAC,CAE3B;AAED;;;GAGG;AACH,wBAAsB,MAAM,CAC1B,MAAM,EAAE,aAAa,EACrB,MAAM,CAAC,EAAE,yBAAyB,GACjC,OAAO,CAAC,sBAAsB,CAAC,CAEjC;AAED;;;;GAIG;AACH,wBAAsB,MAAM,CAC1B,MAAM,EAAE,aAAa,EACrB,MAAM,CAAC,EAAE,gBAAgB,GACxB,OAAO,CAAC,iBAAiB,CAAC,CAE5B;AAED;;;GAGG;AACH,wBAAsB,EAAE,CACtB,MAAM,EAAE,aAAa,EACrB,MAAM,CAAC,EAAE,2BAA2B,GACnC,OAAO,CAAC,sBAAsB,CAAC,CAEjC;AAED;;;GAGG;AACH,wBAAsB,UAAU,CAC9B,MAAM,EAAE,aAAa,EACrB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,oBAAoB,CAAC,CAE/B"}
|
package/dist/index.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { N as NearRpcClient } from './convenience-
|
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-
|
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
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
4
|
export { JsonRpcRequestSchema, JsonRpcResponseSchema, RPC_METHODS } from '@psalomo/jsonrpc-types';
|
5
5
|
|
@@ -21,36 +21,150 @@ declare function viewAccessKey(client: NearRpcClient, params: {
|
|
21
21
|
finality?: 'final' | 'near-final' | 'optimistic';
|
22
22
|
blockId?: string | number;
|
23
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
|
+
*/
|
24
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
|
+
*/
|
25
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
|
+
*/
|
26
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
|
+
*/
|
27
45
|
declare function experimentalGenesisConfig(client: NearRpcClient, params?: GenesisConfigRequest): Promise<GenesisConfig>;
|
46
|
+
/** Returns the proofs for a transaction execution. */
|
28
47
|
declare function experimentalLightClientBlockProof(client: NearRpcClient, params?: RpcLightClientBlockProofRequest): Promise<RpcLightClientBlockProofResponse>;
|
48
|
+
/** Returns the proofs for a transaction execution. */
|
29
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
|
+
*/
|
30
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
|
+
*/
|
31
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) */
|
32
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
|
+
*/
|
33
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
|
+
*/
|
34
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
|
+
*/
|
35
79
|
declare function experimentalValidatorsOrdered(client: NearRpcClient, params?: RpcValidatorsOrderedRequest): Promise<EXPERIMENTALValidatorsOrderedResponse>;
|
80
|
+
/** Returns block details for given height or hash */
|
36
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
|
+
*/
|
37
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
|
+
*/
|
38
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
|
+
*/
|
39
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
|
+
*/
|
40
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
|
+
*/
|
41
107
|
declare function chunk(client: NearRpcClient, params?: RpcChunkRequest): Promise<RpcChunkResponse>;
|
108
|
+
/** Queries client node configuration */
|
42
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
|
+
*/
|
43
114
|
declare function gasPrice(client: NearRpcClient, params?: RpcGasPriceRequest): Promise<RpcGasPriceResponse>;
|
115
|
+
/** Get initial state and parameters for the genesis block */
|
44
116
|
declare function genesisConfig(client: NearRpcClient, params?: GenesisConfigRequest): Promise<GenesisConfig>;
|
117
|
+
/** Returns the current health status of the RPC node the client connects to. */
|
45
118
|
declare function health(client: NearRpcClient, params?: RpcHealthRequest): Promise<RpcHealthResponse>;
|
119
|
+
/** Returns the proofs for a transaction execution. */
|
46
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
|
+
*/
|
47
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
|
+
*/
|
48
131
|
declare function networkInfo(client: NearRpcClient, params?: RpcNetworkInfoRequest): Promise<RpcNetworkInfoResponse>;
|
132
|
+
/** Returns the next light client block. */
|
49
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
|
+
*/
|
50
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
|
+
*/
|
51
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
|
+
*/
|
52
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
|
+
*/
|
53
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
|
+
*/
|
54
168
|
declare function validators(client: NearRpcClient, params?: RpcValidatorRequest): Promise<RpcValidatorResponse>;
|
55
169
|
|
56
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 };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { a as CompleteClientInterface, C as ConvenienceMethods, D as DynamicRpcMethods, N as NearRpcClient, k as NearRpcError, j as RpcError, R as RpcRequest, i as RpcResponse, z as block, A as blockEffects, B as broadcastTxAsync, E as broadcastTxCommit, F as changes, G as chunk, H as clientConfig, d as defaultClient, l as experimentalChanges, m as experimentalChangesInBlock, n as experimentalCongestionLevel, o as experimentalGenesisConfig, q as experimentalLightClientBlockProof, r as experimentalLightClientProof, s as experimentalMaintenanceWindows, t as experimentalProtocolConfig, u as experimentalReceipt, w as experimentalSplitStorageInfo, x as experimentalTxStatus, y as experimentalValidatorsOrdered, I as gasPrice, K as genesisConfig, L as health, M as lightClientProof, O as maintenanceWindows, P as networkInfo, Q as nextLightClientBlock, p as parseCallResultToJson, S as query, T as sendTx, U as status, V as tx, W as validators, Z as viewAccessKey, X as viewAccount, Y as viewFunction, v as viewFunctionAsJson } from '../convenience-
|
1
|
+
export { a as CompleteClientInterface, C as ConvenienceMethods, D as DynamicRpcMethods, N as NearRpcClient, k as NearRpcError, j as RpcError, R as RpcRequest, i as RpcResponse, z as block, A as blockEffects, B as broadcastTxAsync, E as broadcastTxCommit, F as changes, G as chunk, H as clientConfig, d as defaultClient, l as experimentalChanges, m as experimentalChangesInBlock, n as experimentalCongestionLevel, o as experimentalGenesisConfig, q as experimentalLightClientBlockProof, r as experimentalLightClientProof, s as experimentalMaintenanceWindows, t as experimentalProtocolConfig, u as experimentalReceipt, w as experimentalSplitStorageInfo, x as experimentalTxStatus, y as experimentalValidatorsOrdered, I as gasPrice, K as genesisConfig, L as health, M as lightClientProof, O as maintenanceWindows, P as networkInfo, Q as nextLightClientBlock, p as parseCallResultToJson, S as query, T as sendTx, U as status, V as tx, W as validators, Z as viewAccessKey, X as viewAccount, Y as viewFunction, v as viewFunctionAsJson } from '../convenience-5WSFl5pu.mjs';
|
2
2
|
export { JsonRpcRequestSchema, JsonRpcResponseSchema, RPC_METHODS } from '@psalomo/jsonrpc-types';
|
3
3
|
|
4
4
|
declare function enableValidation(): void;
|