From 24f622d0087b36ba79bb512ac916456e812ae883 Mon Sep 17 00:00:00 2001 From: Richard Bair Date: Thu, 19 Dec 2024 16:59:34 -0800 Subject: [PATCH 01/15] Convert to use "uv" and pyproject.toml and generate protobuf --- .gitignore | 121 +- .python-version | 1 + LICENSE | 201 ++ README.md | 25 +- {src => examples}/__init__.py | 0 examples/account_create.py | 12 +- examples/query_balance.py | 18 +- examples/query_receipt.py | 16 +- examples/token_associate.py | 12 +- examples/token_create.py | 10 +- examples/topic_create.py | 45 + examples/transfer_hbar.py | 10 +- examples/transfer_token.py | 12 +- generate_proto.sh | 24 + pyproject.toml | 51 + requirements.txt | 6 - setup.py | 20 - .../__init__.py | 0 .../account}/__init__.py | 0 .../account/account_balance.py | 4 +- .../account/account_create_transaction.py | 22 +- .../account/account_id.py | 2 +- .../client}/__init__.py | 0 src/{ => hedera_sdk_python}/client/client.py | 12 +- src/{ => hedera_sdk_python}/client/network.py | 2 +- .../consensus}/__init__.py | 0 .../consensus/topic_create_transaction.py | 103 + src/hedera_sdk_python/consensus/topic_id.py | 44 + src/hedera_sdk_python/crypto/__init__.py | 0 .../crypto/private_key.py | 2 +- .../crypto/public_key.py | 2 +- src/{ => hedera_sdk_python}/hbar.py | 8 + src/hedera_sdk_python/py.typed | 0 src/hedera_sdk_python/query/__init__.py | 0 .../query/account_balance_query.py | 8 +- src/{ => hedera_sdk_python}/query/query.py | 4 +- .../query/transaction_get_receipt_query.py | 10 +- src/{ => hedera_sdk_python}/response_code.py | 0 src/hedera_sdk_python/tokens/__init__.py | 0 .../tokens/token_associate_transaction.py | 6 +- .../tokens/token_create_transaction.py | 6 +- .../tokens/token_id.py | 4 +- src/hedera_sdk_python/transaction/__init__.py | 0 .../transaction/transaction.py | 8 +- .../transaction/transaction_id.py | 4 +- .../transaction/transaction_receipt.py | 18 +- .../transaction/transfer_transaction.py | 10 +- src/proto/address_book_service_pb2.py | 41 - src/proto/address_book_service_pb2_grpc.py | 487 ----- src/proto/basic_types_pb2.py | 153 -- src/proto/basic_types_pb2_grpc.py | 24 - src/proto/consensus_create_topic_pb2.py | 39 - src/proto/consensus_create_topic_pb2_grpc.py | 24 - src/proto/consensus_delete_topic_pb2.py | 38 - src/proto/consensus_delete_topic_pb2_grpc.py | 24 - src/proto/consensus_get_topic_info_pb2.py | 43 - .../consensus_get_topic_info_pb2_grpc.py | 24 - src/proto/consensus_service_pb2.py | 41 - src/proto/consensus_service_pb2_grpc.py | 432 ---- src/proto/consensus_submit_message_pb2.py | 40 - .../consensus_submit_message_pb2_grpc.py | 24 - src/proto/consensus_topic_info_pb2.py | 40 - src/proto/consensus_topic_info_pb2_grpc.py | 24 - src/proto/consensus_update_topic_pb2.py | 41 - src/proto/consensus_update_topic_pb2_grpc.py | 24 - src/proto/contract_call_local_pb2.py | 52 - src/proto/contract_call_local_pb2_grpc.py | 24 - src/proto/contract_call_pb2.py | 38 - src/proto/contract_call_pb2_grpc.py | 24 - src/proto/contract_create_pb2.py | 41 - src/proto/contract_create_pb2_grpc.py | 24 - src/proto/contract_delete_pb2.py | 38 - src/proto/contract_delete_pb2_grpc.py | 24 - src/proto/contract_get_bytecode_pb2.py | 42 - src/proto/contract_get_bytecode_pb2_grpc.py | 24 - src/proto/contract_get_info_pb2.py | 48 - src/proto/contract_get_info_pb2_grpc.py | 24 - src/proto/contract_get_records_pb2.py | 47 - src/proto/contract_get_records_pb2_grpc.py | 24 - src/proto/contract_types_pb2.py | 39 - src/proto/contract_types_pb2_grpc.py | 24 - src/proto/contract_update_pb2.py | 47 - src/proto/contract_update_pb2_grpc.py | 24 - src/proto/crypto_add_live_hash_pb2.py | 41 - src/proto/crypto_add_live_hash_pb2_grpc.py | 24 - src/proto/crypto_approve_allowance_pb2.py | 45 - .../crypto_approve_allowance_pb2_grpc.py | 24 - src/proto/crypto_create_pb2.py | 45 - src/proto/crypto_create_pb2_grpc.py | 24 - src/proto/crypto_delete_allowance_pb2.py | 40 - src/proto/crypto_delete_allowance_pb2_grpc.py | 24 - src/proto/crypto_delete_live_hash_pb2.py | 38 - src/proto/crypto_delete_live_hash_pb2_grpc.py | 24 - src/proto/crypto_delete_pb2.py | 38 - src/proto/crypto_delete_pb2_grpc.py | 24 - src/proto/crypto_get_account_balance_pb2.py | 44 - .../crypto_get_account_balance_pb2_grpc.py | 24 - src/proto/crypto_get_account_records_pb2.py | 43 - .../crypto_get_account_records_pb2_grpc.py | 24 - src/proto/crypto_get_info_pb2.py | 55 - src/proto/crypto_get_info_pb2_grpc.py | 24 - src/proto/crypto_get_live_hash_pb2.py | 43 - src/proto/crypto_get_live_hash_pb2_grpc.py | 24 - src/proto/crypto_get_stakers_pb2.py | 46 - src/proto/crypto_get_stakers_pb2_grpc.py | 24 - src/proto/crypto_service_pb2.py | 41 - src/proto/crypto_service_pb2_grpc.py | 787 ------- src/proto/crypto_transfer_pb2.py | 38 - src/proto/crypto_transfer_pb2_grpc.py | 24 - src/proto/crypto_update_pb2.py | 55 - src/proto/crypto_update_pb2_grpc.py | 24 - src/proto/custom_fees_pb2.py | 46 - src/proto/custom_fees_pb2_grpc.py | 24 - src/proto/duration_pb2.py | 37 - src/proto/duration_pb2_grpc.py | 24 - src/proto/ethereum_transaction_pb2.py | 38 - src/proto/ethereum_transaction_pb2_grpc.py | 24 - src/proto/exchange_rate_pb2.py | 40 - src/proto/exchange_rate_pb2_grpc.py | 24 - src/proto/file_append_pb2.py | 38 - src/proto/file_append_pb2_grpc.py | 24 - src/proto/file_create_pb2.py | 39 - src/proto/file_create_pb2_grpc.py | 24 - src/proto/file_delete_pb2.py | 38 - src/proto/file_delete_pb2_grpc.py | 24 - src/proto/file_get_contents_pb2.py | 44 - src/proto/file_get_contents_pb2_grpc.py | 24 - src/proto/file_get_info_pb2.py | 45 - src/proto/file_get_info_pb2_grpc.py | 24 - src/proto/file_service_pb2.py | 41 - src/proto/file_service_pb2_grpc.py | 423 ---- src/proto/file_update_pb2.py | 40 - src/proto/file_update_pb2_grpc.py | 24 - src/proto/freeze_pb2.py | 48 - src/proto/freeze_pb2_grpc.py | 24 - src/proto/freeze_service_pb2.py | 39 - src/proto/freeze_service_pb2_grpc.py | 107 - src/proto/freeze_type_pb2.py | 37 - src/proto/freeze_type_pb2_grpc.py | 24 - src/proto/get_account_details_pb2.py | 56 - src/proto/get_account_details_pb2_grpc.py | 24 - src/proto/get_by_key_pb2.py | 45 - src/proto/get_by_key_pb2_grpc.py | 24 - src/proto/get_by_solidity_id_pb2.py | 42 - src/proto/get_by_solidity_id_pb2_grpc.py | 24 - src/proto/network_get_execution_time_pb2.py | 42 - .../network_get_execution_time_pb2_grpc.py | 24 - src/proto/network_get_version_info_pb2.py | 42 - .../network_get_version_info_pb2_grpc.py | 24 - src/proto/network_service_pb2.py | 41 - src/proto/network_service_pb2_grpc.py | 250 --- src/proto/node_create_pb2.py | 38 - src/proto/node_create_pb2_grpc.py | 24 - src/proto/node_delete_pb2.py | 37 - src/proto/node_delete_pb2_grpc.py | 24 - src/proto/node_stake_update_pb2.py | 43 - src/proto/node_stake_update_pb2_grpc.py | 24 - src/proto/node_update_pb2.py | 39 - src/proto/node_update_pb2_grpc.py | 24 - src/proto/query_header_pb2.py | 40 - src/proto/query_header_pb2_grpc.py | 24 - src/proto/query_pb2.py | 62 - src/proto/query_pb2_grpc.py | 24 - src/proto/response_code_pb2.py | 53 - src/proto/response_code_pb2_grpc.py | 24 - src/proto/response_header_pb2.py | 39 - src/proto/response_header_pb2_grpc.py | 24 - src/proto/response_pb2.py | 62 - src/proto/response_pb2_grpc.py | 24 - src/proto/schedulable_transaction_body_pb2.py | 83 - .../schedulable_transaction_body_pb2_grpc.py | 24 - src/proto/schedule_create_pb2.py | 40 - src/proto/schedule_create_pb2_grpc.py | 24 - src/proto/schedule_delete_pb2.py | 38 - src/proto/schedule_delete_pb2_grpc.py | 24 - src/proto/schedule_get_info_pb2.py | 46 - src/proto/schedule_get_info_pb2_grpc.py | 24 - src/proto/schedule_service_pb2.py | 41 - src/proto/schedule_service_pb2_grpc.py | 402 ---- src/proto/schedule_sign_pb2.py | 38 - src/proto/schedule_sign_pb2_grpc.py | 24 - src/proto/smart_contract_service_pb2.py | 43 - src/proto/smart_contract_service_pb2_grpc.py | 604 ------ src/proto/system_delete_pb2.py | 39 - src/proto/system_delete_pb2_grpc.py | 24 - src/proto/system_undelete_pb2.py | 38 - src/proto/system_undelete_pb2_grpc.py | 24 - src/proto/throttle_definitions_pb2.py | 42 - src/proto/throttle_definitions_pb2_grpc.py | 24 - src/proto/timestamp_pb2.py | 39 - src/proto/timestamp_pb2_grpc.py | 24 - src/proto/token_airdrop_pb2.py | 38 - src/proto/token_airdrop_pb2_grpc.py | 24 - src/proto/token_associate_pb2.py | 38 - src/proto/token_associate_pb2_grpc.py | 24 - src/proto/token_burn_pb2.py | 38 - src/proto/token_burn_pb2_grpc.py | 24 - src/proto/token_cancel_airdrop_pb2.py | 38 - src/proto/token_cancel_airdrop_pb2_grpc.py | 24 - src/proto/token_claim_airdrop_pb2.py | 38 - src/proto/token_claim_airdrop_pb2_grpc.py | 24 - src/proto/token_create_pb2.py | 41 - src/proto/token_create_pb2_grpc.py | 24 - src/proto/token_delete_pb2.py | 38 - src/proto/token_delete_pb2_grpc.py | 24 - src/proto/token_dissociate_pb2.py | 38 - src/proto/token_dissociate_pb2_grpc.py | 24 - src/proto/token_fee_schedule_update_pb2.py | 39 - .../token_fee_schedule_update_pb2_grpc.py | 24 - src/proto/token_freeze_account_pb2.py | 38 - src/proto/token_freeze_account_pb2_grpc.py | 24 - src/proto/token_get_account_nft_infos_pb2.py | 43 - .../token_get_account_nft_infos_pb2_grpc.py | 24 - src/proto/token_get_info_pb2.py | 47 - src/proto/token_get_info_pb2_grpc.py | 24 - src/proto/token_get_nft_info_pb2.py | 45 - src/proto/token_get_nft_info_pb2_grpc.py | 24 - src/proto/token_get_nft_infos_pb2.py | 43 - src/proto/token_get_nft_infos_pb2_grpc.py | 24 - src/proto/token_grant_kyc_pb2.py | 38 - src/proto/token_grant_kyc_pb2_grpc.py | 24 - src/proto/token_mint_pb2.py | 38 - src/proto/token_mint_pb2_grpc.py | 24 - src/proto/token_pause_pb2.py | 38 - src/proto/token_pause_pb2_grpc.py | 24 - src/proto/token_reject_pb2.py | 40 - src/proto/token_reject_pb2_grpc.py | 24 - src/proto/token_revoke_kyc_pb2.py | 38 - src/proto/token_revoke_kyc_pb2_grpc.py | 24 - src/proto/token_service_pb2.py | 45 - src/proto/token_service_pb2_grpc.py | 1179 ----------- src/proto/token_unfreeze_account_pb2.py | 38 - src/proto/token_unfreeze_account_pb2_grpc.py | 24 - src/proto/token_unpause_pb2.py | 38 - src/proto/token_unpause_pb2_grpc.py | 24 - src/proto/token_update_nfts_pb2.py | 39 - src/proto/token_update_nfts_pb2_grpc.py | 24 - src/proto/token_update_pb2.py | 41 - src/proto/token_update_pb2_grpc.py | 24 - src/proto/token_wipe_account_pb2.py | 38 - src/proto/token_wipe_account_pb2_grpc.py | 24 - src/proto/transaction_body_pb2.py | 94 - src/proto/transaction_body_pb2_grpc.py | 24 - src/proto/transaction_contents_pb2.py | 38 - src/proto/transaction_contents_pb2_grpc.py | 24 - src/proto/transaction_get_fast_record_pb2.py | 43 - .../transaction_get_fast_record_pb2_grpc.py | 24 - src/proto/transaction_get_receipt_pb2.py | 43 - src/proto/transaction_get_receipt_pb2_grpc.py | 24 - src/proto/transaction_get_record_pb2.py | 43 - src/proto/transaction_get_record_pb2_grpc.py | 24 - src/proto/transaction_pb2.py | 47 - src/proto/transaction_pb2_grpc.py | 24 - src/proto/transaction_receipt_pb2.py | 40 - src/proto/transaction_receipt_pb2_grpc.py | 24 - src/proto/transaction_record_pb2.py | 45 - src/proto/transaction_record_pb2_grpc.py | 24 - src/proto/transaction_response_pb2.py | 38 - src/proto/transaction_response_pb2_grpc.py | 24 - src/proto/unchecked_submit_pb2.py | 37 - src/proto/unchecked_submit_pb2_grpc.py | 24 - src/proto/util_prng_pb2.py | 37 - src/proto/util_prng_pb2_grpc.py | 24 - src/proto/util_service_pb2.py | 39 - src/proto/util_service_pb2_grpc.py | 106 - src/protos/address_book_service.proto | 143 ++ .../auxiliary/tss/tss_encryption_key.proto | 46 + src/protos/auxiliary/tss/tss_message.proto | 88 + .../auxiliary/tss/tss_share_signature.proto | 88 + src/protos/auxiliary/tss/tss_vote.proto | 98 + src/protos/basic_types.proto | 1800 +++++++++++++++++ src/protos/consensus_create_topic.proto | 73 + src/protos/consensus_delete_topic.proto | 39 + src/protos/consensus_get_topic_info.proto | 69 + src/protos/consensus_service.proto | 123 ++ src/protos/consensus_submit_message.proto | 69 + src/protos/consensus_topic_info.proto | 90 + src/protos/consensus_update_topic.proto | 90 + src/protos/contract_call.proto | 63 + src/protos/contract_call_local.proto | 239 +++ src/protos/contract_create.proto | 206 ++ src/protos/contract_delete.proto | 68 + src/protos/contract_get_bytecode.proto | 64 + src/protos/contract_get_info.proto | 158 ++ src/protos/contract_get_records.proto | 69 + src/protos/contract_types.proto | 47 + src/protos/contract_update.proto | 139 ++ src/protos/crypto_add_live_hash.proto | 75 + src/protos/crypto_approve_allowance.proto | 140 ++ src/protos/crypto_create.proto | 176 ++ src/protos/crypto_delete.proto | 46 + src/protos/crypto_delete_allowance.proto | 62 + src/protos/crypto_delete_live_hash.proto | 45 + src/protos/crypto_get_account_balance.proto | 85 + src/protos/crypto_get_account_records.proto | 69 + src/protos/crypto_get_info.proto | 189 ++ src/protos/crypto_get_live_hash.proto | 73 + src/protos/crypto_get_stakers.proto | 95 + src/protos/crypto_service.proto | 119 ++ src/protos/crypto_transfer.proto | 54 + src/protos/crypto_update.proto | 162 ++ src/protos/custom_fees.proto | 175 ++ src/protos/duration.proto | 37 + src/protos/ethereum_transaction.proto | 63 + src/protos/event/event_consensus_data.proto | 69 + src/protos/event/event_core.proto | 83 + src/protos/event/event_descriptor.proto | 80 + src/protos/event/event_transaction.proto | 65 + src/protos/event/gossip_event.proto | 81 + .../event/state_signature_transaction.proto | 64 + src/protos/exchange_rate.proto | 65 + src/protos/file_append.proto | 49 + src/protos/file_create.proto | 104 + src/protos/file_delete.proto | 44 + src/protos/file_get_contents.proto | 77 + src/protos/file_get_info.proto | 106 + src/protos/file_service.proto | 75 + src/protos/file_update.proto | 67 + src/protos/freeze.proto | 82 + src/protos/freeze_service.proto | 39 + src/protos/freeze_type.proto | 71 + src/protos/get_account_details.proto | 225 +++ src/protos/get_by_key.proto | 94 + src/protos/get_by_solidity_id.proto | 76 + src/protos/network_get_execution_time.proto | 68 + src/protos/network_get_version_info.proto | 63 + src/protos/network_service.proto | 63 + src/protos/node_create.proto | 139 ++ src/protos/node_delete.proto | 51 + src/protos/node_stake_update.proto | 165 ++ src/protos/node_update.proto | 161 ++ src/protos/query.proto | 194 ++ src/protos/query_header.proto | 76 + src/protos/response.proto | 195 ++ src/protos/response_code.proto | 1626 +++++++++++++++ src/protos/response_header.proto | 59 + src/protos/schedulable_transaction_body.proto | 346 ++++ src/protos/schedule_create.proto | 134 ++ src/protos/schedule_delete.proto | 46 + src/protos/schedule_get_info.proto | 149 ++ src/protos/schedule_service.proto | 109 + src/protos/schedule_sign.proto | 55 + src/protos/smart_contract_service.proto | 98 + src/protos/system_delete.proto | 57 + src/protos/system_undelete.proto | 47 + src/protos/throttle_definitions.proto | 86 + src/protos/timestamp.proto | 54 + src/protos/token_airdrop.proto | 100 + src/protos/token_associate.proto | 57 + src/protos/token_burn.proto | 68 + src/protos/token_cancel_airdrop.proto | 60 + src/protos/token_claim_airdrop.proto | 64 + src/protos/token_create.proto | 212 ++ src/protos/token_delete.proto | 44 + src/protos/token_dissociate.proto | 58 + src/protos/token_fee_schedule_update.proto | 52 + src/protos/token_freeze_account.proto | 54 + src/protos/token_get_account_nft_infos.proto | 92 + src/protos/token_get_info.proto | 228 +++ src/protos/token_get_nft_info.proto | 100 + src/protos/token_get_nft_infos.proto | 92 + src/protos/token_grant_kyc.proto | 53 + src/protos/token_mint.proto | 68 + src/protos/token_pause.proto | 45 + src/protos/token_reject.proto | 89 + src/protos/token_revoke_kyc.proto | 53 + src/protos/token_service.proto | 195 ++ src/protos/token_unfreeze_account.proto | 55 + src/protos/token_unpause.proto | 44 + src/protos/token_update.proto | 163 ++ src/protos/token_update_nfts.proto | 55 + src/protos/token_wipe_account.proto | 83 + src/protos/transaction.proto | 67 + src/protos/transaction_body.proto | 454 +++++ src/protos/transaction_contents.proto | 41 + src/protos/transaction_get_fast_record.proto | 71 + src/protos/transaction_get_receipt.proto | 101 + src/protos/transaction_get_record.proto | 101 + src/protos/transaction_receipt.proto | 178 ++ src/protos/transaction_record.proto | 188 ++ src/protos/transaction_response.proto | 50 + src/protos/unchecked_submit.proto | 38 + src/protos/util_prng.proto | 38 + src/protos/util_service.proto | 39 + test.py | 20 +- tests/conftest.py | 4 +- tests/test_account_create_transaction.py | 16 +- tests/test_get_receipt_query.py | 12 +- tests/test_token_associate_transaction.py | 6 +- tests/test_token_create_transaction.py | 6 +- tests/test_transfer_transaction.py | 2 +- uv.lock | 572 ++++++ 392 files changed, 15968 insertions(+), 12182 deletions(-) create mode 100644 .python-version create mode 100644 LICENSE rename {src => examples}/__init__.py (100%) create mode 100644 examples/topic_create.py create mode 100755 generate_proto.sh create mode 100644 pyproject.toml delete mode 100644 requirements.txt delete mode 100644 setup.py rename src/{account => hedera_sdk_python}/__init__.py (100%) rename src/{client => hedera_sdk_python/account}/__init__.py (100%) rename src/{ => hedera_sdk_python}/account/account_balance.py (93%) rename src/{ => hedera_sdk_python}/account/account_create_transaction.py (85%) rename src/{ => hedera_sdk_python}/account/account_id.py (97%) rename src/{crypto => hedera_sdk_python/client}/__init__.py (100%) rename src/{ => hedera_sdk_python}/client/client.py (92%) rename src/{ => hedera_sdk_python}/client/network.py (98%) rename src/{proto => hedera_sdk_python/consensus}/__init__.py (100%) create mode 100644 src/hedera_sdk_python/consensus/topic_create_transaction.py create mode 100644 src/hedera_sdk_python/consensus/topic_id.py create mode 100644 src/hedera_sdk_python/crypto/__init__.py rename src/{ => hedera_sdk_python}/crypto/private_key.py (97%) rename src/{ => hedera_sdk_python}/crypto/public_key.py (96%) rename src/{ => hedera_sdk_python}/hbar.py (51%) create mode 100644 src/hedera_sdk_python/py.typed create mode 100644 src/hedera_sdk_python/query/__init__.py rename src/{ => hedera_sdk_python}/query/account_balance_query.py (92%) rename src/{ => hedera_sdk_python}/query/query.py (97%) rename src/{ => hedera_sdk_python}/query/transaction_get_receipt_query.py (90%) rename src/{ => hedera_sdk_python}/response_code.py (100%) create mode 100644 src/hedera_sdk_python/tokens/__init__.py rename src/{ => hedera_sdk_python}/tokens/token_associate_transaction.py (95%) rename src/{ => hedera_sdk_python}/tokens/token_create_transaction.py (95%) rename src/{ => hedera_sdk_python}/tokens/token_id.py (91%) create mode 100644 src/hedera_sdk_python/transaction/__init__.py rename src/{ => hedera_sdk_python}/transaction/transaction.py (98%) rename src/{ => hedera_sdk_python}/transaction/transaction_id.py (97%) rename src/{ => hedera_sdk_python}/transaction/transaction_receipt.py (76%) rename src/{ => hedera_sdk_python}/transaction/transfer_transaction.py (94%) delete mode 100644 src/proto/address_book_service_pb2.py delete mode 100644 src/proto/address_book_service_pb2_grpc.py delete mode 100644 src/proto/basic_types_pb2.py delete mode 100644 src/proto/basic_types_pb2_grpc.py delete mode 100644 src/proto/consensus_create_topic_pb2.py delete mode 100644 src/proto/consensus_create_topic_pb2_grpc.py delete mode 100644 src/proto/consensus_delete_topic_pb2.py delete mode 100644 src/proto/consensus_delete_topic_pb2_grpc.py delete mode 100644 src/proto/consensus_get_topic_info_pb2.py delete mode 100644 src/proto/consensus_get_topic_info_pb2_grpc.py delete mode 100644 src/proto/consensus_service_pb2.py delete mode 100644 src/proto/consensus_service_pb2_grpc.py delete mode 100644 src/proto/consensus_submit_message_pb2.py delete mode 100644 src/proto/consensus_submit_message_pb2_grpc.py delete mode 100644 src/proto/consensus_topic_info_pb2.py delete mode 100644 src/proto/consensus_topic_info_pb2_grpc.py delete mode 100644 src/proto/consensus_update_topic_pb2.py delete mode 100644 src/proto/consensus_update_topic_pb2_grpc.py delete mode 100644 src/proto/contract_call_local_pb2.py delete mode 100644 src/proto/contract_call_local_pb2_grpc.py delete mode 100644 src/proto/contract_call_pb2.py delete mode 100644 src/proto/contract_call_pb2_grpc.py delete mode 100644 src/proto/contract_create_pb2.py delete mode 100644 src/proto/contract_create_pb2_grpc.py delete mode 100644 src/proto/contract_delete_pb2.py delete mode 100644 src/proto/contract_delete_pb2_grpc.py delete mode 100644 src/proto/contract_get_bytecode_pb2.py delete mode 100644 src/proto/contract_get_bytecode_pb2_grpc.py delete mode 100644 src/proto/contract_get_info_pb2.py delete mode 100644 src/proto/contract_get_info_pb2_grpc.py delete mode 100644 src/proto/contract_get_records_pb2.py delete mode 100644 src/proto/contract_get_records_pb2_grpc.py delete mode 100644 src/proto/contract_types_pb2.py delete mode 100644 src/proto/contract_types_pb2_grpc.py delete mode 100644 src/proto/contract_update_pb2.py delete mode 100644 src/proto/contract_update_pb2_grpc.py delete mode 100644 src/proto/crypto_add_live_hash_pb2.py delete mode 100644 src/proto/crypto_add_live_hash_pb2_grpc.py delete mode 100644 src/proto/crypto_approve_allowance_pb2.py delete mode 100644 src/proto/crypto_approve_allowance_pb2_grpc.py delete mode 100644 src/proto/crypto_create_pb2.py delete mode 100644 src/proto/crypto_create_pb2_grpc.py delete mode 100644 src/proto/crypto_delete_allowance_pb2.py delete mode 100644 src/proto/crypto_delete_allowance_pb2_grpc.py delete mode 100644 src/proto/crypto_delete_live_hash_pb2.py delete mode 100644 src/proto/crypto_delete_live_hash_pb2_grpc.py delete mode 100644 src/proto/crypto_delete_pb2.py delete mode 100644 src/proto/crypto_delete_pb2_grpc.py delete mode 100644 src/proto/crypto_get_account_balance_pb2.py delete mode 100644 src/proto/crypto_get_account_balance_pb2_grpc.py delete mode 100644 src/proto/crypto_get_account_records_pb2.py delete mode 100644 src/proto/crypto_get_account_records_pb2_grpc.py delete mode 100644 src/proto/crypto_get_info_pb2.py delete mode 100644 src/proto/crypto_get_info_pb2_grpc.py delete mode 100644 src/proto/crypto_get_live_hash_pb2.py delete mode 100644 src/proto/crypto_get_live_hash_pb2_grpc.py delete mode 100644 src/proto/crypto_get_stakers_pb2.py delete mode 100644 src/proto/crypto_get_stakers_pb2_grpc.py delete mode 100644 src/proto/crypto_service_pb2.py delete mode 100644 src/proto/crypto_service_pb2_grpc.py delete mode 100644 src/proto/crypto_transfer_pb2.py delete mode 100644 src/proto/crypto_transfer_pb2_grpc.py delete mode 100644 src/proto/crypto_update_pb2.py delete mode 100644 src/proto/crypto_update_pb2_grpc.py delete mode 100644 src/proto/custom_fees_pb2.py delete mode 100644 src/proto/custom_fees_pb2_grpc.py delete mode 100644 src/proto/duration_pb2.py delete mode 100644 src/proto/duration_pb2_grpc.py delete mode 100644 src/proto/ethereum_transaction_pb2.py delete mode 100644 src/proto/ethereum_transaction_pb2_grpc.py delete mode 100644 src/proto/exchange_rate_pb2.py delete mode 100644 src/proto/exchange_rate_pb2_grpc.py delete mode 100644 src/proto/file_append_pb2.py delete mode 100644 src/proto/file_append_pb2_grpc.py delete mode 100644 src/proto/file_create_pb2.py delete mode 100644 src/proto/file_create_pb2_grpc.py delete mode 100644 src/proto/file_delete_pb2.py delete mode 100644 src/proto/file_delete_pb2_grpc.py delete mode 100644 src/proto/file_get_contents_pb2.py delete mode 100644 src/proto/file_get_contents_pb2_grpc.py delete mode 100644 src/proto/file_get_info_pb2.py delete mode 100644 src/proto/file_get_info_pb2_grpc.py delete mode 100644 src/proto/file_service_pb2.py delete mode 100644 src/proto/file_service_pb2_grpc.py delete mode 100644 src/proto/file_update_pb2.py delete mode 100644 src/proto/file_update_pb2_grpc.py delete mode 100644 src/proto/freeze_pb2.py delete mode 100644 src/proto/freeze_pb2_grpc.py delete mode 100644 src/proto/freeze_service_pb2.py delete mode 100644 src/proto/freeze_service_pb2_grpc.py delete mode 100644 src/proto/freeze_type_pb2.py delete mode 100644 src/proto/freeze_type_pb2_grpc.py delete mode 100644 src/proto/get_account_details_pb2.py delete mode 100644 src/proto/get_account_details_pb2_grpc.py delete mode 100644 src/proto/get_by_key_pb2.py delete mode 100644 src/proto/get_by_key_pb2_grpc.py delete mode 100644 src/proto/get_by_solidity_id_pb2.py delete mode 100644 src/proto/get_by_solidity_id_pb2_grpc.py delete mode 100644 src/proto/network_get_execution_time_pb2.py delete mode 100644 src/proto/network_get_execution_time_pb2_grpc.py delete mode 100644 src/proto/network_get_version_info_pb2.py delete mode 100644 src/proto/network_get_version_info_pb2_grpc.py delete mode 100644 src/proto/network_service_pb2.py delete mode 100644 src/proto/network_service_pb2_grpc.py delete mode 100644 src/proto/node_create_pb2.py delete mode 100644 src/proto/node_create_pb2_grpc.py delete mode 100644 src/proto/node_delete_pb2.py delete mode 100644 src/proto/node_delete_pb2_grpc.py delete mode 100644 src/proto/node_stake_update_pb2.py delete mode 100644 src/proto/node_stake_update_pb2_grpc.py delete mode 100644 src/proto/node_update_pb2.py delete mode 100644 src/proto/node_update_pb2_grpc.py delete mode 100644 src/proto/query_header_pb2.py delete mode 100644 src/proto/query_header_pb2_grpc.py delete mode 100644 src/proto/query_pb2.py delete mode 100644 src/proto/query_pb2_grpc.py delete mode 100644 src/proto/response_code_pb2.py delete mode 100644 src/proto/response_code_pb2_grpc.py delete mode 100644 src/proto/response_header_pb2.py delete mode 100644 src/proto/response_header_pb2_grpc.py delete mode 100644 src/proto/response_pb2.py delete mode 100644 src/proto/response_pb2_grpc.py delete mode 100644 src/proto/schedulable_transaction_body_pb2.py delete mode 100644 src/proto/schedulable_transaction_body_pb2_grpc.py delete mode 100644 src/proto/schedule_create_pb2.py delete mode 100644 src/proto/schedule_create_pb2_grpc.py delete mode 100644 src/proto/schedule_delete_pb2.py delete mode 100644 src/proto/schedule_delete_pb2_grpc.py delete mode 100644 src/proto/schedule_get_info_pb2.py delete mode 100644 src/proto/schedule_get_info_pb2_grpc.py delete mode 100644 src/proto/schedule_service_pb2.py delete mode 100644 src/proto/schedule_service_pb2_grpc.py delete mode 100644 src/proto/schedule_sign_pb2.py delete mode 100644 src/proto/schedule_sign_pb2_grpc.py delete mode 100644 src/proto/smart_contract_service_pb2.py delete mode 100644 src/proto/smart_contract_service_pb2_grpc.py delete mode 100644 src/proto/system_delete_pb2.py delete mode 100644 src/proto/system_delete_pb2_grpc.py delete mode 100644 src/proto/system_undelete_pb2.py delete mode 100644 src/proto/system_undelete_pb2_grpc.py delete mode 100644 src/proto/throttle_definitions_pb2.py delete mode 100644 src/proto/throttle_definitions_pb2_grpc.py delete mode 100644 src/proto/timestamp_pb2.py delete mode 100644 src/proto/timestamp_pb2_grpc.py delete mode 100644 src/proto/token_airdrop_pb2.py delete mode 100644 src/proto/token_airdrop_pb2_grpc.py delete mode 100644 src/proto/token_associate_pb2.py delete mode 100644 src/proto/token_associate_pb2_grpc.py delete mode 100644 src/proto/token_burn_pb2.py delete mode 100644 src/proto/token_burn_pb2_grpc.py delete mode 100644 src/proto/token_cancel_airdrop_pb2.py delete mode 100644 src/proto/token_cancel_airdrop_pb2_grpc.py delete mode 100644 src/proto/token_claim_airdrop_pb2.py delete mode 100644 src/proto/token_claim_airdrop_pb2_grpc.py delete mode 100644 src/proto/token_create_pb2.py delete mode 100644 src/proto/token_create_pb2_grpc.py delete mode 100644 src/proto/token_delete_pb2.py delete mode 100644 src/proto/token_delete_pb2_grpc.py delete mode 100644 src/proto/token_dissociate_pb2.py delete mode 100644 src/proto/token_dissociate_pb2_grpc.py delete mode 100644 src/proto/token_fee_schedule_update_pb2.py delete mode 100644 src/proto/token_fee_schedule_update_pb2_grpc.py delete mode 100644 src/proto/token_freeze_account_pb2.py delete mode 100644 src/proto/token_freeze_account_pb2_grpc.py delete mode 100644 src/proto/token_get_account_nft_infos_pb2.py delete mode 100644 src/proto/token_get_account_nft_infos_pb2_grpc.py delete mode 100644 src/proto/token_get_info_pb2.py delete mode 100644 src/proto/token_get_info_pb2_grpc.py delete mode 100644 src/proto/token_get_nft_info_pb2.py delete mode 100644 src/proto/token_get_nft_info_pb2_grpc.py delete mode 100644 src/proto/token_get_nft_infos_pb2.py delete mode 100644 src/proto/token_get_nft_infos_pb2_grpc.py delete mode 100644 src/proto/token_grant_kyc_pb2.py delete mode 100644 src/proto/token_grant_kyc_pb2_grpc.py delete mode 100644 src/proto/token_mint_pb2.py delete mode 100644 src/proto/token_mint_pb2_grpc.py delete mode 100644 src/proto/token_pause_pb2.py delete mode 100644 src/proto/token_pause_pb2_grpc.py delete mode 100644 src/proto/token_reject_pb2.py delete mode 100644 src/proto/token_reject_pb2_grpc.py delete mode 100644 src/proto/token_revoke_kyc_pb2.py delete mode 100644 src/proto/token_revoke_kyc_pb2_grpc.py delete mode 100644 src/proto/token_service_pb2.py delete mode 100644 src/proto/token_service_pb2_grpc.py delete mode 100644 src/proto/token_unfreeze_account_pb2.py delete mode 100644 src/proto/token_unfreeze_account_pb2_grpc.py delete mode 100644 src/proto/token_unpause_pb2.py delete mode 100644 src/proto/token_unpause_pb2_grpc.py delete mode 100644 src/proto/token_update_nfts_pb2.py delete mode 100644 src/proto/token_update_nfts_pb2_grpc.py delete mode 100644 src/proto/token_update_pb2.py delete mode 100644 src/proto/token_update_pb2_grpc.py delete mode 100644 src/proto/token_wipe_account_pb2.py delete mode 100644 src/proto/token_wipe_account_pb2_grpc.py delete mode 100644 src/proto/transaction_body_pb2.py delete mode 100644 src/proto/transaction_body_pb2_grpc.py delete mode 100644 src/proto/transaction_contents_pb2.py delete mode 100644 src/proto/transaction_contents_pb2_grpc.py delete mode 100644 src/proto/transaction_get_fast_record_pb2.py delete mode 100644 src/proto/transaction_get_fast_record_pb2_grpc.py delete mode 100644 src/proto/transaction_get_receipt_pb2.py delete mode 100644 src/proto/transaction_get_receipt_pb2_grpc.py delete mode 100644 src/proto/transaction_get_record_pb2.py delete mode 100644 src/proto/transaction_get_record_pb2_grpc.py delete mode 100644 src/proto/transaction_pb2.py delete mode 100644 src/proto/transaction_pb2_grpc.py delete mode 100644 src/proto/transaction_receipt_pb2.py delete mode 100644 src/proto/transaction_receipt_pb2_grpc.py delete mode 100644 src/proto/transaction_record_pb2.py delete mode 100644 src/proto/transaction_record_pb2_grpc.py delete mode 100644 src/proto/transaction_response_pb2.py delete mode 100644 src/proto/transaction_response_pb2_grpc.py delete mode 100644 src/proto/unchecked_submit_pb2.py delete mode 100644 src/proto/unchecked_submit_pb2_grpc.py delete mode 100644 src/proto/util_prng_pb2.py delete mode 100644 src/proto/util_prng_pb2_grpc.py delete mode 100644 src/proto/util_service_pb2.py delete mode 100644 src/proto/util_service_pb2_grpc.py create mode 100644 src/protos/address_book_service.proto create mode 100644 src/protos/auxiliary/tss/tss_encryption_key.proto create mode 100644 src/protos/auxiliary/tss/tss_message.proto create mode 100644 src/protos/auxiliary/tss/tss_share_signature.proto create mode 100644 src/protos/auxiliary/tss/tss_vote.proto create mode 100644 src/protos/basic_types.proto create mode 100644 src/protos/consensus_create_topic.proto create mode 100644 src/protos/consensus_delete_topic.proto create mode 100644 src/protos/consensus_get_topic_info.proto create mode 100644 src/protos/consensus_service.proto create mode 100644 src/protos/consensus_submit_message.proto create mode 100644 src/protos/consensus_topic_info.proto create mode 100644 src/protos/consensus_update_topic.proto create mode 100644 src/protos/contract_call.proto create mode 100644 src/protos/contract_call_local.proto create mode 100644 src/protos/contract_create.proto create mode 100644 src/protos/contract_delete.proto create mode 100644 src/protos/contract_get_bytecode.proto create mode 100644 src/protos/contract_get_info.proto create mode 100644 src/protos/contract_get_records.proto create mode 100644 src/protos/contract_types.proto create mode 100644 src/protos/contract_update.proto create mode 100644 src/protos/crypto_add_live_hash.proto create mode 100644 src/protos/crypto_approve_allowance.proto create mode 100644 src/protos/crypto_create.proto create mode 100644 src/protos/crypto_delete.proto create mode 100644 src/protos/crypto_delete_allowance.proto create mode 100644 src/protos/crypto_delete_live_hash.proto create mode 100644 src/protos/crypto_get_account_balance.proto create mode 100644 src/protos/crypto_get_account_records.proto create mode 100644 src/protos/crypto_get_info.proto create mode 100644 src/protos/crypto_get_live_hash.proto create mode 100644 src/protos/crypto_get_stakers.proto create mode 100644 src/protos/crypto_service.proto create mode 100644 src/protos/crypto_transfer.proto create mode 100644 src/protos/crypto_update.proto create mode 100644 src/protos/custom_fees.proto create mode 100644 src/protos/duration.proto create mode 100644 src/protos/ethereum_transaction.proto create mode 100644 src/protos/event/event_consensus_data.proto create mode 100644 src/protos/event/event_core.proto create mode 100644 src/protos/event/event_descriptor.proto create mode 100644 src/protos/event/event_transaction.proto create mode 100644 src/protos/event/gossip_event.proto create mode 100644 src/protos/event/state_signature_transaction.proto create mode 100644 src/protos/exchange_rate.proto create mode 100644 src/protos/file_append.proto create mode 100644 src/protos/file_create.proto create mode 100644 src/protos/file_delete.proto create mode 100644 src/protos/file_get_contents.proto create mode 100644 src/protos/file_get_info.proto create mode 100644 src/protos/file_service.proto create mode 100644 src/protos/file_update.proto create mode 100644 src/protos/freeze.proto create mode 100644 src/protos/freeze_service.proto create mode 100644 src/protos/freeze_type.proto create mode 100644 src/protos/get_account_details.proto create mode 100644 src/protos/get_by_key.proto create mode 100644 src/protos/get_by_solidity_id.proto create mode 100644 src/protos/network_get_execution_time.proto create mode 100644 src/protos/network_get_version_info.proto create mode 100644 src/protos/network_service.proto create mode 100644 src/protos/node_create.proto create mode 100644 src/protos/node_delete.proto create mode 100644 src/protos/node_stake_update.proto create mode 100644 src/protos/node_update.proto create mode 100644 src/protos/query.proto create mode 100644 src/protos/query_header.proto create mode 100644 src/protos/response.proto create mode 100644 src/protos/response_code.proto create mode 100644 src/protos/response_header.proto create mode 100644 src/protos/schedulable_transaction_body.proto create mode 100644 src/protos/schedule_create.proto create mode 100644 src/protos/schedule_delete.proto create mode 100644 src/protos/schedule_get_info.proto create mode 100644 src/protos/schedule_service.proto create mode 100644 src/protos/schedule_sign.proto create mode 100644 src/protos/smart_contract_service.proto create mode 100644 src/protos/system_delete.proto create mode 100644 src/protos/system_undelete.proto create mode 100644 src/protos/throttle_definitions.proto create mode 100644 src/protos/timestamp.proto create mode 100644 src/protos/token_airdrop.proto create mode 100644 src/protos/token_associate.proto create mode 100644 src/protos/token_burn.proto create mode 100644 src/protos/token_cancel_airdrop.proto create mode 100644 src/protos/token_claim_airdrop.proto create mode 100644 src/protos/token_create.proto create mode 100644 src/protos/token_delete.proto create mode 100644 src/protos/token_dissociate.proto create mode 100644 src/protos/token_fee_schedule_update.proto create mode 100644 src/protos/token_freeze_account.proto create mode 100644 src/protos/token_get_account_nft_infos.proto create mode 100644 src/protos/token_get_info.proto create mode 100644 src/protos/token_get_nft_info.proto create mode 100644 src/protos/token_get_nft_infos.proto create mode 100644 src/protos/token_grant_kyc.proto create mode 100644 src/protos/token_mint.proto create mode 100644 src/protos/token_pause.proto create mode 100644 src/protos/token_reject.proto create mode 100644 src/protos/token_revoke_kyc.proto create mode 100644 src/protos/token_service.proto create mode 100644 src/protos/token_unfreeze_account.proto create mode 100644 src/protos/token_unpause.proto create mode 100644 src/protos/token_update.proto create mode 100644 src/protos/token_update_nfts.proto create mode 100644 src/protos/token_wipe_account.proto create mode 100644 src/protos/transaction.proto create mode 100644 src/protos/transaction_body.proto create mode 100644 src/protos/transaction_contents.proto create mode 100644 src/protos/transaction_get_fast_record.proto create mode 100644 src/protos/transaction_get_receipt.proto create mode 100644 src/protos/transaction_get_record.proto create mode 100644 src/protos/transaction_receipt.proto create mode 100644 src/protos/transaction_record.proto create mode 100644 src/protos/transaction_response.proto create mode 100644 src/protos/unchecked_submit.proto create mode 100644 src/protos/util_prng.proto create mode 100644 src/protos/util_service.proto create mode 100644 uv.lock diff --git a/.gitignore b/.gitignore index 953b8b8..5023d52 100644 --- a/.gitignore +++ b/.gitignore @@ -1,121 +1,16 @@ -# Byte-compiled / optimized / DLL files +# Python-generated files __pycache__/ -*.py[cod] -*.so - -# Virtual environment -myenv/ -venv/ -.env/ - -# Distribution / packaging -.Python +*.py[oc] build/ -develop-eggs/ dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ wheels/ -share/python-wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.nox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -*.py,cover -.hypothesis/ -.pytest_cache/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 -db.sqlite3-journal - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ +*.egg-info -# Jupyter Notebook -.ipynb_checkpoints - -# pyenv -.python-version - -# celery beat schedule file -celerybeat-schedule - -# SageMath parsed files -*.sage.py - -# Environments -.env +# Virtual environments .venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# Pyre type checker -.pyre/ - -# profiling data -prof/ +# Local environment variables for testing +.env -# VS Code settings -.vscode/ \ No newline at end of file +# Generated protobuf files +src/hedera_sdk_python/hapi \ No newline at end of file diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..2009c7d --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.9.2 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md index 45830a8..7dc8b69 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,14 @@ This is a Python SDK for interacting with the Hedera Hashgraph platform. It allo ## Installation +0. Install Poetry: + +```bash +pipx install poetry +``` + +Other installation methods can be found [here](https://python-poetry.org/docs/#installation). + 1. Clone this repository: ```bash @@ -27,18 +35,21 @@ cd hedera_sdk_python 2. Install dependencies: -``` -pip install -r requirements.txt +NOTE: On macOS, you may need to set up the .venv first, so it can find python. Mac comes with python 3.9+, +but under the name `python3` instead of `python`, which `poetry` expects. To fix this, run: + +```bash +python3 -m venv .venv ``` -3. Install the SDK as a Python Package: ``` -pip install . +poetry install ``` ## Environment Setup -Before using the SDK, you need to configure your environment variables for the operator account and other credentials. Create a .env file in the root of your project with the following (replace with your environment variables): +Before using the SDK, you need to configure your environment variables for the operator account and other credentials. +Create a .env file in the root of your project with the following (replace with your environment variables): ``` OPERATOR_ID=0.0.1234xx @@ -47,6 +58,10 @@ RECIPIENT_ID=0.0.789xx TOKEN_ID=0.0.100xx ``` +A [sample .env](.env.example) file is provided in the root of this project. If you do not have an account on +the Hedera testnet, you can easily get one from the [Hedera Portal](https://portal.hedera.com/). Learn more about +testnet [here](https://docs.hedera.com/guides/testnet). + ## Running Tests To run the test suite for the SDK, use the following command: diff --git a/src/__init__.py b/examples/__init__.py similarity index 100% rename from src/__init__.py rename to examples/__init__.py diff --git a/examples/account_create.py b/examples/account_create.py index 165375b..d136f67 100644 --- a/examples/account_create.py +++ b/examples/account_create.py @@ -5,12 +5,12 @@ project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) sys.path.insert(0, project_root) -from src.client.client import Client -from src.account.account_id import AccountId -from src.crypto.private_key import PrivateKey -from src.client.network import Network -from src.account.account_create_transaction import AccountCreateTransaction -from src.response_code import ResponseCode +from hedera_sdk_python.client.client import Client +from hedera_sdk_python.account.account_id import AccountId +from hedera_sdk_python.crypto.private_key import PrivateKey +from hedera_sdk_python.client.network import Network +from hedera_sdk_python.account.account_create_transaction import AccountCreateTransaction +from hedera_sdk_python.response_code import ResponseCode load_dotenv() diff --git a/examples/query_balance.py b/examples/query_balance.py index 0919ebb..cf42ede 100644 --- a/examples/query_balance.py +++ b/examples/query_balance.py @@ -6,15 +6,15 @@ project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) sys.path.insert(0, project_root) -from src.account.account_id import AccountId -from src.crypto.private_key import PrivateKey -from src.client.network import Network -from src.client.client import Client -from src.account.account_create_transaction import AccountCreateTransaction -from src.transaction.transfer_transaction import TransferTransaction -from src.query.account_balance_query import CryptoGetAccountBalanceQuery -from src.hbar import Hbar -from src.response_code import ResponseCode +from hedera_sdk_python.account.account_id import AccountId +from hedera_sdk_python.crypto.private_key import PrivateKey +from hedera_sdk_python.client.network import Network +from hedera_sdk_python.client.client import Client +from hedera_sdk_python.account.account_create_transaction import AccountCreateTransaction +from hedera_sdk_python.transaction.transfer_transaction import TransferTransaction +from hedera_sdk_python.query.account_balance_query import CryptoGetAccountBalanceQuery +from hedera_sdk_python.hbar import Hbar +from hedera_sdk_python.response_code import ResponseCode load_dotenv() diff --git a/examples/query_receipt.py b/examples/query_receipt.py index 2cd7bfa..0d422ea 100644 --- a/examples/query_receipt.py +++ b/examples/query_receipt.py @@ -5,14 +5,14 @@ project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) sys.path.insert(0, project_root) -from src.account.account_id import AccountId -from src.crypto.private_key import PrivateKey -from src.client.network import Network -from src.client.client import Client -from src.transaction.transfer_transaction import TransferTransaction -from src.hbar import Hbar -from src.query.transaction_get_receipt_query import TransactionGetReceiptQuery -from src.response_code import ResponseCode +from hedera_sdk_python.account.account_id import AccountId +from hedera_sdk_python.crypto.private_key import PrivateKey +from hedera_sdk_python.client.network import Network +from hedera_sdk_python.client.client import Client +from hedera_sdk_python.transaction.transfer_transaction import TransferTransaction +from hedera_sdk_python.hbar import Hbar +from hedera_sdk_python.query.transaction_get_receipt_query import TransactionGetReceiptQuery +from hedera_sdk_python.response_code import ResponseCode load_dotenv() diff --git a/examples/token_associate.py b/examples/token_associate.py index 062203c..5ae0b4a 100644 --- a/examples/token_associate.py +++ b/examples/token_associate.py @@ -5,12 +5,12 @@ project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) sys.path.insert(0, project_root) -from src.client.client import Client -from src.account.account_id import AccountId -from src.crypto.private_key import PrivateKey -from src.client.network import Network -from src.tokens.token_id import TokenId -from src.tokens.token_associate_transaction import TokenAssociateTransaction +from hedera_sdk_python.client.client import Client +from hedera_sdk_python.account.account_id import AccountId +from hedera_sdk_python.crypto.private_key import PrivateKey +from hedera_sdk_python.client.network import Network +from hedera_sdk_python.tokens.token_id import TokenId +from hedera_sdk_python.tokens.token_associate_transaction import TokenAssociateTransaction load_dotenv() diff --git a/examples/token_create.py b/examples/token_create.py index 8f3177e..129e90d 100644 --- a/examples/token_create.py +++ b/examples/token_create.py @@ -5,11 +5,11 @@ project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) sys.path.insert(0, project_root) -from src.client.client import Client -from src.account.account_id import AccountId -from src.crypto.private_key import PrivateKey -from src.tokens.token_create_transaction import TokenCreateTransaction -from src.client.network import Network +from hedera_sdk_python.client.client import Client +from hedera_sdk_python.account.account_id import AccountId +from hedera_sdk_python.crypto.private_key import PrivateKey +from hedera_sdk_python.tokens.token_create_transaction import TokenCreateTransaction +from hedera_sdk_python.client.network import Network load_dotenv() diff --git a/examples/topic_create.py b/examples/topic_create.py new file mode 100644 index 0000000..e1bff2c --- /dev/null +++ b/examples/topic_create.py @@ -0,0 +1,45 @@ +import os +import sys +from dotenv import load_dotenv + +project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) +sys.path.insert(0, project_root) + +from hedera_sdk_python.client.client import Client +from hedera_sdk_python.account.account_id import AccountId +from hedera_sdk_python.crypto.private_key import PrivateKey +from hedera_sdk_python.client.network import Network +from hedera_sdk_python.consensus.topic_create_transaction import TopicCreateTransaction + +load_dotenv() + +def create_topic(): + network = Network(network='testnet') + client = Client(network) + + operator_id = AccountId.from_string(os.getenv('OPERATOR_ID')) + operator_key = PrivateKey.from_string(os.getenv('OPERATOR_KEY')) + + client.set_operator(operator_id, operator_key) + + transaction = ( + TopicCreateTransaction( + memo="Python SDK created topic", + admin_key=operator_key.public_key()) + .freeze_with(client) + .sign(operator_key) + ) + + try: + receipt = transaction.execute(client) + if receipt and receipt.topicId: + print(f"Topic created with ID: {receipt.topicId}") + else: + print("Topic creation failed: Topic ID not returned in receipt.") + sys.exit(1) + except Exception as e: + print(f"Topic creation failed: {str(e)}") + sys.exit(1) + +if __name__ == "__main__": + create_topic() diff --git a/examples/transfer_hbar.py b/examples/transfer_hbar.py index 7393fac..aadc857 100644 --- a/examples/transfer_hbar.py +++ b/examples/transfer_hbar.py @@ -5,11 +5,11 @@ project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) sys.path.insert(0, project_root) -from src.client.client import Client -from src.account.account_id import AccountId -from src.crypto.private_key import PrivateKey -from src.client.network import Network -from src.transaction.transfer_transaction import TransferTransaction +from hedera_sdk_python.client.client import Client +from hedera_sdk_python.account.account_id import AccountId +from hedera_sdk_python.crypto.private_key import PrivateKey +from hedera_sdk_python.client.network import Network +from hedera_sdk_python.transaction.transfer_transaction import TransferTransaction load_dotenv() diff --git a/examples/transfer_token.py b/examples/transfer_token.py index 3862a11..72a82ac 100644 --- a/examples/transfer_token.py +++ b/examples/transfer_token.py @@ -5,12 +5,12 @@ project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) sys.path.insert(0, project_root) -from src.client.client import Client -from src.account.account_id import AccountId -from src.crypto.private_key import PrivateKey -from src.client.network import Network -from src.tokens.token_id import TokenId -from src.transaction.transfer_transaction import TransferTransaction +from hedera_sdk_python.client.client import Client +from hedera_sdk_python.account.account_id import AccountId +from hedera_sdk_python.crypto.private_key import PrivateKey +from hedera_sdk_python.client.network import Network +from hedera_sdk_python.tokens.token_id import TokenId +from hedera_sdk_python.transaction.transfer_transaction import TransferTransaction load_dotenv() diff --git a/generate_proto.sh b/generate_proto.sh new file mode 100755 index 0000000..ff64ac8 --- /dev/null +++ b/generate_proto.sh @@ -0,0 +1,24 @@ +#!/bin/bash +rm -rf src/hedera_sdk_python/hapi/* +mkdir -p src/hedera_sdk_python/hapi/auxiliary/tss +mkdir -p src/hedera_sdk_python/hapi/event +touch src/hedera_sdk_python/hapi/__init__.py +python -m grpc_tools.protoc \ + --proto_path=./src/protos \ + --pyi_out=./src/hedera_sdk_python/hapi \ + --python_out=./src/hedera_sdk_python/hapi \ + --grpc_python_out=./src/hedera_sdk_python/hapi \ + ./src/protos/*.proto ./src/protos/event/*.proto ./src/protos/auxiliary/tss/*.proto + +# Modify the script for the specific import changes +if [[ "$OSTYPE" == "darwin"* ]]; then + find ./src/hedera_sdk_python/hapi -type f -name "*.py" -exec sed -i '' \ + -e '/^import .*_pb2 as .*__pb2/s/^/from . /' \ + -e 's/^from auxiliary\.tss/from .auxiliary.tss/' \ + -e 's/^from event/from .event/' {} + +else + find ./src/hedera_sdk_python/hapi -type f -name "*.py" -exec sed -i \ + -e '/^import .*_pb2 as .*__pb2/s/^/from . /' \ + -e 's/^from auxiliary\.tss/from .auxiliary.tss/' \ + -e 's/^from event/from .event/' {} + +fi \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..cc2351d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,51 @@ +[project] +name = "hedera_sdk_python" +dynamic = ["version"] +description = "A Hiero SDK in pure Python" +maintainers = [ + { name = "Nadine Loepfe", email = "nadine.loepfe@hashgraph.com" }, + { name = "Richard Bair", email = "rbair23@users.noreply.github.com" } +] +classifiers = [ + "Development Status :: 2 - Pre-Alpha", + "License :: OSI Approved :: Apache Software License", + "Programming Language :: Python :: 3.9", + "Operating System :: OS Independent", + "Intended Audience :: Developers", + "Topic :: Software Development :: Libraries :: Python Modules" +] +license = { file = "LICENSE" } +readme = "README.md" +requires-python = ">=3.9.2" +dependencies = [ + "protobuf==5.28.1", + "grpcio-tools==1.68.1", + "grpcio==1.68.1", + "cryptography==44.0.0", + "python-dotenv==1.0.1", + "requests==2.32.3", + "ecdsa>=0.19.0", +] + +[build-system] +requires = ["pdm-backend"] +build-backend = "pdm.backend" + +[dependency-groups] +dev = [ + "pytest>=8.3.4", +] +lint = [ + "ruff>=0.8.3", +] + +[tool.pdm] +version = {source = "scm"} + +[tool.pdm.build] +package-dir = "src" +excludes = ["**/.pytest_cache"] + +[tool.ruff] +line-length = 120 + diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 59c3b62..0000000 --- a/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -protobuf==5.27.2 -grpcio -grpcio-tools -cryptography -python-dotenv -requests \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 11e8648..0000000 --- a/setup.py +++ /dev/null @@ -1,20 +0,0 @@ -from setuptools import setup, find_packages - -setup( - name='Hedera-Python-Sdk', - version='0.1.0', - description='A mini Hedera SDK in Python', - author='Nadine Loepfe', - author_email='nadine.loepfe@hashgraph.com', - packages=find_packages(where='src'), - package_dir={'': 'src'}, - install_requires=[ - 'grpcio', - 'grpcio-tools', - 'cryptography', - 'protobuf==5.27.2', - 'cryptography', - 'python-dotenv', - 'requests' - ], -) diff --git a/src/account/__init__.py b/src/hedera_sdk_python/__init__.py similarity index 100% rename from src/account/__init__.py rename to src/hedera_sdk_python/__init__.py diff --git a/src/client/__init__.py b/src/hedera_sdk_python/account/__init__.py similarity index 100% rename from src/client/__init__.py rename to src/hedera_sdk_python/account/__init__.py diff --git a/src/account/account_balance.py b/src/hedera_sdk_python/account/account_balance.py similarity index 93% rename from src/account/account_balance.py rename to src/hedera_sdk_python/account/account_balance.py index 1a6ea57..2a60aec 100644 --- a/src/account/account_balance.py +++ b/src/hedera_sdk_python/account/account_balance.py @@ -1,5 +1,5 @@ -from src.tokens.token_id import TokenId -from src.hbar import Hbar +from hedera_sdk_python.tokens.token_id import TokenId +from hedera_sdk_python.hbar import Hbar class AccountBalance: """ diff --git a/src/account/account_create_transaction.py b/src/hedera_sdk_python/account/account_create_transaction.py similarity index 85% rename from src/account/account_create_transaction.py rename to src/hedera_sdk_python/account/account_create_transaction.py index 21441d5..1c924f7 100644 --- a/src/account/account_create_transaction.py +++ b/src/hedera_sdk_python/account/account_create_transaction.py @@ -1,8 +1,8 @@ -from src.transaction.transaction import Transaction -from src.proto import crypto_create_pb2, duration_pb2 -from src.response_code import ResponseCode -from src.crypto.public_key import PublicKey -from src.hbar import Hbar +from hedera_sdk_python.transaction.transaction import Transaction +from hedera_sdk_python.hapi import crypto_create_pb2, duration_pb2 +from hedera_sdk_python.response_code import ResponseCode +from hedera_sdk_python.crypto.public_key import PublicKey +from hedera_sdk_python.hbar import Hbar class AccountCreateTransaction(Transaction): @@ -16,18 +16,24 @@ class AccountCreateTransaction(Transaction): to build and execute an account creation transaction. """ - def __init__(self): + def __init__(self, initial_balance=0, key=None, receiver_signature_required=False, auto_renew_period=7890000, account_memo=""): """ Initializes a new AccountCreateTransaction instance with default values. """ super().__init__() - self.initial_balance = 0 + if not isinstance(initial_balance, (Hbar, int)): + raise TypeError("initial_balance must be an instance of Hbar or int representing tinybars.") + self.key = None self.receiver_signature_required = False self.auto_renew_period = 7890000 # default auto-renew period in seconds (90 days) self.account_memo = "" - self._default_transaction_fee = 300_000_000 + self.initial_balance = initial_balance + self.key = key + self.receiver_signature_required = receiver_signature_required + self.auto_renew_period = auto_renew_period + self.account_memo = account_memo def set_initial_balance(self, balance): self._require_not_frozen() diff --git a/src/account/account_id.py b/src/hedera_sdk_python/account/account_id.py similarity index 97% rename from src/account/account_id.py rename to src/hedera_sdk_python/account/account_id.py index 33289d4..47bf760 100644 --- a/src/account/account_id.py +++ b/src/hedera_sdk_python/account/account_id.py @@ -1,4 +1,4 @@ -from src.proto import basic_types_pb2 +from hedera_sdk_python.hapi import basic_types_pb2 class AccountId: def __init__(self, shard=0, realm=0, num=0): diff --git a/src/crypto/__init__.py b/src/hedera_sdk_python/client/__init__.py similarity index 100% rename from src/crypto/__init__.py rename to src/hedera_sdk_python/client/__init__.py diff --git a/src/client/client.py b/src/hedera_sdk_python/client/client.py similarity index 92% rename from src/client/client.py rename to src/hedera_sdk_python/client/client.py index 5bca420..29752ae 100644 --- a/src/client/client.py +++ b/src/hedera_sdk_python/client/client.py @@ -1,15 +1,15 @@ import grpc import time from collections import namedtuple -from src.proto import ( +from hedera_sdk_python.hapi import ( + consensus_service_pb2_grpc, token_service_pb2_grpc, crypto_service_pb2_grpc ) from .network import Network -from src.transaction.transaction_receipt import TransactionReceipt -from src.response_code import ResponseCode -from src.query.transaction_get_receipt_query import TransactionGetReceiptQuery -from src.transaction.transaction_id import TransactionId +from hedera_sdk_python.response_code import ResponseCode +from hedera_sdk_python.query.transaction_get_receipt_query import TransactionGetReceiptQuery +from hedera_sdk_python.transaction.transaction_id import TransactionId Operator = namedtuple('Operator', ['account_id', 'private_key']) @@ -27,6 +27,7 @@ def __init__(self, network=None): self.channel = None self.token_stub = None self.crypto_stub = None + self.topic_stub = None self.max_attempts = 10 initial_node_id = self.get_node_account_ids()[0] @@ -129,4 +130,5 @@ def _switch_node(self, node_account_id): self.channel = grpc.insecure_channel(node_address) self.token_stub = token_service_pb2_grpc.TokenServiceStub(self.channel) self.crypto_stub = crypto_service_pb2_grpc.CryptoServiceStub(self.channel) + self.topic_stub = consensus_service_pb2_grpc.ConsensusServiceStub(self.channel) self.node_account_id = node_account_id diff --git a/src/client/network.py b/src/hedera_sdk_python/client/network.py similarity index 98% rename from src/client/network.py rename to src/hedera_sdk_python/client/network.py index 15709d8..ab9f34d 100644 --- a/src/client/network.py +++ b/src/hedera_sdk_python/client/network.py @@ -1,6 +1,6 @@ import random import requests -from src.account.account_id import AccountId +from hedera_sdk_python.account.account_id import AccountId class Network: """ diff --git a/src/proto/__init__.py b/src/hedera_sdk_python/consensus/__init__.py similarity index 100% rename from src/proto/__init__.py rename to src/hedera_sdk_python/consensus/__init__.py diff --git a/src/hedera_sdk_python/consensus/topic_create_transaction.py b/src/hedera_sdk_python/consensus/topic_create_transaction.py new file mode 100644 index 0000000..37271b4 --- /dev/null +++ b/src/hedera_sdk_python/consensus/topic_create_transaction.py @@ -0,0 +1,103 @@ +from hedera_sdk_python.response_code import ResponseCode +from hedera_sdk_python.transaction.transaction import Transaction +from hedera_sdk_python.hapi import consensus_create_topic_pb2, duration_pb2 + +class TopicCreateTransaction(Transaction): + def __init__(self, memo="", admin_key=None, submit_key=None, auto_renew_period=7890000, auto_renew_account=None): + super().__init__() + self.memo = memo + self.admin_key = admin_key + self.submit_key = submit_key + self.auto_renew_period = auto_renew_period + self.auto_renew_account = auto_renew_account + self.transaction_fee = 10_000_000 + + def set_memo(self, memo): + self._require_not_frozen() + self.memo = memo + return self + + def set_admin_key(self, key): + self._require_not_frozen() + self.admin_key = key + return self + + def set_submit_key(self, key): + self._require_not_frozen() + self.submit_key = key + return self + + def set_auto_renew_period(self, seconds): + self._require_not_frozen() + self.auto_renew_period = seconds + return self + + def set_auto_renew_account(self, account_id): + self._require_not_frozen() + self.auto_renew_account = account_id + return self + + def build_transaction_body(self): + """ + Builds and returns the protobuf transaction body for topic creation. + + Returns: + TransactionBody: The protobuf transaction body containing the topic creation details. + + Raises: + ValueError: If required fields are missing. + """ + transaction_body = self.build_base_transaction_body() + transaction_body.consensusCreateTopic.CopyFrom(consensus_create_topic_pb2.ConsensusCreateTopicTransactionBody( + adminKey=self.admin_key.to_proto() if self.admin_key is not None else None, + submitKey=self.submit_key.to_proto() if self.submit_key is not None else None, + autoRenewPeriod=duration_pb2.Duration(seconds=self.auto_renew_period), + autoRenewAccount=self.auto_renew_account.to_proto() if self.auto_renew_account is not None else None, + memo=self.memo + )) + + return transaction_body + + def _execute_transaction(self, client, transaction_proto): + """ + Executes the topic creation transaction using the provided client. + + Args: + client (Client): The client instance to use for execution. + transaction_proto (Transaction): The protobuf Transaction message. + + Returns: + TransactionReceipt: The receipt from the network after transaction execution. + + Raises: + Exception: If the transaction submission fails or receives an error response. + """ + response = client.topic_stub.createTopic(transaction_proto) + + if response.nodeTransactionPrecheckCode != ResponseCode.OK: + error_code = response.nodeTransactionPrecheckCode + error_message = ResponseCode.get_name(error_code) + raise Exception(f"Error during transaction submission: {error_code} ({error_message})") + + receipt = self.get_receipt(client) + return receipt + + def get_receipt(self, client, timeout=60): + """ + Retrieves the receipt for the transaction. + + Args: + client (Client): The client instance. + timeout (int): Maximum time in seconds to wait for the receipt. + + Returns: + TransactionReceipt: The transaction receipt from the network. + + Raises: + Exception: If the transaction ID is not set or if receipt retrieval fails. + """ + if self.transaction_id is None: + raise Exception("Transaction ID is not set.") + + receipt = client.get_transaction_receipt(self.transaction_id, timeout) + return receipt \ No newline at end of file diff --git a/src/hedera_sdk_python/consensus/topic_id.py b/src/hedera_sdk_python/consensus/topic_id.py new file mode 100644 index 0000000..1732364 --- /dev/null +++ b/src/hedera_sdk_python/consensus/topic_id.py @@ -0,0 +1,44 @@ +from hedera_sdk_python.hapi import basic_types_pb2 + +class TopicId: + def __init__(self, shard=0, realm=0, num=0): + self.shard = shard + self.realm = realm + self.num = num + + @classmethod + def from_proto(cls, topic_id_proto: basic_types_pb2.TopicID): + """ + Creates a TopicId instance from a protobuf TopicID object. + """ + return cls( + shard=topic_id_proto.shardNum, + realm=topic_id_proto.realmNum, + num=topic_id_proto.topicNum + ) + + def to_proto(self): + """ + Converts the TopicId instance to a protobuf TopicID object. + """ + topic_id_proto = basic_types_pb2.TopicID() + topic_id_proto.shardNum = self.shard + topic_id_proto.realmNum = self.realm + topic_id_proto.topicNum = self.num + return topic_id_proto + + def __str__(self): + """ + Returns the string representation of the TopicId in the format 'shard.realm.num'. + """ + return f"{self.shard}.{self.realm}.{self.num}" + + @classmethod + def from_string(cls, topic_id_str): + """ + Parses a string in the format 'shard.realm.num' to create a TopicId instance. + """ + parts = topic_id_str.strip().split('.') + if len(parts) != 3: + raise ValueError("Invalid TopicId format. Expected 'shard.realm.num'") + return cls(shard=int(parts[0]), realm=int(parts[1]), num=int(parts[2])) \ No newline at end of file diff --git a/src/hedera_sdk_python/crypto/__init__.py b/src/hedera_sdk_python/crypto/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/crypto/private_key.py b/src/hedera_sdk_python/crypto/private_key.py similarity index 97% rename from src/crypto/private_key.py rename to src/hedera_sdk_python/crypto/private_key.py index a88bbf8..8f6405b 100644 --- a/src/crypto/private_key.py +++ b/src/hedera_sdk_python/crypto/private_key.py @@ -1,6 +1,6 @@ from cryptography.hazmat.primitives.asymmetric import ed25519 from cryptography.hazmat.primitives import serialization -from src.crypto.public_key import PublicKey +from hedera_sdk_python.crypto.public_key import PublicKey class PrivateKey: def __init__(self, private_key): diff --git a/src/crypto/public_key.py b/src/hedera_sdk_python/crypto/public_key.py similarity index 96% rename from src/crypto/public_key.py rename to src/hedera_sdk_python/crypto/public_key.py index 35cc73d..d973fd9 100644 --- a/src/crypto/public_key.py +++ b/src/hedera_sdk_python/crypto/public_key.py @@ -38,7 +38,7 @@ def to_proto(self): Returns: Key: The protobuf Key message. """ - from src.proto import basic_types_pb2 + from hedera_sdk_python.hapi import basic_types_pb2 public_bytes = self._public_key.public_bytes( encoding=serialization.Encoding.Raw, format=serialization.PublicFormat.Raw diff --git a/src/hbar.py b/src/hedera_sdk_python/hbar.py similarity index 51% rename from src/hbar.py rename to src/hedera_sdk_python/hbar.py index 8df9fce..3a05499 100644 --- a/src/hbar.py +++ b/src/hedera_sdk_python/hbar.py @@ -1,21 +1,29 @@ class Hbar: + """ Represents the network utility token. For historical purposes this is referred to as an hbar in the SDK because + that is the native currency of the Hedera network, but for other Hiero networks, it represents the network utility + token, whatever its designation may be. """ + """ There are 100 million tinybars in one hbar. """ TINYBAR_TO_HBAR = 100_000_000 def __init__(self, amount, in_tinybars=False): + """ Create an hbar instance with the given amount designated either in hbars or tinybars. """ if in_tinybars: self._amount_in_tinybar = int(amount) else: self._amount_in_tinybar = int(amount * self.TINYBAR_TO_HBAR) def to_tinybars(self): + """ Returns the amount of hbars in tinybars. """ return self._amount_in_tinybar def to_hbars(self): + """ Returns the amount of hbars. """ return self._amount_in_tinybar / self.TINYBAR_TO_HBAR @classmethod def from_tinybars(cls, tinybars): + """ Creates an hbar instance from the given amount in tinybars. """ return cls(tinybars, in_tinybars=True) def __str__(self): diff --git a/src/hedera_sdk_python/py.typed b/src/hedera_sdk_python/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/src/hedera_sdk_python/query/__init__.py b/src/hedera_sdk_python/query/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/query/account_balance_query.py b/src/hedera_sdk_python/query/account_balance_query.py similarity index 92% rename from src/query/account_balance_query.py rename to src/hedera_sdk_python/query/account_balance_query.py index ea2af90..962c9bb 100644 --- a/src/query/account_balance_query.py +++ b/src/hedera_sdk_python/query/account_balance_query.py @@ -1,7 +1,7 @@ -from src.query.query import Query -from src.proto import crypto_get_account_balance_pb2, query_pb2 -from src.account.account_id import AccountId -from src.account.account_balance import AccountBalance +from hedera_sdk_python.query.query import Query +from hedera_sdk_python.hapi import crypto_get_account_balance_pb2, query_pb2 +from hedera_sdk_python.account.account_id import AccountId +from hedera_sdk_python.account.account_balance import AccountBalance class CryptoGetAccountBalanceQuery(Query): diff --git a/src/query/query.py b/src/hedera_sdk_python/query/query.py similarity index 97% rename from src/query/query.py rename to src/hedera_sdk_python/query/query.py index a9feac2..e8c153e 100644 --- a/src/query/query.py +++ b/src/hedera_sdk_python/query/query.py @@ -1,6 +1,6 @@ import time -from src.proto import query_header_pb2 -from src.response_code import ResponseCode +from hedera_sdk_python.hapi import query_header_pb2 +from hedera_sdk_python.response_code import ResponseCode class Query: """ diff --git a/src/query/transaction_get_receipt_query.py b/src/hedera_sdk_python/query/transaction_get_receipt_query.py similarity index 90% rename from src/query/transaction_get_receipt_query.py rename to src/hedera_sdk_python/query/transaction_get_receipt_query.py index 4439d0d..861924e 100644 --- a/src/query/transaction_get_receipt_query.py +++ b/src/hedera_sdk_python/query/transaction_get_receipt_query.py @@ -1,8 +1,8 @@ -from src.query.query import Query -from src.proto import transaction_get_receipt_pb2, query_pb2 -from src.response_code import ResponseCode -from src.transaction.transaction_id import TransactionId -from src.transaction.transaction_receipt import TransactionReceipt +from hedera_sdk_python.query.query import Query +from hedera_sdk_python.hapi import transaction_get_receipt_pb2, query_pb2 +from hedera_sdk_python.response_code import ResponseCode +from hedera_sdk_python.transaction.transaction_id import TransactionId +from hedera_sdk_python.transaction.transaction_receipt import TransactionReceipt import traceback class TransactionGetReceiptQuery(Query): diff --git a/src/response_code.py b/src/hedera_sdk_python/response_code.py similarity index 100% rename from src/response_code.py rename to src/hedera_sdk_python/response_code.py diff --git a/src/hedera_sdk_python/tokens/__init__.py b/src/hedera_sdk_python/tokens/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/tokens/token_associate_transaction.py b/src/hedera_sdk_python/tokens/token_associate_transaction.py similarity index 95% rename from src/tokens/token_associate_transaction.py rename to src/hedera_sdk_python/tokens/token_associate_transaction.py index f09f46c..96eeaa9 100644 --- a/src/tokens/token_associate_transaction.py +++ b/src/hedera_sdk_python/tokens/token_associate_transaction.py @@ -1,6 +1,6 @@ -from src.transaction.transaction import Transaction -from src.proto import token_associate_pb2 -from src.response_code import ResponseCode +from hedera_sdk_python.transaction.transaction import Transaction +from hedera_sdk_python.hapi import token_associate_pb2 +from hedera_sdk_python.response_code import ResponseCode class TokenAssociateTransaction(Transaction): """ diff --git a/src/tokens/token_create_transaction.py b/src/hedera_sdk_python/tokens/token_create_transaction.py similarity index 95% rename from src/tokens/token_create_transaction.py rename to src/hedera_sdk_python/tokens/token_create_transaction.py index ec8a48c..d1d3be8 100644 --- a/src/tokens/token_create_transaction.py +++ b/src/hedera_sdk_python/tokens/token_create_transaction.py @@ -1,6 +1,6 @@ -from src.transaction.transaction import Transaction -from src.proto import token_create_pb2 -from src.response_code import ResponseCode +from hedera_sdk_python.transaction.transaction import Transaction +from hedera_sdk_python.hapi import token_create_pb2 +from hedera_sdk_python.response_code import ResponseCode class TokenCreateTransaction(Transaction): """ diff --git a/src/tokens/token_id.py b/src/hedera_sdk_python/tokens/token_id.py similarity index 91% rename from src/tokens/token_id.py rename to src/hedera_sdk_python/tokens/token_id.py index a82250a..b07705c 100644 --- a/src/tokens/token_id.py +++ b/src/hedera_sdk_python/tokens/token_id.py @@ -1,4 +1,4 @@ -from src.proto import basic_types_pb2 +from hedera_sdk_python.hapi import basic_types_pb2 class TokenId: def __init__(self, shard=0, realm=0, num=0): @@ -7,7 +7,7 @@ def __init__(self, shard=0, realm=0, num=0): self.num = num @classmethod - def from_proto(cls, token_id_proto): + def from_proto(cls, token_id_proto: basic_types_pb2.TokenID): """ Creates a TokenId instance from a protobuf TokenID object. """ diff --git a/src/hedera_sdk_python/transaction/__init__.py b/src/hedera_sdk_python/transaction/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/transaction/transaction.py b/src/hedera_sdk_python/transaction/transaction.py similarity index 98% rename from src/transaction/transaction.py rename to src/hedera_sdk_python/transaction/transaction.py index 6e7dc0e..695e129 100644 --- a/src/transaction/transaction.py +++ b/src/hedera_sdk_python/transaction/transaction.py @@ -1,9 +1,9 @@ -from src.proto import ( +from hedera_sdk_python.hapi import ( transaction_pb2, transaction_body_pb2, basic_types_pb2, transaction_contents_pb2, duration_pb2 ) from cryptography.hazmat.primitives.serialization import Encoding, PublicFormat -from src.transaction.transaction_id import TransactionId +from hedera_sdk_python.transaction.transaction_id import TransactionId class Transaction: """ @@ -26,9 +26,7 @@ def __init__(self): self.memo = "" self.transaction_body_bytes = None self.signature_map = basic_types_pb2.SignatureMap() - - self._default_transaction_fee = 2_000_000 - + self._default_transaction_fee = 2_000_000 self.operator_account_id = None def sign(self, private_key): diff --git a/src/transaction/transaction_id.py b/src/hedera_sdk_python/transaction/transaction_id.py similarity index 97% rename from src/transaction/transaction_id.py rename to src/hedera_sdk_python/transaction/transaction_id.py index 5f2b20f..6439dd9 100644 --- a/src/transaction/transaction_id.py +++ b/src/hedera_sdk_python/transaction/transaction_id.py @@ -1,6 +1,6 @@ import time -from src.proto import basic_types_pb2, timestamp_pb2 -from src.account.account_id import AccountId +from hedera_sdk_python.hapi import basic_types_pb2, timestamp_pb2 +from hedera_sdk_python.account.account_id import AccountId import random class TransactionId: diff --git a/src/transaction/transaction_receipt.py b/src/hedera_sdk_python/transaction/transaction_receipt.py similarity index 76% rename from src/transaction/transaction_receipt.py rename to src/hedera_sdk_python/transaction/transaction_receipt.py index a7a947f..8e11994 100644 --- a/src/transaction/transaction_receipt.py +++ b/src/hedera_sdk_python/transaction/transaction_receipt.py @@ -1,5 +1,6 @@ -from src.tokens.token_id import TokenId -from src.account.account_id import AccountId +from hedera_sdk_python.tokens.token_id import TokenId +from hedera_sdk_python.consensus.topic_id import TopicId +from hedera_sdk_python.account.account_id import AccountId class TransactionReceipt: @@ -37,6 +38,19 @@ def tokenId(self): else: return None + @property + def topicId(self): + """ + Retrieves the TopicId associated with the transaction receipt, if available. + + Returns: + TopicId or None: The TopicId if present; otherwise, None. + """ + if self._receipt_proto.HasField('topicID') and self._receipt_proto.topicID.topicNum != 0: + return TopicId.from_proto(self._receipt_proto.topicID) + else: + return None + @property def accountId(self): """ diff --git a/src/transaction/transfer_transaction.py b/src/hedera_sdk_python/transaction/transfer_transaction.py similarity index 94% rename from src/transaction/transfer_transaction.py rename to src/hedera_sdk_python/transaction/transfer_transaction.py index 8172d72..685a00c 100644 --- a/src/transaction/transfer_transaction.py +++ b/src/hedera_sdk_python/transaction/transfer_transaction.py @@ -1,9 +1,9 @@ -from src.transaction.transaction import Transaction -from src.proto import crypto_transfer_pb2, basic_types_pb2 -from src.account.account_id import AccountId -from src.tokens.token_id import TokenId +from hedera_sdk_python.transaction.transaction import Transaction +from hedera_sdk_python.hapi import crypto_transfer_pb2, basic_types_pb2 +from hedera_sdk_python.account.account_id import AccountId +from hedera_sdk_python.tokens.token_id import TokenId from collections import defaultdict -from src.response_code import ResponseCode +from hedera_sdk_python.response_code import ResponseCode class TransferTransaction(Transaction): """ diff --git a/src/proto/address_book_service_pb2.py b/src/proto/address_book_service_pb2.py deleted file mode 100644 index 753b622..0000000 --- a/src/proto/address_book_service_pb2.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: address_book_service.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'address_book_service.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import query_pb2 as query__pb2 -from . import response_pb2 as response__pb2 -from . import transaction_response_pb2 as transaction__response__pb2 -from . import transaction_pb2 as transaction__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x61\x64\x64ress_book_service.proto\x12\x05proto\x1a\x0bquery.proto\x1a\x0eresponse.proto\x1a\x1atransaction_response.proto\x1a\x11transaction.proto2\xce\x01\n\x12\x41\x64\x64ressBookService\x12<\n\ncreateNode\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12<\n\ndeleteNode\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12<\n\nupdateNode\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponseB(\n&com.hederahashgraph.service.proto.javab\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'address_book_service_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n&com.hederahashgraph.service.proto.java' - _globals['_ADDRESSBOOKSERVICE']._serialized_start=114 - _globals['_ADDRESSBOOKSERVICE']._serialized_end=320 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/address_book_service_pb2_grpc.py b/src/proto/address_book_service_pb2_grpc.py deleted file mode 100644 index 7551f33..0000000 --- a/src/proto/address_book_service_pb2_grpc.py +++ /dev/null @@ -1,487 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - -from . import transaction_pb2 as transaction__pb2 -from . import transaction_response_pb2 as transaction__response__pb2 - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in address_book_service_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) - - -class AddressBookServiceStub(object): - """* - The Address Book service provides the ability for Hedera network node - administrators to add, update, and remove consensus nodes. This addition, - update, or removal of a consensus node requires governing council approval, - but each node operator may update their own operational attributes without - additional approval, reducing overhead for routine operations. - - Most operations are `privileged operations` and require governing council - approval. - - ### For a node creation transaction. - - The node operator SHALL create a `createNode` transaction. - - The node operator SHALL sign this transaction with the active `key` for - the account to be assigned as the "node account". - - The node operator MUST deliver the signed transaction to the Hedera - council representative. - - The Hedera council representative SHALL arrange for council members to - review and sign the transaction. - - Once sufficient council members have signed the transaction, the - Hedera council representative SHALL submit the transaction to the - network. - - Upon receipt of a valid and signed node creation transaction the network - software SHALL - - Validate the threshold signature for the Hedera governing council - - Validate the signature of the active `key` for the account to be - assigned as the "node account". - - Create the new node in state, this new node SHALL NOT be active in the - network at this time. - - When executing the next `freeze` transaction with `freeze_type` set to - `PREPARE_UPGRADE`, update network configuration and bring the - new node to an active status within the network. The node to be added - SHALL be active in the network following this upgrade. - - ### For a node deletion transaction. - - The node operator or Hedera council representative SHALL create a - `deleteNode` transaction. - - If the node operator creates the transaction - - The node operator MUST sign this transaction with the active `key` - for the account assigned as the "node account". - - The node operator SHALL deliver the signed transaction to the Hedera - council representative. - - The Hedera council representative SHALL arrange for council members to - review and sign the transaction. - - Once sufficient council members have signed the transaction, the - Hedera council representative SHALL submit the transaction to the - network. - - Upon receipt of a valid and signed node deletion transaction the network - software SHALL - - Validate the threshold signature for the Hedera governing council - - Remove the existing node from network state. The node SHALL still - be active in the network at this time. - - When executing the next `freeze` transaction with `freeze_type` set to - `PREPARE_UPGRADE`, update network configuration and remove the - node to be deleted from the network. The node to be deleted SHALL NOT - be active in the network following this upgrade. - - ### For a node update transaction. - - The node operator or Hedera council representative SHALL create an - `updateNode` transaction. - - If the node operator creates the transaction - - The node operator MUST sign this transaction with the active `key` - for the account assigned as the current "node account". - - If the transaction changes the value of the "node account" the - node operator MUST _also_ sign this transaction with the active `key` - for the account to be assigned as the new "node account". - - The node operator SHALL submit the transaction to the - network. Hedera council approval SHALL NOT be sought for this - transaction - - If the Hedera council representative creates the transaction - - The Hedera council representative SHALL arrange for council members - to review and sign the transaction. - - Once sufficient council members have signed the transaction, the - Hedera council representative SHALL submit the transaction to the - network. - - Upon receipt of a valid and signed node update transaction the network - software SHALL - - If the transaction is signed by the Hedera governing council - - Validate the threshold signature for the Hedera governing council - - If the transaction is signed by the active `key` for the node account - - Validate the signature of the active `key` for the account assigned - as the "node account". - - If the transaction modifies the value of the "node account", - - Validate the signature of the _new_ `key` for the account to be - assigned as the new "node account". - - Modify the node information held in network state with the changes - requested in the update transaction. The node changes SHALL NOT be - applied to network configuration, and SHALL NOT affect network - operation at this time. - - When executing the next `freeze` transaction with `freeze_type` set to - `PREPARE_UPGRADE`, update network configuration according to the - modified information in network state. The requested changes SHALL - affect network operation following this upgrade. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.createNode = channel.unary_unary( - '/proto.AddressBookService/createNode', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.deleteNode = channel.unary_unary( - '/proto.AddressBookService/deleteNode', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.updateNode = channel.unary_unary( - '/proto.AddressBookService/updateNode', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - - -class AddressBookServiceServicer(object): - """* - The Address Book service provides the ability for Hedera network node - administrators to add, update, and remove consensus nodes. This addition, - update, or removal of a consensus node requires governing council approval, - but each node operator may update their own operational attributes without - additional approval, reducing overhead for routine operations. - - Most operations are `privileged operations` and require governing council - approval. - - ### For a node creation transaction. - - The node operator SHALL create a `createNode` transaction. - - The node operator SHALL sign this transaction with the active `key` for - the account to be assigned as the "node account". - - The node operator MUST deliver the signed transaction to the Hedera - council representative. - - The Hedera council representative SHALL arrange for council members to - review and sign the transaction. - - Once sufficient council members have signed the transaction, the - Hedera council representative SHALL submit the transaction to the - network. - - Upon receipt of a valid and signed node creation transaction the network - software SHALL - - Validate the threshold signature for the Hedera governing council - - Validate the signature of the active `key` for the account to be - assigned as the "node account". - - Create the new node in state, this new node SHALL NOT be active in the - network at this time. - - When executing the next `freeze` transaction with `freeze_type` set to - `PREPARE_UPGRADE`, update network configuration and bring the - new node to an active status within the network. The node to be added - SHALL be active in the network following this upgrade. - - ### For a node deletion transaction. - - The node operator or Hedera council representative SHALL create a - `deleteNode` transaction. - - If the node operator creates the transaction - - The node operator MUST sign this transaction with the active `key` - for the account assigned as the "node account". - - The node operator SHALL deliver the signed transaction to the Hedera - council representative. - - The Hedera council representative SHALL arrange for council members to - review and sign the transaction. - - Once sufficient council members have signed the transaction, the - Hedera council representative SHALL submit the transaction to the - network. - - Upon receipt of a valid and signed node deletion transaction the network - software SHALL - - Validate the threshold signature for the Hedera governing council - - Remove the existing node from network state. The node SHALL still - be active in the network at this time. - - When executing the next `freeze` transaction with `freeze_type` set to - `PREPARE_UPGRADE`, update network configuration and remove the - node to be deleted from the network. The node to be deleted SHALL NOT - be active in the network following this upgrade. - - ### For a node update transaction. - - The node operator or Hedera council representative SHALL create an - `updateNode` transaction. - - If the node operator creates the transaction - - The node operator MUST sign this transaction with the active `key` - for the account assigned as the current "node account". - - If the transaction changes the value of the "node account" the - node operator MUST _also_ sign this transaction with the active `key` - for the account to be assigned as the new "node account". - - The node operator SHALL submit the transaction to the - network. Hedera council approval SHALL NOT be sought for this - transaction - - If the Hedera council representative creates the transaction - - The Hedera council representative SHALL arrange for council members - to review and sign the transaction. - - Once sufficient council members have signed the transaction, the - Hedera council representative SHALL submit the transaction to the - network. - - Upon receipt of a valid and signed node update transaction the network - software SHALL - - If the transaction is signed by the Hedera governing council - - Validate the threshold signature for the Hedera governing council - - If the transaction is signed by the active `key` for the node account - - Validate the signature of the active `key` for the account assigned - as the "node account". - - If the transaction modifies the value of the "node account", - - Validate the signature of the _new_ `key` for the account to be - assigned as the new "node account". - - Modify the node information held in network state with the changes - requested in the update transaction. The node changes SHALL NOT be - applied to network configuration, and SHALL NOT affect network - operation at this time. - - When executing the next `freeze` transaction with `freeze_type` set to - `PREPARE_UPGRADE`, update network configuration according to the - modified information in network state. The requested changes SHALL - affect network operation following this upgrade. - """ - - def createNode(self, request, context): - """* - A transaction to create a new consensus node in the network. - address book. -

- This transaction, once complete, SHALL add a new consensus node to the - network state.
- The new consensus node SHALL remain in state, but SHALL NOT participate - in network consensus until the network updates the network configuration. -

- Hedera governing council authorization is REQUIRED for this transaction. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def deleteNode(self, request, context): - """* - A transaction to remove a consensus node from the network address - book. -

- This transaction, once complete, SHALL remove the identified consensus - node from the network state. -

- Hedera governing council authorization is REQUIRED for this transaction. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def updateNode(self, request, context): - """* - A transaction to update an existing consensus node from the network - address book. -

- This transaction, once complete, SHALL modify the identified consensus - node state as requested. -

- This transaction MAY be authorized by either the node operator OR the - Hedera governing council. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_AddressBookServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'createNode': grpc.unary_unary_rpc_method_handler( - servicer.createNode, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'deleteNode': grpc.unary_unary_rpc_method_handler( - servicer.deleteNode, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'updateNode': grpc.unary_unary_rpc_method_handler( - servicer.updateNode, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'proto.AddressBookService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('proto.AddressBookService', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class AddressBookService(object): - """* - The Address Book service provides the ability for Hedera network node - administrators to add, update, and remove consensus nodes. This addition, - update, or removal of a consensus node requires governing council approval, - but each node operator may update their own operational attributes without - additional approval, reducing overhead for routine operations. - - Most operations are `privileged operations` and require governing council - approval. - - ### For a node creation transaction. - - The node operator SHALL create a `createNode` transaction. - - The node operator SHALL sign this transaction with the active `key` for - the account to be assigned as the "node account". - - The node operator MUST deliver the signed transaction to the Hedera - council representative. - - The Hedera council representative SHALL arrange for council members to - review and sign the transaction. - - Once sufficient council members have signed the transaction, the - Hedera council representative SHALL submit the transaction to the - network. - - Upon receipt of a valid and signed node creation transaction the network - software SHALL - - Validate the threshold signature for the Hedera governing council - - Validate the signature of the active `key` for the account to be - assigned as the "node account". - - Create the new node in state, this new node SHALL NOT be active in the - network at this time. - - When executing the next `freeze` transaction with `freeze_type` set to - `PREPARE_UPGRADE`, update network configuration and bring the - new node to an active status within the network. The node to be added - SHALL be active in the network following this upgrade. - - ### For a node deletion transaction. - - The node operator or Hedera council representative SHALL create a - `deleteNode` transaction. - - If the node operator creates the transaction - - The node operator MUST sign this transaction with the active `key` - for the account assigned as the "node account". - - The node operator SHALL deliver the signed transaction to the Hedera - council representative. - - The Hedera council representative SHALL arrange for council members to - review and sign the transaction. - - Once sufficient council members have signed the transaction, the - Hedera council representative SHALL submit the transaction to the - network. - - Upon receipt of a valid and signed node deletion transaction the network - software SHALL - - Validate the threshold signature for the Hedera governing council - - Remove the existing node from network state. The node SHALL still - be active in the network at this time. - - When executing the next `freeze` transaction with `freeze_type` set to - `PREPARE_UPGRADE`, update network configuration and remove the - node to be deleted from the network. The node to be deleted SHALL NOT - be active in the network following this upgrade. - - ### For a node update transaction. - - The node operator or Hedera council representative SHALL create an - `updateNode` transaction. - - If the node operator creates the transaction - - The node operator MUST sign this transaction with the active `key` - for the account assigned as the current "node account". - - If the transaction changes the value of the "node account" the - node operator MUST _also_ sign this transaction with the active `key` - for the account to be assigned as the new "node account". - - The node operator SHALL submit the transaction to the - network. Hedera council approval SHALL NOT be sought for this - transaction - - If the Hedera council representative creates the transaction - - The Hedera council representative SHALL arrange for council members - to review and sign the transaction. - - Once sufficient council members have signed the transaction, the - Hedera council representative SHALL submit the transaction to the - network. - - Upon receipt of a valid and signed node update transaction the network - software SHALL - - If the transaction is signed by the Hedera governing council - - Validate the threshold signature for the Hedera governing council - - If the transaction is signed by the active `key` for the node account - - Validate the signature of the active `key` for the account assigned - as the "node account". - - If the transaction modifies the value of the "node account", - - Validate the signature of the _new_ `key` for the account to be - assigned as the new "node account". - - Modify the node information held in network state with the changes - requested in the update transaction. The node changes SHALL NOT be - applied to network configuration, and SHALL NOT affect network - operation at this time. - - When executing the next `freeze` transaction with `freeze_type` set to - `PREPARE_UPGRADE`, update network configuration according to the - modified information in network state. The requested changes SHALL - affect network operation following this upgrade. - """ - - @staticmethod - def createNode(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.AddressBookService/createNode', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def deleteNode(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.AddressBookService/deleteNode', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def updateNode(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.AddressBookService/updateNode', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/src/proto/basic_types_pb2.py b/src/proto/basic_types_pb2.py deleted file mode 100644 index b37dd35..0000000 --- a/src/proto/basic_types_pb2.py +++ /dev/null @@ -1,153 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: basic_types.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'basic_types.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import timestamp_pb2 as timestamp__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x62\x61sic_types.proto\x12\x05proto\x1a\x0ftimestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x1b\n\x07ShardID\x12\x10\n\x08shardNum\x18\x01 \x01(\x03\"-\n\x07RealmID\x12\x10\n\x08shardNum\x18\x01 \x01(\x03\x12\x10\n\x08realmNum\x18\x02 \x01(\x03\"a\n\tAccountID\x12\x10\n\x08shardNum\x18\x01 \x01(\x03\x12\x10\n\x08realmNum\x18\x02 \x01(\x03\x12\x14\n\naccountNum\x18\x03 \x01(\x03H\x00\x12\x0f\n\x05\x61lias\x18\x04 \x01(\x0cH\x00\x42\t\n\x07\x61\x63\x63ount\"@\n\x05NftID\x12 \n\x08token_ID\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12\x15\n\rserial_number\x18\x02 \x01(\x03\"=\n\x06\x46ileID\x12\x10\n\x08shardNum\x18\x01 \x01(\x03\x12\x10\n\x08realmNum\x18\x02 \x01(\x03\x12\x0f\n\x07\x66ileNum\x18\x03 \x01(\x03\"j\n\nContractID\x12\x10\n\x08shardNum\x18\x01 \x01(\x03\x12\x10\n\x08realmNum\x18\x02 \x01(\x03\x12\x15\n\x0b\x63ontractNum\x18\x03 \x01(\x03H\x00\x12\x15\n\x0b\x65vm_address\x18\x04 \x01(\x0cH\x00\x42\n\n\x08\x63ontract\"\x87\x01\n\rTransactionID\x12/\n\x15transactionValidStart\x18\x01 \x01(\x0b\x32\x10.proto.Timestamp\x12#\n\taccountID\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12\x11\n\tscheduled\x18\x03 \x01(\x08\x12\r\n\x05nonce\x18\x04 \x01(\x05\"Y\n\rAccountAmount\x12#\n\taccountID\x18\x01 \x01(\x0b\x32\x10.proto.AccountID\x12\x0e\n\x06\x61mount\x18\x02 \x01(\x12\x12\x13\n\x0bis_approval\x18\x03 \x01(\x08\"<\n\x0cTransferList\x12,\n\x0e\x61\x63\x63ountAmounts\x18\x01 \x03(\x0b\x32\x14.proto.AccountAmount\"\x90\x01\n\x0bNftTransfer\x12)\n\x0fsenderAccountID\x18\x01 \x01(\x0b\x32\x10.proto.AccountID\x12+\n\x11receiverAccountID\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12\x14\n\x0cserialNumber\x18\x03 \x01(\x03\x12\x13\n\x0bis_approval\x18\x04 \x01(\x08\"\xbe\x01\n\x11TokenTransferList\x12\x1d\n\x05token\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12\'\n\ttransfers\x18\x02 \x03(\x0b\x32\x14.proto.AccountAmount\x12(\n\x0cnftTransfers\x18\x03 \x03(\x0b\x32\x12.proto.NftTransfer\x12\x37\n\x11\x65xpected_decimals\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\"2\n\x08\x46raction\x12\x11\n\tnumerator\x18\x01 \x01(\x03\x12\x13\n\x0b\x64\x65nominator\x18\x02 \x01(\x03\"?\n\x07TopicID\x12\x10\n\x08shardNum\x18\x01 \x01(\x03\x12\x10\n\x08realmNum\x18\x02 \x01(\x03\x12\x10\n\x08topicNum\x18\x03 \x01(\x03\"?\n\x07TokenID\x12\x10\n\x08shardNum\x18\x01 \x01(\x03\x12\x10\n\x08realmNum\x18\x02 \x01(\x03\x12\x10\n\x08tokenNum\x18\x03 \x01(\x03\"E\n\nScheduleID\x12\x10\n\x08shardNum\x18\x01 \x01(\x03\x12\x10\n\x08realmNum\x18\x02 \x01(\x03\x12\x13\n\x0bscheduleNum\x18\x03 \x01(\x03\"\x92\x02\n\x03Key\x12\'\n\ncontractID\x18\x01 \x01(\x0b\x32\x11.proto.ContractIDH\x00\x12\x11\n\x07\x65\x64\x32\x35\x35\x31\x39\x18\x02 \x01(\x0cH\x00\x12\x12\n\x08RSA_3072\x18\x03 \x01(\x0cH\x00\x12\x13\n\tECDSA_384\x18\x04 \x01(\x0cH\x00\x12+\n\x0cthresholdKey\x18\x05 \x01(\x0b\x32\x13.proto.ThresholdKeyH\x00\x12!\n\x07keyList\x18\x06 \x01(\x0b\x32\x0e.proto.KeyListH\x00\x12\x19\n\x0f\x45\x43\x44SA_secp256k1\x18\x07 \x01(\x0cH\x00\x12\x34\n\x17\x64\x65legatable_contract_id\x18\x08 \x01(\x0b\x32\x11.proto.ContractIDH\x00\x42\x05\n\x03key\"?\n\x0cThresholdKey\x12\x11\n\tthreshold\x18\x01 \x01(\r\x12\x1c\n\x04keys\x18\x02 \x01(\x0b\x32\x0e.proto.KeyList\"#\n\x07KeyList\x12\x18\n\x04keys\x18\x01 \x03(\x0b\x32\n.proto.Key\"\xd4\x01\n\tSignature\x12\x12\n\x08\x63ontract\x18\x01 \x01(\x0cH\x00\x12\x11\n\x07\x65\x64\x32\x35\x35\x31\x39\x18\x02 \x01(\x0cH\x00\x12\x12\n\x08RSA_3072\x18\x03 \x01(\x0cH\x00\x12\x13\n\tECDSA_384\x18\x04 \x01(\x0cH\x00\x12\x37\n\x12thresholdSignature\x18\x05 \x01(\x0b\x32\x19.proto.ThresholdSignatureH\x00\x12-\n\rsignatureList\x18\x06 \x01(\x0b\x32\x14.proto.SignatureListH\x00:\x02\x18\x01\x42\x0b\n\tsignature\"<\n\x12ThresholdSignature\x12\"\n\x04sigs\x18\x02 \x01(\x0b\x32\x14.proto.SignatureList:\x02\x18\x01\"3\n\rSignatureList\x12\x1e\n\x04sigs\x18\x02 \x03(\x0b\x32\x10.proto.Signature:\x02\x18\x01\"\x9d\x01\n\rSignaturePair\x12\x14\n\x0cpubKeyPrefix\x18\x01 \x01(\x0c\x12\x12\n\x08\x63ontract\x18\x02 \x01(\x0cH\x00\x12\x11\n\x07\x65\x64\x32\x35\x35\x31\x39\x18\x03 \x01(\x0cH\x00\x12\x12\n\x08RSA_3072\x18\x04 \x01(\x0cH\x00\x12\x13\n\tECDSA_384\x18\x05 \x01(\x0cH\x00\x12\x19\n\x0f\x45\x43\x44SA_secp256k1\x18\x06 \x01(\x0cH\x00\x42\x0b\n\tsignature\"5\n\x0cSignatureMap\x12%\n\x07sigPair\x18\x01 \x03(\x0b\x32\x14.proto.SignaturePair\"\xa3\x01\n\rFeeComponents\x12\x0b\n\x03min\x18\x01 \x01(\x03\x12\x0b\n\x03max\x18\x02 \x01(\x03\x12\x10\n\x08\x63onstant\x18\x03 \x01(\x03\x12\x0b\n\x03\x62pt\x18\x04 \x01(\x03\x12\x0b\n\x03vpt\x18\x05 \x01(\x03\x12\x0b\n\x03rbh\x18\x06 \x01(\x03\x12\x0b\n\x03sbh\x18\x07 \x01(\x03\x12\x0b\n\x03gas\x18\x08 \x01(\x03\x12\n\n\x02tv\x18\t \x01(\x03\x12\x0b\n\x03\x62pr\x18\n \x01(\x03\x12\x0c\n\x04sbpr\x18\x0b \x01(\x03\"\x94\x01\n\x16TransactionFeeSchedule\x12\x37\n\x13hederaFunctionality\x18\x01 \x01(\x0e\x32\x1a.proto.HederaFunctionality\x12#\n\x07\x66\x65\x65\x44\x61ta\x18\x02 \x01(\x0b\x32\x0e.proto.FeeDataB\x02\x18\x01\x12\x1c\n\x04\x66\x65\x65s\x18\x03 \x03(\x0b\x32\x0e.proto.FeeData\"\xa8\x01\n\x07\x46\x65\x65\x44\x61ta\x12&\n\x08nodedata\x18\x01 \x01(\x0b\x32\x14.proto.FeeComponents\x12)\n\x0bnetworkdata\x18\x02 \x01(\x0b\x32\x14.proto.FeeComponents\x12)\n\x0bservicedata\x18\x03 \x01(\x0b\x32\x14.proto.FeeComponents\x12\x1f\n\x07subType\x18\x04 \x01(\x0e\x32\x0e.proto.SubType\"y\n\x0b\x46\x65\x65Schedule\x12=\n\x16transactionFeeSchedule\x18\x01 \x03(\x0b\x32\x1d.proto.TransactionFeeSchedule\x12+\n\nexpiryTime\x18\x02 \x01(\x0b\x32\x17.proto.TimestampSeconds\"x\n\x19\x43urrentAndNextFeeSchedule\x12.\n\x12\x63urrentFeeSchedule\x18\x01 \x01(\x0b\x32\x12.proto.FeeSchedule\x12+\n\x0fnextFeeSchedule\x18\x02 \x01(\x0b\x32\x12.proto.FeeSchedule\"I\n\x0fServiceEndpoint\x12\x13\n\x0bipAddressV4\x18\x01 \x01(\x0c\x12\x0c\n\x04port\x18\x02 \x01(\x05\x12\x13\n\x0b\x64omain_name\x18\x03 \x01(\t\"\x86\x02\n\x0bNodeAddress\x12\x15\n\tipAddress\x18\x01 \x01(\x0c\x42\x02\x18\x01\x12\x12\n\x06portno\x18\x02 \x01(\x05\x42\x02\x18\x01\x12\x10\n\x04memo\x18\x03 \x01(\x0c\x42\x02\x18\x01\x12\x12\n\nRSA_PubKey\x18\x04 \x01(\t\x12\x0e\n\x06nodeId\x18\x05 \x01(\x03\x12\'\n\rnodeAccountId\x18\x06 \x01(\x0b\x32\x10.proto.AccountID\x12\x14\n\x0cnodeCertHash\x18\x07 \x01(\x0c\x12/\n\x0fserviceEndpoint\x18\x08 \x03(\x0b\x32\x16.proto.ServiceEndpoint\x12\x13\n\x0b\x64\x65scription\x18\t \x01(\t\x12\x11\n\x05stake\x18\n \x01(\x03\x42\x02\x18\x01\":\n\x0fNodeAddressBook\x12\'\n\x0bnodeAddress\x18\x01 \x03(\x0b\x32\x12.proto.NodeAddress\"Z\n\x0fSemanticVersion\x12\r\n\x05major\x18\x01 \x01(\x05\x12\r\n\x05minor\x18\x02 \x01(\x05\x12\r\n\x05patch\x18\x03 \x01(\x05\x12\x0b\n\x03pre\x18\x04 \x01(\t\x12\r\n\x05\x62uild\x18\x05 \x01(\t\"4\n\x07Setting\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\">\n\x19ServicesConfigurationList\x12!\n\tnameValue\x18\x01 \x03(\x0b\x32\x0e.proto.Setting\"\xe0\x01\n\x11TokenRelationship\x12\x1f\n\x07tokenId\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\x0f\n\x07\x62\x61lance\x18\x03 \x01(\x04\x12(\n\tkycStatus\x18\x04 \x01(\x0e\x32\x15.proto.TokenKycStatus\x12.\n\x0c\x66reezeStatus\x18\x05 \x01(\x0e\x32\x18.proto.TokenFreezeStatus\x12\x10\n\x08\x64\x65\x63imals\x18\x06 \x01(\r\x12\x1d\n\x15\x61utomatic_association\x18\x07 \x01(\x08\"R\n\x0cTokenBalance\x12\x1f\n\x07tokenId\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12\x0f\n\x07\x62\x61lance\x18\x02 \x01(\x04\x12\x10\n\x08\x64\x65\x63imals\x18\x03 \x01(\r\";\n\rTokenBalances\x12*\n\rtokenBalances\x18\x01 \x03(\x0b\x32\x13.proto.TokenBalance\"Z\n\x10TokenAssociation\x12 \n\x08token_id\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12$\n\naccount_id\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\"\xd7\x01\n\x0bStakingInfo\x12\x16\n\x0e\x64\x65\x63line_reward\x18\x01 \x01(\x08\x12,\n\x12stake_period_start\x18\x02 \x01(\x0b\x32\x10.proto.Timestamp\x12\x16\n\x0epending_reward\x18\x03 \x01(\x03\x12\x14\n\x0cstaked_to_me\x18\x04 \x01(\x03\x12-\n\x11staked_account_id\x18\x05 \x01(\x0b\x32\x10.proto.AccountIDH\x00\x12\x18\n\x0estaked_node_id\x18\x06 \x01(\x03H\x00\x42\x0b\n\tstaked_id\"\xcc\x01\n\x10PendingAirdropId\x12#\n\tsender_id\x18\x01 \x01(\x0b\x32\x10.proto.AccountID\x12%\n\x0breceiver_id\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12-\n\x13\x66ungible_token_type\x18\x03 \x01(\x0b\x32\x0e.proto.TokenIDH\x00\x12*\n\x12non_fungible_token\x18\x04 \x01(\x0b\x32\x0c.proto.NftIDH\x00\x42\x11\n\x0ftoken_reference\"%\n\x13PendingAirdropValue\x12\x0e\n\x06\x61mount\x18\x01 \x01(\x04*\"\n\x12\x42lockHashAlgorithm\x12\x0c\n\x08SHA2_384\x10\x00*9\n\tTokenType\x12\x13\n\x0f\x46UNGIBLE_COMMON\x10\x00\x12\x17\n\x13NON_FUNGIBLE_UNIQUE\x10\x01*\xcf\x01\n\x07SubType\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x19\n\x15TOKEN_FUNGIBLE_COMMON\x10\x01\x12\x1d\n\x19TOKEN_NON_FUNGIBLE_UNIQUE\x10\x02\x12*\n&TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES\x10\x03\x12.\n*TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES\x10\x04\x12!\n\x1dSCHEDULE_CREATE_CONTRACT_CALL\x10\x05*+\n\x0fTokenSupplyType\x12\x0c\n\x08INFINITE\x10\x00\x12\n\n\x06\x46INITE\x10\x01*<\n\x12TokenKeyValidation\x12\x13\n\x0f\x46ULL_VALIDATION\x10\x00\x12\x11\n\rNO_VALIDATION\x10\x01*F\n\x11TokenFreezeStatus\x12\x17\n\x13\x46reezeNotApplicable\x10\x00\x12\n\n\x06\x46rozen\x10\x01\x12\x0c\n\x08Unfrozen\x10\x02*@\n\x0eTokenKycStatus\x12\x14\n\x10KycNotApplicable\x10\x00\x12\x0b\n\x07Granted\x10\x01\x12\x0b\n\x07Revoked\x10\x02*D\n\x10TokenPauseStatus\x12\x16\n\x12PauseNotApplicable\x10\x00\x12\n\n\x06Paused\x10\x01\x12\x0c\n\x08Unpaused\x10\x02*\x81\x0e\n\x13HederaFunctionality\x12\x08\n\x04NONE\x10\x00\x12\x12\n\x0e\x43ryptoTransfer\x10\x01\x12\x10\n\x0c\x43ryptoUpdate\x10\x02\x12\x10\n\x0c\x43ryptoDelete\x10\x03\x12\x15\n\x11\x43ryptoAddLiveHash\x10\x04\x12\x18\n\x14\x43ryptoDeleteLiveHash\x10\x05\x12\x10\n\x0c\x43ontractCall\x10\x06\x12\x12\n\x0e\x43ontractCreate\x10\x07\x12\x12\n\x0e\x43ontractUpdate\x10\x08\x12\x0e\n\nFileCreate\x10\t\x12\x0e\n\nFileAppend\x10\n\x12\x0e\n\nFileUpdate\x10\x0b\x12\x0e\n\nFileDelete\x10\x0c\x12\x1b\n\x17\x43ryptoGetAccountBalance\x10\r\x12\x1b\n\x17\x43ryptoGetAccountRecords\x10\x0e\x12\x11\n\rCryptoGetInfo\x10\x0f\x12\x15\n\x11\x43ontractCallLocal\x10\x10\x12\x13\n\x0f\x43ontractGetInfo\x10\x11\x12\x17\n\x13\x43ontractGetBytecode\x10\x12\x12\x13\n\x0fGetBySolidityID\x10\x13\x12\x0c\n\x08GetByKey\x10\x14\x12\x15\n\x11\x43ryptoGetLiveHash\x10\x15\x12\x14\n\x10\x43ryptoGetStakers\x10\x16\x12\x13\n\x0f\x46ileGetContents\x10\x17\x12\x0f\n\x0b\x46ileGetInfo\x10\x18\x12\x18\n\x14TransactionGetRecord\x10\x19\x12\x16\n\x12\x43ontractGetRecords\x10\x1a\x12\x10\n\x0c\x43ryptoCreate\x10\x1b\x12\x10\n\x0cSystemDelete\x10\x1c\x12\x12\n\x0eSystemUndelete\x10\x1d\x12\x12\n\x0e\x43ontractDelete\x10\x1e\x12\n\n\x06\x46reeze\x10\x1f\x12\x1b\n\x17\x43reateTransactionRecord\x10 \x12\x1a\n\x16\x43ryptoAccountAutoRenew\x10!\x12\x15\n\x11\x43ontractAutoRenew\x10\"\x12\x12\n\x0eGetVersionInfo\x10#\x12\x19\n\x15TransactionGetReceipt\x10$\x12\x18\n\x14\x43onsensusCreateTopic\x10\x32\x12\x18\n\x14\x43onsensusUpdateTopic\x10\x33\x12\x18\n\x14\x43onsensusDeleteTopic\x10\x34\x12\x19\n\x15\x43onsensusGetTopicInfo\x10\x35\x12\x1a\n\x16\x43onsensusSubmitMessage\x10\x36\x12\x13\n\x0fUncheckedSubmit\x10\x37\x12\x0f\n\x0bTokenCreate\x10\x38\x12\x10\n\x0cTokenGetInfo\x10:\x12\x16\n\x12TokenFreezeAccount\x10;\x12\x18\n\x14TokenUnfreezeAccount\x10<\x12\x1a\n\x16TokenGrantKycToAccount\x10=\x12\x1d\n\x19TokenRevokeKycFromAccount\x10>\x12\x0f\n\x0bTokenDelete\x10?\x12\x0f\n\x0bTokenUpdate\x10@\x12\r\n\tTokenMint\x10\x41\x12\r\n\tTokenBurn\x10\x42\x12\x14\n\x10TokenAccountWipe\x10\x43\x12\x1b\n\x17TokenAssociateToAccount\x10\x44\x12\x1e\n\x1aTokenDissociateFromAccount\x10\x45\x12\x12\n\x0eScheduleCreate\x10\x46\x12\x12\n\x0eScheduleDelete\x10G\x12\x10\n\x0cScheduleSign\x10H\x12\x13\n\x0fScheduleGetInfo\x10I\x12\x1b\n\x17TokenGetAccountNftInfos\x10J\x12\x13\n\x0fTokenGetNftInfo\x10K\x12\x14\n\x10TokenGetNftInfos\x10L\x12\x1a\n\x16TokenFeeScheduleUpdate\x10M\x12\x1b\n\x17NetworkGetExecutionTime\x10N\x12\x0e\n\nTokenPause\x10O\x12\x10\n\x0cTokenUnpause\x10P\x12\x1a\n\x16\x43ryptoApproveAllowance\x10Q\x12\x19\n\x15\x43ryptoDeleteAllowance\x10R\x12\x15\n\x11GetAccountDetails\x10S\x12\x17\n\x13\x45thereumTransaction\x10T\x12\x13\n\x0fNodeStakeUpdate\x10U\x12\x0c\n\x08UtilPrng\x10V\x12\x1c\n\x18TransactionGetFastRecord\x10W\x12\x13\n\x0fTokenUpdateNfts\x10X\x12\x0e\n\nNodeCreate\x10Y\x12\x0e\n\nNodeUpdate\x10Z\x12\x0e\n\nNodeDelete\x10[\x12\x0f\n\x0bTokenReject\x10\\\x12\x10\n\x0cTokenAirdrop\x10]\x12\x16\n\x12TokenCancelAirdrop\x10^\x12\x15\n\x11TokenClaimAirdrop\x10_B&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'basic_types_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_SIGNATURE']._loaded_options = None - _globals['_SIGNATURE']._serialized_options = b'\030\001' - _globals['_THRESHOLDSIGNATURE']._loaded_options = None - _globals['_THRESHOLDSIGNATURE']._serialized_options = b'\030\001' - _globals['_SIGNATURELIST']._loaded_options = None - _globals['_SIGNATURELIST']._serialized_options = b'\030\001' - _globals['_TRANSACTIONFEESCHEDULE'].fields_by_name['feeData']._loaded_options = None - _globals['_TRANSACTIONFEESCHEDULE'].fields_by_name['feeData']._serialized_options = b'\030\001' - _globals['_NODEADDRESS'].fields_by_name['ipAddress']._loaded_options = None - _globals['_NODEADDRESS'].fields_by_name['ipAddress']._serialized_options = b'\030\001' - _globals['_NODEADDRESS'].fields_by_name['portno']._loaded_options = None - _globals['_NODEADDRESS'].fields_by_name['portno']._serialized_options = b'\030\001' - _globals['_NODEADDRESS'].fields_by_name['memo']._loaded_options = None - _globals['_NODEADDRESS'].fields_by_name['memo']._serialized_options = b'\030\001' - _globals['_NODEADDRESS'].fields_by_name['stake']._loaded_options = None - _globals['_NODEADDRESS'].fields_by_name['stake']._serialized_options = b'\030\001' - _globals['_BLOCKHASHALGORITHM']._serialized_start=4568 - _globals['_BLOCKHASHALGORITHM']._serialized_end=4602 - _globals['_TOKENTYPE']._serialized_start=4604 - _globals['_TOKENTYPE']._serialized_end=4661 - _globals['_SUBTYPE']._serialized_start=4664 - _globals['_SUBTYPE']._serialized_end=4871 - _globals['_TOKENSUPPLYTYPE']._serialized_start=4873 - _globals['_TOKENSUPPLYTYPE']._serialized_end=4916 - _globals['_TOKENKEYVALIDATION']._serialized_start=4918 - _globals['_TOKENKEYVALIDATION']._serialized_end=4978 - _globals['_TOKENFREEZESTATUS']._serialized_start=4980 - _globals['_TOKENFREEZESTATUS']._serialized_end=5050 - _globals['_TOKENKYCSTATUS']._serialized_start=5052 - _globals['_TOKENKYCSTATUS']._serialized_end=5116 - _globals['_TOKENPAUSESTATUS']._serialized_start=5118 - _globals['_TOKENPAUSESTATUS']._serialized_end=5186 - _globals['_HEDERAFUNCTIONALITY']._serialized_start=5189 - _globals['_HEDERAFUNCTIONALITY']._serialized_end=6982 - _globals['_SHARDID']._serialized_start=77 - _globals['_SHARDID']._serialized_end=104 - _globals['_REALMID']._serialized_start=106 - _globals['_REALMID']._serialized_end=151 - _globals['_ACCOUNTID']._serialized_start=153 - _globals['_ACCOUNTID']._serialized_end=250 - _globals['_NFTID']._serialized_start=252 - _globals['_NFTID']._serialized_end=316 - _globals['_FILEID']._serialized_start=318 - _globals['_FILEID']._serialized_end=379 - _globals['_CONTRACTID']._serialized_start=381 - _globals['_CONTRACTID']._serialized_end=487 - _globals['_TRANSACTIONID']._serialized_start=490 - _globals['_TRANSACTIONID']._serialized_end=625 - _globals['_ACCOUNTAMOUNT']._serialized_start=627 - _globals['_ACCOUNTAMOUNT']._serialized_end=716 - _globals['_TRANSFERLIST']._serialized_start=718 - _globals['_TRANSFERLIST']._serialized_end=778 - _globals['_NFTTRANSFER']._serialized_start=781 - _globals['_NFTTRANSFER']._serialized_end=925 - _globals['_TOKENTRANSFERLIST']._serialized_start=928 - _globals['_TOKENTRANSFERLIST']._serialized_end=1118 - _globals['_FRACTION']._serialized_start=1120 - _globals['_FRACTION']._serialized_end=1170 - _globals['_TOPICID']._serialized_start=1172 - _globals['_TOPICID']._serialized_end=1235 - _globals['_TOKENID']._serialized_start=1237 - _globals['_TOKENID']._serialized_end=1300 - _globals['_SCHEDULEID']._serialized_start=1302 - _globals['_SCHEDULEID']._serialized_end=1371 - _globals['_KEY']._serialized_start=1374 - _globals['_KEY']._serialized_end=1648 - _globals['_THRESHOLDKEY']._serialized_start=1650 - _globals['_THRESHOLDKEY']._serialized_end=1713 - _globals['_KEYLIST']._serialized_start=1715 - _globals['_KEYLIST']._serialized_end=1750 - _globals['_SIGNATURE']._serialized_start=1753 - _globals['_SIGNATURE']._serialized_end=1965 - _globals['_THRESHOLDSIGNATURE']._serialized_start=1967 - _globals['_THRESHOLDSIGNATURE']._serialized_end=2027 - _globals['_SIGNATURELIST']._serialized_start=2029 - _globals['_SIGNATURELIST']._serialized_end=2080 - _globals['_SIGNATUREPAIR']._serialized_start=2083 - _globals['_SIGNATUREPAIR']._serialized_end=2240 - _globals['_SIGNATUREMAP']._serialized_start=2242 - _globals['_SIGNATUREMAP']._serialized_end=2295 - _globals['_FEECOMPONENTS']._serialized_start=2298 - _globals['_FEECOMPONENTS']._serialized_end=2461 - _globals['_TRANSACTIONFEESCHEDULE']._serialized_start=2464 - _globals['_TRANSACTIONFEESCHEDULE']._serialized_end=2612 - _globals['_FEEDATA']._serialized_start=2615 - _globals['_FEEDATA']._serialized_end=2783 - _globals['_FEESCHEDULE']._serialized_start=2785 - _globals['_FEESCHEDULE']._serialized_end=2906 - _globals['_CURRENTANDNEXTFEESCHEDULE']._serialized_start=2908 - _globals['_CURRENTANDNEXTFEESCHEDULE']._serialized_end=3028 - _globals['_SERVICEENDPOINT']._serialized_start=3030 - _globals['_SERVICEENDPOINT']._serialized_end=3103 - _globals['_NODEADDRESS']._serialized_start=3106 - _globals['_NODEADDRESS']._serialized_end=3368 - _globals['_NODEADDRESSBOOK']._serialized_start=3370 - _globals['_NODEADDRESSBOOK']._serialized_end=3428 - _globals['_SEMANTICVERSION']._serialized_start=3430 - _globals['_SEMANTICVERSION']._serialized_end=3520 - _globals['_SETTING']._serialized_start=3522 - _globals['_SETTING']._serialized_end=3574 - _globals['_SERVICESCONFIGURATIONLIST']._serialized_start=3576 - _globals['_SERVICESCONFIGURATIONLIST']._serialized_end=3638 - _globals['_TOKENRELATIONSHIP']._serialized_start=3641 - _globals['_TOKENRELATIONSHIP']._serialized_end=3865 - _globals['_TOKENBALANCE']._serialized_start=3867 - _globals['_TOKENBALANCE']._serialized_end=3949 - _globals['_TOKENBALANCES']._serialized_start=3951 - _globals['_TOKENBALANCES']._serialized_end=4010 - _globals['_TOKENASSOCIATION']._serialized_start=4012 - _globals['_TOKENASSOCIATION']._serialized_end=4102 - _globals['_STAKINGINFO']._serialized_start=4105 - _globals['_STAKINGINFO']._serialized_end=4320 - _globals['_PENDINGAIRDROPID']._serialized_start=4323 - _globals['_PENDINGAIRDROPID']._serialized_end=4527 - _globals['_PENDINGAIRDROPVALUE']._serialized_start=4529 - _globals['_PENDINGAIRDROPVALUE']._serialized_end=4566 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/basic_types_pb2_grpc.py b/src/proto/basic_types_pb2_grpc.py deleted file mode 100644 index 8462fb6..0000000 --- a/src/proto/basic_types_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in basic_types_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/consensus_create_topic_pb2.py b/src/proto/consensus_create_topic_pb2.py deleted file mode 100644 index 0de25e5..0000000 --- a/src/proto/consensus_create_topic_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: consensus_create_topic.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'consensus_create_topic.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import duration_pb2 as duration__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63onsensus_create_topic.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x0e\x64uration.proto\"\xc6\x01\n#ConsensusCreateTopicTransactionBody\x12\x0c\n\x04memo\x18\x01 \x01(\t\x12\x1c\n\x08\x61\x64minKey\x18\x02 \x01(\x0b\x32\n.proto.Key\x12\x1d\n\tsubmitKey\x18\x03 \x01(\x0b\x32\n.proto.Key\x12(\n\x0f\x61utoRenewPeriod\x18\x06 \x01(\x0b\x32\x0f.proto.Duration\x12*\n\x10\x61utoRenewAccount\x18\x07 \x01(\x0b\x32\x10.proto.AccountIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'consensus_create_topic_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CONSENSUSCREATETOPICTRANSACTIONBODY']._serialized_start=75 - _globals['_CONSENSUSCREATETOPICTRANSACTIONBODY']._serialized_end=273 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/consensus_create_topic_pb2_grpc.py b/src/proto/consensus_create_topic_pb2_grpc.py deleted file mode 100644 index 244a54c..0000000 --- a/src/proto/consensus_create_topic_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in consensus_create_topic_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/consensus_delete_topic_pb2.py b/src/proto/consensus_delete_topic_pb2.py deleted file mode 100644 index 51a1e02..0000000 --- a/src/proto/consensus_delete_topic_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: consensus_delete_topic.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'consensus_delete_topic.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63onsensus_delete_topic.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"F\n#ConsensusDeleteTopicTransactionBody\x12\x1f\n\x07topicID\x18\x01 \x01(\x0b\x32\x0e.proto.TopicIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'consensus_delete_topic_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CONSENSUSDELETETOPICTRANSACTIONBODY']._serialized_start=58 - _globals['_CONSENSUSDELETETOPICTRANSACTIONBODY']._serialized_end=128 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/consensus_delete_topic_pb2_grpc.py b/src/proto/consensus_delete_topic_pb2_grpc.py deleted file mode 100644 index ee255f1..0000000 --- a/src/proto/consensus_delete_topic_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in consensus_delete_topic_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/consensus_get_topic_info_pb2.py b/src/proto/consensus_get_topic_info_pb2.py deleted file mode 100644 index ed2fa07..0000000 --- a/src/proto/consensus_get_topic_info_pb2.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: consensus_get_topic_info.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'consensus_get_topic_info.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 -from . import consensus_topic_info_pb2 as consensus__topic__info__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x63onsensus_get_topic_info.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\x1a\x1a\x63onsensus_topic_info.proto\"a\n\x1a\x43onsensusGetTopicInfoQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12\x1f\n\x07topicID\x18\x02 \x01(\x0b\x32\x0e.proto.TopicID\"\x95\x01\n\x1d\x43onsensusGetTopicInfoResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12\x1f\n\x07topicID\x18\x02 \x01(\x0b\x32\x0e.proto.TopicID\x12,\n\ttopicInfo\x18\x05 \x01(\x0b\x32\x19.proto.ConsensusTopicInfoB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'consensus_get_topic_info_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CONSENSUSGETTOPICINFOQUERY']._serialized_start=131 - _globals['_CONSENSUSGETTOPICINFOQUERY']._serialized_end=228 - _globals['_CONSENSUSGETTOPICINFORESPONSE']._serialized_start=231 - _globals['_CONSENSUSGETTOPICINFORESPONSE']._serialized_end=380 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/consensus_get_topic_info_pb2_grpc.py b/src/proto/consensus_get_topic_info_pb2_grpc.py deleted file mode 100644 index 7ec18f2..0000000 --- a/src/proto/consensus_get_topic_info_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in consensus_get_topic_info_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/consensus_service_pb2.py b/src/proto/consensus_service_pb2.py deleted file mode 100644 index cbede8d..0000000 --- a/src/proto/consensus_service_pb2.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: consensus_service.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'consensus_service.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import query_pb2 as query__pb2 -from . import response_pb2 as response__pb2 -from . import transaction_response_pb2 as transaction__response__pb2 -from . import transaction_pb2 as transaction__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x63onsensus_service.proto\x12\x05proto\x1a\x0bquery.proto\x1a\x0eresponse.proto\x1a\x1atransaction_response.proto\x1a\x11transaction.proto2\xbf\x02\n\x10\x43onsensusService\x12=\n\x0b\x63reateTopic\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12=\n\x0bupdateTopic\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12=\n\x0b\x64\x65leteTopic\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12-\n\x0cgetTopicInfo\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12?\n\rsubmitMessage\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponseB(\n&com.hederahashgraph.service.proto.javab\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'consensus_service_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n&com.hederahashgraph.service.proto.java' - _globals['_CONSENSUSSERVICE']._serialized_start=111 - _globals['_CONSENSUSSERVICE']._serialized_end=430 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/consensus_service_pb2_grpc.py b/src/proto/consensus_service_pb2_grpc.py deleted file mode 100644 index 47e44bb..0000000 --- a/src/proto/consensus_service_pb2_grpc.py +++ /dev/null @@ -1,432 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - -from . import query_pb2 as query__pb2 -from . import response_pb2 as response__pb2 -from . import transaction_pb2 as transaction__pb2 -from . import transaction_response_pb2 as transaction__response__pb2 - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in consensus_service_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) - - -class ConsensusServiceStub(object): - """* - The Consensus Service provides the ability for Hedera Hashgraph to provide aBFT consensus as to - the order and validity of messages submitted to a *topic*, as well as a *consensus timestamp* for - those messages. - - Automatic renewal can be configured via an autoRenewAccount. - Any time an autoRenewAccount is added to a topic, that createTopic/updateTopic transaction must - be signed by the autoRenewAccount. - - The autoRenewPeriod on an account must currently be set a value in createTopic between - MIN_AUTORENEW_PERIOD (6999999 seconds) and MAX_AUTORENEW_PERIOD (8000001 seconds). During - creation this sets the initial expirationTime of the topic (see more below). - - If no adminKey is on a topic, there may not be an autoRenewAccount on the topic, deleteTopic is - not allowed, and the only change allowed via an updateTopic is to extend the expirationTime. - - If an adminKey is on a topic, every updateTopic and deleteTopic transaction must be signed by the - adminKey, except for updateTopics which only extend the topic's expirationTime (no adminKey - authorization required). - - If an updateTopic modifies the adminKey of a topic, the transaction signatures on the updateTopic - must fulfill both the pre-update and post-update adminKey signature requirements. - - Mirrornet ConsensusService may be used to subscribe to changes on the topic, including changes to - the topic definition and the consensus ordering and timestamp of submitted messages. - - Until autoRenew functionality is supported by HAPI, the topic will not expire, the - autoRenewAccount will not be charged, and the topic will not automatically be deleted. - - Once autoRenew functionality is supported by HAPI: - - 1. Once the expirationTime is encountered, if an autoRenewAccount is configured on the topic, the - account will be charged automatically at the expirationTime, to extend the expirationTime of the - topic up to the topic's autoRenewPeriod (or as much extension as the account's balance will - supply). - - 2. If the topic expires and is not automatically renewed, the topic will enter the EXPIRED state. - All transactions on the topic will fail with TOPIC_EXPIRED, except an updateTopic() call that - modifies only the expirationTime. getTopicInfo() will succeed. This state will be available for - a AUTORENEW_GRACE_PERIOD grace period (7 days). - - 3. After the grace period, if the topic's expirationTime is not extended, the topic will be - automatically deleted and no transactions or queries on the topic will succeed after that point. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.createTopic = channel.unary_unary( - '/proto.ConsensusService/createTopic', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.updateTopic = channel.unary_unary( - '/proto.ConsensusService/updateTopic', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.deleteTopic = channel.unary_unary( - '/proto.ConsensusService/deleteTopic', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.getTopicInfo = channel.unary_unary( - '/proto.ConsensusService/getTopicInfo', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.submitMessage = channel.unary_unary( - '/proto.ConsensusService/submitMessage', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - - -class ConsensusServiceServicer(object): - """* - The Consensus Service provides the ability for Hedera Hashgraph to provide aBFT consensus as to - the order and validity of messages submitted to a *topic*, as well as a *consensus timestamp* for - those messages. - - Automatic renewal can be configured via an autoRenewAccount. - Any time an autoRenewAccount is added to a topic, that createTopic/updateTopic transaction must - be signed by the autoRenewAccount. - - The autoRenewPeriod on an account must currently be set a value in createTopic between - MIN_AUTORENEW_PERIOD (6999999 seconds) and MAX_AUTORENEW_PERIOD (8000001 seconds). During - creation this sets the initial expirationTime of the topic (see more below). - - If no adminKey is on a topic, there may not be an autoRenewAccount on the topic, deleteTopic is - not allowed, and the only change allowed via an updateTopic is to extend the expirationTime. - - If an adminKey is on a topic, every updateTopic and deleteTopic transaction must be signed by the - adminKey, except for updateTopics which only extend the topic's expirationTime (no adminKey - authorization required). - - If an updateTopic modifies the adminKey of a topic, the transaction signatures on the updateTopic - must fulfill both the pre-update and post-update adminKey signature requirements. - - Mirrornet ConsensusService may be used to subscribe to changes on the topic, including changes to - the topic definition and the consensus ordering and timestamp of submitted messages. - - Until autoRenew functionality is supported by HAPI, the topic will not expire, the - autoRenewAccount will not be charged, and the topic will not automatically be deleted. - - Once autoRenew functionality is supported by HAPI: - - 1. Once the expirationTime is encountered, if an autoRenewAccount is configured on the topic, the - account will be charged automatically at the expirationTime, to extend the expirationTime of the - topic up to the topic's autoRenewPeriod (or as much extension as the account's balance will - supply). - - 2. If the topic expires and is not automatically renewed, the topic will enter the EXPIRED state. - All transactions on the topic will fail with TOPIC_EXPIRED, except an updateTopic() call that - modifies only the expirationTime. getTopicInfo() will succeed. This state will be available for - a AUTORENEW_GRACE_PERIOD grace period (7 days). - - 3. After the grace period, if the topic's expirationTime is not extended, the topic will be - automatically deleted and no transactions or queries on the topic will succeed after that point. - """ - - def createTopic(self, request, context): - """* - Create a topic to be used for consensus. - If an autoRenewAccount is specified, that account must also sign this transaction. - If an adminKey is specified, the adminKey must sign the transaction. - On success, the resulting TransactionReceipt contains the newly created TopicId. - Request is [ConsensusCreateTopicTransactionBody](#proto.ConsensusCreateTopicTransactionBody) - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def updateTopic(self, request, context): - """* - Update a topic. - If there is no adminKey, the only authorized update (available to anyone) is to extend the expirationTime. - Otherwise transaction must be signed by the adminKey. - If an adminKey is updated, the transaction must be signed by the pre-update adminKey and post-update adminKey. - If a new autoRenewAccount is specified (not just being removed), that account must also sign the transaction. - Request is [ConsensusUpdateTopicTransactionBody](#proto.ConsensusUpdateTopicTransactionBody) - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def deleteTopic(self, request, context): - """* - Delete a topic. No more transactions or queries on the topic (via HAPI) will succeed. - If an adminKey is set, this transaction must be signed by that key. - If there is no adminKey, this transaction will fail UNAUTHORIZED. - Request is [ConsensusDeleteTopicTransactionBody](#proto.ConsensusDeleteTopicTransactionBody) - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getTopicInfo(self, request, context): - """* - Retrieve the latest state of a topic. This method is unrestricted and allowed on any topic by any payer account. - Deleted accounts will not be returned. - Request is [ConsensusGetTopicInfoQuery](#proto.ConsensusGetTopicInfoQuery) - Response is [ConsensusGetTopicInfoResponse](#proto.ConsensusGetTopicInfoResponse) - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def submitMessage(self, request, context): - """* - Submit a message for consensus. - Valid and authorized messages on valid topics will be ordered by the consensus service, gossipped to the - mirror net, and published (in order) to all subscribers (from the mirror net) on this topic. - The submitKey (if any) must sign this transaction. - On success, the resulting TransactionReceipt contains the topic's updated topicSequenceNumber and - topicRunningHash. - Request is [ConsensusSubmitMessageTransactionBody](#proto.ConsensusSubmitMessageTransactionBody) - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ConsensusServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'createTopic': grpc.unary_unary_rpc_method_handler( - servicer.createTopic, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'updateTopic': grpc.unary_unary_rpc_method_handler( - servicer.updateTopic, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'deleteTopic': grpc.unary_unary_rpc_method_handler( - servicer.deleteTopic, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'getTopicInfo': grpc.unary_unary_rpc_method_handler( - servicer.getTopicInfo, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'submitMessage': grpc.unary_unary_rpc_method_handler( - servicer.submitMessage, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'proto.ConsensusService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('proto.ConsensusService', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class ConsensusService(object): - """* - The Consensus Service provides the ability for Hedera Hashgraph to provide aBFT consensus as to - the order and validity of messages submitted to a *topic*, as well as a *consensus timestamp* for - those messages. - - Automatic renewal can be configured via an autoRenewAccount. - Any time an autoRenewAccount is added to a topic, that createTopic/updateTopic transaction must - be signed by the autoRenewAccount. - - The autoRenewPeriod on an account must currently be set a value in createTopic between - MIN_AUTORENEW_PERIOD (6999999 seconds) and MAX_AUTORENEW_PERIOD (8000001 seconds). During - creation this sets the initial expirationTime of the topic (see more below). - - If no adminKey is on a topic, there may not be an autoRenewAccount on the topic, deleteTopic is - not allowed, and the only change allowed via an updateTopic is to extend the expirationTime. - - If an adminKey is on a topic, every updateTopic and deleteTopic transaction must be signed by the - adminKey, except for updateTopics which only extend the topic's expirationTime (no adminKey - authorization required). - - If an updateTopic modifies the adminKey of a topic, the transaction signatures on the updateTopic - must fulfill both the pre-update and post-update adminKey signature requirements. - - Mirrornet ConsensusService may be used to subscribe to changes on the topic, including changes to - the topic definition and the consensus ordering and timestamp of submitted messages. - - Until autoRenew functionality is supported by HAPI, the topic will not expire, the - autoRenewAccount will not be charged, and the topic will not automatically be deleted. - - Once autoRenew functionality is supported by HAPI: - - 1. Once the expirationTime is encountered, if an autoRenewAccount is configured on the topic, the - account will be charged automatically at the expirationTime, to extend the expirationTime of the - topic up to the topic's autoRenewPeriod (or as much extension as the account's balance will - supply). - - 2. If the topic expires and is not automatically renewed, the topic will enter the EXPIRED state. - All transactions on the topic will fail with TOPIC_EXPIRED, except an updateTopic() call that - modifies only the expirationTime. getTopicInfo() will succeed. This state will be available for - a AUTORENEW_GRACE_PERIOD grace period (7 days). - - 3. After the grace period, if the topic's expirationTime is not extended, the topic will be - automatically deleted and no transactions or queries on the topic will succeed after that point. - """ - - @staticmethod - def createTopic(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.ConsensusService/createTopic', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def updateTopic(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.ConsensusService/updateTopic', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def deleteTopic(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.ConsensusService/deleteTopic', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def getTopicInfo(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.ConsensusService/getTopicInfo', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def submitMessage(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.ConsensusService/submitMessage', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/src/proto/consensus_submit_message_pb2.py b/src/proto/consensus_submit_message_pb2.py deleted file mode 100644 index cb020fe..0000000 --- a/src/proto/consensus_submit_message_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: consensus_submit_message.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'consensus_submit_message.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x63onsensus_submit_message.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"n\n\x19\x43onsensusMessageChunkInfo\x12\x32\n\x14initialTransactionID\x18\x01 \x01(\x0b\x32\x14.proto.TransactionID\x12\r\n\x05total\x18\x02 \x01(\x05\x12\x0e\n\x06number\x18\x03 \x01(\x05\"\x8e\x01\n%ConsensusSubmitMessageTransactionBody\x12\x1f\n\x07topicID\x18\x01 \x01(\x0b\x32\x0e.proto.TopicID\x12\x0f\n\x07message\x18\x02 \x01(\x0c\x12\x33\n\tchunkInfo\x18\x03 \x01(\x0b\x32 .proto.ConsensusMessageChunkInfoB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'consensus_submit_message_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CONSENSUSMESSAGECHUNKINFO']._serialized_start=60 - _globals['_CONSENSUSMESSAGECHUNKINFO']._serialized_end=170 - _globals['_CONSENSUSSUBMITMESSAGETRANSACTIONBODY']._serialized_start=173 - _globals['_CONSENSUSSUBMITMESSAGETRANSACTIONBODY']._serialized_end=315 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/consensus_submit_message_pb2_grpc.py b/src/proto/consensus_submit_message_pb2_grpc.py deleted file mode 100644 index e0d16d3..0000000 --- a/src/proto/consensus_submit_message_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in consensus_submit_message_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/consensus_topic_info_pb2.py b/src/proto/consensus_topic_info_pb2.py deleted file mode 100644 index 63fd0a6..0000000 --- a/src/proto/consensus_topic_info_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: consensus_topic_info.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'consensus_topic_info.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import duration_pb2 as duration__pb2 -from . import timestamp_pb2 as timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x63onsensus_topic_info.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x0e\x64uration.proto\x1a\x0ftimestamp.proto\"\x9f\x02\n\x12\x43onsensusTopicInfo\x12\x0c\n\x04memo\x18\x01 \x01(\t\x12\x13\n\x0brunningHash\x18\x02 \x01(\x0c\x12\x16\n\x0esequenceNumber\x18\x03 \x01(\x04\x12(\n\x0e\x65xpirationTime\x18\x04 \x01(\x0b\x32\x10.proto.Timestamp\x12\x1c\n\x08\x61\x64minKey\x18\x05 \x01(\x0b\x32\n.proto.Key\x12\x1d\n\tsubmitKey\x18\x06 \x01(\x0b\x32\n.proto.Key\x12(\n\x0f\x61utoRenewPeriod\x18\x07 \x01(\x0b\x32\x0f.proto.Duration\x12*\n\x10\x61utoRenewAccount\x18\x08 \x01(\x0b\x32\x10.proto.AccountID\x12\x11\n\tledger_id\x18\t \x01(\x0c\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'consensus_topic_info_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CONSENSUSTOPICINFO']._serialized_start=90 - _globals['_CONSENSUSTOPICINFO']._serialized_end=377 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/consensus_topic_info_pb2_grpc.py b/src/proto/consensus_topic_info_pb2_grpc.py deleted file mode 100644 index eec4e56..0000000 --- a/src/proto/consensus_topic_info_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in consensus_topic_info_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/consensus_update_topic_pb2.py b/src/proto/consensus_update_topic_pb2.py deleted file mode 100644 index 74a316b..0000000 --- a/src/proto/consensus_update_topic_pb2.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: consensus_update_topic.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'consensus_update_topic.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from . import basic_types_pb2 as basic__types__pb2 -from . import duration_pb2 as duration__pb2 -from . import timestamp_pb2 as timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63onsensus_update_topic.proto\x12\x05proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x11\x62\x61sic_types.proto\x1a\x0e\x64uration.proto\x1a\x0ftimestamp.proto\"\xaf\x02\n#ConsensusUpdateTopicTransactionBody\x12\x1f\n\x07topicID\x18\x01 \x01(\x0b\x32\x0e.proto.TopicID\x12*\n\x04memo\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12(\n\x0e\x65xpirationTime\x18\x04 \x01(\x0b\x32\x10.proto.Timestamp\x12\x1c\n\x08\x61\x64minKey\x18\x06 \x01(\x0b\x32\n.proto.Key\x12\x1d\n\tsubmitKey\x18\x07 \x01(\x0b\x32\n.proto.Key\x12(\n\x0f\x61utoRenewPeriod\x18\x08 \x01(\x0b\x32\x0f.proto.Duration\x12*\n\x10\x61utoRenewAccount\x18\t \x01(\x0b\x32\x10.proto.AccountIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'consensus_update_topic_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CONSENSUSUPDATETOPICTRANSACTIONBODY']._serialized_start=124 - _globals['_CONSENSUSUPDATETOPICTRANSACTIONBODY']._serialized_end=427 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/consensus_update_topic_pb2_grpc.py b/src/proto/consensus_update_topic_pb2_grpc.py deleted file mode 100644 index 777ddbb..0000000 --- a/src/proto/consensus_update_topic_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in consensus_update_topic_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/contract_call_local_pb2.py b/src/proto/contract_call_local_pb2.py deleted file mode 100644 index a50f9fa..0000000 --- a/src/proto/contract_call_local_pb2.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: contract_call_local.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'contract_call_local.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 -from . import contract_types_pb2 as contract__types__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x63ontract_call_local.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\x1a\x14\x63ontract_types.proto\x1a\x1egoogle/protobuf/wrappers.proto\"d\n\x0f\x43ontractLoginfo\x12%\n\ncontractID\x18\x01 \x01(\x0b\x32\x11.proto.ContractID\x12\r\n\x05\x62loom\x18\x02 \x01(\x0c\x12\r\n\x05topic\x18\x03 \x03(\x0c\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\"\xe9\x03\n\x16\x43ontractFunctionResult\x12%\n\ncontractID\x18\x01 \x01(\x0b\x32\x11.proto.ContractID\x12\x1a\n\x12\x63ontractCallResult\x18\x02 \x01(\x0c\x12\x14\n\x0c\x65rrorMessage\x18\x03 \x01(\t\x12\r\n\x05\x62loom\x18\x04 \x01(\x0c\x12\x0f\n\x07gasUsed\x18\x05 \x01(\x04\x12\'\n\x07logInfo\x18\x06 \x03(\x0b\x32\x16.proto.ContractLoginfo\x12\x31\n\x12\x63reatedContractIDs\x18\x07 \x03(\x0b\x32\x11.proto.ContractIDB\x02\x18\x01\x12\x30\n\x0b\x65vm_address\x18\t \x01(\x0b\x32\x1b.google.protobuf.BytesValue\x12\x0b\n\x03gas\x18\n \x01(\x03\x12\x0e\n\x06\x61mount\x18\x0b \x01(\x03\x12\x1a\n\x12\x66unctionParameters\x18\x0c \x01(\x0c\x12#\n\tsender_id\x18\r \x01(\x0b\x32\x10.proto.AccountID\x12\x31\n\x0f\x63ontract_nonces\x18\x0e \x03(\x0b\x32\x18.proto.ContractNonceInfo\x12\x31\n\x0csigner_nonce\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int64ValueJ\x04\x08\x08\x10\t\"\xcc\x01\n\x16\x43ontractCallLocalQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12%\n\ncontractID\x18\x02 \x01(\x0b\x32\x11.proto.ContractID\x12\x0b\n\x03gas\x18\x03 \x01(\x03\x12\x1a\n\x12\x66unctionParameters\x18\x04 \x01(\x0c\x12\x19\n\rmaxResultSize\x18\x05 \x01(\x03\x42\x02\x18\x01\x12#\n\tsender_id\x18\x06 \x01(\x0b\x32\x10.proto.AccountID\"y\n\x19\x43ontractCallLocalResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12\x35\n\x0e\x66unctionResult\x18\x02 \x01(\x0b\x32\x1d.proto.ContractFunctionResultB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'contract_call_local_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CONTRACTFUNCTIONRESULT'].fields_by_name['createdContractIDs']._loaded_options = None - _globals['_CONTRACTFUNCTIONRESULT'].fields_by_name['createdContractIDs']._serialized_options = b'\030\001' - _globals['_CONTRACTCALLLOCALQUERY'].fields_by_name['maxResultSize']._loaded_options = None - _globals['_CONTRACTCALLLOCALQUERY'].fields_by_name['maxResultSize']._serialized_options = b'\030\001' - _globals['_CONTRACTLOGINFO']._serialized_start=152 - _globals['_CONTRACTLOGINFO']._serialized_end=252 - _globals['_CONTRACTFUNCTIONRESULT']._serialized_start=255 - _globals['_CONTRACTFUNCTIONRESULT']._serialized_end=744 - _globals['_CONTRACTCALLLOCALQUERY']._serialized_start=747 - _globals['_CONTRACTCALLLOCALQUERY']._serialized_end=951 - _globals['_CONTRACTCALLLOCALRESPONSE']._serialized_start=953 - _globals['_CONTRACTCALLLOCALRESPONSE']._serialized_end=1074 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/contract_call_local_pb2_grpc.py b/src/proto/contract_call_local_pb2_grpc.py deleted file mode 100644 index 0f87825..0000000 --- a/src/proto/contract_call_local_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in contract_call_local_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/contract_call_pb2.py b/src/proto/contract_call_pb2.py deleted file mode 100644 index 0cdd6a1..0000000 --- a/src/proto/contract_call_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: contract_call.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'contract_call.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x63ontract_call.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"}\n\x1b\x43ontractCallTransactionBody\x12%\n\ncontractID\x18\x01 \x01(\x0b\x32\x11.proto.ContractID\x12\x0b\n\x03gas\x18\x02 \x01(\x03\x12\x0e\n\x06\x61mount\x18\x03 \x01(\x03\x12\x1a\n\x12\x66unctionParameters\x18\x04 \x01(\x0c\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'contract_call_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CONTRACTCALLTRANSACTIONBODY']._serialized_start=49 - _globals['_CONTRACTCALLTRANSACTIONBODY']._serialized_end=174 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/contract_call_pb2_grpc.py b/src/proto/contract_call_pb2_grpc.py deleted file mode 100644 index d808ef0..0000000 --- a/src/proto/contract_call_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in contract_call_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/contract_create_pb2.py b/src/proto/contract_create_pb2.py deleted file mode 100644 index 25333d4..0000000 --- a/src/proto/contract_create_pb2.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: contract_create.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'contract_create.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import duration_pb2 as duration__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15\x63ontract_create.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x0e\x64uration.proto\"\xdf\x04\n\x1d\x43ontractCreateTransactionBody\x12\x1f\n\x06\x66ileID\x18\x01 \x01(\x0b\x32\r.proto.FileIDH\x00\x12\x12\n\x08initcode\x18\x10 \x01(\x0cH\x00\x12\x1c\n\x08\x61\x64minKey\x18\x03 \x01(\x0b\x32\n.proto.Key\x12\x0b\n\x03gas\x18\x04 \x01(\x03\x12\x16\n\x0einitialBalance\x18\x05 \x01(\x03\x12,\n\x0eproxyAccountID\x18\x06 \x01(\x0b\x32\x10.proto.AccountIDB\x02\x18\x01\x12(\n\x0f\x61utoRenewPeriod\x18\x08 \x01(\x0b\x32\x0f.proto.Duration\x12\x1d\n\x15\x63onstructorParameters\x18\t \x01(\x0c\x12\x1f\n\x07shardID\x18\n \x01(\x0b\x32\x0e.proto.ShardID\x12\x1f\n\x07realmID\x18\x0b \x01(\x0b\x32\x0e.proto.RealmID\x12$\n\x10newRealmAdminKey\x18\x0c \x01(\x0b\x32\n.proto.Key\x12\x0c\n\x04memo\x18\r \x01(\t\x12(\n max_automatic_token_associations\x18\x0e \x01(\x05\x12/\n\x15\x61uto_renew_account_id\x18\x0f \x01(\x0b\x32\x10.proto.AccountID\x12-\n\x11staked_account_id\x18\x11 \x01(\x0b\x32\x10.proto.AccountIDH\x01\x12\x18\n\x0estaked_node_id\x18\x12 \x01(\x03H\x01\x12\x16\n\x0e\x64\x65\x63line_reward\x18\x13 \x01(\x08\x42\x10\n\x0einitcodeSourceB\x0b\n\tstaked_idB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'contract_create_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CONTRACTCREATETRANSACTIONBODY'].fields_by_name['proxyAccountID']._loaded_options = None - _globals['_CONTRACTCREATETRANSACTIONBODY'].fields_by_name['proxyAccountID']._serialized_options = b'\030\001' - _globals['_CONTRACTCREATETRANSACTIONBODY']._serialized_start=68 - _globals['_CONTRACTCREATETRANSACTIONBODY']._serialized_end=675 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/contract_create_pb2_grpc.py b/src/proto/contract_create_pb2_grpc.py deleted file mode 100644 index e380889..0000000 --- a/src/proto/contract_create_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in contract_create_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/contract_delete_pb2.py b/src/proto/contract_delete_pb2.py deleted file mode 100644 index 649d01c..0000000 --- a/src/proto/contract_delete_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: contract_delete.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'contract_delete.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15\x63ontract_delete.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"\xce\x01\n\x1d\x43ontractDeleteTransactionBody\x12%\n\ncontractID\x18\x01 \x01(\x0b\x32\x11.proto.ContractID\x12-\n\x11transferAccountID\x18\x02 \x01(\x0b\x32\x10.proto.AccountIDH\x00\x12/\n\x12transferContractID\x18\x03 \x01(\x0b\x32\x11.proto.ContractIDH\x00\x12\x19\n\x11permanent_removal\x18\x04 \x01(\x08\x42\x0b\n\tobtainersB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'contract_delete_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CONTRACTDELETETRANSACTIONBODY']._serialized_start=52 - _globals['_CONTRACTDELETETRANSACTIONBODY']._serialized_end=258 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/contract_delete_pb2_grpc.py b/src/proto/contract_delete_pb2_grpc.py deleted file mode 100644 index 67b07f3..0000000 --- a/src/proto/contract_delete_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in contract_delete_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/contract_get_bytecode_pb2.py b/src/proto/contract_get_bytecode_pb2.py deleted file mode 100644 index bbf5bbf..0000000 --- a/src/proto/contract_get_bytecode_pb2.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: contract_get_bytecode.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'contract_get_bytecode.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x63ontract_get_bytecode.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\"e\n\x18\x43ontractGetBytecodeQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12%\n\ncontractID\x18\x02 \x01(\x0b\x32\x11.proto.ContractID\"V\n\x1b\x43ontractGetBytecodeResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12\x10\n\x08\x62ytecode\x18\x06 \x01(\x0c\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'contract_get_bytecode_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CONTRACTGETBYTECODEQUERY']._serialized_start=100 - _globals['_CONTRACTGETBYTECODEQUERY']._serialized_end=201 - _globals['_CONTRACTGETBYTECODERESPONSE']._serialized_start=203 - _globals['_CONTRACTGETBYTECODERESPONSE']._serialized_end=289 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/contract_get_bytecode_pb2_grpc.py b/src/proto/contract_get_bytecode_pb2_grpc.py deleted file mode 100644 index 3698a90..0000000 --- a/src/proto/contract_get_bytecode_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in contract_get_bytecode_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/contract_get_info_pb2.py b/src/proto/contract_get_info_pb2.py deleted file mode 100644 index c6d685f..0000000 --- a/src/proto/contract_get_info_pb2.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: contract_get_info.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'contract_get_info.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import timestamp_pb2 as timestamp__pb2 -from . import duration_pb2 as duration__pb2 -from . import basic_types_pb2 as basic__types__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x63ontract_get_info.proto\x12\x05proto\x1a\x0ftimestamp.proto\x1a\x0e\x64uration.proto\x1a\x11\x62\x61sic_types.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\"a\n\x14\x43ontractGetInfoQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12%\n\ncontractID\x18\x02 \x01(\x0b\x32\x11.proto.ContractID\"\x80\x05\n\x17\x43ontractGetInfoResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12\x41\n\x0c\x63ontractInfo\x18\x02 \x01(\x0b\x32+.proto.ContractGetInfoResponse.ContractInfo\x1a\xfa\x03\n\x0c\x43ontractInfo\x12%\n\ncontractID\x18\x01 \x01(\x0b\x32\x11.proto.ContractID\x12#\n\taccountID\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12\x19\n\x11\x63ontractAccountID\x18\x03 \x01(\t\x12\x1c\n\x08\x61\x64minKey\x18\x04 \x01(\x0b\x32\n.proto.Key\x12(\n\x0e\x65xpirationTime\x18\x05 \x01(\x0b\x32\x10.proto.Timestamp\x12(\n\x0f\x61utoRenewPeriod\x18\x06 \x01(\x0b\x32\x0f.proto.Duration\x12\x0f\n\x07storage\x18\x07 \x01(\x03\x12\x0c\n\x04memo\x18\x08 \x01(\t\x12\x0f\n\x07\x62\x61lance\x18\t \x01(\x04\x12\x0f\n\x07\x64\x65leted\x18\n \x01(\x08\x12\x38\n\x12tokenRelationships\x18\x0b \x03(\x0b\x32\x18.proto.TokenRelationshipB\x02\x18\x01\x12\x11\n\tledger_id\x18\x0c \x01(\x0c\x12/\n\x15\x61uto_renew_account_id\x18\r \x01(\x0b\x32\x10.proto.AccountID\x12(\n max_automatic_token_associations\x18\x0e \x01(\x05\x12(\n\x0cstaking_info\x18\x0f \x01(\x0b\x32\x12.proto.StakingInfoB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'contract_get_info_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CONTRACTGETINFORESPONSE_CONTRACTINFO'].fields_by_name['tokenRelationships']._loaded_options = None - _globals['_CONTRACTGETINFORESPONSE_CONTRACTINFO'].fields_by_name['tokenRelationships']._serialized_options = b'\030\001' - _globals['_CONTRACTGETINFOQUERY']._serialized_start=129 - _globals['_CONTRACTGETINFOQUERY']._serialized_end=226 - _globals['_CONTRACTGETINFORESPONSE']._serialized_start=229 - _globals['_CONTRACTGETINFORESPONSE']._serialized_end=869 - _globals['_CONTRACTGETINFORESPONSE_CONTRACTINFO']._serialized_start=363 - _globals['_CONTRACTGETINFORESPONSE_CONTRACTINFO']._serialized_end=869 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/contract_get_info_pb2_grpc.py b/src/proto/contract_get_info_pb2_grpc.py deleted file mode 100644 index 6c235cf..0000000 --- a/src/proto/contract_get_info_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in contract_get_info_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/contract_get_records_pb2.py b/src/proto/contract_get_records_pb2.py deleted file mode 100644 index 907d623..0000000 --- a/src/proto/contract_get_records_pb2.py +++ /dev/null @@ -1,47 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: contract_get_records.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'contract_get_records.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import transaction_record_pb2 as transaction__record__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x63ontract_get_records.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x18transaction_record.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\"h\n\x17\x43ontractGetRecordsQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12%\n\ncontractID\x18\x02 \x01(\x0b\x32\x11.proto.ContractID:\x02\x18\x01\"\x99\x01\n\x1a\x43ontractGetRecordsResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12%\n\ncontractID\x18\x02 \x01(\x0b\x32\x11.proto.ContractID\x12)\n\x07records\x18\x03 \x03(\x0b\x32\x18.proto.TransactionRecord:\x02\x18\x01\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'contract_get_records_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CONTRACTGETRECORDSQUERY']._loaded_options = None - _globals['_CONTRACTGETRECORDSQUERY']._serialized_options = b'\030\001' - _globals['_CONTRACTGETRECORDSRESPONSE']._loaded_options = None - _globals['_CONTRACTGETRECORDSRESPONSE']._serialized_options = b'\030\001' - _globals['_CONTRACTGETRECORDSQUERY']._serialized_start=125 - _globals['_CONTRACTGETRECORDSQUERY']._serialized_end=229 - _globals['_CONTRACTGETRECORDSRESPONSE']._serialized_start=232 - _globals['_CONTRACTGETRECORDSRESPONSE']._serialized_end=385 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/contract_get_records_pb2_grpc.py b/src/proto/contract_get_records_pb2_grpc.py deleted file mode 100644 index 31f1643..0000000 --- a/src/proto/contract_get_records_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in contract_get_records_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/contract_types_pb2.py b/src/proto/contract_types_pb2.py deleted file mode 100644 index 2b75aef..0000000 --- a/src/proto/contract_types_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: contract_types.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'contract_types.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14\x63ontract_types.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x1egoogle/protobuf/wrappers.proto\"J\n\x11\x43ontractNonceInfo\x12&\n\x0b\x63ontract_id\x18\x01 \x01(\x0b\x32\x11.proto.ContractID\x12\r\n\x05nonce\x18\x02 \x01(\x03\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'contract_types_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CONTRACTNONCEINFO']._serialized_start=82 - _globals['_CONTRACTNONCEINFO']._serialized_end=156 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/contract_types_pb2_grpc.py b/src/proto/contract_types_pb2_grpc.py deleted file mode 100644 index d6f0acd..0000000 --- a/src/proto/contract_types_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in contract_types_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/contract_update_pb2.py b/src/proto/contract_update_pb2.py deleted file mode 100644 index 29b391b..0000000 --- a/src/proto/contract_update_pb2.py +++ /dev/null @@ -1,47 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: contract_update.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'contract_update.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import duration_pb2 as duration__pb2 -from . import timestamp_pb2 as timestamp__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15\x63ontract_update.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x0e\x64uration.proto\x1a\x0ftimestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xe1\x04\n\x1d\x43ontractUpdateTransactionBody\x12%\n\ncontractID\x18\x01 \x01(\x0b\x32\x11.proto.ContractID\x12(\n\x0e\x65xpirationTime\x18\x02 \x01(\x0b\x32\x10.proto.Timestamp\x12\x1c\n\x08\x61\x64minKey\x18\x03 \x01(\x0b\x32\n.proto.Key\x12,\n\x0eproxyAccountID\x18\x06 \x01(\x0b\x32\x10.proto.AccountIDB\x02\x18\x01\x12(\n\x0f\x61utoRenewPeriod\x18\x07 \x01(\x0b\x32\x0f.proto.Duration\x12!\n\x06\x66ileID\x18\x08 \x01(\x0b\x32\r.proto.FileIDB\x02\x18\x01\x12\x12\n\x04memo\x18\t \x01(\tB\x02\x18\x01H\x00\x12\x33\n\x0bmemoWrapper\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12\x45\n max_automatic_token_associations\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12/\n\x15\x61uto_renew_account_id\x18\x0c \x01(\x0b\x32\x10.proto.AccountID\x12-\n\x11staked_account_id\x18\r \x01(\x0b\x32\x10.proto.AccountIDH\x01\x12\x18\n\x0estaked_node_id\x18\x0e \x01(\x03H\x01\x12\x32\n\x0e\x64\x65\x63line_reward\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x0b\n\tmemoFieldB\x0b\n\tstaked_idB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'contract_update_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CONTRACTUPDATETRANSACTIONBODY'].fields_by_name['proxyAccountID']._loaded_options = None - _globals['_CONTRACTUPDATETRANSACTIONBODY'].fields_by_name['proxyAccountID']._serialized_options = b'\030\001' - _globals['_CONTRACTUPDATETRANSACTIONBODY'].fields_by_name['fileID']._loaded_options = None - _globals['_CONTRACTUPDATETRANSACTIONBODY'].fields_by_name['fileID']._serialized_options = b'\030\001' - _globals['_CONTRACTUPDATETRANSACTIONBODY'].fields_by_name['memo']._loaded_options = None - _globals['_CONTRACTUPDATETRANSACTIONBODY'].fields_by_name['memo']._serialized_options = b'\030\001' - _globals['_CONTRACTUPDATETRANSACTIONBODY']._serialized_start=117 - _globals['_CONTRACTUPDATETRANSACTIONBODY']._serialized_end=726 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/contract_update_pb2_grpc.py b/src/proto/contract_update_pb2_grpc.py deleted file mode 100644 index ecd5c52..0000000 --- a/src/proto/contract_update_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in contract_update_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/crypto_add_live_hash_pb2.py b/src/proto/crypto_add_live_hash_pb2.py deleted file mode 100644 index dcbecbf..0000000 --- a/src/proto/crypto_add_live_hash_pb2.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: crypto_add_live_hash.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'crypto_add_live_hash.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import duration_pb2 as duration__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x63rypto_add_live_hash.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x0e\x64uration.proto\"~\n\x08LiveHash\x12#\n\taccountId\x18\x01 \x01(\x0b\x32\x10.proto.AccountID\x12\x0c\n\x04hash\x18\x02 \x01(\x0c\x12\x1c\n\x04keys\x18\x03 \x01(\x0b\x32\x0e.proto.KeyList\x12!\n\x08\x64uration\x18\x05 \x01(\x0b\x32\x0f.proto.Duration\"E\n CryptoAddLiveHashTransactionBody\x12!\n\x08liveHash\x18\x03 \x01(\x0b\x32\x0f.proto.LiveHashB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'crypto_add_live_hash_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_LIVEHASH']._serialized_start=72 - _globals['_LIVEHASH']._serialized_end=198 - _globals['_CRYPTOADDLIVEHASHTRANSACTIONBODY']._serialized_start=200 - _globals['_CRYPTOADDLIVEHASHTRANSACTIONBODY']._serialized_end=269 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/crypto_add_live_hash_pb2_grpc.py b/src/proto/crypto_add_live_hash_pb2_grpc.py deleted file mode 100644 index 3cbeeaa..0000000 --- a/src/proto/crypto_add_live_hash_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in crypto_add_live_hash_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/crypto_approve_allowance_pb2.py b/src/proto/crypto_approve_allowance_pb2.py deleted file mode 100644 index 1a7c4a8..0000000 --- a/src/proto/crypto_approve_allowance_pb2.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: crypto_approve_allowance.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'crypto_approve_allowance.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x63rypto_approve_allowance.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xb5\x01\n%CryptoApproveAllowanceTransactionBody\x12\x30\n\x10\x63ryptoAllowances\x18\x01 \x03(\x0b\x32\x16.proto.CryptoAllowance\x12*\n\rnftAllowances\x18\x02 \x03(\x0b\x32\x13.proto.NftAllowance\x12.\n\x0ftokenAllowances\x18\x03 \x03(\x0b\x32\x15.proto.TokenAllowance\"e\n\x0f\x43ryptoAllowance\x12\x1f\n\x05owner\x18\x01 \x01(\x0b\x32\x10.proto.AccountID\x12!\n\x07spender\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12\x0e\n\x06\x61mount\x18\x03 \x01(\x03\"\xef\x01\n\x0cNftAllowance\x12\x1f\n\x07tokenId\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12\x1f\n\x05owner\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12!\n\x07spender\x18\x03 \x01(\x0b\x32\x10.proto.AccountID\x12\x16\n\x0eserial_numbers\x18\x04 \x03(\x03\x12\x34\n\x10\x61pproved_for_all\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12,\n\x12\x64\x65legating_spender\x18\x06 \x01(\x0b\x32\x10.proto.AccountID\"\x85\x01\n\x0eTokenAllowance\x12\x1f\n\x07tokenId\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12\x1f\n\x05owner\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12!\n\x07spender\x18\x03 \x01(\x0b\x32\x10.proto.AccountID\x12\x0e\n\x06\x61mount\x18\x04 \x01(\x03\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'crypto_approve_allowance_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CRYPTOAPPROVEALLOWANCETRANSACTIONBODY']._serialized_start=93 - _globals['_CRYPTOAPPROVEALLOWANCETRANSACTIONBODY']._serialized_end=274 - _globals['_CRYPTOALLOWANCE']._serialized_start=276 - _globals['_CRYPTOALLOWANCE']._serialized_end=377 - _globals['_NFTALLOWANCE']._serialized_start=380 - _globals['_NFTALLOWANCE']._serialized_end=619 - _globals['_TOKENALLOWANCE']._serialized_start=622 - _globals['_TOKENALLOWANCE']._serialized_end=755 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/crypto_approve_allowance_pb2_grpc.py b/src/proto/crypto_approve_allowance_pb2_grpc.py deleted file mode 100644 index 64d3d2b..0000000 --- a/src/proto/crypto_approve_allowance_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in crypto_approve_allowance_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/crypto_create_pb2.py b/src/proto/crypto_create_pb2.py deleted file mode 100644 index 07225f6..0000000 --- a/src/proto/crypto_create_pb2.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: crypto_create.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'crypto_create.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import duration_pb2 as duration__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x63rypto_create.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x0e\x64uration.proto\"\xa5\x04\n\x1b\x43ryptoCreateTransactionBody\x12\x17\n\x03key\x18\x01 \x01(\x0b\x32\n.proto.Key\x12\x16\n\x0einitialBalance\x18\x02 \x01(\x04\x12,\n\x0eproxyAccountID\x18\x03 \x01(\x0b\x32\x10.proto.AccountIDB\x02\x18\x01\x12\x1f\n\x13sendRecordThreshold\x18\x06 \x01(\x04\x42\x02\x18\x01\x12\"\n\x16receiveRecordThreshold\x18\x07 \x01(\x04\x42\x02\x18\x01\x12\x1b\n\x13receiverSigRequired\x18\x08 \x01(\x08\x12(\n\x0f\x61utoRenewPeriod\x18\t \x01(\x0b\x32\x0f.proto.Duration\x12\x1f\n\x07shardID\x18\n \x01(\x0b\x32\x0e.proto.ShardID\x12\x1f\n\x07realmID\x18\x0b \x01(\x0b\x32\x0e.proto.RealmID\x12$\n\x10newRealmAdminKey\x18\x0c \x01(\x0b\x32\n.proto.Key\x12\x0c\n\x04memo\x18\r \x01(\t\x12(\n max_automatic_token_associations\x18\x0e \x01(\x05\x12-\n\x11staked_account_id\x18\x0f \x01(\x0b\x32\x10.proto.AccountIDH\x00\x12\x18\n\x0estaked_node_id\x18\x10 \x01(\x03H\x00\x12\x16\n\x0e\x64\x65\x63line_reward\x18\x11 \x01(\x08\x12\r\n\x05\x61lias\x18\x12 \x01(\x0c\x42\x0b\n\tstaked_idB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'crypto_create_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CRYPTOCREATETRANSACTIONBODY'].fields_by_name['proxyAccountID']._loaded_options = None - _globals['_CRYPTOCREATETRANSACTIONBODY'].fields_by_name['proxyAccountID']._serialized_options = b'\030\001' - _globals['_CRYPTOCREATETRANSACTIONBODY'].fields_by_name['sendRecordThreshold']._loaded_options = None - _globals['_CRYPTOCREATETRANSACTIONBODY'].fields_by_name['sendRecordThreshold']._serialized_options = b'\030\001' - _globals['_CRYPTOCREATETRANSACTIONBODY'].fields_by_name['receiveRecordThreshold']._loaded_options = None - _globals['_CRYPTOCREATETRANSACTIONBODY'].fields_by_name['receiveRecordThreshold']._serialized_options = b'\030\001' - _globals['_CRYPTOCREATETRANSACTIONBODY']._serialized_start=66 - _globals['_CRYPTOCREATETRANSACTIONBODY']._serialized_end=615 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/crypto_create_pb2_grpc.py b/src/proto/crypto_create_pb2_grpc.py deleted file mode 100644 index a607d54..0000000 --- a/src/proto/crypto_create_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in crypto_create_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/crypto_delete_allowance_pb2.py b/src/proto/crypto_delete_allowance_pb2.py deleted file mode 100644 index c1f42fb..0000000 --- a/src/proto/crypto_delete_allowance_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: crypto_delete_allowance.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'crypto_delete_allowance.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x63rypto_delete_allowance.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"X\n$CryptoDeleteAllowanceTransactionBody\x12\x30\n\rnftAllowances\x18\x02 \x03(\x0b\x32\x19.proto.NftRemoveAllowance\"o\n\x12NftRemoveAllowance\x12 \n\x08token_id\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12\x1f\n\x05owner\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12\x16\n\x0eserial_numbers\x18\x03 \x03(\x03\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'crypto_delete_allowance_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CRYPTODELETEALLOWANCETRANSACTIONBODY']._serialized_start=59 - _globals['_CRYPTODELETEALLOWANCETRANSACTIONBODY']._serialized_end=147 - _globals['_NFTREMOVEALLOWANCE']._serialized_start=149 - _globals['_NFTREMOVEALLOWANCE']._serialized_end=260 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/crypto_delete_allowance_pb2_grpc.py b/src/proto/crypto_delete_allowance_pb2_grpc.py deleted file mode 100644 index 3108f62..0000000 --- a/src/proto/crypto_delete_allowance_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in crypto_delete_allowance_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/crypto_delete_live_hash_pb2.py b/src/proto/crypto_delete_live_hash_pb2.py deleted file mode 100644 index e57bd1a..0000000 --- a/src/proto/crypto_delete_live_hash_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: crypto_delete_live_hash.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'crypto_delete_live_hash.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x63rypto_delete_live_hash.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"l\n#CryptoDeleteLiveHashTransactionBody\x12+\n\x11\x61\x63\x63ountOfLiveHash\x18\x01 \x01(\x0b\x32\x10.proto.AccountID\x12\x18\n\x10liveHashToDelete\x18\x02 \x01(\x0c\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'crypto_delete_live_hash_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CRYPTODELETELIVEHASHTRANSACTIONBODY']._serialized_start=59 - _globals['_CRYPTODELETELIVEHASHTRANSACTIONBODY']._serialized_end=167 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/crypto_delete_live_hash_pb2_grpc.py b/src/proto/crypto_delete_live_hash_pb2_grpc.py deleted file mode 100644 index ae82fe6..0000000 --- a/src/proto/crypto_delete_live_hash_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in crypto_delete_live_hash_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/crypto_delete_pb2.py b/src/proto/crypto_delete_pb2.py deleted file mode 100644 index ac9c51f..0000000 --- a/src/proto/crypto_delete_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: crypto_delete.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'crypto_delete.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x63rypto_delete.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"u\n\x1b\x43ryptoDeleteTransactionBody\x12+\n\x11transferAccountID\x18\x01 \x01(\x0b\x32\x10.proto.AccountID\x12)\n\x0f\x64\x65leteAccountID\x18\x02 \x01(\x0b\x32\x10.proto.AccountIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'crypto_delete_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CRYPTODELETETRANSACTIONBODY']._serialized_start=49 - _globals['_CRYPTODELETETRANSACTIONBODY']._serialized_end=166 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/crypto_delete_pb2_grpc.py b/src/proto/crypto_delete_pb2_grpc.py deleted file mode 100644 index 6744ad0..0000000 --- a/src/proto/crypto_delete_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in crypto_delete_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/crypto_get_account_balance_pb2.py b/src/proto/crypto_get_account_balance_pb2.py deleted file mode 100644 index f53c028..0000000 --- a/src/proto/crypto_get_account_balance_pb2.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: crypto_get_account_balance.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'crypto_get_account_balance.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n crypto_get_account_balance.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\"\xa3\x01\n\x1c\x43ryptoGetAccountBalanceQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12%\n\taccountID\x18\x02 \x01(\x0b\x32\x10.proto.AccountIDH\x00\x12\'\n\ncontractID\x18\x03 \x01(\x0b\x32\x11.proto.ContractIDH\x00\x42\x0f\n\rbalanceSource\"\xae\x01\n\x1f\x43ryptoGetAccountBalanceResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12#\n\taccountID\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12\x0f\n\x07\x62\x61lance\x18\x03 \x01(\x04\x12.\n\rtokenBalances\x18\x04 \x03(\x0b\x32\x13.proto.TokenBalanceB\x02\x18\x01\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'crypto_get_account_balance_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CRYPTOGETACCOUNTBALANCERESPONSE'].fields_by_name['tokenBalances']._loaded_options = None - _globals['_CRYPTOGETACCOUNTBALANCERESPONSE'].fields_by_name['tokenBalances']._serialized_options = b'\030\001' - _globals['_CRYPTOGETACCOUNTBALANCEQUERY']._serialized_start=106 - _globals['_CRYPTOGETACCOUNTBALANCEQUERY']._serialized_end=269 - _globals['_CRYPTOGETACCOUNTBALANCERESPONSE']._serialized_start=272 - _globals['_CRYPTOGETACCOUNTBALANCERESPONSE']._serialized_end=446 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/crypto_get_account_balance_pb2_grpc.py b/src/proto/crypto_get_account_balance_pb2_grpc.py deleted file mode 100644 index 2a2472d..0000000 --- a/src/proto/crypto_get_account_balance_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in crypto_get_account_balance_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/crypto_get_account_records_pb2.py b/src/proto/crypto_get_account_records_pb2.py deleted file mode 100644 index 9fc176e..0000000 --- a/src/proto/crypto_get_account_records_pb2.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: crypto_get_account_records.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'crypto_get_account_records.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import transaction_record_pb2 as transaction__record__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n crypto_get_account_records.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x18transaction_record.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\"g\n\x1c\x43ryptoGetAccountRecordsQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12#\n\taccountID\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\"\x98\x01\n\x1f\x43ryptoGetAccountRecordsResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12#\n\taccountID\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12)\n\x07records\x18\x03 \x03(\x0b\x32\x18.proto.TransactionRecordB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'crypto_get_account_records_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CRYPTOGETACCOUNTRECORDSQUERY']._serialized_start=131 - _globals['_CRYPTOGETACCOUNTRECORDSQUERY']._serialized_end=234 - _globals['_CRYPTOGETACCOUNTRECORDSRESPONSE']._serialized_start=237 - _globals['_CRYPTOGETACCOUNTRECORDSRESPONSE']._serialized_end=389 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/crypto_get_account_records_pb2_grpc.py b/src/proto/crypto_get_account_records_pb2_grpc.py deleted file mode 100644 index 9d23951..0000000 --- a/src/proto/crypto_get_account_records_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in crypto_get_account_records_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/crypto_get_info_pb2.py b/src/proto/crypto_get_info_pb2.py deleted file mode 100644 index 75ca543..0000000 --- a/src/proto/crypto_get_info_pb2.py +++ /dev/null @@ -1,55 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: crypto_get_info.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'crypto_get_info.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import timestamp_pb2 as timestamp__pb2 -from . import duration_pb2 as duration__pb2 -from . import basic_types_pb2 as basic__types__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 -from . import crypto_add_live_hash_pb2 as crypto__add__live__hash__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15\x63rypto_get_info.proto\x12\x05proto\x1a\x0ftimestamp.proto\x1a\x0e\x64uration.proto\x1a\x11\x62\x61sic_types.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\x1a\x1a\x63rypto_add_live_hash.proto\"]\n\x12\x43ryptoGetInfoQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12#\n\taccountID\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\"\xa1\x06\n\x15\x43ryptoGetInfoResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12=\n\x0b\x61\x63\x63ountInfo\x18\x02 \x01(\x0b\x32(.proto.CryptoGetInfoResponse.AccountInfo\x1a\xa1\x05\n\x0b\x41\x63\x63ountInfo\x12#\n\taccountID\x18\x01 \x01(\x0b\x32\x10.proto.AccountID\x12\x19\n\x11\x63ontractAccountID\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x65leted\x18\x03 \x01(\x08\x12,\n\x0eproxyAccountID\x18\x04 \x01(\x0b\x32\x10.proto.AccountIDB\x02\x18\x01\x12\x15\n\rproxyReceived\x18\x06 \x01(\x03\x12\x17\n\x03key\x18\x07 \x01(\x0b\x32\n.proto.Key\x12\x0f\n\x07\x62\x61lance\x18\x08 \x01(\x04\x12\'\n\x1bgenerateSendRecordThreshold\x18\t \x01(\x04\x42\x02\x18\x01\x12*\n\x1egenerateReceiveRecordThreshold\x18\n \x01(\x04\x42\x02\x18\x01\x12\x1b\n\x13receiverSigRequired\x18\x0b \x01(\x08\x12(\n\x0e\x65xpirationTime\x18\x0c \x01(\x0b\x32\x10.proto.Timestamp\x12(\n\x0f\x61utoRenewPeriod\x18\r \x01(\x0b\x32\x0f.proto.Duration\x12#\n\nliveHashes\x18\x0e \x03(\x0b\x32\x0f.proto.LiveHash\x12\x38\n\x12tokenRelationships\x18\x0f \x03(\x0b\x32\x18.proto.TokenRelationshipB\x02\x18\x01\x12\x0c\n\x04memo\x18\x10 \x01(\t\x12\x11\n\townedNfts\x18\x11 \x01(\x03\x12(\n max_automatic_token_associations\x18\x12 \x01(\x05\x12\r\n\x05\x61lias\x18\x13 \x01(\x0c\x12\x11\n\tledger_id\x18\x14 \x01(\x0c\x12\x16\n\x0e\x65thereum_nonce\x18\x15 \x01(\x03\x12(\n\x0cstaking_info\x18\x16 \x01(\x0b\x32\x12.proto.StakingInfoB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'crypto_get_info_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CRYPTOGETINFORESPONSE_ACCOUNTINFO'].fields_by_name['proxyAccountID']._loaded_options = None - _globals['_CRYPTOGETINFORESPONSE_ACCOUNTINFO'].fields_by_name['proxyAccountID']._serialized_options = b'\030\001' - _globals['_CRYPTOGETINFORESPONSE_ACCOUNTINFO'].fields_by_name['generateSendRecordThreshold']._loaded_options = None - _globals['_CRYPTOGETINFORESPONSE_ACCOUNTINFO'].fields_by_name['generateSendRecordThreshold']._serialized_options = b'\030\001' - _globals['_CRYPTOGETINFORESPONSE_ACCOUNTINFO'].fields_by_name['generateReceiveRecordThreshold']._loaded_options = None - _globals['_CRYPTOGETINFORESPONSE_ACCOUNTINFO'].fields_by_name['generateReceiveRecordThreshold']._serialized_options = b'\030\001' - _globals['_CRYPTOGETINFORESPONSE_ACCOUNTINFO'].fields_by_name['tokenRelationships']._loaded_options = None - _globals['_CRYPTOGETINFORESPONSE_ACCOUNTINFO'].fields_by_name['tokenRelationships']._serialized_options = b'\030\001' - _globals['_CRYPTOGETINFOQUERY']._serialized_start=155 - _globals['_CRYPTOGETINFOQUERY']._serialized_end=248 - _globals['_CRYPTOGETINFORESPONSE']._serialized_start=251 - _globals['_CRYPTOGETINFORESPONSE']._serialized_end=1052 - _globals['_CRYPTOGETINFORESPONSE_ACCOUNTINFO']._serialized_start=379 - _globals['_CRYPTOGETINFORESPONSE_ACCOUNTINFO']._serialized_end=1052 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/crypto_get_info_pb2_grpc.py b/src/proto/crypto_get_info_pb2_grpc.py deleted file mode 100644 index 653d65b..0000000 --- a/src/proto/crypto_get_info_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in crypto_get_info_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/crypto_get_live_hash_pb2.py b/src/proto/crypto_get_live_hash_pb2.py deleted file mode 100644 index 915884c..0000000 --- a/src/proto/crypto_get_live_hash_pb2.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: crypto_get_live_hash.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'crypto_get_live_hash.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 -from . import crypto_add_live_hash_pb2 as crypto__add__live__hash__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x63rypto_get_live_hash.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\x1a\x1a\x63rypto_add_live_hash.proto\"o\n\x16\x43ryptoGetLiveHashQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12#\n\taccountID\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12\x0c\n\x04hash\x18\x03 \x01(\x0c\"e\n\x19\x43ryptoGetLiveHashResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12!\n\x08liveHash\x18\x02 \x01(\x0b\x32\x0f.proto.LiveHashB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'crypto_get_live_hash_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CRYPTOGETLIVEHASHQUERY']._serialized_start=127 - _globals['_CRYPTOGETLIVEHASHQUERY']._serialized_end=238 - _globals['_CRYPTOGETLIVEHASHRESPONSE']._serialized_start=240 - _globals['_CRYPTOGETLIVEHASHRESPONSE']._serialized_end=341 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/crypto_get_live_hash_pb2_grpc.py b/src/proto/crypto_get_live_hash_pb2_grpc.py deleted file mode 100644 index 92f4e9a..0000000 --- a/src/proto/crypto_get_live_hash_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in crypto_get_live_hash_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/crypto_get_stakers_pb2.py b/src/proto/crypto_get_stakers_pb2.py deleted file mode 100644 index f256295..0000000 --- a/src/proto/crypto_get_stakers_pb2.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: crypto_get_stakers.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'crypto_get_stakers.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18\x63rypto_get_stakers.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\"`\n\x15\x43ryptoGetStakersQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12#\n\taccountID\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\"B\n\x0bProxyStaker\x12#\n\taccountID\x18\x01 \x01(\x0b\x32\x10.proto.AccountID\x12\x0e\n\x06\x61mount\x18\x02 \x01(\x03\"_\n\x0f\x41llProxyStakers\x12#\n\taccountID\x18\x01 \x01(\x0b\x32\x10.proto.AccountID\x12\'\n\x0bproxyStaker\x18\x02 \x03(\x0b\x32\x12.proto.ProxyStaker\"j\n\x18\x43ryptoGetStakersResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12\'\n\x07stakers\x18\x03 \x01(\x0b\x32\x16.proto.AllProxyStakersB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'crypto_get_stakers_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CRYPTOGETSTAKERSQUERY']._serialized_start=97 - _globals['_CRYPTOGETSTAKERSQUERY']._serialized_end=193 - _globals['_PROXYSTAKER']._serialized_start=195 - _globals['_PROXYSTAKER']._serialized_end=261 - _globals['_ALLPROXYSTAKERS']._serialized_start=263 - _globals['_ALLPROXYSTAKERS']._serialized_end=358 - _globals['_CRYPTOGETSTAKERSRESPONSE']._serialized_start=360 - _globals['_CRYPTOGETSTAKERSRESPONSE']._serialized_end=466 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/crypto_get_stakers_pb2_grpc.py b/src/proto/crypto_get_stakers_pb2_grpc.py deleted file mode 100644 index aa78aa5..0000000 --- a/src/proto/crypto_get_stakers_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in crypto_get_stakers_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/crypto_service_pb2.py b/src/proto/crypto_service_pb2.py deleted file mode 100644 index 8e3c5d3..0000000 --- a/src/proto/crypto_service_pb2.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: crypto_service.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'crypto_service.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import query_pb2 as query__pb2 -from . import response_pb2 as response__pb2 -from . import transaction_response_pb2 as transaction__response__pb2 -from . import transaction_pb2 as transaction__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14\x63rypto_service.proto\x12\x05proto\x1a\x0bquery.proto\x1a\x0eresponse.proto\x1a\x1atransaction_response.proto\x1a\x11transaction.proto2\xc3\x07\n\rCryptoService\x12?\n\rcreateAccount\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12?\n\rupdateAccount\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12@\n\x0e\x63ryptoTransfer\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12>\n\x0c\x63ryptoDelete\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12\x43\n\x11\x61pproveAllowances\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12\x42\n\x10\x64\x65leteAllowances\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12=\n\x0b\x61\x64\x64LiveHash\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12@\n\x0e\x64\x65leteLiveHash\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12,\n\x0bgetLiveHash\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12\x32\n\x11getAccountRecords\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12\x31\n\x10\x63ryptoGetBalance\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12/\n\x0egetAccountInfo\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12\x37\n\x16getTransactionReceipts\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12\x39\n\x18getFastTransactionRecord\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12\x32\n\x11getTxRecordByTxID\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12\x36\n\x15getStakersByAccountID\x12\x0c.proto.Query\x1a\x0f.proto.ResponseB(\n&com.hederahashgraph.service.proto.javab\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'crypto_service_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n&com.hederahashgraph.service.proto.java' - _globals['_CRYPTOSERVICE']._serialized_start=108 - _globals['_CRYPTOSERVICE']._serialized_end=1071 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/crypto_service_pb2_grpc.py b/src/proto/crypto_service_pb2_grpc.py deleted file mode 100644 index 17d7ef3..0000000 --- a/src/proto/crypto_service_pb2_grpc.py +++ /dev/null @@ -1,787 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - -from . import query_pb2 as query__pb2 -from . import response_pb2 as response__pb2 -from . import transaction_pb2 as transaction__pb2 -from . import transaction_response_pb2 as transaction__response__pb2 - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in crypto_service_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) - - -class CryptoServiceStub(object): - """* - Transactions and queries for the Crypto Service - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.createAccount = channel.unary_unary( - '/proto.CryptoService/createAccount', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.updateAccount = channel.unary_unary( - '/proto.CryptoService/updateAccount', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.cryptoTransfer = channel.unary_unary( - '/proto.CryptoService/cryptoTransfer', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.cryptoDelete = channel.unary_unary( - '/proto.CryptoService/cryptoDelete', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.approveAllowances = channel.unary_unary( - '/proto.CryptoService/approveAllowances', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.deleteAllowances = channel.unary_unary( - '/proto.CryptoService/deleteAllowances', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.addLiveHash = channel.unary_unary( - '/proto.CryptoService/addLiveHash', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.deleteLiveHash = channel.unary_unary( - '/proto.CryptoService/deleteLiveHash', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.getLiveHash = channel.unary_unary( - '/proto.CryptoService/getLiveHash', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.getAccountRecords = channel.unary_unary( - '/proto.CryptoService/getAccountRecords', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.cryptoGetBalance = channel.unary_unary( - '/proto.CryptoService/cryptoGetBalance', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.getAccountInfo = channel.unary_unary( - '/proto.CryptoService/getAccountInfo', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.getTransactionReceipts = channel.unary_unary( - '/proto.CryptoService/getTransactionReceipts', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.getFastTransactionRecord = channel.unary_unary( - '/proto.CryptoService/getFastTransactionRecord', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.getTxRecordByTxID = channel.unary_unary( - '/proto.CryptoService/getTxRecordByTxID', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.getStakersByAccountID = channel.unary_unary( - '/proto.CryptoService/getStakersByAccountID', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - - -class CryptoServiceServicer(object): - """* - Transactions and queries for the Crypto Service - """ - - def createAccount(self, request, context): - """* - Creates a new account by submitting the transaction - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def updateAccount(self, request, context): - """* - Updates an account by submitting the transaction - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def cryptoTransfer(self, request, context): - """* - Initiates a transfer by submitting the transaction - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def cryptoDelete(self, request, context): - """* - Deletes and account by submitting the transaction - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def approveAllowances(self, request, context): - """* - Adds one or more approved allowances for spenders to transfer the paying account's hbar or tokens. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def deleteAllowances(self, request, context): - """* - Deletes one or more of the specific approved NFT serial numbers on an owner account. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def addLiveHash(self, request, context): - """* - (NOT CURRENTLY SUPPORTED) Adds a livehash - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def deleteLiveHash(self, request, context): - """* - (NOT CURRENTLY SUPPORTED) Deletes a livehash - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getLiveHash(self, request, context): - """* - (NOT CURRENTLY SUPPORTED) Retrieves a livehash for an account - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getAccountRecords(self, request, context): - """* - Returns all transactions in the last 180s of consensus time for which the given account was - the effective payer and network property ledger.keepRecordsInState was - true. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def cryptoGetBalance(self, request, context): - """* - Retrieves the balance of an account - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getAccountInfo(self, request, context): - """* - Retrieves the metadata of an account - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getTransactionReceipts(self, request, context): - """* - Retrieves the latest receipt for a transaction that is either awaiting consensus, or reached - consensus in the last 180 seconds - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getFastTransactionRecord(self, request, context): - """* - (NOT CURRENTLY SUPPORTED) Returns the records of transactions recently funded by an account - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getTxRecordByTxID(self, request, context): - """* - Retrieves the record of a transaction that is either awaiting consensus, or reached consensus - in the last 180 seconds - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getStakersByAccountID(self, request, context): - """* - (NOT CURRENTLY SUPPORTED) Retrieves the stakers for a node by account id - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CryptoServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'createAccount': grpc.unary_unary_rpc_method_handler( - servicer.createAccount, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'updateAccount': grpc.unary_unary_rpc_method_handler( - servicer.updateAccount, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'cryptoTransfer': grpc.unary_unary_rpc_method_handler( - servicer.cryptoTransfer, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'cryptoDelete': grpc.unary_unary_rpc_method_handler( - servicer.cryptoDelete, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'approveAllowances': grpc.unary_unary_rpc_method_handler( - servicer.approveAllowances, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'deleteAllowances': grpc.unary_unary_rpc_method_handler( - servicer.deleteAllowances, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'addLiveHash': grpc.unary_unary_rpc_method_handler( - servicer.addLiveHash, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'deleteLiveHash': grpc.unary_unary_rpc_method_handler( - servicer.deleteLiveHash, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'getLiveHash': grpc.unary_unary_rpc_method_handler( - servicer.getLiveHash, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'getAccountRecords': grpc.unary_unary_rpc_method_handler( - servicer.getAccountRecords, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'cryptoGetBalance': grpc.unary_unary_rpc_method_handler( - servicer.cryptoGetBalance, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'getAccountInfo': grpc.unary_unary_rpc_method_handler( - servicer.getAccountInfo, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'getTransactionReceipts': grpc.unary_unary_rpc_method_handler( - servicer.getTransactionReceipts, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'getFastTransactionRecord': grpc.unary_unary_rpc_method_handler( - servicer.getFastTransactionRecord, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'getTxRecordByTxID': grpc.unary_unary_rpc_method_handler( - servicer.getTxRecordByTxID, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'getStakersByAccountID': grpc.unary_unary_rpc_method_handler( - servicer.getStakersByAccountID, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'proto.CryptoService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('proto.CryptoService', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class CryptoService(object): - """* - Transactions and queries for the Crypto Service - """ - - @staticmethod - def createAccount(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.CryptoService/createAccount', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def updateAccount(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.CryptoService/updateAccount', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def cryptoTransfer(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.CryptoService/cryptoTransfer', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def cryptoDelete(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.CryptoService/cryptoDelete', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def approveAllowances(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.CryptoService/approveAllowances', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def deleteAllowances(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.CryptoService/deleteAllowances', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def addLiveHash(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.CryptoService/addLiveHash', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def deleteLiveHash(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.CryptoService/deleteLiveHash', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def getLiveHash(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.CryptoService/getLiveHash', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def getAccountRecords(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.CryptoService/getAccountRecords', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def cryptoGetBalance(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.CryptoService/cryptoGetBalance', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def getAccountInfo(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.CryptoService/getAccountInfo', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def getTransactionReceipts(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.CryptoService/getTransactionReceipts', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def getFastTransactionRecord(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.CryptoService/getFastTransactionRecord', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def getTxRecordByTxID(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.CryptoService/getTxRecordByTxID', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def getStakersByAccountID(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.CryptoService/getStakersByAccountID', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/src/proto/crypto_transfer_pb2.py b/src/proto/crypto_transfer_pb2.py deleted file mode 100644 index 71b958c..0000000 --- a/src/proto/crypto_transfer_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: crypto_transfer.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'crypto_transfer.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15\x63rypto_transfer.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"y\n\x1d\x43ryptoTransferTransactionBody\x12&\n\ttransfers\x18\x01 \x01(\x0b\x32\x13.proto.TransferList\x12\x30\n\x0etokenTransfers\x18\x02 \x03(\x0b\x32\x18.proto.TokenTransferListB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'crypto_transfer_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CRYPTOTRANSFERTRANSACTIONBODY']._serialized_start=51 - _globals['_CRYPTOTRANSFERTRANSACTIONBODY']._serialized_end=172 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/crypto_transfer_pb2_grpc.py b/src/proto/crypto_transfer_pb2_grpc.py deleted file mode 100644 index 3ebe89d..0000000 --- a/src/proto/crypto_transfer_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in crypto_transfer_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/crypto_update_pb2.py b/src/proto/crypto_update_pb2.py deleted file mode 100644 index 098998d..0000000 --- a/src/proto/crypto_update_pb2.py +++ /dev/null @@ -1,55 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: crypto_update.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'crypto_update.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import duration_pb2 as duration__pb2 -from . import timestamp_pb2 as timestamp__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x63rypto_update.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x0e\x64uration.proto\x1a\x0ftimestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x95\x07\n\x1b\x43ryptoUpdateTransactionBody\x12+\n\x11\x61\x63\x63ountIDToUpdate\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12\x17\n\x03key\x18\x03 \x01(\x0b\x32\n.proto.Key\x12,\n\x0eproxyAccountID\x18\x04 \x01(\x0b\x32\x10.proto.AccountIDB\x02\x18\x01\x12\x19\n\rproxyFraction\x18\x05 \x01(\x05\x42\x02\x18\x01\x12!\n\x13sendRecordThreshold\x18\x06 \x01(\x04\x42\x02\x18\x01H\x00\x12\x46\n\x1asendRecordThresholdWrapper\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.UInt64ValueB\x02\x18\x01H\x00\x12$\n\x16receiveRecordThreshold\x18\x07 \x01(\x04\x42\x02\x18\x01H\x01\x12I\n\x1dreceiveRecordThresholdWrapper\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.UInt64ValueB\x02\x18\x01H\x01\x12(\n\x0f\x61utoRenewPeriod\x18\x08 \x01(\x0b\x32\x0f.proto.Duration\x12(\n\x0e\x65xpirationTime\x18\t \x01(\x0b\x32\x10.proto.Timestamp\x12!\n\x13receiverSigRequired\x18\n \x01(\x08\x42\x02\x18\x01H\x02\x12@\n\x1areceiverSigRequiredWrapper\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x02\x12*\n\x04memo\x18\x0e \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x45\n max_automatic_token_associations\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12-\n\x11staked_account_id\x18\x10 \x01(\x0b\x32\x10.proto.AccountIDH\x03\x12\x18\n\x0estaked_node_id\x18\x11 \x01(\x03H\x03\x12\x32\n\x0e\x64\x65\x63line_reward\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x1a\n\x18sendRecordThresholdFieldB\x1d\n\x1breceiveRecordThresholdFieldB\x1a\n\x18receiverSigRequiredFieldB\x0b\n\tstaked_idB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'crypto_update_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_CRYPTOUPDATETRANSACTIONBODY'].fields_by_name['proxyAccountID']._loaded_options = None - _globals['_CRYPTOUPDATETRANSACTIONBODY'].fields_by_name['proxyAccountID']._serialized_options = b'\030\001' - _globals['_CRYPTOUPDATETRANSACTIONBODY'].fields_by_name['proxyFraction']._loaded_options = None - _globals['_CRYPTOUPDATETRANSACTIONBODY'].fields_by_name['proxyFraction']._serialized_options = b'\030\001' - _globals['_CRYPTOUPDATETRANSACTIONBODY'].fields_by_name['sendRecordThreshold']._loaded_options = None - _globals['_CRYPTOUPDATETRANSACTIONBODY'].fields_by_name['sendRecordThreshold']._serialized_options = b'\030\001' - _globals['_CRYPTOUPDATETRANSACTIONBODY'].fields_by_name['sendRecordThresholdWrapper']._loaded_options = None - _globals['_CRYPTOUPDATETRANSACTIONBODY'].fields_by_name['sendRecordThresholdWrapper']._serialized_options = b'\030\001' - _globals['_CRYPTOUPDATETRANSACTIONBODY'].fields_by_name['receiveRecordThreshold']._loaded_options = None - _globals['_CRYPTOUPDATETRANSACTIONBODY'].fields_by_name['receiveRecordThreshold']._serialized_options = b'\030\001' - _globals['_CRYPTOUPDATETRANSACTIONBODY'].fields_by_name['receiveRecordThresholdWrapper']._loaded_options = None - _globals['_CRYPTOUPDATETRANSACTIONBODY'].fields_by_name['receiveRecordThresholdWrapper']._serialized_options = b'\030\001' - _globals['_CRYPTOUPDATETRANSACTIONBODY'].fields_by_name['receiverSigRequired']._loaded_options = None - _globals['_CRYPTOUPDATETRANSACTIONBODY'].fields_by_name['receiverSigRequired']._serialized_options = b'\030\001' - _globals['_CRYPTOUPDATETRANSACTIONBODY']._serialized_start=115 - _globals['_CRYPTOUPDATETRANSACTIONBODY']._serialized_end=1032 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/crypto_update_pb2_grpc.py b/src/proto/crypto_update_pb2_grpc.py deleted file mode 100644 index 7a82dd0..0000000 --- a/src/proto/crypto_update_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in crypto_update_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/custom_fees_pb2.py b/src/proto/custom_fees_pb2.py deleted file mode 100644 index 7392cd4..0000000 --- a/src/proto/custom_fees_pb2.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: custom_fees.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'custom_fees.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x63ustom_fees.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"\x85\x01\n\rFractionalFee\x12*\n\x11\x66ractional_amount\x18\x01 \x01(\x0b\x32\x0f.proto.Fraction\x12\x16\n\x0eminimum_amount\x18\x02 \x01(\x03\x12\x16\n\x0emaximum_amount\x18\x03 \x01(\x03\x12\x18\n\x10net_of_transfers\x18\x04 \x01(\x08\"I\n\x08\x46ixedFee\x12\x0e\n\x06\x61mount\x18\x01 \x01(\x03\x12-\n\x15\x64\x65nominating_token_id\x18\x02 \x01(\x0b\x32\x0e.proto.TokenID\"e\n\nRoyaltyFee\x12\x30\n\x17\x65xchange_value_fraction\x18\x01 \x01(\x0b\x32\x0f.proto.Fraction\x12%\n\x0c\x66\x61llback_fee\x18\x02 \x01(\x0b\x32\x0f.proto.FixedFee\"\xe9\x01\n\tCustomFee\x12$\n\tfixed_fee\x18\x01 \x01(\x0b\x32\x0f.proto.FixedFeeH\x00\x12.\n\x0e\x66ractional_fee\x18\x02 \x01(\x0b\x32\x14.proto.FractionalFeeH\x00\x12(\n\x0broyalty_fee\x18\x04 \x01(\x0b\x32\x11.proto.RoyaltyFeeH\x00\x12\x32\n\x18\x66\x65\x65_collector_account_id\x18\x03 \x01(\x0b\x32\x10.proto.AccountID\x12!\n\x19\x61ll_collectors_are_exempt\x18\x05 \x01(\x08\x42\x05\n\x03\x66\x65\x65\"\xaf\x01\n\x11\x41ssessedCustomFee\x12\x0e\n\x06\x61mount\x18\x01 \x01(\x03\x12 \n\x08token_id\x18\x02 \x01(\x0b\x32\x0e.proto.TokenID\x12\x32\n\x18\x66\x65\x65_collector_account_id\x18\x03 \x01(\x0b\x32\x10.proto.AccountID\x12\x34\n\x1a\x65\x66\x66\x65\x63tive_payer_account_id\x18\x04 \x03(\x0b\x32\x10.proto.AccountIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'custom_fees_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_FRACTIONALFEE']._serialized_start=48 - _globals['_FRACTIONALFEE']._serialized_end=181 - _globals['_FIXEDFEE']._serialized_start=183 - _globals['_FIXEDFEE']._serialized_end=256 - _globals['_ROYALTYFEE']._serialized_start=258 - _globals['_ROYALTYFEE']._serialized_end=359 - _globals['_CUSTOMFEE']._serialized_start=362 - _globals['_CUSTOMFEE']._serialized_end=595 - _globals['_ASSESSEDCUSTOMFEE']._serialized_start=598 - _globals['_ASSESSEDCUSTOMFEE']._serialized_end=773 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/custom_fees_pb2_grpc.py b/src/proto/custom_fees_pb2_grpc.py deleted file mode 100644 index 5b2f5ae..0000000 --- a/src/proto/custom_fees_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in custom_fees_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/duration_pb2.py b/src/proto/duration_pb2.py deleted file mode 100644 index 4bffc2e..0000000 --- a/src/proto/duration_pb2.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: duration.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'duration.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0e\x64uration.proto\x12\x05proto\"\x1b\n\x08\x44uration\x12\x0f\n\x07seconds\x18\x01 \x01(\x03\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'duration_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_DURATION']._serialized_start=25 - _globals['_DURATION']._serialized_end=52 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/duration_pb2_grpc.py b/src/proto/duration_pb2_grpc.py deleted file mode 100644 index 1fcfc6b..0000000 --- a/src/proto/duration_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in duration_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/ethereum_transaction_pb2.py b/src/proto/ethereum_transaction_pb2.py deleted file mode 100644 index 294f053..0000000 --- a/src/proto/ethereum_transaction_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: ethereum_transaction.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'ethereum_transaction.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x65thereum_transaction.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"m\n\x17\x45thereumTransactionBody\x12\x15\n\rethereum_data\x18\x01 \x01(\x0c\x12 \n\tcall_data\x18\x02 \x01(\x0b\x32\r.proto.FileID\x12\x19\n\x11max_gas_allowance\x18\x03 \x01(\x03\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ethereum_transaction_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_ETHEREUMTRANSACTIONBODY']._serialized_start=56 - _globals['_ETHEREUMTRANSACTIONBODY']._serialized_end=165 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/ethereum_transaction_pb2_grpc.py b/src/proto/ethereum_transaction_pb2_grpc.py deleted file mode 100644 index 693cd3e..0000000 --- a/src/proto/ethereum_transaction_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in ethereum_transaction_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/exchange_rate_pb2.py b/src/proto/exchange_rate_pb2.py deleted file mode 100644 index b33b6ff..0000000 --- a/src/proto/exchange_rate_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: exchange_rate.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'exchange_rate.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import timestamp_pb2 as timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x65xchange_rate.proto\x12\x05proto\x1a\x0ftimestamp.proto\"e\n\x0c\x45xchangeRate\x12\x11\n\thbarEquiv\x18\x01 \x01(\x05\x12\x11\n\tcentEquiv\x18\x02 \x01(\x05\x12/\n\x0e\x65xpirationTime\x18\x03 \x01(\x0b\x32\x17.proto.TimestampSeconds\"b\n\x0f\x45xchangeRateSet\x12(\n\x0b\x63urrentRate\x18\x01 \x01(\x0b\x32\x13.proto.ExchangeRate\x12%\n\x08nextRate\x18\x02 \x01(\x0b\x32\x13.proto.ExchangeRateB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'exchange_rate_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_EXCHANGERATE']._serialized_start=47 - _globals['_EXCHANGERATE']._serialized_end=148 - _globals['_EXCHANGERATESET']._serialized_start=150 - _globals['_EXCHANGERATESET']._serialized_end=248 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/exchange_rate_pb2_grpc.py b/src/proto/exchange_rate_pb2_grpc.py deleted file mode 100644 index d90e73a..0000000 --- a/src/proto/exchange_rate_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in exchange_rate_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/file_append_pb2.py b/src/proto/file_append_pb2.py deleted file mode 100644 index a8d3b9d..0000000 --- a/src/proto/file_append_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: file_append.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'file_append.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x66ile_append.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"L\n\x19\x46ileAppendTransactionBody\x12\x1d\n\x06\x66ileID\x18\x02 \x01(\x0b\x32\r.proto.FileID\x12\x10\n\x08\x63ontents\x18\x04 \x01(\x0c\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'file_append_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_FILEAPPENDTRANSACTIONBODY']._serialized_start=47 - _globals['_FILEAPPENDTRANSACTIONBODY']._serialized_end=123 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/file_append_pb2_grpc.py b/src/proto/file_append_pb2_grpc.py deleted file mode 100644 index 4ff74b5..0000000 --- a/src/proto/file_append_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in file_append_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/file_create_pb2.py b/src/proto/file_create_pb2.py deleted file mode 100644 index ed68e94..0000000 --- a/src/proto/file_create_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: file_create.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'file_create.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import timestamp_pb2 as timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x66ile_create.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x0ftimestamp.proto\"\xeb\x01\n\x19\x46ileCreateTransactionBody\x12(\n\x0e\x65xpirationTime\x18\x02 \x01(\x0b\x32\x10.proto.Timestamp\x12\x1c\n\x04keys\x18\x03 \x01(\x0b\x32\x0e.proto.KeyList\x12\x10\n\x08\x63ontents\x18\x04 \x01(\x0c\x12\x1f\n\x07shardID\x18\x05 \x01(\x0b\x32\x0e.proto.ShardID\x12\x1f\n\x07realmID\x18\x06 \x01(\x0b\x32\x0e.proto.RealmID\x12$\n\x10newRealmAdminKey\x18\x07 \x01(\x0b\x32\n.proto.Key\x12\x0c\n\x04memo\x18\x08 \x01(\tB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'file_create_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_FILECREATETRANSACTIONBODY']._serialized_start=65 - _globals['_FILECREATETRANSACTIONBODY']._serialized_end=300 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/file_create_pb2_grpc.py b/src/proto/file_create_pb2_grpc.py deleted file mode 100644 index 509df65..0000000 --- a/src/proto/file_create_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in file_create_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/file_delete_pb2.py b/src/proto/file_delete_pb2.py deleted file mode 100644 index 4ed5de0..0000000 --- a/src/proto/file_delete_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: file_delete.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'file_delete.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x66ile_delete.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\":\n\x19\x46ileDeleteTransactionBody\x12\x1d\n\x06\x66ileID\x18\x02 \x01(\x0b\x32\r.proto.FileIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'file_delete_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_FILEDELETETRANSACTIONBODY']._serialized_start=47 - _globals['_FILEDELETETRANSACTIONBODY']._serialized_end=105 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/file_delete_pb2_grpc.py b/src/proto/file_delete_pb2_grpc.py deleted file mode 100644 index b8d2e0b..0000000 --- a/src/proto/file_delete_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in file_delete_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/file_get_contents_pb2.py b/src/proto/file_get_contents_pb2.py deleted file mode 100644 index fcb32e3..0000000 --- a/src/proto/file_get_contents_pb2.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: file_get_contents.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'file_get_contents.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x66ile_get_contents.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\"Y\n\x14\x46ileGetContentsQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12\x1d\n\x06\x66ileID\x18\x02 \x01(\x0b\x32\r.proto.FileID\"\xc4\x01\n\x17\x46ileGetContentsResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12\x41\n\x0c\x66ileContents\x18\x02 \x01(\x0b\x32+.proto.FileGetContentsResponse.FileContents\x1a?\n\x0c\x46ileContents\x12\x1d\n\x06\x66ileID\x18\x01 \x01(\x0b\x32\r.proto.FileID\x12\x10\n\x08\x63ontents\x18\x02 \x01(\x0c\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'file_get_contents_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_FILEGETCONTENTSQUERY']._serialized_start=96 - _globals['_FILEGETCONTENTSQUERY']._serialized_end=185 - _globals['_FILEGETCONTENTSRESPONSE']._serialized_start=188 - _globals['_FILEGETCONTENTSRESPONSE']._serialized_end=384 - _globals['_FILEGETCONTENTSRESPONSE_FILECONTENTS']._serialized_start=321 - _globals['_FILEGETCONTENTSRESPONSE_FILECONTENTS']._serialized_end=384 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/file_get_contents_pb2_grpc.py b/src/proto/file_get_contents_pb2_grpc.py deleted file mode 100644 index 775edec..0000000 --- a/src/proto/file_get_contents_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in file_get_contents_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/file_get_info_pb2.py b/src/proto/file_get_info_pb2.py deleted file mode 100644 index 6c7a183..0000000 --- a/src/proto/file_get_info_pb2.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: file_get_info.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'file_get_info.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import timestamp_pb2 as timestamp__pb2 -from . import basic_types_pb2 as basic__types__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x66ile_get_info.proto\x12\x05proto\x1a\x0ftimestamp.proto\x1a\x11\x62\x61sic_types.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\"U\n\x10\x46ileGetInfoQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12\x1d\n\x06\x66ileID\x18\x02 \x01(\x0b\x32\r.proto.FileID\"\xa7\x02\n\x13\x46ileGetInfoResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12\x35\n\x08\x66ileInfo\x18\x02 \x01(\x0b\x32#.proto.FileGetInfoResponse.FileInfo\x1a\xb1\x01\n\x08\x46ileInfo\x12\x1d\n\x06\x66ileID\x18\x01 \x01(\x0b\x32\r.proto.FileID\x12\x0c\n\x04size\x18\x02 \x01(\x03\x12(\n\x0e\x65xpirationTime\x18\x03 \x01(\x0b\x32\x10.proto.Timestamp\x12\x0f\n\x07\x64\x65leted\x18\x04 \x01(\x08\x12\x1c\n\x04keys\x18\x05 \x01(\x0b\x32\x0e.proto.KeyList\x12\x0c\n\x04memo\x18\x06 \x01(\t\x12\x11\n\tledger_id\x18\x07 \x01(\x0c\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'file_get_info_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_FILEGETINFOQUERY']._serialized_start=109 - _globals['_FILEGETINFOQUERY']._serialized_end=194 - _globals['_FILEGETINFORESPONSE']._serialized_start=197 - _globals['_FILEGETINFORESPONSE']._serialized_end=492 - _globals['_FILEGETINFORESPONSE_FILEINFO']._serialized_start=315 - _globals['_FILEGETINFORESPONSE_FILEINFO']._serialized_end=492 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/file_get_info_pb2_grpc.py b/src/proto/file_get_info_pb2_grpc.py deleted file mode 100644 index 11e4342..0000000 --- a/src/proto/file_get_info_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in file_get_info_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/file_service_pb2.py b/src/proto/file_service_pb2.py deleted file mode 100644 index 964c959..0000000 --- a/src/proto/file_service_pb2.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: file_service.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'file_service.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import query_pb2 as query__pb2 -from . import response_pb2 as response__pb2 -from . import transaction_response_pb2 as transaction__response__pb2 -from . import transaction_pb2 as transaction__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12\x66ile_service.proto\x12\x05proto\x1a\x0bquery.proto\x1a\x0eresponse.proto\x1a\x1atransaction_response.proto\x1a\x11transaction.proto2\xe9\x03\n\x0b\x46ileService\x12<\n\ncreateFile\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12<\n\nupdateFile\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12<\n\ndeleteFile\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12?\n\rappendContent\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12/\n\x0egetFileContent\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12,\n\x0bgetFileInfo\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12>\n\x0csystemDelete\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12@\n\x0esystemUndelete\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponseB(\n&com.hederahashgraph.service.proto.javab\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'file_service_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n&com.hederahashgraph.service.proto.java' - _globals['_FILESERVICE']._serialized_start=106 - _globals['_FILESERVICE']._serialized_end=595 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/file_service_pb2_grpc.py b/src/proto/file_service_pb2_grpc.py deleted file mode 100644 index ce1e3d3..0000000 --- a/src/proto/file_service_pb2_grpc.py +++ /dev/null @@ -1,423 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - -from . import query_pb2 as query__pb2 -from . import response_pb2 as response__pb2 -from . import transaction_pb2 as transaction__pb2 -from . import transaction_response_pb2 as transaction__response__pb2 - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in file_service_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) - - -class FileServiceStub(object): - """* - Transactions and queries for the file service. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.createFile = channel.unary_unary( - '/proto.FileService/createFile', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.updateFile = channel.unary_unary( - '/proto.FileService/updateFile', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.deleteFile = channel.unary_unary( - '/proto.FileService/deleteFile', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.appendContent = channel.unary_unary( - '/proto.FileService/appendContent', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.getFileContent = channel.unary_unary( - '/proto.FileService/getFileContent', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.getFileInfo = channel.unary_unary( - '/proto.FileService/getFileInfo', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.systemDelete = channel.unary_unary( - '/proto.FileService/systemDelete', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.systemUndelete = channel.unary_unary( - '/proto.FileService/systemUndelete', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - - -class FileServiceServicer(object): - """* - Transactions and queries for the file service. - """ - - def createFile(self, request, context): - """* - Creates a file - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def updateFile(self, request, context): - """* - Updates a file - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def deleteFile(self, request, context): - """* - Deletes a file - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def appendContent(self, request, context): - """* - Appends to a file - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getFileContent(self, request, context): - """* - Retrieves the file contents - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getFileInfo(self, request, context): - """* - Retrieves the file information - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def systemDelete(self, request, context): - """* - Deletes a file if the submitting account has network admin privileges - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def systemUndelete(self, request, context): - """* - Undeletes a file if the submitting account has network admin privileges - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_FileServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'createFile': grpc.unary_unary_rpc_method_handler( - servicer.createFile, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'updateFile': grpc.unary_unary_rpc_method_handler( - servicer.updateFile, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'deleteFile': grpc.unary_unary_rpc_method_handler( - servicer.deleteFile, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'appendContent': grpc.unary_unary_rpc_method_handler( - servicer.appendContent, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'getFileContent': grpc.unary_unary_rpc_method_handler( - servicer.getFileContent, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'getFileInfo': grpc.unary_unary_rpc_method_handler( - servicer.getFileInfo, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'systemDelete': grpc.unary_unary_rpc_method_handler( - servicer.systemDelete, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'systemUndelete': grpc.unary_unary_rpc_method_handler( - servicer.systemUndelete, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'proto.FileService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('proto.FileService', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class FileService(object): - """* - Transactions and queries for the file service. - """ - - @staticmethod - def createFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.FileService/createFile', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def updateFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.FileService/updateFile', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def deleteFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.FileService/deleteFile', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def appendContent(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.FileService/appendContent', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def getFileContent(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.FileService/getFileContent', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def getFileInfo(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.FileService/getFileInfo', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def systemDelete(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.FileService/systemDelete', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def systemUndelete(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.FileService/systemUndelete', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/src/proto/file_update_pb2.py b/src/proto/file_update_pb2.py deleted file mode 100644 index 336a91a..0000000 --- a/src/proto/file_update_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: file_update.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'file_update.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import timestamp_pb2 as timestamp__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x66ile_update.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x0ftimestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xc0\x01\n\x19\x46ileUpdateTransactionBody\x12\x1d\n\x06\x66ileID\x18\x01 \x01(\x0b\x32\r.proto.FileID\x12(\n\x0e\x65xpirationTime\x18\x02 \x01(\x0b\x32\x10.proto.Timestamp\x12\x1c\n\x04keys\x18\x03 \x01(\x0b\x32\x0e.proto.KeyList\x12\x10\n\x08\x63ontents\x18\x04 \x01(\x0c\x12*\n\x04memo\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'file_update_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_FILEUPDATETRANSACTIONBODY']._serialized_start=97 - _globals['_FILEUPDATETRANSACTIONBODY']._serialized_end=289 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/file_update_pb2_grpc.py b/src/proto/file_update_pb2_grpc.py deleted file mode 100644 index 3071530..0000000 --- a/src/proto/file_update_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in file_update_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/freeze_pb2.py b/src/proto/freeze_pb2.py deleted file mode 100644 index 2ec91c0..0000000 --- a/src/proto/freeze_pb2.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: freeze.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'freeze.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import timestamp_pb2 as timestamp__pb2 -from . import basic_types_pb2 as basic__types__pb2 -from . import freeze_type_pb2 as freeze__type__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0c\x66reeze.proto\x12\x05proto\x1a\x0ftimestamp.proto\x1a\x11\x62\x61sic_types.proto\x1a\x11\x66reeze_type.proto\"\xf2\x01\n\x15\x46reezeTransactionBody\x12\x15\n\tstartHour\x18\x01 \x01(\x05\x42\x02\x18\x01\x12\x14\n\x08startMin\x18\x02 \x01(\x05\x42\x02\x18\x01\x12\x13\n\x07\x65ndHour\x18\x03 \x01(\x05\x42\x02\x18\x01\x12\x12\n\x06\x65ndMin\x18\x04 \x01(\x05\x42\x02\x18\x01\x12\"\n\x0bupdate_file\x18\x05 \x01(\x0b\x32\r.proto.FileID\x12\x11\n\tfile_hash\x18\x06 \x01(\x0c\x12$\n\nstart_time\x18\x07 \x01(\x0b\x32\x10.proto.Timestamp\x12&\n\x0b\x66reeze_type\x18\x08 \x01(\x0e\x32\x11.proto.FreezeTypeB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'freeze_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_FREEZETRANSACTIONBODY'].fields_by_name['startHour']._loaded_options = None - _globals['_FREEZETRANSACTIONBODY'].fields_by_name['startHour']._serialized_options = b'\030\001' - _globals['_FREEZETRANSACTIONBODY'].fields_by_name['startMin']._loaded_options = None - _globals['_FREEZETRANSACTIONBODY'].fields_by_name['startMin']._serialized_options = b'\030\001' - _globals['_FREEZETRANSACTIONBODY'].fields_by_name['endHour']._loaded_options = None - _globals['_FREEZETRANSACTIONBODY'].fields_by_name['endHour']._serialized_options = b'\030\001' - _globals['_FREEZETRANSACTIONBODY'].fields_by_name['endMin']._loaded_options = None - _globals['_FREEZETRANSACTIONBODY'].fields_by_name['endMin']._serialized_options = b'\030\001' - _globals['_FREEZETRANSACTIONBODY']._serialized_start=79 - _globals['_FREEZETRANSACTIONBODY']._serialized_end=321 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/freeze_pb2_grpc.py b/src/proto/freeze_pb2_grpc.py deleted file mode 100644 index 281d3a3..0000000 --- a/src/proto/freeze_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in freeze_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/freeze_service_pb2.py b/src/proto/freeze_service_pb2.py deleted file mode 100644 index 36a71fa..0000000 --- a/src/proto/freeze_service_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: freeze_service.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'freeze_service.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import transaction_response_pb2 as transaction__response__pb2 -from . import transaction_pb2 as transaction__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14\x66reeze_service.proto\x12\x05proto\x1a\x1atransaction_response.proto\x1a\x11transaction.proto2I\n\rFreezeService\x12\x38\n\x06\x66reeze\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponseB(\n&com.hederahashgraph.service.proto.javab\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'freeze_service_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n&com.hederahashgraph.service.proto.java' - _globals['_FREEZESERVICE']._serialized_start=78 - _globals['_FREEZESERVICE']._serialized_end=151 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/freeze_service_pb2_grpc.py b/src/proto/freeze_service_pb2_grpc.py deleted file mode 100644 index bfb9f86..0000000 --- a/src/proto/freeze_service_pb2_grpc.py +++ /dev/null @@ -1,107 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - -from . import transaction_pb2 as transaction__pb2 -from . import transaction_response_pb2 as transaction__response__pb2 - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in freeze_service_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) - - -class FreezeServiceStub(object): - """* - The request and responses for freeze service. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.freeze = channel.unary_unary( - '/proto.FreezeService/freeze', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - - -class FreezeServiceServicer(object): - """* - The request and responses for freeze service. - """ - - def freeze(self, request, context): - """* - Freezes the nodes by submitting the transaction. The grpc server returns the - TransactionResponse - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_FreezeServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'freeze': grpc.unary_unary_rpc_method_handler( - servicer.freeze, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'proto.FreezeService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('proto.FreezeService', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class FreezeService(object): - """* - The request and responses for freeze service. - """ - - @staticmethod - def freeze(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.FreezeService/freeze', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/src/proto/freeze_type_pb2.py b/src/proto/freeze_type_pb2.py deleted file mode 100644 index 7d99093..0000000 --- a/src/proto/freeze_type_pb2.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: freeze_type.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'freeze_type.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x66reeze_type.proto\x12\x05proto*\x88\x01\n\nFreezeType\x12\x17\n\x13UNKNOWN_FREEZE_TYPE\x10\x00\x12\x0f\n\x0b\x46REEZE_ONLY\x10\x01\x12\x13\n\x0fPREPARE_UPGRADE\x10\x02\x12\x12\n\x0e\x46REEZE_UPGRADE\x10\x03\x12\x10\n\x0c\x46REEZE_ABORT\x10\x04\x12\x15\n\x11TELEMETRY_UPGRADE\x10\x05\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'freeze_type_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_FREEZETYPE']._serialized_start=29 - _globals['_FREEZETYPE']._serialized_end=165 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/freeze_type_pb2_grpc.py b/src/proto/freeze_type_pb2_grpc.py deleted file mode 100644 index e96a716..0000000 --- a/src/proto/freeze_type_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in freeze_type_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/get_account_details_pb2.py b/src/proto/get_account_details_pb2.py deleted file mode 100644 index 98a6bd9..0000000 --- a/src/proto/get_account_details_pb2.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: get_account_details.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'get_account_details.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import timestamp_pb2 as timestamp__pb2 -from . import duration_pb2 as duration__pb2 -from . import basic_types_pb2 as basic__types__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 -from . import crypto_add_live_hash_pb2 as crypto__add__live__hash__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19get_account_details.proto\x12\x05proto\x1a\x0ftimestamp.proto\x1a\x0e\x64uration.proto\x1a\x11\x62\x61sic_types.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\x1a\x1a\x63rypto_add_live_hash.proto\x1a\x1egoogle/protobuf/wrappers.proto\"b\n\x16GetAccountDetailsQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12$\n\naccount_id\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\"\xbe\x06\n\x19GetAccountDetailsResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12H\n\x0f\x61\x63\x63ount_details\x18\x02 \x01(\x0b\x32/.proto.GetAccountDetailsResponse.AccountDetails\x1a\xaf\x05\n\x0e\x41\x63\x63ountDetails\x12$\n\naccount_id\x18\x01 \x01(\x0b\x32\x10.proto.AccountID\x12\x1b\n\x13\x63ontract_account_id\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x65leted\x18\x03 \x01(\x08\x12.\n\x10proxy_account_id\x18\x04 \x01(\x0b\x32\x10.proto.AccountIDB\x02\x18\x01\x12\x16\n\x0eproxy_received\x18\x05 \x01(\x03\x12\x17\n\x03key\x18\x06 \x01(\x0b\x32\n.proto.Key\x12\x0f\n\x07\x62\x61lance\x18\x07 \x01(\x04\x12\x1d\n\x15receiver_sig_required\x18\x08 \x01(\x08\x12)\n\x0f\x65xpiration_time\x18\t \x01(\x0b\x32\x10.proto.Timestamp\x12*\n\x11\x61uto_renew_period\x18\n \x01(\x0b\x32\x0f.proto.Duration\x12\x35\n\x13token_relationships\x18\x0b \x03(\x0b\x32\x18.proto.TokenRelationship\x12\x0c\n\x04memo\x18\x0c \x01(\t\x12\x12\n\nowned_nfts\x18\r \x01(\x03\x12(\n max_automatic_token_associations\x18\x0e \x01(\x05\x12\r\n\x05\x61lias\x18\x0f \x01(\x0c\x12\x11\n\tledger_id\x18\x10 \x01(\x0c\x12@\n\x19granted_crypto_allowances\x18\x11 \x03(\x0b\x32\x1d.proto.GrantedCryptoAllowance\x12:\n\x16granted_nft_allowances\x18\x12 \x03(\x0b\x32\x1a.proto.GrantedNftAllowance\x12>\n\x18granted_token_allowances\x18\x13 \x03(\x0b\x32\x1c.proto.GrantedTokenAllowance\"K\n\x16GrantedCryptoAllowance\x12!\n\x07spender\x18\x01 \x01(\x0b\x32\x10.proto.AccountID\x12\x0e\n\x06\x61mount\x18\x02 \x01(\x03\"Z\n\x13GrantedNftAllowance\x12 \n\x08token_id\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12!\n\x07spender\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\"l\n\x15GrantedTokenAllowance\x12 \n\x08token_id\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12!\n\x07spender\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12\x0e\n\x06\x61mount\x18\x03 \x01(\x03\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'get_account_details_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_GETACCOUNTDETAILSRESPONSE_ACCOUNTDETAILS'].fields_by_name['proxy_account_id']._loaded_options = None - _globals['_GETACCOUNTDETAILSRESPONSE_ACCOUNTDETAILS'].fields_by_name['proxy_account_id']._serialized_options = b'\030\001' - _globals['_GETACCOUNTDETAILSQUERY']._serialized_start=191 - _globals['_GETACCOUNTDETAILSQUERY']._serialized_end=289 - _globals['_GETACCOUNTDETAILSRESPONSE']._serialized_start=292 - _globals['_GETACCOUNTDETAILSRESPONSE']._serialized_end=1122 - _globals['_GETACCOUNTDETAILSRESPONSE_ACCOUNTDETAILS']._serialized_start=435 - _globals['_GETACCOUNTDETAILSRESPONSE_ACCOUNTDETAILS']._serialized_end=1122 - _globals['_GRANTEDCRYPTOALLOWANCE']._serialized_start=1124 - _globals['_GRANTEDCRYPTOALLOWANCE']._serialized_end=1199 - _globals['_GRANTEDNFTALLOWANCE']._serialized_start=1201 - _globals['_GRANTEDNFTALLOWANCE']._serialized_end=1291 - _globals['_GRANTEDTOKENALLOWANCE']._serialized_start=1293 - _globals['_GRANTEDTOKENALLOWANCE']._serialized_end=1401 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/get_account_details_pb2_grpc.py b/src/proto/get_account_details_pb2_grpc.py deleted file mode 100644 index 451030f..0000000 --- a/src/proto/get_account_details_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in get_account_details_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/get_by_key_pb2.py b/src/proto/get_by_key_pb2.py deleted file mode 100644 index be0ba37..0000000 --- a/src/proto/get_by_key_pb2.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: get_by_key.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'get_by_key.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 -from . import crypto_add_live_hash_pb2 as crypto__add__live__hash__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10get_by_key.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\x1a\x1a\x63rypto_add_live_hash.proto\"L\n\rGetByKeyQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12\x17\n\x03key\x18\x02 \x01(\x0b\x32\n.proto.Key\"\xaa\x01\n\x08\x45ntityID\x12%\n\taccountID\x18\x01 \x01(\x0b\x32\x10.proto.AccountIDH\x00\x12#\n\x08liveHash\x18\x02 \x01(\x0b\x32\x0f.proto.LiveHashH\x00\x12\x1f\n\x06\x66ileID\x18\x03 \x01(\x0b\x32\r.proto.FileIDH\x00\x12\'\n\ncontractID\x18\x04 \x01(\x0b\x32\x11.proto.ContractIDH\x00\x42\x08\n\x06\x65ntity\"\\\n\x10GetByKeyResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12!\n\x08\x65ntities\x18\x02 \x03(\x0b\x32\x0f.proto.EntityIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'get_by_key_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_GETBYKEYQUERY']._serialized_start=117 - _globals['_GETBYKEYQUERY']._serialized_end=193 - _globals['_ENTITYID']._serialized_start=196 - _globals['_ENTITYID']._serialized_end=366 - _globals['_GETBYKEYRESPONSE']._serialized_start=368 - _globals['_GETBYKEYRESPONSE']._serialized_end=460 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/get_by_key_pb2_grpc.py b/src/proto/get_by_key_pb2_grpc.py deleted file mode 100644 index 9717693..0000000 --- a/src/proto/get_by_key_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in get_by_key_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/get_by_solidity_id_pb2.py b/src/proto/get_by_solidity_id_pb2.py deleted file mode 100644 index 66e47d3..0000000 --- a/src/proto/get_by_solidity_id_pb2.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: get_by_solidity_id.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'get_by_solidity_id.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18get_by_solidity_id.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\"N\n\x14GetBySolidityIDQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12\x12\n\nsolidityID\x18\x02 \x01(\t\"\xab\x01\n\x17GetBySolidityIDResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12#\n\taccountID\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12\x1d\n\x06\x66ileID\x18\x03 \x01(\x0b\x32\r.proto.FileID\x12%\n\ncontractID\x18\x04 \x01(\x0b\x32\x11.proto.ContractIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'get_by_solidity_id_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_GETBYSOLIDITYIDQUERY']._serialized_start=97 - _globals['_GETBYSOLIDITYIDQUERY']._serialized_end=175 - _globals['_GETBYSOLIDITYIDRESPONSE']._serialized_start=178 - _globals['_GETBYSOLIDITYIDRESPONSE']._serialized_end=349 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/get_by_solidity_id_pb2_grpc.py b/src/proto/get_by_solidity_id_pb2_grpc.py deleted file mode 100644 index bc7a74e..0000000 --- a/src/proto/get_by_solidity_id_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in get_by_solidity_id_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/network_get_execution_time_pb2.py b/src/proto/network_get_execution_time_pb2.py deleted file mode 100644 index 0eb0bda..0000000 --- a/src/proto/network_get_execution_time_pb2.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: network_get_execution_time.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'network_get_execution_time.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n network_get_execution_time.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\"q\n\x1cNetworkGetExecutionTimeQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12-\n\x0ftransaction_ids\x18\x02 \x03(\x0b\x32\x14.proto.TransactionID\"a\n\x1fNetworkGetExecutionTimeResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12\x17\n\x0f\x65xecution_times\x18\x02 \x03(\x04\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'network_get_execution_time_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_NETWORKGETEXECUTIONTIMEQUERY']._serialized_start=105 - _globals['_NETWORKGETEXECUTIONTIMEQUERY']._serialized_end=218 - _globals['_NETWORKGETEXECUTIONTIMERESPONSE']._serialized_start=220 - _globals['_NETWORKGETEXECUTIONTIMERESPONSE']._serialized_end=317 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/network_get_execution_time_pb2_grpc.py b/src/proto/network_get_execution_time_pb2_grpc.py deleted file mode 100644 index eccbc9a..0000000 --- a/src/proto/network_get_execution_time_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in network_get_execution_time_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/network_get_version_info_pb2.py b/src/proto/network_get_version_info_pb2.py deleted file mode 100644 index 65b0392..0000000 --- a/src/proto/network_get_version_info_pb2.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: network_get_version_info.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'network_get_version_info.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1enetwork_get_version_info.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\"@\n\x1aNetworkGetVersionInfoQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\"\xaf\x01\n\x1dNetworkGetVersionInfoResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12\x30\n\x10hapiProtoVersion\x18\x02 \x01(\x0b\x32\x16.proto.SemanticVersion\x12\x35\n\x15hederaServicesVersion\x18\x03 \x01(\x0b\x32\x16.proto.SemanticVersionB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'network_get_version_info_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_NETWORKGETVERSIONINFOQUERY']._serialized_start=103 - _globals['_NETWORKGETVERSIONINFOQUERY']._serialized_end=167 - _globals['_NETWORKGETVERSIONINFORESPONSE']._serialized_start=170 - _globals['_NETWORKGETVERSIONINFORESPONSE']._serialized_end=345 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/network_get_version_info_pb2_grpc.py b/src/proto/network_get_version_info_pb2_grpc.py deleted file mode 100644 index 6b00eca..0000000 --- a/src/proto/network_get_version_info_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in network_get_version_info_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/network_service_pb2.py b/src/proto/network_service_pb2.py deleted file mode 100644 index 7e42ce3..0000000 --- a/src/proto/network_service_pb2.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: network_service.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'network_service.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import query_pb2 as query__pb2 -from . import response_pb2 as response__pb2 -from . import transaction_response_pb2 as transaction__response__pb2 -from . import transaction_pb2 as transaction__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15network_service.proto\x12\x05proto\x1a\x0bquery.proto\x1a\x0eresponse.proto\x1a\x1atransaction_response.proto\x1a\x11transaction.proto2\xeb\x01\n\x0eNetworkService\x12/\n\x0egetVersionInfo\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12\x31\n\x10getExecutionTime\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12\x41\n\x0funcheckedSubmit\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12\x32\n\x11getAccountDetails\x12\x0c.proto.Query\x1a\x0f.proto.ResponseB(\n&com.hederahashgraph.service.proto.javab\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'network_service_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n&com.hederahashgraph.service.proto.java' - _globals['_NETWORKSERVICE']._serialized_start=109 - _globals['_NETWORKSERVICE']._serialized_end=344 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/network_service_pb2_grpc.py b/src/proto/network_service_pb2_grpc.py deleted file mode 100644 index 3669dd9..0000000 --- a/src/proto/network_service_pb2_grpc.py +++ /dev/null @@ -1,250 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - -from . import query_pb2 as query__pb2 -from . import response_pb2 as response__pb2 -from . import transaction_pb2 as transaction__pb2 -from . import transaction_response_pb2 as transaction__response__pb2 - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in network_service_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) - - -class NetworkServiceStub(object): - """* - The requests and responses for different network services. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.getVersionInfo = channel.unary_unary( - '/proto.NetworkService/getVersionInfo', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.getExecutionTime = channel.unary_unary( - '/proto.NetworkService/getExecutionTime', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.uncheckedSubmit = channel.unary_unary( - '/proto.NetworkService/uncheckedSubmit', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.getAccountDetails = channel.unary_unary( - '/proto.NetworkService/getAccountDetails', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - - -class NetworkServiceServicer(object): - """* - The requests and responses for different network services. - """ - - def getVersionInfo(self, request, context): - """* - Retrieves the active versions of Hedera Services and HAPI proto - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getExecutionTime(self, request, context): - """* - Retrieves the time in nanoseconds spent in handleTransaction for one or more - TransactionIDs (assuming they have reached consensus "recently", since only a limited - number of execution times are kept in-memory, depending on the value of the node-local - property stats.executionTimesToTrack). - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def uncheckedSubmit(self, request, context): - """* - Submits a "wrapped" transaction to the network, skipping its standard prechecks. (Note that - the "wrapper" UncheckedSubmit transaction is still subject to normal prechecks, - including an authorization requirement that its payer be either the treasury or system admin - account.) - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getAccountDetails(self, request, context): - """* - Get all the information about an account, including balance and allowances. This does not get the list of - account records. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_NetworkServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'getVersionInfo': grpc.unary_unary_rpc_method_handler( - servicer.getVersionInfo, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'getExecutionTime': grpc.unary_unary_rpc_method_handler( - servicer.getExecutionTime, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'uncheckedSubmit': grpc.unary_unary_rpc_method_handler( - servicer.uncheckedSubmit, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'getAccountDetails': grpc.unary_unary_rpc_method_handler( - servicer.getAccountDetails, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'proto.NetworkService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('proto.NetworkService', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class NetworkService(object): - """* - The requests and responses for different network services. - """ - - @staticmethod - def getVersionInfo(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.NetworkService/getVersionInfo', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def getExecutionTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.NetworkService/getExecutionTime', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def uncheckedSubmit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.NetworkService/uncheckedSubmit', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def getAccountDetails(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.NetworkService/getAccountDetails', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/src/proto/node_create_pb2.py b/src/proto/node_create_pb2.py deleted file mode 100644 index 31e3cf7..0000000 --- a/src/proto/node_create_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: node_create.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'node_create.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11node_create.proto\x12 com.hedera.hapi.node.addressbook\x1a\x11\x62\x61sic_types.proto\"\x96\x02\n\x19NodeCreateTransactionBody\x12$\n\naccount_id\x18\x01 \x01(\x0b\x32\x10.proto.AccountID\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12/\n\x0fgossip_endpoint\x18\x03 \x03(\x0b\x32\x16.proto.ServiceEndpoint\x12\x30\n\x10service_endpoint\x18\x04 \x03(\x0b\x32\x16.proto.ServiceEndpoint\x12\x1d\n\x15gossip_ca_certificate\x18\x05 \x01(\x0c\x12\x1d\n\x15grpc_certificate_hash\x18\x06 \x01(\x0c\x12\x1d\n\tadmin_key\x18\x07 \x01(\x0b\x32\n.proto.KeyB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'node_create_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_NODECREATETRANSACTIONBODY']._serialized_start=75 - _globals['_NODECREATETRANSACTIONBODY']._serialized_end=353 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/node_create_pb2_grpc.py b/src/proto/node_create_pb2_grpc.py deleted file mode 100644 index d9b8a37..0000000 --- a/src/proto/node_create_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in node_create_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/node_delete_pb2.py b/src/proto/node_delete_pb2.py deleted file mode 100644 index 11a4b97..0000000 --- a/src/proto/node_delete_pb2.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: node_delete.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'node_delete.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11node_delete.proto\x12 com.hedera.hapi.node.addressbook\",\n\x19NodeDeleteTransactionBody\x12\x0f\n\x07node_id\x18\x01 \x01(\x04\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'node_delete_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_NODEDELETETRANSACTIONBODY']._serialized_start=55 - _globals['_NODEDELETETRANSACTIONBODY']._serialized_end=99 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/node_delete_pb2_grpc.py b/src/proto/node_delete_pb2_grpc.py deleted file mode 100644 index 637a909..0000000 --- a/src/proto/node_delete_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in node_delete_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/node_stake_update_pb2.py b/src/proto/node_stake_update_pb2.py deleted file mode 100644 index 317c4f4..0000000 --- a/src/proto/node_stake_update_pb2.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: node_stake_update.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'node_stake_update.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import timestamp_pb2 as timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17node_stake_update.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x0ftimestamp.proto\"\xa9\x04\n\x1eNodeStakeUpdateTransactionBody\x12/\n\x15\x65nd_of_staking_period\x18\x01 \x01(\x0b\x32\x10.proto.Timestamp\x12$\n\nnode_stake\x18\x02 \x03(\x0b\x32\x10.proto.NodeStake\x12(\n max_staking_reward_rate_per_hbar\x18\x03 \x01(\x03\x12\x31\n\x18node_reward_fee_fraction\x18\x04 \x01(\x0b\x32\x0f.proto.Fraction\x12\x1e\n\x16staking_periods_stored\x18\x05 \x01(\x03\x12\x16\n\x0estaking_period\x18\x06 \x01(\x03\x12\x34\n\x1bstaking_reward_fee_fraction\x18\x07 \x01(\x0b\x32\x0f.proto.Fraction\x12\x1f\n\x17staking_start_threshold\x18\x08 \x01(\x03\x12\x1f\n\x13staking_reward_rate\x18\t \x01(\x03\x42\x02\x18\x01\x12 \n\x18reserved_staking_rewards\x18\n \x01(\x03\x12)\n!unreserved_staking_reward_balance\x18\x0b \x01(\x03\x12 \n\x18reward_balance_threshold\x18\x0c \x01(\x03\x12\x1a\n\x12max_stake_rewarded\x18\r \x01(\x03\x12\x18\n\x10max_total_reward\x18\x0e \x01(\x03\"\x9a\x01\n\tNodeStake\x12\x11\n\tmax_stake\x18\x01 \x01(\x03\x12\x11\n\tmin_stake\x18\x02 \x01(\x03\x12\x0f\n\x07node_id\x18\x03 \x01(\x03\x12\x13\n\x0breward_rate\x18\x04 \x01(\x03\x12\r\n\x05stake\x18\x05 \x01(\x03\x12\x1a\n\x12stake_not_rewarded\x18\x06 \x01(\x03\x12\x16\n\x0estake_rewarded\x18\x07 \x01(\x03\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'node_stake_update_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_NODESTAKEUPDATETRANSACTIONBODY'].fields_by_name['staking_reward_rate']._loaded_options = None - _globals['_NODESTAKEUPDATETRANSACTIONBODY'].fields_by_name['staking_reward_rate']._serialized_options = b'\030\001' - _globals['_NODESTAKEUPDATETRANSACTIONBODY']._serialized_start=71 - _globals['_NODESTAKEUPDATETRANSACTIONBODY']._serialized_end=624 - _globals['_NODESTAKE']._serialized_start=627 - _globals['_NODESTAKE']._serialized_end=781 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/node_stake_update_pb2_grpc.py b/src/proto/node_stake_update_pb2_grpc.py deleted file mode 100644 index 4586ec9..0000000 --- a/src/proto/node_stake_update_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in node_stake_update_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/node_update_pb2.py b/src/proto/node_update_pb2.py deleted file mode 100644 index 94c98a2..0000000 --- a/src/proto/node_update_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: node_update.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'node_update.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11node_update.proto\x12 com.hedera.hapi.node.addressbook\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x11\x62\x61sic_types.proto\"\xff\x02\n\x19NodeUpdateTransactionBody\x12\x0f\n\x07node_id\x18\x01 \x01(\x04\x12$\n\naccount_id\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12\x31\n\x0b\x64\x65scription\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12/\n\x0fgossip_endpoint\x18\x04 \x03(\x0b\x32\x16.proto.ServiceEndpoint\x12\x30\n\x10service_endpoint\x18\x05 \x03(\x0b\x32\x16.proto.ServiceEndpoint\x12:\n\x15gossip_ca_certificate\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.BytesValue\x12:\n\x15grpc_certificate_hash\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.BytesValue\x12\x1d\n\tadmin_key\x18\x08 \x01(\x0b\x32\n.proto.KeyB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'node_update_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_NODEUPDATETRANSACTIONBODY']._serialized_start=107 - _globals['_NODEUPDATETRANSACTIONBODY']._serialized_end=490 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/node_update_pb2_grpc.py b/src/proto/node_update_pb2_grpc.py deleted file mode 100644 index 8bdecad..0000000 --- a/src/proto/node_update_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in node_update_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/query_header_pb2.py b/src/proto/query_header_pb2.py deleted file mode 100644 index ac73508..0000000 --- a/src/proto/query_header_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: query_header.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'query_header.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import transaction_pb2 as transaction__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12query_header.proto\x12\x05proto\x1a\x11transaction.proto\"]\n\x0bQueryHeader\x12#\n\x07payment\x18\x01 \x01(\x0b\x32\x12.proto.Transaction\x12)\n\x0cresponseType\x18\x02 \x01(\x0e\x32\x13.proto.ResponseType*e\n\x0cResponseType\x12\x0f\n\x0b\x41NSWER_ONLY\x10\x00\x12\x16\n\x12\x41NSWER_STATE_PROOF\x10\x01\x12\x0f\n\x0b\x43OST_ANSWER\x10\x02\x12\x1b\n\x17\x43OST_ANSWER_STATE_PROOF\x10\x03\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'query_header_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_RESPONSETYPE']._serialized_start=143 - _globals['_RESPONSETYPE']._serialized_end=244 - _globals['_QUERYHEADER']._serialized_start=48 - _globals['_QUERYHEADER']._serialized_end=141 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/query_header_pb2_grpc.py b/src/proto/query_header_pb2_grpc.py deleted file mode 100644 index 9a5406b..0000000 --- a/src/proto/query_header_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in query_header_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/query_pb2.py b/src/proto/query_pb2.py deleted file mode 100644 index a658529..0000000 --- a/src/proto/query_pb2.py +++ /dev/null @@ -1,62 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: query.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'query.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import get_by_key_pb2 as get__by__key__pb2 -from . import get_by_solidity_id_pb2 as get__by__solidity__id__pb2 -from . import contract_call_local_pb2 as contract__call__local__pb2 -from . import contract_get_info_pb2 as contract__get__info__pb2 -from . import contract_get_bytecode_pb2 as contract__get__bytecode__pb2 -from . import contract_get_records_pb2 as contract__get__records__pb2 -from . import crypto_get_account_balance_pb2 as crypto__get__account__balance__pb2 -from . import crypto_get_account_records_pb2 as crypto__get__account__records__pb2 -from . import crypto_get_info_pb2 as crypto__get__info__pb2 -from . import crypto_get_live_hash_pb2 as crypto__get__live__hash__pb2 -from . import crypto_get_stakers_pb2 as crypto__get__stakers__pb2 -from . import file_get_contents_pb2 as file__get__contents__pb2 -from . import file_get_info_pb2 as file__get__info__pb2 -from . import transaction_get_receipt_pb2 as transaction__get__receipt__pb2 -from . import transaction_get_record_pb2 as transaction__get__record__pb2 -from . import transaction_get_fast_record_pb2 as transaction__get__fast__record__pb2 -from . import consensus_get_topic_info_pb2 as consensus__get__topic__info__pb2 -from . import network_get_version_info_pb2 as network__get__version__info__pb2 -from . import network_get_execution_time_pb2 as network__get__execution__time__pb2 -from . import token_get_info_pb2 as token__get__info__pb2 -from . import schedule_get_info_pb2 as schedule__get__info__pb2 -from . import token_get_account_nft_infos_pb2 as token__get__account__nft__infos__pb2 -from . import token_get_nft_info_pb2 as token__get__nft__info__pb2 -from . import token_get_nft_infos_pb2 as token__get__nft__infos__pb2 -from . import get_account_details_pb2 as get__account__details__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0bquery.proto\x12\x05proto\x1a\x10get_by_key.proto\x1a\x18get_by_solidity_id.proto\x1a\x19\x63ontract_call_local.proto\x1a\x17\x63ontract_get_info.proto\x1a\x1b\x63ontract_get_bytecode.proto\x1a\x1a\x63ontract_get_records.proto\x1a crypto_get_account_balance.proto\x1a crypto_get_account_records.proto\x1a\x15\x63rypto_get_info.proto\x1a\x1a\x63rypto_get_live_hash.proto\x1a\x18\x63rypto_get_stakers.proto\x1a\x17\x66ile_get_contents.proto\x1a\x13\x66ile_get_info.proto\x1a\x1dtransaction_get_receipt.proto\x1a\x1ctransaction_get_record.proto\x1a!transaction_get_fast_record.proto\x1a\x1e\x63onsensus_get_topic_info.proto\x1a\x1enetwork_get_version_info.proto\x1a network_get_execution_time.proto\x1a\x14token_get_info.proto\x1a\x17schedule_get_info.proto\x1a!token_get_account_nft_infos.proto\x1a\x18token_get_nft_info.proto\x1a\x19token_get_nft_infos.proto\x1a\x19get_account_details.proto\"\x88\x0c\n\x05Query\x12(\n\x08getByKey\x18\x01 \x01(\x0b\x32\x14.proto.GetByKeyQueryH\x00\x12\x36\n\x0fgetBySolidityID\x18\x02 \x01(\x0b\x32\x1b.proto.GetBySolidityIDQueryH\x00\x12:\n\x11\x63ontractCallLocal\x18\x03 \x01(\x0b\x32\x1d.proto.ContractCallLocalQueryH\x00\x12\x36\n\x0f\x63ontractGetInfo\x18\x04 \x01(\x0b\x32\x1b.proto.ContractGetInfoQueryH\x00\x12>\n\x13\x63ontractGetBytecode\x18\x05 \x01(\x0b\x32\x1f.proto.ContractGetBytecodeQueryH\x00\x12<\n\x12\x43ontractGetRecords\x18\x06 \x01(\x0b\x32\x1e.proto.ContractGetRecordsQueryH\x00\x12\x46\n\x17\x63ryptogetAccountBalance\x18\x07 \x01(\x0b\x32#.proto.CryptoGetAccountBalanceQueryH\x00\x12\x46\n\x17\x63ryptoGetAccountRecords\x18\x08 \x01(\x0b\x32#.proto.CryptoGetAccountRecordsQueryH\x00\x12\x32\n\rcryptoGetInfo\x18\t \x01(\x0b\x32\x19.proto.CryptoGetInfoQueryH\x00\x12:\n\x11\x63ryptoGetLiveHash\x18\n \x01(\x0b\x32\x1d.proto.CryptoGetLiveHashQueryH\x00\x12=\n\x15\x63ryptoGetProxyStakers\x18\x0b \x01(\x0b\x32\x1c.proto.CryptoGetStakersQueryH\x00\x12\x36\n\x0f\x66ileGetContents\x18\x0c \x01(\x0b\x32\x1b.proto.FileGetContentsQueryH\x00\x12.\n\x0b\x66ileGetInfo\x18\r \x01(\x0b\x32\x17.proto.FileGetInfoQueryH\x00\x12\x42\n\x15transactionGetReceipt\x18\x0e \x01(\x0b\x32!.proto.TransactionGetReceiptQueryH\x00\x12@\n\x14transactionGetRecord\x18\x0f \x01(\x0b\x32 .proto.TransactionGetRecordQueryH\x00\x12H\n\x18transactionGetFastRecord\x18\x10 \x01(\x0b\x32$.proto.TransactionGetFastRecordQueryH\x00\x12\x42\n\x15\x63onsensusGetTopicInfo\x18\x32 \x01(\x0b\x32!.proto.ConsensusGetTopicInfoQueryH\x00\x12\x42\n\x15networkGetVersionInfo\x18\x33 \x01(\x0b\x32!.proto.NetworkGetVersionInfoQueryH\x00\x12\x30\n\x0ctokenGetInfo\x18\x34 \x01(\x0b\x32\x18.proto.TokenGetInfoQueryH\x00\x12\x36\n\x0fscheduleGetInfo\x18\x35 \x01(\x0b\x32\x1b.proto.ScheduleGetInfoQueryH\x00\x12\x46\n\x17tokenGetAccountNftInfos\x18\x36 \x01(\x0b\x32#.proto.TokenGetAccountNftInfosQueryH\x00\x12\x36\n\x0ftokenGetNftInfo\x18\x37 \x01(\x0b\x32\x1b.proto.TokenGetNftInfoQueryH\x00\x12\x38\n\x10tokenGetNftInfos\x18\x38 \x01(\x0b\x32\x1c.proto.TokenGetNftInfosQueryH\x00\x12\x46\n\x17networkGetExecutionTime\x18\x39 \x01(\x0b\x32#.proto.NetworkGetExecutionTimeQueryH\x00\x12\x37\n\x0e\x61\x63\x63ountDetails\x18: \x01(\x0b\x32\x1d.proto.GetAccountDetailsQueryH\x00\x42\x07\n\x05queryB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'query_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_QUERY']._serialized_start=723 - _globals['_QUERY']._serialized_end=2267 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/query_pb2_grpc.py b/src/proto/query_pb2_grpc.py deleted file mode 100644 index 3e0b490..0000000 --- a/src/proto/query_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in query_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/response_code_pb2.py b/src/proto/response_code_pb2.py deleted file mode 100644 index 9c1f117..0000000 --- a/src/proto/response_code_pb2.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: response_code.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'response_code.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13response_code.proto\x12\x05proto*\x8bU\n\x10ResponseCodeEnum\x12\x06\n\x02OK\x10\x00\x12\x17\n\x13INVALID_TRANSACTION\x10\x01\x12\x1b\n\x17PAYER_ACCOUNT_NOT_FOUND\x10\x02\x12\x18\n\x14INVALID_NODE_ACCOUNT\x10\x03\x12\x17\n\x13TRANSACTION_EXPIRED\x10\x04\x12\x1d\n\x19INVALID_TRANSACTION_START\x10\x05\x12 \n\x1cINVALID_TRANSACTION_DURATION\x10\x06\x12\x15\n\x11INVALID_SIGNATURE\x10\x07\x12\x11\n\rMEMO_TOO_LONG\x10\x08\x12\x17\n\x13INSUFFICIENT_TX_FEE\x10\t\x12\x1e\n\x1aINSUFFICIENT_PAYER_BALANCE\x10\n\x12\x19\n\x15\x44UPLICATE_TRANSACTION\x10\x0b\x12\x08\n\x04\x42USY\x10\x0c\x12\x11\n\rNOT_SUPPORTED\x10\r\x12\x13\n\x0fINVALID_FILE_ID\x10\x0e\x12\x16\n\x12INVALID_ACCOUNT_ID\x10\x0f\x12\x17\n\x13INVALID_CONTRACT_ID\x10\x10\x12\x1a\n\x16INVALID_TRANSACTION_ID\x10\x11\x12\x15\n\x11RECEIPT_NOT_FOUND\x10\x12\x12\x14\n\x10RECORD_NOT_FOUND\x10\x13\x12\x17\n\x13INVALID_SOLIDITY_ID\x10\x14\x12\x0b\n\x07UNKNOWN\x10\x15\x12\x0b\n\x07SUCCESS\x10\x16\x12\x10\n\x0c\x46\x41IL_INVALID\x10\x17\x12\x0c\n\x08\x46\x41IL_FEE\x10\x18\x12\x10\n\x0c\x46\x41IL_BALANCE\x10\x19\x12\x10\n\x0cKEY_REQUIRED\x10\x1a\x12\x10\n\x0c\x42\x41\x44_ENCODING\x10\x1b\x12 \n\x1cINSUFFICIENT_ACCOUNT_BALANCE\x10\x1c\x12\x1c\n\x18INVALID_SOLIDITY_ADDRESS\x10\x1d\x12\x14\n\x10INSUFFICIENT_GAS\x10\x1e\x12 \n\x1c\x43ONTRACT_SIZE_LIMIT_EXCEEDED\x10\x1f\x12%\n!LOCAL_CALL_MODIFICATION_EXCEPTION\x10 \x12\x1c\n\x18\x43ONTRACT_REVERT_EXECUTED\x10!\x12 \n\x1c\x43ONTRACT_EXECUTION_EXCEPTION\x10\"\x12\"\n\x1eINVALID_RECEIVING_NODE_ACCOUNT\x10#\x12\x18\n\x14MISSING_QUERY_HEADER\x10$\x12\x19\n\x15\x41\x43\x43OUNT_UPDATE_FAILED\x10%\x12\x18\n\x14INVALID_KEY_ENCODING\x10&\x12\x19\n\x15NULL_SOLIDITY_ADDRESS\x10\'\x12\x1a\n\x16\x43ONTRACT_UPDATE_FAILED\x10(\x12\x18\n\x14INVALID_QUERY_HEADER\x10)\x12\x19\n\x15INVALID_FEE_SUBMITTED\x10*\x12\x1b\n\x17INVALID_PAYER_SIGNATURE\x10+\x12\x14\n\x10KEY_NOT_PROVIDED\x10,\x12\x1b\n\x17INVALID_EXPIRATION_TIME\x10-\x12\x0f\n\x0bNO_WACL_KEY\x10.\x12\x16\n\x12\x46ILE_CONTENT_EMPTY\x10/\x12\x1b\n\x17INVALID_ACCOUNT_AMOUNTS\x10\x30\x12\x1a\n\x16\x45MPTY_TRANSACTION_BODY\x10\x31\x12\x1c\n\x18INVALID_TRANSACTION_BODY\x10\x32\x12*\n&INVALID_SIGNATURE_TYPE_MISMATCHING_KEY\x10\x33\x12+\n\'INVALID_SIGNATURE_COUNT_MISMATCHING_KEY\x10\x34\x12\x18\n\x14\x45MPTY_LIVE_HASH_BODY\x10\x35\x12\x13\n\x0f\x45MPTY_LIVE_HASH\x10\x36\x12\x18\n\x14\x45MPTY_LIVE_HASH_KEYS\x10\x37\x12\x1a\n\x16INVALID_LIVE_HASH_SIZE\x10\x38\x12\x14\n\x10\x45MPTY_QUERY_BODY\x10\x39\x12\x19\n\x15\x45MPTY_LIVE_HASH_QUERY\x10:\x12\x17\n\x13LIVE_HASH_NOT_FOUND\x10;\x12\x1d\n\x19\x41\x43\x43OUNT_ID_DOES_NOT_EXIST\x10<\x12\x1c\n\x18LIVE_HASH_ALREADY_EXISTS\x10=\x12\x15\n\x11INVALID_FILE_WACL\x10>\x12\x18\n\x14SERIALIZATION_FAILED\x10?\x12\x18\n\x14TRANSACTION_OVERSIZE\x10@\x12\x1f\n\x1bTRANSACTION_TOO_MANY_LAYERS\x10\x41\x12\x14\n\x10\x43ONTRACT_DELETED\x10\x42\x12\x17\n\x13PLATFORM_NOT_ACTIVE\x10\x43\x12\x17\n\x13KEY_PREFIX_MISMATCH\x10\x44\x12$\n PLATFORM_TRANSACTION_NOT_CREATED\x10\x45\x12\x1a\n\x16INVALID_RENEWAL_PERIOD\x10\x46\x12\x1c\n\x18INVALID_PAYER_ACCOUNT_ID\x10G\x12\x13\n\x0f\x41\x43\x43OUNT_DELETED\x10H\x12\x10\n\x0c\x46ILE_DELETED\x10I\x12\'\n#ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS\x10J\x12$\n SETTING_NEGATIVE_ACCOUNT_BALANCE\x10K\x12\x15\n\x11OBTAINER_REQUIRED\x10L\x12\x1d\n\x19OBTAINER_SAME_CONTRACT_ID\x10M\x12\x1b\n\x17OBTAINER_DOES_NOT_EXIST\x10N\x12 \n\x1cMODIFYING_IMMUTABLE_CONTRACT\x10O\x12\x19\n\x15\x46ILE_SYSTEM_EXCEPTION\x10P\x12#\n\x1f\x41UTORENEW_DURATION_NOT_IN_RANGE\x10Q\x12\x1d\n\x19\x45RROR_DECODING_BYTESTRING\x10R\x12\x17\n\x13\x43ONTRACT_FILE_EMPTY\x10S\x12\x1b\n\x17\x43ONTRACT_BYTECODE_EMPTY\x10T\x12\x1b\n\x17INVALID_INITIAL_BALANCE\x10U\x12(\n INVALID_RECEIVE_RECORD_THRESHOLD\x10V\x1a\x02\x08\x01\x12%\n\x1dINVALID_SEND_RECORD_THRESHOLD\x10W\x1a\x02\x08\x01\x12\"\n\x1e\x41\x43\x43OUNT_IS_NOT_GENESIS_ACCOUNT\x10X\x12\x1e\n\x1aPAYER_ACCOUNT_UNAUTHORIZED\x10Y\x12#\n\x1fINVALID_FREEZE_TRANSACTION_BODY\x10Z\x12%\n!FREEZE_TRANSACTION_BODY_NOT_FOUND\x10[\x12%\n!TRANSFER_LIST_SIZE_LIMIT_EXCEEDED\x10\\\x12\x1e\n\x1aRESULT_SIZE_LIMIT_EXCEEDED\x10]\x12\x17\n\x13NOT_SPECIAL_ACCOUNT\x10^\x12\x19\n\x15\x43ONTRACT_NEGATIVE_GAS\x10_\x12\x1b\n\x17\x43ONTRACT_NEGATIVE_VALUE\x10`\x12\x14\n\x10INVALID_FEE_FILE\x10\x61\x12\x1e\n\x1aINVALID_EXCHANGE_RATE_FILE\x10\x62\x12\x1f\n\x1bINSUFFICIENT_LOCAL_CALL_GAS\x10\x63\x12 \n\x1c\x45NTITY_NOT_ALLOWED_TO_DELETE\x10\x64\x12\x18\n\x14\x41UTHORIZATION_FAILED\x10\x65\x12\x1f\n\x1b\x46ILE_UPLOADED_PROTO_INVALID\x10\x66\x12)\n%FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK\x10g\x12#\n\x1f\x46\x45\x45_SCHEDULE_FILE_PART_UPLOADED\x10h\x12\'\n#EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED\x10i\x12!\n\x1dMAX_CONTRACT_STORAGE_EXCEEDED\x10j\x12+\n\'TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT\x10k\x12 \n\x1cTOTAL_LEDGER_BALANCE_INVALID\x10l\x12$\n EXPIRATION_REDUCTION_NOT_ALLOWED\x10n\x12\x1a\n\x16MAX_GAS_LIMIT_EXCEEDED\x10o\x12\x1a\n\x16MAX_FILE_SIZE_EXCEEDED\x10p\x12\x19\n\x15RECEIVER_SIG_REQUIRED\x10q\x12\x15\n\x10INVALID_TOPIC_ID\x10\x96\x01\x12\x16\n\x11INVALID_ADMIN_KEY\x10\x9b\x01\x12\x17\n\x12INVALID_SUBMIT_KEY\x10\x9c\x01\x12\x11\n\x0cUNAUTHORIZED\x10\x9d\x01\x12\x1a\n\x15INVALID_TOPIC_MESSAGE\x10\x9e\x01\x12\x1e\n\x19INVALID_AUTORENEW_ACCOUNT\x10\x9f\x01\x12\"\n\x1d\x41UTORENEW_ACCOUNT_NOT_ALLOWED\x10\xa0\x01\x12\x12\n\rTOPIC_EXPIRED\x10\xa2\x01\x12\x19\n\x14INVALID_CHUNK_NUMBER\x10\xa3\x01\x12!\n\x1cINVALID_CHUNK_TRANSACTION_ID\x10\xa4\x01\x12\x1d\n\x18\x41\x43\x43OUNT_FROZEN_FOR_TOKEN\x10\xa5\x01\x12&\n!TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED\x10\xa6\x01\x12\x15\n\x10INVALID_TOKEN_ID\x10\xa7\x01\x12\x1b\n\x16INVALID_TOKEN_DECIMALS\x10\xa8\x01\x12!\n\x1cINVALID_TOKEN_INITIAL_SUPPLY\x10\xa9\x01\x12\'\n\"INVALID_TREASURY_ACCOUNT_FOR_TOKEN\x10\xaa\x01\x12\x19\n\x14INVALID_TOKEN_SYMBOL\x10\xab\x01\x12\x1c\n\x17TOKEN_HAS_NO_FREEZE_KEY\x10\xac\x01\x12%\n TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN\x10\xad\x01\x12\x19\n\x14MISSING_TOKEN_SYMBOL\x10\xae\x01\x12\x1a\n\x15TOKEN_SYMBOL_TOO_LONG\x10\xaf\x01\x12&\n!ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN\x10\xb0\x01\x12\x19\n\x14TOKEN_HAS_NO_KYC_KEY\x10\xb1\x01\x12\x1f\n\x1aINSUFFICIENT_TOKEN_BALANCE\x10\xb2\x01\x12\x16\n\x11TOKEN_WAS_DELETED\x10\xb3\x01\x12\x1c\n\x17TOKEN_HAS_NO_SUPPLY_KEY\x10\xb4\x01\x12\x1a\n\x15TOKEN_HAS_NO_WIPE_KEY\x10\xb5\x01\x12\x1e\n\x19INVALID_TOKEN_MINT_AMOUNT\x10\xb6\x01\x12\x1e\n\x19INVALID_TOKEN_BURN_AMOUNT\x10\xb7\x01\x12$\n\x1fTOKEN_NOT_ASSOCIATED_TO_ACCOUNT\x10\xb8\x01\x12\'\n\"CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT\x10\xb9\x01\x12\x14\n\x0fINVALID_KYC_KEY\x10\xba\x01\x12\x15\n\x10INVALID_WIPE_KEY\x10\xbb\x01\x12\x17\n\x12INVALID_FREEZE_KEY\x10\xbc\x01\x12\x17\n\x12INVALID_SUPPLY_KEY\x10\xbd\x01\x12\x17\n\x12MISSING_TOKEN_NAME\x10\xbe\x01\x12\x18\n\x13TOKEN_NAME_TOO_LONG\x10\xbf\x01\x12\x1a\n\x15INVALID_WIPING_AMOUNT\x10\xc0\x01\x12\x17\n\x12TOKEN_IS_IMMUTABLE\x10\xc1\x01\x12(\n#TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT\x10\xc2\x01\x12-\n(TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES\x10\xc3\x01\x12\x18\n\x13\x41\x43\x43OUNT_IS_TREASURY\x10\xc4\x01\x12$\n\x1fTOKEN_ID_REPEATED_IN_TOKEN_LIST\x10\xc5\x01\x12,\n\'TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED\x10\xc6\x01\x12\x1e\n\x19\x45MPTY_TOKEN_TRANSFER_BODY\x10\xc7\x01\x12)\n$EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS\x10\xc8\x01\x12\x18\n\x13INVALID_SCHEDULE_ID\x10\xc9\x01\x12\x1a\n\x15SCHEDULE_IS_IMMUTABLE\x10\xca\x01\x12\x1e\n\x19INVALID_SCHEDULE_PAYER_ID\x10\xcb\x01\x12 \n\x1bINVALID_SCHEDULE_ACCOUNT_ID\x10\xcc\x01\x12\x1c\n\x17NO_NEW_VALID_SIGNATURES\x10\xcd\x01\x12\"\n\x1dUNRESOLVABLE_REQUIRED_SIGNERS\x10\xce\x01\x12+\n&SCHEDULED_TRANSACTION_NOT_IN_WHITELIST\x10\xcf\x01\x12!\n\x1cSOME_SIGNATURES_WERE_INVALID\x10\xd0\x01\x12%\n TRANSACTION_ID_FIELD_NOT_ALLOWED\x10\xd1\x01\x12\'\n\"IDENTICAL_SCHEDULE_ALREADY_CREATED\x10\xd2\x01\x12 \n\x1bINVALID_ZERO_BYTE_IN_STRING\x10\xd3\x01\x12\x1d\n\x18SCHEDULE_ALREADY_DELETED\x10\xd4\x01\x12\x1e\n\x19SCHEDULE_ALREADY_EXECUTED\x10\xd5\x01\x12\x1b\n\x16MESSAGE_SIZE_TOO_LARGE\x10\xd6\x01\x12(\n#OPERATION_REPEATED_IN_BUCKET_GROUPS\x10\xd7\x01\x12\x1d\n\x18\x42UCKET_CAPACITY_OVERFLOW\x10\xd8\x01\x12/\n*NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION\x10\xd9\x01\x12\"\n\x1d\x42UCKET_HAS_NO_THROTTLE_GROUPS\x10\xda\x01\x12(\n#THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC\x10\xdb\x01\x12+\n&SUCCESS_BUT_MISSING_EXPECTED_OPERATION\x10\xdc\x01\x12%\n UNPARSEABLE_THROTTLE_DEFINITIONS\x10\xdd\x01\x12!\n\x1cINVALID_THROTTLE_DEFINITIONS\x10\xde\x01\x12(\n#ACCOUNT_EXPIRED_AND_PENDING_REMOVAL\x10\xdf\x01\x12\x1d\n\x18INVALID_TOKEN_MAX_SUPPLY\x10\xe0\x01\x12$\n\x1fINVALID_TOKEN_NFT_SERIAL_NUMBER\x10\xe1\x01\x12\x13\n\x0eINVALID_NFT_ID\x10\xe2\x01\x12\x16\n\x11METADATA_TOO_LONG\x10\xe3\x01\x12\x1e\n\x19\x42\x41TCH_SIZE_LIMIT_EXCEEDED\x10\xe4\x01\x12\x18\n\x13INVALID_QUERY_RANGE\x10\xe5\x01\x12\x1d\n\x18\x46RACTION_DIVIDES_BY_ZERO\x10\xe6\x01\x12\x32\n)INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE\x10\xe7\x01\x1a\x02\x08\x01\x12\x1e\n\x19\x43USTOM_FEES_LIST_TOO_LONG\x10\xe8\x01\x12!\n\x1cINVALID_CUSTOM_FEE_COLLECTOR\x10\xe9\x01\x12$\n\x1fINVALID_TOKEN_ID_IN_CUSTOM_FEES\x10\xea\x01\x12*\n%TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR\x10\xeb\x01\x12\x1d\n\x18TOKEN_MAX_SUPPLY_REACHED\x10\xec\x01\x12&\n!SENDER_DOES_NOT_OWN_NFT_SERIAL_NO\x10\xed\x01\x12#\n\x1e\x43USTOM_FEE_NOT_FULLY_SPECIFIED\x10\xee\x01\x12 \n\x1b\x43USTOM_FEE_MUST_BE_POSITIVE\x10\xef\x01\x12\"\n\x1dTOKEN_HAS_NO_FEE_SCHEDULE_KEY\x10\xf0\x01\x12%\n CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE\x10\xf1\x01\x12\'\n\"ROYALTY_FRACTION_CANNOT_EXCEED_ONE\x10\xf2\x01\x12\x33\n.FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT\x10\xf3\x01\x12(\n#CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES\x10\xf4\x01\x12\x34\n/CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON\x10\xf5\x01\x12;\n6CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON\x10\xf6\x01\x12$\n\x1fINVALID_CUSTOM_FEE_SCHEDULE_KEY\x10\xf7\x01\x12 \n\x1bINVALID_TOKEN_MINT_METADATA\x10\xf8\x01\x12 \n\x1bINVALID_TOKEN_BURN_METADATA\x10\xf9\x01\x12%\n CURRENT_TREASURY_STILL_OWNS_NFTS\x10\xfa\x01\x12\x1c\n\x17\x41\x43\x43OUNT_STILL_OWNS_NFTS\x10\xfb\x01\x12!\n\x1cTREASURY_MUST_OWN_BURNED_NFT\x10\xfc\x01\x12#\n\x1e\x41\x43\x43OUNT_DOES_NOT_OWN_WIPED_NFT\x10\xfd\x01\x12>\n9ACCOUNT_AMOUNT_TRANSFERS_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON\x10\xfe\x01\x12.\n)MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED\x10\xff\x01\x12\x1a\n\x15PAYER_ACCOUNT_DELETED\x10\x80\x02\x12\x35\n0CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH\x10\x81\x02\x12\x35\n0CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS\x10\x82\x02\x12\x37\n2INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE\x10\x83\x02\x12 \n\x1bSERIAL_NUMBER_LIMIT_REACHED\x10\x84\x02\x12<\n7CUSTOM_ROYALTY_FEE_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE\x10\x85\x02\x12(\n#NO_REMAINING_AUTOMATIC_ASSOCIATIONS\x10\x86\x02\x12\x37\n2EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT\x10\x87\x02\x12\x43\n>REQUESTED_NUM_AUTOMATIC_ASSOCIATIONS_EXCEEDS_ASSOCIATION_LIMIT\x10\x88\x02\x12\x14\n\x0fTOKEN_IS_PAUSED\x10\x89\x02\x12\x1b\n\x16TOKEN_HAS_NO_PAUSE_KEY\x10\x8a\x02\x12\x16\n\x11INVALID_PAUSE_KEY\x10\x8b\x02\x12&\n!FREEZE_UPDATE_FILE_DOES_NOT_EXIST\x10\x8c\x02\x12+\n&FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH\x10\x8d\x02\x12!\n\x1cNO_UPGRADE_HAS_BEEN_PREPARED\x10\x8e\x02\x12\x1b\n\x16NO_FREEZE_IS_SCHEDULED\x10\x8f\x02\x12\x33\n.UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE\x10\x90\x02\x12%\n FREEZE_START_TIME_MUST_BE_FUTURE\x10\x91\x02\x12&\n!PREPARED_UPDATE_FILE_IS_IMMUTABLE\x10\x92\x02\x12\x1d\n\x18\x46REEZE_ALREADY_SCHEDULED\x10\x93\x02\x12\x1f\n\x1a\x46REEZE_UPGRADE_IN_PROGRESS\x10\x94\x02\x12+\n&UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED\x10\x95\x02\x12-\n(UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED\x10\x96\x02\x12\x1c\n\x17\x43ONSENSUS_GAS_EXHAUSTED\x10\x97\x02\x12\x15\n\x10REVERTED_SUCCESS\x10\x98\x02\x12.\n)MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED\x10\x99\x02\x12\x16\n\x11INVALID_ALIAS_KEY\x10\x9a\x02\x12\x1e\n\x19UNEXPECTED_TOKEN_DECIMALS\x10\x9b\x02\x12!\n\x18INVALID_PROXY_ACCOUNT_ID\x10\x9c\x02\x1a\x02\x08\x01\x12 \n\x1bINVALID_TRANSFER_ACCOUNT_ID\x10\x9d\x02\x12%\n INVALID_FEE_COLLECTOR_ACCOUNT_ID\x10\x9e\x02\x12\x17\n\x12\x41LIAS_IS_IMMUTABLE\x10\x9f\x02\x12\"\n\x1dSPENDER_ACCOUNT_SAME_AS_OWNER\x10\xa0\x02\x12$\n\x1f\x41MOUNT_EXCEEDS_TOKEN_MAX_SUPPLY\x10\xa1\x02\x12\x1e\n\x19NEGATIVE_ALLOWANCE_AMOUNT\x10\xa2\x02\x12/\n&CANNOT_APPROVE_FOR_ALL_FUNGIBLE_COMMON\x10\xa3\x02\x1a\x02\x08\x01\x12$\n\x1fSPENDER_DOES_NOT_HAVE_ALLOWANCE\x10\xa4\x02\x12\x1d\n\x18\x41MOUNT_EXCEEDS_ALLOWANCE\x10\xa5\x02\x12\x1c\n\x17MAX_ALLOWANCES_EXCEEDED\x10\xa6\x02\x12\x15\n\x10\x45MPTY_ALLOWANCES\x10\xa7\x02\x12/\n&SPENDER_ACCOUNT_REPEATED_IN_ALLOWANCES\x10\xa8\x02\x1a\x02\x08\x01\x12/\n&REPEATED_SERIAL_NUMS_IN_NFT_ALLOWANCES\x10\xa9\x02\x1a\x02\x08\x01\x12%\n FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES\x10\xaa\x02\x12%\n NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES\x10\xab\x02\x12\x1f\n\x1aINVALID_ALLOWANCE_OWNER_ID\x10\xac\x02\x12!\n\x1cINVALID_ALLOWANCE_SPENDER_ID\x10\xad\x02\x12&\n\x1dREPEATED_ALLOWANCES_TO_DELETE\x10\xae\x02\x1a\x02\x08\x01\x12\x1f\n\x1aINVALID_DELEGATING_SPENDER\x10\xaf\x02\x12\x34\n/DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL\x10\xb0\x02\x12\x35\n0DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL\x10\xb1\x02\x12/\n*SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE\x10\xb2\x02\x12@\n;SCHEDULE_EXPIRATION_TIME_MUST_BE_HIGHER_THAN_CONSENSUS_TIME\x10\xb3\x02\x12&\n!SCHEDULE_FUTURE_THROTTLE_EXCEEDED\x10\xb4\x02\x12\'\n\"SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED\x10\xb5\x02\x12!\n\x1cINVALID_ETHEREUM_TRANSACTION\x10\xb6\x02\x12\x13\n\x0eWRONG_CHAIN_ID\x10\xb7\x02\x12\x10\n\x0bWRONG_NONCE\x10\xb8\x02\x12\x1c\n\x17\x41\x43\x43\x45SS_LIST_UNSUPPORTED\x10\xb9\x02\x12 \n\x1bSCHEDULE_PENDING_EXPIRATION\x10\xba\x02\x12\x1f\n\x1a\x43ONTRACT_IS_TOKEN_TREASURY\x10\xbb\x02\x12)\n$CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES\x10\xbc\x02\x12)\n$CONTRACT_EXPIRED_AND_PENDING_REMOVAL\x10\xbd\x02\x12\'\n\"CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT\x10\xbe\x02\x12\x31\n,PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION\x10\xbf\x02\x12)\n$PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED\x10\xc0\x02\x12 \n\x1bSELF_STAKING_IS_NOT_ALLOWED\x10\xc1\x02\x12\x17\n\x12INVALID_STAKING_ID\x10\xc2\x02\x12\x18\n\x13STAKING_NOT_ENABLED\x10\xc3\x02\x12\x17\n\x12INVALID_PRNG_RANGE\x10\xc4\x02\x12\x33\n.MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED\x10\xc5\x02\x12\x31\n,INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE\x10\xc6\x02\x12+\n&INSUFFICIENT_BALANCES_FOR_STORAGE_RENT\x10\xc7\x02\x12\x1f\n\x1aMAX_CHILD_RECORDS_EXCEEDED\x10\xc8\x02\x12+\n&INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES\x10\xc9\x02\x12#\n\x1eTRANSACTION_HAS_UNKNOWN_FIELDS\x10\xca\x02\x12\x19\n\x14\x41\x43\x43OUNT_IS_IMMUTABLE\x10\xcb\x02\x12\x1b\n\x16\x41LIAS_ALREADY_ASSIGNED\x10\xcc\x02\x12\x19\n\x14INVALID_METADATA_KEY\x10\xcd\x02\x12\x1e\n\x19TOKEN_HAS_NO_METADATA_KEY\x10\xce\x02\x12\x1b\n\x16MISSING_TOKEN_METADATA\x10\xcf\x02\x12\x1b\n\x16MISSING_SERIAL_NUMBERS\x10\xd0\x02\x12\x1b\n\x16TOKEN_HAS_NO_ADMIN_KEY\x10\xd1\x02\x12\x11\n\x0cNODE_DELETED\x10\xd2\x02\x12\x14\n\x0fINVALID_NODE_ID\x10\xd3\x02\x12\x1c\n\x17INVALID_GOSSIP_ENDPOINT\x10\xd4\x02\x12\x1c\n\x17INVALID_NODE_ACCOUNT_ID\x10\xd5\x02\x12\x1d\n\x18INVALID_NODE_DESCRIPTION\x10\xd6\x02\x12\x1d\n\x18INVALID_SERVICE_ENDPOINT\x10\xd7\x02\x12\"\n\x1dINVALID_GOSSIP_CA_CERTIFICATE\x10\xd8\x02\x12\x1d\n\x18INVALID_GRPC_CERTIFICATE\x10\xd9\x02\x12\"\n\x1dINVALID_MAX_AUTO_ASSOCIATIONS\x10\xda\x02\x12\x16\n\x11MAX_NODES_CREATED\x10\xdb\x02\x12,\n\'IP_FQDN_CANNOT_BE_SET_FOR_SAME_ENDPOINT\x10\xdc\x02\x12%\n GOSSIP_ENDPOINT_CANNOT_HAVE_FQDN\x10\xdd\x02\x12\x18\n\x13\x46QDN_SIZE_TOO_LARGE\x10\xde\x02\x12\x15\n\x10INVALID_ENDPOINT\x10\xdf\x02\x12$\n\x1fGOSSIP_ENDPOINTS_EXCEEDED_LIMIT\x10\xe0\x02\x12\x1d\n\x18TOKEN_REFERENCE_REPEATED\x10\xe1\x02\x12\x15\n\x10INVALID_OWNER_ID\x10\xe2\x02\x12-\n(TOKEN_REFERENCE_LIST_SIZE_LIMIT_EXCEEDED\x10\xe3\x02\x12%\n SERVICE_ENDPOINTS_EXCEEDED_LIMIT\x10\xe4\x02\x12\x19\n\x14INVALID_IPV4_ADDRESS\x10\xe5\x02\x12\x1f\n\x1a\x45MPTY_TOKEN_REFERENCE_LIST\x10\xe6\x02\x12$\n\x1fUPDATE_NODE_ACCOUNT_NOT_ALLOWED\x10\xe7\x02\x12(\n#TOKEN_HAS_NO_METADATA_OR_SUPPLY_KEY\x10\xe8\x02\x12\"\n\x1d\x45MPTY_PENDING_AIRDROP_ID_LIST\x10\xe9\x02\x12 \n\x1bPENDING_AIRDROP_ID_REPEATED\x10\xea\x02\x12%\n PENDING_AIRDROP_ID_LIST_TOO_LONG\x10\xeb\x02\x12\'\n\"PENDING_NFT_AIRDROP_ALREADY_EXISTS\x10\xec\x02\x12!\n\x1c\x41\x43\x43OUNT_HAS_PENDING_AIRDROPS\x10\xed\x02\x12\x1b\n\x16THROTTLED_AT_CONSENSUS\x10\xee\x02\x12\x1f\n\x1aINVALID_PENDING_AIRDROP_ID\x10\xef\x02\x12(\n#TOKEN_AIRDROP_WITH_FALLBACK_ROYALTY\x10\xf0\x02\x12%\n INVALID_TOKEN_IN_PENDING_AIRDROP\x10\xf1\x02\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'response_code_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_RESPONSECODEENUM'].values_by_name["INVALID_RECEIVE_RECORD_THRESHOLD"]._loaded_options = None - _globals['_RESPONSECODEENUM'].values_by_name["INVALID_RECEIVE_RECORD_THRESHOLD"]._serialized_options = b'\010\001' - _globals['_RESPONSECODEENUM'].values_by_name["INVALID_SEND_RECORD_THRESHOLD"]._loaded_options = None - _globals['_RESPONSECODEENUM'].values_by_name["INVALID_SEND_RECORD_THRESHOLD"]._serialized_options = b'\010\001' - _globals['_RESPONSECODEENUM'].values_by_name["INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE"]._loaded_options = None - _globals['_RESPONSECODEENUM'].values_by_name["INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE"]._serialized_options = b'\010\001' - _globals['_RESPONSECODEENUM'].values_by_name["INVALID_PROXY_ACCOUNT_ID"]._loaded_options = None - _globals['_RESPONSECODEENUM'].values_by_name["INVALID_PROXY_ACCOUNT_ID"]._serialized_options = b'\010\001' - _globals['_RESPONSECODEENUM'].values_by_name["CANNOT_APPROVE_FOR_ALL_FUNGIBLE_COMMON"]._loaded_options = None - _globals['_RESPONSECODEENUM'].values_by_name["CANNOT_APPROVE_FOR_ALL_FUNGIBLE_COMMON"]._serialized_options = b'\010\001' - _globals['_RESPONSECODEENUM'].values_by_name["SPENDER_ACCOUNT_REPEATED_IN_ALLOWANCES"]._loaded_options = None - _globals['_RESPONSECODEENUM'].values_by_name["SPENDER_ACCOUNT_REPEATED_IN_ALLOWANCES"]._serialized_options = b'\010\001' - _globals['_RESPONSECODEENUM'].values_by_name["REPEATED_SERIAL_NUMS_IN_NFT_ALLOWANCES"]._loaded_options = None - _globals['_RESPONSECODEENUM'].values_by_name["REPEATED_SERIAL_NUMS_IN_NFT_ALLOWANCES"]._serialized_options = b'\010\001' - _globals['_RESPONSECODEENUM'].values_by_name["REPEATED_ALLOWANCES_TO_DELETE"]._loaded_options = None - _globals['_RESPONSECODEENUM'].values_by_name["REPEATED_ALLOWANCES_TO_DELETE"]._serialized_options = b'\010\001' - _globals['_RESPONSECODEENUM']._serialized_start=31 - _globals['_RESPONSECODEENUM']._serialized_end=10922 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/response_code_pb2_grpc.py b/src/proto/response_code_pb2_grpc.py deleted file mode 100644 index 675d9ba..0000000 --- a/src/proto/response_code_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in response_code_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/response_header_pb2.py b/src/proto/response_header_pb2.py deleted file mode 100644 index b66e266..0000000 --- a/src/proto/response_header_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: response_header.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'response_header.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import query_header_pb2 as query__header__pb2 -from . import response_code_pb2 as response__code__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15response_header.proto\x12\x05proto\x1a\x12query_header.proto\x1a\x13response_code.proto\"\x9b\x01\n\x0eResponseHeader\x12<\n\x1bnodeTransactionPrecheckCode\x18\x01 \x01(\x0e\x32\x17.proto.ResponseCodeEnum\x12)\n\x0cresponseType\x18\x02 \x01(\x0e\x32\x13.proto.ResponseType\x12\x0c\n\x04\x63ost\x18\x03 \x01(\x04\x12\x12\n\nstateProof\x18\x04 \x01(\x0c\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'response_header_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_RESPONSEHEADER']._serialized_start=74 - _globals['_RESPONSEHEADER']._serialized_end=229 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/response_header_pb2_grpc.py b/src/proto/response_header_pb2_grpc.py deleted file mode 100644 index 82d6a55..0000000 --- a/src/proto/response_header_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in response_header_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/response_pb2.py b/src/proto/response_pb2.py deleted file mode 100644 index 649ae4d..0000000 --- a/src/proto/response_pb2.py +++ /dev/null @@ -1,62 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: response.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'response.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import get_by_key_pb2 as get__by__key__pb2 -from . import get_by_solidity_id_pb2 as get__by__solidity__id__pb2 -from . import contract_call_local_pb2 as contract__call__local__pb2 -from . import contract_get_bytecode_pb2 as contract__get__bytecode__pb2 -from . import contract_get_info_pb2 as contract__get__info__pb2 -from . import contract_get_records_pb2 as contract__get__records__pb2 -from . import crypto_get_account_balance_pb2 as crypto__get__account__balance__pb2 -from . import crypto_get_account_records_pb2 as crypto__get__account__records__pb2 -from . import crypto_get_info_pb2 as crypto__get__info__pb2 -from . import crypto_get_live_hash_pb2 as crypto__get__live__hash__pb2 -from . import crypto_get_stakers_pb2 as crypto__get__stakers__pb2 -from . import file_get_contents_pb2 as file__get__contents__pb2 -from . import file_get_info_pb2 as file__get__info__pb2 -from . import transaction_get_receipt_pb2 as transaction__get__receipt__pb2 -from . import transaction_get_record_pb2 as transaction__get__record__pb2 -from . import transaction_get_fast_record_pb2 as transaction__get__fast__record__pb2 -from . import consensus_get_topic_info_pb2 as consensus__get__topic__info__pb2 -from . import network_get_version_info_pb2 as network__get__version__info__pb2 -from . import network_get_execution_time_pb2 as network__get__execution__time__pb2 -from . import token_get_account_nft_infos_pb2 as token__get__account__nft__infos__pb2 -from . import token_get_info_pb2 as token__get__info__pb2 -from . import token_get_nft_info_pb2 as token__get__nft__info__pb2 -from . import token_get_nft_infos_pb2 as token__get__nft__infos__pb2 -from . import schedule_get_info_pb2 as schedule__get__info__pb2 -from . import get_account_details_pb2 as get__account__details__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0eresponse.proto\x12\x05proto\x1a\x10get_by_key.proto\x1a\x18get_by_solidity_id.proto\x1a\x19\x63ontract_call_local.proto\x1a\x1b\x63ontract_get_bytecode.proto\x1a\x17\x63ontract_get_info.proto\x1a\x1a\x63ontract_get_records.proto\x1a crypto_get_account_balance.proto\x1a crypto_get_account_records.proto\x1a\x15\x63rypto_get_info.proto\x1a\x1a\x63rypto_get_live_hash.proto\x1a\x18\x63rypto_get_stakers.proto\x1a\x17\x66ile_get_contents.proto\x1a\x13\x66ile_get_info.proto\x1a\x1dtransaction_get_receipt.proto\x1a\x1ctransaction_get_record.proto\x1a!transaction_get_fast_record.proto\x1a\x1e\x63onsensus_get_topic_info.proto\x1a\x1enetwork_get_version_info.proto\x1a network_get_execution_time.proto\x1a!token_get_account_nft_infos.proto\x1a\x14token_get_info.proto\x1a\x18token_get_nft_info.proto\x1a\x19token_get_nft_infos.proto\x1a\x17schedule_get_info.proto\x1a\x19get_account_details.proto\"\xf2\x0c\n\x08Response\x12+\n\x08getByKey\x18\x01 \x01(\x0b\x32\x17.proto.GetByKeyResponseH\x00\x12\x39\n\x0fgetBySolidityID\x18\x02 \x01(\x0b\x32\x1e.proto.GetBySolidityIDResponseH\x00\x12=\n\x11\x63ontractCallLocal\x18\x03 \x01(\x0b\x32 .proto.ContractCallLocalResponseH\x00\x12I\n\x1b\x63ontractGetBytecodeResponse\x18\x05 \x01(\x0b\x32\".proto.ContractGetBytecodeResponseH\x00\x12\x39\n\x0f\x63ontractGetInfo\x18\x04 \x01(\x0b\x32\x1e.proto.ContractGetInfoResponseH\x00\x12G\n\x1a\x63ontractGetRecordsResponse\x18\x06 \x01(\x0b\x32!.proto.ContractGetRecordsResponseH\x00\x12I\n\x17\x63ryptogetAccountBalance\x18\x07 \x01(\x0b\x32&.proto.CryptoGetAccountBalanceResponseH\x00\x12I\n\x17\x63ryptoGetAccountRecords\x18\x08 \x01(\x0b\x32&.proto.CryptoGetAccountRecordsResponseH\x00\x12\x35\n\rcryptoGetInfo\x18\t \x01(\x0b\x32\x1c.proto.CryptoGetInfoResponseH\x00\x12=\n\x11\x63ryptoGetLiveHash\x18\n \x01(\x0b\x32 .proto.CryptoGetLiveHashResponseH\x00\x12@\n\x15\x63ryptoGetProxyStakers\x18\x0b \x01(\x0b\x32\x1f.proto.CryptoGetStakersResponseH\x00\x12\x39\n\x0f\x66ileGetContents\x18\x0c \x01(\x0b\x32\x1e.proto.FileGetContentsResponseH\x00\x12\x31\n\x0b\x66ileGetInfo\x18\r \x01(\x0b\x32\x1a.proto.FileGetInfoResponseH\x00\x12\x45\n\x15transactionGetReceipt\x18\x0e \x01(\x0b\x32$.proto.TransactionGetReceiptResponseH\x00\x12\x43\n\x14transactionGetRecord\x18\x0f \x01(\x0b\x32#.proto.TransactionGetRecordResponseH\x00\x12K\n\x18transactionGetFastRecord\x18\x10 \x01(\x0b\x32\'.proto.TransactionGetFastRecordResponseH\x00\x12\x46\n\x15\x63onsensusGetTopicInfo\x18\x96\x01 \x01(\x0b\x32$.proto.ConsensusGetTopicInfoResponseH\x00\x12\x46\n\x15networkGetVersionInfo\x18\x97\x01 \x01(\x0b\x32$.proto.NetworkGetVersionInfoResponseH\x00\x12\x34\n\x0ctokenGetInfo\x18\x98\x01 \x01(\x0b\x32\x1b.proto.TokenGetInfoResponseH\x00\x12:\n\x0fscheduleGetInfo\x18\x99\x01 \x01(\x0b\x32\x1e.proto.ScheduleGetInfoResponseH\x00\x12J\n\x17tokenGetAccountNftInfos\x18\x9a\x01 \x01(\x0b\x32&.proto.TokenGetAccountNftInfosResponseH\x00\x12:\n\x0ftokenGetNftInfo\x18\x9b\x01 \x01(\x0b\x32\x1e.proto.TokenGetNftInfoResponseH\x00\x12<\n\x10tokenGetNftInfos\x18\x9c\x01 \x01(\x0b\x32\x1f.proto.TokenGetNftInfosResponseH\x00\x12J\n\x17networkGetExecutionTime\x18\x9d\x01 \x01(\x0b\x32&.proto.NetworkGetExecutionTimeResponseH\x00\x12;\n\x0e\x61\x63\x63ountDetails\x18\x9e\x01 \x01(\x0b\x32 .proto.GetAccountDetailsResponseH\x00\x42\n\n\x08responseB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'response_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_RESPONSE']._serialized_start=726 - _globals['_RESPONSE']._serialized_end=2376 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/response_pb2_grpc.py b/src/proto/response_pb2_grpc.py deleted file mode 100644 index da9f046..0000000 --- a/src/proto/response_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in response_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/schedulable_transaction_body_pb2.py b/src/proto/schedulable_transaction_body_pb2.py deleted file mode 100644 index dd0681e..0000000 --- a/src/proto/schedulable_transaction_body_pb2.py +++ /dev/null @@ -1,83 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: schedulable_transaction_body.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'schedulable_transaction_body.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import system_delete_pb2 as system__delete__pb2 -from . import system_undelete_pb2 as system__undelete__pb2 -from . import freeze_pb2 as freeze__pb2 -from . import contract_call_pb2 as contract__call__pb2 -from . import contract_create_pb2 as contract__create__pb2 -from . import contract_update_pb2 as contract__update__pb2 -from . import crypto_create_pb2 as crypto__create__pb2 -from . import crypto_delete_pb2 as crypto__delete__pb2 -from . import crypto_transfer_pb2 as crypto__transfer__pb2 -from . import crypto_update_pb2 as crypto__update__pb2 -from . import crypto_approve_allowance_pb2 as crypto__approve__allowance__pb2 -from . import crypto_delete_allowance_pb2 as crypto__delete__allowance__pb2 -from . import file_append_pb2 as file__append__pb2 -from . import file_create_pb2 as file__create__pb2 -from . import file_delete_pb2 as file__delete__pb2 -from . import file_update_pb2 as file__update__pb2 -from . import contract_delete_pb2 as contract__delete__pb2 -from . import consensus_create_topic_pb2 as consensus__create__topic__pb2 -from . import consensus_update_topic_pb2 as consensus__update__topic__pb2 -from . import consensus_delete_topic_pb2 as consensus__delete__topic__pb2 -from . import consensus_submit_message_pb2 as consensus__submit__message__pb2 -from . import token_create_pb2 as token__create__pb2 -from . import token_freeze_account_pb2 as token__freeze__account__pb2 -from . import token_unfreeze_account_pb2 as token__unfreeze__account__pb2 -from . import token_grant_kyc_pb2 as token__grant__kyc__pb2 -from . import token_revoke_kyc_pb2 as token__revoke__kyc__pb2 -from . import token_delete_pb2 as token__delete__pb2 -from . import token_update_pb2 as token__update__pb2 -from . import token_mint_pb2 as token__mint__pb2 -from . import token_burn_pb2 as token__burn__pb2 -from . import token_wipe_account_pb2 as token__wipe__account__pb2 -from . import token_associate_pb2 as token__associate__pb2 -from . import token_dissociate_pb2 as token__dissociate__pb2 -from . import token_fee_schedule_update_pb2 as token__fee__schedule__update__pb2 -from . import token_pause_pb2 as token__pause__pb2 -from . import token_unpause_pb2 as token__unpause__pb2 -from . import token_update_nfts_pb2 as token__update__nfts__pb2 -from . import token_reject_pb2 as token__reject__pb2 -from . import token_cancel_airdrop_pb2 as token__cancel__airdrop__pb2 -from . import token_claim_airdrop_pb2 as token__claim__airdrop__pb2 -from . import token_airdrop_pb2 as token__airdrop__pb2 -from . import schedule_delete_pb2 as schedule__delete__pb2 -from . import util_prng_pb2 as util__prng__pb2 -from . import node_create_pb2 as node__create__pb2 -from . import node_update_pb2 as node__update__pb2 -from . import node_delete_pb2 as node__delete__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"schedulable_transaction_body.proto\x12\x05proto\x1a\x13system_delete.proto\x1a\x15system_undelete.proto\x1a\x0c\x66reeze.proto\x1a\x13\x63ontract_call.proto\x1a\x15\x63ontract_create.proto\x1a\x15\x63ontract_update.proto\x1a\x13\x63rypto_create.proto\x1a\x13\x63rypto_delete.proto\x1a\x15\x63rypto_transfer.proto\x1a\x13\x63rypto_update.proto\x1a\x1e\x63rypto_approve_allowance.proto\x1a\x1d\x63rypto_delete_allowance.proto\x1a\x11\x66ile_append.proto\x1a\x11\x66ile_create.proto\x1a\x11\x66ile_delete.proto\x1a\x11\x66ile_update.proto\x1a\x15\x63ontract_delete.proto\x1a\x1c\x63onsensus_create_topic.proto\x1a\x1c\x63onsensus_update_topic.proto\x1a\x1c\x63onsensus_delete_topic.proto\x1a\x1e\x63onsensus_submit_message.proto\x1a\x12token_create.proto\x1a\x1atoken_freeze_account.proto\x1a\x1ctoken_unfreeze_account.proto\x1a\x15token_grant_kyc.proto\x1a\x16token_revoke_kyc.proto\x1a\x12token_delete.proto\x1a\x12token_update.proto\x1a\x10token_mint.proto\x1a\x10token_burn.proto\x1a\x18token_wipe_account.proto\x1a\x15token_associate.proto\x1a\x16token_dissociate.proto\x1a\x1ftoken_fee_schedule_update.proto\x1a\x11token_pause.proto\x1a\x13token_unpause.proto\x1a\x17token_update_nfts.proto\x1a\x12token_reject.proto\x1a\x1atoken_cancel_airdrop.proto\x1a\x19token_claim_airdrop.proto\x1a\x13token_airdrop.proto\x1a\x15schedule_delete.proto\x1a\x0futil_prng.proto\x1a\x11node_create.proto\x1a\x11node_update.proto\x1a\x11node_delete.proto\"\x9e\x18\n\x1aSchedulableTransactionBody\x12\x16\n\x0etransactionFee\x18\x01 \x01(\x04\x12\x0c\n\x04memo\x18\x02 \x01(\t\x12:\n\x0c\x63ontractCall\x18\x03 \x01(\x0b\x32\".proto.ContractCallTransactionBodyH\x00\x12\x46\n\x16\x63ontractCreateInstance\x18\x04 \x01(\x0b\x32$.proto.ContractCreateTransactionBodyH\x00\x12\x46\n\x16\x63ontractUpdateInstance\x18\x05 \x01(\x0b\x32$.proto.ContractUpdateTransactionBodyH\x00\x12\x46\n\x16\x63ontractDeleteInstance\x18\x06 \x01(\x0b\x32$.proto.ContractDeleteTransactionBodyH\x00\x12N\n\x16\x63ryptoApproveAllowance\x18% \x01(\x0b\x32,.proto.CryptoApproveAllowanceTransactionBodyH\x00\x12L\n\x15\x63ryptoDeleteAllowance\x18& \x01(\x0b\x32+.proto.CryptoDeleteAllowanceTransactionBodyH\x00\x12\x41\n\x13\x63ryptoCreateAccount\x18\x07 \x01(\x0b\x32\".proto.CryptoCreateTransactionBodyH\x00\x12:\n\x0c\x63ryptoDelete\x18\x08 \x01(\x0b\x32\".proto.CryptoDeleteTransactionBodyH\x00\x12>\n\x0e\x63ryptoTransfer\x18\t \x01(\x0b\x32$.proto.CryptoTransferTransactionBodyH\x00\x12\x41\n\x13\x63ryptoUpdateAccount\x18\n \x01(\x0b\x32\".proto.CryptoUpdateTransactionBodyH\x00\x12\x36\n\nfileAppend\x18\x0b \x01(\x0b\x32 .proto.FileAppendTransactionBodyH\x00\x12\x36\n\nfileCreate\x18\x0c \x01(\x0b\x32 .proto.FileCreateTransactionBodyH\x00\x12\x36\n\nfileDelete\x18\r \x01(\x0b\x32 .proto.FileDeleteTransactionBodyH\x00\x12\x36\n\nfileUpdate\x18\x0e \x01(\x0b\x32 .proto.FileUpdateTransactionBodyH\x00\x12:\n\x0csystemDelete\x18\x0f \x01(\x0b\x32\".proto.SystemDeleteTransactionBodyH\x00\x12>\n\x0esystemUndelete\x18\x10 \x01(\x0b\x32$.proto.SystemUndeleteTransactionBodyH\x00\x12.\n\x06\x66reeze\x18\x11 \x01(\x0b\x32\x1c.proto.FreezeTransactionBodyH\x00\x12J\n\x14\x63onsensusCreateTopic\x18\x12 \x01(\x0b\x32*.proto.ConsensusCreateTopicTransactionBodyH\x00\x12J\n\x14\x63onsensusUpdateTopic\x18\x13 \x01(\x0b\x32*.proto.ConsensusUpdateTopicTransactionBodyH\x00\x12J\n\x14\x63onsensusDeleteTopic\x18\x14 \x01(\x0b\x32*.proto.ConsensusDeleteTopicTransactionBodyH\x00\x12N\n\x16\x63onsensusSubmitMessage\x18\x15 \x01(\x0b\x32,.proto.ConsensusSubmitMessageTransactionBodyH\x00\x12:\n\rtokenCreation\x18\x16 \x01(\x0b\x32!.proto.TokenCreateTransactionBodyH\x00\x12?\n\x0btokenFreeze\x18\x17 \x01(\x0b\x32(.proto.TokenFreezeAccountTransactionBodyH\x00\x12\x43\n\rtokenUnfreeze\x18\x18 \x01(\x0b\x32*.proto.TokenUnfreezeAccountTransactionBodyH\x00\x12<\n\rtokenGrantKyc\x18\x19 \x01(\x0b\x32#.proto.TokenGrantKycTransactionBodyH\x00\x12>\n\x0etokenRevokeKyc\x18\x1a \x01(\x0b\x32$.proto.TokenRevokeKycTransactionBodyH\x00\x12:\n\rtokenDeletion\x18\x1b \x01(\x0b\x32!.proto.TokenDeleteTransactionBodyH\x00\x12\x38\n\x0btokenUpdate\x18\x1c \x01(\x0b\x32!.proto.TokenUpdateTransactionBodyH\x00\x12\x34\n\ttokenMint\x18\x1d \x01(\x0b\x32\x1f.proto.TokenMintTransactionBodyH\x00\x12\x34\n\ttokenBurn\x18\x1e \x01(\x0b\x32\x1f.proto.TokenBurnTransactionBodyH\x00\x12;\n\ttokenWipe\x18\x1f \x01(\x0b\x32&.proto.TokenWipeAccountTransactionBodyH\x00\x12>\n\x0etokenAssociate\x18 \x01(\x0b\x32$.proto.TokenAssociateTransactionBodyH\x00\x12@\n\x0ftokenDissociate\x18! \x01(\x0b\x32%.proto.TokenDissociateTransactionBodyH\x00\x12Q\n\x19token_fee_schedule_update\x18\' \x01(\x0b\x32,.proto.TokenFeeScheduleUpdateTransactionBodyH\x00\x12\x37\n\x0btoken_pause\x18# \x01(\x0b\x32 .proto.TokenPauseTransactionBodyH\x00\x12;\n\rtoken_unpause\x18$ \x01(\x0b\x32\".proto.TokenUnpauseTransactionBodyH\x00\x12>\n\x0escheduleDelete\x18\" \x01(\x0b\x32$.proto.ScheduleDeleteTransactionBodyH\x00\x12\x33\n\tutil_prng\x18( \x01(\x0b\x32\x1e.proto.UtilPrngTransactionBodyH\x00\x12\x42\n\x11token_update_nfts\x18) \x01(\x0b\x32%.proto.TokenUpdateNftsTransactionBodyH\x00\x12Q\n\nnodeCreate\x18* \x01(\x0b\x32;.com.hedera.hapi.node.addressbook.NodeCreateTransactionBodyH\x00\x12Q\n\nnodeUpdate\x18+ \x01(\x0b\x32;.com.hedera.hapi.node.addressbook.NodeUpdateTransactionBodyH\x00\x12Q\n\nnodeDelete\x18, \x01(\x0b\x32;.com.hedera.hapi.node.addressbook.NodeDeleteTransactionBodyH\x00\x12\x38\n\x0btokenReject\x18- \x01(\x0b\x32!.proto.TokenRejectTransactionBodyH\x00\x12\x46\n\x12tokenCancelAirdrop\x18. \x01(\x0b\x32(.proto.TokenCancelAirdropTransactionBodyH\x00\x12\x44\n\x11tokenClaimAirdrop\x18/ \x01(\x0b\x32\'.proto.TokenClaimAirdropTransactionBodyH\x00\x12:\n\x0ctokenAirdrop\x18\x30 \x01(\x0b\x32\".proto.TokenAirdropTransactionBodyH\x00\x42\x06\n\x04\x64\x61taB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'schedulable_transaction_body_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_SCHEDULABLETRANSACTIONBODY']._serialized_start=1106 - _globals['_SCHEDULABLETRANSACTIONBODY']._serialized_end=4208 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/schedulable_transaction_body_pb2_grpc.py b/src/proto/schedulable_transaction_body_pb2_grpc.py deleted file mode 100644 index 8dd3c6c..0000000 --- a/src/proto/schedulable_transaction_body_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in schedulable_transaction_body_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/schedule_create_pb2.py b/src/proto/schedule_create_pb2.py deleted file mode 100644 index cc4071c..0000000 --- a/src/proto/schedule_create_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: schedule_create.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'schedule_create.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import timestamp_pb2 as timestamp__pb2 -from . import schedulable_transaction_body_pb2 as schedulable__transaction__body__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15schedule_create.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x0ftimestamp.proto\x1a\"schedulable_transaction_body.proto\"\xfe\x01\n\x1dScheduleCreateTransactionBody\x12\x43\n\x18scheduledTransactionBody\x18\x01 \x01(\x0b\x32!.proto.SchedulableTransactionBody\x12\x0c\n\x04memo\x18\x02 \x01(\t\x12\x1c\n\x08\x61\x64minKey\x18\x03 \x01(\x0b\x32\n.proto.Key\x12(\n\x0epayerAccountID\x18\x04 \x01(\x0b\x32\x10.proto.AccountID\x12)\n\x0f\x65xpiration_time\x18\x05 \x01(\x0b\x32\x10.proto.Timestamp\x12\x17\n\x0fwait_for_expiry\x18\r \x01(\x08\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'schedule_create_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_SCHEDULECREATETRANSACTIONBODY']._serialized_start=105 - _globals['_SCHEDULECREATETRANSACTIONBODY']._serialized_end=359 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/schedule_create_pb2_grpc.py b/src/proto/schedule_create_pb2_grpc.py deleted file mode 100644 index b91493d..0000000 --- a/src/proto/schedule_create_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in schedule_create_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/schedule_delete_pb2.py b/src/proto/schedule_delete_pb2.py deleted file mode 100644 index 97b4260..0000000 --- a/src/proto/schedule_delete_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: schedule_delete.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'schedule_delete.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15schedule_delete.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"F\n\x1dScheduleDeleteTransactionBody\x12%\n\nscheduleID\x18\x01 \x01(\x0b\x32\x11.proto.ScheduleIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'schedule_delete_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_SCHEDULEDELETETRANSACTIONBODY']._serialized_start=51 - _globals['_SCHEDULEDELETETRANSACTIONBODY']._serialized_end=121 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/schedule_delete_pb2_grpc.py b/src/proto/schedule_delete_pb2_grpc.py deleted file mode 100644 index db6e4ea..0000000 --- a/src/proto/schedule_delete_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in schedule_delete_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/schedule_get_info_pb2.py b/src/proto/schedule_get_info_pb2.py deleted file mode 100644 index 9ad51bf..0000000 --- a/src/proto/schedule_get_info_pb2.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: schedule_get_info.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'schedule_get_info.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import timestamp_pb2 as timestamp__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 -from . import schedulable_transaction_body_pb2 as schedulable__transaction__body__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17schedule_get_info.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x0ftimestamp.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\x1a\"schedulable_transaction_body.proto\"a\n\x14ScheduleGetInfoQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12%\n\nscheduleID\x18\x02 \x01(\x0b\x32\x11.proto.ScheduleID\"\x88\x04\n\x0cScheduleInfo\x12%\n\nscheduleID\x18\x01 \x01(\x0b\x32\x11.proto.ScheduleID\x12)\n\rdeletion_time\x18\x02 \x01(\x0b\x32\x10.proto.TimestampH\x00\x12*\n\x0e\x65xecution_time\x18\x03 \x01(\x0b\x32\x10.proto.TimestampH\x00\x12(\n\x0e\x65xpirationTime\x18\x04 \x01(\x0b\x32\x10.proto.Timestamp\x12\x43\n\x18scheduledTransactionBody\x18\x05 \x01(\x0b\x32!.proto.SchedulableTransactionBody\x12\x0c\n\x04memo\x18\x06 \x01(\t\x12\x1c\n\x08\x61\x64minKey\x18\x07 \x01(\x0b\x32\n.proto.Key\x12\x1f\n\x07signers\x18\x08 \x01(\x0b\x32\x0e.proto.KeyList\x12*\n\x10\x63reatorAccountID\x18\t \x01(\x0b\x32\x10.proto.AccountID\x12(\n\x0epayerAccountID\x18\n \x01(\x0b\x32\x10.proto.AccountID\x12\x34\n\x16scheduledTransactionID\x18\x0b \x01(\x0b\x32\x14.proto.TransactionID\x12\x11\n\tledger_id\x18\x0c \x01(\x0c\x12\x17\n\x0fwait_for_expiry\x18\r \x01(\x08\x42\x06\n\x04\x64\x61ta\"k\n\x17ScheduleGetInfoResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12)\n\x0cscheduleInfo\x18\x02 \x01(\x0b\x32\x13.proto.ScheduleInfoB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'schedule_get_info_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_SCHEDULEGETINFOQUERY']._serialized_start=149 - _globals['_SCHEDULEGETINFOQUERY']._serialized_end=246 - _globals['_SCHEDULEINFO']._serialized_start=249 - _globals['_SCHEDULEINFO']._serialized_end=769 - _globals['_SCHEDULEGETINFORESPONSE']._serialized_start=771 - _globals['_SCHEDULEGETINFORESPONSE']._serialized_end=878 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/schedule_get_info_pb2_grpc.py b/src/proto/schedule_get_info_pb2_grpc.py deleted file mode 100644 index 111a123..0000000 --- a/src/proto/schedule_get_info_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in schedule_get_info_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/schedule_service_pb2.py b/src/proto/schedule_service_pb2.py deleted file mode 100644 index 100abc8..0000000 --- a/src/proto/schedule_service_pb2.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: schedule_service.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'schedule_service.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import query_pb2 as query__pb2 -from . import response_pb2 as response__pb2 -from . import transaction_response_pb2 as transaction__response__pb2 -from . import transaction_pb2 as transaction__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16schedule_service.proto\x12\x05proto\x1a\x0bquery.proto\x1a\x0eresponse.proto\x1a\x1atransaction_response.proto\x1a\x11transaction.proto2\x87\x02\n\x0fScheduleService\x12@\n\x0e\x63reateSchedule\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12>\n\x0csignSchedule\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12@\n\x0e\x64\x65leteSchedule\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12\x30\n\x0fgetScheduleInfo\x12\x0c.proto.Query\x1a\x0f.proto.ResponseB(\n&com.hederahashgraph.service.proto.javab\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'schedule_service_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n&com.hederahashgraph.service.proto.java' - _globals['_SCHEDULESERVICE']._serialized_start=110 - _globals['_SCHEDULESERVICE']._serialized_end=373 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/schedule_service_pb2_grpc.py b/src/proto/schedule_service_pb2_grpc.py deleted file mode 100644 index 1b4bae8..0000000 --- a/src/proto/schedule_service_pb2_grpc.py +++ /dev/null @@ -1,402 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - -from . import query_pb2 as query__pb2 -from . import response_pb2 as response__pb2 -from . import transaction_pb2 as transaction__pb2 -from . import transaction_response_pb2 as transaction__response__pb2 - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in schedule_service_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) - - -class ScheduleServiceStub(object): - """* - Transactions and queries for the Schedule Service - - The Schedule Service allows transactions to be submitted without all the required signatures and - allows anyone to provide the required signatures independently after a transaction has already - been created. The transactions can be executed immediately when all required signatures are received - or at a future date if Long Term Scheduled Transactions are enabled. - - Execution: - - Scheduled Transactions are executed in two different modes. - - 1. If Long Term Scheduled Transactions are enabled and wait_for_expiry was set to true on the - ScheduleCreate, then the transaction will be executed at the expiration_time specified on the - ScheduleCreate. - - 2. Otherwise Scheduled Transactions are executed once all required signatures are collected and witnessed. - Every time new signature is provided, a check is performed on the "readiness" of the execution. - The Scheduled Transaction will be executed immediately after the transaction that triggered it. - - NOTICE: - A Scheduled Transaction being ready to execute, or even not ready to execute, at the time a ScheduleCreate or - ScheduleSign comes in does not guarantee it will stay that way. Any number of things can happen over time that - impact the transaction. - - For example, account keys can change, accounts can be deleted, and account balances can change. - - A particularly noteworthy case is if Long Term Scheduled Transactions are enabled and signature requirements for a Scheduled - Transaction change such that existing signatures become sufficient to allow the transaction to go through. In this case the transaction - will execute at expiration_time unless a ScheduleSign comes in to push it through. - - Transaction Record: - - If a Scheduled Transaction is executed immediately following the transaction that provided all required signatures, - the timestamp of the Scheduled Transaction will be equal to consensusTimestamp + 1 nano, where - consensusTimestamp is the timestamp of the transaction that triggered the execution. - - The Transaction ID of the Scheduled Transaction will have the scheduled property set to true and - inherit the transactionValidStart and accountID from the ScheduleCreate transaction. - - The scheduleRef property of the transaction record will be populated with the ScheduleID of the - Scheduled Transaction. - - Post execution: - - After execution, a Scheduled Transaction will remain in state and can be queried using GetScheduleInfo until expiration. - - Expiry: - - The expiration time of a schedule is controlled by it's expiration_time. If Long Term Scheduled Transactions are disabled, - the expiration_time is always 30 minutes in the future. - - Once a given Scheduled Transaction expires, it will be removed from the ledger and any upcoming - operation referring the ScheduleID will resolve to INVALID_SCHEDULE_ID. - - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.createSchedule = channel.unary_unary( - '/proto.ScheduleService/createSchedule', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.signSchedule = channel.unary_unary( - '/proto.ScheduleService/signSchedule', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.deleteSchedule = channel.unary_unary( - '/proto.ScheduleService/deleteSchedule', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.getScheduleInfo = channel.unary_unary( - '/proto.ScheduleService/getScheduleInfo', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - - -class ScheduleServiceServicer(object): - """* - Transactions and queries for the Schedule Service - - The Schedule Service allows transactions to be submitted without all the required signatures and - allows anyone to provide the required signatures independently after a transaction has already - been created. The transactions can be executed immediately when all required signatures are received - or at a future date if Long Term Scheduled Transactions are enabled. - - Execution: - - Scheduled Transactions are executed in two different modes. - - 1. If Long Term Scheduled Transactions are enabled and wait_for_expiry was set to true on the - ScheduleCreate, then the transaction will be executed at the expiration_time specified on the - ScheduleCreate. - - 2. Otherwise Scheduled Transactions are executed once all required signatures are collected and witnessed. - Every time new signature is provided, a check is performed on the "readiness" of the execution. - The Scheduled Transaction will be executed immediately after the transaction that triggered it. - - NOTICE: - A Scheduled Transaction being ready to execute, or even not ready to execute, at the time a ScheduleCreate or - ScheduleSign comes in does not guarantee it will stay that way. Any number of things can happen over time that - impact the transaction. - - For example, account keys can change, accounts can be deleted, and account balances can change. - - A particularly noteworthy case is if Long Term Scheduled Transactions are enabled and signature requirements for a Scheduled - Transaction change such that existing signatures become sufficient to allow the transaction to go through. In this case the transaction - will execute at expiration_time unless a ScheduleSign comes in to push it through. - - Transaction Record: - - If a Scheduled Transaction is executed immediately following the transaction that provided all required signatures, - the timestamp of the Scheduled Transaction will be equal to consensusTimestamp + 1 nano, where - consensusTimestamp is the timestamp of the transaction that triggered the execution. - - The Transaction ID of the Scheduled Transaction will have the scheduled property set to true and - inherit the transactionValidStart and accountID from the ScheduleCreate transaction. - - The scheduleRef property of the transaction record will be populated with the ScheduleID of the - Scheduled Transaction. - - Post execution: - - After execution, a Scheduled Transaction will remain in state and can be queried using GetScheduleInfo until expiration. - - Expiry: - - The expiration time of a schedule is controlled by it's expiration_time. If Long Term Scheduled Transactions are disabled, - the expiration_time is always 30 minutes in the future. - - Once a given Scheduled Transaction expires, it will be removed from the ledger and any upcoming - operation referring the ScheduleID will resolve to INVALID_SCHEDULE_ID. - - """ - - def createSchedule(self, request, context): - """* - Creates a new Schedule by submitting the transaction - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def signSchedule(self, request, context): - """* - Signs a new Schedule by submitting the transaction - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def deleteSchedule(self, request, context): - """* - Deletes a new Schedule by submitting the transaction - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getScheduleInfo(self, request, context): - """* - Retrieves the metadata of a schedule entity - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ScheduleServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'createSchedule': grpc.unary_unary_rpc_method_handler( - servicer.createSchedule, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'signSchedule': grpc.unary_unary_rpc_method_handler( - servicer.signSchedule, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'deleteSchedule': grpc.unary_unary_rpc_method_handler( - servicer.deleteSchedule, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'getScheduleInfo': grpc.unary_unary_rpc_method_handler( - servicer.getScheduleInfo, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'proto.ScheduleService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('proto.ScheduleService', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class ScheduleService(object): - """* - Transactions and queries for the Schedule Service - - The Schedule Service allows transactions to be submitted without all the required signatures and - allows anyone to provide the required signatures independently after a transaction has already - been created. The transactions can be executed immediately when all required signatures are received - or at a future date if Long Term Scheduled Transactions are enabled. - - Execution: - - Scheduled Transactions are executed in two different modes. - - 1. If Long Term Scheduled Transactions are enabled and wait_for_expiry was set to true on the - ScheduleCreate, then the transaction will be executed at the expiration_time specified on the - ScheduleCreate. - - 2. Otherwise Scheduled Transactions are executed once all required signatures are collected and witnessed. - Every time new signature is provided, a check is performed on the "readiness" of the execution. - The Scheduled Transaction will be executed immediately after the transaction that triggered it. - - NOTICE: - A Scheduled Transaction being ready to execute, or even not ready to execute, at the time a ScheduleCreate or - ScheduleSign comes in does not guarantee it will stay that way. Any number of things can happen over time that - impact the transaction. - - For example, account keys can change, accounts can be deleted, and account balances can change. - - A particularly noteworthy case is if Long Term Scheduled Transactions are enabled and signature requirements for a Scheduled - Transaction change such that existing signatures become sufficient to allow the transaction to go through. In this case the transaction - will execute at expiration_time unless a ScheduleSign comes in to push it through. - - Transaction Record: - - If a Scheduled Transaction is executed immediately following the transaction that provided all required signatures, - the timestamp of the Scheduled Transaction will be equal to consensusTimestamp + 1 nano, where - consensusTimestamp is the timestamp of the transaction that triggered the execution. - - The Transaction ID of the Scheduled Transaction will have the scheduled property set to true and - inherit the transactionValidStart and accountID from the ScheduleCreate transaction. - - The scheduleRef property of the transaction record will be populated with the ScheduleID of the - Scheduled Transaction. - - Post execution: - - After execution, a Scheduled Transaction will remain in state and can be queried using GetScheduleInfo until expiration. - - Expiry: - - The expiration time of a schedule is controlled by it's expiration_time. If Long Term Scheduled Transactions are disabled, - the expiration_time is always 30 minutes in the future. - - Once a given Scheduled Transaction expires, it will be removed from the ledger and any upcoming - operation referring the ScheduleID will resolve to INVALID_SCHEDULE_ID. - - """ - - @staticmethod - def createSchedule(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.ScheduleService/createSchedule', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def signSchedule(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.ScheduleService/signSchedule', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def deleteSchedule(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.ScheduleService/deleteSchedule', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def getScheduleInfo(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.ScheduleService/getScheduleInfo', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/src/proto/schedule_sign_pb2.py b/src/proto/schedule_sign_pb2.py deleted file mode 100644 index 6644314..0000000 --- a/src/proto/schedule_sign_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: schedule_sign.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'schedule_sign.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13schedule_sign.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"D\n\x1bScheduleSignTransactionBody\x12%\n\nscheduleID\x18\x01 \x01(\x0b\x32\x11.proto.ScheduleIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'schedule_sign_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_SCHEDULESIGNTRANSACTIONBODY']._serialized_start=49 - _globals['_SCHEDULESIGNTRANSACTIONBODY']._serialized_end=117 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/schedule_sign_pb2_grpc.py b/src/proto/schedule_sign_pb2_grpc.py deleted file mode 100644 index 00ade71..0000000 --- a/src/proto/schedule_sign_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in schedule_sign_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/smart_contract_service_pb2.py b/src/proto/smart_contract_service_pb2.py deleted file mode 100644 index 7b9e19b..0000000 --- a/src/proto/smart_contract_service_pb2.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: smart_contract_service.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'smart_contract_service.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import transaction_response_pb2 as transaction__response__pb2 -from . import query_pb2 as query__pb2 -from . import response_pb2 as response__pb2 -from . import transaction_pb2 as transaction__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1csmart_contract_service.proto\x12\x05proto\x1a\x1atransaction_response.proto\x1a\x0bquery.proto\x1a\x0eresponse.proto\x1a\x11transaction.proto2\xf7\x05\n\x14SmartContractService\x12@\n\x0e\x63reateContract\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12@\n\x0eupdateContract\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12\x44\n\x12\x63ontractCallMethod\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12\x30\n\x0fgetContractInfo\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12\x38\n\x17\x63ontractCallLocalMethod\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12\x34\n\x13\x43ontractGetBytecode\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12\x30\n\x0fgetBySolidityID\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12=\n\x17getTxRecordByContractID\x12\x0c.proto.Query\x1a\x0f.proto.Response\"\x03\x88\x02\x01\x12@\n\x0e\x64\x65leteContract\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12>\n\x0csystemDelete\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12@\n\x0esystemUndelete\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12>\n\x0c\x63\x61llEthereum\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponseB(\n&com.hederahashgraph.service.proto.javab\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'smart_contract_service_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n&com.hederahashgraph.service.proto.java' - _globals['_SMARTCONTRACTSERVICE'].methods_by_name['getTxRecordByContractID']._loaded_options = None - _globals['_SMARTCONTRACTSERVICE'].methods_by_name['getTxRecordByContractID']._serialized_options = b'\210\002\001' - _globals['_SMARTCONTRACTSERVICE']._serialized_start=116 - _globals['_SMARTCONTRACTSERVICE']._serialized_end=875 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/smart_contract_service_pb2_grpc.py b/src/proto/smart_contract_service_pb2_grpc.py deleted file mode 100644 index 4b72e81..0000000 --- a/src/proto/smart_contract_service_pb2_grpc.py +++ /dev/null @@ -1,604 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - -from . import query_pb2 as query__pb2 -from . import response_pb2 as response__pb2 -from . import transaction_pb2 as transaction__pb2 -from . import transaction_response_pb2 as transaction__response__pb2 - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in smart_contract_service_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) - - -class SmartContractServiceStub(object): - """* - Transactions and queries for the file service. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.createContract = channel.unary_unary( - '/proto.SmartContractService/createContract', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.updateContract = channel.unary_unary( - '/proto.SmartContractService/updateContract', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.contractCallMethod = channel.unary_unary( - '/proto.SmartContractService/contractCallMethod', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.getContractInfo = channel.unary_unary( - '/proto.SmartContractService/getContractInfo', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.contractCallLocalMethod = channel.unary_unary( - '/proto.SmartContractService/contractCallLocalMethod', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.ContractGetBytecode = channel.unary_unary( - '/proto.SmartContractService/ContractGetBytecode', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.getBySolidityID = channel.unary_unary( - '/proto.SmartContractService/getBySolidityID', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.getTxRecordByContractID = channel.unary_unary( - '/proto.SmartContractService/getTxRecordByContractID', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.deleteContract = channel.unary_unary( - '/proto.SmartContractService/deleteContract', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.systemDelete = channel.unary_unary( - '/proto.SmartContractService/systemDelete', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.systemUndelete = channel.unary_unary( - '/proto.SmartContractService/systemUndelete', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.callEthereum = channel.unary_unary( - '/proto.SmartContractService/callEthereum', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - - -class SmartContractServiceServicer(object): - """* - Transactions and queries for the file service. - """ - - def createContract(self, request, context): - """* - Creates a contract - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def updateContract(self, request, context): - """* - Updates a contract with the content - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def contractCallMethod(self, request, context): - """* - Calls a contract - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getContractInfo(self, request, context): - """* - Retrieves the contract information - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def contractCallLocalMethod(self, request, context): - """* - Calls a smart contract to be run on a single node - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ContractGetBytecode(self, request, context): - """* - Retrieves the runtime code of a contract - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getBySolidityID(self, request, context): - """* - Retrieves a contract by its Solidity address - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getTxRecordByContractID(self, request, context): - """* - Always returns an empty record list, as contract accounts are never effective payers for - transactions - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def deleteContract(self, request, context): - """* - Deletes a contract instance and transfers any remaining hbars to a specified receiver - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def systemDelete(self, request, context): - """* - Deletes a contract if the submitting account has network admin privileges - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def systemUndelete(self, request, context): - """* - Undeletes a contract if the submitting account has network admin privileges - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def callEthereum(self, request, context): - """* - Ethereum transaction - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_SmartContractServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'createContract': grpc.unary_unary_rpc_method_handler( - servicer.createContract, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'updateContract': grpc.unary_unary_rpc_method_handler( - servicer.updateContract, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'contractCallMethod': grpc.unary_unary_rpc_method_handler( - servicer.contractCallMethod, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'getContractInfo': grpc.unary_unary_rpc_method_handler( - servicer.getContractInfo, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'contractCallLocalMethod': grpc.unary_unary_rpc_method_handler( - servicer.contractCallLocalMethod, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'ContractGetBytecode': grpc.unary_unary_rpc_method_handler( - servicer.ContractGetBytecode, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'getBySolidityID': grpc.unary_unary_rpc_method_handler( - servicer.getBySolidityID, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'getTxRecordByContractID': grpc.unary_unary_rpc_method_handler( - servicer.getTxRecordByContractID, - request_deserializer=query__pb2.Query.FromString, - response_serializer=response__pb2.Response.SerializeToString, - ), - 'deleteContract': grpc.unary_unary_rpc_method_handler( - servicer.deleteContract, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'systemDelete': grpc.unary_unary_rpc_method_handler( - servicer.systemDelete, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'systemUndelete': grpc.unary_unary_rpc_method_handler( - servicer.systemUndelete, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - 'callEthereum': grpc.unary_unary_rpc_method_handler( - servicer.callEthereum, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=transaction__response__pb2.TransactionResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'proto.SmartContractService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('proto.SmartContractService', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class SmartContractService(object): - """* - Transactions and queries for the file service. - """ - - @staticmethod - def createContract(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.SmartContractService/createContract', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def updateContract(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.SmartContractService/updateContract', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def contractCallMethod(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.SmartContractService/contractCallMethod', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def getContractInfo(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.SmartContractService/getContractInfo', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def contractCallLocalMethod(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.SmartContractService/contractCallLocalMethod', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def ContractGetBytecode(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.SmartContractService/ContractGetBytecode', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def getBySolidityID(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.SmartContractService/getBySolidityID', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def getTxRecordByContractID(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.SmartContractService/getTxRecordByContractID', - query__pb2.Query.SerializeToString, - response__pb2.Response.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def deleteContract(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.SmartContractService/deleteContract', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def systemDelete(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.SmartContractService/systemDelete', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def systemUndelete(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.SmartContractService/systemUndelete', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def callEthereum(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/proto.SmartContractService/callEthereum', - transaction__pb2.Transaction.SerializeToString, - transaction__response__pb2.TransactionResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/src/proto/system_delete_pb2.py b/src/proto/system_delete_pb2.py deleted file mode 100644 index 1fef24f..0000000 --- a/src/proto/system_delete_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: system_delete.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'system_delete.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import timestamp_pb2 as timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13system_delete.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x0ftimestamp.proto\"\x9e\x01\n\x1bSystemDeleteTransactionBody\x12\x1f\n\x06\x66ileID\x18\x01 \x01(\x0b\x32\r.proto.FileIDH\x00\x12\'\n\ncontractID\x18\x02 \x01(\x0b\x32\x11.proto.ContractIDH\x00\x12/\n\x0e\x65xpirationTime\x18\x03 \x01(\x0b\x32\x17.proto.TimestampSecondsB\x04\n\x02idB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'system_delete_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_SYSTEMDELETETRANSACTIONBODY']._serialized_start=67 - _globals['_SYSTEMDELETETRANSACTIONBODY']._serialized_end=225 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/system_delete_pb2_grpc.py b/src/proto/system_delete_pb2_grpc.py deleted file mode 100644 index 91b066e..0000000 --- a/src/proto/system_delete_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in system_delete_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/system_undelete_pb2.py b/src/proto/system_undelete_pb2.py deleted file mode 100644 index 220c334..0000000 --- a/src/proto/system_undelete_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: system_undelete.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'system_undelete.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15system_undelete.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"o\n\x1dSystemUndeleteTransactionBody\x12\x1f\n\x06\x66ileID\x18\x01 \x01(\x0b\x32\r.proto.FileIDH\x00\x12\'\n\ncontractID\x18\x02 \x01(\x0b\x32\x11.proto.ContractIDH\x00\x42\x04\n\x02idB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'system_undelete_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_SYSTEMUNDELETETRANSACTIONBODY']._serialized_start=51 - _globals['_SYSTEMUNDELETETRANSACTIONBODY']._serialized_end=162 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/system_undelete_pb2_grpc.py b/src/proto/system_undelete_pb2_grpc.py deleted file mode 100644 index 30544e0..0000000 --- a/src/proto/system_undelete_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in system_undelete_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/throttle_definitions_pb2.py b/src/proto/throttle_definitions_pb2.py deleted file mode 100644 index a2a8720..0000000 --- a/src/proto/throttle_definitions_pb2.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: throttle_definitions.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'throttle_definitions.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1athrottle_definitions.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"W\n\rThrottleGroup\x12.\n\noperations\x18\x01 \x03(\x0e\x32\x1a.proto.HederaFunctionality\x12\x16\n\x0emilliOpsPerSec\x18\x02 \x01(\x04\"c\n\x0eThrottleBucket\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x15\n\rburstPeriodMs\x18\x02 \x01(\x04\x12,\n\x0ethrottleGroups\x18\x03 \x03(\x0b\x32\x14.proto.ThrottleGroup\"E\n\x13ThrottleDefinitions\x12.\n\x0fthrottleBuckets\x18\x01 \x03(\x0b\x32\x15.proto.ThrottleBucketB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'throttle_definitions_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_THROTTLEGROUP']._serialized_start=56 - _globals['_THROTTLEGROUP']._serialized_end=143 - _globals['_THROTTLEBUCKET']._serialized_start=145 - _globals['_THROTTLEBUCKET']._serialized_end=244 - _globals['_THROTTLEDEFINITIONS']._serialized_start=246 - _globals['_THROTTLEDEFINITIONS']._serialized_end=315 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/throttle_definitions_pb2_grpc.py b/src/proto/throttle_definitions_pb2_grpc.py deleted file mode 100644 index 11f3ce7..0000000 --- a/src/proto/throttle_definitions_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in throttle_definitions_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/timestamp_pb2.py b/src/proto/timestamp_pb2.py deleted file mode 100644 index 7c844e1..0000000 --- a/src/proto/timestamp_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: timestamp.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'timestamp.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0ftimestamp.proto\x12\x05proto\"+\n\tTimestamp\x12\x0f\n\x07seconds\x18\x01 \x01(\x03\x12\r\n\x05nanos\x18\x02 \x01(\x05\"#\n\x10TimestampSeconds\x12\x0f\n\x07seconds\x18\x01 \x01(\x03\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'timestamp_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TIMESTAMP']._serialized_start=26 - _globals['_TIMESTAMP']._serialized_end=69 - _globals['_TIMESTAMPSECONDS']._serialized_start=71 - _globals['_TIMESTAMPSECONDS']._serialized_end=106 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/timestamp_pb2_grpc.py b/src/proto/timestamp_pb2_grpc.py deleted file mode 100644 index 2995268..0000000 --- a/src/proto/timestamp_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in timestamp_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_airdrop_pb2.py b/src/proto/token_airdrop_pb2.py deleted file mode 100644 index 23a1080..0000000 --- a/src/proto/token_airdrop_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_airdrop.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_airdrop.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13token_airdrop.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"P\n\x1bTokenAirdropTransactionBody\x12\x31\n\x0ftoken_transfers\x18\x01 \x03(\x0b\x32\x18.proto.TokenTransferListB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_airdrop_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENAIRDROPTRANSACTIONBODY']._serialized_start=49 - _globals['_TOKENAIRDROPTRANSACTIONBODY']._serialized_end=129 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_airdrop_pb2_grpc.py b/src/proto/token_airdrop_pb2_grpc.py deleted file mode 100644 index 294e2d6..0000000 --- a/src/proto/token_airdrop_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_airdrop_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_associate_pb2.py b/src/proto/token_associate_pb2.py deleted file mode 100644 index ba862cd..0000000 --- a/src/proto/token_associate_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_associate.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_associate.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15token_associate.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"b\n\x1dTokenAssociateTransactionBody\x12!\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x10.proto.AccountID\x12\x1e\n\x06tokens\x18\x02 \x03(\x0b\x32\x0e.proto.TokenIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_associate_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENASSOCIATETRANSACTIONBODY']._serialized_start=51 - _globals['_TOKENASSOCIATETRANSACTIONBODY']._serialized_end=149 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_associate_pb2_grpc.py b/src/proto/token_associate_pb2_grpc.py deleted file mode 100644 index 9a87482..0000000 --- a/src/proto/token_associate_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_associate_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_burn_pb2.py b/src/proto/token_burn_pb2.py deleted file mode 100644 index dd77011..0000000 --- a/src/proto/token_burn_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_burn.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_burn.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10token_burn.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"`\n\x18TokenBurnTransactionBody\x12\x1d\n\x05token\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12\x0e\n\x06\x61mount\x18\x02 \x01(\x04\x12\x15\n\rserialNumbers\x18\x03 \x03(\x03\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_burn_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENBURNTRANSACTIONBODY']._serialized_start=46 - _globals['_TOKENBURNTRANSACTIONBODY']._serialized_end=142 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_burn_pb2_grpc.py b/src/proto/token_burn_pb2_grpc.py deleted file mode 100644 index e4504d5..0000000 --- a/src/proto/token_burn_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_burn_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_cancel_airdrop_pb2.py b/src/proto/token_cancel_airdrop_pb2.py deleted file mode 100644 index b169bba..0000000 --- a/src/proto/token_cancel_airdrop_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_cancel_airdrop.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_cancel_airdrop.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1atoken_cancel_airdrop.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"V\n!TokenCancelAirdropTransactionBody\x12\x31\n\x10pending_airdrops\x18\x01 \x03(\x0b\x32\x17.proto.PendingAirdropIdB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_cancel_airdrop_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENCANCELAIRDROPTRANSACTIONBODY']._serialized_start=56 - _globals['_TOKENCANCELAIRDROPTRANSACTIONBODY']._serialized_end=142 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_cancel_airdrop_pb2_grpc.py b/src/proto/token_cancel_airdrop_pb2_grpc.py deleted file mode 100644 index c6578eb..0000000 --- a/src/proto/token_cancel_airdrop_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_cancel_airdrop_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_claim_airdrop_pb2.py b/src/proto/token_claim_airdrop_pb2.py deleted file mode 100644 index b156487..0000000 --- a/src/proto/token_claim_airdrop_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_claim_airdrop.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_claim_airdrop.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19token_claim_airdrop.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"U\n TokenClaimAirdropTransactionBody\x12\x31\n\x10pending_airdrops\x18\x01 \x03(\x0b\x32\x17.proto.PendingAirdropIdB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_claim_airdrop_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENCLAIMAIRDROPTRANSACTIONBODY']._serialized_start=55 - _globals['_TOKENCLAIMAIRDROPTRANSACTIONBODY']._serialized_end=140 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_claim_airdrop_pb2_grpc.py b/src/proto/token_claim_airdrop_pb2_grpc.py deleted file mode 100644 index 33529c2..0000000 --- a/src/proto/token_claim_airdrop_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_claim_airdrop_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_create_pb2.py b/src/proto/token_create_pb2.py deleted file mode 100644 index 9a33322..0000000 --- a/src/proto/token_create_pb2.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_create.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_create.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import duration_pb2 as duration__pb2 -from . import basic_types_pb2 as basic__types__pb2 -from . import custom_fees_pb2 as custom__fees__pb2 -from . import timestamp_pb2 as timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12token_create.proto\x12\x05proto\x1a\x0e\x64uration.proto\x1a\x11\x62\x61sic_types.proto\x1a\x11\x63ustom_fees.proto\x1a\x0ftimestamp.proto\"\xbd\x05\n\x1aTokenCreateTransactionBody\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\x10\n\x08\x64\x65\x63imals\x18\x03 \x01(\r\x12\x15\n\rinitialSupply\x18\x04 \x01(\x04\x12\"\n\x08treasury\x18\x05 \x01(\x0b\x32\x10.proto.AccountID\x12\x1c\n\x08\x61\x64minKey\x18\x06 \x01(\x0b\x32\n.proto.Key\x12\x1a\n\x06kycKey\x18\x07 \x01(\x0b\x32\n.proto.Key\x12\x1d\n\tfreezeKey\x18\x08 \x01(\x0b\x32\n.proto.Key\x12\x1b\n\x07wipeKey\x18\t \x01(\x0b\x32\n.proto.Key\x12\x1d\n\tsupplyKey\x18\n \x01(\x0b\x32\n.proto.Key\x12\x15\n\rfreezeDefault\x18\x0b \x01(\x08\x12 \n\x06\x65xpiry\x18\r \x01(\x0b\x32\x10.proto.Timestamp\x12*\n\x10\x61utoRenewAccount\x18\x0e \x01(\x0b\x32\x10.proto.AccountID\x12(\n\x0f\x61utoRenewPeriod\x18\x0f \x01(\x0b\x32\x0f.proto.Duration\x12\x0c\n\x04memo\x18\x10 \x01(\t\x12#\n\ttokenType\x18\x11 \x01(\x0e\x32\x10.proto.TokenType\x12*\n\nsupplyType\x18\x12 \x01(\x0e\x32\x16.proto.TokenSupplyType\x12\x11\n\tmaxSupply\x18\x13 \x01(\x03\x12$\n\x10\x66\x65\x65_schedule_key\x18\x14 \x01(\x0b\x32\n.proto.Key\x12%\n\x0b\x63ustom_fees\x18\x15 \x03(\x0b\x32\x10.proto.CustomFee\x12\x1d\n\tpause_key\x18\x16 \x01(\x0b\x32\n.proto.Key\x12\x10\n\x08metadata\x18\x17 \x01(\x0c\x12 \n\x0cmetadata_key\x18\x18 \x01(\x0b\x32\n.proto.KeyB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_create_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENCREATETRANSACTIONBODY']._serialized_start=101 - _globals['_TOKENCREATETRANSACTIONBODY']._serialized_end=802 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_create_pb2_grpc.py b/src/proto/token_create_pb2_grpc.py deleted file mode 100644 index 754aa67..0000000 --- a/src/proto/token_create_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_create_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_delete_pb2.py b/src/proto/token_delete_pb2.py deleted file mode 100644 index 260e99b..0000000 --- a/src/proto/token_delete_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_delete.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_delete.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12token_delete.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\";\n\x1aTokenDeleteTransactionBody\x12\x1d\n\x05token\x18\x01 \x01(\x0b\x32\x0e.proto.TokenIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_delete_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENDELETETRANSACTIONBODY']._serialized_start=48 - _globals['_TOKENDELETETRANSACTIONBODY']._serialized_end=107 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_delete_pb2_grpc.py b/src/proto/token_delete_pb2_grpc.py deleted file mode 100644 index 9fd2c78..0000000 --- a/src/proto/token_delete_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_delete_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_dissociate_pb2.py b/src/proto/token_dissociate_pb2.py deleted file mode 100644 index f2ba583..0000000 --- a/src/proto/token_dissociate_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_dissociate.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_dissociate.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16token_dissociate.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"c\n\x1eTokenDissociateTransactionBody\x12!\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x10.proto.AccountID\x12\x1e\n\x06tokens\x18\x02 \x03(\x0b\x32\x0e.proto.TokenIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_dissociate_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENDISSOCIATETRANSACTIONBODY']._serialized_start=52 - _globals['_TOKENDISSOCIATETRANSACTIONBODY']._serialized_end=151 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_dissociate_pb2_grpc.py b/src/proto/token_dissociate_pb2_grpc.py deleted file mode 100644 index 664f361..0000000 --- a/src/proto/token_dissociate_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_dissociate_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_fee_schedule_update_pb2.py b/src/proto/token_fee_schedule_update_pb2.py deleted file mode 100644 index 8bd9e90..0000000 --- a/src/proto/token_fee_schedule_update_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_fee_schedule_update.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_fee_schedule_update.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import custom_fees_pb2 as custom__fees__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ftoken_fee_schedule_update.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x11\x63ustom_fees.proto\"p\n%TokenFeeScheduleUpdateTransactionBody\x12 \n\x08token_id\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12%\n\x0b\x63ustom_fees\x18\x02 \x03(\x0b\x32\x10.proto.CustomFeeB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_fee_schedule_update_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENFEESCHEDULEUPDATETRANSACTIONBODY']._serialized_start=80 - _globals['_TOKENFEESCHEDULEUPDATETRANSACTIONBODY']._serialized_end=192 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_fee_schedule_update_pb2_grpc.py b/src/proto/token_fee_schedule_update_pb2_grpc.py deleted file mode 100644 index 7832bcc..0000000 --- a/src/proto/token_fee_schedule_update_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_fee_schedule_update_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_freeze_account_pb2.py b/src/proto/token_freeze_account_pb2.py deleted file mode 100644 index 3e119b5..0000000 --- a/src/proto/token_freeze_account_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_freeze_account.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_freeze_account.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1atoken_freeze_account.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"e\n!TokenFreezeAccountTransactionBody\x12\x1d\n\x05token\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12!\n\x07\x61\x63\x63ount\x18\x02 \x01(\x0b\x32\x10.proto.AccountIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_freeze_account_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENFREEZEACCOUNTTRANSACTIONBODY']._serialized_start=56 - _globals['_TOKENFREEZEACCOUNTTRANSACTIONBODY']._serialized_end=157 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_freeze_account_pb2_grpc.py b/src/proto/token_freeze_account_pb2_grpc.py deleted file mode 100644 index 8c95f35..0000000 --- a/src/proto/token_freeze_account_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_freeze_account_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_get_account_nft_infos_pb2.py b/src/proto/token_get_account_nft_infos_pb2.py deleted file mode 100644 index f06ba2c..0000000 --- a/src/proto/token_get_account_nft_infos_pb2.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_get_account_nft_infos.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_get_account_nft_infos.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import token_get_nft_info_pb2 as token__get__nft__info__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!token_get_account_nft_infos.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x18token_get_nft_info.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\"\x83\x01\n\x1cTokenGetAccountNftInfosQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12#\n\taccountID\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12\r\n\x05start\x18\x03 \x01(\x03\x12\x0b\n\x03\x65nd\x18\x04 \x01(\x03\"k\n\x1fTokenGetAccountNftInfosResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12!\n\x04nfts\x18\x02 \x03(\x0b\x32\x13.proto.TokenNftInfoB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_get_account_nft_infos_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENGETACCOUNTNFTINFOSQUERY']._serialized_start=133 - _globals['_TOKENGETACCOUNTNFTINFOSQUERY']._serialized_end=264 - _globals['_TOKENGETACCOUNTNFTINFOSRESPONSE']._serialized_start=266 - _globals['_TOKENGETACCOUNTNFTINFOSRESPONSE']._serialized_end=373 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_get_account_nft_infos_pb2_grpc.py b/src/proto/token_get_account_nft_infos_pb2_grpc.py deleted file mode 100644 index 11c804b..0000000 --- a/src/proto/token_get_account_nft_infos_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_get_account_nft_infos_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_get_info_pb2.py b/src/proto/token_get_info_pb2.py deleted file mode 100644 index 6c42432..0000000 --- a/src/proto/token_get_info_pb2.py +++ /dev/null @@ -1,47 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_get_info.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_get_info.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import custom_fees_pb2 as custom__fees__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 -from . import timestamp_pb2 as timestamp__pb2 -from . import duration_pb2 as duration__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14token_get_info.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x11\x63ustom_fees.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\x1a\x0ftimestamp.proto\x1a\x0e\x64uration.proto\"V\n\x11TokenGetInfoQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12\x1d\n\x05token\x18\x02 \x01(\x0b\x32\x0e.proto.TokenID\"\xef\x06\n\tTokenInfo\x12\x1f\n\x07tokenId\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06symbol\x18\x03 \x01(\t\x12\x10\n\x08\x64\x65\x63imals\x18\x04 \x01(\r\x12\x13\n\x0btotalSupply\x18\x05 \x01(\x04\x12\"\n\x08treasury\x18\x06 \x01(\x0b\x32\x10.proto.AccountID\x12\x1c\n\x08\x61\x64minKey\x18\x07 \x01(\x0b\x32\n.proto.Key\x12\x1a\n\x06kycKey\x18\x08 \x01(\x0b\x32\n.proto.Key\x12\x1d\n\tfreezeKey\x18\t \x01(\x0b\x32\n.proto.Key\x12\x1b\n\x07wipeKey\x18\n \x01(\x0b\x32\n.proto.Key\x12\x1d\n\tsupplyKey\x18\x0b \x01(\x0b\x32\n.proto.Key\x12\x35\n\x13\x64\x65\x66\x61ultFreezeStatus\x18\x0c \x01(\x0e\x32\x18.proto.TokenFreezeStatus\x12/\n\x10\x64\x65\x66\x61ultKycStatus\x18\r \x01(\x0e\x32\x15.proto.TokenKycStatus\x12\x0f\n\x07\x64\x65leted\x18\x0e \x01(\x08\x12*\n\x10\x61utoRenewAccount\x18\x0f \x01(\x0b\x32\x10.proto.AccountID\x12(\n\x0f\x61utoRenewPeriod\x18\x10 \x01(\x0b\x32\x0f.proto.Duration\x12 \n\x06\x65xpiry\x18\x11 \x01(\x0b\x32\x10.proto.Timestamp\x12\x0c\n\x04memo\x18\x12 \x01(\t\x12#\n\ttokenType\x18\x13 \x01(\x0e\x32\x10.proto.TokenType\x12*\n\nsupplyType\x18\x14 \x01(\x0e\x32\x16.proto.TokenSupplyType\x12\x11\n\tmaxSupply\x18\x15 \x01(\x03\x12$\n\x10\x66\x65\x65_schedule_key\x18\x16 \x01(\x0b\x32\n.proto.Key\x12%\n\x0b\x63ustom_fees\x18\x17 \x03(\x0b\x32\x10.proto.CustomFee\x12\x1d\n\tpause_key\x18\x18 \x01(\x0b\x32\n.proto.Key\x12-\n\x0cpause_status\x18\x19 \x01(\x0e\x32\x17.proto.TokenPauseStatus\x12\x11\n\tledger_id\x18\x1a \x01(\x0c\x12\x10\n\x08metadata\x18\x1b \x01(\x0c\x12 \n\x0cmetadata_key\x18\x1c \x01(\x0b\x32\n.proto.Key\"b\n\x14TokenGetInfoResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12#\n\ttokenInfo\x18\x02 \x01(\x0b\x32\x10.proto.TokenInfoB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_get_info_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENGETINFOQUERY']._serialized_start=145 - _globals['_TOKENGETINFOQUERY']._serialized_end=231 - _globals['_TOKENINFO']._serialized_start=234 - _globals['_TOKENINFO']._serialized_end=1113 - _globals['_TOKENGETINFORESPONSE']._serialized_start=1115 - _globals['_TOKENGETINFORESPONSE']._serialized_end=1213 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_get_info_pb2_grpc.py b/src/proto/token_get_info_pb2_grpc.py deleted file mode 100644 index 9b6aa92..0000000 --- a/src/proto/token_get_info_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_get_info_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_get_nft_info_pb2.py b/src/proto/token_get_nft_info_pb2.py deleted file mode 100644 index aacd0cb..0000000 --- a/src/proto/token_get_nft_info_pb2.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_get_nft_info.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_get_nft_info.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 -from . import timestamp_pb2 as timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18token_get_nft_info.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\x1a\x0ftimestamp.proto\"W\n\x14TokenGetNftInfoQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12\x1b\n\x05nftID\x18\x02 \x01(\x0b\x32\x0c.proto.NftID\"\xc3\x01\n\x0cTokenNftInfo\x12\x1b\n\x05nftID\x18\x01 \x01(\x0b\x32\x0c.proto.NftID\x12#\n\taccountID\x18\x02 \x01(\x0b\x32\x10.proto.AccountID\x12&\n\x0c\x63reationTime\x18\x03 \x01(\x0b\x32\x10.proto.Timestamp\x12\x10\n\x08metadata\x18\x04 \x01(\x0c\x12\x11\n\tledger_id\x18\x05 \x01(\x0c\x12$\n\nspender_id\x18\x06 \x01(\x0b\x32\x10.proto.AccountID\"b\n\x17TokenGetNftInfoResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12 \n\x03nft\x18\x02 \x01(\x0b\x32\x13.proto.TokenNftInfoB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_get_nft_info_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENGETNFTINFOQUERY']._serialized_start=114 - _globals['_TOKENGETNFTINFOQUERY']._serialized_end=201 - _globals['_TOKENNFTINFO']._serialized_start=204 - _globals['_TOKENNFTINFO']._serialized_end=399 - _globals['_TOKENGETNFTINFORESPONSE']._serialized_start=401 - _globals['_TOKENGETNFTINFORESPONSE']._serialized_end=499 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_get_nft_info_pb2_grpc.py b/src/proto/token_get_nft_info_pb2_grpc.py deleted file mode 100644 index f5c2b7f..0000000 --- a/src/proto/token_get_nft_info_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_get_nft_info_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_get_nft_infos_pb2.py b/src/proto/token_get_nft_infos_pb2.py deleted file mode 100644 index 2ede440..0000000 --- a/src/proto/token_get_nft_infos_pb2.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_get_nft_infos.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_get_nft_infos.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 -from . import token_get_nft_info_pb2 as token__get__nft__info__pb2 -from . import query_header_pb2 as query__header__pb2 -from . import response_header_pb2 as response__header__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19token_get_nft_infos.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\x1a\x18token_get_nft_info.proto\x1a\x12query_header.proto\x1a\x15response_header.proto\"x\n\x15TokenGetNftInfosQuery\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.proto.QueryHeader\x12\x1f\n\x07tokenID\x18\x02 \x01(\x0b\x32\x0e.proto.TokenID\x12\r\n\x05start\x18\x03 \x01(\x03\x12\x0b\n\x03\x65nd\x18\x04 \x01(\x03\"\x85\x01\n\x18TokenGetNftInfosResponse\x12%\n\x06header\x18\x01 \x01(\x0b\x32\x15.proto.ResponseHeader\x12\x1f\n\x07tokenID\x18\x02 \x01(\x0b\x32\x0e.proto.TokenID\x12!\n\x04nfts\x18\x03 \x03(\x0b\x32\x13.proto.TokenNftInfoB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_get_nft_infos_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENGETNFTINFOSQUERY']._serialized_start=124 - _globals['_TOKENGETNFTINFOSQUERY']._serialized_end=244 - _globals['_TOKENGETNFTINFOSRESPONSE']._serialized_start=247 - _globals['_TOKENGETNFTINFOSRESPONSE']._serialized_end=380 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_get_nft_infos_pb2_grpc.py b/src/proto/token_get_nft_infos_pb2_grpc.py deleted file mode 100644 index 8aefe32..0000000 --- a/src/proto/token_get_nft_infos_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_get_nft_infos_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_grant_kyc_pb2.py b/src/proto/token_grant_kyc_pb2.py deleted file mode 100644 index c20440c..0000000 --- a/src/proto/token_grant_kyc_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_grant_kyc.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_grant_kyc.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15token_grant_kyc.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"`\n\x1cTokenGrantKycTransactionBody\x12\x1d\n\x05token\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12!\n\x07\x61\x63\x63ount\x18\x02 \x01(\x0b\x32\x10.proto.AccountIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_grant_kyc_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENGRANTKYCTRANSACTIONBODY']._serialized_start=51 - _globals['_TOKENGRANTKYCTRANSACTIONBODY']._serialized_end=147 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_grant_kyc_pb2_grpc.py b/src/proto/token_grant_kyc_pb2_grpc.py deleted file mode 100644 index 7dc6857..0000000 --- a/src/proto/token_grant_kyc_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_grant_kyc_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_mint_pb2.py b/src/proto/token_mint_pb2.py deleted file mode 100644 index d8032de..0000000 --- a/src/proto/token_mint_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_mint.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_mint.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10token_mint.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"[\n\x18TokenMintTransactionBody\x12\x1d\n\x05token\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12\x0e\n\x06\x61mount\x18\x02 \x01(\x04\x12\x10\n\x08metadata\x18\x03 \x03(\x0c\x42&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_mint_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENMINTTRANSACTIONBODY']._serialized_start=46 - _globals['_TOKENMINTTRANSACTIONBODY']._serialized_end=137 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_mint_pb2_grpc.py b/src/proto/token_mint_pb2_grpc.py deleted file mode 100644 index 3f85c81..0000000 --- a/src/proto/token_mint_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_mint_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_pause_pb2.py b/src/proto/token_pause_pb2.py deleted file mode 100644 index 1c252a8..0000000 --- a/src/proto/token_pause_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_pause.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_pause.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11token_pause.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\":\n\x19TokenPauseTransactionBody\x12\x1d\n\x05token\x18\x01 \x01(\x0b\x32\x0e.proto.TokenIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_pause_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENPAUSETRANSACTIONBODY']._serialized_start=47 - _globals['_TOKENPAUSETRANSACTIONBODY']._serialized_end=105 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_pause_pb2_grpc.py b/src/proto/token_pause_pb2_grpc.py deleted file mode 100644 index df84512..0000000 --- a/src/proto/token_pause_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_pause_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_reject_pb2.py b/src/proto/token_reject_pb2.py deleted file mode 100644 index bb0a853..0000000 --- a/src/proto/token_reject_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_reject.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_reject.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12token_reject.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"h\n\x1aTokenRejectTransactionBody\x12\x1f\n\x05owner\x18\x01 \x01(\x0b\x32\x10.proto.AccountID\x12)\n\nrejections\x18\x02 \x03(\x0b\x32\x15.proto.TokenReference\"k\n\x0eTokenReference\x12(\n\x0e\x66ungible_token\x18\x01 \x01(\x0b\x32\x0e.proto.TokenIDH\x00\x12\x1b\n\x03nft\x18\x02 \x01(\x0b\x32\x0c.proto.NftIDH\x00\x42\x12\n\x10token_identifierB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_reject_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENREJECTTRANSACTIONBODY']._serialized_start=48 - _globals['_TOKENREJECTTRANSACTIONBODY']._serialized_end=152 - _globals['_TOKENREFERENCE']._serialized_start=154 - _globals['_TOKENREFERENCE']._serialized_end=261 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_reject_pb2_grpc.py b/src/proto/token_reject_pb2_grpc.py deleted file mode 100644 index 88d256a..0000000 --- a/src/proto/token_reject_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_reject_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_revoke_kyc_pb2.py b/src/proto/token_revoke_kyc_pb2.py deleted file mode 100644 index ae9e2b7..0000000 --- a/src/proto/token_revoke_kyc_pb2.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_revoke_kyc.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_revoke_kyc.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import basic_types_pb2 as basic__types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16token_revoke_kyc.proto\x12\x05proto\x1a\x11\x62\x61sic_types.proto\"a\n\x1dTokenRevokeKycTransactionBody\x12\x1d\n\x05token\x18\x01 \x01(\x0b\x32\x0e.proto.TokenID\x12!\n\x07\x61\x63\x63ount\x18\x02 \x01(\x0b\x32\x10.proto.AccountIDB&\n\"com.hederahashgraph.api.proto.javaP\x01\x62\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_revoke_kyc_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\"com.hederahashgraph.api.proto.javaP\001' - _globals['_TOKENREVOKEKYCTRANSACTIONBODY']._serialized_start=52 - _globals['_TOKENREVOKEKYCTRANSACTIONBODY']._serialized_end=149 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_revoke_kyc_pb2_grpc.py b/src/proto/token_revoke_kyc_pb2_grpc.py deleted file mode 100644 index 6a451be..0000000 --- a/src/proto/token_revoke_kyc_pb2_grpc.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_revoke_kyc_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/src/proto/token_service_pb2.py b/src/proto/token_service_pb2.py deleted file mode 100644 index db62755..0000000 --- a/src/proto/token_service_pb2.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: token_service.proto -# Protobuf Python Version: 5.27.2 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 2, - '', - 'token_service.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import query_pb2 as query__pb2 -from . import response_pb2 as response__pb2 -from . import transaction_response_pb2 as transaction__response__pb2 -from . import transaction_pb2 as transaction__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13token_service.proto\x12\x05proto\x1a\x0bquery.proto\x1a\x0eresponse.proto\x1a\x1atransaction_response.proto\x1a\x11transaction.proto2\x8f\x0c\n\x0cTokenService\x12=\n\x0b\x63reateToken\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12=\n\x0bupdateToken\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12;\n\tmintToken\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12;\n\tburnToken\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12=\n\x0b\x64\x65leteToken\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12\x42\n\x10wipeTokenAccount\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12\x44\n\x12\x66reezeTokenAccount\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12\x46\n\x14unfreezeTokenAccount\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12H\n\x16grantKycToTokenAccount\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12K\n\x19revokeKycFromTokenAccount\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12\x41\n\x0f\x61ssociateTokens\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12\x42\n\x10\x64issociateTokens\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12H\n\x16updateTokenFeeSchedule\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12-\n\x0cgetTokenInfo\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12\x38\n\x12getAccountNftInfos\x12\x0c.proto.Query\x1a\x0f.proto.Response\"\x03\x88\x02\x01\x12\x30\n\x0fgetTokenNftInfo\x12\x0c.proto.Query\x1a\x0f.proto.Response\x12\x36\n\x10getTokenNftInfos\x12\x0c.proto.Query\x1a\x0f.proto.Response\"\x03\x88\x02\x01\x12<\n\npauseToken\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12>\n\x0cunpauseToken\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12<\n\nupdateNfts\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12=\n\x0brejectToken\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12?\n\rairdropTokens\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12?\n\rcancelAirdrop\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponse\x12>\n\x0c\x63laimAirdrop\x12\x12.proto.Transaction\x1a\x1a.proto.TransactionResponseB(\n&com.hederahashgraph.service.proto.javab\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'token_service_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n&com.hederahashgraph.service.proto.java' - _globals['_TOKENSERVICE'].methods_by_name['getAccountNftInfos']._loaded_options = None - _globals['_TOKENSERVICE'].methods_by_name['getAccountNftInfos']._serialized_options = b'\210\002\001' - _globals['_TOKENSERVICE'].methods_by_name['getTokenNftInfos']._loaded_options = None - _globals['_TOKENSERVICE'].methods_by_name['getTokenNftInfos']._serialized_options = b'\210\002\001' - _globals['_TOKENSERVICE']._serialized_start=107 - _globals['_TOKENSERVICE']._serialized_end=1658 -# @@protoc_insertion_point(module_scope) diff --git a/src/proto/token_service_pb2_grpc.py b/src/proto/token_service_pb2_grpc.py deleted file mode 100644 index 0eb0faf..0000000 --- a/src/proto/token_service_pb2_grpc.py +++ /dev/null @@ -1,1179 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc -import warnings - -from . import query_pb2 as query__pb2 -from . import response_pb2 as response__pb2 -from . import transaction_pb2 as transaction__pb2 -from . import transaction_response_pb2 as transaction__response__pb2 - -GRPC_GENERATED_VERSION = '1.66.2' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in token_service_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) - - -class TokenServiceStub(object): - """* - Transactions and queries for the Token Service - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.createToken = channel.unary_unary( - '/proto.TokenService/createToken', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.updateToken = channel.unary_unary( - '/proto.TokenService/updateToken', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.mintToken = channel.unary_unary( - '/proto.TokenService/mintToken', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.burnToken = channel.unary_unary( - '/proto.TokenService/burnToken', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.deleteToken = channel.unary_unary( - '/proto.TokenService/deleteToken', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.wipeTokenAccount = channel.unary_unary( - '/proto.TokenService/wipeTokenAccount', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.freezeTokenAccount = channel.unary_unary( - '/proto.TokenService/freezeTokenAccount', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.unfreezeTokenAccount = channel.unary_unary( - '/proto.TokenService/unfreezeTokenAccount', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.grantKycToTokenAccount = channel.unary_unary( - '/proto.TokenService/grantKycToTokenAccount', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.revokeKycFromTokenAccount = channel.unary_unary( - '/proto.TokenService/revokeKycFromTokenAccount', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.associateTokens = channel.unary_unary( - '/proto.TokenService/associateTokens', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.dissociateTokens = channel.unary_unary( - '/proto.TokenService/dissociateTokens', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.updateTokenFeeSchedule = channel.unary_unary( - '/proto.TokenService/updateTokenFeeSchedule', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.getTokenInfo = channel.unary_unary( - '/proto.TokenService/getTokenInfo', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.getAccountNftInfos = channel.unary_unary( - '/proto.TokenService/getAccountNftInfos', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.getTokenNftInfo = channel.unary_unary( - '/proto.TokenService/getTokenNftInfo', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.getTokenNftInfos = channel.unary_unary( - '/proto.TokenService/getTokenNftInfos', - request_serializer=query__pb2.Query.SerializeToString, - response_deserializer=response__pb2.Response.FromString, - _registered_method=True) - self.pauseToken = channel.unary_unary( - '/proto.TokenService/pauseToken', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.unpauseToken = channel.unary_unary( - '/proto.TokenService/unpauseToken', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.updateNfts = channel.unary_unary( - '/proto.TokenService/updateNfts', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.rejectToken = channel.unary_unary( - '/proto.TokenService/rejectToken', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.airdropTokens = channel.unary_unary( - '/proto.TokenService/airdropTokens', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.cancelAirdrop = channel.unary_unary( - '/proto.TokenService/cancelAirdrop', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - self.claimAirdrop = channel.unary_unary( - '/proto.TokenService/claimAirdrop', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=transaction__response__pb2.TransactionResponse.FromString, - _registered_method=True) - - -class TokenServiceServicer(object): - """* - Transactions and queries for the Token Service - """ - - def createToken(self, request, context): - """* - Creates a new Token by submitting the transaction - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def updateToken(self, request, context): - """* - Updates the account by submitting the transaction - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def mintToken(self, request, context): - """* - Mints an amount of the token to the defined treasury account - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def burnToken(self, request, context): - """* - Burns an amount of the token from the defined treasury account - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def deleteToken(self, request, context): - """* - Deletes a Token - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def wipeTokenAccount(self, request, context): - """* - Wipes the provided amount of tokens from the specified Account ID - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def freezeTokenAccount(self, request, context): - """* - Freezes the transfer of tokens to or from the specified Account ID - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def unfreezeTokenAccount(self, request, context): - """* - Unfreezes the transfer of tokens to or from the specified Account ID - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def grantKycToTokenAccount(self, request, context): - """* - Flags the provided Account ID as having gone through KYC - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def revokeKycFromTokenAccount(self, request, context): - """* - Removes the KYC flag of the provided Account ID - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def associateTokens(self, request, context): - """* - Associates tokens to an account - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def dissociateTokens(self, request, context): - """* - Dissociates tokens from an account - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def updateTokenFeeSchedule(self, request, context): - """* - Updates the custom fee schedule on a token - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getTokenInfo(self, request, context): - """* - Retrieves the metadata of a token - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getAccountNftInfos(self, request, context): - """* - (DEPRECATED) Gets info on NFTs N through M on the list of NFTs associated with a given account - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getTokenNftInfo(self, request, context): - """* - Retrieves the metadata of an NFT by TokenID and serial number - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getTokenNftInfos(self, request, context): - """* - (DEPRECATED) Gets info on NFTs N through M on the list of NFTs associated with a given Token of type NON_FUNGIBLE - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def pauseToken(self, request, context): - """Pause the token - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def unpauseToken(self, request, context): - """Unpause the token - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def updateNfts(self, request, context): - """* - Updates the NFTs in a collection by TokenID and serial number - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def rejectToken(self, request, context): - """* - Reject one or more tokens.
- This transaction SHALL transfer the full balance of one or more tokens from the requesting - account to the treasury for each tokens. This transfer SHALL NOT charge any custom fee or - royalty defined for the token(s) to be rejected.
-

Effects on success

-