diff --git a/bindings/python/lib/iota_sdk_ffi.py b/bindings/python/lib/iota_sdk_ffi.py index 4033b086a..9dbe713e1 100644 --- a/bindings/python/lib/iota_sdk_ffi.py +++ b/bindings/python/lib/iota_sdk_ffi.py @@ -471,141 +471,107 @@ def _uniffi_check_api_checksums(lib): raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_method_checkpointcommitment_is_ecmh_live_object_set() != 22589: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_checkpointsummarypage_data() != 44115: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_checkpointsummarypage_is_empty() != 48209: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_checkpointsummarypage_page_info() != 63456: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_method_coin_balance() != 29928: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_method_coin_coin_type() != 18211: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_method_coin_id() != 40013: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_coinpage_data() != 29556: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_coinpage_is_empty() != 6966: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_coinpage_page_info() != 50368: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_dynamicfieldoutputpage_data() != 46262: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_dynamicfieldoutputpage_is_empty() != 38341: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_dynamicfieldoutputpage_page_info() != 21447: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_method_ed25519publickey_to_bytes() != 16656: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_epochpage_data() != 13705: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_epochpage_is_empty() != 19239: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_epochpage_page_info() != 57718: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_faucetclient_request() != 28782: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_faucetclient_request_and_wait() != 33961: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_faucetclient_request_status() != 52543: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_active_validators() != 7381: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_balance() != 7900: + if lib.uniffi_iota_sdk_ffi_checksum_method_faucetclient_request() != 13326: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_chain_id() != 64969: + if lib.uniffi_iota_sdk_ffi_checksum_method_faucetclient_request_and_wait() != 48304: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_checkpoint() != 44276: + if lib.uniffi_iota_sdk_ffi_checksum_method_faucetclient_request_status() != 42353: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_checkpoints() != 60371: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_active_validators() != 26965: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_coin_metadata() != 43684: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_balance() != 9953: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_coins() != 32600: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_chain_id() != 45619: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_dry_run_tx() != 30963: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_checkpoint() != 33658: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_dry_run_tx_kind() != 2819: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_checkpoints() != 8422: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_dynamic_field() != 44529: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_coin_metadata() != 34454: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_dynamic_fields() != 17114: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_coins() != 48442: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_dynamic_object_field() != 30230: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_dry_run_tx() != 62890: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_epoch() != 56696: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_dry_run_tx_kind() != 47707: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_epoch_total_checkpoints() != 46856: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_dynamic_field() != 27370: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_epoch_total_transaction_blocks() != 38784: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_dynamic_fields() != 43452: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_epochs() != 28721: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_dynamic_object_field() != 61215: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_events() != 52220: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_epoch() != 46788: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_execute_tx() != 21554: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_epoch_total_checkpoints() != 29086: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_latest_checkpoint_sequence_number() != 57599: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_epoch_total_transaction_blocks() != 61978: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_max_page_size() != 7485: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_events() != 41916: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_move_object_contents() != 45984: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_execute_tx() != 41079: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_move_object_contents_bcs() != 56613: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_latest_checkpoint_sequence_number() != 40336: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_normalized_move_function() != 55119: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_max_page_size() != 44733: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_normalized_move_module() != 6469: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_move_object_contents() != 40412: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_object() != 19423: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_move_object_contents_bcs() != 49694: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_object_bcs() != 59810: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_normalized_move_function() != 49066: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_objects() != 44576: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_normalized_move_module() != 6413: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_package() != 16485: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_object() != 51508: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_package_by_name() != 10686: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_object_bcs() != 1970: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_package_latest() != 49400: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_objects() != 2696: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_package_versions() != 30956: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_package() != 7913: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_packages() != 59954: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_package_latest() != 55024: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_protocol_config() != 6346: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_package_versions() != 33869: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_reference_gas_price() != 19973: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_packages() != 3319: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_service_config() != 55367: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_protocol_config() != 23389: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_set_rpc_server() != 20273: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_reference_gas_price() != 39065: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_total_supply() != 12543: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_service_config() != 24210: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_total_transaction_blocks() != 37459: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_set_rpc_server() != 31958: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_total_transaction_blocks_by_digest() != 770: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_total_supply() != 21504: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_total_transaction_blocks_by_seq_num() != 53241: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_total_transaction_blocks() != 9583: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_transaction() != 56863: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_total_transaction_blocks_by_digest() != 64969: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_transaction_data_effects() != 3688: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_total_transaction_blocks_by_seq_num() != 18624: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_transaction_effects() != 32891: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_transaction() != 54687: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_transactions() != 13103: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_transaction_data_effects() != 57979: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_transactions_data_effects() != 49700: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_transaction_effects() != 56760: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_transactions_effects() != 42153: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_transactions() != 31273: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_movepackagepage_data() != 63718: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_transactions_data_effects() != 14121: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_movepackagepage_is_empty() != 64716: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_movepackagepage_page_info() != 5493: + if lib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_transactions_effects() != 2687: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_method_object_as_struct() != 2473: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") @@ -629,12 +595,6 @@ def _uniffi_check_api_checksums(lib): raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_method_objectid_to_hex() != 4418: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_objectpage_data() != 3639: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_objectpage_is_empty() != 56778: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_objectpage_page_info() != 10226: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_method_secp256k1publickey_to_bytes() != 49170: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_method_secp256r1publickey_to_bytes() != 21066: @@ -643,12 +603,6 @@ def _uniffi_check_api_checksums(lib): raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_method_signedtransaction_transaction() != 60873: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_signedtransactionpage_data() != 7316: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_signedtransactionpage_is_empty() != 52119: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_signedtransactionpage_page_info() != 4757: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_method_transaction_expiration() != 4282: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_method_transaction_gas_payment() != 5316: @@ -661,47 +615,23 @@ def _uniffi_check_api_checksums(lib): raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_method_transactiondataeffects_tx() != 13303: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_transactiondataeffectspage_data() != 63792: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_transactiondataeffectspage_is_empty() != 31504: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_transactiondataeffectspage_page_info() != 59789: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_transactioneffectspage_data() != 20040: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_transactioneffectspage_is_empty() != 19615: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_transactioneffectspage_page_info() != 44668: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_transactioneventpage_data() != 64576: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_transactioneventpage_is_empty() != 45340: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_transactioneventpage_page_info() != 13980: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_validatorpage_data() != 23633: + if lib.uniffi_iota_sdk_ffi_checksum_constructor_address_from_bytes() != 58901: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_validatorpage_is_empty() != 5938: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_method_validatorpage_page_info() != 50813: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_address_from_bytes() != 47175: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_address_from_hex() != 15021: + if lib.uniffi_iota_sdk_ffi_checksum_constructor_address_from_hex() != 63442: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_constructor_address_generate() != 48865: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_bls12381publickey_from_bytes() != 43705: + if lib.uniffi_iota_sdk_ffi_checksum_constructor_bls12381publickey_from_bytes() != 6069: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_bls12381publickey_from_str() != 52380: + if lib.uniffi_iota_sdk_ffi_checksum_constructor_bls12381publickey_from_str() != 26128: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_constructor_bls12381publickey_generate() != 30791: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_coin_try_from_object() != 8695: + if lib.uniffi_iota_sdk_ffi_checksum_constructor_coin_try_from_object() != 35349: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_ed25519publickey_from_bytes() != 60161: + if lib.uniffi_iota_sdk_ffi_checksum_constructor_ed25519publickey_from_bytes() != 60403: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_ed25519publickey_from_str() != 40167: + if lib.uniffi_iota_sdk_ffi_checksum_constructor_ed25519publickey_from_str() != 38751: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_constructor_ed25519publickey_generate() != 46412: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") @@ -709,16 +639,10 @@ def _uniffi_check_api_checksums(lib): raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_authenticator_state_expire() != 49861: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_bridge_committee_init() != 35816: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_bridge_state_create() != 11518: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_change_epoch() != 16640: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_change_epoch_v2() != 17262: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_store_execution_time_observations() != 32604: - raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_constructor_faucetclient_devnet() != 37366: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_constructor_faucetclient_local() != 55393: @@ -727,7 +651,7 @@ def _uniffi_check_api_checksums(lib): raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_constructor_faucetclient_testnet() != 16109: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_graphqlclient_new() != 31562: + if lib.uniffi_iota_sdk_ffi_checksum_constructor_graphqlclient_new() != 32097: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_constructor_graphqlclient_new_devnet() != 6494: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") @@ -739,19 +663,19 @@ def _uniffi_check_api_checksums(lib): raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_constructor_object_new() != 56232: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_objectid_from_bytes() != 47226: + if lib.uniffi_iota_sdk_ffi_checksum_constructor_objectid_from_bytes() != 41789: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_objectid_from_hex() != 14286: + if lib.uniffi_iota_sdk_ffi_checksum_constructor_objectid_from_hex() != 30954: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_secp256k1publickey_from_bytes() != 2925: + if lib.uniffi_iota_sdk_ffi_checksum_constructor_secp256k1publickey_from_bytes() != 20339: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_secp256k1publickey_from_str() != 43622: + if lib.uniffi_iota_sdk_ffi_checksum_constructor_secp256k1publickey_from_str() != 24158: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_constructor_secp256k1publickey_generate() != 36411: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_secp256r1publickey_from_bytes() != 35682: + if lib.uniffi_iota_sdk_ffi_checksum_constructor_secp256r1publickey_from_bytes() != 60002: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - if lib.uniffi_iota_sdk_ffi_checksum_constructor_secp256r1publickey_from_str() != 3131: + if lib.uniffi_iota_sdk_ffi_checksum_constructor_secp256r1publickey_from_str() != 27991: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_iota_sdk_ffi_checksum_constructor_secp256r1publickey_generate() != 49992: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") @@ -1032,31 +956,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): ctypes.POINTER(_UniffiRustCallStatus), ) _UniffiLib.uniffi_iota_sdk_ffi_fn_free_checkpointdigest.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_checkpointsummarypage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_checkpointsummarypage.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_checkpointsummarypage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_checkpointsummarypage.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_checkpointsummarypage_data.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_checkpointsummarypage_data.restype = _UniffiRustBuffer -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_checkpointsummarypage_is_empty.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_checkpointsummarypage_is_empty.restype = ctypes.c_int8 -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_checkpointsummarypage_page_info.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_checkpointsummarypage_page_info.restype = ctypes.c_void_p _UniffiLib.uniffi_iota_sdk_ffi_fn_clone_coin.argtypes = ( ctypes.c_void_p, ctypes.POINTER(_UniffiRustCallStatus), @@ -1097,31 +996,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): ctypes.POINTER(_UniffiRustCallStatus), ) _UniffiLib.uniffi_iota_sdk_ffi_fn_free_coinmetadata.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_coinpage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_coinpage.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_coinpage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_coinpage.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_coinpage_data.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_coinpage_data.restype = _UniffiRustBuffer -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_coinpage_is_empty.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_coinpage_is_empty.restype = ctypes.c_int8 -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_coinpage_page_info.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_coinpage_page_info.restype = ctypes.c_void_p _UniffiLib.uniffi_iota_sdk_ffi_fn_clone_consensuscommitdigest.argtypes = ( ctypes.c_void_p, ctypes.POINTER(_UniffiRustCallStatus), @@ -1162,41 +1036,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): ctypes.POINTER(_UniffiRustCallStatus), ) _UniffiLib.uniffi_iota_sdk_ffi_fn_free_dryrunresult.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_dynamicfieldoutput.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_dynamicfieldoutput.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_dynamicfieldoutput.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_dynamicfieldoutput.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_dynamicfieldoutputpage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_dynamicfieldoutputpage.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_dynamicfieldoutputpage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_dynamicfieldoutputpage.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_dynamicfieldoutputpage_data.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_dynamicfieldoutputpage_data.restype = _UniffiRustBuffer -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_dynamicfieldoutputpage_is_empty.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_dynamicfieldoutputpage_is_empty.restype = ctypes.c_int8 -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_dynamicfieldoutputpage_page_info.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_dynamicfieldoutputpage_page_info.restype = ctypes.c_void_p _UniffiLib.uniffi_iota_sdk_ffi_fn_clone_ed25519publickey.argtypes = ( ctypes.c_void_p, ctypes.POINTER(_UniffiRustCallStatus), @@ -1255,16 +1094,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): ctypes.POINTER(_UniffiRustCallStatus), ) _UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_endofepochtransactionkind_authenticator_state_expire.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_endofepochtransactionkind_bridge_committee_init.argtypes = ( - ctypes.c_uint64, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_endofepochtransactionkind_bridge_committee_init.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_endofepochtransactionkind_bridge_state_create.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_endofepochtransactionkind_bridge_state_create.restype = ctypes.c_void_p _UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_endofepochtransactionkind_change_epoch.argtypes = ( ctypes.c_void_p, ctypes.POINTER(_UniffiRustCallStatus), @@ -1275,11 +1104,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): ctypes.POINTER(_UniffiRustCallStatus), ) _UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_endofepochtransactionkind_change_epoch_v2.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_endofepochtransactionkind_store_execution_time_observations.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_endofepochtransactionkind_store_execution_time_observations.restype = ctypes.c_void_p _UniffiLib.uniffi_iota_sdk_ffi_fn_clone_epoch.argtypes = ( ctypes.c_void_p, ctypes.POINTER(_UniffiRustCallStatus), @@ -1290,31 +1114,16 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): ctypes.POINTER(_UniffiRustCallStatus), ) _UniffiLib.uniffi_iota_sdk_ffi_fn_free_epoch.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_epochpage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_epochpage.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_epochpage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_epochpage.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_epochpage_data.argtypes = ( +_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_event.argtypes = ( ctypes.c_void_p, ctypes.POINTER(_UniffiRustCallStatus), ) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_epochpage_data.restype = _UniffiRustBuffer -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_epochpage_is_empty.argtypes = ( +_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_event.restype = ctypes.c_void_p +_UniffiLib.uniffi_iota_sdk_ffi_fn_free_event.argtypes = ( ctypes.c_void_p, ctypes.POINTER(_UniffiRustCallStatus), ) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_epochpage_is_empty.restype = ctypes.c_int8 -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_epochpage_page_info.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_epochpage_page_info.restype = ctypes.c_void_p +_UniffiLib.uniffi_iota_sdk_ffi_fn_free_event.restype = None _UniffiLib.uniffi_iota_sdk_ffi_fn_clone_executiontimeobservations.argtypes = ( ctypes.c_void_p, ctypes.POINTER(_UniffiRustCallStatus), @@ -1505,11 +1314,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): _UniffiRustBuffer, ) _UniffiLib.uniffi_iota_sdk_ffi_fn_method_graphqlclient_epoch_total_transaction_blocks.restype = ctypes.c_uint64 -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_graphqlclient_epochs.argtypes = ( - ctypes.c_void_p, - _UniffiRustBuffer, -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_graphqlclient_epochs.restype = ctypes.c_uint64 _UniffiLib.uniffi_iota_sdk_ffi_fn_method_graphqlclient_events.argtypes = ( ctypes.c_void_p, _UniffiRustBuffer, @@ -1584,11 +1388,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): _UniffiRustBuffer, ) _UniffiLib.uniffi_iota_sdk_ffi_fn_method_graphqlclient_package.restype = ctypes.c_uint64 -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_graphqlclient_package_by_name.argtypes = ( - ctypes.c_void_p, - _UniffiRustBuffer, -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_graphqlclient_package_by_name.restype = ctypes.c_uint64 _UniffiLib.uniffi_iota_sdk_ffi_fn_method_graphqlclient_package_latest.argtypes = ( ctypes.c_void_p, ctypes.c_void_p, @@ -1710,31 +1509,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): ctypes.POINTER(_UniffiRustCallStatus), ) _UniffiLib.uniffi_iota_sdk_ffi_fn_free_movepackage.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_movepackagepage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_movepackagepage.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_movepackagepage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_movepackagepage.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_movepackagepage_data.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_movepackagepage_data.restype = _UniffiRustBuffer -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_movepackagepage_is_empty.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_movepackagepage_is_empty.restype = ctypes.c_int8 -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_movepackagepage_page_info.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_movepackagepage_page_info.restype = ctypes.c_void_p _UniffiLib.uniffi_iota_sdk_ffi_fn_clone_movestruct.argtypes = ( ctypes.c_void_p, ctypes.POINTER(_UniffiRustCallStatus), @@ -1823,16 +1597,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): ctypes.POINTER(_UniffiRustCallStatus), ) _UniffiLib.uniffi_iota_sdk_ffi_fn_free_objectdigest.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_objectfilter.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_objectfilter.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_objectfilter.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_objectfilter.restype = None _UniffiLib.uniffi_iota_sdk_ffi_fn_clone_objectid.argtypes = ( ctypes.c_void_p, ctypes.POINTER(_UniffiRustCallStatus), @@ -1868,31 +1632,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): ctypes.POINTER(_UniffiRustCallStatus), ) _UniffiLib.uniffi_iota_sdk_ffi_fn_method_objectid_to_hex.restype = _UniffiRustBuffer -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_objectpage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_objectpage.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_objectpage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_objectpage.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_objectpage_data.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_objectpage_data.restype = _UniffiRustBuffer -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_objectpage_is_empty.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_objectpage_is_empty.restype = ctypes.c_int8 -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_objectpage_page_info.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_objectpage_page_info.restype = ctypes.c_void_p _UniffiLib.uniffi_iota_sdk_ffi_fn_clone_objectref.argtypes = ( ctypes.c_void_p, ctypes.POINTER(_UniffiRustCallStatus), @@ -1923,16 +1662,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): ctypes.POINTER(_UniffiRustCallStatus), ) _UniffiLib.uniffi_iota_sdk_ffi_fn_free_owner.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_pageinfo.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_pageinfo.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_pageinfo.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_pageinfo.restype = None _UniffiLib.uniffi_iota_sdk_ffi_fn_clone_programmabletransaction.argtypes = ( ctypes.c_void_p, ctypes.POINTER(_UniffiRustCallStatus), @@ -2057,31 +1786,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): ctypes.POINTER(_UniffiRustCallStatus), ) _UniffiLib.uniffi_iota_sdk_ffi_fn_method_signedtransaction_transaction.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_signedtransactionpage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_signedtransactionpage.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_signedtransactionpage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_signedtransactionpage.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_signedtransactionpage_data.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_signedtransactionpage_data.restype = _UniffiRustBuffer -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_signedtransactionpage_is_empty.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_signedtransactionpage_is_empty.restype = ctypes.c_int8 -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_signedtransactionpage_page_info.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_signedtransactionpage_page_info.restype = ctypes.c_void_p _UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transaction.argtypes = ( ctypes.c_void_p, ctypes.POINTER(_UniffiRustCallStatus), @@ -2146,31 +1850,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): ctypes.POINTER(_UniffiRustCallStatus), ) _UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactiondataeffects_tx.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactiondataeffectspage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactiondataeffectspage.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactiondataeffectspage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactiondataeffectspage.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactiondataeffectspage_data.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactiondataeffectspage_data.restype = _UniffiRustBuffer -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactiondataeffectspage_is_empty.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactiondataeffectspage_is_empty.restype = ctypes.c_int8 -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactiondataeffectspage_page_info.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactiondataeffectspage_page_info.restype = ctypes.c_void_p _UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactiondigest.argtypes = ( ctypes.c_void_p, ctypes.POINTER(_UniffiRustCallStatus), @@ -2201,66 +1880,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): ctypes.POINTER(_UniffiRustCallStatus), ) _UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactioneffectsdigest.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactioneffectspage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactioneffectspage.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactioneffectspage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactioneffectspage.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneffectspage_data.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneffectspage_data.restype = _UniffiRustBuffer -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneffectspage_is_empty.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneffectspage_is_empty.restype = ctypes.c_int8 -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneffectspage_page_info.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneffectspage_page_info.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactionevent.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactionevent.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactionevent.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactionevent.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactioneventpage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactioneventpage.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactioneventpage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactioneventpage.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneventpage_data.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneventpage_data.restype = _UniffiRustBuffer -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneventpage_is_empty.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneventpage_is_empty.restype = ctypes.c_int8 -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneventpage_page_info.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneventpage_page_info.restype = ctypes.c_void_p _UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactioneventsdigest.argtypes = ( ctypes.c_void_p, ctypes.POINTER(_UniffiRustCallStatus), @@ -2341,41 +1960,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): ctypes.POINTER(_UniffiRustCallStatus), ) _UniffiLib.uniffi_iota_sdk_ffi_fn_free_usersignature.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_validator.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_validator.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_validator.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_validator.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_validatorpage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_validatorpage.restype = ctypes.c_void_p -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_validatorpage.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_free_validatorpage.restype = None -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_validatorpage_data.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_validatorpage_data.restype = _UniffiRustBuffer -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_validatorpage_is_empty.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_validatorpage_is_empty.restype = ctypes.c_int8 -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_validatorpage_page_info.argtypes = ( - ctypes.c_void_p, - ctypes.POINTER(_UniffiRustCallStatus), -) -_UniffiLib.uniffi_iota_sdk_ffi_fn_method_validatorpage_page_info.restype = ctypes.c_void_p _UniffiLib.ffi_iota_sdk_ffi_rustbuffer_alloc.argtypes = ( ctypes.c_uint64, ctypes.POINTER(_UniffiRustCallStatus), @@ -2659,15 +2243,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_checkpointcommitment_is_ecmh_live_object_set.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_checkpointcommitment_is_ecmh_live_object_set.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_checkpointsummarypage_data.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_checkpointsummarypage_data.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_checkpointsummarypage_is_empty.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_checkpointsummarypage_is_empty.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_checkpointsummarypage_page_info.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_checkpointsummarypage_page_info.restype = ctypes.c_uint16 _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_coin_balance.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_coin_balance.restype = ctypes.c_uint16 @@ -2677,36 +2252,9 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_coin_id.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_coin_id.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_coinpage_data.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_coinpage_data.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_coinpage_is_empty.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_coinpage_is_empty.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_coinpage_page_info.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_coinpage_page_info.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_dynamicfieldoutputpage_data.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_dynamicfieldoutputpage_data.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_dynamicfieldoutputpage_is_empty.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_dynamicfieldoutputpage_is_empty.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_dynamicfieldoutputpage_page_info.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_dynamicfieldoutputpage_page_info.restype = ctypes.c_uint16 _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_ed25519publickey_to_bytes.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_ed25519publickey_to_bytes.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_epochpage_data.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_epochpage_data.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_epochpage_is_empty.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_epochpage_is_empty.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_epochpage_page_info.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_epochpage_page_info.restype = ctypes.c_uint16 _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_faucetclient_request.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_faucetclient_request.restype = ctypes.c_uint16 @@ -2761,9 +2309,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_epoch_total_transaction_blocks.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_epoch_total_transaction_blocks.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_epochs.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_epochs.restype = ctypes.c_uint16 _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_events.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_events.restype = ctypes.c_uint16 @@ -2800,9 +2345,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_package.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_package.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_package_by_name.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_package_by_name.restype = ctypes.c_uint16 _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_package_latest.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_package_latest.restype = ctypes.c_uint16 @@ -2854,15 +2396,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_transactions_effects.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_graphqlclient_transactions_effects.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_movepackagepage_data.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_movepackagepage_data.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_movepackagepage_is_empty.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_movepackagepage_is_empty.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_movepackagepage_page_info.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_movepackagepage_page_info.restype = ctypes.c_uint16 _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_object_as_struct.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_object_as_struct.restype = ctypes.c_uint16 @@ -2896,15 +2429,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_objectid_to_hex.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_objectid_to_hex.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_objectpage_data.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_objectpage_data.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_objectpage_is_empty.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_objectpage_is_empty.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_objectpage_page_info.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_objectpage_page_info.restype = ctypes.c_uint16 _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_secp256k1publickey_to_bytes.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_secp256k1publickey_to_bytes.restype = ctypes.c_uint16 @@ -2917,15 +2441,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_signedtransaction_transaction.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_signedtransaction_transaction.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_signedtransactionpage_data.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_signedtransactionpage_data.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_signedtransactionpage_is_empty.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_signedtransactionpage_is_empty.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_signedtransactionpage_page_info.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_signedtransactionpage_page_info.restype = ctypes.c_uint16 _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transaction_expiration.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transaction_expiration.restype = ctypes.c_uint16 @@ -2944,42 +2459,6 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactiondataeffects_tx.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactiondataeffects_tx.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactiondataeffectspage_data.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactiondataeffectspage_data.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactiondataeffectspage_is_empty.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactiondataeffectspage_is_empty.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactiondataeffectspage_page_info.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactiondataeffectspage_page_info.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactioneffectspage_data.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactioneffectspage_data.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactioneffectspage_is_empty.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactioneffectspage_is_empty.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactioneffectspage_page_info.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactioneffectspage_page_info.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactioneventpage_data.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactioneventpage_data.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactioneventpage_is_empty.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactioneventpage_is_empty.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactioneventpage_page_info.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_transactioneventpage_page_info.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_validatorpage_data.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_validatorpage_data.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_validatorpage_is_empty.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_validatorpage_is_empty.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_validatorpage_page_info.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_method_validatorpage_page_info.restype = ctypes.c_uint16 _UniffiLib.uniffi_iota_sdk_ffi_checksum_constructor_address_from_bytes.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_constructor_address_from_bytes.restype = ctypes.c_uint16 @@ -3016,21 +2495,12 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure): _UniffiLib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_authenticator_state_expire.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_authenticator_state_expire.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_bridge_committee_init.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_bridge_committee_init.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_bridge_state_create.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_bridge_state_create.restype = ctypes.c_uint16 _UniffiLib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_change_epoch.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_change_epoch.restype = ctypes.c_uint16 _UniffiLib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_change_epoch_v2.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_change_epoch_v2.restype = ctypes.c_uint16 -_UniffiLib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_store_execution_time_observations.argtypes = ( -) -_UniffiLib.uniffi_iota_sdk_ffi_checksum_constructor_endofepochtransactionkind_store_execution_time_observations.restype = ctypes.c_uint16 _UniffiLib.uniffi_iota_sdk_ffi_checksum_constructor_faucetclient_devnet.argtypes = ( ) _UniffiLib.uniffi_iota_sdk_ffi_checksum_constructor_faucetclient_devnet.restype = ctypes.c_uint16 @@ -3322,36 +2792,6 @@ def write(value, buf): - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -3558,6 +2998,313 @@ def write(value, buf): _UniffiConverterBytes.write(value.version_specific_data, buf) +class CheckpointSummaryPage: + """ + A page of items returned by the GraphQL server. + """ + + page_info: "PageInfo" + """ + Information about the page, such as the cursor and whether there are + more pages. + """ + + data: "typing.List[CheckpointSummary]" + """ + The data returned by the server. + """ + + def __init__(self, *, page_info: "PageInfo", data: "typing.List[CheckpointSummary]"): + self.page_info = page_info + self.data = data + + def __str__(self): + return "CheckpointSummaryPage(page_info={}, data={})".format(self.page_info, self.data) + + def __eq__(self, other): + if self.page_info != other.page_info: + return False + if self.data != other.data: + return False + return True + +class _UniffiConverterTypeCheckpointSummaryPage(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return CheckpointSummaryPage( + page_info=_UniffiConverterTypePageInfo.read(buf), + data=_UniffiConverterSequenceTypeCheckpointSummary.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterTypePageInfo.check_lower(value.page_info) + _UniffiConverterSequenceTypeCheckpointSummary.check_lower(value.data) + + @staticmethod + def write(value, buf): + _UniffiConverterTypePageInfo.write(value.page_info, buf) + _UniffiConverterSequenceTypeCheckpointSummary.write(value.data, buf) + + +class CoinPage: + """ + A page of items returned by the GraphQL server. + """ + + page_info: "PageInfo" + """ + Information about the page, such as the cursor and whether there are + more pages. + """ + + data: "typing.List[Coin]" + """ + The data returned by the server. + """ + + def __init__(self, *, page_info: "PageInfo", data: "typing.List[Coin]"): + self.page_info = page_info + self.data = data + + def __str__(self): + return "CoinPage(page_info={}, data={})".format(self.page_info, self.data) + + def __eq__(self, other): + if self.page_info != other.page_info: + return False + if self.data != other.data: + return False + return True + +class _UniffiConverterTypeCoinPage(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return CoinPage( + page_info=_UniffiConverterTypePageInfo.read(buf), + data=_UniffiConverterSequenceTypeCoin.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterTypePageInfo.check_lower(value.page_info) + _UniffiConverterSequenceTypeCoin.check_lower(value.data) + + @staticmethod + def write(value, buf): + _UniffiConverterTypePageInfo.write(value.page_info, buf) + _UniffiConverterSequenceTypeCoin.write(value.data, buf) + + +class DynamicFieldName: + """ + The name part of a dynamic field, including its type, bcs, and json + representation. + """ + + type: "TypeTag" + """ + The type name of this dynamic field name + """ + + bcs: "bytes" + """ + The bcs bytes of this dynamic field name + """ + + json: "typing.Optional[Value]" + """ + The json representation of the dynamic field name + """ + + def __init__(self, *, type: "TypeTag", bcs: "bytes", json: "typing.Optional[Value]"): + self.type = type + self.bcs = bcs + self.json = json + + def __str__(self): + return "DynamicFieldName(type={}, bcs={}, json={})".format(self.type, self.bcs, self.json) + + def __eq__(self, other): + if self.type != other.type: + return False + if self.bcs != other.bcs: + return False + if self.json != other.json: + return False + return True + +class _UniffiConverterTypeDynamicFieldName(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return DynamicFieldName( + type=_UniffiConverterTypeTypeTag.read(buf), + bcs=_UniffiConverterBytes.read(buf), + json=_UniffiConverterOptionalTypeValue.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterTypeTypeTag.check_lower(value.type) + _UniffiConverterBytes.check_lower(value.bcs) + _UniffiConverterOptionalTypeValue.check_lower(value.json) + + @staticmethod + def write(value, buf): + _UniffiConverterTypeTypeTag.write(value.type, buf) + _UniffiConverterBytes.write(value.bcs, buf) + _UniffiConverterOptionalTypeValue.write(value.json, buf) + + +class DynamicFieldOutput: + """ + The output of a dynamic field query, that includes the name, value, and + value's json representation. + """ + + name: "DynamicFieldName" + """ + The name of the dynamic field + """ + + value: "typing.Optional[DynamicFieldValue]" + """ + The dynamic field value typename and bcs + """ + + value_as_json: "typing.Optional[Value]" + """ + The json representation of the dynamic field value object + """ + + def __init__(self, *, name: "DynamicFieldName", value: "typing.Optional[DynamicFieldValue]", value_as_json: "typing.Optional[Value]"): + self.name = name + self.value = value + self.value_as_json = value_as_json + + def __str__(self): + return "DynamicFieldOutput(name={}, value={}, value_as_json={})".format(self.name, self.value, self.value_as_json) + + def __eq__(self, other): + if self.name != other.name: + return False + if self.value != other.value: + return False + if self.value_as_json != other.value_as_json: + return False + return True + +class _UniffiConverterTypeDynamicFieldOutput(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return DynamicFieldOutput( + name=_UniffiConverterTypeDynamicFieldName.read(buf), + value=_UniffiConverterOptionalTypeDynamicFieldValue.read(buf), + value_as_json=_UniffiConverterOptionalTypeValue.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterTypeDynamicFieldName.check_lower(value.name) + _UniffiConverterOptionalTypeDynamicFieldValue.check_lower(value.value) + _UniffiConverterOptionalTypeValue.check_lower(value.value_as_json) + + @staticmethod + def write(value, buf): + _UniffiConverterTypeDynamicFieldName.write(value.name, buf) + _UniffiConverterOptionalTypeDynamicFieldValue.write(value.value, buf) + _UniffiConverterOptionalTypeValue.write(value.value_as_json, buf) + + +class DynamicFieldOutputPage: + """ + A page of items returned by the GraphQL server. + """ + + page_info: "PageInfo" + """ + Information about the page, such as the cursor and whether there are + more pages. + """ + + data: "typing.List[DynamicFieldOutput]" + """ + The data returned by the server. + """ + + def __init__(self, *, page_info: "PageInfo", data: "typing.List[DynamicFieldOutput]"): + self.page_info = page_info + self.data = data + + def __str__(self): + return "DynamicFieldOutputPage(page_info={}, data={})".format(self.page_info, self.data) + + def __eq__(self, other): + if self.page_info != other.page_info: + return False + if self.data != other.data: + return False + return True + +class _UniffiConverterTypeDynamicFieldOutputPage(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return DynamicFieldOutputPage( + page_info=_UniffiConverterTypePageInfo.read(buf), + data=_UniffiConverterSequenceTypeDynamicFieldOutput.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterTypePageInfo.check_lower(value.page_info) + _UniffiConverterSequenceTypeDynamicFieldOutput.check_lower(value.data) + + @staticmethod + def write(value, buf): + _UniffiConverterTypePageInfo.write(value.page_info, buf) + _UniffiConverterSequenceTypeDynamicFieldOutput.write(value.data, buf) + + +class DynamicFieldValue: + """ + The value part of a dynamic field. + """ + + type: "TypeTag" + bcs: "bytes" + def __init__(self, *, type: "TypeTag", bcs: "bytes"): + self.type = type + self.bcs = bcs + + def __str__(self): + return "DynamicFieldValue(type={}, bcs={})".format(self.type, self.bcs) + + def __eq__(self, other): + if self.type != other.type: + return False + if self.bcs != other.bcs: + return False + return True + +class _UniffiConverterTypeDynamicFieldValue(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return DynamicFieldValue( + type=_UniffiConverterTypeTypeTag.read(buf), + bcs=_UniffiConverterBytes.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterTypeTypeTag.check_lower(value.type) + _UniffiConverterBytes.check_lower(value.bcs) + + @staticmethod + def write(value, buf): + _UniffiConverterTypeTypeTag.write(value.type, buf) + _UniffiConverterBytes.write(value.bcs, buf) + + class EndOfEpochData: next_epoch_committee: "typing.List[ValidatorCommitteeMember]" next_epoch_protocol_version: "int" @@ -3608,6 +3355,55 @@ def write(value, buf): _UniffiConverterInt64.write(value.epoch_supply_change, buf) +class EpochPage: + """ + A page of items returned by the GraphQL server. + """ + + page_info: "PageInfo" + """ + Information about the page, such as the cursor and whether there are + more pages. + """ + + data: "typing.List[Epoch]" + """ + The data returned by the server. + """ + + def __init__(self, *, page_info: "PageInfo", data: "typing.List[Epoch]"): + self.page_info = page_info + self.data = data + + def __str__(self): + return "EpochPage(page_info={}, data={})".format(self.page_info, self.data) + + def __eq__(self, other): + if self.page_info != other.page_info: + return False + if self.data != other.data: + return False + return True + +class _UniffiConverterTypeEpochPage(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return EpochPage( + page_info=_UniffiConverterTypePageInfo.read(buf), + data=_UniffiConverterSequenceTypeEpoch.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterTypePageInfo.check_lower(value.page_info) + _UniffiConverterSequenceTypeEpoch.check_lower(value.data) + + @staticmethod + def write(value, buf): + _UniffiConverterTypePageInfo.write(value.page_info, buf) + _UniffiConverterSequenceTypeEpoch.write(value.data, buf) + + class EventFilter: emitting_module: "typing.Optional[str]" event_type: "typing.Optional[str]" @@ -3670,6 +3466,55 @@ def write(value, buf): _UniffiConverterOptionalString.write(value.transaction_digest, buf) +class EventPage: + """ + A page of items returned by the GraphQL server. + """ + + page_info: "PageInfo" + """ + Information about the page, such as the cursor and whether there are + more pages. + """ + + data: "typing.List[Event]" + """ + The data returned by the server. + """ + + def __init__(self, *, page_info: "PageInfo", data: "typing.List[Event]"): + self.page_info = page_info + self.data = data + + def __str__(self): + return "EventPage(page_info={}, data={})".format(self.page_info, self.data) + + def __eq__(self, other): + if self.page_info != other.page_info: + return False + if self.data != other.data: + return False + return True + +class _UniffiConverterTypeEventPage(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return EventPage( + page_info=_UniffiConverterTypePageInfo.read(buf), + data=_UniffiConverterSequenceTypeEvent.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterTypePageInfo.check_lower(value.page_info) + _UniffiConverterSequenceTypeEvent.check_lower(value.data) + + @staticmethod + def write(value, buf): + _UniffiConverterTypePageInfo.write(value.page_info, buf) + _UniffiConverterSequenceTypeEvent.write(value.data, buf) + + class GasCostSummary: computation_cost: "int" computation_cost_burned: "int" @@ -3792,6 +3637,147 @@ def write(value, buf): _UniffiConverterUInt64.write(value.budget, buf) +class MovePackagePage: + """ + A page of items returned by the GraphQL server. + """ + + page_info: "PageInfo" + """ + Information about the page, such as the cursor and whether there are + more pages. + """ + + data: "typing.List[MovePackage]" + """ + The data returned by the server. + """ + + def __init__(self, *, page_info: "PageInfo", data: "typing.List[MovePackage]"): + self.page_info = page_info + self.data = data + + def __str__(self): + return "MovePackagePage(page_info={}, data={})".format(self.page_info, self.data) + + def __eq__(self, other): + if self.page_info != other.page_info: + return False + if self.data != other.data: + return False + return True + +class _UniffiConverterTypeMovePackagePage(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return MovePackagePage( + page_info=_UniffiConverterTypePageInfo.read(buf), + data=_UniffiConverterSequenceTypeMovePackage.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterTypePageInfo.check_lower(value.page_info) + _UniffiConverterSequenceTypeMovePackage.check_lower(value.data) + + @staticmethod + def write(value, buf): + _UniffiConverterTypePageInfo.write(value.page_info, buf) + _UniffiConverterSequenceTypeMovePackage.write(value.data, buf) + + +class ObjectFilter: + type: "typing.Optional[str]" + owner: "typing.Optional[Address]" + object_ids: "typing.Optional[typing.List[ObjectId]]" + def __init__(self, *, type: "typing.Optional[str]", owner: "typing.Optional[Address]", object_ids: "typing.Optional[typing.List[ObjectId]]"): + self.type = type + self.owner = owner + self.object_ids = object_ids + + def __str__(self): + return "ObjectFilter(type={}, owner={}, object_ids={})".format(self.type, self.owner, self.object_ids) + + def __eq__(self, other): + if self.type != other.type: + return False + if self.owner != other.owner: + return False + if self.object_ids != other.object_ids: + return False + return True + +class _UniffiConverterTypeObjectFilter(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return ObjectFilter( + type=_UniffiConverterOptionalString.read(buf), + owner=_UniffiConverterOptionalTypeAddress.read(buf), + object_ids=_UniffiConverterOptionalSequenceTypeObjectId.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterOptionalString.check_lower(value.type) + _UniffiConverterOptionalTypeAddress.check_lower(value.owner) + _UniffiConverterOptionalSequenceTypeObjectId.check_lower(value.object_ids) + + @staticmethod + def write(value, buf): + _UniffiConverterOptionalString.write(value.type, buf) + _UniffiConverterOptionalTypeAddress.write(value.owner, buf) + _UniffiConverterOptionalSequenceTypeObjectId.write(value.object_ids, buf) + + +class ObjectPage: + """ + A page of items returned by the GraphQL server. + """ + + page_info: "PageInfo" + """ + Information about the page, such as the cursor and whether there are + more pages. + """ + + data: "typing.List[Object]" + """ + The data returned by the server. + """ + + def __init__(self, *, page_info: "PageInfo", data: "typing.List[Object]"): + self.page_info = page_info + self.data = data + + def __str__(self): + return "ObjectPage(page_info={}, data={})".format(self.page_info, self.data) + + def __eq__(self, other): + if self.page_info != other.page_info: + return False + if self.data != other.data: + return False + return True + +class _UniffiConverterTypeObjectPage(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return ObjectPage( + page_info=_UniffiConverterTypePageInfo.read(buf), + data=_UniffiConverterSequenceTypeObject.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterTypePageInfo.check_lower(value.page_info) + _UniffiConverterSequenceTypeObject.check_lower(value.data) + + @staticmethod + def write(value, buf): + _UniffiConverterTypePageInfo.write(value.page_info, buf) + _UniffiConverterSequenceTypeObject.write(value.data, buf) + + class ObjectReference: """ Reference to an object @@ -3849,28 +3835,60 @@ def write(value, buf): _UniffiConverterTypeObjectDigest.write(value.digest, buf) -class PaginationFilter: - """ - Pagination options for querying the GraphQL server. It defaults to forward - pagination with the GraphQL server's max page size. - """ +class PageInfo: + has_previous_page: "bool" + has_next_page: "bool" + start_cursor: "typing.Optional[str]" + end_cursor: "typing.Optional[str]" + def __init__(self, *, has_previous_page: "bool", has_next_page: "bool", start_cursor: "typing.Optional[str]", end_cursor: "typing.Optional[str]"): + self.has_previous_page = has_previous_page + self.has_next_page = has_next_page + self.start_cursor = start_cursor + self.end_cursor = end_cursor - direction: "Direction" - """ - The direction of pagination. - """ + def __str__(self): + return "PageInfo(has_previous_page={}, has_next_page={}, start_cursor={}, end_cursor={})".format(self.has_previous_page, self.has_next_page, self.start_cursor, self.end_cursor) - cursor: "typing.Optional[str]" - """ - An opaque cursor used for pagination. - """ + def __eq__(self, other): + if self.has_previous_page != other.has_previous_page: + return False + if self.has_next_page != other.has_next_page: + return False + if self.start_cursor != other.start_cursor: + return False + if self.end_cursor != other.end_cursor: + return False + return True + +class _UniffiConverterTypePageInfo(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return PageInfo( + has_previous_page=_UniffiConverterBool.read(buf), + has_next_page=_UniffiConverterBool.read(buf), + start_cursor=_UniffiConverterOptionalString.read(buf), + end_cursor=_UniffiConverterOptionalString.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterBool.check_lower(value.has_previous_page) + _UniffiConverterBool.check_lower(value.has_next_page) + _UniffiConverterOptionalString.check_lower(value.start_cursor) + _UniffiConverterOptionalString.check_lower(value.end_cursor) + + @staticmethod + def write(value, buf): + _UniffiConverterBool.write(value.has_previous_page, buf) + _UniffiConverterBool.write(value.has_next_page, buf) + _UniffiConverterOptionalString.write(value.start_cursor, buf) + _UniffiConverterOptionalString.write(value.end_cursor, buf) - limit: "typing.Optional[int]" - """ - The maximum number of items to return. If this is ommitted, it will - lazily query the service configuration for the max page size. - """ +class PaginationFilter: + direction: "Direction" + cursor: "typing.Optional[str]" + limit: "typing.Optional[int]" def __init__(self, *, direction: "Direction", cursor: "typing.Optional[str]" = _DEFAULT, limit: "typing.Optional[int]" = _DEFAULT): self.direction = direction if cursor is _DEFAULT: @@ -3916,6 +3934,153 @@ def write(value, buf): _UniffiConverterOptionalInt32.write(value.limit, buf) +class SignedTransactionPage: + """ + A page of items returned by the GraphQL server. + """ + + page_info: "PageInfo" + """ + Information about the page, such as the cursor and whether there are + more pages. + """ + + data: "typing.List[SignedTransaction]" + """ + The data returned by the server. + """ + + def __init__(self, *, page_info: "PageInfo", data: "typing.List[SignedTransaction]"): + self.page_info = page_info + self.data = data + + def __str__(self): + return "SignedTransactionPage(page_info={}, data={})".format(self.page_info, self.data) + + def __eq__(self, other): + if self.page_info != other.page_info: + return False + if self.data != other.data: + return False + return True + +class _UniffiConverterTypeSignedTransactionPage(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return SignedTransactionPage( + page_info=_UniffiConverterTypePageInfo.read(buf), + data=_UniffiConverterSequenceTypeSignedTransaction.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterTypePageInfo.check_lower(value.page_info) + _UniffiConverterSequenceTypeSignedTransaction.check_lower(value.data) + + @staticmethod + def write(value, buf): + _UniffiConverterTypePageInfo.write(value.page_info, buf) + _UniffiConverterSequenceTypeSignedTransaction.write(value.data, buf) + + +class TransactionDataEffectsPage: + """ + A page of items returned by the GraphQL server. + """ + + page_info: "PageInfo" + """ + Information about the page, such as the cursor and whether there are + more pages. + """ + + data: "typing.List[TransactionDataEffects]" + """ + The data returned by the server. + """ + + def __init__(self, *, page_info: "PageInfo", data: "typing.List[TransactionDataEffects]"): + self.page_info = page_info + self.data = data + + def __str__(self): + return "TransactionDataEffectsPage(page_info={}, data={})".format(self.page_info, self.data) + + def __eq__(self, other): + if self.page_info != other.page_info: + return False + if self.data != other.data: + return False + return True + +class _UniffiConverterTypeTransactionDataEffectsPage(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return TransactionDataEffectsPage( + page_info=_UniffiConverterTypePageInfo.read(buf), + data=_UniffiConverterSequenceTypeTransactionDataEffects.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterTypePageInfo.check_lower(value.page_info) + _UniffiConverterSequenceTypeTransactionDataEffects.check_lower(value.data) + + @staticmethod + def write(value, buf): + _UniffiConverterTypePageInfo.write(value.page_info, buf) + _UniffiConverterSequenceTypeTransactionDataEffects.write(value.data, buf) + + +class TransactionEffectsPage: + """ + A page of items returned by the GraphQL server. + """ + + page_info: "PageInfo" + """ + Information about the page, such as the cursor and whether there are + more pages. + """ + + data: "typing.List[TransactionEffects]" + """ + The data returned by the server. + """ + + def __init__(self, *, page_info: "PageInfo", data: "typing.List[TransactionEffects]"): + self.page_info = page_info + self.data = data + + def __str__(self): + return "TransactionEffectsPage(page_info={}, data={})".format(self.page_info, self.data) + + def __eq__(self, other): + if self.page_info != other.page_info: + return False + if self.data != other.data: + return False + return True + +class _UniffiConverterTypeTransactionEffectsPage(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return TransactionEffectsPage( + page_info=_UniffiConverterTypePageInfo.read(buf), + data=_UniffiConverterSequenceTypeTransactionEffects.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterTypePageInfo.check_lower(value.page_info) + _UniffiConverterSequenceTypeTransactionEffects.check_lower(value.data) + + @staticmethod + def write(value, buf): + _UniffiConverterTypePageInfo.write(value.page_info, buf) + _UniffiConverterSequenceTypeTransactionEffects.write(value.data, buf) + + class TransactionMetadata: gas_budget: "typing.Optional[int]" gas_objects: "typing.Optional[typing.List[ObjectRef]]" @@ -3994,12 +4159,13 @@ class TransactionsFilter: after_checkpoint: "typing.Optional[int]" at_checkpoint: "typing.Optional[int]" before_checkpoint: "typing.Optional[int]" - affected_address: "typing.Optional[Address]" - sent_address: "typing.Optional[Address]" + sign_address: "typing.Optional[Address]" + recv_address: "typing.Optional[Address]" input_object: "typing.Optional[ObjectId]" changed_object: "typing.Optional[ObjectId]" transaction_ids: "typing.Optional[typing.List[str]]" - def __init__(self, *, function: "typing.Optional[str]" = _DEFAULT, kind: "typing.Optional[TransactionBlockKindInput]" = _DEFAULT, after_checkpoint: "typing.Optional[int]" = _DEFAULT, at_checkpoint: "typing.Optional[int]" = _DEFAULT, before_checkpoint: "typing.Optional[int]" = _DEFAULT, affected_address: "typing.Optional[Address]" = _DEFAULT, sent_address: "typing.Optional[Address]" = _DEFAULT, input_object: "typing.Optional[ObjectId]" = _DEFAULT, changed_object: "typing.Optional[ObjectId]" = _DEFAULT, transaction_ids: "typing.Optional[typing.List[str]]" = _DEFAULT): + wrapped_or_deleted_object: "typing.Optional[ObjectId]" + def __init__(self, *, function: "typing.Optional[str]" = _DEFAULT, kind: "typing.Optional[TransactionBlockKindInput]" = _DEFAULT, after_checkpoint: "typing.Optional[int]" = _DEFAULT, at_checkpoint: "typing.Optional[int]" = _DEFAULT, before_checkpoint: "typing.Optional[int]" = _DEFAULT, sign_address: "typing.Optional[Address]" = _DEFAULT, recv_address: "typing.Optional[Address]" = _DEFAULT, input_object: "typing.Optional[ObjectId]" = _DEFAULT, changed_object: "typing.Optional[ObjectId]" = _DEFAULT, transaction_ids: "typing.Optional[typing.List[str]]" = _DEFAULT, wrapped_or_deleted_object: "typing.Optional[ObjectId]" = _DEFAULT): if function is _DEFAULT: self.function = None else: @@ -4020,14 +4186,14 @@ def __init__(self, *, function: "typing.Optional[str]" = _DEFAULT, kind: "typing self.before_checkpoint = None else: self.before_checkpoint = before_checkpoint - if affected_address is _DEFAULT: - self.affected_address = None + if sign_address is _DEFAULT: + self.sign_address = None else: - self.affected_address = affected_address - if sent_address is _DEFAULT: - self.sent_address = None + self.sign_address = sign_address + if recv_address is _DEFAULT: + self.recv_address = None else: - self.sent_address = sent_address + self.recv_address = recv_address if input_object is _DEFAULT: self.input_object = None else: @@ -4040,9 +4206,13 @@ def __init__(self, *, function: "typing.Optional[str]" = _DEFAULT, kind: "typing self.transaction_ids = None else: self.transaction_ids = transaction_ids + if wrapped_or_deleted_object is _DEFAULT: + self.wrapped_or_deleted_object = None + else: + self.wrapped_or_deleted_object = wrapped_or_deleted_object def __str__(self): - return "TransactionsFilter(function={}, kind={}, after_checkpoint={}, at_checkpoint={}, before_checkpoint={}, affected_address={}, sent_address={}, input_object={}, changed_object={}, transaction_ids={})".format(self.function, self.kind, self.after_checkpoint, self.at_checkpoint, self.before_checkpoint, self.affected_address, self.sent_address, self.input_object, self.changed_object, self.transaction_ids) + return "TransactionsFilter(function={}, kind={}, after_checkpoint={}, at_checkpoint={}, before_checkpoint={}, sign_address={}, recv_address={}, input_object={}, changed_object={}, transaction_ids={}, wrapped_or_deleted_object={})".format(self.function, self.kind, self.after_checkpoint, self.at_checkpoint, self.before_checkpoint, self.sign_address, self.recv_address, self.input_object, self.changed_object, self.transaction_ids, self.wrapped_or_deleted_object) def __eq__(self, other): if self.function != other.function: @@ -4055,9 +4225,9 @@ def __eq__(self, other): return False if self.before_checkpoint != other.before_checkpoint: return False - if self.affected_address != other.affected_address: + if self.sign_address != other.sign_address: return False - if self.sent_address != other.sent_address: + if self.recv_address != other.recv_address: return False if self.input_object != other.input_object: return False @@ -4065,6 +4235,8 @@ def __eq__(self, other): return False if self.transaction_ids != other.transaction_ids: return False + if self.wrapped_or_deleted_object != other.wrapped_or_deleted_object: + return False return True class _UniffiConverterTypeTransactionsFilter(_UniffiConverterRustBuffer): @@ -4076,11 +4248,12 @@ def read(buf): after_checkpoint=_UniffiConverterOptionalUInt64.read(buf), at_checkpoint=_UniffiConverterOptionalUInt64.read(buf), before_checkpoint=_UniffiConverterOptionalUInt64.read(buf), - affected_address=_UniffiConverterOptionalTypeAddress.read(buf), - sent_address=_UniffiConverterOptionalTypeAddress.read(buf), + sign_address=_UniffiConverterOptionalTypeAddress.read(buf), + recv_address=_UniffiConverterOptionalTypeAddress.read(buf), input_object=_UniffiConverterOptionalTypeObjectId.read(buf), changed_object=_UniffiConverterOptionalTypeObjectId.read(buf), transaction_ids=_UniffiConverterOptionalSequenceString.read(buf), + wrapped_or_deleted_object=_UniffiConverterOptionalTypeObjectId.read(buf), ) @staticmethod @@ -4090,11 +4263,12 @@ def check_lower(value): _UniffiConverterOptionalUInt64.check_lower(value.after_checkpoint) _UniffiConverterOptionalUInt64.check_lower(value.at_checkpoint) _UniffiConverterOptionalUInt64.check_lower(value.before_checkpoint) - _UniffiConverterOptionalTypeAddress.check_lower(value.affected_address) - _UniffiConverterOptionalTypeAddress.check_lower(value.sent_address) + _UniffiConverterOptionalTypeAddress.check_lower(value.sign_address) + _UniffiConverterOptionalTypeAddress.check_lower(value.recv_address) _UniffiConverterOptionalTypeObjectId.check_lower(value.input_object) _UniffiConverterOptionalTypeObjectId.check_lower(value.changed_object) _UniffiConverterOptionalSequenceString.check_lower(value.transaction_ids) + _UniffiConverterOptionalTypeObjectId.check_lower(value.wrapped_or_deleted_object) @staticmethod def write(value, buf): @@ -4103,35 +4277,334 @@ def write(value, buf): _UniffiConverterOptionalUInt64.write(value.after_checkpoint, buf) _UniffiConverterOptionalUInt64.write(value.at_checkpoint, buf) _UniffiConverterOptionalUInt64.write(value.before_checkpoint, buf) - _UniffiConverterOptionalTypeAddress.write(value.affected_address, buf) - _UniffiConverterOptionalTypeAddress.write(value.sent_address, buf) + _UniffiConverterOptionalTypeAddress.write(value.sign_address, buf) + _UniffiConverterOptionalTypeAddress.write(value.recv_address, buf) _UniffiConverterOptionalTypeObjectId.write(value.input_object, buf) _UniffiConverterOptionalTypeObjectId.write(value.changed_object, buf) _UniffiConverterOptionalSequenceString.write(value.transaction_ids, buf) + _UniffiConverterOptionalTypeObjectId.write(value.wrapped_or_deleted_object, buf) -class ValidatorCommitteeMember: +class Validator: + """ + Represents a validator in the system. """ - A member of a Validator Committee - # BCS + apy: "typing.Optional[int]" + """ + The APY of this validator in basis points. + To get the APY in percentage, divide by 100. + """ - The BCS serialized form for this type is defined by the following ABNF: + address: "Address" + """ + The validator's address. + """ - ```text - validator-committee-member = bls-public-key - u64 ; stake - ``` + commission_rate: "typing.Optional[int]" + """ + The fee charged by the validator for staking services. """ - public_key: "Bls12381PublicKey" - stake: "int" - def __init__(self, *, public_key: "Bls12381PublicKey", stake: "int"): - self.public_key = public_key - self.stake = stake + credentials: "typing.Optional[ValidatorCredentials]" + """ + Validator's credentials. + """ - def __str__(self): - return "ValidatorCommitteeMember(public_key={}, stake={})".format(self.public_key, self.stake) + description: "typing.Optional[str]" + """ + Validator's description. + """ + + exchange_rates_size: "typing.Optional[int]" + """ + Number of exchange rates in the table. + """ + + gas_price: "typing.Optional[int]" + """ + The reference gas price for this epoch. + """ + + name: "typing.Optional[str]" + """ + Validator's name. + """ + + image_url: "typing.Optional[str]" + """ + Validator's url containing their custom image. + """ + + next_epoch_commission_rate: "typing.Optional[int]" + """ + The proposed next epoch fee for the validator's staking services. + """ + + next_epoch_credentials: "typing.Optional[ValidatorCredentials]" + """ + Validator's credentials for the next epoch. + """ + + next_epoch_gas_price: "typing.Optional[int]" + """ + The validator's gas price quote for the next epoch. + """ + + next_epoch_stake: "typing.Optional[int]" + """ + The total number of IOTA tokens in this pool plus + the pending stake amount for this epoch. + """ + + operation_cap: "typing.Optional[bytes]" + """ + The validator's current valid `Cap` object. Validators can delegate + the operation ability to another address. The address holding this `Cap` + object can then update the reference gas price and tallying rule on + behalf of the validator. + """ + + pending_pool_token_withdraw: "typing.Optional[int]" + """ + Pending pool token withdrawn during the current epoch, emptied at epoch + boundaries. + """ + + pending_stake: "typing.Optional[int]" + """ + Pending stake amount for this epoch. + """ + + pending_total_iota_withdraw: "typing.Optional[int]" + """ + Pending stake withdrawn during the current epoch, emptied at epoch + boundaries. + """ + + pool_token_balance: "typing.Optional[int]" + """ + Total number of pool tokens issued by the pool. + """ + + project_url: "typing.Optional[str]" + """ + Validator's homepage URL. + """ + + rewards_pool: "typing.Optional[int]" + """ + The epoch stake rewards will be added here at the end of each epoch. + """ + + staking_pool_activation_epoch: "typing.Optional[int]" + """ + The epoch at which this pool became active. + """ + + staking_pool_id: "ObjectId" + """ + The ID of this validator's `0x3::staking_pool::StakingPool`. + """ + + staking_pool_iota_balance: "typing.Optional[int]" + """ + The total number of IOTA tokens in this pool. + """ + + voting_power: "typing.Optional[int]" + """ + The voting power of this validator in basis points (e.g., 100 = 1% + voting power). + """ + + def __init__(self, *, apy: "typing.Optional[int]", address: "Address", commission_rate: "typing.Optional[int]", credentials: "typing.Optional[ValidatorCredentials]", description: "typing.Optional[str]", exchange_rates_size: "typing.Optional[int]", gas_price: "typing.Optional[int]", name: "typing.Optional[str]", image_url: "typing.Optional[str]", next_epoch_commission_rate: "typing.Optional[int]", next_epoch_credentials: "typing.Optional[ValidatorCredentials]", next_epoch_gas_price: "typing.Optional[int]", next_epoch_stake: "typing.Optional[int]", operation_cap: "typing.Optional[bytes]", pending_pool_token_withdraw: "typing.Optional[int]", pending_stake: "typing.Optional[int]", pending_total_iota_withdraw: "typing.Optional[int]", pool_token_balance: "typing.Optional[int]", project_url: "typing.Optional[str]", rewards_pool: "typing.Optional[int]", staking_pool_activation_epoch: "typing.Optional[int]", staking_pool_id: "ObjectId", staking_pool_iota_balance: "typing.Optional[int]", voting_power: "typing.Optional[int]"): + self.apy = apy + self.address = address + self.commission_rate = commission_rate + self.credentials = credentials + self.description = description + self.exchange_rates_size = exchange_rates_size + self.gas_price = gas_price + self.name = name + self.image_url = image_url + self.next_epoch_commission_rate = next_epoch_commission_rate + self.next_epoch_credentials = next_epoch_credentials + self.next_epoch_gas_price = next_epoch_gas_price + self.next_epoch_stake = next_epoch_stake + self.operation_cap = operation_cap + self.pending_pool_token_withdraw = pending_pool_token_withdraw + self.pending_stake = pending_stake + self.pending_total_iota_withdraw = pending_total_iota_withdraw + self.pool_token_balance = pool_token_balance + self.project_url = project_url + self.rewards_pool = rewards_pool + self.staking_pool_activation_epoch = staking_pool_activation_epoch + self.staking_pool_id = staking_pool_id + self.staking_pool_iota_balance = staking_pool_iota_balance + self.voting_power = voting_power + + def __str__(self): + return "Validator(apy={}, address={}, commission_rate={}, credentials={}, description={}, exchange_rates_size={}, gas_price={}, name={}, image_url={}, next_epoch_commission_rate={}, next_epoch_credentials={}, next_epoch_gas_price={}, next_epoch_stake={}, operation_cap={}, pending_pool_token_withdraw={}, pending_stake={}, pending_total_iota_withdraw={}, pool_token_balance={}, project_url={}, rewards_pool={}, staking_pool_activation_epoch={}, staking_pool_id={}, staking_pool_iota_balance={}, voting_power={})".format(self.apy, self.address, self.commission_rate, self.credentials, self.description, self.exchange_rates_size, self.gas_price, self.name, self.image_url, self.next_epoch_commission_rate, self.next_epoch_credentials, self.next_epoch_gas_price, self.next_epoch_stake, self.operation_cap, self.pending_pool_token_withdraw, self.pending_stake, self.pending_total_iota_withdraw, self.pool_token_balance, self.project_url, self.rewards_pool, self.staking_pool_activation_epoch, self.staking_pool_id, self.staking_pool_iota_balance, self.voting_power) + + def __eq__(self, other): + if self.apy != other.apy: + return False + if self.address != other.address: + return False + if self.commission_rate != other.commission_rate: + return False + if self.credentials != other.credentials: + return False + if self.description != other.description: + return False + if self.exchange_rates_size != other.exchange_rates_size: + return False + if self.gas_price != other.gas_price: + return False + if self.name != other.name: + return False + if self.image_url != other.image_url: + return False + if self.next_epoch_commission_rate != other.next_epoch_commission_rate: + return False + if self.next_epoch_credentials != other.next_epoch_credentials: + return False + if self.next_epoch_gas_price != other.next_epoch_gas_price: + return False + if self.next_epoch_stake != other.next_epoch_stake: + return False + if self.operation_cap != other.operation_cap: + return False + if self.pending_pool_token_withdraw != other.pending_pool_token_withdraw: + return False + if self.pending_stake != other.pending_stake: + return False + if self.pending_total_iota_withdraw != other.pending_total_iota_withdraw: + return False + if self.pool_token_balance != other.pool_token_balance: + return False + if self.project_url != other.project_url: + return False + if self.rewards_pool != other.rewards_pool: + return False + if self.staking_pool_activation_epoch != other.staking_pool_activation_epoch: + return False + if self.staking_pool_id != other.staking_pool_id: + return False + if self.staking_pool_iota_balance != other.staking_pool_iota_balance: + return False + if self.voting_power != other.voting_power: + return False + return True + +class _UniffiConverterTypeValidator(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return Validator( + apy=_UniffiConverterOptionalInt32.read(buf), + address=_UniffiConverterTypeAddress.read(buf), + commission_rate=_UniffiConverterOptionalInt32.read(buf), + credentials=_UniffiConverterOptionalTypeValidatorCredentials.read(buf), + description=_UniffiConverterOptionalString.read(buf), + exchange_rates_size=_UniffiConverterOptionalUInt64.read(buf), + gas_price=_UniffiConverterOptionalUInt64.read(buf), + name=_UniffiConverterOptionalString.read(buf), + image_url=_UniffiConverterOptionalString.read(buf), + next_epoch_commission_rate=_UniffiConverterOptionalInt32.read(buf), + next_epoch_credentials=_UniffiConverterOptionalTypeValidatorCredentials.read(buf), + next_epoch_gas_price=_UniffiConverterOptionalUInt64.read(buf), + next_epoch_stake=_UniffiConverterOptionalUInt64.read(buf), + operation_cap=_UniffiConverterOptionalBytes.read(buf), + pending_pool_token_withdraw=_UniffiConverterOptionalUInt64.read(buf), + pending_stake=_UniffiConverterOptionalUInt64.read(buf), + pending_total_iota_withdraw=_UniffiConverterOptionalUInt64.read(buf), + pool_token_balance=_UniffiConverterOptionalUInt64.read(buf), + project_url=_UniffiConverterOptionalString.read(buf), + rewards_pool=_UniffiConverterOptionalUInt64.read(buf), + staking_pool_activation_epoch=_UniffiConverterOptionalUInt64.read(buf), + staking_pool_id=_UniffiConverterTypeObjectId.read(buf), + staking_pool_iota_balance=_UniffiConverterOptionalUInt64.read(buf), + voting_power=_UniffiConverterOptionalInt32.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterOptionalInt32.check_lower(value.apy) + _UniffiConverterTypeAddress.check_lower(value.address) + _UniffiConverterOptionalInt32.check_lower(value.commission_rate) + _UniffiConverterOptionalTypeValidatorCredentials.check_lower(value.credentials) + _UniffiConverterOptionalString.check_lower(value.description) + _UniffiConverterOptionalUInt64.check_lower(value.exchange_rates_size) + _UniffiConverterOptionalUInt64.check_lower(value.gas_price) + _UniffiConverterOptionalString.check_lower(value.name) + _UniffiConverterOptionalString.check_lower(value.image_url) + _UniffiConverterOptionalInt32.check_lower(value.next_epoch_commission_rate) + _UniffiConverterOptionalTypeValidatorCredentials.check_lower(value.next_epoch_credentials) + _UniffiConverterOptionalUInt64.check_lower(value.next_epoch_gas_price) + _UniffiConverterOptionalUInt64.check_lower(value.next_epoch_stake) + _UniffiConverterOptionalBytes.check_lower(value.operation_cap) + _UniffiConverterOptionalUInt64.check_lower(value.pending_pool_token_withdraw) + _UniffiConverterOptionalUInt64.check_lower(value.pending_stake) + _UniffiConverterOptionalUInt64.check_lower(value.pending_total_iota_withdraw) + _UniffiConverterOptionalUInt64.check_lower(value.pool_token_balance) + _UniffiConverterOptionalString.check_lower(value.project_url) + _UniffiConverterOptionalUInt64.check_lower(value.rewards_pool) + _UniffiConverterOptionalUInt64.check_lower(value.staking_pool_activation_epoch) + _UniffiConverterTypeObjectId.check_lower(value.staking_pool_id) + _UniffiConverterOptionalUInt64.check_lower(value.staking_pool_iota_balance) + _UniffiConverterOptionalInt32.check_lower(value.voting_power) + + @staticmethod + def write(value, buf): + _UniffiConverterOptionalInt32.write(value.apy, buf) + _UniffiConverterTypeAddress.write(value.address, buf) + _UniffiConverterOptionalInt32.write(value.commission_rate, buf) + _UniffiConverterOptionalTypeValidatorCredentials.write(value.credentials, buf) + _UniffiConverterOptionalString.write(value.description, buf) + _UniffiConverterOptionalUInt64.write(value.exchange_rates_size, buf) + _UniffiConverterOptionalUInt64.write(value.gas_price, buf) + _UniffiConverterOptionalString.write(value.name, buf) + _UniffiConverterOptionalString.write(value.image_url, buf) + _UniffiConverterOptionalInt32.write(value.next_epoch_commission_rate, buf) + _UniffiConverterOptionalTypeValidatorCredentials.write(value.next_epoch_credentials, buf) + _UniffiConverterOptionalUInt64.write(value.next_epoch_gas_price, buf) + _UniffiConverterOptionalUInt64.write(value.next_epoch_stake, buf) + _UniffiConverterOptionalBytes.write(value.operation_cap, buf) + _UniffiConverterOptionalUInt64.write(value.pending_pool_token_withdraw, buf) + _UniffiConverterOptionalUInt64.write(value.pending_stake, buf) + _UniffiConverterOptionalUInt64.write(value.pending_total_iota_withdraw, buf) + _UniffiConverterOptionalUInt64.write(value.pool_token_balance, buf) + _UniffiConverterOptionalString.write(value.project_url, buf) + _UniffiConverterOptionalUInt64.write(value.rewards_pool, buf) + _UniffiConverterOptionalUInt64.write(value.staking_pool_activation_epoch, buf) + _UniffiConverterTypeObjectId.write(value.staking_pool_id, buf) + _UniffiConverterOptionalUInt64.write(value.staking_pool_iota_balance, buf) + _UniffiConverterOptionalInt32.write(value.voting_power, buf) + + +class ValidatorCommitteeMember: + """ + A member of a Validator Committee + + # BCS + + The BCS serialized form for this type is defined by the following ABNF: + + ```text + validator-committee-member = bls-public-key + u64 ; stake + ``` + """ + + public_key: "Bls12381PublicKey" + stake: "int" + def __init__(self, *, public_key: "Bls12381PublicKey", stake: "int"): + self.public_key = public_key + self.stake = stake + + def __str__(self): + return "ValidatorCommitteeMember(public_key={}, stake={})".format(self.public_key, self.stake) def __eq__(self, other): if self.public_key != other.public_key: @@ -4159,57 +4632,130 @@ def write(value, buf): _UniffiConverterUInt64.write(value.stake, buf) -# BindingsSdkError -# We want to define each variant as a nested class that's also a subclass, -# which is tricky in Python. To accomplish this we're going to create each -# class separately, then manually add the child classes to the base class's -# __dict__. All of this happens in dummy class to avoid polluting the module -# namespace. -class BindingsSdkError(Exception): - pass +class ValidatorCredentials: + authority_pub_key: "typing.Optional[Base64]" + network_pub_key: "typing.Optional[Base64]" + protocol_pub_key: "typing.Optional[Base64]" + proof_of_possession: "typing.Optional[Base64]" + net_address: "typing.Optional[str]" + p2p_address: "typing.Optional[str]" + primary_address: "typing.Optional[str]" + def __init__(self, *, authority_pub_key: "typing.Optional[Base64]", network_pub_key: "typing.Optional[Base64]", protocol_pub_key: "typing.Optional[Base64]", proof_of_possession: "typing.Optional[Base64]", net_address: "typing.Optional[str]", p2p_address: "typing.Optional[str]", primary_address: "typing.Optional[str]"): + self.authority_pub_key = authority_pub_key + self.network_pub_key = network_pub_key + self.protocol_pub_key = protocol_pub_key + self.proof_of_possession = proof_of_possession + self.net_address = net_address + self.p2p_address = p2p_address + self.primary_address = primary_address -_UniffiTempBindingsSdkError = BindingsSdkError + def __str__(self): + return "ValidatorCredentials(authority_pub_key={}, network_pub_key={}, protocol_pub_key={}, proof_of_possession={}, net_address={}, p2p_address={}, primary_address={})".format(self.authority_pub_key, self.network_pub_key, self.protocol_pub_key, self.proof_of_possession, self.net_address, self.p2p_address, self.primary_address) -class BindingsSdkError: # type: ignore - class Generic(_UniffiTempBindingsSdkError): + def __eq__(self, other): + if self.authority_pub_key != other.authority_pub_key: + return False + if self.network_pub_key != other.network_pub_key: + return False + if self.protocol_pub_key != other.protocol_pub_key: + return False + if self.proof_of_possession != other.proof_of_possession: + return False + if self.net_address != other.net_address: + return False + if self.p2p_address != other.p2p_address: + return False + if self.primary_address != other.primary_address: + return False + return True - def __repr__(self): - return "BindingsSdkError.Generic({})".format(repr(str(self))) - _UniffiTempBindingsSdkError.Generic = Generic # type: ignore +class _UniffiConverterTypeValidatorCredentials(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + return ValidatorCredentials( + authority_pub_key=_UniffiConverterOptionalTypeBase64.read(buf), + network_pub_key=_UniffiConverterOptionalTypeBase64.read(buf), + protocol_pub_key=_UniffiConverterOptionalTypeBase64.read(buf), + proof_of_possession=_UniffiConverterOptionalTypeBase64.read(buf), + net_address=_UniffiConverterOptionalString.read(buf), + p2p_address=_UniffiConverterOptionalString.read(buf), + primary_address=_UniffiConverterOptionalString.read(buf), + ) + + @staticmethod + def check_lower(value): + _UniffiConverterOptionalTypeBase64.check_lower(value.authority_pub_key) + _UniffiConverterOptionalTypeBase64.check_lower(value.network_pub_key) + _UniffiConverterOptionalTypeBase64.check_lower(value.protocol_pub_key) + _UniffiConverterOptionalTypeBase64.check_lower(value.proof_of_possession) + _UniffiConverterOptionalString.check_lower(value.net_address) + _UniffiConverterOptionalString.check_lower(value.p2p_address) + _UniffiConverterOptionalString.check_lower(value.primary_address) + + @staticmethod + def write(value, buf): + _UniffiConverterOptionalTypeBase64.write(value.authority_pub_key, buf) + _UniffiConverterOptionalTypeBase64.write(value.network_pub_key, buf) + _UniffiConverterOptionalTypeBase64.write(value.protocol_pub_key, buf) + _UniffiConverterOptionalTypeBase64.write(value.proof_of_possession, buf) + _UniffiConverterOptionalString.write(value.net_address, buf) + _UniffiConverterOptionalString.write(value.p2p_address, buf) + _UniffiConverterOptionalString.write(value.primary_address, buf) + + +class ValidatorPage: + """ + A page of items returned by the GraphQL server. + """ + + page_info: "PageInfo" + """ + Information about the page, such as the cursor and whether there are + more pages. + """ + + data: "typing.List[Validator]" + """ + The data returned by the server. + """ + + def __init__(self, *, page_info: "PageInfo", data: "typing.List[Validator]"): + self.page_info = page_info + self.data = data -BindingsSdkError = _UniffiTempBindingsSdkError # type: ignore -del _UniffiTempBindingsSdkError + def __str__(self): + return "ValidatorPage(page_info={}, data={})".format(self.page_info, self.data) + def __eq__(self, other): + if self.page_info != other.page_info: + return False + if self.data != other.data: + return False + return True -class _UniffiConverterTypeBindingsSdkError(_UniffiConverterRustBuffer): +class _UniffiConverterTypeValidatorPage(_UniffiConverterRustBuffer): @staticmethod def read(buf): - variant = buf.read_i32() - if variant == 1: - return BindingsSdkError.Generic( - _UniffiConverterString.read(buf), - ) - raise InternalError("Raw enum value doesn't match any cases") + return ValidatorPage( + page_info=_UniffiConverterTypePageInfo.read(buf), + data=_UniffiConverterSequenceTypeValidator.read(buf), + ) @staticmethod def check_lower(value): - if isinstance(value, BindingsSdkError.Generic): - return + _UniffiConverterTypePageInfo.check_lower(value.page_info) + _UniffiConverterSequenceTypeValidator.check_lower(value.data) @staticmethod def write(value, buf): - if isinstance(value, BindingsSdkError.Generic): - buf.write_i32(1) + _UniffiConverterTypePageInfo.write(value.page_info, buf) + _UniffiConverterSequenceTypeValidator.write(value.data, buf) class Direction(enum.Enum): - """ - Pagination direction. - """ - FORWARD = 0 BACKWARD = 1 @@ -4244,6 +4790,49 @@ def write(value, buf): +# SdkFfiError +# We want to define each variant as a nested class that's also a subclass, +# which is tricky in Python. To accomplish this we're going to create each +# class separately, then manually add the child classes to the base class's +# __dict__. All of this happens in dummy class to avoid polluting the module +# namespace. +class SdkFfiError(Exception): + pass + +_UniffiTempSdkFfiError = SdkFfiError + +class SdkFfiError: # type: ignore + class Generic(_UniffiTempSdkFfiError): + + def __repr__(self): + return "SdkFfiError.Generic({})".format(repr(str(self))) + _UniffiTempSdkFfiError.Generic = Generic # type: ignore + +SdkFfiError = _UniffiTempSdkFfiError # type: ignore +del _UniffiTempSdkFfiError + + +class _UniffiConverterTypeSdkFfiError(_UniffiConverterRustBuffer): + @staticmethod + def read(buf): + variant = buf.read_i32() + if variant == 1: + return SdkFfiError.Generic( + _UniffiConverterString.read(buf), + ) + raise InternalError("Raw enum value doesn't match any cases") + + @staticmethod + def check_lower(value): + if isinstance(value, SdkFfiError.Generic): + return + + @staticmethod + def write(value, buf): + if isinstance(value, SdkFfiError.Generic): + buf.write_i32(1) + + @@ -4252,6 +4841,16 @@ class TransactionBlockKindInput(enum.Enum): PROGRAMMABLE_TX = 1 + GENESIS = 2 + + CONSENSUS_COMMIT_PROLOGUE_V1 = 3 + + AUTHENTICATOR_STATE_UPDATE_V1 = 4 + + RANDOMNESS_STATE_UPDATE = 5 + + END_OF_EPOCH_TX = 6 + class _UniffiConverterTypeTransactionBlockKindInput(_UniffiConverterRustBuffer): @@ -4262,6 +4861,16 @@ def read(buf): return TransactionBlockKindInput.SYSTEM_TX if variant == 2: return TransactionBlockKindInput.PROGRAMMABLE_TX + if variant == 3: + return TransactionBlockKindInput.GENESIS + if variant == 4: + return TransactionBlockKindInput.CONSENSUS_COMMIT_PROLOGUE_V1 + if variant == 5: + return TransactionBlockKindInput.AUTHENTICATOR_STATE_UPDATE_V1 + if variant == 6: + return TransactionBlockKindInput.RANDOMNESS_STATE_UPDATE + if variant == 7: + return TransactionBlockKindInput.END_OF_EPOCH_TX raise InternalError("Raw enum value doesn't match any cases") @staticmethod @@ -4270,6 +4879,16 @@ def check_lower(value): return if value == TransactionBlockKindInput.PROGRAMMABLE_TX: return + if value == TransactionBlockKindInput.GENESIS: + return + if value == TransactionBlockKindInput.CONSENSUS_COMMIT_PROLOGUE_V1: + return + if value == TransactionBlockKindInput.AUTHENTICATOR_STATE_UPDATE_V1: + return + if value == TransactionBlockKindInput.RANDOMNESS_STATE_UPDATE: + return + if value == TransactionBlockKindInput.END_OF_EPOCH_TX: + return raise ValueError(value) @staticmethod @@ -4278,6 +4897,16 @@ def write(value, buf): buf.write_i32(1) if value == TransactionBlockKindInput.PROGRAMMABLE_TX: buf.write_i32(2) + if value == TransactionBlockKindInput.GENESIS: + buf.write_i32(3) + if value == TransactionBlockKindInput.CONSENSUS_COMMIT_PROLOGUE_V1: + buf.write_i32(4) + if value == TransactionBlockKindInput.AUTHENTICATOR_STATE_UPDATE_V1: + buf.write_i32(5) + if value == TransactionBlockKindInput.RANDOMNESS_STATE_UPDATE: + buf.write_i32(6) + if value == TransactionBlockKindInput.END_OF_EPOCH_TX: + buf.write_i32(7) @@ -4472,11 +5101,11 @@ def read(cls, buf): -class _UniffiConverterOptionalTypeCheckpointDigest(_UniffiConverterRustBuffer): +class _UniffiConverterOptionalTypeCheckpointContentsDigest(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): if value is not None: - _UniffiConverterTypeCheckpointDigest.check_lower(value) + _UniffiConverterTypeCheckpointContentsDigest.check_lower(value) @classmethod def write(cls, value, buf): @@ -4485,7 +5114,7 @@ def write(cls, value, buf): return buf.write_u8(1) - _UniffiConverterTypeCheckpointDigest.write(value, buf) + _UniffiConverterTypeCheckpointContentsDigest.write(value, buf) @classmethod def read(cls, buf): @@ -4493,17 +5122,17 @@ def read(cls, buf): if flag == 0: return None elif flag == 1: - return _UniffiConverterTypeCheckpointDigest.read(buf) + return _UniffiConverterTypeCheckpointContentsDigest.read(buf) else: raise InternalError("Unexpected flag byte for optional type") -class _UniffiConverterOptionalTypeCoinMetadata(_UniffiConverterRustBuffer): +class _UniffiConverterOptionalTypeCheckpointDigest(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): if value is not None: - _UniffiConverterTypeCoinMetadata.check_lower(value) + _UniffiConverterTypeCheckpointDigest.check_lower(value) @classmethod def write(cls, value, buf): @@ -4512,7 +5141,7 @@ def write(cls, value, buf): return buf.write_u8(1) - _UniffiConverterTypeCoinMetadata.write(value, buf) + _UniffiConverterTypeCheckpointDigest.write(value, buf) @classmethod def read(cls, buf): @@ -4520,17 +5149,17 @@ def read(cls, buf): if flag == 0: return None elif flag == 1: - return _UniffiConverterTypeCoinMetadata.read(buf) + return _UniffiConverterTypeCheckpointDigest.read(buf) else: raise InternalError("Unexpected flag byte for optional type") -class _UniffiConverterOptionalTypeDynamicFieldOutput(_UniffiConverterRustBuffer): +class _UniffiConverterOptionalTypeCoinMetadata(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): if value is not None: - _UniffiConverterTypeDynamicFieldOutput.check_lower(value) + _UniffiConverterTypeCoinMetadata.check_lower(value) @classmethod def write(cls, value, buf): @@ -4539,7 +5168,7 @@ def write(cls, value, buf): return buf.write_u8(1) - _UniffiConverterTypeDynamicFieldOutput.write(value, buf) + _UniffiConverterTypeCoinMetadata.write(value, buf) @classmethod def read(cls, buf): @@ -4547,7 +5176,7 @@ def read(cls, buf): if flag == 0: return None elif flag == 1: - return _UniffiConverterTypeDynamicFieldOutput.read(buf) + return _UniffiConverterTypeCoinMetadata.read(buf) else: raise InternalError("Unexpected flag byte for optional type") @@ -4742,11 +5371,11 @@ def read(cls, buf): -class _UniffiConverterOptionalTypeObjectFilter(_UniffiConverterRustBuffer): +class _UniffiConverterOptionalTypeObjectId(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): if value is not None: - _UniffiConverterTypeObjectFilter.check_lower(value) + _UniffiConverterTypeObjectId.check_lower(value) @classmethod def write(cls, value, buf): @@ -4755,7 +5384,7 @@ def write(cls, value, buf): return buf.write_u8(1) - _UniffiConverterTypeObjectFilter.write(value, buf) + _UniffiConverterTypeObjectId.write(value, buf) @classmethod def read(cls, buf): @@ -4763,17 +5392,17 @@ def read(cls, buf): if flag == 0: return None elif flag == 1: - return _UniffiConverterTypeObjectFilter.read(buf) + return _UniffiConverterTypeObjectId.read(buf) else: raise InternalError("Unexpected flag byte for optional type") -class _UniffiConverterOptionalTypeObjectId(_UniffiConverterRustBuffer): +class _UniffiConverterOptionalTypeProtocolConfigs(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): if value is not None: - _UniffiConverterTypeObjectId.check_lower(value) + _UniffiConverterTypeProtocolConfigs.check_lower(value) @classmethod def write(cls, value, buf): @@ -4782,7 +5411,7 @@ def write(cls, value, buf): return buf.write_u8(1) - _UniffiConverterTypeObjectId.write(value, buf) + _UniffiConverterTypeProtocolConfigs.write(value, buf) @classmethod def read(cls, buf): @@ -4790,17 +5419,17 @@ def read(cls, buf): if flag == 0: return None elif flag == 1: - return _UniffiConverterTypeObjectId.read(buf) + return _UniffiConverterTypeProtocolConfigs.read(buf) else: raise InternalError("Unexpected flag byte for optional type") -class _UniffiConverterOptionalTypeProtocolConfigs(_UniffiConverterRustBuffer): +class _UniffiConverterOptionalTypeSignedTransaction(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): if value is not None: - _UniffiConverterTypeProtocolConfigs.check_lower(value) + _UniffiConverterTypeSignedTransaction.check_lower(value) @classmethod def write(cls, value, buf): @@ -4809,7 +5438,7 @@ def write(cls, value, buf): return buf.write_u8(1) - _UniffiConverterTypeProtocolConfigs.write(value, buf) + _UniffiConverterTypeSignedTransaction.write(value, buf) @classmethod def read(cls, buf): @@ -4817,17 +5446,17 @@ def read(cls, buf): if flag == 0: return None elif flag == 1: - return _UniffiConverterTypeProtocolConfigs.read(buf) + return _UniffiConverterTypeSignedTransaction.read(buf) else: raise InternalError("Unexpected flag byte for optional type") -class _UniffiConverterOptionalTypeSignedTransaction(_UniffiConverterRustBuffer): +class _UniffiConverterOptionalTypeTransactionDataEffects(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): if value is not None: - _UniffiConverterTypeSignedTransaction.check_lower(value) + _UniffiConverterTypeTransactionDataEffects.check_lower(value) @classmethod def write(cls, value, buf): @@ -4836,7 +5465,7 @@ def write(cls, value, buf): return buf.write_u8(1) - _UniffiConverterTypeSignedTransaction.write(value, buf) + _UniffiConverterTypeTransactionDataEffects.write(value, buf) @classmethod def read(cls, buf): @@ -4844,17 +5473,17 @@ def read(cls, buf): if flag == 0: return None elif flag == 1: - return _UniffiConverterTypeSignedTransaction.read(buf) + return _UniffiConverterTypeTransactionDataEffects.read(buf) else: raise InternalError("Unexpected flag byte for optional type") -class _UniffiConverterOptionalTypeTransactionDataEffects(_UniffiConverterRustBuffer): +class _UniffiConverterOptionalTypeTransactionEffects(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): if value is not None: - _UniffiConverterTypeTransactionDataEffects.check_lower(value) + _UniffiConverterTypeTransactionEffects.check_lower(value) @classmethod def write(cls, value, buf): @@ -4863,7 +5492,7 @@ def write(cls, value, buf): return buf.write_u8(1) - _UniffiConverterTypeTransactionDataEffects.write(value, buf) + _UniffiConverterTypeTransactionEffects.write(value, buf) @classmethod def read(cls, buf): @@ -4871,17 +5500,17 @@ def read(cls, buf): if flag == 0: return None elif flag == 1: - return _UniffiConverterTypeTransactionDataEffects.read(buf) + return _UniffiConverterTypeTransactionEffects.read(buf) else: raise InternalError("Unexpected flag byte for optional type") -class _UniffiConverterOptionalTypeTransactionEffects(_UniffiConverterRustBuffer): +class _UniffiConverterOptionalTypeCheckpointSummary(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): if value is not None: - _UniffiConverterTypeTransactionEffects.check_lower(value) + _UniffiConverterTypeCheckpointSummary.check_lower(value) @classmethod def write(cls, value, buf): @@ -4890,7 +5519,7 @@ def write(cls, value, buf): return buf.write_u8(1) - _UniffiConverterTypeTransactionEffects.write(value, buf) + _UniffiConverterTypeCheckpointSummary.write(value, buf) @classmethod def read(cls, buf): @@ -4898,17 +5527,17 @@ def read(cls, buf): if flag == 0: return None elif flag == 1: - return _UniffiConverterTypeTransactionEffects.read(buf) + return _UniffiConverterTypeCheckpointSummary.read(buf) else: raise InternalError("Unexpected flag byte for optional type") -class _UniffiConverterOptionalTypeCheckpointSummary(_UniffiConverterRustBuffer): +class _UniffiConverterOptionalTypeDynamicFieldOutput(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): if value is not None: - _UniffiConverterTypeCheckpointSummary.check_lower(value) + _UniffiConverterTypeDynamicFieldOutput.check_lower(value) @classmethod def write(cls, value, buf): @@ -4917,7 +5546,7 @@ def write(cls, value, buf): return buf.write_u8(1) - _UniffiConverterTypeCheckpointSummary.write(value, buf) + _UniffiConverterTypeDynamicFieldOutput.write(value, buf) @classmethod def read(cls, buf): @@ -4925,7 +5554,34 @@ def read(cls, buf): if flag == 0: return None elif flag == 1: - return _UniffiConverterTypeCheckpointSummary.read(buf) + return _UniffiConverterTypeDynamicFieldOutput.read(buf) + else: + raise InternalError("Unexpected flag byte for optional type") + + + +class _UniffiConverterOptionalTypeDynamicFieldValue(_UniffiConverterRustBuffer): + @classmethod + def check_lower(cls, value): + if value is not None: + _UniffiConverterTypeDynamicFieldValue.check_lower(value) + + @classmethod + def write(cls, value, buf): + if value is None: + buf.write_u8(0) + return + + buf.write_u8(1) + _UniffiConverterTypeDynamicFieldValue.write(value, buf) + + @classmethod + def read(cls, buf): + flag = buf.read_u8() + if flag == 0: + return None + elif flag == 1: + return _UniffiConverterTypeDynamicFieldValue.read(buf) else: raise InternalError("Unexpected flag byte for optional type") @@ -4985,6 +5641,33 @@ def read(cls, buf): +class _UniffiConverterOptionalTypeObjectFilter(_UniffiConverterRustBuffer): + @classmethod + def check_lower(cls, value): + if value is not None: + _UniffiConverterTypeObjectFilter.check_lower(value) + + @classmethod + def write(cls, value, buf): + if value is None: + buf.write_u8(0) + return + + buf.write_u8(1) + _UniffiConverterTypeObjectFilter.write(value, buf) + + @classmethod + def read(cls, buf): + flag = buf.read_u8() + if flag == 0: + return None + elif flag == 1: + return _UniffiConverterTypeObjectFilter.read(buf) + else: + raise InternalError("Unexpected flag byte for optional type") + + + class _UniffiConverterOptionalTypeTransactionsFilter(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): @@ -5012,6 +5695,33 @@ def read(cls, buf): +class _UniffiConverterOptionalTypeValidatorCredentials(_UniffiConverterRustBuffer): + @classmethod + def check_lower(cls, value): + if value is not None: + _UniffiConverterTypeValidatorCredentials.check_lower(value) + + @classmethod + def write(cls, value, buf): + if value is None: + buf.write_u8(0) + return + + buf.write_u8(1) + _UniffiConverterTypeValidatorCredentials.write(value, buf) + + @classmethod + def read(cls, buf): + flag = buf.read_u8() + if flag == 0: + return None + elif flag == 1: + return _UniffiConverterTypeValidatorCredentials.read(buf) + else: + raise InternalError("Unexpected flag byte for optional type") + + + class _UniffiConverterOptionalTypeTransactionBlockKindInput(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): @@ -5066,6 +5776,33 @@ def read(cls, buf): +class _UniffiConverterOptionalSequenceTypeObjectId(_UniffiConverterRustBuffer): + @classmethod + def check_lower(cls, value): + if value is not None: + _UniffiConverterSequenceTypeObjectId.check_lower(value) + + @classmethod + def write(cls, value, buf): + if value is None: + buf.write_u8(0) + return + + buf.write_u8(1) + _UniffiConverterSequenceTypeObjectId.write(value, buf) + + @classmethod + def read(cls, buf): + flag = buf.read_u8() + if flag == 0: + return None + elif flag == 1: + return _UniffiConverterSequenceTypeObjectId.read(buf) + else: + raise InternalError("Unexpected flag byte for optional type") + + + class _UniffiConverterOptionalSequenceTypeObjectRef(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): @@ -5093,6 +5830,33 @@ def read(cls, buf): +class _UniffiConverterOptionalTypeBase64(_UniffiConverterRustBuffer): + @classmethod + def check_lower(cls, value): + if value is not None: + _UniffiConverterTypeBase64.check_lower(value) + + @classmethod + def write(cls, value, buf): + if value is None: + buf.write_u8(0) + return + + buf.write_u8(1) + _UniffiConverterTypeBase64.write(value, buf) + + @classmethod + def read(cls, buf): + flag = buf.read_u8() + if flag == 0: + return None + elif flag == 1: + return _UniffiConverterTypeBase64.read(buf) + else: + raise InternalError("Unexpected flag byte for optional type") + + + class _UniffiConverterOptionalTypeValue(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): @@ -5195,18 +5959,18 @@ def read(cls, buf): -class _UniffiConverterSequenceTypeDynamicFieldOutput(_UniffiConverterRustBuffer): +class _UniffiConverterSequenceTypeEndOfEpochTransactionKind(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): for item in value: - _UniffiConverterTypeDynamicFieldOutput.check_lower(item) + _UniffiConverterTypeEndOfEpochTransactionKind.check_lower(item) @classmethod def write(cls, value, buf): items = len(value) buf.write_i32(items) for item in value: - _UniffiConverterTypeDynamicFieldOutput.write(item, buf) + _UniffiConverterTypeEndOfEpochTransactionKind.write(item, buf) @classmethod def read(cls, buf): @@ -5215,23 +5979,23 @@ def read(cls, buf): raise InternalError("Unexpected negative sequence length") return [ - _UniffiConverterTypeDynamicFieldOutput.read(buf) for i in range(count) + _UniffiConverterTypeEndOfEpochTransactionKind.read(buf) for i in range(count) ] -class _UniffiConverterSequenceTypeEndOfEpochTransactionKind(_UniffiConverterRustBuffer): +class _UniffiConverterSequenceTypeEpoch(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): for item in value: - _UniffiConverterTypeEndOfEpochTransactionKind.check_lower(item) + _UniffiConverterTypeEpoch.check_lower(item) @classmethod def write(cls, value, buf): items = len(value) buf.write_i32(items) for item in value: - _UniffiConverterTypeEndOfEpochTransactionKind.write(item, buf) + _UniffiConverterTypeEpoch.write(item, buf) @classmethod def read(cls, buf): @@ -5240,23 +6004,23 @@ def read(cls, buf): raise InternalError("Unexpected negative sequence length") return [ - _UniffiConverterTypeEndOfEpochTransactionKind.read(buf) for i in range(count) + _UniffiConverterTypeEpoch.read(buf) for i in range(count) ] -class _UniffiConverterSequenceTypeEpoch(_UniffiConverterRustBuffer): +class _UniffiConverterSequenceTypeEvent(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): for item in value: - _UniffiConverterTypeEpoch.check_lower(item) + _UniffiConverterTypeEvent.check_lower(item) @classmethod def write(cls, value, buf): items = len(value) buf.write_i32(items) for item in value: - _UniffiConverterTypeEpoch.write(item, buf) + _UniffiConverterTypeEvent.write(item, buf) @classmethod def read(cls, buf): @@ -5265,7 +6029,7 @@ def read(cls, buf): raise InternalError("Unexpected negative sequence length") return [ - _UniffiConverterTypeEpoch.read(buf) for i in range(count) + _UniffiConverterTypeEvent.read(buf) for i in range(count) ] @@ -5320,6 +6084,31 @@ def read(cls, buf): +class _UniffiConverterSequenceTypeObjectId(_UniffiConverterRustBuffer): + @classmethod + def check_lower(cls, value): + for item in value: + _UniffiConverterTypeObjectId.check_lower(item) + + @classmethod + def write(cls, value, buf): + items = len(value) + buf.write_i32(items) + for item in value: + _UniffiConverterTypeObjectId.write(item, buf) + + @classmethod + def read(cls, buf): + count = buf.read_i32() + if count < 0: + raise InternalError("Unexpected negative sequence length") + + return [ + _UniffiConverterTypeObjectId.read(buf) for i in range(count) + ] + + + class _UniffiConverterSequenceTypeObjectRef(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): @@ -5420,18 +6209,18 @@ def read(cls, buf): -class _UniffiConverterSequenceTypeTransactionEvent(_UniffiConverterRustBuffer): +class _UniffiConverterSequenceTypeUserSignature(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): for item in value: - _UniffiConverterTypeTransactionEvent.check_lower(item) + _UniffiConverterTypeUserSignature.check_lower(item) @classmethod def write(cls, value, buf): items = len(value) buf.write_i32(items) for item in value: - _UniffiConverterTypeTransactionEvent.write(item, buf) + _UniffiConverterTypeUserSignature.write(item, buf) @classmethod def read(cls, buf): @@ -5440,23 +6229,23 @@ def read(cls, buf): raise InternalError("Unexpected negative sequence length") return [ - _UniffiConverterTypeTransactionEvent.read(buf) for i in range(count) + _UniffiConverterTypeUserSignature.read(buf) for i in range(count) ] -class _UniffiConverterSequenceTypeUserSignature(_UniffiConverterRustBuffer): +class _UniffiConverterSequenceTypeCheckpointSummary(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): for item in value: - _UniffiConverterTypeUserSignature.check_lower(item) + _UniffiConverterTypeCheckpointSummary.check_lower(item) @classmethod def write(cls, value, buf): items = len(value) buf.write_i32(items) for item in value: - _UniffiConverterTypeUserSignature.write(item, buf) + _UniffiConverterTypeCheckpointSummary.write(item, buf) @classmethod def read(cls, buf): @@ -5465,23 +6254,23 @@ def read(cls, buf): raise InternalError("Unexpected negative sequence length") return [ - _UniffiConverterTypeUserSignature.read(buf) for i in range(count) + _UniffiConverterTypeCheckpointSummary.read(buf) for i in range(count) ] -class _UniffiConverterSequenceTypeValidator(_UniffiConverterRustBuffer): +class _UniffiConverterSequenceTypeDynamicFieldOutput(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): for item in value: - _UniffiConverterTypeValidator.check_lower(item) + _UniffiConverterTypeDynamicFieldOutput.check_lower(item) @classmethod def write(cls, value, buf): items = len(value) buf.write_i32(items) for item in value: - _UniffiConverterTypeValidator.write(item, buf) + _UniffiConverterTypeDynamicFieldOutput.write(item, buf) @classmethod def read(cls, buf): @@ -5490,23 +6279,23 @@ def read(cls, buf): raise InternalError("Unexpected negative sequence length") return [ - _UniffiConverterTypeValidator.read(buf) for i in range(count) + _UniffiConverterTypeDynamicFieldOutput.read(buf) for i in range(count) ] -class _UniffiConverterSequenceTypeCheckpointSummary(_UniffiConverterRustBuffer): +class _UniffiConverterSequenceTypeObjectReference(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): for item in value: - _UniffiConverterTypeCheckpointSummary.check_lower(item) + _UniffiConverterTypeObjectReference.check_lower(item) @classmethod def write(cls, value, buf): items = len(value) buf.write_i32(items) for item in value: - _UniffiConverterTypeCheckpointSummary.write(item, buf) + _UniffiConverterTypeObjectReference.write(item, buf) @classmethod def read(cls, buf): @@ -5515,23 +6304,23 @@ def read(cls, buf): raise InternalError("Unexpected negative sequence length") return [ - _UniffiConverterTypeCheckpointSummary.read(buf) for i in range(count) + _UniffiConverterTypeObjectReference.read(buf) for i in range(count) ] -class _UniffiConverterSequenceTypeObjectReference(_UniffiConverterRustBuffer): +class _UniffiConverterSequenceTypeValidator(_UniffiConverterRustBuffer): @classmethod def check_lower(cls, value): for item in value: - _UniffiConverterTypeObjectReference.check_lower(item) + _UniffiConverterTypeValidator.check_lower(item) @classmethod def write(cls, value, buf): items = len(value) buf.write_i32(items) for item in value: - _UniffiConverterTypeObjectReference.write(item, buf) + _UniffiConverterTypeValidator.write(item, buf) @classmethod def read(cls, buf): @@ -5540,7 +6329,7 @@ def read(cls, buf): raise InternalError("Unexpected negative sequence length") return [ - _UniffiConverterTypeObjectReference.read(buf) for i in range(count) + _UniffiConverterTypeValidator.read(buf) for i in range(count) ] @@ -5569,7 +6358,7 @@ def read(cls, buf): ] -class _UniffiConverterTypeValue: +class _UniffiConverterTypeBase64: @staticmethod def write(value, buf): _UniffiConverterString.write(value, buf) @@ -5590,22 +6379,44 @@ def check_lower(value): def lower(value): return _UniffiConverterString.lower(value) -# objects. -class AddressProtocol(typing.Protocol): - """ - Unique identifier for an Account on the IOTA blockchain. - An `Address` is a 32-byte pseudonymous identifier used to uniquely identify - an account and asset-ownership on the IOTA blockchain. Often, human-readable - addresses are encoded in hexadecimal with a `0x` prefix. For example, this - is a valid IOTA address: - `0x02a212de6a9dfa3a69e22387acfbafbb1a9e591bd9d636e7895dcfc8de05f331`. +class _UniffiConverterTypeValue: + @staticmethod + def write(value, buf): + _UniffiConverterString.write(value, buf) - ``` - use iota_sdk_types::Address; + @staticmethod + def read(buf): + return _UniffiConverterString.read(buf) - let hex = "0x02a212de6a9dfa3a69e22387acfbafbb1a9e591bd9d636e7895dcfc8de05f331"; - let address = Address::from_hex(hex).unwrap(); + @staticmethod + def lift(value): + return _UniffiConverterString.lift(value) + + @staticmethod + def check_lower(value): + return _UniffiConverterString.check_lower(value) + + @staticmethod + def lower(value): + return _UniffiConverterString.lower(value) + +# objects. +class AddressProtocol(typing.Protocol): + """ + Unique identifier for an Account on the IOTA blockchain. + + An `Address` is a 32-byte pseudonymous identifier used to uniquely identify + an account and asset-ownership on the IOTA blockchain. Often, human-readable + addresses are encoded in hexadecimal with a `0x` prefix. For example, this + is a valid IOTA address: + `0x02a212de6a9dfa3a69e22387acfbafbb1a9e591bd9d636e7895dcfc8de05f331`. + + ``` + use iota_types::Address; + + let hex = "0x02a212de6a9dfa3a69e22387acfbafbb1a9e591bd9d636e7895dcfc8de05f331"; + let address = Address::from_hex(hex).unwrap(); println!("Address: {}", address); assert_eq!(hex, address.to_string()); ``` @@ -5664,7 +6475,7 @@ class Address(): `0x02a212de6a9dfa3a69e22387acfbafbb1a9e591bd9d636e7895dcfc8de05f331`. ``` - use iota_sdk_types::Address; + use iota_types::Address; let hex = "0x02a212de6a9dfa3a69e22387acfbafbb1a9e591bd9d636e7895dcfc8de05f331"; let address = Address::from_hex(hex).unwrap(); @@ -5737,7 +6548,7 @@ def from_bytes(cls, bytes: "bytes"): _UniffiConverterBytes.check_lower(bytes) # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeBindingsSdkError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_address_from_bytes, + pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeSdkFfiError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_address_from_bytes, _UniffiConverterBytes.lower(bytes)) return cls._make_instance_(pointer) @@ -5746,7 +6557,7 @@ def from_hex(cls, hex: "str"): _UniffiConverterString.check_lower(hex) # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeBindingsSdkError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_address_from_hex, + pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeSdkFfiError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_address_from_hex, _UniffiConverterString.lower(hex)) return cls._make_instance_(pointer) @@ -6038,7 +6849,7 @@ def from_bytes(cls, bytes: "bytes"): _UniffiConverterBytes.check_lower(bytes) # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeBindingsSdkError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_bls12381publickey_from_bytes, + pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeSdkFfiError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_bls12381publickey_from_bytes, _UniffiConverterBytes.lower(bytes)) return cls._make_instance_(pointer) @@ -6047,7 +6858,7 @@ def from_str(cls, s: "str"): _UniffiConverterString.check_lower(s) # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeBindingsSdkError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_bls12381publickey_from_str, + pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeSdkFfiError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_bls12381publickey_from_str, _UniffiConverterString.lower(s)) return cls._make_instance_(pointer) @@ -6397,94 +7208,6 @@ def read(cls, buf: _UniffiRustBuffer): @classmethod def write(cls, value: CheckpointDigestProtocol, buf: _UniffiRustBuffer): buf.write_u64(cls.lower(value)) -class CheckpointSummaryPageProtocol(typing.Protocol): - def data(self, ): - raise NotImplementedError - def is_empty(self, ): - raise NotImplementedError - def page_info(self, ): - raise NotImplementedError -# CheckpointSummaryPage is a Rust-only trait - it's a wrapper around a Rust implementation. -class CheckpointSummaryPage(): - _pointer: ctypes.c_void_p - - def __init__(self, *args, **kwargs): - raise ValueError("This class has no default constructor") - - def __del__(self): - # In case of partial initialization of instances. - pointer = getattr(self, "_pointer", None) - if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_checkpointsummarypage, pointer) - - def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_checkpointsummarypage, self._pointer) - - # Used by alternative constructors or any methods which return this type. - @classmethod - def _make_instance_(cls, pointer): - # Lightly yucky way to bypass the usual __init__ logic - # and just create a new instance with the required pointer. - inst = cls.__new__(cls) - inst._pointer = pointer - return inst - - - def data(self, ) -> "typing.List[CheckpointSummary]": - return _UniffiConverterSequenceTypeCheckpointSummary.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_checkpointsummarypage_data,self._uniffi_clone_pointer(),) - ) - - - - - - def is_empty(self, ) -> "bool": - return _UniffiConverterBool.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_checkpointsummarypage_is_empty,self._uniffi_clone_pointer(),) - ) - - - - - - def page_info(self, ) -> "PageInfo": - return _UniffiConverterTypePageInfo.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_checkpointsummarypage_page_info,self._uniffi_clone_pointer(),) - ) - - - - - - -class _UniffiConverterTypeCheckpointSummaryPage: - - @staticmethod - def lift(value: int): - return CheckpointSummaryPage._make_instance_(value) - - @staticmethod - def check_lower(value: CheckpointSummaryPage): - if not isinstance(value, CheckpointSummaryPage): - raise TypeError("Expected CheckpointSummaryPage instance, {} found".format(type(value).__name__)) - - @staticmethod - def lower(value: CheckpointSummaryPageProtocol): - if not isinstance(value, CheckpointSummaryPage): - raise TypeError("Expected CheckpointSummaryPage instance, {} found".format(type(value).__name__)) - return value._uniffi_clone_pointer() - - @classmethod - def read(cls, buf: _UniffiRustBuffer): - ptr = buf.read_u64() - if ptr == 0: - raise InternalError("Raw pointer value was null") - return cls.lift(ptr) - - @classmethod - def write(cls, value: CheckpointSummaryPageProtocol, buf: _UniffiRustBuffer): - buf.write_u64(cls.lower(value)) class CoinProtocol(typing.Protocol): def balance(self, ): raise NotImplementedError @@ -6521,7 +7244,7 @@ def try_from_object(cls, object: "Object"): _UniffiConverterTypeObject.check_lower(object) # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeBindingsSdkError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_coin_try_from_object, + pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeSdkFfiError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_coin_try_from_object, _UniffiConverterTypeObject.lower(object)) return cls._make_instance_(pointer) @@ -6638,94 +7361,6 @@ def read(cls, buf: _UniffiRustBuffer): @classmethod def write(cls, value: CoinMetadataProtocol, buf: _UniffiRustBuffer): buf.write_u64(cls.lower(value)) -class CoinPageProtocol(typing.Protocol): - def data(self, ): - raise NotImplementedError - def is_empty(self, ): - raise NotImplementedError - def page_info(self, ): - raise NotImplementedError -# CoinPage is a Rust-only trait - it's a wrapper around a Rust implementation. -class CoinPage(): - _pointer: ctypes.c_void_p - - def __init__(self, *args, **kwargs): - raise ValueError("This class has no default constructor") - - def __del__(self): - # In case of partial initialization of instances. - pointer = getattr(self, "_pointer", None) - if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_coinpage, pointer) - - def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_coinpage, self._pointer) - - # Used by alternative constructors or any methods which return this type. - @classmethod - def _make_instance_(cls, pointer): - # Lightly yucky way to bypass the usual __init__ logic - # and just create a new instance with the required pointer. - inst = cls.__new__(cls) - inst._pointer = pointer - return inst - - - def data(self, ) -> "typing.List[Coin]": - return _UniffiConverterSequenceTypeCoin.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_coinpage_data,self._uniffi_clone_pointer(),) - ) - - - - - - def is_empty(self, ) -> "bool": - return _UniffiConverterBool.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_coinpage_is_empty,self._uniffi_clone_pointer(),) - ) - - - - - - def page_info(self, ) -> "PageInfo": - return _UniffiConverterTypePageInfo.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_coinpage_page_info,self._uniffi_clone_pointer(),) - ) - - - - - - -class _UniffiConverterTypeCoinPage: - - @staticmethod - def lift(value: int): - return CoinPage._make_instance_(value) - - @staticmethod - def check_lower(value: CoinPage): - if not isinstance(value, CoinPage): - raise TypeError("Expected CoinPage instance, {} found".format(type(value).__name__)) - - @staticmethod - def lower(value: CoinPageProtocol): - if not isinstance(value, CoinPage): - raise TypeError("Expected CoinPage instance, {} found".format(type(value).__name__)) - return value._uniffi_clone_pointer() - - @classmethod - def read(cls, buf: _UniffiRustBuffer): - ptr = buf.read_u64() - if ptr == 0: - raise InternalError("Raw pointer value was null") - return cls.lift(ptr) - - @classmethod - def write(cls, value: CoinPageProtocol, buf: _UniffiRustBuffer): - buf.write_u64(cls.lower(value)) class ConsensusCommitDigestProtocol(typing.Protocol): pass # ConsensusCommitDigest is a Rust-only trait - it's a wrapper around a Rust implementation. @@ -6984,10 +7619,35 @@ def read(cls, buf: _UniffiRustBuffer): @classmethod def write(cls, value: DryRunResultProtocol, buf: _UniffiRustBuffer): buf.write_u64(cls.lower(value)) -class DynamicFieldOutputProtocol(typing.Protocol): - pass -# DynamicFieldOutput is a Rust-only trait - it's a wrapper around a Rust implementation. -class DynamicFieldOutput(): +class Ed25519PublicKeyProtocol(typing.Protocol): + """ + An ed25519 public key. + + # BCS + + The BCS serialized form for this type is defined by the following ABNF: + + ```text + ed25519-public-key = 32OCTECT + ``` + """ + + def to_bytes(self, ): + raise NotImplementedError +# Ed25519PublicKey is a Rust-only trait - it's a wrapper around a Rust implementation. +class Ed25519PublicKey(): + """ + An ed25519 public key. + + # BCS + + The BCS serialized form for this type is defined by the following ABNF: + + ```text + ed25519-public-key = 32OCTECT + ``` + """ + _pointer: ctypes.c_void_p def __init__(self, *args, **kwargs): @@ -6997,10 +7657,10 @@ def __del__(self): # In case of partial initialization of instances. pointer = getattr(self, "_pointer", None) if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_dynamicfieldoutput, pointer) + _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_ed25519publickey, pointer) def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_dynamicfieldoutput, self._pointer) + return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_ed25519publickey, self._pointer) # Used by alternative constructors or any methods which return this type. @classmethod @@ -7010,24 +7670,57 @@ def _make_instance_(cls, pointer): inst = cls.__new__(cls) inst._pointer = pointer return inst + @classmethod + def from_bytes(cls, bytes: "bytes"): + _UniffiConverterBytes.check_lower(bytes) + + # Call the (fallible) function before creating any half-baked object instances. + pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeSdkFfiError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_ed25519publickey_from_bytes, + _UniffiConverterBytes.lower(bytes)) + return cls._make_instance_(pointer) + + @classmethod + def from_str(cls, s: "str"): + _UniffiConverterString.check_lower(s) + + # Call the (fallible) function before creating any half-baked object instances. + pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeSdkFfiError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_ed25519publickey_from_str, + _UniffiConverterString.lower(s)) + return cls._make_instance_(pointer) + + @classmethod + def generate(cls, ): + # Call the (fallible) function before creating any half-baked object instances. + pointer = _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_ed25519publickey_generate,) + return cls._make_instance_(pointer) + + + + def to_bytes(self, ) -> "bytes": + return _UniffiConverterBytes.lift( + _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_ed25519publickey_to_bytes,self._uniffi_clone_pointer(),) + ) + -class _UniffiConverterTypeDynamicFieldOutput: + + +class _UniffiConverterTypeEd25519PublicKey: @staticmethod def lift(value: int): - return DynamicFieldOutput._make_instance_(value) + return Ed25519PublicKey._make_instance_(value) @staticmethod - def check_lower(value: DynamicFieldOutput): - if not isinstance(value, DynamicFieldOutput): - raise TypeError("Expected DynamicFieldOutput instance, {} found".format(type(value).__name__)) + def check_lower(value: Ed25519PublicKey): + if not isinstance(value, Ed25519PublicKey): + raise TypeError("Expected Ed25519PublicKey instance, {} found".format(type(value).__name__)) @staticmethod - def lower(value: DynamicFieldOutputProtocol): - if not isinstance(value, DynamicFieldOutput): - raise TypeError("Expected DynamicFieldOutput instance, {} found".format(type(value).__name__)) + def lower(value: Ed25519PublicKeyProtocol): + if not isinstance(value, Ed25519PublicKey): + raise TypeError("Expected Ed25519PublicKey instance, {} found".format(type(value).__name__)) return value._uniffi_clone_pointer() @classmethod @@ -7038,17 +7731,12 @@ def read(cls, buf: _UniffiRustBuffer): return cls.lift(ptr) @classmethod - def write(cls, value: DynamicFieldOutputProtocol, buf: _UniffiRustBuffer): + def write(cls, value: Ed25519PublicKeyProtocol, buf: _UniffiRustBuffer): buf.write_u64(cls.lower(value)) -class DynamicFieldOutputPageProtocol(typing.Protocol): - def data(self, ): - raise NotImplementedError - def is_empty(self, ): - raise NotImplementedError - def page_info(self, ): - raise NotImplementedError -# DynamicFieldOutputPage is a Rust-only trait - it's a wrapper around a Rust implementation. -class DynamicFieldOutputPage(): +class EffectsAuxiliaryDataDigestProtocol(typing.Protocol): + pass +# EffectsAuxiliaryDataDigest is a Rust-only trait - it's a wrapper around a Rust implementation. +class EffectsAuxiliaryDataDigest(): _pointer: ctypes.c_void_p def __init__(self, *args, **kwargs): @@ -7058,10 +7746,10 @@ def __del__(self): # In case of partial initialization of instances. pointer = getattr(self, "_pointer", None) if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_dynamicfieldoutputpage, pointer) + _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_effectsauxiliarydatadigest, pointer) def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_dynamicfieldoutputpage, self._pointer) + return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_effectsauxiliarydatadigest, self._pointer) # Used by alternative constructors or any methods which return this type. @classmethod @@ -7073,220 +7761,23 @@ def _make_instance_(cls, pointer): return inst - def data(self, ) -> "typing.List[DynamicFieldOutput]": - return _UniffiConverterSequenceTypeDynamicFieldOutput.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_dynamicfieldoutputpage_data,self._uniffi_clone_pointer(),) - ) - - - +class _UniffiConverterTypeEffectsAuxiliaryDataDigest: - def is_empty(self, ) -> "bool": - return _UniffiConverterBool.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_dynamicfieldoutputpage_is_empty,self._uniffi_clone_pointer(),) - ) + @staticmethod + def lift(value: int): + return EffectsAuxiliaryDataDigest._make_instance_(value) + @staticmethod + def check_lower(value: EffectsAuxiliaryDataDigest): + if not isinstance(value, EffectsAuxiliaryDataDigest): + raise TypeError("Expected EffectsAuxiliaryDataDigest instance, {} found".format(type(value).__name__)) - - - - def page_info(self, ) -> "PageInfo": - return _UniffiConverterTypePageInfo.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_dynamicfieldoutputpage_page_info,self._uniffi_clone_pointer(),) - ) - - - - - - -class _UniffiConverterTypeDynamicFieldOutputPage: - - @staticmethod - def lift(value: int): - return DynamicFieldOutputPage._make_instance_(value) - - @staticmethod - def check_lower(value: DynamicFieldOutputPage): - if not isinstance(value, DynamicFieldOutputPage): - raise TypeError("Expected DynamicFieldOutputPage instance, {} found".format(type(value).__name__)) - - @staticmethod - def lower(value: DynamicFieldOutputPageProtocol): - if not isinstance(value, DynamicFieldOutputPage): - raise TypeError("Expected DynamicFieldOutputPage instance, {} found".format(type(value).__name__)) - return value._uniffi_clone_pointer() - - @classmethod - def read(cls, buf: _UniffiRustBuffer): - ptr = buf.read_u64() - if ptr == 0: - raise InternalError("Raw pointer value was null") - return cls.lift(ptr) - - @classmethod - def write(cls, value: DynamicFieldOutputPageProtocol, buf: _UniffiRustBuffer): - buf.write_u64(cls.lower(value)) -class Ed25519PublicKeyProtocol(typing.Protocol): - """ - An ed25519 public key. - - # BCS - - The BCS serialized form for this type is defined by the following ABNF: - - ```text - ed25519-public-key = 32OCTECT - ``` - """ - - def to_bytes(self, ): - raise NotImplementedError -# Ed25519PublicKey is a Rust-only trait - it's a wrapper around a Rust implementation. -class Ed25519PublicKey(): - """ - An ed25519 public key. - - # BCS - - The BCS serialized form for this type is defined by the following ABNF: - - ```text - ed25519-public-key = 32OCTECT - ``` - """ - - _pointer: ctypes.c_void_p - - def __init__(self, *args, **kwargs): - raise ValueError("This class has no default constructor") - - def __del__(self): - # In case of partial initialization of instances. - pointer = getattr(self, "_pointer", None) - if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_ed25519publickey, pointer) - - def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_ed25519publickey, self._pointer) - - # Used by alternative constructors or any methods which return this type. - @classmethod - def _make_instance_(cls, pointer): - # Lightly yucky way to bypass the usual __init__ logic - # and just create a new instance with the required pointer. - inst = cls.__new__(cls) - inst._pointer = pointer - return inst - @classmethod - def from_bytes(cls, bytes: "bytes"): - _UniffiConverterBytes.check_lower(bytes) - - # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeBindingsSdkError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_ed25519publickey_from_bytes, - _UniffiConverterBytes.lower(bytes)) - return cls._make_instance_(pointer) - - @classmethod - def from_str(cls, s: "str"): - _UniffiConverterString.check_lower(s) - - # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeBindingsSdkError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_ed25519publickey_from_str, - _UniffiConverterString.lower(s)) - return cls._make_instance_(pointer) - - @classmethod - def generate(cls, ): - # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_ed25519publickey_generate,) - return cls._make_instance_(pointer) - - - - def to_bytes(self, ) -> "bytes": - return _UniffiConverterBytes.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_ed25519publickey_to_bytes,self._uniffi_clone_pointer(),) - ) - - - - - - -class _UniffiConverterTypeEd25519PublicKey: - - @staticmethod - def lift(value: int): - return Ed25519PublicKey._make_instance_(value) - - @staticmethod - def check_lower(value: Ed25519PublicKey): - if not isinstance(value, Ed25519PublicKey): - raise TypeError("Expected Ed25519PublicKey instance, {} found".format(type(value).__name__)) - - @staticmethod - def lower(value: Ed25519PublicKeyProtocol): - if not isinstance(value, Ed25519PublicKey): - raise TypeError("Expected Ed25519PublicKey instance, {} found".format(type(value).__name__)) - return value._uniffi_clone_pointer() - - @classmethod - def read(cls, buf: _UniffiRustBuffer): - ptr = buf.read_u64() - if ptr == 0: - raise InternalError("Raw pointer value was null") - return cls.lift(ptr) - - @classmethod - def write(cls, value: Ed25519PublicKeyProtocol, buf: _UniffiRustBuffer): - buf.write_u64(cls.lower(value)) -class EffectsAuxiliaryDataDigestProtocol(typing.Protocol): - pass -# EffectsAuxiliaryDataDigest is a Rust-only trait - it's a wrapper around a Rust implementation. -class EffectsAuxiliaryDataDigest(): - _pointer: ctypes.c_void_p - - def __init__(self, *args, **kwargs): - raise ValueError("This class has no default constructor") - - def __del__(self): - # In case of partial initialization of instances. - pointer = getattr(self, "_pointer", None) - if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_effectsauxiliarydatadigest, pointer) - - def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_effectsauxiliarydatadigest, self._pointer) - - # Used by alternative constructors or any methods which return this type. - @classmethod - def _make_instance_(cls, pointer): - # Lightly yucky way to bypass the usual __init__ logic - # and just create a new instance with the required pointer. - inst = cls.__new__(cls) - inst._pointer = pointer - return inst - - - -class _UniffiConverterTypeEffectsAuxiliaryDataDigest: - - @staticmethod - def lift(value: int): - return EffectsAuxiliaryDataDigest._make_instance_(value) - - @staticmethod - def check_lower(value: EffectsAuxiliaryDataDigest): - if not isinstance(value, EffectsAuxiliaryDataDigest): - raise TypeError("Expected EffectsAuxiliaryDataDigest instance, {} found".format(type(value).__name__)) - - @staticmethod - def lower(value: EffectsAuxiliaryDataDigestProtocol): - if not isinstance(value, EffectsAuxiliaryDataDigest): - raise TypeError("Expected EffectsAuxiliaryDataDigest instance, {} found".format(type(value).__name__)) - return value._uniffi_clone_pointer() + @staticmethod + def lower(value: EffectsAuxiliaryDataDigestProtocol): + if not isinstance(value, EffectsAuxiliaryDataDigest): + raise TypeError("Expected EffectsAuxiliaryDataDigest instance, {} found".format(type(value).__name__)) + return value._uniffi_clone_pointer() @classmethod def read(cls, buf: _UniffiRustBuffer): @@ -7395,24 +7886,6 @@ def authenticator_state_expire(cls, tx: "AuthenticatorStateExpire"): _UniffiConverterTypeAuthenticatorStateExpire.lower(tx)) return cls._make_instance_(pointer) - @classmethod - def bridge_committee_init(cls, bridge_object_version: "int"): - _UniffiConverterUInt64.check_lower(bridge_object_version) - - # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_endofepochtransactionkind_bridge_committee_init, - _UniffiConverterUInt64.lower(bridge_object_version)) - return cls._make_instance_(pointer) - - @classmethod - def bridge_state_create(cls, chain_id: "CheckpointDigest"): - _UniffiConverterTypeCheckpointDigest.check_lower(chain_id) - - # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_endofepochtransactionkind_bridge_state_create, - _UniffiConverterTypeCheckpointDigest.lower(chain_id)) - return cls._make_instance_(pointer) - @classmethod def change_epoch(cls, tx: "ChangeEpoch"): _UniffiConverterTypeChangeEpoch.check_lower(tx) @@ -7431,15 +7904,6 @@ def change_epoch_v2(cls, tx: "ChangeEpochV2"): _UniffiConverterTypeChangeEpochV2.lower(tx)) return cls._make_instance_(pointer) - @classmethod - def store_execution_time_observations(cls, obs: "ExecutionTimeObservations"): - _UniffiConverterTypeExecutionTimeObservations.check_lower(obs) - - # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_endofepochtransactionkind_store_execution_time_observations, - _UniffiConverterTypeExecutionTimeObservations.lower(obs)) - return cls._make_instance_(pointer) - @@ -7526,15 +7990,10 @@ def read(cls, buf: _UniffiRustBuffer): @classmethod def write(cls, value: EpochProtocol, buf: _UniffiRustBuffer): buf.write_u64(cls.lower(value)) -class EpochPageProtocol(typing.Protocol): - def data(self, ): - raise NotImplementedError - def is_empty(self, ): - raise NotImplementedError - def page_info(self, ): - raise NotImplementedError -# EpochPage is a Rust-only trait - it's a wrapper around a Rust implementation. -class EpochPage(): +class EventProtocol(typing.Protocol): + pass +# Event is a Rust-only trait - it's a wrapper around a Rust implementation. +class Event(): _pointer: ctypes.c_void_p def __init__(self, *args, **kwargs): @@ -7544,10 +8003,10 @@ def __del__(self): # In case of partial initialization of instances. pointer = getattr(self, "_pointer", None) if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_epochpage, pointer) + _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_event, pointer) def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_epochpage, self._pointer) + return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_event, self._pointer) # Used by alternative constructors or any methods which return this type. @classmethod @@ -7559,49 +8018,22 @@ def _make_instance_(cls, pointer): return inst - def data(self, ) -> "typing.List[Epoch]": - return _UniffiConverterSequenceTypeEpoch.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_epochpage_data,self._uniffi_clone_pointer(),) - ) - - - - - - def is_empty(self, ) -> "bool": - return _UniffiConverterBool.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_epochpage_is_empty,self._uniffi_clone_pointer(),) - ) - - - - - - def page_info(self, ) -> "PageInfo": - return _UniffiConverterTypePageInfo.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_epochpage_page_info,self._uniffi_clone_pointer(),) - ) - - - - - -class _UniffiConverterTypeEpochPage: +class _UniffiConverterTypeEvent: @staticmethod def lift(value: int): - return EpochPage._make_instance_(value) + return Event._make_instance_(value) @staticmethod - def check_lower(value: EpochPage): - if not isinstance(value, EpochPage): - raise TypeError("Expected EpochPage instance, {} found".format(type(value).__name__)) + def check_lower(value: Event): + if not isinstance(value, Event): + raise TypeError("Expected Event instance, {} found".format(type(value).__name__)) @staticmethod - def lower(value: EpochPageProtocol): - if not isinstance(value, EpochPage): - raise TypeError("Expected EpochPage instance, {} found".format(type(value).__name__)) + def lower(value: EventProtocol): + if not isinstance(value, Event): + raise TypeError("Expected Event instance, {} found".format(type(value).__name__)) return value._uniffi_clone_pointer() @classmethod @@ -7612,7 +8044,7 @@ def read(cls, buf: _UniffiRustBuffer): return cls.lift(ptr) @classmethod - def write(cls, value: EpochPageProtocol, buf: _UniffiRustBuffer): + def write(cls, value: EventProtocol, buf: _UniffiRustBuffer): buf.write_u64(cls.lower(value)) class ExecutionTimeObservationsProtocol(typing.Protocol): pass @@ -7787,7 +8219,7 @@ async def request(self, address: "Address") -> "typing.Optional[str]": _UniffiConverterOptionalString.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -7818,7 +8250,7 @@ async def request_and_wait(self, address: "Address") -> "typing.Optional[FaucetR _UniffiConverterOptionalTypeFaucetReceipt.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -7845,7 +8277,7 @@ async def request_status(self, id: "str") -> "typing.Optional[BatchSendStatus]": _UniffiConverterOptionalTypeBatchSendStatus.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -8015,7 +8447,7 @@ def chain_id(self, ): """ raise NotImplementedError - def checkpoint(self, digest: "typing.Union[object, typing.Optional[CheckpointDigest]]" = _DEFAULT,seq_num: "typing.Union[object, typing.Optional[int]]" = _DEFAULT): + def checkpoint(self, digest: "typing.Union[object, typing.Optional[CheckpointContentsDigest]]" = _DEFAULT,seq_num: "typing.Union[object, typing.Optional[int]]" = _DEFAULT): """ Get the [`CheckpointSummary`] for a given checkpoint digest or checkpoint id. If none is provided, it will use the last known @@ -8140,12 +8572,6 @@ def epoch_total_transaction_blocks(self, epoch: "typing.Union[object, typing.Opt service (e.g., due to pruning). """ - raise NotImplementedError - def epochs(self, pagination_filter: "PaginationFilter"): - """ - Return a page of epochs. - """ - raise NotImplementedError def events(self, pagination_filter: "PaginationFilter",filter: "typing.Union[object, typing.Optional[EventFilter]]" = _DEFAULT): """ @@ -8259,12 +8685,6 @@ def package(self, address: "Address",version: "typing.Union[object, typing.Optio object read (the interpretation of version for the object query). """ - raise NotImplementedError - def package_by_name(self, name: "str"): - """ - Fetch a package by its name (using Move Registry Service) - """ - raise NotImplementedError def package_latest(self, address: "Address"): """ @@ -8337,7 +8757,7 @@ def total_transaction_blocks(self, ): """ raise NotImplementedError - def total_transaction_blocks_by_digest(self, digest: "CheckpointDigest"): + def total_transaction_blocks_by_digest(self, digest: "CheckpointContentsDigest"): """ The total number of transaction blocks in the network by the end of the provided checkpoint digest. @@ -8398,7 +8818,7 @@ def __init__(self, server: "str"): _UniffiConverterString.check_lower(server) - self._pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeBindingsSdkError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_graphqlclient_new, + self._pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeSdkFfiError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_graphqlclient_new, _UniffiConverterString.lower(server)) def __del__(self): @@ -8482,14 +8902,14 @@ async def active_validators(self, pagination_filter: "PaginationFilter",epoch: " _UniffiConverterTypePaginationFilter.lower(pagination_filter), _UniffiConverterOptionalUInt64.lower(epoch) ), - _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_pointer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeValidatorPage.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -8521,7 +8941,7 @@ async def balance(self, address: "Address",coin_type: "typing.Union[object, typi _UniffiConverterOptionalUInt64.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -8543,13 +8963,13 @@ async def chain_id(self, ) -> "str": _UniffiConverterString.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) - async def checkpoint(self, digest: "typing.Union[object, typing.Optional[CheckpointDigest]]" = _DEFAULT,seq_num: "typing.Union[object, typing.Optional[int]]" = _DEFAULT) -> "typing.Optional[CheckpointSummary]": + async def checkpoint(self, digest: "typing.Union[object, typing.Optional[CheckpointContentsDigest]]" = _DEFAULT,seq_num: "typing.Union[object, typing.Optional[int]]" = _DEFAULT) -> "typing.Optional[CheckpointSummary]": """ Get the [`CheckpointSummary`] for a given checkpoint digest or checkpoint id. If none is provided, it will use the last known @@ -8558,7 +8978,7 @@ async def checkpoint(self, digest: "typing.Union[object, typing.Optional[Checkpo if digest is _DEFAULT: digest = None - _UniffiConverterOptionalTypeCheckpointDigest.check_lower(digest) + _UniffiConverterOptionalTypeCheckpointContentsDigest.check_lower(digest) if seq_num is _DEFAULT: seq_num = None @@ -8567,7 +8987,7 @@ async def checkpoint(self, digest: "typing.Union[object, typing.Optional[Checkpo return await _uniffi_rust_call_async( _UniffiLib.uniffi_iota_sdk_ffi_fn_method_graphqlclient_checkpoint( self._uniffi_clone_pointer(), - _UniffiConverterOptionalTypeCheckpointDigest.lower(digest), + _UniffiConverterOptionalTypeCheckpointContentsDigest.lower(digest), _UniffiConverterOptionalUInt64.lower(seq_num) ), _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_rust_buffer, @@ -8577,7 +8997,7 @@ async def checkpoint(self, digest: "typing.Union[object, typing.Optional[Checkpo _UniffiConverterOptionalTypeCheckpointSummary.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -8595,14 +9015,14 @@ async def checkpoints(self, pagination_filter: "PaginationFilter") -> "Checkpoin self._uniffi_clone_pointer(), _UniffiConverterTypePaginationFilter.lower(pagination_filter) ), - _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_pointer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeCheckpointSummaryPage.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -8627,7 +9047,7 @@ async def coin_metadata(self, coin_type: "str") -> "typing.Optional[CoinMetadata _UniffiConverterOptionalTypeCoinMetadata.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -8657,14 +9077,14 @@ async def coins(self, owner: "Address",pagination_filter: "PaginationFilter",coi _UniffiConverterTypePaginationFilter.lower(pagination_filter), _UniffiConverterOptionalString.lower(coin_type) ), - _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_pointer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeCoinPage.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -8700,7 +9120,7 @@ async def dry_run_tx(self, tx: "Transaction",skip_checks: "typing.Union[object, _UniffiConverterTypeDryRunResult.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -8741,7 +9161,7 @@ async def dry_run_tx_kind(self, tx_kind: "TransactionKind",tx_meta: "Transaction _UniffiConverterTypeDryRunResult.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -8791,7 +9211,7 @@ async def dynamic_field(self, address: "Address",type: "TypeTag",name: "Value") _UniffiConverterOptionalTypeDynamicFieldOutput.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -8815,14 +9235,14 @@ async def dynamic_fields(self, address: "Address",pagination_filter: "Pagination _UniffiConverterTypeAddress.lower(address), _UniffiConverterTypePaginationFilter.lower(pagination_filter) ), - _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_pointer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeDynamicFieldOutputPage.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -8860,7 +9280,7 @@ async def dynamic_object_field(self, address: "Address",type: "TypeTag",name: "V _UniffiConverterOptionalTypeDynamicFieldOutput.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -8888,7 +9308,7 @@ async def epoch(self, epoch: "typing.Union[object, typing.Optional[int]]" = _DEF _UniffiConverterOptionalTypeEpoch.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -8917,7 +9337,7 @@ async def epoch_total_checkpoints(self, epoch: "typing.Union[object, typing.Opti _UniffiConverterOptionalUInt64.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -8946,38 +9366,13 @@ async def epoch_total_transaction_blocks(self, epoch: "typing.Union[object, typi _UniffiConverterOptionalUInt64.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) - async def epochs(self, pagination_filter: "PaginationFilter") -> "EpochPage": - """ - Return a page of epochs. - """ - - _UniffiConverterTypePaginationFilter.check_lower(pagination_filter) - - return await _uniffi_rust_call_async( - _UniffiLib.uniffi_iota_sdk_ffi_fn_method_graphqlclient_epochs( - self._uniffi_clone_pointer(), - _UniffiConverterTypePaginationFilter.lower(pagination_filter) - ), - _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_pointer, - # lift function - _UniffiConverterTypeEpochPage.lift, - - # Error FFI converter -_UniffiConverterTypeBindingsSdkError, - - ) - - - - async def events(self, pagination_filter: "PaginationFilter",filter: "typing.Union[object, typing.Optional[EventFilter]]" = _DEFAULT) -> "TransactionEventPage": + async def events(self, pagination_filter: "PaginationFilter",filter: "typing.Union[object, typing.Optional[EventFilter]]" = _DEFAULT) -> "EventPage": """ Return a page of tuple (event, transaction digest) based on the (optional) event filter. @@ -8995,14 +9390,14 @@ async def events(self, pagination_filter: "PaginationFilter",filter: "typing.Uni _UniffiConverterTypePaginationFilter.lower(pagination_filter), _UniffiConverterOptionalTypeEventFilter.lower(filter) ), - _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_pointer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_rust_buffer, # lift function - _UniffiConverterTypeTransactionEventPage.lift, + _UniffiConverterTypeEventPage.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9030,7 +9425,7 @@ async def execute_tx(self, signatures: "typing.List[UserSignature]",tx: "Transac _UniffiConverterOptionalTypeTransactionEffects.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9053,7 +9448,7 @@ async def latest_checkpoint_sequence_number(self, ) -> "typing.Optional[int]": _UniffiConverterOptionalUInt64.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9075,7 +9470,7 @@ async def max_page_size(self, ) -> "int": _UniffiConverterInt32.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9109,7 +9504,7 @@ async def move_object_contents(self, object_id: "ObjectId",version: "typing.Unio _UniffiConverterOptionalTypeValue.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9143,7 +9538,7 @@ async def move_object_contents_bcs(self, object_id: "ObjectId",version: "typing. _UniffiConverterOptionalBytes.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9180,7 +9575,7 @@ async def normalized_move_function(self, package: "str",module: "str",function: _UniffiConverterOptionalTypeMoveFunction.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9225,7 +9620,7 @@ async def normalized_move_module(self, package: "str",module: "str",pagination_f _UniffiConverterOptionalTypeMoveModule.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9259,7 +9654,7 @@ async def object(self, object_id: "ObjectId",version: "typing.Union[object, typi _UniffiConverterOptionalTypeObject.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9285,7 +9680,7 @@ async def object_bcs(self, object_id: "ObjectId") -> "typing.Optional[bytes]": _UniffiConverterOptionalBytes.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9323,14 +9718,14 @@ async def objects(self, pagination_filter: "PaginationFilter",filter: "typing.Un _UniffiConverterTypePaginationFilter.lower(pagination_filter), _UniffiConverterOptionalTypeObjectFilter.lower(filter) ), - _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_pointer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeObjectPage.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9370,32 +9765,7 @@ async def package(self, address: "Address",version: "typing.Union[object, typing _UniffiConverterOptionalTypeMovePackage.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, - - ) - - - - async def package_by_name(self, name: "str") -> "typing.Optional[MovePackage]": - """ - Fetch a package by its name (using Move Registry Service) - """ - - _UniffiConverterString.check_lower(name) - - return await _uniffi_rust_call_async( - _UniffiLib.uniffi_iota_sdk_ffi_fn_method_graphqlclient_package_by_name( - self._uniffi_clone_pointer(), - _UniffiConverterString.lower(name) - ), - _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_rust_buffer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_rust_buffer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_rust_buffer, - # lift function - _UniffiConverterOptionalTypeMovePackage.lift, - - # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9422,7 +9792,7 @@ async def package_latest(self, address: "Address") -> "typing.Optional[MovePacka _UniffiConverterOptionalTypeMovePackage.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9455,14 +9825,14 @@ async def package_versions(self, address: "Address",pagination_filter: "Paginati _UniffiConverterOptionalUInt64.lower(after_version), _UniffiConverterOptionalUInt64.lower(before_version) ), - _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_pointer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeMovePackagePage.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9496,14 +9866,14 @@ async def packages(self, pagination_filter: "PaginationFilter",after_checkpoint: _UniffiConverterOptionalUInt64.lower(after_checkpoint), _UniffiConverterOptionalUInt64.lower(before_checkpoint) ), - _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_pointer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeMovePackagePage.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9530,7 +9900,7 @@ async def protocol_config(self, version: "typing.Union[object, typing.Optional[i _UniffiConverterOptionalTypeProtocolConfigs.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9561,7 +9931,7 @@ async def reference_gas_price(self, epoch: "typing.Union[object, typing.Optional _UniffiConverterOptionalUInt64.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9584,7 +9954,7 @@ async def service_config(self, ) -> "ServiceConfig": _UniffiConverterTypeServiceConfig.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9612,7 +9982,7 @@ async def set_rpc_server(self, server: "str") -> None: # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9637,7 +10007,7 @@ async def total_supply(self, coin_type: "str") -> "typing.Optional[int]": _UniffiConverterOptionalUInt64.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9660,24 +10030,24 @@ async def total_transaction_blocks(self, ) -> "typing.Optional[int]": _UniffiConverterOptionalUInt64.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) - async def total_transaction_blocks_by_digest(self, digest: "CheckpointDigest") -> "typing.Optional[int]": + async def total_transaction_blocks_by_digest(self, digest: "CheckpointContentsDigest") -> "typing.Optional[int]": """ The total number of transaction blocks in the network by the end of the provided checkpoint digest. """ - _UniffiConverterTypeCheckpointDigest.check_lower(digest) + _UniffiConverterTypeCheckpointContentsDigest.check_lower(digest) return await _uniffi_rust_call_async( _UniffiLib.uniffi_iota_sdk_ffi_fn_method_graphqlclient_total_transaction_blocks_by_digest( self._uniffi_clone_pointer(), - _UniffiConverterTypeCheckpointDigest.lower(digest) + _UniffiConverterTypeCheckpointContentsDigest.lower(digest) ), _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_rust_buffer, _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_rust_buffer, @@ -9686,7 +10056,7 @@ async def total_transaction_blocks_by_digest(self, digest: "CheckpointDigest") - _UniffiConverterOptionalUInt64.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9712,7 +10082,7 @@ async def total_transaction_blocks_by_seq_num(self, seq_num: "int") -> "typing.O _UniffiConverterOptionalUInt64.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9737,7 +10107,7 @@ async def transaction(self, digest: "TransactionDigest") -> "typing.Optional[Sig _UniffiConverterOptionalTypeSignedTransaction.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9762,7 +10132,7 @@ async def transaction_data_effects(self, digest: "TransactionDigest") -> "typing _UniffiConverterOptionalTypeTransactionDataEffects.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9787,7 +10157,7 @@ async def transaction_effects(self, digest: "TransactionDigest") -> "typing.Opti _UniffiConverterOptionalTypeTransactionEffects.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9810,14 +10180,14 @@ async def transactions(self, pagination_filter: "PaginationFilter",filter: "typi _UniffiConverterTypePaginationFilter.lower(pagination_filter), _UniffiConverterOptionalTypeTransactionsFilter.lower(filter) ), - _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_pointer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeSignedTransactionPage.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9841,14 +10211,14 @@ async def transactions_data_effects(self, pagination_filter: "PaginationFilter", _UniffiConverterTypePaginationFilter.lower(pagination_filter), _UniffiConverterOptionalTypeTransactionsFilter.lower(filter) ), - _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_pointer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeTransactionDataEffectsPage.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -9871,14 +10241,14 @@ async def transactions_effects(self, pagination_filter: "PaginationFilter",filte _UniffiConverterTypePaginationFilter.lower(pagination_filter), _UniffiConverterOptionalTypeTransactionsFilter.lower(filter) ), - _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_pointer, - _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_pointer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_poll_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_complete_rust_buffer, + _UniffiLib.ffi_iota_sdk_ffi_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeTransactionEffectsPage.lift, # Error FFI converter -_UniffiConverterTypeBindingsSdkError, +_UniffiConverterTypeSdkFfiError, ) @@ -10081,94 +10451,6 @@ def read(cls, buf: _UniffiRustBuffer): @classmethod def write(cls, value: MovePackageProtocol, buf: _UniffiRustBuffer): buf.write_u64(cls.lower(value)) -class MovePackagePageProtocol(typing.Protocol): - def data(self, ): - raise NotImplementedError - def is_empty(self, ): - raise NotImplementedError - def page_info(self, ): - raise NotImplementedError -# MovePackagePage is a Rust-only trait - it's a wrapper around a Rust implementation. -class MovePackagePage(): - _pointer: ctypes.c_void_p - - def __init__(self, *args, **kwargs): - raise ValueError("This class has no default constructor") - - def __del__(self): - # In case of partial initialization of instances. - pointer = getattr(self, "_pointer", None) - if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_movepackagepage, pointer) - - def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_movepackagepage, self._pointer) - - # Used by alternative constructors or any methods which return this type. - @classmethod - def _make_instance_(cls, pointer): - # Lightly yucky way to bypass the usual __init__ logic - # and just create a new instance with the required pointer. - inst = cls.__new__(cls) - inst._pointer = pointer - return inst - - - def data(self, ) -> "typing.List[MovePackage]": - return _UniffiConverterSequenceTypeMovePackage.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_movepackagepage_data,self._uniffi_clone_pointer(),) - ) - - - - - - def is_empty(self, ) -> "bool": - return _UniffiConverterBool.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_movepackagepage_is_empty,self._uniffi_clone_pointer(),) - ) - - - - - - def page_info(self, ) -> "PageInfo": - return _UniffiConverterTypePageInfo.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_movepackagepage_page_info,self._uniffi_clone_pointer(),) - ) - - - - - - -class _UniffiConverterTypeMovePackagePage: - - @staticmethod - def lift(value: int): - return MovePackagePage._make_instance_(value) - - @staticmethod - def check_lower(value: MovePackagePage): - if not isinstance(value, MovePackagePage): - raise TypeError("Expected MovePackagePage instance, {} found".format(type(value).__name__)) - - @staticmethod - def lower(value: MovePackagePageProtocol): - if not isinstance(value, MovePackagePage): - raise TypeError("Expected MovePackagePage instance, {} found".format(type(value).__name__)) - return value._uniffi_clone_pointer() - - @classmethod - def read(cls, buf: _UniffiRustBuffer): - ptr = buf.read_u64() - if ptr == 0: - raise InternalError("Raw pointer value was null") - return cls.lift(ptr) - - @classmethod - def write(cls, value: MovePackagePageProtocol, buf: _UniffiRustBuffer): - buf.write_u64(cls.lower(value)) class MoveStructProtocol(typing.Protocol): pass # MoveStruct is a Rust-only trait - it's a wrapper around a Rust implementation. @@ -10585,62 +10867,6 @@ def read(cls, buf: _UniffiRustBuffer): @classmethod def write(cls, value: ObjectDigestProtocol, buf: _UniffiRustBuffer): buf.write_u64(cls.lower(value)) -class ObjectFilterProtocol(typing.Protocol): - pass -# ObjectFilter is a Rust-only trait - it's a wrapper around a Rust implementation. -class ObjectFilter(): - _pointer: ctypes.c_void_p - - def __init__(self, *args, **kwargs): - raise ValueError("This class has no default constructor") - - def __del__(self): - # In case of partial initialization of instances. - pointer = getattr(self, "_pointer", None) - if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_objectfilter, pointer) - - def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_objectfilter, self._pointer) - - # Used by alternative constructors or any methods which return this type. - @classmethod - def _make_instance_(cls, pointer): - # Lightly yucky way to bypass the usual __init__ logic - # and just create a new instance with the required pointer. - inst = cls.__new__(cls) - inst._pointer = pointer - return inst - - - -class _UniffiConverterTypeObjectFilter: - - @staticmethod - def lift(value: int): - return ObjectFilter._make_instance_(value) - - @staticmethod - def check_lower(value: ObjectFilter): - if not isinstance(value, ObjectFilter): - raise TypeError("Expected ObjectFilter instance, {} found".format(type(value).__name__)) - - @staticmethod - def lower(value: ObjectFilterProtocol): - if not isinstance(value, ObjectFilter): - raise TypeError("Expected ObjectFilter instance, {} found".format(type(value).__name__)) - return value._uniffi_clone_pointer() - - @classmethod - def read(cls, buf: _UniffiRustBuffer): - ptr = buf.read_u64() - if ptr == 0: - raise InternalError("Raw pointer value was null") - return cls.lift(ptr) - - @classmethod - def write(cls, value: ObjectFilterProtocol, buf: _UniffiRustBuffer): - buf.write_u64(cls.lower(value)) class ObjectIdProtocol(typing.Protocol): """ An `ObjectId` is a 32-byte identifier used to uniquely identify an object on @@ -10719,7 +10945,7 @@ def from_bytes(cls, bytes: "bytes"): _UniffiConverterBytes.check_lower(bytes) # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeBindingsSdkError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_objectid_from_bytes, + pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeSdkFfiError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_objectid_from_bytes, _UniffiConverterBytes.lower(bytes)) return cls._make_instance_(pointer) @@ -10728,7 +10954,7 @@ def from_hex(cls, hex: "str"): _UniffiConverterString.check_lower(hex) # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeBindingsSdkError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_objectid_from_hex, + pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeSdkFfiError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_objectid_from_hex, _UniffiConverterString.lower(hex)) return cls._make_instance_(pointer) @@ -10789,94 +11015,6 @@ def read(cls, buf: _UniffiRustBuffer): @classmethod def write(cls, value: ObjectIdProtocol, buf: _UniffiRustBuffer): buf.write_u64(cls.lower(value)) -class ObjectPageProtocol(typing.Protocol): - def data(self, ): - raise NotImplementedError - def is_empty(self, ): - raise NotImplementedError - def page_info(self, ): - raise NotImplementedError -# ObjectPage is a Rust-only trait - it's a wrapper around a Rust implementation. -class ObjectPage(): - _pointer: ctypes.c_void_p - - def __init__(self, *args, **kwargs): - raise ValueError("This class has no default constructor") - - def __del__(self): - # In case of partial initialization of instances. - pointer = getattr(self, "_pointer", None) - if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_objectpage, pointer) - - def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_objectpage, self._pointer) - - # Used by alternative constructors or any methods which return this type. - @classmethod - def _make_instance_(cls, pointer): - # Lightly yucky way to bypass the usual __init__ logic - # and just create a new instance with the required pointer. - inst = cls.__new__(cls) - inst._pointer = pointer - return inst - - - def data(self, ) -> "typing.List[Object]": - return _UniffiConverterSequenceTypeObject.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_objectpage_data,self._uniffi_clone_pointer(),) - ) - - - - - - def is_empty(self, ) -> "bool": - return _UniffiConverterBool.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_objectpage_is_empty,self._uniffi_clone_pointer(),) - ) - - - - - - def page_info(self, ) -> "PageInfo": - return _UniffiConverterTypePageInfo.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_objectpage_page_info,self._uniffi_clone_pointer(),) - ) - - - - - - -class _UniffiConverterTypeObjectPage: - - @staticmethod - def lift(value: int): - return ObjectPage._make_instance_(value) - - @staticmethod - def check_lower(value: ObjectPage): - if not isinstance(value, ObjectPage): - raise TypeError("Expected ObjectPage instance, {} found".format(type(value).__name__)) - - @staticmethod - def lower(value: ObjectPageProtocol): - if not isinstance(value, ObjectPage): - raise TypeError("Expected ObjectPage instance, {} found".format(type(value).__name__)) - return value._uniffi_clone_pointer() - - @classmethod - def read(cls, buf: _UniffiRustBuffer): - ptr = buf.read_u64() - if ptr == 0: - raise InternalError("Raw pointer value was null") - return cls.lift(ptr) - - @classmethod - def write(cls, value: ObjectPageProtocol, buf: _UniffiRustBuffer): - buf.write_u64(cls.lower(value)) class ObjectRefProtocol(typing.Protocol): pass # ObjectRef is a Rust-only trait - it's a wrapper around a Rust implementation. @@ -11045,10 +11183,10 @@ def read(cls, buf: _UniffiRustBuffer): @classmethod def write(cls, value: OwnerProtocol, buf: _UniffiRustBuffer): buf.write_u64(cls.lower(value)) -class PageInfoProtocol(typing.Protocol): +class ProgrammableTransactionProtocol(typing.Protocol): pass -# PageInfo is a Rust-only trait - it's a wrapper around a Rust implementation. -class PageInfo(): +# ProgrammableTransaction is a Rust-only trait - it's a wrapper around a Rust implementation. +class ProgrammableTransaction(): _pointer: ctypes.c_void_p def __init__(self, *args, **kwargs): @@ -11058,66 +11196,10 @@ def __del__(self): # In case of partial initialization of instances. pointer = getattr(self, "_pointer", None) if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_pageinfo, pointer) + _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_programmabletransaction, pointer) def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_pageinfo, self._pointer) - - # Used by alternative constructors or any methods which return this type. - @classmethod - def _make_instance_(cls, pointer): - # Lightly yucky way to bypass the usual __init__ logic - # and just create a new instance with the required pointer. - inst = cls.__new__(cls) - inst._pointer = pointer - return inst - - - -class _UniffiConverterTypePageInfo: - - @staticmethod - def lift(value: int): - return PageInfo._make_instance_(value) - - @staticmethod - def check_lower(value: PageInfo): - if not isinstance(value, PageInfo): - raise TypeError("Expected PageInfo instance, {} found".format(type(value).__name__)) - - @staticmethod - def lower(value: PageInfoProtocol): - if not isinstance(value, PageInfo): - raise TypeError("Expected PageInfo instance, {} found".format(type(value).__name__)) - return value._uniffi_clone_pointer() - - @classmethod - def read(cls, buf: _UniffiRustBuffer): - ptr = buf.read_u64() - if ptr == 0: - raise InternalError("Raw pointer value was null") - return cls.lift(ptr) - - @classmethod - def write(cls, value: PageInfoProtocol, buf: _UniffiRustBuffer): - buf.write_u64(cls.lower(value)) -class ProgrammableTransactionProtocol(typing.Protocol): - pass -# ProgrammableTransaction is a Rust-only trait - it's a wrapper around a Rust implementation. -class ProgrammableTransaction(): - _pointer: ctypes.c_void_p - - def __init__(self, *args, **kwargs): - raise ValueError("This class has no default constructor") - - def __del__(self): - # In case of partial initialization of instances. - pointer = getattr(self, "_pointer", None) - if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_programmabletransaction, pointer) - - def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_programmabletransaction, self._pointer) + return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_programmabletransaction, self._pointer) # Used by alternative constructors or any methods which return this type. @classmethod @@ -11325,7 +11407,7 @@ def from_bytes(cls, bytes: "bytes"): _UniffiConverterBytes.check_lower(bytes) # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeBindingsSdkError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_secp256k1publickey_from_bytes, + pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeSdkFfiError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_secp256k1publickey_from_bytes, _UniffiConverterBytes.lower(bytes)) return cls._make_instance_(pointer) @@ -11334,7 +11416,7 @@ def from_str(cls, s: "str"): _UniffiConverterString.check_lower(s) # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeBindingsSdkError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_secp256k1publickey_from_str, + pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeSdkFfiError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_secp256k1publickey_from_str, _UniffiConverterString.lower(s)) return cls._make_instance_(pointer) @@ -11439,7 +11521,7 @@ def from_bytes(cls, bytes: "bytes"): _UniffiConverterBytes.check_lower(bytes) # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeBindingsSdkError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_secp256r1publickey_from_bytes, + pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeSdkFfiError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_secp256r1publickey_from_bytes, _UniffiConverterBytes.lower(bytes)) return cls._make_instance_(pointer) @@ -11448,7 +11530,7 @@ def from_str(cls, s: "str"): _UniffiConverterString.check_lower(s) # Call the (fallible) function before creating any half-baked object instances. - pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeBindingsSdkError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_secp256r1publickey_from_str, + pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeSdkFfiError,_UniffiLib.uniffi_iota_sdk_ffi_fn_constructor_secp256r1publickey_from_str, _UniffiConverterString.lower(s)) return cls._make_instance_(pointer) @@ -11635,94 +11717,6 @@ def read(cls, buf: _UniffiRustBuffer): @classmethod def write(cls, value: SignedTransactionProtocol, buf: _UniffiRustBuffer): buf.write_u64(cls.lower(value)) -class SignedTransactionPageProtocol(typing.Protocol): - def data(self, ): - raise NotImplementedError - def is_empty(self, ): - raise NotImplementedError - def page_info(self, ): - raise NotImplementedError -# SignedTransactionPage is a Rust-only trait - it's a wrapper around a Rust implementation. -class SignedTransactionPage(): - _pointer: ctypes.c_void_p - - def __init__(self, *args, **kwargs): - raise ValueError("This class has no default constructor") - - def __del__(self): - # In case of partial initialization of instances. - pointer = getattr(self, "_pointer", None) - if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_signedtransactionpage, pointer) - - def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_signedtransactionpage, self._pointer) - - # Used by alternative constructors or any methods which return this type. - @classmethod - def _make_instance_(cls, pointer): - # Lightly yucky way to bypass the usual __init__ logic - # and just create a new instance with the required pointer. - inst = cls.__new__(cls) - inst._pointer = pointer - return inst - - - def data(self, ) -> "typing.List[SignedTransaction]": - return _UniffiConverterSequenceTypeSignedTransaction.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_signedtransactionpage_data,self._uniffi_clone_pointer(),) - ) - - - - - - def is_empty(self, ) -> "bool": - return _UniffiConverterBool.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_signedtransactionpage_is_empty,self._uniffi_clone_pointer(),) - ) - - - - - - def page_info(self, ) -> "PageInfo": - return _UniffiConverterTypePageInfo.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_signedtransactionpage_page_info,self._uniffi_clone_pointer(),) - ) - - - - - - -class _UniffiConverterTypeSignedTransactionPage: - - @staticmethod - def lift(value: int): - return SignedTransactionPage._make_instance_(value) - - @staticmethod - def check_lower(value: SignedTransactionPage): - if not isinstance(value, SignedTransactionPage): - raise TypeError("Expected SignedTransactionPage instance, {} found".format(type(value).__name__)) - - @staticmethod - def lower(value: SignedTransactionPageProtocol): - if not isinstance(value, SignedTransactionPage): - raise TypeError("Expected SignedTransactionPage instance, {} found".format(type(value).__name__)) - return value._uniffi_clone_pointer() - - @classmethod - def read(cls, buf: _UniffiRustBuffer): - ptr = buf.read_u64() - if ptr == 0: - raise InternalError("Raw pointer value was null") - return cls.lift(ptr) - - @classmethod - def write(cls, value: SignedTransactionPageProtocol, buf: _UniffiRustBuffer): - buf.write_u64(cls.lower(value)) class TransactionProtocol(typing.Protocol): """ A transaction @@ -11907,286 +11901,30 @@ def effects(self, ) -> "TransactionEffects": def tx(self, ) -> "SignedTransaction": - return _UniffiConverterTypeSignedTransaction.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactiondataeffects_tx,self._uniffi_clone_pointer(),) - ) - - - - - - -class _UniffiConverterTypeTransactionDataEffects: - - @staticmethod - def lift(value: int): - return TransactionDataEffects._make_instance_(value) - - @staticmethod - def check_lower(value: TransactionDataEffects): - if not isinstance(value, TransactionDataEffects): - raise TypeError("Expected TransactionDataEffects instance, {} found".format(type(value).__name__)) - - @staticmethod - def lower(value: TransactionDataEffectsProtocol): - if not isinstance(value, TransactionDataEffects): - raise TypeError("Expected TransactionDataEffects instance, {} found".format(type(value).__name__)) - return value._uniffi_clone_pointer() - - @classmethod - def read(cls, buf: _UniffiRustBuffer): - ptr = buf.read_u64() - if ptr == 0: - raise InternalError("Raw pointer value was null") - return cls.lift(ptr) - - @classmethod - def write(cls, value: TransactionDataEffectsProtocol, buf: _UniffiRustBuffer): - buf.write_u64(cls.lower(value)) -class TransactionDataEffectsPageProtocol(typing.Protocol): - def data(self, ): - raise NotImplementedError - def is_empty(self, ): - raise NotImplementedError - def page_info(self, ): - raise NotImplementedError -# TransactionDataEffectsPage is a Rust-only trait - it's a wrapper around a Rust implementation. -class TransactionDataEffectsPage(): - _pointer: ctypes.c_void_p - - def __init__(self, *args, **kwargs): - raise ValueError("This class has no default constructor") - - def __del__(self): - # In case of partial initialization of instances. - pointer = getattr(self, "_pointer", None) - if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactiondataeffectspage, pointer) - - def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactiondataeffectspage, self._pointer) - - # Used by alternative constructors or any methods which return this type. - @classmethod - def _make_instance_(cls, pointer): - # Lightly yucky way to bypass the usual __init__ logic - # and just create a new instance with the required pointer. - inst = cls.__new__(cls) - inst._pointer = pointer - return inst - - - def data(self, ) -> "typing.List[TransactionDataEffects]": - return _UniffiConverterSequenceTypeTransactionDataEffects.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactiondataeffectspage_data,self._uniffi_clone_pointer(),) - ) - - - - - - def is_empty(self, ) -> "bool": - return _UniffiConverterBool.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactiondataeffectspage_is_empty,self._uniffi_clone_pointer(),) - ) - - - - - - def page_info(self, ) -> "PageInfo": - return _UniffiConverterTypePageInfo.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactiondataeffectspage_page_info,self._uniffi_clone_pointer(),) - ) - - - - - - -class _UniffiConverterTypeTransactionDataEffectsPage: - - @staticmethod - def lift(value: int): - return TransactionDataEffectsPage._make_instance_(value) - - @staticmethod - def check_lower(value: TransactionDataEffectsPage): - if not isinstance(value, TransactionDataEffectsPage): - raise TypeError("Expected TransactionDataEffectsPage instance, {} found".format(type(value).__name__)) - - @staticmethod - def lower(value: TransactionDataEffectsPageProtocol): - if not isinstance(value, TransactionDataEffectsPage): - raise TypeError("Expected TransactionDataEffectsPage instance, {} found".format(type(value).__name__)) - return value._uniffi_clone_pointer() - - @classmethod - def read(cls, buf: _UniffiRustBuffer): - ptr = buf.read_u64() - if ptr == 0: - raise InternalError("Raw pointer value was null") - return cls.lift(ptr) - - @classmethod - def write(cls, value: TransactionDataEffectsPageProtocol, buf: _UniffiRustBuffer): - buf.write_u64(cls.lower(value)) -class TransactionDigestProtocol(typing.Protocol): - pass -# TransactionDigest is a Rust-only trait - it's a wrapper around a Rust implementation. -class TransactionDigest(): - _pointer: ctypes.c_void_p - - def __init__(self, *args, **kwargs): - raise ValueError("This class has no default constructor") - - def __del__(self): - # In case of partial initialization of instances. - pointer = getattr(self, "_pointer", None) - if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactiondigest, pointer) - - def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactiondigest, self._pointer) - - # Used by alternative constructors or any methods which return this type. - @classmethod - def _make_instance_(cls, pointer): - # Lightly yucky way to bypass the usual __init__ logic - # and just create a new instance with the required pointer. - inst = cls.__new__(cls) - inst._pointer = pointer - return inst - - - -class _UniffiConverterTypeTransactionDigest: - - @staticmethod - def lift(value: int): - return TransactionDigest._make_instance_(value) - - @staticmethod - def check_lower(value: TransactionDigest): - if not isinstance(value, TransactionDigest): - raise TypeError("Expected TransactionDigest instance, {} found".format(type(value).__name__)) - - @staticmethod - def lower(value: TransactionDigestProtocol): - if not isinstance(value, TransactionDigest): - raise TypeError("Expected TransactionDigest instance, {} found".format(type(value).__name__)) - return value._uniffi_clone_pointer() - - @classmethod - def read(cls, buf: _UniffiRustBuffer): - ptr = buf.read_u64() - if ptr == 0: - raise InternalError("Raw pointer value was null") - return cls.lift(ptr) - - @classmethod - def write(cls, value: TransactionDigestProtocol, buf: _UniffiRustBuffer): - buf.write_u64(cls.lower(value)) -class TransactionEffectsProtocol(typing.Protocol): - pass -# TransactionEffects is a Rust-only trait - it's a wrapper around a Rust implementation. -class TransactionEffects(): - _pointer: ctypes.c_void_p - - def __init__(self, *args, **kwargs): - raise ValueError("This class has no default constructor") - - def __del__(self): - # In case of partial initialization of instances. - pointer = getattr(self, "_pointer", None) - if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactioneffects, pointer) - - def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactioneffects, self._pointer) - - # Used by alternative constructors or any methods which return this type. - @classmethod - def _make_instance_(cls, pointer): - # Lightly yucky way to bypass the usual __init__ logic - # and just create a new instance with the required pointer. - inst = cls.__new__(cls) - inst._pointer = pointer - return inst - - - -class _UniffiConverterTypeTransactionEffects: - - @staticmethod - def lift(value: int): - return TransactionEffects._make_instance_(value) - - @staticmethod - def check_lower(value: TransactionEffects): - if not isinstance(value, TransactionEffects): - raise TypeError("Expected TransactionEffects instance, {} found".format(type(value).__name__)) - - @staticmethod - def lower(value: TransactionEffectsProtocol): - if not isinstance(value, TransactionEffects): - raise TypeError("Expected TransactionEffects instance, {} found".format(type(value).__name__)) - return value._uniffi_clone_pointer() - - @classmethod - def read(cls, buf: _UniffiRustBuffer): - ptr = buf.read_u64() - if ptr == 0: - raise InternalError("Raw pointer value was null") - return cls.lift(ptr) - - @classmethod - def write(cls, value: TransactionEffectsProtocol, buf: _UniffiRustBuffer): - buf.write_u64(cls.lower(value)) -class TransactionEffectsDigestProtocol(typing.Protocol): - pass -# TransactionEffectsDigest is a Rust-only trait - it's a wrapper around a Rust implementation. -class TransactionEffectsDigest(): - _pointer: ctypes.c_void_p - - def __init__(self, *args, **kwargs): - raise ValueError("This class has no default constructor") - - def __del__(self): - # In case of partial initialization of instances. - pointer = getattr(self, "_pointer", None) - if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactioneffectsdigest, pointer) + return _UniffiConverterTypeSignedTransaction.lift( + _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactiondataeffects_tx,self._uniffi_clone_pointer(),) + ) - def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactioneffectsdigest, self._pointer) - # Used by alternative constructors or any methods which return this type. - @classmethod - def _make_instance_(cls, pointer): - # Lightly yucky way to bypass the usual __init__ logic - # and just create a new instance with the required pointer. - inst = cls.__new__(cls) - inst._pointer = pointer - return inst -class _UniffiConverterTypeTransactionEffectsDigest: + +class _UniffiConverterTypeTransactionDataEffects: @staticmethod def lift(value: int): - return TransactionEffectsDigest._make_instance_(value) + return TransactionDataEffects._make_instance_(value) @staticmethod - def check_lower(value: TransactionEffectsDigest): - if not isinstance(value, TransactionEffectsDigest): - raise TypeError("Expected TransactionEffectsDigest instance, {} found".format(type(value).__name__)) + def check_lower(value: TransactionDataEffects): + if not isinstance(value, TransactionDataEffects): + raise TypeError("Expected TransactionDataEffects instance, {} found".format(type(value).__name__)) @staticmethod - def lower(value: TransactionEffectsDigestProtocol): - if not isinstance(value, TransactionEffectsDigest): - raise TypeError("Expected TransactionEffectsDigest instance, {} found".format(type(value).__name__)) + def lower(value: TransactionDataEffectsProtocol): + if not isinstance(value, TransactionDataEffects): + raise TypeError("Expected TransactionDataEffects instance, {} found".format(type(value).__name__)) return value._uniffi_clone_pointer() @classmethod @@ -12197,17 +11935,12 @@ def read(cls, buf: _UniffiRustBuffer): return cls.lift(ptr) @classmethod - def write(cls, value: TransactionEffectsDigestProtocol, buf: _UniffiRustBuffer): + def write(cls, value: TransactionDataEffectsProtocol, buf: _UniffiRustBuffer): buf.write_u64(cls.lower(value)) -class TransactionEffectsPageProtocol(typing.Protocol): - def data(self, ): - raise NotImplementedError - def is_empty(self, ): - raise NotImplementedError - def page_info(self, ): - raise NotImplementedError -# TransactionEffectsPage is a Rust-only trait - it's a wrapper around a Rust implementation. -class TransactionEffectsPage(): +class TransactionDigestProtocol(typing.Protocol): + pass +# TransactionDigest is a Rust-only trait - it's a wrapper around a Rust implementation. +class TransactionDigest(): _pointer: ctypes.c_void_p def __init__(self, *args, **kwargs): @@ -12217,10 +11950,10 @@ def __del__(self): # In case of partial initialization of instances. pointer = getattr(self, "_pointer", None) if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactioneffectspage, pointer) + _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactiondigest, pointer) def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactioneffectspage, self._pointer) + return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactiondigest, self._pointer) # Used by alternative constructors or any methods which return this type. @classmethod @@ -12232,49 +11965,22 @@ def _make_instance_(cls, pointer): return inst - def data(self, ) -> "typing.List[TransactionEffects]": - return _UniffiConverterSequenceTypeTransactionEffects.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneffectspage_data,self._uniffi_clone_pointer(),) - ) - - - - - - def is_empty(self, ) -> "bool": - return _UniffiConverterBool.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneffectspage_is_empty,self._uniffi_clone_pointer(),) - ) - - - - - - def page_info(self, ) -> "PageInfo": - return _UniffiConverterTypePageInfo.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneffectspage_page_info,self._uniffi_clone_pointer(),) - ) - - - - - -class _UniffiConverterTypeTransactionEffectsPage: +class _UniffiConverterTypeTransactionDigest: @staticmethod def lift(value: int): - return TransactionEffectsPage._make_instance_(value) + return TransactionDigest._make_instance_(value) @staticmethod - def check_lower(value: TransactionEffectsPage): - if not isinstance(value, TransactionEffectsPage): - raise TypeError("Expected TransactionEffectsPage instance, {} found".format(type(value).__name__)) + def check_lower(value: TransactionDigest): + if not isinstance(value, TransactionDigest): + raise TypeError("Expected TransactionDigest instance, {} found".format(type(value).__name__)) @staticmethod - def lower(value: TransactionEffectsPageProtocol): - if not isinstance(value, TransactionEffectsPage): - raise TypeError("Expected TransactionEffectsPage instance, {} found".format(type(value).__name__)) + def lower(value: TransactionDigestProtocol): + if not isinstance(value, TransactionDigest): + raise TypeError("Expected TransactionDigest instance, {} found".format(type(value).__name__)) return value._uniffi_clone_pointer() @classmethod @@ -12285,12 +11991,12 @@ def read(cls, buf: _UniffiRustBuffer): return cls.lift(ptr) @classmethod - def write(cls, value: TransactionEffectsPageProtocol, buf: _UniffiRustBuffer): + def write(cls, value: TransactionDigestProtocol, buf: _UniffiRustBuffer): buf.write_u64(cls.lower(value)) -class TransactionEventProtocol(typing.Protocol): +class TransactionEffectsProtocol(typing.Protocol): pass -# TransactionEvent is a Rust-only trait - it's a wrapper around a Rust implementation. -class TransactionEvent(): +# TransactionEffects is a Rust-only trait - it's a wrapper around a Rust implementation. +class TransactionEffects(): _pointer: ctypes.c_void_p def __init__(self, *args, **kwargs): @@ -12300,10 +12006,10 @@ def __del__(self): # In case of partial initialization of instances. pointer = getattr(self, "_pointer", None) if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactionevent, pointer) + _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactioneffects, pointer) def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactionevent, self._pointer) + return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactioneffects, self._pointer) # Used by alternative constructors or any methods which return this type. @classmethod @@ -12316,21 +12022,21 @@ def _make_instance_(cls, pointer): -class _UniffiConverterTypeTransactionEvent: +class _UniffiConverterTypeTransactionEffects: @staticmethod def lift(value: int): - return TransactionEvent._make_instance_(value) + return TransactionEffects._make_instance_(value) @staticmethod - def check_lower(value: TransactionEvent): - if not isinstance(value, TransactionEvent): - raise TypeError("Expected TransactionEvent instance, {} found".format(type(value).__name__)) + def check_lower(value: TransactionEffects): + if not isinstance(value, TransactionEffects): + raise TypeError("Expected TransactionEffects instance, {} found".format(type(value).__name__)) @staticmethod - def lower(value: TransactionEventProtocol): - if not isinstance(value, TransactionEvent): - raise TypeError("Expected TransactionEvent instance, {} found".format(type(value).__name__)) + def lower(value: TransactionEffectsProtocol): + if not isinstance(value, TransactionEffects): + raise TypeError("Expected TransactionEffects instance, {} found".format(type(value).__name__)) return value._uniffi_clone_pointer() @classmethod @@ -12341,17 +12047,12 @@ def read(cls, buf: _UniffiRustBuffer): return cls.lift(ptr) @classmethod - def write(cls, value: TransactionEventProtocol, buf: _UniffiRustBuffer): + def write(cls, value: TransactionEffectsProtocol, buf: _UniffiRustBuffer): buf.write_u64(cls.lower(value)) -class TransactionEventPageProtocol(typing.Protocol): - def data(self, ): - raise NotImplementedError - def is_empty(self, ): - raise NotImplementedError - def page_info(self, ): - raise NotImplementedError -# TransactionEventPage is a Rust-only trait - it's a wrapper around a Rust implementation. -class TransactionEventPage(): +class TransactionEffectsDigestProtocol(typing.Protocol): + pass +# TransactionEffectsDigest is a Rust-only trait - it's a wrapper around a Rust implementation. +class TransactionEffectsDigest(): _pointer: ctypes.c_void_p def __init__(self, *args, **kwargs): @@ -12361,10 +12062,10 @@ def __del__(self): # In case of partial initialization of instances. pointer = getattr(self, "_pointer", None) if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactioneventpage, pointer) + _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_transactioneffectsdigest, pointer) def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactioneventpage, self._pointer) + return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_transactioneffectsdigest, self._pointer) # Used by alternative constructors or any methods which return this type. @classmethod @@ -12376,49 +12077,22 @@ def _make_instance_(cls, pointer): return inst - def data(self, ) -> "typing.List[TransactionEvent]": - return _UniffiConverterSequenceTypeTransactionEvent.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneventpage_data,self._uniffi_clone_pointer(),) - ) - - - - - - def is_empty(self, ) -> "bool": - return _UniffiConverterBool.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneventpage_is_empty,self._uniffi_clone_pointer(),) - ) - - - - - - def page_info(self, ) -> "PageInfo": - return _UniffiConverterTypePageInfo.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_transactioneventpage_page_info,self._uniffi_clone_pointer(),) - ) - - - - - -class _UniffiConverterTypeTransactionEventPage: +class _UniffiConverterTypeTransactionEffectsDigest: @staticmethod def lift(value: int): - return TransactionEventPage._make_instance_(value) + return TransactionEffectsDigest._make_instance_(value) @staticmethod - def check_lower(value: TransactionEventPage): - if not isinstance(value, TransactionEventPage): - raise TypeError("Expected TransactionEventPage instance, {} found".format(type(value).__name__)) + def check_lower(value: TransactionEffectsDigest): + if not isinstance(value, TransactionEffectsDigest): + raise TypeError("Expected TransactionEffectsDigest instance, {} found".format(type(value).__name__)) @staticmethod - def lower(value: TransactionEventPageProtocol): - if not isinstance(value, TransactionEventPage): - raise TypeError("Expected TransactionEventPage instance, {} found".format(type(value).__name__)) + def lower(value: TransactionEffectsDigestProtocol): + if not isinstance(value, TransactionEffectsDigest): + raise TypeError("Expected TransactionEffectsDigest instance, {} found".format(type(value).__name__)) return value._uniffi_clone_pointer() @classmethod @@ -12429,7 +12103,7 @@ def read(cls, buf: _UniffiRustBuffer): return cls.lift(ptr) @classmethod - def write(cls, value: TransactionEventPageProtocol, buf: _UniffiRustBuffer): + def write(cls, value: TransactionEffectsDigestProtocol, buf: _UniffiRustBuffer): buf.write_u64(cls.lower(value)) class TransactionEventsDigestProtocol(typing.Protocol): pass @@ -12805,150 +12479,7 @@ def read(cls, buf: _UniffiRustBuffer): @classmethod def write(cls, value: UserSignatureProtocol, buf: _UniffiRustBuffer): buf.write_u64(cls.lower(value)) -class ValidatorProtocol(typing.Protocol): - pass -# Validator is a Rust-only trait - it's a wrapper around a Rust implementation. -class Validator(): - _pointer: ctypes.c_void_p - - def __init__(self, *args, **kwargs): - raise ValueError("This class has no default constructor") - - def __del__(self): - # In case of partial initialization of instances. - pointer = getattr(self, "_pointer", None) - if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_validator, pointer) - - def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_validator, self._pointer) - - # Used by alternative constructors or any methods which return this type. - @classmethod - def _make_instance_(cls, pointer): - # Lightly yucky way to bypass the usual __init__ logic - # and just create a new instance with the required pointer. - inst = cls.__new__(cls) - inst._pointer = pointer - return inst - - - -class _UniffiConverterTypeValidator: - - @staticmethod - def lift(value: int): - return Validator._make_instance_(value) - - @staticmethod - def check_lower(value: Validator): - if not isinstance(value, Validator): - raise TypeError("Expected Validator instance, {} found".format(type(value).__name__)) - - @staticmethod - def lower(value: ValidatorProtocol): - if not isinstance(value, Validator): - raise TypeError("Expected Validator instance, {} found".format(type(value).__name__)) - return value._uniffi_clone_pointer() - - @classmethod - def read(cls, buf: _UniffiRustBuffer): - ptr = buf.read_u64() - if ptr == 0: - raise InternalError("Raw pointer value was null") - return cls.lift(ptr) - - @classmethod - def write(cls, value: ValidatorProtocol, buf: _UniffiRustBuffer): - buf.write_u64(cls.lower(value)) -class ValidatorPageProtocol(typing.Protocol): - def data(self, ): - raise NotImplementedError - def is_empty(self, ): - raise NotImplementedError - def page_info(self, ): - raise NotImplementedError -# ValidatorPage is a Rust-only trait - it's a wrapper around a Rust implementation. -class ValidatorPage(): - _pointer: ctypes.c_void_p - - def __init__(self, *args, **kwargs): - raise ValueError("This class has no default constructor") - - def __del__(self): - # In case of partial initialization of instances. - pointer = getattr(self, "_pointer", None) - if pointer is not None: - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_free_validatorpage, pointer) - - def _uniffi_clone_pointer(self): - return _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_validatorpage, self._pointer) - - # Used by alternative constructors or any methods which return this type. - @classmethod - def _make_instance_(cls, pointer): - # Lightly yucky way to bypass the usual __init__ logic - # and just create a new instance with the required pointer. - inst = cls.__new__(cls) - inst._pointer = pointer - return inst - - - def data(self, ) -> "typing.List[Validator]": - return _UniffiConverterSequenceTypeValidator.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_validatorpage_data,self._uniffi_clone_pointer(),) - ) - - - - - - def is_empty(self, ) -> "bool": - return _UniffiConverterBool.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_validatorpage_is_empty,self._uniffi_clone_pointer(),) - ) - - - - - - def page_info(self, ) -> "PageInfo": - return _UniffiConverterTypePageInfo.lift( - _uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_validatorpage_page_info,self._uniffi_clone_pointer(),) - ) - - - - - - -class _UniffiConverterTypeValidatorPage: - - @staticmethod - def lift(value: int): - return ValidatorPage._make_instance_(value) - - @staticmethod - def check_lower(value: ValidatorPage): - if not isinstance(value, ValidatorPage): - raise TypeError("Expected ValidatorPage instance, {} found".format(type(value).__name__)) - - @staticmethod - def lower(value: ValidatorPageProtocol): - if not isinstance(value, ValidatorPage): - raise TypeError("Expected ValidatorPage instance, {} found".format(type(value).__name__)) - return value._uniffi_clone_pointer() - - @classmethod - def read(cls, buf: _UniffiRustBuffer): - ptr = buf.read_u64() - if ptr == 0: - raise InternalError("Raw pointer value was null") - return cls.lift(ptr) - - @classmethod - def write(cls, value: ValidatorPageProtocol, buf: _UniffiRustBuffer): - buf.write_u64(cls.lower(value)) +Base64 = str Value = str # Async support# RustFuturePoll values @@ -13017,19 +12548,37 @@ async def _uniffi_rust_call_async(rust_future, ffi_poll, ffi_complete, ffi_free, __all__ = [ "InternalError", - "BindingsSdkError", "Direction", + "SdkFfiError", "TransactionBlockKindInput", "CheckpointSummary", + "CheckpointSummaryPage", + "CoinPage", + "DynamicFieldName", + "DynamicFieldOutput", + "DynamicFieldOutputPage", + "DynamicFieldValue", "EndOfEpochData", + "EpochPage", "EventFilter", + "EventPage", "GasCostSummary", "GasPayment", + "MovePackagePage", + "ObjectFilter", + "ObjectPage", "ObjectReference", + "PageInfo", "PaginationFilter", + "SignedTransactionPage", + "TransactionDataEffectsPage", + "TransactionEffectsPage", "TransactionMetadata", "TransactionsFilter", + "Validator", "ValidatorCommitteeMember", + "ValidatorCredentials", + "ValidatorPage", "Address", "AuthenticatorStateExpire", "AuthenticatorStateUpdateV1", @@ -13040,21 +12589,17 @@ async def _uniffi_rust_call_async(rust_future, ffi_poll, ffi_complete, ffi_free, "CheckpointCommitment", "CheckpointContentsDigest", "CheckpointDigest", - "CheckpointSummaryPage", "Coin", "CoinMetadata", - "CoinPage", "ConsensusCommitDigest", "ConsensusCommitPrologueV1", "Digest", "DryRunResult", - "DynamicFieldOutput", - "DynamicFieldOutputPage", "Ed25519PublicKey", "EffectsAuxiliaryDataDigest", "EndOfEpochTransactionKind", "Epoch", - "EpochPage", + "Event", "ExecutionTimeObservations", "FaucetClient", "FaucetReceipt", @@ -13063,18 +12608,14 @@ async def _uniffi_rust_call_async(rust_future, ffi_poll, ffi_complete, ffi_free, "MoveFunction", "MoveModule", "MovePackage", - "MovePackagePage", "MoveStruct", "Object", "ObjectData", "ObjectDigest", - "ObjectFilter", "ObjectId", - "ObjectPage", "ObjectRef", "ObjectType", "Owner", - "PageInfo", "ProgrammableTransaction", "ProtocolConfigs", "RandomnessStateUpdate", @@ -13082,22 +12623,15 @@ async def _uniffi_rust_call_async(rust_future, ffi_poll, ffi_complete, ffi_free, "Secp256r1PublicKey", "ServiceConfig", "SignedTransaction", - "SignedTransactionPage", "Transaction", "TransactionDataEffects", - "TransactionDataEffectsPage", "TransactionDigest", "TransactionEffects", "TransactionEffectsDigest", - "TransactionEffectsPage", - "TransactionEvent", - "TransactionEventPage", "TransactionEventsDigest", "TransactionExpiration", "TransactionKind", "TypeTag", "UserSignature", - "Validator", - "ValidatorPage", ] diff --git a/bindings/python/test.py b/bindings/python/test.py index 18d1aca58..40536050e 100644 --- a/bindings/python/test.py +++ b/bindings/python/test.py @@ -12,7 +12,7 @@ async def main(): my_address, PaginationFilter(direction=Direction.FORWARD, cursor=None, limit=None) ) - for coin in coins.data(): + for coin in coins.data: print(f'ID = 0x{coin.id().to_hex()} Balance = {coin.balance()}') balance = await client.balance(my_address) diff --git a/crates/iota-graphql-client/src/query_types/mod.rs b/crates/iota-graphql-client/src/query_types/mod.rs index f1c17d1d8..795b1aab5 100644 --- a/crates/iota-graphql-client/src/query_types/mod.rs +++ b/crates/iota-graphql-client/src/query_types/mod.rs @@ -21,7 +21,7 @@ mod transaction; pub use active_validators::{ ActiveValidatorsArgs, ActiveValidatorsQuery, EpochValidator, Validator, ValidatorConnection, - ValidatorSet, + ValidatorCredentials, ValidatorSet, }; pub use balance::{Balance, BalanceArgs, BalanceQuery, Owner}; pub use chain::ChainIdentifierQuery; diff --git a/crates/iota-sdk-ffi/Cargo.toml b/crates/iota-sdk-ffi/Cargo.toml index 49bda4680..66ee7439d 100644 --- a/crates/iota-sdk-ffi/Cargo.toml +++ b/crates/iota-sdk-ffi/Cargo.toml @@ -12,6 +12,7 @@ name = "iota_sdk_ffi" crate-type = ["lib", "cdylib"] [dependencies] +base64ct = { version = "1.6.0", features = ["alloc", "std"] } derive_more = { version = "2.0", features = ["from", "deref"] } rand = "0.8" serde_json = "1.0.95" diff --git a/crates/iota-sdk-ffi/src/graphql.rs b/crates/iota-sdk-ffi/src/graphql.rs index e71dd902c..5261013d8 100644 --- a/crates/iota-sdk-ffi/src/graphql.rs +++ b/crates/iota-sdk-ffi/src/graphql.rs @@ -3,6 +3,7 @@ use std::sync::Arc; +use iota_graphql_client::pagination::PaginationFilter; use iota_types::CheckpointSequenceNumber; use tokio::sync::RwLock; @@ -14,8 +15,8 @@ use crate::{ digest::{CheckpointContentsDigest, CheckpointDigest, TransactionDigest}, graphql::{ CoinMetadata, DryRunResult, DynamicFieldOutput, Epoch, EventFilter, MoveFunction, - MoveModule, ObjectFilter, PaginationFilter, ProtocolConfigs, ServiceConfig, - TransactionDataEffects, TransactionMetadata, TransactionsFilter, + MoveModule, ObjectFilter, ProtocolConfigs, ServiceConfig, TransactionDataEffects, + TransactionMetadata, TransactionsFilter, }, object::{MovePackage, Object, ObjectId}, signature::UserSignature, @@ -127,7 +128,7 @@ impl GraphQLClient { .0 .read() .await - .active_validators(epoch, pagination_filter.into()) + .active_validators(epoch, pagination_filter) .await? .map(Into::into) .into()) @@ -184,7 +185,7 @@ impl GraphQLClient { .0 .read() .await - .coins(**owner, coin_type, pagination_filter.into()) + .coins(**owner, coin_type, pagination_filter) .await? .map(Into::into) .into()) @@ -238,7 +239,7 @@ impl GraphQLClient { .0 .read() .await - .checkpoints(pagination_filter.into()) + .checkpoints(pagination_filter) .await? .map(Into::into) .into()) @@ -312,7 +313,7 @@ impl GraphQLClient { .0 .read() .await - .events(filter.map(|f| f.into()), pagination_filter.into()) + .events(filter.map(|f| f.into()), pagination_filter) .await? .map(Into::into) .into()) @@ -352,7 +353,7 @@ impl GraphQLClient { /// /// ```rust,ignore /// let filter = ObjectFilter { - /// type_: None, + /// type_tag: None, /// owner: Some(Address::from_str("test").unwrap().into()), /// object_ids: None, /// }; @@ -363,13 +364,13 @@ impl GraphQLClient { pub async fn objects( &self, pagination_filter: PaginationFilter, - filter: Option>, + filter: Option, ) -> Result { Ok(self .0 .read() .await - .objects(filter.map(|f| f.0.clone()), pagination_filter.into()) + .objects(filter.map(Into::into), pagination_filter) .await? .map(Into::into) .into()) @@ -446,12 +447,7 @@ impl GraphQLClient { .0 .read() .await - .package_versions( - **address, - pagination_filter.into(), - after_version, - before_version, - ) + .package_versions(**address, pagination_filter, after_version, before_version) .await? .map(Into::into) .into()) @@ -489,11 +485,7 @@ impl GraphQLClient { .0 .read() .await - .packages( - pagination_filter.into(), - after_checkpoint, - before_checkpoint, - ) + .packages(pagination_filter, after_checkpoint, before_checkpoint) .await? .map(Into::into) .into()) @@ -559,7 +551,7 @@ impl GraphQLClient { .0 .read() .await - .transactions(filter.map(Into::into), pagination_filter.into()) + .transactions(filter.map(Into::into), pagination_filter) .await? .map(Into::into) .into()) @@ -576,7 +568,7 @@ impl GraphQLClient { .0 .read() .await - .transactions_effects(filter.map(Into::into), pagination_filter.into()) + .transactions_effects(filter.map(Into::into), pagination_filter) .await? .map(Into::into) .into()) @@ -594,7 +586,7 @@ impl GraphQLClient { .0 .read() .await - .transactions_data_effects(filter.map(Into::into), pagination_filter.into()) + .transactions_data_effects(filter.map(Into::into), pagination_filter) .await? .map(Into::into) .into()) @@ -687,10 +679,10 @@ impl GraphQLClient { package, module, version, - pagination_filter_enums.into(), - pagination_filter_friends.into(), - pagination_filter_functions.into(), - pagination_filter_structs.into(), + pagination_filter_enums, + pagination_filter_friends, + pagination_filter_functions, + pagination_filter_structs, ) .await? .map(Into::into) @@ -726,15 +718,14 @@ impl GraphQLClient { address: &Address, type_tag: &TypeTag, name: serde_json::Value, - ) -> Result>> { + ) -> Result> { Ok(self .0 .read() .await .dynamic_field(**address, type_tag.0.clone(), name) .await? - .map(Into::into) - .map(Arc::new)) + .map(Into::into)) } /// Access a dynamic object field on an object using its name. Names are @@ -750,15 +741,14 @@ impl GraphQLClient { address: &Address, type_tag: &TypeTag, name: serde_json::Value, - ) -> Result>> { + ) -> Result> { Ok(self .0 .read() .await .dynamic_object_field(**address, type_tag.0.clone(), name) .await? - .map(Into::into) - .map(Arc::new)) + .map(Into::into)) } /// Get a page of dynamic fields for the provided address. Note that this @@ -774,7 +764,7 @@ impl GraphQLClient { .0 .read() .await - .dynamic_fields(**address, pagination_filter.into()) + .dynamic_fields(**address, pagination_filter) .await? .map(Into::into) .into()) diff --git a/crates/iota-sdk-ffi/src/types/graphql.rs b/crates/iota-sdk-ffi/src/types/graphql.rs index 175c9d78b..fac5a45c5 100644 --- a/crates/iota-sdk-ffi/src/types/graphql.rs +++ b/crates/iota-sdk-ffi/src/types/graphql.rs @@ -3,10 +3,19 @@ use std::sync::Arc; +use base64ct::Encoding; +use iota_graphql_client::{ + pagination::{Direction, PaginationFilter}, + query_types::{ + Base64, GQLAddress, MoveObject, PageInfo, TransactionBlockKindInput, ValidatorCredentials, + }, +}; + use crate::types::{ address::Address, object::ObjectId, transaction::{SignedTransaction, TransactionEffects}, + type_tag::TypeTag, }; #[derive(Clone, Debug, uniffi::Record)] @@ -103,7 +112,7 @@ impl From for Transactions fn from(value: iota_graphql_client::query_types::TransactionsFilter) -> Self { Self { function: value.function, - kind: value.kind.map(Into::into), + kind: value.kind, after_checkpoint: value.after_checkpoint, at_checkpoint: value.at_checkpoint, before_checkpoint: value.before_checkpoint, @@ -124,7 +133,7 @@ impl From for iota_graphql_client::query_types::Transactions fn from(value: TransactionsFilter) -> Self { Self { function: value.function, - kind: value.kind.map(Into::into), + kind: value.kind, after_checkpoint: value.after_checkpoint, at_checkpoint: value.at_checkpoint, before_checkpoint: value.before_checkpoint, @@ -184,125 +193,313 @@ impl From for iota_graphql_client::query_types::EventFilter { } } -#[derive(Clone, Debug, derive_more::From, uniffi::Object)] -pub struct ObjectFilter(pub iota_graphql_client::query_types::ObjectFilter); +#[derive(Clone, Debug, uniffi::Record)] +pub struct ObjectFilter { + pub type_tag: Option, + pub owner: Option>, + pub object_ids: Option>>, +} -#[derive(Clone, Debug, derive_more::From, uniffi::Object)] -pub struct DynamicFieldOutput(pub iota_graphql_client::DynamicFieldOutput); +impl From for ObjectFilter { + fn from(value: iota_graphql_client::query_types::ObjectFilter) -> Self { + Self { + type_tag: value.type_, + owner: value.owner.map(Into::into).map(Arc::new), + object_ids: value + .object_ids + .map(|v| v.into_iter().map(Into::into).map(Arc::new).collect()), + } + } +} -#[derive(Clone, Debug, derive_more::From, uniffi::Object)] -pub struct Validator(pub iota_graphql_client::query_types::Validator); +impl From for iota_graphql_client::query_types::ObjectFilter { + fn from(value: ObjectFilter) -> Self { + Self { + type_: value.type_tag, + owner: value.owner.map(|v| **v), + object_ids: value + .object_ids + .map(|v| v.into_iter().map(|v| **v).collect()), + } + } +} -#[derive(Copy, Clone, Debug, uniffi::Enum)] -pub enum TransactionBlockKindInput { - SystemTx, - ProgrammableTx, - Genesis, - ConsensusCommitPrologueV1, - AuthenticatorStateUpdateV1, - RandomnessStateUpdate, - EndOfEpochTx, +/// The output of a dynamic field query, that includes the name, value, and +/// value's json representation. +#[derive(Clone, Debug, uniffi::Record)] +pub struct DynamicFieldOutput { + /// The name of the dynamic field + pub name: DynamicFieldName, + /// The dynamic field value typename and bcs + pub value: Option, + /// The json representation of the dynamic field value object + pub value_as_json: Option, } -impl From - for TransactionBlockKindInput -{ - fn from(value: iota_graphql_client::query_types::TransactionBlockKindInput) -> Self { - use iota_graphql_client::query_types::TransactionBlockKindInput::*; - match value { - SystemTx => Self::SystemTx, - ProgrammableTx => Self::ProgrammableTx, - Genesis => Self::Genesis, - ConsensusCommitPrologueV1 => Self::ConsensusCommitPrologueV1, - AuthenticatorStateUpdateV1 => Self::AuthenticatorStateUpdateV1, - RandomnessStateUpdate => Self::RandomnessStateUpdate, - EndOfEpochTx => Self::EndOfEpochTx, +impl From for DynamicFieldOutput { + fn from(value: iota_graphql_client::DynamicFieldOutput) -> Self { + Self { + name: value.name.into(), + value: value.value.map(Into::into), + value_as_json: value.value_as_json, } } } -impl From - for iota_graphql_client::query_types::TransactionBlockKindInput -{ - fn from(value: TransactionBlockKindInput) -> Self { - match value { - TransactionBlockKindInput::SystemTx => Self::SystemTx, - TransactionBlockKindInput::ProgrammableTx => Self::ProgrammableTx, - TransactionBlockKindInput::Genesis => Self::Genesis, - TransactionBlockKindInput::ConsensusCommitPrologueV1 => Self::ConsensusCommitPrologueV1, - TransactionBlockKindInput::AuthenticatorStateUpdateV1 => { - Self::AuthenticatorStateUpdateV1 - } - TransactionBlockKindInput::RandomnessStateUpdate => Self::RandomnessStateUpdate, - TransactionBlockKindInput::EndOfEpochTx => Self::EndOfEpochTx, +impl From for iota_graphql_client::DynamicFieldOutput { + fn from(value: DynamicFieldOutput) -> Self { + Self { + name: value.name.into(), + value: value.value.map(Into::into), + value_as_json: value.value_as_json, } } } -#[derive(Clone, Debug, derive_more::From, uniffi::Object)] -pub struct PageInfo(pub iota_graphql_client::query_types::PageInfo); +/// The name part of a dynamic field, including its type, bcs, and json +/// representation. +#[derive(Clone, Debug, uniffi::Record)] +pub struct DynamicFieldName { + /// The type name of this dynamic field name + pub type_tag: Arc, + /// The bcs bytes of this dynamic field name + pub bcs: Vec, + /// The json representation of the dynamic field name + pub json: Option, +} -/// Pagination options for querying the GraphQL server. It defaults to forward -/// pagination with the GraphQL server's max page size. -#[derive(Clone, Debug, Default, uniffi::Record)] -pub struct PaginationFilter { - /// The direction of pagination. - pub direction: Direction, - /// An opaque cursor used for pagination. - #[uniffi(default = None)] - pub cursor: Option, - /// The maximum number of items to return. If this is ommitted, it will - /// lazily query the service configuration for the max page size. - #[uniffi(default = None)] - pub limit: Option, +impl From for DynamicFieldName { + fn from(value: iota_graphql_client::DynamicFieldName) -> Self { + Self { + type_tag: Arc::new(value.type_.into()), + bcs: value.bcs, + json: value.json, + } + } } -impl From for PaginationFilter { - fn from(value: iota_graphql_client::pagination::PaginationFilter) -> Self { +impl From for iota_graphql_client::DynamicFieldName { + fn from(value: DynamicFieldName) -> Self { Self { - direction: value.direction.into(), - cursor: value.cursor, - limit: value.limit, + type_: value.type_tag.0.clone(), + bcs: value.bcs, + json: value.json, } } } -impl From for iota_graphql_client::pagination::PaginationFilter { - fn from(value: PaginationFilter) -> Self { +/// The value part of a dynamic field. +#[derive(Clone, Debug, uniffi::Record)] +pub struct DynamicFieldValue { + pub type_tag: Arc, + pub bcs: Vec, +} + +impl From for DynamicFieldValue { + fn from(value: iota_graphql_client::DynamicFieldValue) -> Self { Self { - direction: value.direction.into(), - cursor: value.cursor, - limit: value.limit, + type_tag: Arc::new(value.type_.into()), + bcs: value.bcs, } } } -/// Pagination direction. -#[derive(Clone, Debug, Default, uniffi::Enum)] -pub enum Direction { - #[default] - Forward, - Backward, +impl From for iota_graphql_client::DynamicFieldValue { + fn from(value: DynamicFieldValue) -> Self { + Self { + type_: value.type_tag.0.clone(), + bcs: value.bcs, + } + } +} + +/// Represents a validator in the system. +#[derive(Clone, Debug, uniffi::Record)] +pub struct Validator { + /// The APY of this validator in basis points. + /// To get the APY in percentage, divide by 100. + pub apy: Option, + /// The validator's address. + pub address: Arc
, + /// The fee charged by the validator for staking services. + pub commission_rate: Option, + /// Validator's credentials. + pub credentials: Option, + /// Validator's description. + pub description: Option, + /// Number of exchange rates in the table. + pub exchange_rates_size: Option, + /// The reference gas price for this epoch. + pub gas_price: Option, + /// Validator's name. + pub name: Option, + /// Validator's url containing their custom image. + pub image_url: Option, + /// The proposed next epoch fee for the validator's staking services. + pub next_epoch_commission_rate: Option, + /// Validator's credentials for the next epoch. + pub next_epoch_credentials: Option, + /// The validator's gas price quote for the next epoch. + pub next_epoch_gas_price: Option, + /// The total number of IOTA tokens in this pool plus + /// the pending stake amount for this epoch. + pub next_epoch_stake: Option, + /// The validator's current valid `Cap` object. Validators can delegate + /// the operation ability to another address. The address holding this `Cap` + /// object can then update the reference gas price and tallying rule on + /// behalf of the validator. + pub operation_cap: Option>, + /// Pending pool token withdrawn during the current epoch, emptied at epoch + /// boundaries. + pub pending_pool_token_withdraw: Option, + /// Pending stake amount for this epoch. + pub pending_stake: Option, + /// Pending stake withdrawn during the current epoch, emptied at epoch + /// boundaries. + pub pending_total_iota_withdraw: Option, + /// Total number of pool tokens issued by the pool. + pub pool_token_balance: Option, + /// Validator's homepage URL. + pub project_url: Option, + /// The epoch stake rewards will be added here at the end of each epoch. + pub rewards_pool: Option, + /// The epoch at which this pool became active. + pub staking_pool_activation_epoch: Option, + /// The ID of this validator's `0x3::staking_pool::StakingPool`. + pub staking_pool_id: Arc, + /// The total number of IOTA tokens in this pool. + pub staking_pool_iota_balance: Option, + /// The voting power of this validator in basis points (e.g., 100 = 1% + /// voting power). + pub voting_power: Option, } -impl From for Direction { - fn from(value: iota_graphql_client::pagination::Direction) -> Self { - match value { - iota_graphql_client::pagination::Direction::Forward => Self::Forward, - iota_graphql_client::pagination::Direction::Backward => Self::Backward, +impl From for Validator { + fn from(value: iota_graphql_client::query_types::Validator) -> Self { + Self { + apy: value.apy, + address: Arc::new(value.address.address.into()), + commission_rate: value.commission_rate, + credentials: value.credentials, + description: value.description, + exchange_rates_size: value.exchange_rates_size, + gas_price: value.gas_price.map(|v| v.0.parse().unwrap()), + name: value.name, + image_url: value.image_url, + next_epoch_commission_rate: value.next_epoch_commission_rate, + next_epoch_credentials: value.next_epoch_credentials, + next_epoch_gas_price: value.next_epoch_gas_price.map(|v| v.0.parse().unwrap()), + next_epoch_stake: value.next_epoch_stake.map(|v| v.0.parse().unwrap()), + operation_cap: value + .operation_cap + .and_then(|o| o.bcs.map(|b| base64ct::Base64::decode_vec(&b.0).unwrap())), + pending_pool_token_withdraw: value + .pending_pool_token_withdraw + .map(|v| v.0.parse().unwrap()), + pending_stake: value.pending_stake.map(|v| v.0.parse().unwrap()), + pending_total_iota_withdraw: value + .pending_total_iota_withdraw + .map(|v| v.0.parse().unwrap()), + pool_token_balance: value.pool_token_balance.map(|v| v.0.parse().unwrap()), + project_url: value.project_url, + rewards_pool: value.rewards_pool.map(|v| v.0.parse().unwrap()), + staking_pool_activation_epoch: value.staking_pool_activation_epoch, + staking_pool_id: Arc::new(value.staking_pool_id.into()), + staking_pool_iota_balance: value + .staking_pool_iota_balance + .map(|v| v.0.parse().unwrap()), + voting_power: value.voting_power, } } } -impl From for iota_graphql_client::pagination::Direction { - fn from(value: Direction) -> Self { - match value { - Direction::Forward => Self::Forward, - Direction::Backward => Self::Backward, +impl From for iota_graphql_client::query_types::Validator { + fn from(value: Validator) -> Self { + Self { + apy: value.apy, + address: GQLAddress { + address: **value.address, + }, + commission_rate: value.commission_rate, + credentials: value.credentials, + description: value.description, + exchange_rates_size: value.exchange_rates_size, + gas_price: value.gas_price.map(|v| v.to_string().into()), + name: value.name, + image_url: value.image_url, + next_epoch_commission_rate: value.next_epoch_commission_rate, + next_epoch_credentials: value.next_epoch_credentials, + next_epoch_gas_price: value.next_epoch_gas_price.map(|v| v.to_string().into()), + next_epoch_stake: value.next_epoch_stake.map(|v| v.to_string().into()), + operation_cap: value.operation_cap.map(|o| MoveObject { + bcs: Some(base64ct::Base64::encode_string(&o).into()), + }), + pending_pool_token_withdraw: value + .pending_pool_token_withdraw + .map(|v| v.to_string().into()), + pending_stake: value.pending_stake.map(|v| v.to_string().into()), + pending_total_iota_withdraw: value + .pending_total_iota_withdraw + .map(|v| v.to_string().into()), + pool_token_balance: value.pool_token_balance.map(|v| v.to_string().into()), + project_url: value.project_url, + rewards_pool: value.rewards_pool.map(|v| v.to_string().into()), + staking_pool_activation_epoch: value.staking_pool_activation_epoch, + staking_pool_id: **value.staking_pool_id, + staking_pool_iota_balance: value + .staking_pool_iota_balance + .map(|v| v.to_string().into()), + voting_power: value.voting_power, } } } +#[uniffi::remote(Record)] +pub struct ValidatorCredentials { + pub authority_pub_key: Option, + pub network_pub_key: Option, + pub protocol_pub_key: Option, + pub proof_of_possession: Option, + pub net_address: Option, + pub p2p_address: Option, + pub primary_address: Option, +} + +#[uniffi::remote(Enum)] +pub enum TransactionBlockKindInput { + SystemTx, + ProgrammableTx, + Genesis, + ConsensusCommitPrologueV1, + AuthenticatorStateUpdateV1, + RandomnessStateUpdate, + EndOfEpochTx, +} + +#[uniffi::remote(Record)] +pub struct PageInfo { + pub has_previous_page: bool, + pub has_next_page: bool, + pub start_cursor: Option, + pub end_cursor: Option, +} + +#[uniffi::remote(Record)] +pub struct PaginationFilter { + pub direction: Direction, + #[uniffi(default = None)] + pub cursor: Option, + #[uniffi(default = None)] + pub limit: Option, +} + +#[uniffi::remote(Enum)] +pub enum Direction { + #[default] + Forward, + Backward, +} + #[derive(Clone, Debug, derive_more::From, uniffi::Object)] pub struct ProtocolConfigs(pub iota_graphql_client::query_types::ProtocolConfigs); diff --git a/crates/iota-sdk-ffi/src/uniffi_helpers.rs b/crates/iota-sdk-ffi/src/uniffi_helpers.rs index 7774bbf99..9e59f519d 100644 --- a/crates/iota-sdk-ffi/src/uniffi_helpers.rs +++ b/crates/iota-sdk-ffi/src/uniffi_helpers.rs @@ -1,63 +1,67 @@ // Copyright (c) 2025 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -use iota_graphql_client::pagination::Page; +use iota_graphql_client::query_types::{Base64, PageInfo}; use serde_json::Value; use crate::types::{ checkpoint::CheckpointSummary, coin::Coin, - graphql::{DynamicFieldOutput, Epoch, Event, PageInfo, TransactionDataEffects, Validator}, + graphql::{DynamicFieldOutput, Epoch, Event, TransactionDataEffects, Validator}, object::{MovePackage, Object}, transaction::{SignedTransaction, TransactionEffects}, }; macro_rules! define_paged_record { ($id:ident, $typ:ty) => { - #[derive(uniffi::Object, derive_more::From)] - pub struct $id(Page<$typ>); - - #[uniffi::export] - impl $id { - pub fn page_info(&self) -> PageInfo { - self.0.page_info().clone().into() - } - - pub fn data(&self) -> Vec<$typ> { - self.0.data().to_vec() - } + /// A page of items returned by the GraphQL server. + #[derive(Debug, Clone, uniffi::Record)] + pub struct $id { + /// Information about the page, such as the cursor and whether there are + /// more pages. + pub page_info: PageInfo, + /// The data returned by the server. + pub data: Vec<$typ>, + } - pub fn is_empty(&self) -> bool { - self.0.is_empty() + impl From> for $id { + fn from(value: iota_graphql_client::pagination::Page<$typ>) -> Self { + Self { + page_info: value.page_info.into(), + data: value.data, + } } } }; } define_paged_record!(CheckpointSummaryPage, CheckpointSummary); +define_paged_record!(DynamicFieldOutputPage, DynamicFieldOutput); +define_paged_record!(ValidatorPage, Validator); macro_rules! define_paged_object { ($id:ident, $typ:ty) => { - #[derive(uniffi::Object, derive_more::From)] - pub struct $id(Page<$typ>); - - #[uniffi::export] - impl $id { - pub fn page_info(&self) -> PageInfo { - self.0.page_info().clone().into() - } - - pub fn data(&self) -> Vec> { - self.0 - .data() - .iter() - .cloned() - .map(std::sync::Arc::new) - .collect() - } + /// A page of items returned by the GraphQL server. + #[derive(Debug, Clone, uniffi::Record)] + pub struct $id { + /// Information about the page, such as the cursor and whether there are + /// more pages. + pub page_info: PageInfo, + /// The data returned by the server. + pub data: Vec>, + } - pub fn is_empty(&self) -> bool { - self.0.is_empty() + impl From> for $id { + fn from(value: iota_graphql_client::pagination::Page<$typ>) -> Self { + Self { + page_info: value.page_info.into(), + data: value + .data + .into_iter() + .map(Into::into) + .map(std::sync::Arc::new) + .collect(), + } } } }; @@ -70,12 +74,16 @@ define_paged_object!(CoinPage, Coin); define_paged_object!(ObjectPage, Object); define_paged_object!(TransactionEffectsPage, TransactionEffects); define_paged_object!(MovePackagePage, MovePackage); -define_paged_object!(ValidatorPage, Validator); define_paged_object!(EpochPage, Epoch); -define_paged_object!(DynamicFieldOutputPage, DynamicFieldOutput); uniffi::custom_type!(Value, String, { remote, lower: |val| val.to_string(), try_lift: |s| Ok(serde_json::from_str(&s)?), }); + +uniffi::custom_type!(Base64, String, { + remote, + lower: |val| val.0, + try_lift: |s| Ok(Base64(s)), +});