capo-managedblockchain-query 0.2.0__tar.gz → 0.4.0__tar.gz
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.
- {capo_managedblockchain_query-0.2.0/src/capo_managedblockchain_query.egg-info → capo_managedblockchain_query-0.4.0}/PKG-INFO +1 -1
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/pyproject.toml +1 -1
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_operations/tieton_chain_query_service/batch_get_token_balance.py +3 -2
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_operations/tieton_chain_query_service/get_asset_contract.py +3 -2
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_operations/tieton_chain_query_service/get_token_balance.py +3 -2
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_operations/tieton_chain_query_service/get_transaction.py +3 -2
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_operations/tieton_chain_query_service/list_asset_contracts.py +3 -2
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_operations/tieton_chain_query_service/list_filtered_transaction_events.py +3 -2
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_operations/tieton_chain_query_service/list_token_balances.py +3 -2
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_operations/tieton_chain_query_service/list_transaction_events.py +3 -2
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_operations/tieton_chain_query_service/list_transactions.py +3 -2
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_services/_pipeline.py +17 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_services/async_managed_blockchain_query.py +4 -4
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_services/managed_blockchain_query.py +4 -4
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/confirmation_status_filter.py +1 -1
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/list_transactions_input.py +1 -1
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0/src/capo_managedblockchain_query.egg-info}/PKG-INFO +1 -1
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/LICENSE +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/README.md +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/setup.cfg +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/__init__.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_async.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_auth/_identity.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_auth/_providers.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_auth/_signers.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_auth/_sigv4.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_auth/_zapros_handler.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_body.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_iter.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_pagination.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_protocol/__init__.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_protocol/errors.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_protocol/eventstream.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_protocol/serialize.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_protocol/xml.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_rule_engine/__init__.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_rule_engine/_aws_partition.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_rule_engine/_endpoint_rule_set.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_rule_engine/_endpoint_runtime.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/_services/_aws_config.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/errors/__init__.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/errors/_base.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/errors/access_denied_exception.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/errors/internal_server_exception.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/errors/resource_not_found_exception.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/errors/service_quota_exceeded_exception.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/errors/throttling_exception.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/errors/validation_exception.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/py.typed +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/_prelude/blob.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/_prelude/timestamp.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/address_identifier_filter.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/asset_contract.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/asset_contract_list.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/batch_get_token_balance_error_item.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/batch_get_token_balance_errors.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/batch_get_token_balance_input.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/batch_get_token_balance_input_item.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/batch_get_token_balance_output.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/batch_get_token_balance_output_item.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/batch_get_token_balance_output_list.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/block_hash.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/blockchain_instant.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/chain_address.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/chain_addresses.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/confirmation_status.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/confirmation_status_include_list.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/contract_filter.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/contract_identifier.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/contract_metadata.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/error_type.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/exception_message.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/execution_status.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/get_asset_contract_input.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/get_asset_contract_output.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/get_token_balance_input.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/get_token_balance_input_list.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/get_token_balance_output.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/get_transaction_input.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/get_transaction_output.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/list_asset_contracts_input.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/list_asset_contracts_output.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/list_filtered_transaction_events_input.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/list_filtered_transaction_events_output.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/list_filtered_transaction_events_sort.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/list_filtered_transaction_events_sort_by.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/list_token_balances_input.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/list_token_balances_output.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/list_transaction_events_input.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/list_transaction_events_output.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/list_transactions_output.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/list_transactions_sort.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/list_transactions_sort_by.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/next_token.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/owner_filter.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/owner_identifier.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/query_network.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/query_token_id.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/query_token_standard.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/query_transaction_event_type.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/query_transaction_hash.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/query_transaction_id.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/quota_code.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/resource_id.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/resource_type.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/service_code.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/sort_order.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/time_filter.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/token_balance.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/token_balance_list.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/token_filter.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/token_identifier.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/transaction.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/transaction_event.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/transaction_event_list.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/transaction_output_item.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/transaction_output_list.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/validation_exception_field.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/validation_exception_field_list.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/validation_exception_reason.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query/types/vout_filter.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query.egg-info/SOURCES.txt +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query.egg-info/dependency_links.txt +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query.egg-info/requires.txt +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/src/capo_managedblockchain_query.egg-info/top_level.txt +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/tests/test_body.py +0 -0
- {capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/tests/test_sigv4.py +0 -0
|
@@ -30,6 +30,7 @@ from capo_managedblockchain_query._rule_engine._endpoint_rule_set import (
|
|
|
30
30
|
from capo_managedblockchain_query._services._pipeline import (
|
|
31
31
|
AsyncOperationOptions,
|
|
32
32
|
OperationOptions,
|
|
33
|
+
raise_error,
|
|
33
34
|
)
|
|
34
35
|
from capo_managedblockchain_query.errors import UnknownServiceError
|
|
35
36
|
|
|
@@ -156,7 +157,7 @@ def batch_get_token_balance(
|
|
|
156
157
|
try:
|
|
157
158
|
if response.status >= 300:
|
|
158
159
|
response.read()
|
|
159
|
-
|
|
160
|
+
raise_error(response, handle_error)
|
|
160
161
|
return handle_response(response), response
|
|
161
162
|
except BaseException:
|
|
162
163
|
response.close()
|
|
@@ -174,7 +175,7 @@ async def async_batch_get_token_balance(
|
|
|
174
175
|
try:
|
|
175
176
|
if response.status >= 300:
|
|
176
177
|
await response.aread()
|
|
177
|
-
|
|
178
|
+
raise_error(response, handle_error)
|
|
178
179
|
return await async_handle_response(response), response
|
|
179
180
|
except BaseException:
|
|
180
181
|
await response.aclose()
|
|
@@ -29,6 +29,7 @@ from capo_managedblockchain_query._rule_engine._endpoint_rule_set import (
|
|
|
29
29
|
from capo_managedblockchain_query._services._pipeline import (
|
|
30
30
|
AsyncOperationOptions,
|
|
31
31
|
OperationOptions,
|
|
32
|
+
raise_error,
|
|
32
33
|
)
|
|
33
34
|
from capo_managedblockchain_query.errors import UnknownServiceError
|
|
34
35
|
|
|
@@ -159,7 +160,7 @@ def get_asset_contract(
|
|
|
159
160
|
try:
|
|
160
161
|
if response.status >= 300:
|
|
161
162
|
response.read()
|
|
162
|
-
|
|
163
|
+
raise_error(response, handle_error)
|
|
163
164
|
return handle_response(response), response
|
|
164
165
|
except BaseException:
|
|
165
166
|
response.close()
|
|
@@ -177,7 +178,7 @@ async def async_get_asset_contract(
|
|
|
177
178
|
try:
|
|
178
179
|
if response.status >= 300:
|
|
179
180
|
await response.aread()
|
|
180
|
-
|
|
181
|
+
raise_error(response, handle_error)
|
|
181
182
|
return await async_handle_response(response), response
|
|
182
183
|
except BaseException:
|
|
183
184
|
await response.aclose()
|
|
@@ -30,6 +30,7 @@ from capo_managedblockchain_query._rule_engine._endpoint_rule_set import (
|
|
|
30
30
|
from capo_managedblockchain_query._services._pipeline import (
|
|
31
31
|
AsyncOperationOptions,
|
|
32
32
|
OperationOptions,
|
|
33
|
+
raise_error,
|
|
33
34
|
)
|
|
34
35
|
from capo_managedblockchain_query.errors import UnknownServiceError
|
|
35
36
|
|
|
@@ -156,7 +157,7 @@ def get_token_balance(
|
|
|
156
157
|
try:
|
|
157
158
|
if response.status >= 300:
|
|
158
159
|
response.read()
|
|
159
|
-
|
|
160
|
+
raise_error(response, handle_error)
|
|
160
161
|
return handle_response(response), response
|
|
161
162
|
except BaseException:
|
|
162
163
|
response.close()
|
|
@@ -174,7 +175,7 @@ async def async_get_token_balance(
|
|
|
174
175
|
try:
|
|
175
176
|
if response.status >= 300:
|
|
176
177
|
await response.aread()
|
|
177
|
-
|
|
178
|
+
raise_error(response, handle_error)
|
|
178
179
|
return await async_handle_response(response), response
|
|
179
180
|
except BaseException:
|
|
180
181
|
await response.aclose()
|
|
@@ -28,6 +28,7 @@ from capo_managedblockchain_query._rule_engine._endpoint_rule_set import (
|
|
|
28
28
|
from capo_managedblockchain_query._services._pipeline import (
|
|
29
29
|
AsyncOperationOptions,
|
|
30
30
|
OperationOptions,
|
|
31
|
+
raise_error,
|
|
31
32
|
)
|
|
32
33
|
from capo_managedblockchain_query.errors import UnknownServiceError
|
|
33
34
|
|
|
@@ -152,7 +153,7 @@ def get_transaction(
|
|
|
152
153
|
try:
|
|
153
154
|
if response.status >= 300:
|
|
154
155
|
response.read()
|
|
155
|
-
|
|
156
|
+
raise_error(response, handle_error)
|
|
156
157
|
return handle_response(response), response
|
|
157
158
|
except BaseException:
|
|
158
159
|
response.close()
|
|
@@ -170,7 +171,7 @@ async def async_get_transaction(
|
|
|
170
171
|
try:
|
|
171
172
|
if response.status >= 300:
|
|
172
173
|
await response.aread()
|
|
173
|
-
|
|
174
|
+
raise_error(response, handle_error)
|
|
174
175
|
return await async_handle_response(response), response
|
|
175
176
|
except BaseException:
|
|
176
177
|
await response.aclose()
|
|
@@ -28,6 +28,7 @@ from capo_managedblockchain_query._rule_engine._endpoint_rule_set import (
|
|
|
28
28
|
from capo_managedblockchain_query._services._pipeline import (
|
|
29
29
|
AsyncOperationOptions,
|
|
30
30
|
OperationOptions,
|
|
31
|
+
raise_error,
|
|
31
32
|
)
|
|
32
33
|
from capo_managedblockchain_query.errors import UnknownServiceError
|
|
33
34
|
|
|
@@ -150,7 +151,7 @@ def list_asset_contracts(
|
|
|
150
151
|
try:
|
|
151
152
|
if response.status >= 300:
|
|
152
153
|
response.read()
|
|
153
|
-
|
|
154
|
+
raise_error(response, handle_error)
|
|
154
155
|
return handle_response(response), response
|
|
155
156
|
except BaseException:
|
|
156
157
|
response.close()
|
|
@@ -168,7 +169,7 @@ async def async_list_asset_contracts(
|
|
|
168
169
|
try:
|
|
169
170
|
if response.status >= 300:
|
|
170
171
|
await response.aread()
|
|
171
|
-
|
|
172
|
+
raise_error(response, handle_error)
|
|
172
173
|
return await async_handle_response(response), response
|
|
173
174
|
except BaseException:
|
|
174
175
|
await response.aclose()
|
|
@@ -32,6 +32,7 @@ from capo_managedblockchain_query._rule_engine._endpoint_rule_set import (
|
|
|
32
32
|
from capo_managedblockchain_query._services._pipeline import (
|
|
33
33
|
AsyncOperationOptions,
|
|
34
34
|
OperationOptions,
|
|
35
|
+
raise_error,
|
|
35
36
|
)
|
|
36
37
|
from capo_managedblockchain_query.errors import UnknownServiceError
|
|
37
38
|
|
|
@@ -154,7 +155,7 @@ def list_filtered_transaction_events(
|
|
|
154
155
|
try:
|
|
155
156
|
if response.status >= 300:
|
|
156
157
|
response.read()
|
|
157
|
-
|
|
158
|
+
raise_error(response, handle_error)
|
|
158
159
|
return handle_response(response), response
|
|
159
160
|
except BaseException:
|
|
160
161
|
response.close()
|
|
@@ -172,7 +173,7 @@ async def async_list_filtered_transaction_events(
|
|
|
172
173
|
try:
|
|
173
174
|
if response.status >= 300:
|
|
174
175
|
await response.aread()
|
|
175
|
-
|
|
176
|
+
raise_error(response, handle_error)
|
|
176
177
|
return await async_handle_response(response), response
|
|
177
178
|
except BaseException:
|
|
178
179
|
await response.aclose()
|
|
@@ -29,6 +29,7 @@ from capo_managedblockchain_query._rule_engine._endpoint_rule_set import (
|
|
|
29
29
|
from capo_managedblockchain_query._services._pipeline import (
|
|
30
30
|
AsyncOperationOptions,
|
|
31
31
|
OperationOptions,
|
|
32
|
+
raise_error,
|
|
32
33
|
)
|
|
33
34
|
from capo_managedblockchain_query.errors import UnknownServiceError
|
|
34
35
|
|
|
@@ -151,7 +152,7 @@ def list_token_balances(
|
|
|
151
152
|
try:
|
|
152
153
|
if response.status >= 300:
|
|
153
154
|
response.read()
|
|
154
|
-
|
|
155
|
+
raise_error(response, handle_error)
|
|
155
156
|
return handle_response(response), response
|
|
156
157
|
except BaseException:
|
|
157
158
|
response.close()
|
|
@@ -169,7 +170,7 @@ async def async_list_token_balances(
|
|
|
169
170
|
try:
|
|
170
171
|
if response.status >= 300:
|
|
171
172
|
await response.aread()
|
|
172
|
-
|
|
173
|
+
raise_error(response, handle_error)
|
|
173
174
|
return await async_handle_response(response), response
|
|
174
175
|
except BaseException:
|
|
175
176
|
await response.aclose()
|
|
@@ -27,6 +27,7 @@ from capo_managedblockchain_query._rule_engine._endpoint_rule_set import (
|
|
|
27
27
|
from capo_managedblockchain_query._services._pipeline import (
|
|
28
28
|
AsyncOperationOptions,
|
|
29
29
|
OperationOptions,
|
|
30
|
+
raise_error,
|
|
30
31
|
)
|
|
31
32
|
from capo_managedblockchain_query.errors import UnknownServiceError
|
|
32
33
|
|
|
@@ -149,7 +150,7 @@ def list_transaction_events(
|
|
|
149
150
|
try:
|
|
150
151
|
if response.status >= 300:
|
|
151
152
|
response.read()
|
|
152
|
-
|
|
153
|
+
raise_error(response, handle_error)
|
|
153
154
|
return handle_response(response), response
|
|
154
155
|
except BaseException:
|
|
155
156
|
response.close()
|
|
@@ -167,7 +168,7 @@ async def async_list_transaction_events(
|
|
|
167
168
|
try:
|
|
168
169
|
if response.status >= 300:
|
|
169
170
|
await response.aread()
|
|
170
|
-
|
|
171
|
+
raise_error(response, handle_error)
|
|
171
172
|
return await async_handle_response(response), response
|
|
172
173
|
except BaseException:
|
|
173
174
|
await response.aclose()
|
|
@@ -30,6 +30,7 @@ from capo_managedblockchain_query._rule_engine._endpoint_rule_set import (
|
|
|
30
30
|
from capo_managedblockchain_query._services._pipeline import (
|
|
31
31
|
AsyncOperationOptions,
|
|
32
32
|
OperationOptions,
|
|
33
|
+
raise_error,
|
|
33
34
|
)
|
|
34
35
|
from capo_managedblockchain_query.errors import UnknownServiceError
|
|
35
36
|
|
|
@@ -152,7 +153,7 @@ def list_transactions(
|
|
|
152
153
|
try:
|
|
153
154
|
if response.status >= 300:
|
|
154
155
|
response.read()
|
|
155
|
-
|
|
156
|
+
raise_error(response, handle_error)
|
|
156
157
|
return handle_response(response), response
|
|
157
158
|
except BaseException:
|
|
158
159
|
response.close()
|
|
@@ -170,7 +171,7 @@ async def async_list_transactions(
|
|
|
170
171
|
try:
|
|
171
172
|
if response.status >= 300:
|
|
172
173
|
await response.aread()
|
|
173
|
-
|
|
174
|
+
raise_error(response, handle_error)
|
|
174
175
|
return await async_handle_response(response), response
|
|
175
176
|
except BaseException:
|
|
176
177
|
await response.aclose()
|
|
@@ -6,6 +6,7 @@ from collections.abc import AsyncIterator, Iterator, Sequence
|
|
|
6
6
|
from dataclasses import dataclass
|
|
7
7
|
from typing import TYPE_CHECKING, Awaitable, Callable, Generic, TypeVar, cast
|
|
8
8
|
|
|
9
|
+
from typing_extensions import Never
|
|
9
10
|
from zapros import (
|
|
10
11
|
AsyncClient,
|
|
11
12
|
Client,
|
|
@@ -135,6 +136,22 @@ async def aexecute_pipeline(
|
|
|
135
136
|
return await make_chain(0)(request)
|
|
136
137
|
|
|
137
138
|
|
|
139
|
+
def raise_error(response: Response, handle_error: Callable[[Response], Never]) -> Never:
|
|
140
|
+
try:
|
|
141
|
+
handle_error(response)
|
|
142
|
+
except ServiceError as exc:
|
|
143
|
+
# The response itself can say a retry is safe, even when the error is
|
|
144
|
+
# not marked @retryable: a 429, a transient 5xx or a Retry-After header.
|
|
145
|
+
if response.status == 429:
|
|
146
|
+
exc.is_throttling_error = True
|
|
147
|
+
if (
|
|
148
|
+
response.status in (429, 500, 502, 503, 504)
|
|
149
|
+
or "retry-after" in response.headers
|
|
150
|
+
):
|
|
151
|
+
exc.is_retryable = True
|
|
152
|
+
raise
|
|
153
|
+
|
|
154
|
+
|
|
138
155
|
def _is_retryable(exc: Exception) -> bool:
|
|
139
156
|
if isinstance(exc, ServiceError):
|
|
140
157
|
return exc.is_retryable
|
|
@@ -337,7 +337,7 @@ class AsyncManagedBlockchainQueryClient:
|
|
|
337
337
|
) -> (
|
|
338
338
|
"capo_managedblockchain_query.types.get_transaction_output.GetTransactionOutput"
|
|
339
339
|
):
|
|
340
|
-
|
|
340
|
+
"""<p>Gets the details of a transaction.</p> <note> <p>This action will return transaction details for all transactions that are <i>confirmed</i> on the blockchain, even if they have not reached <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality">finality</a>. </p> </note>
|
|
341
341
|
|
|
342
342
|
Args:
|
|
343
343
|
transaction_hash: <p>The hash of a transaction. It is generated when a transaction is created.</p>
|
|
@@ -707,7 +707,7 @@ class AsyncManagedBlockchainQueryClient:
|
|
|
707
707
|
] = None,
|
|
708
708
|
max_results: Optional[int] = None,
|
|
709
709
|
) -> "capo_managedblockchain_query.types.list_transaction_events_output.ListTransactionEventsOutput":
|
|
710
|
-
|
|
710
|
+
"""<p>Lists all the transaction events for a transaction </p> <note> <p>This action will return transaction details for all transactions that are <i>confirmed</i> on the blockchain, even if they have not reached <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality">finality</a>. </p> </note>
|
|
711
711
|
|
|
712
712
|
Args:
|
|
713
713
|
transaction_hash: <p>The hash of a transaction. It is generated when a transaction is created.</p>
|
|
@@ -817,7 +817,7 @@ class AsyncManagedBlockchainQueryClient:
|
|
|
817
817
|
"capo_managedblockchain_query.types.confirmation_status_filter.ConfirmationStatusFilter"
|
|
818
818
|
] = None,
|
|
819
819
|
) -> "capo_managedblockchain_query.types.list_transactions_output.ListTransactionsOutput":
|
|
820
|
-
|
|
820
|
+
"""<p>Lists all the transaction events for a transaction.</p>
|
|
821
821
|
|
|
822
822
|
Args:
|
|
823
823
|
address: <p>The address (either a contract or wallet), whose transactions are being requested.</p>
|
|
@@ -825,7 +825,7 @@ class AsyncManagedBlockchainQueryClient:
|
|
|
825
825
|
sort: <p>The order by which the results will be sorted. </p>
|
|
826
826
|
next_token: <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
827
827
|
max_results: <p>The maximum number of transactions to list.</p> <p>Default: <code>100</code> </p> <note> <p>Even if additional results can be retrieved, the request can return less results than <code>maxResults</code> or an empty array of results.</p> <p>To retrieve the next set of results, make another request with the returned <code>nextToken</code> value. The value of <code>nextToken</code> is <code>null</code> when there are no more results to return</p> </note>
|
|
828
|
-
confirmation_status_filter: <p>This filter is used to include transactions in the response that haven't reached <a href
|
|
828
|
+
confirmation_status_filter: <p>This filter is used to include transactions in the response that haven't reached <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality"> <i>finality</i> </a>. Transactions that have reached finality are always part of the response.</p>
|
|
829
829
|
|
|
830
830
|
Raises:
|
|
831
831
|
capo_managedblockchain_query.errors.access_denied_exception.AccessDeniedException: <p>The Amazon Web Services account doesn’t have access to this resource. </p>
|
|
@@ -334,7 +334,7 @@ class ManagedBlockchainQueryClient:
|
|
|
334
334
|
) -> (
|
|
335
335
|
"capo_managedblockchain_query.types.get_transaction_output.GetTransactionOutput"
|
|
336
336
|
):
|
|
337
|
-
|
|
337
|
+
"""<p>Gets the details of a transaction.</p> <note> <p>This action will return transaction details for all transactions that are <i>confirmed</i> on the blockchain, even if they have not reached <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality">finality</a>. </p> </note>
|
|
338
338
|
|
|
339
339
|
Args:
|
|
340
340
|
transaction_hash: <p>The hash of a transaction. It is generated when a transaction is created.</p>
|
|
@@ -698,7 +698,7 @@ class ManagedBlockchainQueryClient:
|
|
|
698
698
|
] = None,
|
|
699
699
|
max_results: Optional[int] = None,
|
|
700
700
|
) -> "capo_managedblockchain_query.types.list_transaction_events_output.ListTransactionEventsOutput":
|
|
701
|
-
|
|
701
|
+
"""<p>Lists all the transaction events for a transaction </p> <note> <p>This action will return transaction details for all transactions that are <i>confirmed</i> on the blockchain, even if they have not reached <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality">finality</a>. </p> </note>
|
|
702
702
|
|
|
703
703
|
Args:
|
|
704
704
|
transaction_hash: <p>The hash of a transaction. It is generated when a transaction is created.</p>
|
|
@@ -807,7 +807,7 @@ class ManagedBlockchainQueryClient:
|
|
|
807
807
|
"capo_managedblockchain_query.types.confirmation_status_filter.ConfirmationStatusFilter"
|
|
808
808
|
] = None,
|
|
809
809
|
) -> "capo_managedblockchain_query.types.list_transactions_output.ListTransactionsOutput":
|
|
810
|
-
|
|
810
|
+
"""<p>Lists all the transaction events for a transaction.</p>
|
|
811
811
|
|
|
812
812
|
Args:
|
|
813
813
|
address: <p>The address (either a contract or wallet), whose transactions are being requested.</p>
|
|
@@ -815,7 +815,7 @@ class ManagedBlockchainQueryClient:
|
|
|
815
815
|
sort: <p>The order by which the results will be sorted. </p>
|
|
816
816
|
next_token: <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
817
817
|
max_results: <p>The maximum number of transactions to list.</p> <p>Default: <code>100</code> </p> <note> <p>Even if additional results can be retrieved, the request can return less results than <code>maxResults</code> or an empty array of results.</p> <p>To retrieve the next set of results, make another request with the returned <code>nextToken</code> value. The value of <code>nextToken</code> is <code>null</code> when there are no more results to return</p> </note>
|
|
818
|
-
confirmation_status_filter: <p>This filter is used to include transactions in the response that haven't reached <a href
|
|
818
|
+
confirmation_status_filter: <p>This filter is used to include transactions in the response that haven't reached <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality"> <i>finality</i> </a>. Transactions that have reached finality are always part of the response.</p>
|
|
819
819
|
|
|
820
820
|
Raises:
|
|
821
821
|
capo_managedblockchain_query.errors.access_denied_exception.AccessDeniedException: <p>The Amazon Web Services account doesn’t have access to this resource. </p>
|
|
@@ -12,7 +12,7 @@ if TYPE_CHECKING:
|
|
|
12
12
|
|
|
13
13
|
class ConfirmationStatusFilter(TypedDict, closed=True):
|
|
14
14
|
include: "capo_managedblockchain_query.types.confirmation_status_include_list.ConfirmationStatusIncludeList"
|
|
15
|
-
|
|
15
|
+
"""<p>The container to determine whether to list results that have only reached <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality"> <i>finality</i> </a>. Transactions that have reached finality are always part of the response.</p>"""
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
# --- restJson1 ser/de ---
|
|
@@ -37,7 +37,7 @@ class ListTransactionsInput(TypedDict, closed=True):
|
|
|
37
37
|
confirmation_status_filter: NotRequired[
|
|
38
38
|
"capo_managedblockchain_query.types.confirmation_status_filter.ConfirmationStatusFilter"
|
|
39
39
|
]
|
|
40
|
-
|
|
40
|
+
"""<p>This filter is used to include transactions in the response that haven't reached <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality"> <i>finality</i> </a>. Transactions that have reached finality are always part of the response.</p>"""
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
# --- restJson1 ser/de ---
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/tests/test_body.py
RENAMED
|
File without changes
|
{capo_managedblockchain_query-0.2.0 → capo_managedblockchain_query-0.4.0}/tests/test_sigv4.py
RENAMED
|
File without changes
|