near-jsonrpc-client 1.0.5__py3-none-any.whl
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.
- near_jsonrpc_client/__init__.py +27 -0
- near_jsonrpc_client/api_methods_async.py +450 -0
- near_jsonrpc_client/api_methods_sync.py +450 -0
- near_jsonrpc_client/base_client.py +148 -0
- near_jsonrpc_client/client.py +13 -0
- near_jsonrpc_client/errors.py +35 -0
- near_jsonrpc_client/transport.py +43 -0
- near_jsonrpc_client-1.0.5.dist-info/METADATA +10 -0
- near_jsonrpc_client-1.0.5.dist-info/RECORD +357 -0
- near_jsonrpc_client-1.0.5.dist-info/WHEEL +5 -0
- near_jsonrpc_client-1.0.5.dist-info/licenses/LICENSE +201 -0
- near_jsonrpc_client-1.0.5.dist-info/top_level.txt +2 -0
- near_jsonrpc_models/__init__.py +3378 -0
- near_jsonrpc_models/access_key.py +18 -0
- near_jsonrpc_models/access_key_creation_config_view.py +13 -0
- near_jsonrpc_models/access_key_info_view.py +10 -0
- near_jsonrpc_models/access_key_list.py +9 -0
- near_jsonrpc_models/access_key_permission.py +21 -0
- near_jsonrpc_models/access_key_permission_view.py +25 -0
- near_jsonrpc_models/access_key_view.py +10 -0
- near_jsonrpc_models/account_creation_config_view.py +13 -0
- near_jsonrpc_models/account_data_view.py +30 -0
- near_jsonrpc_models/account_id.py +25 -0
- near_jsonrpc_models/account_id_validity_rules_version.py +8 -0
- near_jsonrpc_models/account_info.py +12 -0
- near_jsonrpc_models/account_view.py +18 -0
- near_jsonrpc_models/account_with_public_key.py +10 -0
- near_jsonrpc_models/action_creation_config_view.py +32 -0
- near_jsonrpc_models/action_error.py +13 -0
- near_jsonrpc_models/action_error_kind.py +200 -0
- near_jsonrpc_models/action_view.py +133 -0
- near_jsonrpc_models/actions_validation_error.py +150 -0
- near_jsonrpc_models/add_gas_key_action.py +10 -0
- near_jsonrpc_models/add_key_action.py +12 -0
- near_jsonrpc_models/bandwidth_request.py +14 -0
- near_jsonrpc_models/bandwidth_request_bitmap.py +11 -0
- near_jsonrpc_models/bandwidth_requests.py +16 -0
- near_jsonrpc_models/bandwidth_requests_v1.py +9 -0
- near_jsonrpc_models/block_header_inner_lite_view.py +22 -0
- near_jsonrpc_models/block_header_view.py +53 -0
- near_jsonrpc_models/block_id.py +16 -0
- near_jsonrpc_models/block_reference.py +21 -0
- near_jsonrpc_models/block_status_view.py +10 -0
- near_jsonrpc_models/call_result.py +10 -0
- near_jsonrpc_models/catchup_status_view.py +28 -0
- near_jsonrpc_models/chunk_distribution_network_config.py +12 -0
- near_jsonrpc_models/chunk_distribution_uris.py +10 -0
- near_jsonrpc_models/chunk_hash.py +4 -0
- near_jsonrpc_models/chunk_header_view.py +39 -0
- near_jsonrpc_models/cloud_archival_writer_config.py +14 -0
- near_jsonrpc_models/compilation_error.py +29 -0
- near_jsonrpc_models/congestion_control_config_view.py +58 -0
- near_jsonrpc_models/congestion_info_view.py +11 -0
- near_jsonrpc_models/contract_code_view.py +9 -0
- near_jsonrpc_models/cost_gas_used.py +10 -0
- near_jsonrpc_models/create_account_action.py +7 -0
- near_jsonrpc_models/crypto_hash.py +7 -0
- near_jsonrpc_models/current_epoch_validator_info.py +35 -0
- near_jsonrpc_models/data_receipt_creation_config_view.py +20 -0
- near_jsonrpc_models/data_receiver_view.py +8 -0
- near_jsonrpc_models/delegate_action.py +28 -0
- near_jsonrpc_models/delete_account_action.py +6 -0
- near_jsonrpc_models/delete_gas_key_action.py +6 -0
- near_jsonrpc_models/delete_key_action.py +7 -0
- near_jsonrpc_models/deploy_contract_action.py +8 -0
- near_jsonrpc_models/deploy_global_contract_action.py +10 -0
- near_jsonrpc_models/detailed_debug_status.py +15 -0
- near_jsonrpc_models/deterministic_account_state_init.py +13 -0
- near_jsonrpc_models/deterministic_account_state_init_v1.py +8 -0
- near_jsonrpc_models/deterministic_state_init_action.py +8 -0
- near_jsonrpc_models/direction.py +7 -0
- near_jsonrpc_models/dump_config.py +20 -0
- near_jsonrpc_models/duration_as_std_schema_provider.py +7 -0
- near_jsonrpc_models/dynamic_resharding_config_view.py +23 -0
- near_jsonrpc_models/epoch_id.py +8 -0
- near_jsonrpc_models/epoch_sync_config.py +25 -0
- near_jsonrpc_models/error_wrapper_for_genesis_config_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_block_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_call_function_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_chunk_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_client_config_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_gas_price_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_light_client_next_block_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_light_client_proof_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_maintenance_windows_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_network_info_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_protocol_config_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_query_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_receipt_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_split_storage_info_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_state_changes_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_status_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_transaction_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_validator_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_view_access_key_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_view_access_key_list_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_view_account_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_view_code_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_view_gas_key_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_view_gas_key_list_error.py +24 -0
- near_jsonrpc_models/error_wrapper_for_rpc_view_state_error.py +24 -0
- near_jsonrpc_models/execution_metadata_view.py +9 -0
- near_jsonrpc_models/execution_outcome_view.py +31 -0
- near_jsonrpc_models/execution_outcome_with_id_view.py +12 -0
- near_jsonrpc_models/execution_status_view.py +29 -0
- near_jsonrpc_models/ext_costs_config_view.py +162 -0
- near_jsonrpc_models/external_storage_config.py +17 -0
- near_jsonrpc_models/external_storage_location.py +34 -0
- near_jsonrpc_models/fee.py +17 -0
- near_jsonrpc_models/final_execution_outcome_view.py +23 -0
- near_jsonrpc_models/final_execution_outcome_with_receipt_view.py +26 -0
- near_jsonrpc_models/final_execution_status.py +27 -0
- near_jsonrpc_models/finality.py +9 -0
- near_jsonrpc_models/function_args.py +13 -0
- near_jsonrpc_models/function_call_action.py +10 -0
- near_jsonrpc_models/function_call_error.py +52 -0
- near_jsonrpc_models/function_call_permission.py +24 -0
- near_jsonrpc_models/gas_key.py +17 -0
- near_jsonrpc_models/gas_key_info_view.py +8 -0
- near_jsonrpc_models/gas_key_list.py +7 -0
- near_jsonrpc_models/gas_key_view.py +12 -0
- near_jsonrpc_models/gcconfig.py +19 -0
- near_jsonrpc_models/genesis_config.py +121 -0
- near_jsonrpc_models/genesis_config_error.py +7 -0
- near_jsonrpc_models/genesis_config_request.py +7 -0
- near_jsonrpc_models/global_contract_deploy_mode.py +13 -0
- near_jsonrpc_models/global_contract_identifier.py +17 -0
- near_jsonrpc_models/global_contract_identifier_view.py +17 -0
- near_jsonrpc_models/host_error.py +212 -0
- near_jsonrpc_models/internal_error.py +16 -0
- near_jsonrpc_models/invalid_access_key_error.py +54 -0
- near_jsonrpc_models/invalid_tx_error.py +135 -0
- near_jsonrpc_models/json_rpc_request_for_block.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_block_effects.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_broadcast_tx_async.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_broadcast_tx_commit.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_changes.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_chunk.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_client_config.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_call_function.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_changes.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_changes_in_block.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_congestion_level.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_genesis_config.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_light_client_block_proof.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_light_client_proof.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_maintenance_windows.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_protocol_config.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_receipt.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_split_storage_info.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_tx_status.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_validators_ordered.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_view_access_key.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_view_access_key_list.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_view_account.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_view_code.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_view_gas_key.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_view_gas_key_list.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_experimental_view_state.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_gas_price.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_genesis_config.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_health.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_light_client_proof.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_maintenance_windows.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_network_info.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_next_light_client_block.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_query.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_send_tx.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_status.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_tx.py +10 -0
- near_jsonrpc_models/json_rpc_request_for_validators.py +10 -0
- near_jsonrpc_models/json_rpc_response_for_array_of_range_of_uint64_and_rpc_maintenance_windows_error.py +21 -0
- near_jsonrpc_models/json_rpc_response_for_array_of_validator_stake_view_and_rpc_validator_error.py +21 -0
- near_jsonrpc_models/json_rpc_response_for_crypto_hash_and_rpc_transaction_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_genesis_config_and_genesis_config_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_nullable_rpc_health_response_and_rpc_status_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_block_response_and_rpc_block_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_call_function_response_and_rpc_call_function_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_chunk_response_and_rpc_chunk_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_client_config_response_and_rpc_client_config_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_congestion_level_response_and_rpc_chunk_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_gas_price_response_and_rpc_gas_price_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_light_client_block_proof_response_and_rpc_light_client_proof_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_light_client_execution_proof_response_and_rpc_light_client_proof_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_light_client_next_block_response_and_rpc_light_client_next_block_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_network_info_response_and_rpc_network_info_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_protocol_config_response_and_rpc_protocol_config_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_query_response_and_rpc_query_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_receipt_response_and_rpc_receipt_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_split_storage_info_response_and_rpc_split_storage_info_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_state_changes_in_block_by_type_response_and_rpc_state_changes_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_state_changes_in_block_response_and_rpc_state_changes_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_status_response_and_rpc_status_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_transaction_response_and_rpc_transaction_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_validator_response_and_rpc_validator_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_view_access_key_list_response_and_rpc_view_access_key_list_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_view_access_key_response_and_rpc_view_access_key_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_view_account_response_and_rpc_view_account_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_view_code_response_and_rpc_view_code_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_view_gas_key_list_response_and_rpc_view_gas_key_list_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_view_gas_key_response_and_rpc_view_gas_key_error.py +20 -0
- near_jsonrpc_models/json_rpc_response_for_rpc_view_state_response_and_rpc_view_state_error.py +20 -0
- near_jsonrpc_models/known_producer_view.py +13 -0
- near_jsonrpc_models/light_client_block_lite_view.py +9 -0
- near_jsonrpc_models/limit_config.py +81 -0
- near_jsonrpc_models/log_summary_style.py +7 -0
- near_jsonrpc_models/merkle_path_item.py +8 -0
- near_jsonrpc_models/method_resolve_error.py +7 -0
- near_jsonrpc_models/missing_trie_value.py +8 -0
- near_jsonrpc_models/missing_trie_value_context.py +9 -0
- near_jsonrpc_models/mutable_config_value.py +7 -0
- near_jsonrpc_models/near_gas.py +8 -0
- near_jsonrpc_models/near_token.py +7 -0
- near_jsonrpc_models/network_info_view.py +17 -0
- near_jsonrpc_models/next_epoch_validator_info.py +13 -0
- near_jsonrpc_models/non_delegate_action.py +71 -0
- near_jsonrpc_models/peer_id.py +6 -0
- near_jsonrpc_models/peer_info_view.py +26 -0
- near_jsonrpc_models/prepare_error.py +16 -0
- near_jsonrpc_models/protocol_version_check_config.py +9 -0
- near_jsonrpc_models/public_key.py +7 -0
- near_jsonrpc_models/range_of_uint64.py +7 -0
- near_jsonrpc_models/receipt_enum_view.py +48 -0
- near_jsonrpc_models/receipt_validation_error.py +76 -0
- near_jsonrpc_models/receipt_view.py +13 -0
- near_jsonrpc_models/rpc_block_error.py +25 -0
- near_jsonrpc_models/rpc_block_request.py +20 -0
- near_jsonrpc_models/rpc_block_response.py +12 -0
- near_jsonrpc_models/rpc_call_function_error.py +64 -0
- near_jsonrpc_models/rpc_call_function_request.py +31 -0
- near_jsonrpc_models/rpc_call_function_response.py +13 -0
- near_jsonrpc_models/rpc_chunk_error.py +38 -0
- near_jsonrpc_models/rpc_chunk_request.py +18 -0
- near_jsonrpc_models/rpc_chunk_response.py +13 -0
- near_jsonrpc_models/rpc_client_config_error.py +16 -0
- near_jsonrpc_models/rpc_client_config_request.py +7 -0
- near_jsonrpc_models/rpc_client_config_response.py +185 -0
- near_jsonrpc_models/rpc_congestion_level_request.py +18 -0
- near_jsonrpc_models/rpc_congestion_level_response.py +5 -0
- near_jsonrpc_models/rpc_gas_price_error.py +22 -0
- near_jsonrpc_models/rpc_gas_price_request.py +6 -0
- near_jsonrpc_models/rpc_gas_price_response.py +6 -0
- near_jsonrpc_models/rpc_health_request.py +7 -0
- near_jsonrpc_models/rpc_health_response.py +7 -0
- near_jsonrpc_models/rpc_known_producer.py +9 -0
- near_jsonrpc_models/rpc_light_client_block_proof_request.py +7 -0
- near_jsonrpc_models/rpc_light_client_block_proof_response.py +9 -0
- near_jsonrpc_models/rpc_light_client_execution_proof_request.py +23 -0
- near_jsonrpc_models/rpc_light_client_execution_proof_response.py +12 -0
- near_jsonrpc_models/rpc_light_client_next_block_error.py +30 -0
- near_jsonrpc_models/rpc_light_client_next_block_request.py +6 -0
- near_jsonrpc_models/rpc_light_client_next_block_response.py +19 -0
- near_jsonrpc_models/rpc_light_client_proof_error.py +55 -0
- near_jsonrpc_models/rpc_maintenance_windows_error.py +16 -0
- near_jsonrpc_models/rpc_maintenance_windows_request.py +6 -0
- near_jsonrpc_models/rpc_network_info_error.py +16 -0
- near_jsonrpc_models/rpc_network_info_request.py +7 -0
- near_jsonrpc_models/rpc_network_info_response.py +15 -0
- near_jsonrpc_models/rpc_peer_info.py +9 -0
- near_jsonrpc_models/rpc_protocol_config_error.py +22 -0
- near_jsonrpc_models/rpc_protocol_config_request.py +20 -0
- near_jsonrpc_models/rpc_protocol_config_response.py +103 -0
- near_jsonrpc_models/rpc_query_error.py +122 -0
- near_jsonrpc_models/rpc_query_request.py +185 -0
- near_jsonrpc_models/rpc_query_response.py +50 -0
- near_jsonrpc_models/rpc_receipt_error.py +24 -0
- near_jsonrpc_models/rpc_receipt_request.py +6 -0
- near_jsonrpc_models/rpc_receipt_response.py +13 -0
- near_jsonrpc_models/rpc_request_validation_error_kind.py +23 -0
- near_jsonrpc_models/rpc_send_transaction_request.py +9 -0
- near_jsonrpc_models/rpc_split_storage_info_error.py +16 -0
- near_jsonrpc_models/rpc_split_storage_info_request.py +5 -0
- near_jsonrpc_models/rpc_split_storage_info_response.py +11 -0
- near_jsonrpc_models/rpc_state_changes_error.py +25 -0
- near_jsonrpc_models/rpc_state_changes_in_block_by_type_request.py +129 -0
- near_jsonrpc_models/rpc_state_changes_in_block_by_type_response.py +9 -0
- near_jsonrpc_models/rpc_state_changes_in_block_request.py +20 -0
- near_jsonrpc_models/rpc_state_changes_in_block_response.py +9 -0
- near_jsonrpc_models/rpc_status_error.py +37 -0
- near_jsonrpc_models/rpc_status_request.py +7 -0
- near_jsonrpc_models/rpc_status_response.py +41 -0
- near_jsonrpc_models/rpc_transaction_error.py +43 -0
- near_jsonrpc_models/rpc_transaction_response.py +17 -0
- near_jsonrpc_models/rpc_transaction_status_request.py +21 -0
- near_jsonrpc_models/rpc_validator_error.py +22 -0
- near_jsonrpc_models/rpc_validator_request.py +20 -0
- near_jsonrpc_models/rpc_validator_response.py +28 -0
- near_jsonrpc_models/rpc_validators_ordered_request.py +6 -0
- near_jsonrpc_models/rpc_view_access_key_error.py +55 -0
- near_jsonrpc_models/rpc_view_access_key_list_error.py +45 -0
- near_jsonrpc_models/rpc_view_access_key_list_request.py +24 -0
- near_jsonrpc_models/rpc_view_access_key_list_response.py +13 -0
- near_jsonrpc_models/rpc_view_access_key_request.py +28 -0
- near_jsonrpc_models/rpc_view_access_key_response.py +13 -0
- near_jsonrpc_models/rpc_view_account_error.py +45 -0
- near_jsonrpc_models/rpc_view_account_request.py +24 -0
- near_jsonrpc_models/rpc_view_account_response.py +20 -0
- near_jsonrpc_models/rpc_view_code_error.py +54 -0
- near_jsonrpc_models/rpc_view_code_request.py +24 -0
- near_jsonrpc_models/rpc_view_code_response.py +12 -0
- near_jsonrpc_models/rpc_view_gas_key_error.py +55 -0
- near_jsonrpc_models/rpc_view_gas_key_list_error.py +45 -0
- near_jsonrpc_models/rpc_view_gas_key_list_request.py +24 -0
- near_jsonrpc_models/rpc_view_gas_key_list_response.py +11 -0
- near_jsonrpc_models/rpc_view_gas_key_request.py +28 -0
- near_jsonrpc_models/rpc_view_gas_key_response.py +15 -0
- near_jsonrpc_models/rpc_view_state_error.py +54 -0
- near_jsonrpc_models/rpc_view_state_request.py +31 -0
- near_jsonrpc_models/rpc_view_state_response.py +14 -0
- near_jsonrpc_models/runtime_config_view.py +30 -0
- near_jsonrpc_models/runtime_fees_config_view.py +29 -0
- near_jsonrpc_models/shard_id.py +16 -0
- near_jsonrpc_models/shard_layout.py +34 -0
- near_jsonrpc_models/shard_layout_v0.py +15 -0
- near_jsonrpc_models/shard_layout_v1.py +22 -0
- near_jsonrpc_models/shard_layout_v2.py +19 -0
- near_jsonrpc_models/shard_layout_v3.py +17 -0
- near_jsonrpc_models/shard_uid.py +17 -0
- near_jsonrpc_models/signature.py +7 -0
- near_jsonrpc_models/signed_delegate_action.py +8 -0
- near_jsonrpc_models/signed_transaction.py +7 -0
- near_jsonrpc_models/signed_transaction_view.py +19 -0
- near_jsonrpc_models/slashed_validator.py +7 -0
- near_jsonrpc_models/stake_action.py +12 -0
- near_jsonrpc_models/state_change_cause_view.py +50 -0
- near_jsonrpc_models/state_change_kind_view.py +31 -0
- near_jsonrpc_models/state_change_with_cause_view.py +129 -0
- near_jsonrpc_models/state_item.py +10 -0
- near_jsonrpc_models/state_sync_config.py +14 -0
- near_jsonrpc_models/status_sync_info.py +17 -0
- near_jsonrpc_models/storage_error.py +46 -0
- near_jsonrpc_models/storage_get_mode.py +9 -0
- near_jsonrpc_models/storage_usage_config_view.py +11 -0
- near_jsonrpc_models/store_key.py +12 -0
- near_jsonrpc_models/store_value.py +12 -0
- near_jsonrpc_models/strict_model.py +5 -0
- near_jsonrpc_models/sync_checkpoint.py +7 -0
- near_jsonrpc_models/sync_concurrency.py +19 -0
- near_jsonrpc_models/sync_config.py +23 -0
- near_jsonrpc_models/tier1proxy_view.py +7 -0
- near_jsonrpc_models/tracked_shards_config.py +42 -0
- near_jsonrpc_models/transfer_action.py +6 -0
- near_jsonrpc_models/transfer_to_gas_key_action.py +8 -0
- near_jsonrpc_models/tx_execution_error.py +21 -0
- near_jsonrpc_models/tx_execution_status.py +14 -0
- near_jsonrpc_models/use_global_contract_action.py +8 -0
- near_jsonrpc_models/validator_info.py +6 -0
- near_jsonrpc_models/validator_kickout_reason.py +67 -0
- near_jsonrpc_models/validator_kickout_view.py +8 -0
- near_jsonrpc_models/validator_stake_view.py +13 -0
- near_jsonrpc_models/validator_stake_view_v1.py +10 -0
- near_jsonrpc_models/version.py +10 -0
- near_jsonrpc_models/view_state_result.py +10 -0
- near_jsonrpc_models/vmconfig_view.py +44 -0
- near_jsonrpc_models/vmkind.py +9 -0
- near_jsonrpc_models/wasm_trap.py +9 -0
- near_jsonrpc_models/witness_config_view.py +17 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from near_jsonrpc_models.account_id import AccountId
|
|
2
|
+
from near_jsonrpc_models.block_id import BlockId
|
|
3
|
+
from near_jsonrpc_models.finality import Finality
|
|
4
|
+
from near_jsonrpc_models.function_args import FunctionArgs
|
|
5
|
+
from near_jsonrpc_models.sync_checkpoint import SyncCheckpoint
|
|
6
|
+
from pydantic import BaseModel
|
|
7
|
+
from pydantic import RootModel
|
|
8
|
+
from typing import Union
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class RpcCallFunctionRequestBlockId(BaseModel):
|
|
12
|
+
account_id: AccountId
|
|
13
|
+
args_base64: FunctionArgs
|
|
14
|
+
method_name: str
|
|
15
|
+
block_id: BlockId
|
|
16
|
+
|
|
17
|
+
class RpcCallFunctionRequestFinality(BaseModel):
|
|
18
|
+
account_id: AccountId
|
|
19
|
+
args_base64: FunctionArgs
|
|
20
|
+
method_name: str
|
|
21
|
+
finality: Finality
|
|
22
|
+
|
|
23
|
+
class RpcCallFunctionRequestSyncCheckpoint(BaseModel):
|
|
24
|
+
account_id: AccountId
|
|
25
|
+
args_base64: FunctionArgs
|
|
26
|
+
method_name: str
|
|
27
|
+
sync_checkpoint: SyncCheckpoint
|
|
28
|
+
|
|
29
|
+
class RpcCallFunctionRequest(RootModel[Union[RpcCallFunctionRequestBlockId, RpcCallFunctionRequestFinality, RpcCallFunctionRequestSyncCheckpoint]]):
|
|
30
|
+
pass
|
|
31
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""A result returned by contract method"""
|
|
2
|
+
|
|
3
|
+
from near_jsonrpc_models.crypto_hash import CryptoHash
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import conint
|
|
6
|
+
from typing import List
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class RpcCallFunctionResponse(BaseModel):
|
|
10
|
+
block_hash: CryptoHash
|
|
11
|
+
block_height: conint(ge=0, le=18446744073709551615)
|
|
12
|
+
logs: List[str]
|
|
13
|
+
result: List[conint(ge=0, le=255)]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from near_jsonrpc_models.chunk_hash import ChunkHash
|
|
2
|
+
from near_jsonrpc_models.shard_id import ShardId
|
|
3
|
+
from pydantic import BaseModel
|
|
4
|
+
from pydantic import RootModel
|
|
5
|
+
from typing import Any
|
|
6
|
+
from typing import Dict
|
|
7
|
+
from typing import Literal
|
|
8
|
+
from typing import Union
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class RpcChunkErrorInternalErrorInfo(BaseModel):
|
|
12
|
+
error_message: str
|
|
13
|
+
|
|
14
|
+
class RpcChunkErrorInternalError(BaseModel):
|
|
15
|
+
info: RpcChunkErrorInternalErrorInfo
|
|
16
|
+
name: Literal['INTERNAL_ERROR']
|
|
17
|
+
|
|
18
|
+
class RpcChunkErrorUnknownBlock(BaseModel):
|
|
19
|
+
info: Dict[str, Any]
|
|
20
|
+
name: Literal['UNKNOWN_BLOCK']
|
|
21
|
+
|
|
22
|
+
class RpcChunkErrorInvalidShardIdInfo(BaseModel):
|
|
23
|
+
shard_id: ShardId
|
|
24
|
+
|
|
25
|
+
class RpcChunkErrorInvalidShardId(BaseModel):
|
|
26
|
+
info: RpcChunkErrorInvalidShardIdInfo
|
|
27
|
+
name: Literal['INVALID_SHARD_ID']
|
|
28
|
+
|
|
29
|
+
class RpcChunkErrorUnknownChunkInfo(BaseModel):
|
|
30
|
+
chunk_hash: ChunkHash
|
|
31
|
+
|
|
32
|
+
class RpcChunkErrorUnknownChunk(BaseModel):
|
|
33
|
+
info: RpcChunkErrorUnknownChunkInfo
|
|
34
|
+
name: Literal['UNKNOWN_CHUNK']
|
|
35
|
+
|
|
36
|
+
class RpcChunkError(RootModel[Union[RpcChunkErrorInternalError, RpcChunkErrorUnknownBlock, RpcChunkErrorInvalidShardId, RpcChunkErrorUnknownChunk]]):
|
|
37
|
+
pass
|
|
38
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from near_jsonrpc_models.block_id import BlockId
|
|
2
|
+
from near_jsonrpc_models.crypto_hash import CryptoHash
|
|
3
|
+
from near_jsonrpc_models.shard_id import ShardId
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import RootModel
|
|
6
|
+
from typing import Union
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class RpcChunkRequestBlockShardIdOption(BaseModel):
|
|
10
|
+
block_id: BlockId
|
|
11
|
+
shard_id: ShardId
|
|
12
|
+
|
|
13
|
+
class RpcChunkRequestChunkHashOption(BaseModel):
|
|
14
|
+
chunk_id: CryptoHash
|
|
15
|
+
|
|
16
|
+
class RpcChunkRequest(RootModel[Union[RpcChunkRequestBlockShardIdOption, RpcChunkRequestChunkHashOption]]):
|
|
17
|
+
pass
|
|
18
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from near_jsonrpc_models.account_id import AccountId
|
|
2
|
+
from near_jsonrpc_models.chunk_header_view import ChunkHeaderView
|
|
3
|
+
from near_jsonrpc_models.receipt_view import ReceiptView
|
|
4
|
+
from near_jsonrpc_models.signed_transaction_view import SignedTransactionView
|
|
5
|
+
from pydantic import BaseModel
|
|
6
|
+
from typing import List
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class RpcChunkResponse(BaseModel):
|
|
10
|
+
author: AccountId
|
|
11
|
+
header: ChunkHeaderView
|
|
12
|
+
receipts: List[ReceiptView]
|
|
13
|
+
transactions: List[SignedTransactionView]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from pydantic import BaseModel
|
|
2
|
+
from pydantic import RootModel
|
|
3
|
+
from typing import Literal
|
|
4
|
+
from typing import Union
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class RpcClientConfigErrorInternalErrorInfo(BaseModel):
|
|
8
|
+
error_message: str
|
|
9
|
+
|
|
10
|
+
class RpcClientConfigErrorInternalError(BaseModel):
|
|
11
|
+
info: RpcClientConfigErrorInternalErrorInfo
|
|
12
|
+
name: Literal['INTERNAL_ERROR']
|
|
13
|
+
|
|
14
|
+
class RpcClientConfigError(RootModel[Union[RpcClientConfigErrorInternalError]]):
|
|
15
|
+
pass
|
|
16
|
+
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"""ClientConfig where some fields can be updated at runtime."""
|
|
2
|
+
|
|
3
|
+
from near_jsonrpc_models.chunk_distribution_network_config import ChunkDistributionNetworkConfig
|
|
4
|
+
from near_jsonrpc_models.cloud_archival_writer_config import CloudArchivalWriterConfig
|
|
5
|
+
from near_jsonrpc_models.epoch_sync_config import EpochSyncConfig
|
|
6
|
+
from near_jsonrpc_models.gcconfig import GCConfig
|
|
7
|
+
from near_jsonrpc_models.log_summary_style import LogSummaryStyle
|
|
8
|
+
from near_jsonrpc_models.mutable_config_value import MutableConfigValue
|
|
9
|
+
from near_jsonrpc_models.near_gas import NearGas
|
|
10
|
+
from near_jsonrpc_models.protocol_version_check_config import ProtocolVersionCheckConfig
|
|
11
|
+
from near_jsonrpc_models.state_sync_config import StateSyncConfig
|
|
12
|
+
from near_jsonrpc_models.tracked_shards_config import TrackedShardsConfig
|
|
13
|
+
from near_jsonrpc_models.version import Version
|
|
14
|
+
from pydantic import BaseModel
|
|
15
|
+
from pydantic import conint
|
|
16
|
+
from pydantic import conlist
|
|
17
|
+
from typing import List
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class RpcClientConfigResponse(BaseModel):
|
|
21
|
+
# Not clear old data, set `true` for archive nodes.
|
|
22
|
+
archive: bool = None
|
|
23
|
+
# Horizon at which instead of fetching block, fetch full state.
|
|
24
|
+
block_fetch_horizon: conint(ge=0, le=18446744073709551615) = None
|
|
25
|
+
# Behind this horizon header fetch kicks in.
|
|
26
|
+
block_header_fetch_horizon: conint(ge=0, le=18446744073709551615) = None
|
|
27
|
+
# Duration to check for producing / skipping block.
|
|
28
|
+
block_production_tracking_delay: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
29
|
+
# Time between check to perform catchup.
|
|
30
|
+
catchup_step_period: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
31
|
+
# Chain id for status.
|
|
32
|
+
chain_id: str = None
|
|
33
|
+
# Optional config for the Chunk Distribution Network feature.
|
|
34
|
+
# If set to `None` then this node does not participate in the Chunk Distribution Network.
|
|
35
|
+
# Nodes not participating will still function fine, but possibly with higher
|
|
36
|
+
# latency due to the need of requesting chunks over the peer-to-peer network.
|
|
37
|
+
chunk_distribution_network: ChunkDistributionNetworkConfig | None = None
|
|
38
|
+
# Time between checking to re-request chunks.
|
|
39
|
+
chunk_request_retry_period: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
40
|
+
# Number of threads for ChunkValidationActor pool.
|
|
41
|
+
chunk_validation_threads: conint(ge=0, le=4294967295) = None
|
|
42
|
+
# Multiplier for the wait time for all chunks to be received.
|
|
43
|
+
chunk_wait_mult: conlist(conint(ge=-2147483648, le=2147483647), min_length=2, max_length=2) = None
|
|
44
|
+
# Height horizon for the chunk cache. A chunk is removed from the cache
|
|
45
|
+
# if its height + chunks_cache_height_horizon < largest_seen_height.
|
|
46
|
+
# The default value is DEFAULT_CHUNKS_CACHE_HEIGHT_HORIZON.
|
|
47
|
+
chunks_cache_height_horizon: conint(ge=0, le=18446744073709551615) = None
|
|
48
|
+
# Number of threads to execute background migration work in client.
|
|
49
|
+
client_background_migration_threads: conint(ge=0, le=4294967295) = None
|
|
50
|
+
# Configuration for a cloud-based archival writer. If this config is present, the writer is enabled and
|
|
51
|
+
# writes chunk-related data based on the tracked shards.
|
|
52
|
+
cloud_archival_writer: CloudArchivalWriterConfig | None = None
|
|
53
|
+
# If true, the node won't forward transactions to next the chunk producers.
|
|
54
|
+
disable_tx_routing: bool = None
|
|
55
|
+
# Time between running doomslug timer.
|
|
56
|
+
doomslug_step_period: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
57
|
+
# If true, transactions for the next chunk will be prepared early, right after the previous chunk's
|
|
58
|
+
# post-state is ready. This can help produce chunks faster, for high-throughput chains.
|
|
59
|
+
# The current implementation increases latency on low-load chains, which will be fixed in the future.
|
|
60
|
+
# The default is disabled.
|
|
61
|
+
enable_early_prepare_transactions: bool = None
|
|
62
|
+
enable_multiline_logging: bool = None
|
|
63
|
+
# Re-export storage layer statistics as prometheus metrics.
|
|
64
|
+
enable_statistics_export: bool = None
|
|
65
|
+
# Epoch length.
|
|
66
|
+
epoch_length: conint(ge=0, le=18446744073709551615) = None
|
|
67
|
+
# Options for epoch sync.
|
|
68
|
+
epoch_sync: EpochSyncConfig = None
|
|
69
|
+
# Graceful shutdown at expected block height.
|
|
70
|
+
expected_shutdown: MutableConfigValue = None
|
|
71
|
+
# Garbage collection configuration.
|
|
72
|
+
gc: GCConfig = None
|
|
73
|
+
# Expected increase of header head height per second during header sync
|
|
74
|
+
header_sync_expected_height_per_second: conint(ge=0, le=18446744073709551615) = None
|
|
75
|
+
# How much time to wait after initial header sync
|
|
76
|
+
header_sync_initial_timeout: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
77
|
+
# How much time to wait after some progress is made in header sync
|
|
78
|
+
header_sync_progress_timeout: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
79
|
+
# How much time to wait before banning a peer in header sync if sync is too slow
|
|
80
|
+
header_sync_stall_ban_timeout: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
81
|
+
# Period between logging summary information.
|
|
82
|
+
log_summary_period: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
83
|
+
# Enable coloring of the logs
|
|
84
|
+
log_summary_style: LogSummaryStyle = None
|
|
85
|
+
# Maximum wait for approvals before producing block.
|
|
86
|
+
max_block_production_delay: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
87
|
+
# Maximum duration before skipping given height.
|
|
88
|
+
max_block_wait_delay: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
89
|
+
# Max burnt gas per view method. If present, overrides value stored in
|
|
90
|
+
# genesis file. The value only affects the RPCs without influencing the
|
|
91
|
+
# protocol thus changing it per-node doesn’t affect the blockchain.
|
|
92
|
+
max_gas_burnt_view: NearGas | None = None
|
|
93
|
+
# Minimum duration before producing block.
|
|
94
|
+
min_block_production_delay: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
95
|
+
# Minimum number of peers to start syncing.
|
|
96
|
+
min_num_peers: conint(ge=0, le=4294967295) = None
|
|
97
|
+
# Number of block producer seats
|
|
98
|
+
num_block_producer_seats: conint(ge=0, le=18446744073709551615) = None
|
|
99
|
+
# Maximum size of state witnesses in the OrphanStateWitnessPool.
|
|
100
|
+
#
|
|
101
|
+
# We keep only orphan witnesses which are smaller than this size.
|
|
102
|
+
# This limits the maximum memory usage of OrphanStateWitnessPool.
|
|
103
|
+
orphan_state_witness_max_size: conint(ge=0, le=18446744073709551615) = None
|
|
104
|
+
# OrphanStateWitnessPool keeps instances of ChunkStateWitness which can't be processed
|
|
105
|
+
# because the previous block isn't available. The witnesses wait in the pool until the
|
|
106
|
+
# required block appears. This variable controls how many witnesses can be stored in the pool.
|
|
107
|
+
orphan_state_witness_pool_size: conint(ge=0, le=4294967295) = None
|
|
108
|
+
# Limit the time of adding transactions to a chunk.
|
|
109
|
+
# A node produces a chunk by adding transactions from the transaction pool until
|
|
110
|
+
# some limit is reached. This time limit ensures that adding transactions won't take
|
|
111
|
+
# longer than the specified duration, which helps to produce the chunk quickly.
|
|
112
|
+
produce_chunk_add_transactions_time_limit: str = None
|
|
113
|
+
# Produce empty blocks, use `false` for testing.
|
|
114
|
+
produce_empty_blocks: bool = None
|
|
115
|
+
# Determines whether client should exit if the protocol version is not supported
|
|
116
|
+
# for the next or next next epoch.
|
|
117
|
+
protocol_version_check: ProtocolVersionCheckConfig = None
|
|
118
|
+
resharding_config: MutableConfigValue = None
|
|
119
|
+
# Listening rpc port for status.
|
|
120
|
+
rpc_addr: str | None = None
|
|
121
|
+
# Save observed instances of invalid ChunkStateWitness to the database in DBCol::InvalidChunkStateWitnesses.
|
|
122
|
+
# Saving invalid witnesses is useful for analysis and debugging.
|
|
123
|
+
# This option can cause extra load on the database and is not recommended for production use.
|
|
124
|
+
save_invalid_witnesses: bool = None
|
|
125
|
+
# Save observed instances of ChunkStateWitness to the database in DBCol::LatestChunkStateWitnesses.
|
|
126
|
+
# Saving the latest witnesses is useful for analysis and debugging.
|
|
127
|
+
# This option can cause extra load on the database and is not recommended for production use.
|
|
128
|
+
save_latest_witnesses: bool = None
|
|
129
|
+
# Whether to persist state changes on disk or not.
|
|
130
|
+
save_state_changes: bool = None
|
|
131
|
+
# save_trie_changes should be set to true iff
|
|
132
|
+
# - archive if false - non-archival nodes need trie changes to perform garbage collection
|
|
133
|
+
# - archive is true, cold_store is configured and migration to split_storage is finished - node
|
|
134
|
+
# working in split storage mode needs trie changes in order to do garbage collection on hot.
|
|
135
|
+
save_trie_changes: bool = None
|
|
136
|
+
# Whether to persist transaction outcomes to disk or not.
|
|
137
|
+
save_tx_outcomes: bool = None
|
|
138
|
+
# Whether to persist partial chunk parts for untracked shards or not.
|
|
139
|
+
save_untracked_partial_chunks_parts: bool = None
|
|
140
|
+
# Skip waiting for sync (for testing or single node testnet).
|
|
141
|
+
skip_sync_wait: bool = None
|
|
142
|
+
# Number of threads for StateRequestActor pool.
|
|
143
|
+
state_request_server_threads: conint(ge=0, le=4294967295) = None
|
|
144
|
+
# Number of seconds between state requests for view client.
|
|
145
|
+
# Throttling window for state requests (headers and parts).
|
|
146
|
+
state_request_throttle_period: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
147
|
+
# Maximum number of state requests served per throttle period
|
|
148
|
+
state_requests_per_throttle_period: conint(ge=0, le=4294967295) = None
|
|
149
|
+
# Options for syncing state.
|
|
150
|
+
state_sync: StateSyncConfig = None
|
|
151
|
+
# Whether to use the State Sync mechanism.
|
|
152
|
+
# If disabled, the node will do Block Sync instead of State Sync.
|
|
153
|
+
state_sync_enabled: bool = None
|
|
154
|
+
# Additional waiting period after a failed request to external storage
|
|
155
|
+
state_sync_external_backoff: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
156
|
+
# How long to wait for a response from centralized state sync
|
|
157
|
+
state_sync_external_timeout: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
158
|
+
# How long to wait for a response from p2p state sync
|
|
159
|
+
state_sync_p2p_timeout: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
160
|
+
# How long to wait after a failed state sync request
|
|
161
|
+
state_sync_retry_backoff: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
162
|
+
# How often to check that we are not out of sync.
|
|
163
|
+
sync_check_period: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
164
|
+
# Sync height threshold: below this difference in height don't start syncing.
|
|
165
|
+
sync_height_threshold: conint(ge=0, le=18446744073709551615) = None
|
|
166
|
+
# Maximum number of block requests to send to peers to sync
|
|
167
|
+
sync_max_block_requests: conint(ge=0, le=4294967295) = None
|
|
168
|
+
# While syncing, how long to check for each step.
|
|
169
|
+
sync_step_period: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
170
|
+
tracked_shards_config: TrackedShardsConfig = None
|
|
171
|
+
# Limit of the size of per-shard transaction pool measured in bytes. If not set, the size
|
|
172
|
+
# will be unbounded.
|
|
173
|
+
transaction_pool_size_limit: conint(ge=0, le=18446744073709551615) | None = None
|
|
174
|
+
transaction_request_handler_threads: conint(ge=0, le=4294967295) = None
|
|
175
|
+
# Upper bound of the byte size of contract state that is still viewable. None is no limit
|
|
176
|
+
trie_viewer_state_size_limit: conint(ge=0, le=18446744073709551615) | None = None
|
|
177
|
+
# Time to persist Accounts Id in the router without removing them.
|
|
178
|
+
ttl_account_id_router: conlist(conint(ge=0, le=18446744073709551615), min_length=2, max_length=2) = None
|
|
179
|
+
# If the node is not a chunk producer within that many blocks, then route
|
|
180
|
+
# to upcoming chunk producers.
|
|
181
|
+
tx_routing_height_horizon: conint(ge=0, le=18446744073709551615) = None
|
|
182
|
+
# Version of the binary.
|
|
183
|
+
version: Version = None
|
|
184
|
+
# Number of threads for ViewClientActor pool.
|
|
185
|
+
view_client_threads: conint(ge=0, le=4294967295) = None
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from near_jsonrpc_models.block_id import BlockId
|
|
2
|
+
from near_jsonrpc_models.crypto_hash import CryptoHash
|
|
3
|
+
from near_jsonrpc_models.shard_id import ShardId
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import RootModel
|
|
6
|
+
from typing import Union
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class RpcCongestionLevelRequestBlockShardIdOption(BaseModel):
|
|
10
|
+
block_id: BlockId
|
|
11
|
+
shard_id: ShardId
|
|
12
|
+
|
|
13
|
+
class RpcCongestionLevelRequestChunkHashOption(BaseModel):
|
|
14
|
+
chunk_id: CryptoHash
|
|
15
|
+
|
|
16
|
+
class RpcCongestionLevelRequest(RootModel[Union[RpcCongestionLevelRequestBlockShardIdOption, RpcCongestionLevelRequestChunkHashOption]]):
|
|
17
|
+
pass
|
|
18
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from pydantic import BaseModel
|
|
2
|
+
from pydantic import RootModel
|
|
3
|
+
from typing import Any
|
|
4
|
+
from typing import Dict
|
|
5
|
+
from typing import Literal
|
|
6
|
+
from typing import Union
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class RpcGasPriceErrorInternalErrorInfo(BaseModel):
|
|
10
|
+
error_message: str
|
|
11
|
+
|
|
12
|
+
class RpcGasPriceErrorInternalError(BaseModel):
|
|
13
|
+
info: RpcGasPriceErrorInternalErrorInfo
|
|
14
|
+
name: Literal['INTERNAL_ERROR']
|
|
15
|
+
|
|
16
|
+
class RpcGasPriceErrorUnknownBlock(BaseModel):
|
|
17
|
+
info: Dict[str, Any]
|
|
18
|
+
name: Literal['UNKNOWN_BLOCK']
|
|
19
|
+
|
|
20
|
+
class RpcGasPriceError(RootModel[Union[RpcGasPriceErrorInternalError, RpcGasPriceErrorUnknownBlock]]):
|
|
21
|
+
pass
|
|
22
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from near_jsonrpc_models.light_client_block_lite_view import LightClientBlockLiteView
|
|
2
|
+
from near_jsonrpc_models.merkle_path_item import MerklePathItem
|
|
3
|
+
from pydantic import BaseModel
|
|
4
|
+
from typing import List
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class RpcLightClientBlockProofResponse(BaseModel):
|
|
8
|
+
block_header_lite: LightClientBlockLiteView
|
|
9
|
+
block_proof: List[MerklePathItem]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from near_jsonrpc_models.account_id import AccountId
|
|
2
|
+
from near_jsonrpc_models.crypto_hash import CryptoHash
|
|
3
|
+
from pydantic import BaseModel
|
|
4
|
+
from pydantic import RootModel
|
|
5
|
+
from typing import Literal
|
|
6
|
+
from typing import Union
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class RpcLightClientExecutionProofRequestSenderId(BaseModel):
|
|
10
|
+
light_client_head: CryptoHash
|
|
11
|
+
sender_id: AccountId
|
|
12
|
+
transaction_hash: CryptoHash
|
|
13
|
+
type: Literal['transaction']
|
|
14
|
+
|
|
15
|
+
class RpcLightClientExecutionProofRequestReceiptId(BaseModel):
|
|
16
|
+
light_client_head: CryptoHash
|
|
17
|
+
receipt_id: CryptoHash
|
|
18
|
+
receiver_id: AccountId
|
|
19
|
+
type: Literal['receipt']
|
|
20
|
+
|
|
21
|
+
class RpcLightClientExecutionProofRequest(RootModel[Union[RpcLightClientExecutionProofRequestSenderId, RpcLightClientExecutionProofRequestReceiptId]]):
|
|
22
|
+
pass
|
|
23
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from near_jsonrpc_models.execution_outcome_with_id_view import ExecutionOutcomeWithIdView
|
|
2
|
+
from near_jsonrpc_models.light_client_block_lite_view import LightClientBlockLiteView
|
|
3
|
+
from near_jsonrpc_models.merkle_path_item import MerklePathItem
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from typing import List
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class RpcLightClientExecutionProofResponse(BaseModel):
|
|
9
|
+
block_header_lite: LightClientBlockLiteView
|
|
10
|
+
block_proof: List[MerklePathItem]
|
|
11
|
+
outcome_proof: ExecutionOutcomeWithIdView
|
|
12
|
+
outcome_root_proof: List[MerklePathItem]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from near_jsonrpc_models.epoch_id import EpochId
|
|
2
|
+
from pydantic import BaseModel
|
|
3
|
+
from pydantic import RootModel
|
|
4
|
+
from typing import Any
|
|
5
|
+
from typing import Dict
|
|
6
|
+
from typing import Literal
|
|
7
|
+
from typing import Union
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class RpcLightClientNextBlockErrorInternalErrorInfo(BaseModel):
|
|
11
|
+
error_message: str
|
|
12
|
+
|
|
13
|
+
class RpcLightClientNextBlockErrorInternalError(BaseModel):
|
|
14
|
+
info: RpcLightClientNextBlockErrorInternalErrorInfo
|
|
15
|
+
name: Literal['INTERNAL_ERROR']
|
|
16
|
+
|
|
17
|
+
class RpcLightClientNextBlockErrorUnknownBlock(BaseModel):
|
|
18
|
+
info: Dict[str, Any]
|
|
19
|
+
name: Literal['UNKNOWN_BLOCK']
|
|
20
|
+
|
|
21
|
+
class RpcLightClientNextBlockErrorEpochOutOfBoundsInfo(BaseModel):
|
|
22
|
+
epoch_id: EpochId
|
|
23
|
+
|
|
24
|
+
class RpcLightClientNextBlockErrorEpochOutOfBounds(BaseModel):
|
|
25
|
+
info: RpcLightClientNextBlockErrorEpochOutOfBoundsInfo
|
|
26
|
+
name: Literal['EPOCH_OUT_OF_BOUNDS']
|
|
27
|
+
|
|
28
|
+
class RpcLightClientNextBlockError(RootModel[Union[RpcLightClientNextBlockErrorInternalError, RpcLightClientNextBlockErrorUnknownBlock, RpcLightClientNextBlockErrorEpochOutOfBounds]]):
|
|
29
|
+
pass
|
|
30
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""A state for the current head of a light client. More info [here](https://nomicon.io/ChainSpec/LightClient)."""
|
|
2
|
+
|
|
3
|
+
from near_jsonrpc_models.block_header_inner_lite_view import BlockHeaderInnerLiteView
|
|
4
|
+
from near_jsonrpc_models.crypto_hash import CryptoHash
|
|
5
|
+
from near_jsonrpc_models.signature import Signature
|
|
6
|
+
from near_jsonrpc_models.validator_stake_view import ValidatorStakeView
|
|
7
|
+
from pydantic import BaseModel
|
|
8
|
+
from typing import List
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class RpcLightClientNextBlockResponse(BaseModel):
|
|
12
|
+
approvals_after_next: List[Signature | None] = None
|
|
13
|
+
# Inner part of the block header that gets hashed, split into two parts, one that is sent
|
|
14
|
+
# to light clients, and the rest
|
|
15
|
+
inner_lite: BlockHeaderInnerLiteView = None
|
|
16
|
+
inner_rest_hash: CryptoHash = None
|
|
17
|
+
next_block_inner_hash: CryptoHash = None
|
|
18
|
+
next_bps: List[ValidatorStakeView] | None = None
|
|
19
|
+
prev_block_hash: CryptoHash = None
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
from near_jsonrpc_models.crypto_hash import CryptoHash
|
|
2
|
+
from near_jsonrpc_models.shard_id import ShardId
|
|
3
|
+
from pydantic import BaseModel
|
|
4
|
+
from pydantic import RootModel
|
|
5
|
+
from pydantic import conint
|
|
6
|
+
from typing import Any
|
|
7
|
+
from typing import Dict
|
|
8
|
+
from typing import Literal
|
|
9
|
+
from typing import Union
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class RpcLightClientProofErrorUnknownBlock(BaseModel):
|
|
13
|
+
info: Dict[str, Any]
|
|
14
|
+
name: Literal['UNKNOWN_BLOCK']
|
|
15
|
+
|
|
16
|
+
class RpcLightClientProofErrorInconsistentStateInfo(BaseModel):
|
|
17
|
+
execution_outcome_shard_id: ShardId
|
|
18
|
+
number_or_shards: conint(ge=0, le=4294967295)
|
|
19
|
+
|
|
20
|
+
class RpcLightClientProofErrorInconsistentState(BaseModel):
|
|
21
|
+
info: RpcLightClientProofErrorInconsistentStateInfo
|
|
22
|
+
name: Literal['INCONSISTENT_STATE']
|
|
23
|
+
|
|
24
|
+
class RpcLightClientProofErrorNotConfirmedInfo(BaseModel):
|
|
25
|
+
transaction_or_receipt_id: CryptoHash
|
|
26
|
+
|
|
27
|
+
class RpcLightClientProofErrorNotConfirmed(BaseModel):
|
|
28
|
+
info: RpcLightClientProofErrorNotConfirmedInfo
|
|
29
|
+
name: Literal['NOT_CONFIRMED']
|
|
30
|
+
|
|
31
|
+
class RpcLightClientProofErrorUnknownTransactionOrReceiptInfo(BaseModel):
|
|
32
|
+
transaction_or_receipt_id: CryptoHash
|
|
33
|
+
|
|
34
|
+
class RpcLightClientProofErrorUnknownTransactionOrReceipt(BaseModel):
|
|
35
|
+
info: RpcLightClientProofErrorUnknownTransactionOrReceiptInfo
|
|
36
|
+
name: Literal['UNKNOWN_TRANSACTION_OR_RECEIPT']
|
|
37
|
+
|
|
38
|
+
class RpcLightClientProofErrorUnavailableShardInfo(BaseModel):
|
|
39
|
+
shard_id: ShardId
|
|
40
|
+
transaction_or_receipt_id: CryptoHash
|
|
41
|
+
|
|
42
|
+
class RpcLightClientProofErrorUnavailableShard(BaseModel):
|
|
43
|
+
info: RpcLightClientProofErrorUnavailableShardInfo
|
|
44
|
+
name: Literal['UNAVAILABLE_SHARD']
|
|
45
|
+
|
|
46
|
+
class RpcLightClientProofErrorInternalErrorInfo(BaseModel):
|
|
47
|
+
error_message: str
|
|
48
|
+
|
|
49
|
+
class RpcLightClientProofErrorInternalError(BaseModel):
|
|
50
|
+
info: RpcLightClientProofErrorInternalErrorInfo
|
|
51
|
+
name: Literal['INTERNAL_ERROR']
|
|
52
|
+
|
|
53
|
+
class RpcLightClientProofError(RootModel[Union[RpcLightClientProofErrorUnknownBlock, RpcLightClientProofErrorInconsistentState, RpcLightClientProofErrorNotConfirmed, RpcLightClientProofErrorUnknownTransactionOrReceipt, RpcLightClientProofErrorUnavailableShard, RpcLightClientProofErrorInternalError]]):
|
|
54
|
+
pass
|
|
55
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from pydantic import BaseModel
|
|
2
|
+
from pydantic import RootModel
|
|
3
|
+
from typing import Literal
|
|
4
|
+
from typing import Union
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class RpcMaintenanceWindowsErrorInternalErrorInfo(BaseModel):
|
|
8
|
+
error_message: str
|
|
9
|
+
|
|
10
|
+
class RpcMaintenanceWindowsErrorInternalError(BaseModel):
|
|
11
|
+
info: RpcMaintenanceWindowsErrorInternalErrorInfo
|
|
12
|
+
name: Literal['INTERNAL_ERROR']
|
|
13
|
+
|
|
14
|
+
class RpcMaintenanceWindowsError(RootModel[Union[RpcMaintenanceWindowsErrorInternalError]]):
|
|
15
|
+
pass
|
|
16
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from pydantic import BaseModel
|
|
2
|
+
from pydantic import RootModel
|
|
3
|
+
from typing import Literal
|
|
4
|
+
from typing import Union
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class RpcNetworkInfoErrorInternalErrorInfo(BaseModel):
|
|
8
|
+
error_message: str
|
|
9
|
+
|
|
10
|
+
class RpcNetworkInfoErrorInternalError(BaseModel):
|
|
11
|
+
info: RpcNetworkInfoErrorInternalErrorInfo
|
|
12
|
+
name: Literal['INTERNAL_ERROR']
|
|
13
|
+
|
|
14
|
+
class RpcNetworkInfoError(RootModel[Union[RpcNetworkInfoErrorInternalError]]):
|
|
15
|
+
pass
|
|
16
|
+
|