@psalomo/jsonrpc-client 0.2.0 → 0.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.
@@ -14088,6 +14088,12 @@ var BroadcastTxCommitRequestSchema = external_exports.lazy(
14088
14088
  var BroadcastTxCommitResponseSchema = external_exports.lazy(
14089
14089
  () => JsonRpcResponseFor_RpcTransactionResponseAnd_RpcErrorSchema
14090
14090
  );
14091
+ var ChangesRequestSchema = external_exports.lazy(
14092
+ () => JsonRpcRequestForChangesSchema
14093
+ );
14094
+ var ChangesResponseSchema = external_exports.lazy(
14095
+ () => JsonRpcResponseFor_RpcStateChangesInBlockResponseAnd_RpcErrorSchema
14096
+ );
14091
14097
  var ChunkRequestSchema = external_exports.lazy(() => JsonRpcRequestForChunkSchema);
14092
14098
  var ChunkResponseSchema = external_exports.lazy(
14093
14099
  () => JsonRpcResponseFor_RpcChunkResponseAnd_RpcErrorSchema
@@ -14120,6 +14126,12 @@ var NetworkInfoRequestSchema = external_exports.lazy(
14120
14126
  var NetworkInfoResponseSchema = external_exports.lazy(
14121
14127
  () => JsonRpcResponseFor_RpcNetworkInfoResponseAnd_RpcErrorSchema
14122
14128
  );
14129
+ var NextLightClientBlockRequestSchema = external_exports.lazy(
14130
+ () => JsonRpcRequestForNextLightClientBlockSchema
14131
+ );
14132
+ var NextLightClientBlockResponseSchema = external_exports.lazy(
14133
+ () => JsonRpcResponseFor_RpcLightClientNextBlockResponseAnd_RpcErrorSchema
14134
+ );
14123
14135
  var QueryRequestSchema = external_exports.lazy(() => JsonRpcRequestForQuerySchema);
14124
14136
  var QueryResponseSchema = external_exports.lazy(
14125
14137
  () => JsonRpcResponseFor_RpcQueryResponseAnd_RpcErrorSchema
@@ -14160,32 +14172,34 @@ var JsonRpcResponseSchema = external_exports.object({
14160
14172
  error: JsonRpcErrorSchema.optional()
14161
14173
  });
14162
14174
  var PATH_TO_METHOD_MAP = {
14175
+ "/EXPERIMENTAL_changes": "EXPERIMENTAL_changes",
14176
+ "/EXPERIMENTAL_changes_in_block": "EXPERIMENTAL_changes_in_block",
14177
+ "/EXPERIMENTAL_congestion_level": "EXPERIMENTAL_congestion_level",
14178
+ "/EXPERIMENTAL_genesis_config": "EXPERIMENTAL_genesis_config",
14179
+ "/EXPERIMENTAL_light_client_block_proof": "EXPERIMENTAL_light_client_block_proof",
14180
+ "/EXPERIMENTAL_light_client_proof": "EXPERIMENTAL_light_client_proof",
14181
+ "/EXPERIMENTAL_maintenance_windows": "EXPERIMENTAL_maintenance_windows",
14182
+ "/EXPERIMENTAL_protocol_config": "EXPERIMENTAL_protocol_config",
14183
+ "/EXPERIMENTAL_receipt": "EXPERIMENTAL_receipt",
14184
+ "/EXPERIMENTAL_split_storage_info": "EXPERIMENTAL_split_storage_info",
14185
+ "/EXPERIMENTAL_tx_status": "EXPERIMENTAL_tx_status",
14186
+ "/EXPERIMENTAL_validators_ordered": "EXPERIMENTAL_validators_ordered",
14163
14187
  "/block": "block",
14188
+ "/broadcast_tx_async": "broadcast_tx_async",
14189
+ "/broadcast_tx_commit": "broadcast_tx_commit",
14190
+ "/changes": "changes",
14164
14191
  "/chunk": "chunk",
14192
+ "/client_config": "client_config",
14165
14193
  "/gas_price": "gas_price",
14166
- "/status": "status",
14167
14194
  "/health": "health",
14195
+ "/light_client_proof": "light_client_proof",
14168
14196
  "/network_info": "network_info",
14169
- "/validators": "validators",
14170
- "/client_config": "client_config",
14171
- "/broadcast_tx_async": "broadcast_tx_async",
14172
- "/broadcast_tx_commit": "broadcast_tx_commit",
14197
+ "/next_light_client_block": "next_light_client_block",
14198
+ "/query": "query",
14173
14199
  "/send_tx": "send_tx",
14200
+ "/status": "status",
14174
14201
  "/tx": "tx",
14175
- "/query": "query",
14176
- "/light_client_proof": "light_client_proof",
14177
- "/EXPERIMENTAL_changes": "EXPERIMENTAL_changes",
14178
- "/EXPERIMENTAL_changes_in_block": "EXPERIMENTAL_changes_in_block",
14179
- "/EXPERIMENTAL_validators_ordered": "EXPERIMENTAL_validators_ordered",
14180
- "/EXPERIMENTAL_protocol_config": "EXPERIMENTAL_protocol_config",
14181
- "/EXPERIMENTAL_genesis_config": "EXPERIMENTAL_genesis_config",
14182
- "/EXPERIMENTAL_light_client_proof": "EXPERIMENTAL_light_client_proof",
14183
- "/EXPERIMENTAL_light_client_block_proof": "EXPERIMENTAL_light_client_block_proof",
14184
- "/EXPERIMENTAL_receipt": "EXPERIMENTAL_receipt",
14185
- "/EXPERIMENTAL_tx_status": "EXPERIMENTAL_tx_status",
14186
- "/EXPERIMENTAL_split_storage_info": "EXPERIMENTAL_split_storage_info",
14187
- "/EXPERIMENTAL_congestion_level": "EXPERIMENTAL_congestion_level",
14188
- "/EXPERIMENTAL_maintenance_windows": "EXPERIMENTAL_maintenance_windows"
14202
+ "/validators": "validators"
14189
14203
  };
14190
14204
  var METHOD_TO_PATH_MAP = {};
14191
14205
  Object.entries(PATH_TO_METHOD_MAP).forEach(([path, method]) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@psalomo/jsonrpc-client",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "TypeScript client for NEAR Protocol JSON-RPC API",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -22,7 +22,8 @@
22
22
  "typecheck": "tsc --noEmit",
23
23
  "lint": "prettier --check 'src/**/*.{ts,js}' '*.{ts,js}'",
24
24
  "format": "prettier --write 'src/**/*.{ts,js}' '*.{ts,js}'",
25
- "test": "vitest",
25
+ "test": "vitest run",
26
+ "test:watch": "vitest",
26
27
  "test:coverage": "vitest run --coverage"
27
28
  },
28
29
  "dependencies": {