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,35 @@
|
|
|
1
|
+
"""Describes information about the current epoch validator"""
|
|
2
|
+
|
|
3
|
+
from near_jsonrpc_models.account_id import AccountId
|
|
4
|
+
from near_jsonrpc_models.near_token import NearToken
|
|
5
|
+
from near_jsonrpc_models.public_key import PublicKey
|
|
6
|
+
from near_jsonrpc_models.shard_id import ShardId
|
|
7
|
+
from pydantic import BaseModel
|
|
8
|
+
from pydantic import Field
|
|
9
|
+
from pydantic import conint
|
|
10
|
+
from typing import List
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class CurrentEpochValidatorInfo(BaseModel):
|
|
14
|
+
account_id: AccountId
|
|
15
|
+
is_slashed: bool
|
|
16
|
+
num_expected_blocks: conint(ge=0, le=18446744073709551615)
|
|
17
|
+
num_expected_chunks: conint(ge=0, le=18446744073709551615) = 0
|
|
18
|
+
# Number of chunks this validator was expected to produce in each shard.
|
|
19
|
+
# Each entry in the array corresponds to the shard in the `shards_produced` array.
|
|
20
|
+
num_expected_chunks_per_shard: List[conint(ge=0, le=18446744073709551615)] = Field(default_factory=lambda: [])
|
|
21
|
+
num_expected_endorsements: conint(ge=0, le=18446744073709551615) = 0
|
|
22
|
+
# Number of chunks this validator was expected to validate and endorse in each shard.
|
|
23
|
+
# Each entry in the array corresponds to the shard in the `shards_endorsed` array.
|
|
24
|
+
num_expected_endorsements_per_shard: List[conint(ge=0, le=18446744073709551615)] = Field(default_factory=lambda: [])
|
|
25
|
+
num_produced_blocks: conint(ge=0, le=18446744073709551615)
|
|
26
|
+
num_produced_chunks: conint(ge=0, le=18446744073709551615) = 0
|
|
27
|
+
num_produced_chunks_per_shard: List[conint(ge=0, le=18446744073709551615)] = Field(default_factory=lambda: [])
|
|
28
|
+
num_produced_endorsements: conint(ge=0, le=18446744073709551615) = 0
|
|
29
|
+
num_produced_endorsements_per_shard: List[conint(ge=0, le=18446744073709551615)] = Field(default_factory=lambda: [])
|
|
30
|
+
public_key: PublicKey
|
|
31
|
+
# Shards this validator is assigned to as chunk producer in the current epoch.
|
|
32
|
+
shards: List[ShardId]
|
|
33
|
+
# Shards this validator is assigned to as chunk validator in the current epoch.
|
|
34
|
+
shards_endorsed: List[ShardId] = Field(default_factory=lambda: [ShardId(**item) for item in []])
|
|
35
|
+
stake: NearToken
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""The fees settings for a data receipt creation"""
|
|
2
|
+
|
|
3
|
+
from near_jsonrpc_models.fee import Fee
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class DataReceiptCreationConfigView(BaseModel):
|
|
8
|
+
# Base cost of creating a data receipt.
|
|
9
|
+
# Both `send` and `exec` costs are burned when a new receipt has input dependencies. The gas
|
|
10
|
+
# is charged for each input dependency. The dependencies are specified when a receipt is
|
|
11
|
+
# created using `promise_then` and `promise_batch_then`.
|
|
12
|
+
# NOTE: Any receipt with output dependencies will produce data receipts. Even if it fails.
|
|
13
|
+
# Even if the last action is not a function call (in case of success it will return empty
|
|
14
|
+
# value).
|
|
15
|
+
base_cost: Fee = None
|
|
16
|
+
# Additional cost per byte sent.
|
|
17
|
+
# Both `send` and `exec` costs are burned when a function call finishes execution and returns
|
|
18
|
+
# `N` bytes of data to every output dependency. For each output dependency the cost is
|
|
19
|
+
# `(send(sir) + exec()) * N`.
|
|
20
|
+
cost_per_byte: Fee = None
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""This action allows to execute the inner actions behalf of the defined sender."""
|
|
2
|
+
|
|
3
|
+
from near_jsonrpc_models.account_id import AccountId
|
|
4
|
+
from near_jsonrpc_models.non_delegate_action import NonDelegateAction
|
|
5
|
+
from near_jsonrpc_models.public_key import PublicKey
|
|
6
|
+
from pydantic import BaseModel
|
|
7
|
+
from pydantic import conint
|
|
8
|
+
from typing import List
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DelegateAction(BaseModel):
|
|
12
|
+
# List of actions to be executed.
|
|
13
|
+
#
|
|
14
|
+
# With the meta transactions MVP defined in NEP-366, nested
|
|
15
|
+
# DelegateActions are not allowed. A separate type is used to enforce it.
|
|
16
|
+
actions: List[NonDelegateAction]
|
|
17
|
+
# The maximal height of the block in the blockchain below which the given DelegateAction is valid.
|
|
18
|
+
max_block_height: conint(ge=0, le=18446744073709551615)
|
|
19
|
+
# Nonce to ensure that the same delegate action is not sent twice by a
|
|
20
|
+
# relayer and should match for given account's `public_key`.
|
|
21
|
+
# After this action is processed it will increment.
|
|
22
|
+
nonce: conint(ge=0, le=18446744073709551615)
|
|
23
|
+
# Public key used to sign this delegated action.
|
|
24
|
+
public_key: PublicKey
|
|
25
|
+
# Receiver of the delegated actions.
|
|
26
|
+
receiver_id: AccountId
|
|
27
|
+
# Signer of the delegated actions
|
|
28
|
+
sender_id: AccountId
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""Deploy global contract action"""
|
|
2
|
+
|
|
3
|
+
from near_jsonrpc_models.global_contract_deploy_mode import GlobalContractDeployMode
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class DeployGlobalContractAction(BaseModel):
|
|
8
|
+
# WebAssembly binary
|
|
9
|
+
code: str
|
|
10
|
+
deploy_mode: GlobalContractDeployMode
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from near_jsonrpc_models.block_status_view import BlockStatusView
|
|
2
|
+
from near_jsonrpc_models.catchup_status_view import CatchupStatusView
|
|
3
|
+
from near_jsonrpc_models.network_info_view import NetworkInfoView
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import conint
|
|
6
|
+
from typing import List
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class DetailedDebugStatus(BaseModel):
|
|
10
|
+
block_production_delay_millis: conint(ge=0, le=18446744073709551615)
|
|
11
|
+
catchup_status: List[CatchupStatusView]
|
|
12
|
+
current_head_status: BlockStatusView
|
|
13
|
+
current_header_head_status: BlockStatusView
|
|
14
|
+
network_info: NetworkInfoView
|
|
15
|
+
sync_status: str
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from near_jsonrpc_models.deterministic_account_state_init_v1 import DeterministicAccountStateInitV1
|
|
2
|
+
from near_jsonrpc_models.strict_model import StrictBaseModel
|
|
3
|
+
from pydantic import BaseModel
|
|
4
|
+
from pydantic import RootModel
|
|
5
|
+
from typing import Union
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeterministicAccountStateInitV1Option(StrictBaseModel):
|
|
9
|
+
V1: DeterministicAccountStateInitV1
|
|
10
|
+
|
|
11
|
+
class DeterministicAccountStateInit(RootModel[Union[DeterministicAccountStateInitV1Option]]):
|
|
12
|
+
pass
|
|
13
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
from near_jsonrpc_models.deterministic_account_state_init import DeterministicAccountStateInit
|
|
2
|
+
from near_jsonrpc_models.near_token import NearToken
|
|
3
|
+
from pydantic import BaseModel
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class DeterministicStateInitAction(BaseModel):
|
|
7
|
+
deposit: NearToken
|
|
8
|
+
state_init: DeterministicAccountStateInit
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Configures how to dump state to external storage."""
|
|
2
|
+
|
|
3
|
+
from near_jsonrpc_models.duration_as_std_schema_provider import DurationAsStdSchemaProvider
|
|
4
|
+
from near_jsonrpc_models.external_storage_location import ExternalStorageLocation
|
|
5
|
+
from near_jsonrpc_models.shard_id import ShardId
|
|
6
|
+
from pydantic import BaseModel
|
|
7
|
+
from typing import List
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class DumpConfig(BaseModel):
|
|
11
|
+
# Location of a json file with credentials allowing access to the bucket.
|
|
12
|
+
credentials_file: str | None = None
|
|
13
|
+
# How often to check if a new epoch has started.
|
|
14
|
+
# Feel free to set to `None`, defaults are sensible.
|
|
15
|
+
iteration_delay: DurationAsStdSchemaProvider | None = None
|
|
16
|
+
# Specifies where to write the obtained state parts.
|
|
17
|
+
location: ExternalStorageLocation = None
|
|
18
|
+
# Use in case a node that dumps state to the external storage
|
|
19
|
+
# gets in trouble.
|
|
20
|
+
restart_dump_for_shards: List[ShardId] | None = None
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""Configuration for dynamic resharding feature"""
|
|
2
|
+
|
|
3
|
+
from pydantic import BaseModel
|
|
4
|
+
from pydantic import conint
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class DynamicReshardingConfigView(BaseModel):
|
|
8
|
+
# Maximum number of shards in the network.
|
|
9
|
+
#
|
|
10
|
+
# See [`CongestionControlConfig`] for more details.
|
|
11
|
+
max_number_of_shards: conint(ge=0, le=18446744073709551615)
|
|
12
|
+
# Memory threshold over which a shard is marked for a split.
|
|
13
|
+
#
|
|
14
|
+
# See [`CongestionControlConfig`] for more details.
|
|
15
|
+
memory_usage_threshold: conint(ge=0, le=18446744073709551615)
|
|
16
|
+
# Minimum memory usage of a child shard.
|
|
17
|
+
#
|
|
18
|
+
# See [`CongestionControlConfig`] for more details.
|
|
19
|
+
min_child_memory_usage: conint(ge=0, le=18446744073709551615)
|
|
20
|
+
# Minimum number of epochs until next resharding can be scheduled.
|
|
21
|
+
#
|
|
22
|
+
# See [`CongestionControlConfig`] for more details.
|
|
23
|
+
min_epochs_between_resharding: conint(ge=0, le=18446744073709551615)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from near_jsonrpc_models.duration_as_std_schema_provider import DurationAsStdSchemaProvider
|
|
2
|
+
from pydantic import BaseModel
|
|
3
|
+
from pydantic import conint
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class EpochSyncConfig(BaseModel):
|
|
7
|
+
# If true, even if the node started from genesis, it will not perform epoch sync.
|
|
8
|
+
# There should be no reason to set this flag in production, because on both mainnet
|
|
9
|
+
# and testnet it would be infeasible to catch up from genesis without epoch sync.
|
|
10
|
+
disable_epoch_sync_for_bootstrapping: bool = False
|
|
11
|
+
# This serves as two purposes: (1) the node will not epoch sync and instead resort to
|
|
12
|
+
# header sync, if the genesis block is within this many blocks from the current block;
|
|
13
|
+
# (2) the node will reject an epoch sync proof if the provided proof is for an epoch
|
|
14
|
+
# that is more than this many blocks behind the current block.
|
|
15
|
+
epoch_sync_horizon: conint(ge=0, le=18446744073709551615) = None
|
|
16
|
+
# If true, the node will ignore epoch sync requests from the network. It is strongly
|
|
17
|
+
# recommended not to set this flag, because it will prevent other nodes from
|
|
18
|
+
# bootstrapping. This flag is only included as a kill-switch and may be removed in a
|
|
19
|
+
# future release. Please note that epoch sync requests are heavily rate limited and
|
|
20
|
+
# cached, and therefore should not affect the performance of the node or introduce
|
|
21
|
+
# any non-negligible increase in network traffic.
|
|
22
|
+
ignore_epoch_sync_network_requests: bool = False
|
|
23
|
+
# Timeout for epoch sync requests. The node will continue retrying indefinitely even
|
|
24
|
+
# if this timeout is exceeded.
|
|
25
|
+
timeout_for_epoch_sync: DurationAsStdSchemaProvider = None
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from near_jsonrpc_models.genesis_config_error import GenesisConfigError
|
|
2
|
+
from near_jsonrpc_models.internal_error import InternalError
|
|
3
|
+
from near_jsonrpc_models.rpc_request_validation_error_kind import RpcRequestValidationErrorKind
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import RootModel
|
|
6
|
+
from typing import Literal
|
|
7
|
+
from typing import Union
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ErrorWrapperForGenesisConfigErrorRequestValidationError(BaseModel):
|
|
11
|
+
cause: RpcRequestValidationErrorKind
|
|
12
|
+
name: Literal['REQUEST_VALIDATION_ERROR']
|
|
13
|
+
|
|
14
|
+
class ErrorWrapperForGenesisConfigErrorHandlerError(BaseModel):
|
|
15
|
+
cause: GenesisConfigError
|
|
16
|
+
name: Literal['HANDLER_ERROR']
|
|
17
|
+
|
|
18
|
+
class ErrorWrapperForGenesisConfigErrorInternalError(BaseModel):
|
|
19
|
+
cause: InternalError
|
|
20
|
+
name: Literal['INTERNAL_ERROR']
|
|
21
|
+
|
|
22
|
+
class ErrorWrapperForGenesisConfigError(RootModel[Union[ErrorWrapperForGenesisConfigErrorRequestValidationError, ErrorWrapperForGenesisConfigErrorHandlerError, ErrorWrapperForGenesisConfigErrorInternalError]]):
|
|
23
|
+
pass
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from near_jsonrpc_models.internal_error import InternalError
|
|
2
|
+
from near_jsonrpc_models.rpc_block_error import RpcBlockError
|
|
3
|
+
from near_jsonrpc_models.rpc_request_validation_error_kind import RpcRequestValidationErrorKind
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import RootModel
|
|
6
|
+
from typing import Literal
|
|
7
|
+
from typing import Union
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ErrorWrapperForRpcBlockErrorRequestValidationError(BaseModel):
|
|
11
|
+
cause: RpcRequestValidationErrorKind
|
|
12
|
+
name: Literal['REQUEST_VALIDATION_ERROR']
|
|
13
|
+
|
|
14
|
+
class ErrorWrapperForRpcBlockErrorHandlerError(BaseModel):
|
|
15
|
+
cause: RpcBlockError
|
|
16
|
+
name: Literal['HANDLER_ERROR']
|
|
17
|
+
|
|
18
|
+
class ErrorWrapperForRpcBlockErrorInternalError(BaseModel):
|
|
19
|
+
cause: InternalError
|
|
20
|
+
name: Literal['INTERNAL_ERROR']
|
|
21
|
+
|
|
22
|
+
class ErrorWrapperForRpcBlockError(RootModel[Union[ErrorWrapperForRpcBlockErrorRequestValidationError, ErrorWrapperForRpcBlockErrorHandlerError, ErrorWrapperForRpcBlockErrorInternalError]]):
|
|
23
|
+
pass
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from near_jsonrpc_models.internal_error import InternalError
|
|
2
|
+
from near_jsonrpc_models.rpc_call_function_error import RpcCallFunctionError
|
|
3
|
+
from near_jsonrpc_models.rpc_request_validation_error_kind import RpcRequestValidationErrorKind
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import RootModel
|
|
6
|
+
from typing import Literal
|
|
7
|
+
from typing import Union
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ErrorWrapperForRpcCallFunctionErrorRequestValidationError(BaseModel):
|
|
11
|
+
cause: RpcRequestValidationErrorKind
|
|
12
|
+
name: Literal['REQUEST_VALIDATION_ERROR']
|
|
13
|
+
|
|
14
|
+
class ErrorWrapperForRpcCallFunctionErrorHandlerError(BaseModel):
|
|
15
|
+
cause: RpcCallFunctionError
|
|
16
|
+
name: Literal['HANDLER_ERROR']
|
|
17
|
+
|
|
18
|
+
class ErrorWrapperForRpcCallFunctionErrorInternalError(BaseModel):
|
|
19
|
+
cause: InternalError
|
|
20
|
+
name: Literal['INTERNAL_ERROR']
|
|
21
|
+
|
|
22
|
+
class ErrorWrapperForRpcCallFunctionError(RootModel[Union[ErrorWrapperForRpcCallFunctionErrorRequestValidationError, ErrorWrapperForRpcCallFunctionErrorHandlerError, ErrorWrapperForRpcCallFunctionErrorInternalError]]):
|
|
23
|
+
pass
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from near_jsonrpc_models.internal_error import InternalError
|
|
2
|
+
from near_jsonrpc_models.rpc_chunk_error import RpcChunkError
|
|
3
|
+
from near_jsonrpc_models.rpc_request_validation_error_kind import RpcRequestValidationErrorKind
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import RootModel
|
|
6
|
+
from typing import Literal
|
|
7
|
+
from typing import Union
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ErrorWrapperForRpcChunkErrorRequestValidationError(BaseModel):
|
|
11
|
+
cause: RpcRequestValidationErrorKind
|
|
12
|
+
name: Literal['REQUEST_VALIDATION_ERROR']
|
|
13
|
+
|
|
14
|
+
class ErrorWrapperForRpcChunkErrorHandlerError(BaseModel):
|
|
15
|
+
cause: RpcChunkError
|
|
16
|
+
name: Literal['HANDLER_ERROR']
|
|
17
|
+
|
|
18
|
+
class ErrorWrapperForRpcChunkErrorInternalError(BaseModel):
|
|
19
|
+
cause: InternalError
|
|
20
|
+
name: Literal['INTERNAL_ERROR']
|
|
21
|
+
|
|
22
|
+
class ErrorWrapperForRpcChunkError(RootModel[Union[ErrorWrapperForRpcChunkErrorRequestValidationError, ErrorWrapperForRpcChunkErrorHandlerError, ErrorWrapperForRpcChunkErrorInternalError]]):
|
|
23
|
+
pass
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from near_jsonrpc_models.internal_error import InternalError
|
|
2
|
+
from near_jsonrpc_models.rpc_client_config_error import RpcClientConfigError
|
|
3
|
+
from near_jsonrpc_models.rpc_request_validation_error_kind import RpcRequestValidationErrorKind
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import RootModel
|
|
6
|
+
from typing import Literal
|
|
7
|
+
from typing import Union
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ErrorWrapperForRpcClientConfigErrorRequestValidationError(BaseModel):
|
|
11
|
+
cause: RpcRequestValidationErrorKind
|
|
12
|
+
name: Literal['REQUEST_VALIDATION_ERROR']
|
|
13
|
+
|
|
14
|
+
class ErrorWrapperForRpcClientConfigErrorHandlerError(BaseModel):
|
|
15
|
+
cause: RpcClientConfigError
|
|
16
|
+
name: Literal['HANDLER_ERROR']
|
|
17
|
+
|
|
18
|
+
class ErrorWrapperForRpcClientConfigErrorInternalError(BaseModel):
|
|
19
|
+
cause: InternalError
|
|
20
|
+
name: Literal['INTERNAL_ERROR']
|
|
21
|
+
|
|
22
|
+
class ErrorWrapperForRpcClientConfigError(RootModel[Union[ErrorWrapperForRpcClientConfigErrorRequestValidationError, ErrorWrapperForRpcClientConfigErrorHandlerError, ErrorWrapperForRpcClientConfigErrorInternalError]]):
|
|
23
|
+
pass
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from near_jsonrpc_models.internal_error import InternalError
|
|
2
|
+
from near_jsonrpc_models.rpc_gas_price_error import RpcGasPriceError
|
|
3
|
+
from near_jsonrpc_models.rpc_request_validation_error_kind import RpcRequestValidationErrorKind
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import RootModel
|
|
6
|
+
from typing import Literal
|
|
7
|
+
from typing import Union
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ErrorWrapperForRpcGasPriceErrorRequestValidationError(BaseModel):
|
|
11
|
+
cause: RpcRequestValidationErrorKind
|
|
12
|
+
name: Literal['REQUEST_VALIDATION_ERROR']
|
|
13
|
+
|
|
14
|
+
class ErrorWrapperForRpcGasPriceErrorHandlerError(BaseModel):
|
|
15
|
+
cause: RpcGasPriceError
|
|
16
|
+
name: Literal['HANDLER_ERROR']
|
|
17
|
+
|
|
18
|
+
class ErrorWrapperForRpcGasPriceErrorInternalError(BaseModel):
|
|
19
|
+
cause: InternalError
|
|
20
|
+
name: Literal['INTERNAL_ERROR']
|
|
21
|
+
|
|
22
|
+
class ErrorWrapperForRpcGasPriceError(RootModel[Union[ErrorWrapperForRpcGasPriceErrorRequestValidationError, ErrorWrapperForRpcGasPriceErrorHandlerError, ErrorWrapperForRpcGasPriceErrorInternalError]]):
|
|
23
|
+
pass
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from near_jsonrpc_models.internal_error import InternalError
|
|
2
|
+
from near_jsonrpc_models.rpc_light_client_next_block_error import RpcLightClientNextBlockError
|
|
3
|
+
from near_jsonrpc_models.rpc_request_validation_error_kind import RpcRequestValidationErrorKind
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import RootModel
|
|
6
|
+
from typing import Literal
|
|
7
|
+
from typing import Union
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ErrorWrapperForRpcLightClientNextBlockErrorRequestValidationError(BaseModel):
|
|
11
|
+
cause: RpcRequestValidationErrorKind
|
|
12
|
+
name: Literal['REQUEST_VALIDATION_ERROR']
|
|
13
|
+
|
|
14
|
+
class ErrorWrapperForRpcLightClientNextBlockErrorHandlerError(BaseModel):
|
|
15
|
+
cause: RpcLightClientNextBlockError
|
|
16
|
+
name: Literal['HANDLER_ERROR']
|
|
17
|
+
|
|
18
|
+
class ErrorWrapperForRpcLightClientNextBlockErrorInternalError(BaseModel):
|
|
19
|
+
cause: InternalError
|
|
20
|
+
name: Literal['INTERNAL_ERROR']
|
|
21
|
+
|
|
22
|
+
class ErrorWrapperForRpcLightClientNextBlockError(RootModel[Union[ErrorWrapperForRpcLightClientNextBlockErrorRequestValidationError, ErrorWrapperForRpcLightClientNextBlockErrorHandlerError, ErrorWrapperForRpcLightClientNextBlockErrorInternalError]]):
|
|
23
|
+
pass
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from near_jsonrpc_models.internal_error import InternalError
|
|
2
|
+
from near_jsonrpc_models.rpc_light_client_proof_error import RpcLightClientProofError
|
|
3
|
+
from near_jsonrpc_models.rpc_request_validation_error_kind import RpcRequestValidationErrorKind
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import RootModel
|
|
6
|
+
from typing import Literal
|
|
7
|
+
from typing import Union
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ErrorWrapperForRpcLightClientProofErrorRequestValidationError(BaseModel):
|
|
11
|
+
cause: RpcRequestValidationErrorKind
|
|
12
|
+
name: Literal['REQUEST_VALIDATION_ERROR']
|
|
13
|
+
|
|
14
|
+
class ErrorWrapperForRpcLightClientProofErrorHandlerError(BaseModel):
|
|
15
|
+
cause: RpcLightClientProofError
|
|
16
|
+
name: Literal['HANDLER_ERROR']
|
|
17
|
+
|
|
18
|
+
class ErrorWrapperForRpcLightClientProofErrorInternalError(BaseModel):
|
|
19
|
+
cause: InternalError
|
|
20
|
+
name: Literal['INTERNAL_ERROR']
|
|
21
|
+
|
|
22
|
+
class ErrorWrapperForRpcLightClientProofError(RootModel[Union[ErrorWrapperForRpcLightClientProofErrorRequestValidationError, ErrorWrapperForRpcLightClientProofErrorHandlerError, ErrorWrapperForRpcLightClientProofErrorInternalError]]):
|
|
23
|
+
pass
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from near_jsonrpc_models.internal_error import InternalError
|
|
2
|
+
from near_jsonrpc_models.rpc_maintenance_windows_error import RpcMaintenanceWindowsError
|
|
3
|
+
from near_jsonrpc_models.rpc_request_validation_error_kind import RpcRequestValidationErrorKind
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import RootModel
|
|
6
|
+
from typing import Literal
|
|
7
|
+
from typing import Union
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ErrorWrapperForRpcMaintenanceWindowsErrorRequestValidationError(BaseModel):
|
|
11
|
+
cause: RpcRequestValidationErrorKind
|
|
12
|
+
name: Literal['REQUEST_VALIDATION_ERROR']
|
|
13
|
+
|
|
14
|
+
class ErrorWrapperForRpcMaintenanceWindowsErrorHandlerError(BaseModel):
|
|
15
|
+
cause: RpcMaintenanceWindowsError
|
|
16
|
+
name: Literal['HANDLER_ERROR']
|
|
17
|
+
|
|
18
|
+
class ErrorWrapperForRpcMaintenanceWindowsErrorInternalError(BaseModel):
|
|
19
|
+
cause: InternalError
|
|
20
|
+
name: Literal['INTERNAL_ERROR']
|
|
21
|
+
|
|
22
|
+
class ErrorWrapperForRpcMaintenanceWindowsError(RootModel[Union[ErrorWrapperForRpcMaintenanceWindowsErrorRequestValidationError, ErrorWrapperForRpcMaintenanceWindowsErrorHandlerError, ErrorWrapperForRpcMaintenanceWindowsErrorInternalError]]):
|
|
23
|
+
pass
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from near_jsonrpc_models.internal_error import InternalError
|
|
2
|
+
from near_jsonrpc_models.rpc_network_info_error import RpcNetworkInfoError
|
|
3
|
+
from near_jsonrpc_models.rpc_request_validation_error_kind import RpcRequestValidationErrorKind
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import RootModel
|
|
6
|
+
from typing import Literal
|
|
7
|
+
from typing import Union
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ErrorWrapperForRpcNetworkInfoErrorRequestValidationError(BaseModel):
|
|
11
|
+
cause: RpcRequestValidationErrorKind
|
|
12
|
+
name: Literal['REQUEST_VALIDATION_ERROR']
|
|
13
|
+
|
|
14
|
+
class ErrorWrapperForRpcNetworkInfoErrorHandlerError(BaseModel):
|
|
15
|
+
cause: RpcNetworkInfoError
|
|
16
|
+
name: Literal['HANDLER_ERROR']
|
|
17
|
+
|
|
18
|
+
class ErrorWrapperForRpcNetworkInfoErrorInternalError(BaseModel):
|
|
19
|
+
cause: InternalError
|
|
20
|
+
name: Literal['INTERNAL_ERROR']
|
|
21
|
+
|
|
22
|
+
class ErrorWrapperForRpcNetworkInfoError(RootModel[Union[ErrorWrapperForRpcNetworkInfoErrorRequestValidationError, ErrorWrapperForRpcNetworkInfoErrorHandlerError, ErrorWrapperForRpcNetworkInfoErrorInternalError]]):
|
|
23
|
+
pass
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from near_jsonrpc_models.internal_error import InternalError
|
|
2
|
+
from near_jsonrpc_models.rpc_protocol_config_error import RpcProtocolConfigError
|
|
3
|
+
from near_jsonrpc_models.rpc_request_validation_error_kind import RpcRequestValidationErrorKind
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import RootModel
|
|
6
|
+
from typing import Literal
|
|
7
|
+
from typing import Union
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ErrorWrapperForRpcProtocolConfigErrorRequestValidationError(BaseModel):
|
|
11
|
+
cause: RpcRequestValidationErrorKind
|
|
12
|
+
name: Literal['REQUEST_VALIDATION_ERROR']
|
|
13
|
+
|
|
14
|
+
class ErrorWrapperForRpcProtocolConfigErrorHandlerError(BaseModel):
|
|
15
|
+
cause: RpcProtocolConfigError
|
|
16
|
+
name: Literal['HANDLER_ERROR']
|
|
17
|
+
|
|
18
|
+
class ErrorWrapperForRpcProtocolConfigErrorInternalError(BaseModel):
|
|
19
|
+
cause: InternalError
|
|
20
|
+
name: Literal['INTERNAL_ERROR']
|
|
21
|
+
|
|
22
|
+
class ErrorWrapperForRpcProtocolConfigError(RootModel[Union[ErrorWrapperForRpcProtocolConfigErrorRequestValidationError, ErrorWrapperForRpcProtocolConfigErrorHandlerError, ErrorWrapperForRpcProtocolConfigErrorInternalError]]):
|
|
23
|
+
pass
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from near_jsonrpc_models.internal_error import InternalError
|
|
2
|
+
from near_jsonrpc_models.rpc_query_error import RpcQueryError
|
|
3
|
+
from near_jsonrpc_models.rpc_request_validation_error_kind import RpcRequestValidationErrorKind
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import RootModel
|
|
6
|
+
from typing import Literal
|
|
7
|
+
from typing import Union
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ErrorWrapperForRpcQueryErrorRequestValidationError(BaseModel):
|
|
11
|
+
cause: RpcRequestValidationErrorKind
|
|
12
|
+
name: Literal['REQUEST_VALIDATION_ERROR']
|
|
13
|
+
|
|
14
|
+
class ErrorWrapperForRpcQueryErrorHandlerError(BaseModel):
|
|
15
|
+
cause: RpcQueryError
|
|
16
|
+
name: Literal['HANDLER_ERROR']
|
|
17
|
+
|
|
18
|
+
class ErrorWrapperForRpcQueryErrorInternalError(BaseModel):
|
|
19
|
+
cause: InternalError
|
|
20
|
+
name: Literal['INTERNAL_ERROR']
|
|
21
|
+
|
|
22
|
+
class ErrorWrapperForRpcQueryError(RootModel[Union[ErrorWrapperForRpcQueryErrorRequestValidationError, ErrorWrapperForRpcQueryErrorHandlerError, ErrorWrapperForRpcQueryErrorInternalError]]):
|
|
23
|
+
pass
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from near_jsonrpc_models.internal_error import InternalError
|
|
2
|
+
from near_jsonrpc_models.rpc_receipt_error import RpcReceiptError
|
|
3
|
+
from near_jsonrpc_models.rpc_request_validation_error_kind import RpcRequestValidationErrorKind
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import RootModel
|
|
6
|
+
from typing import Literal
|
|
7
|
+
from typing import Union
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ErrorWrapperForRpcReceiptErrorRequestValidationError(BaseModel):
|
|
11
|
+
cause: RpcRequestValidationErrorKind
|
|
12
|
+
name: Literal['REQUEST_VALIDATION_ERROR']
|
|
13
|
+
|
|
14
|
+
class ErrorWrapperForRpcReceiptErrorHandlerError(BaseModel):
|
|
15
|
+
cause: RpcReceiptError
|
|
16
|
+
name: Literal['HANDLER_ERROR']
|
|
17
|
+
|
|
18
|
+
class ErrorWrapperForRpcReceiptErrorInternalError(BaseModel):
|
|
19
|
+
cause: InternalError
|
|
20
|
+
name: Literal['INTERNAL_ERROR']
|
|
21
|
+
|
|
22
|
+
class ErrorWrapperForRpcReceiptError(RootModel[Union[ErrorWrapperForRpcReceiptErrorRequestValidationError, ErrorWrapperForRpcReceiptErrorHandlerError, ErrorWrapperForRpcReceiptErrorInternalError]]):
|
|
23
|
+
pass
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from near_jsonrpc_models.internal_error import InternalError
|
|
2
|
+
from near_jsonrpc_models.rpc_request_validation_error_kind import RpcRequestValidationErrorKind
|
|
3
|
+
from near_jsonrpc_models.rpc_split_storage_info_error import RpcSplitStorageInfoError
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
from pydantic import RootModel
|
|
6
|
+
from typing import Literal
|
|
7
|
+
from typing import Union
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ErrorWrapperForRpcSplitStorageInfoErrorRequestValidationError(BaseModel):
|
|
11
|
+
cause: RpcRequestValidationErrorKind
|
|
12
|
+
name: Literal['REQUEST_VALIDATION_ERROR']
|
|
13
|
+
|
|
14
|
+
class ErrorWrapperForRpcSplitStorageInfoErrorHandlerError(BaseModel):
|
|
15
|
+
cause: RpcSplitStorageInfoError
|
|
16
|
+
name: Literal['HANDLER_ERROR']
|
|
17
|
+
|
|
18
|
+
class ErrorWrapperForRpcSplitStorageInfoErrorInternalError(BaseModel):
|
|
19
|
+
cause: InternalError
|
|
20
|
+
name: Literal['INTERNAL_ERROR']
|
|
21
|
+
|
|
22
|
+
class ErrorWrapperForRpcSplitStorageInfoError(RootModel[Union[ErrorWrapperForRpcSplitStorageInfoErrorRequestValidationError, ErrorWrapperForRpcSplitStorageInfoErrorHandlerError, ErrorWrapperForRpcSplitStorageInfoErrorInternalError]]):
|
|
23
|
+
pass
|
|
24
|
+
|