algokit-utils 5.0.0a3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- algokit_abi/__init__.py +9 -0
- algokit_abi/_arc32_to_arc56.py +242 -0
- algokit_abi/_arc56_serde.py +161 -0
- algokit_abi/abi.py +667 -0
- algokit_abi/arc32.py +210 -0
- algokit_abi/arc56.py +821 -0
- algokit_abi/py.typed +0 -0
- algokit_algo25/__init__.py +38 -0
- algokit_algo25/_encoding.py +46 -0
- algokit_algo25/_wordlist.py +2065 -0
- algokit_algo25/exceptions.py +29 -0
- algokit_algo25/mnemonic.py +128 -0
- algokit_algo25/py.typed +0 -0
- algokit_algod_client/__init__.py +10 -0
- algokit_algod_client/client.py +1585 -0
- algokit_algod_client/config.py +36 -0
- algokit_algod_client/exceptions.py +59 -0
- algokit_algod_client/models/__init__.py +229 -0
- algokit_algod_client/models/_account.py +150 -0
- algokit_algod_client/models/_account_application_response.py +25 -0
- algokit_algod_client/models/_account_asset_response.py +25 -0
- algokit_algod_client/models/_account_participation.py +53 -0
- algokit_algod_client/models/_account_state_delta.py +30 -0
- algokit_algod_client/models/_allocations_for_genesis_file.py +23 -0
- algokit_algod_client/models/_allocations_for_genesis_file_state_model.py +42 -0
- algokit_algod_client/models/_application.py +23 -0
- algokit_algod_client/models/_application_initial_states.py +37 -0
- algokit_algod_client/models/_application_kvstorage.py +29 -0
- algokit_algod_client/models/_application_local_state.py +33 -0
- algokit_algod_client/models/_application_params.py +63 -0
- algokit_algod_client/models/_application_state_operation.py +41 -0
- algokit_algod_client/models/_application_state_schema.py +22 -0
- algokit_algod_client/models/_asset.py +23 -0
- algokit_algod_client/models/_asset_holding.py +29 -0
- algokit_algod_client/models/_asset_params.py +102 -0
- algokit_algod_client/models/_avm_key_value.py +28 -0
- algokit_algod_client/models/_avm_value.py +32 -0
- algokit_algod_client/models/_block.py +363 -0
- algokit_algod_client/models/_block_hash_response.py +14 -0
- algokit_algod_client/models/_block_txids_response.py +14 -0
- algokit_algod_client/models/_box.py +36 -0
- algokit_algod_client/models/_box_descriptor.py +24 -0
- algokit_algod_client/models/_boxes_response.py +21 -0
- algokit_algod_client/models/_build_version_contains_the_current_algod_build_version_information.py +34 -0
- algokit_algod_client/models/_compile_response.py +24 -0
- algokit_algod_client/models/_disassemble_response.py +14 -0
- algokit_algod_client/models/_error_response.py +22 -0
- algokit_algod_client/models/_eval_delta.py +32 -0
- algokit_algod_client/models/_eval_delta_key_value.py +28 -0
- algokit_algod_client/models/_genesis_file_in_json.py +53 -0
- algokit_algod_client/models/_get_block_time_stamp_offset_response.py +14 -0
- algokit_algod_client/models/_get_sync_round_response.py +14 -0
- algokit_algod_client/models/_ledger_state_delta.py +389 -0
- algokit_algod_client/models/_light_block_header_proof.py +32 -0
- algokit_algod_client/models/_node_status_response.py +118 -0
- algokit_algod_client/models/_pending_transaction_response.py +91 -0
- algokit_algod_client/models/_pending_transactions_response.py +29 -0
- algokit_algod_client/models/_post_transactions_response.py +14 -0
- algokit_algod_client/models/_scratch_change.py +23 -0
- algokit_algod_client/models/_serde_helpers.py +241 -0
- algokit_algod_client/models/_simulate_initial_states.py +25 -0
- algokit_algod_client/models/_simulate_request.py +54 -0
- algokit_algod_client/models/_simulate_request_transaction_group.py +25 -0
- algokit_algod_client/models/_simulate_response.py +44 -0
- algokit_algod_client/models/_simulate_trace_config.py +30 -0
- algokit_algod_client/models/_simulate_transaction_group_result.py +46 -0
- algokit_algod_client/models/_simulate_transaction_result.py +41 -0
- algokit_algod_client/models/_simulate_unnamed_resources_accessed.py +64 -0
- algokit_algod_client/models/_simulation_eval_overrides.py +40 -0
- algokit_algod_client/models/_simulation_opcode_trace_unit.py +55 -0
- algokit_algod_client/models/_simulation_transaction_exec_trace.py +82 -0
- algokit_algod_client/models/_source_map.py +30 -0
- algokit_algod_client/models/_state_delta.py +6 -0
- algokit_algod_client/models/_state_proof.py +28 -0
- algokit_algod_client/models/_state_proof_message.py +44 -0
- algokit_algod_client/models/_supply_response.py +26 -0
- algokit_algod_client/models/_teal_key_value.py +28 -0
- algokit_algod_client/models/_teal_key_value_store.py +6 -0
- algokit_algod_client/models/_teal_value.py +32 -0
- algokit_algod_client/models/_transaction_group_ledger_state_deltas_for_round_response.py +21 -0
- algokit_algod_client/models/_transaction_parameters_response.py +45 -0
- algokit_algod_client/models/_transaction_proof.py +44 -0
- algokit_algod_client/models/_version_contains_the_current_algod_version.py +38 -0
- algokit_algod_client/models/suggested_params.py +42 -0
- algokit_algod_client/py.typed +1 -0
- algokit_algod_client/types.py +7 -0
- algokit_algosdk/__init__.py +38 -0
- algokit_algosdk/account.py +32 -0
- algokit_algosdk/app_access.py +228 -0
- algokit_algosdk/box_reference.py +100 -0
- algokit_algosdk/constants.py +147 -0
- algokit_algosdk/encoding.py +89 -0
- algokit_algosdk/error.py +180 -0
- algokit_algosdk/logic.py +61 -0
- algokit_algosdk/logicsig.py +218 -0
- algokit_algosdk/mnemonic.py +216 -0
- algokit_algosdk/multisig.py +161 -0
- algokit_algosdk/py.typed +0 -0
- algokit_algosdk/transaction.py +596 -0
- algokit_algosdk/wordlist.py +2054 -0
- algokit_common/__init__.py +50 -0
- algokit_common/address.py +34 -0
- algokit_common/constants.py +47 -0
- algokit_common/hashing.py +25 -0
- algokit_common/py.typed +0 -0
- algokit_common/serde/__init__.py +40 -0
- algokit_common/serde/_core.py +610 -0
- algokit_common/serde/_primitives.py +135 -0
- algokit_common/source_map.py +158 -0
- algokit_indexer_client/__init__.py +10 -0
- algokit_indexer_client/client.py +1456 -0
- algokit_indexer_client/config.py +36 -0
- algokit_indexer_client/exceptions.py +59 -0
- algokit_indexer_client/models/__init__.py +148 -0
- algokit_indexer_client/models/_account.py +161 -0
- algokit_indexer_client/models/_account_participation.py +53 -0
- algokit_indexer_client/models/_account_response.py +19 -0
- algokit_indexer_client/models/_account_state_delta.py +29 -0
- algokit_indexer_client/models/_accounts_response.py +29 -0
- algokit_indexer_client/models/_application.py +35 -0
- algokit_indexer_client/models/_application_local_state.py +45 -0
- algokit_indexer_client/models/_application_local_states_response.py +29 -0
- algokit_indexer_client/models/_application_log_data.py +28 -0
- algokit_indexer_client/models/_application_logs_response.py +33 -0
- algokit_indexer_client/models/_application_params.py +62 -0
- algokit_indexer_client/models/_application_response.py +20 -0
- algokit_indexer_client/models/_application_state_schema.py +22 -0
- algokit_indexer_client/models/_applications_response.py +29 -0
- algokit_indexer_client/models/_asset.py +35 -0
- algokit_indexer_client/models/_asset_balances_response.py +29 -0
- algokit_indexer_client/models/_asset_holding.py +41 -0
- algokit_indexer_client/models/_asset_holdings_response.py +29 -0
- algokit_indexer_client/models/_asset_params.py +102 -0
- algokit_indexer_client/models/_asset_response.py +19 -0
- algokit_indexer_client/models/_assets_response.py +29 -0
- algokit_indexer_client/models/_block.py +150 -0
- algokit_indexer_client/models/_block_headers_response.py +29 -0
- algokit_indexer_client/models/_block_rewards.py +38 -0
- algokit_indexer_client/models/_block_upgrade_state.py +34 -0
- algokit_indexer_client/models/_block_upgrade_vote.py +26 -0
- algokit_indexer_client/models/_box.py +36 -0
- algokit_indexer_client/models/_box_descriptor.py +24 -0
- algokit_indexer_client/models/_box_reference.py +28 -0
- algokit_indexer_client/models/_boxes_response.py +29 -0
- algokit_indexer_client/models/_error_response.py +18 -0
- algokit_indexer_client/models/_eval_delta.py +32 -0
- algokit_indexer_client/models/_eval_delta_key_value.py +28 -0
- algokit_indexer_client/models/_hash_factory.py +14 -0
- algokit_indexer_client/models/_hb_proof_fields.py +57 -0
- algokit_indexer_client/models/_health_check.py +42 -0
- algokit_indexer_client/models/_holding_ref.py +23 -0
- algokit_indexer_client/models/_indexer_state_proof_message.py +40 -0
- algokit_indexer_client/models/_locals_ref.py +23 -0
- algokit_indexer_client/models/_merkle_array_proof.py +29 -0
- algokit_indexer_client/models/_mini_asset_holding.py +38 -0
- algokit_indexer_client/models/_on_completion.py +25 -0
- algokit_indexer_client/models/_participation_updates.py +22 -0
- algokit_indexer_client/models/_resource_ref.py +42 -0
- algokit_indexer_client/models/_serde_helpers.py +241 -0
- algokit_indexer_client/models/_state_delta.py +6 -0
- algokit_indexer_client/models/_state_proof_fields.py +57 -0
- algokit_indexer_client/models/_state_proof_participant.py +20 -0
- algokit_indexer_client/models/_state_proof_reveal.py +25 -0
- algokit_indexer_client/models/_state_proof_sig_slot.py +20 -0
- algokit_indexer_client/models/_state_proof_signature.py +37 -0
- algokit_indexer_client/models/_state_proof_tracking.py +32 -0
- algokit_indexer_client/models/_state_proof_verifier.py +24 -0
- algokit_indexer_client/models/_state_schema.py +25 -0
- algokit_indexer_client/models/_teal_key_value.py +28 -0
- algokit_indexer_client/models/_teal_key_value_store.py +6 -0
- algokit_indexer_client/models/_teal_value.py +32 -0
- algokit_indexer_client/models/_transaction.py +213 -0
- algokit_indexer_client/models/_transaction_application.py +105 -0
- algokit_indexer_client/models/_transaction_asset_config.py +31 -0
- algokit_indexer_client/models/_transaction_asset_freeze.py +29 -0
- algokit_indexer_client/models/_transaction_asset_transfer.py +41 -0
- algokit_indexer_client/models/_transaction_heartbeat.py +52 -0
- algokit_indexer_client/models/_transaction_keyreg.py +59 -0
- algokit_indexer_client/models/_transaction_payment.py +33 -0
- algokit_indexer_client/models/_transaction_response.py +19 -0
- algokit_indexer_client/models/_transaction_signature.py +35 -0
- algokit_indexer_client/models/_transaction_signature_logicsig.py +59 -0
- algokit_indexer_client/models/_transaction_signature_multisig.py +36 -0
- algokit_indexer_client/models/_transaction_signature_multisig_subsignature.py +28 -0
- algokit_indexer_client/models/_transaction_state_proof.py +32 -0
- algokit_indexer_client/models/_transactions_response.py +29 -0
- algokit_indexer_client/py.typed +1 -0
- algokit_indexer_client/types.py +7 -0
- algokit_kmd_client/__init__.py +10 -0
- algokit_kmd_client/client.py +1240 -0
- algokit_kmd_client/config.py +36 -0
- algokit_kmd_client/exceptions.py +59 -0
- algokit_kmd_client/models/__init__.py +112 -0
- algokit_kmd_client/models/_classical_signatures.py +4 -0
- algokit_kmd_client/models/_create_wallet_request.py +30 -0
- algokit_kmd_client/models/_create_wallet_response.py +19 -0
- algokit_kmd_client/models/_delete_key_request.py +27 -0
- algokit_kmd_client/models/_delete_multisig_request.py +27 -0
- algokit_kmd_client/models/_digest_represents_a32_byte_value_holding_the256_bit_hash_digest.py +4 -0
- algokit_kmd_client/models/_ed25519_public_key.py +4 -0
- algokit_kmd_client/models/_export_key_request.py +27 -0
- algokit_kmd_client/models/_export_key_response.py +24 -0
- algokit_kmd_client/models/_export_master_key_request.py +22 -0
- algokit_kmd_client/models/_export_master_key_response.py +18 -0
- algokit_kmd_client/models/_export_multisig_request.py +23 -0
- algokit_kmd_client/models/_export_multisig_response.py +26 -0
- algokit_kmd_client/models/_generate_key_request.py +18 -0
- algokit_kmd_client/models/_generate_key_response.py +19 -0
- algokit_kmd_client/models/_import_key_request.py +28 -0
- algokit_kmd_client/models/_import_key_response.py +19 -0
- algokit_kmd_client/models/_import_multisig_request.py +30 -0
- algokit_kmd_client/models/_import_multisig_response.py +19 -0
- algokit_kmd_client/models/_init_wallet_handle_token_request.py +22 -0
- algokit_kmd_client/models/_init_wallet_handle_token_response.py +18 -0
- algokit_kmd_client/models/_list_keys_request.py +18 -0
- algokit_kmd_client/models/_list_keys_response.py +18 -0
- algokit_kmd_client/models/_list_multisig_request.py +18 -0
- algokit_kmd_client/models/_list_multisig_response.py +18 -0
- algokit_kmd_client/models/_list_wallets_request.py +11 -0
- algokit_kmd_client/models/_list_wallets_response.py +25 -0
- algokit_kmd_client/models/_master_derivation_key.py +4 -0
- algokit_kmd_client/models/_multisig_sig.py +33 -0
- algokit_kmd_client/models/_multisig_subsig.py +23 -0
- algokit_kmd_client/models/_public_key.py +4 -0
- algokit_kmd_client/models/_release_wallet_handle_token_request.py +18 -0
- algokit_kmd_client/models/_rename_wallet_request.py +26 -0
- algokit_kmd_client/models/_rename_wallet_response.py +19 -0
- algokit_kmd_client/models/_renew_wallet_handle_token_request.py +18 -0
- algokit_kmd_client/models/_renew_wallet_handle_token_response.py +19 -0
- algokit_kmd_client/models/_serde_helpers.py +241 -0
- algokit_kmd_client/models/_sign_multisig_response.py +24 -0
- algokit_kmd_client/models/_sign_multisig_txn_request.py +45 -0
- algokit_kmd_client/models/_sign_program_multisig_request.py +50 -0
- algokit_kmd_client/models/_sign_program_multisig_response.py +24 -0
- algokit_kmd_client/models/_sign_program_request.py +37 -0
- algokit_kmd_client/models/_sign_program_response.py +24 -0
- algokit_kmd_client/models/_sign_transaction_response.py +24 -0
- algokit_kmd_client/models/_sign_txn_request.py +36 -0
- algokit_kmd_client/models/_signature.py +4 -0
- algokit_kmd_client/models/_tx_type.py +4 -0
- algokit_kmd_client/models/_versions_request.py +11 -0
- algokit_kmd_client/models/_versions_response.py +19 -0
- algokit_kmd_client/models/_wallet.py +38 -0
- algokit_kmd_client/models/_wallet_handle.py +24 -0
- algokit_kmd_client/models/_wallet_info_request.py +18 -0
- algokit_kmd_client/models/_wallet_info_response.py +19 -0
- algokit_kmd_client/py.typed +1 -0
- algokit_kmd_client/types.py +7 -0
- algokit_transact/__init__.py +190 -0
- algokit_transact/codec/__init__.py +0 -0
- algokit_transact/codec/msgpack.py +11 -0
- algokit_transact/codec/serde.py +7 -0
- algokit_transact/codec/signed.py +57 -0
- algokit_transact/codec/transaction.py +65 -0
- algokit_transact/exceptions.py +17 -0
- algokit_transact/logicsig.py +220 -0
- algokit_transact/models/__init__.py +0 -0
- algokit_transact/models/app_call.py +447 -0
- algokit_transact/models/asset_config.py +19 -0
- algokit_transact/models/asset_freeze.py +11 -0
- algokit_transact/models/asset_transfer.py +13 -0
- algokit_transact/models/common.py +17 -0
- algokit_transact/models/heartbeat.py +21 -0
- algokit_transact/models/key_registration.py +14 -0
- algokit_transact/models/payment.py +14 -0
- algokit_transact/models/signed_transaction.py +21 -0
- algokit_transact/models/state_proof.py +150 -0
- algokit_transact/models/transaction.py +88 -0
- algokit_transact/multisig.py +93 -0
- algokit_transact/ops/__init__.py +0 -0
- algokit_transact/ops/fees.py +47 -0
- algokit_transact/ops/group.py +28 -0
- algokit_transact/ops/ids.py +14 -0
- algokit_transact/ops/validate.py +503 -0
- algokit_transact/py.typed +0 -0
- algokit_transact/signer.py +195 -0
- algokit_transact/signing/__init__.py +0 -0
- algokit_transact/signing/logic_signature.py +19 -0
- algokit_transact/signing/multisig.py +84 -0
- algokit_transact/signing/types.py +39 -0
- algokit_transact/signing/validation.py +63 -0
- algokit_utils/__init__.py +23 -0
- algokit_utils/_debugging.py +304 -0
- algokit_utils/accounts/__init__.py +2 -0
- algokit_utils/accounts/account_manager.py +1051 -0
- algokit_utils/accounts/kmd_account_manager.py +206 -0
- algokit_utils/algo25.py +46 -0
- algokit_utils/algorand.py +383 -0
- algokit_utils/applications/__init__.py +7 -0
- algokit_utils/applications/abi.py +280 -0
- algokit_utils/applications/app_client.py +2193 -0
- algokit_utils/applications/app_deployer.py +788 -0
- algokit_utils/applications/app_factory.py +1140 -0
- algokit_utils/applications/app_manager.py +575 -0
- algokit_utils/applications/app_spec/__init__.py +6 -0
- algokit_utils/applications/enums.py +40 -0
- algokit_utils/assets/__init__.py +1 -0
- algokit_utils/assets/asset_manager.py +344 -0
- algokit_utils/clients/__init__.py +41 -0
- algokit_utils/clients/client_manager.py +756 -0
- algokit_utils/clients/dispenser_api_client.py +212 -0
- algokit_utils/common.py +40 -0
- algokit_utils/config.py +159 -0
- algokit_utils/errors/__init__.py +1 -0
- algokit_utils/errors/logic_error.py +160 -0
- algokit_utils/models/__init__.py +7 -0
- algokit_utils/models/account.py +12 -0
- algokit_utils/models/amount.py +198 -0
- algokit_utils/models/application.py +90 -0
- algokit_utils/models/network.py +29 -0
- algokit_utils/models/simulate.py +7 -0
- algokit_utils/models/state.py +53 -0
- algokit_utils/models/transaction.py +49 -0
- algokit_utils/protocols/__init__.py +3 -0
- algokit_utils/protocols/account.py +11 -0
- algokit_utils/protocols/signer.py +17 -0
- algokit_utils/protocols/typed_clients.py +110 -0
- algokit_utils/py.typed +0 -0
- algokit_utils/transact.py +195 -0
- algokit_utils/transactions/__init__.py +3 -0
- algokit_utils/transactions/builders/__init__.py +67 -0
- algokit_utils/transactions/builders/app.py +248 -0
- algokit_utils/transactions/builders/asset.py +256 -0
- algokit_utils/transactions/builders/common.py +263 -0
- algokit_utils/transactions/builders/keyreg.py +103 -0
- algokit_utils/transactions/builders/method_call.py +380 -0
- algokit_utils/transactions/builders/payment.py +43 -0
- algokit_utils/transactions/composer_resources.py +409 -0
- algokit_utils/transactions/fee_coverage.py +79 -0
- algokit_utils/transactions/helpers.py +9 -0
- algokit_utils/transactions/transaction_composer.py +1574 -0
- algokit_utils/transactions/transaction_creator.py +699 -0
- algokit_utils/transactions/transaction_sender.py +1240 -0
- algokit_utils/transactions/types.py +262 -0
- algokit_utils-5.0.0a3.dist-info/METADATA +105 -0
- algokit_utils-5.0.0a3.dist-info/RECORD +337 -0
- algokit_utils-5.0.0a3.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
# AUTO-GENERATED: oas_generator
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass, field
|
|
5
|
+
|
|
6
|
+
from algokit_common.serde import nested, wire
|
|
7
|
+
|
|
8
|
+
from ._account_state_delta import AccountStateDelta
|
|
9
|
+
from ._eval_delta_key_value import EvalDeltaKeyValue
|
|
10
|
+
from ._serde_helpers import (
|
|
11
|
+
decode_bytes_base64,
|
|
12
|
+
decode_bytes_sequence,
|
|
13
|
+
decode_fixed_bytes_base64,
|
|
14
|
+
decode_model_sequence,
|
|
15
|
+
encode_bytes_base64,
|
|
16
|
+
encode_bytes_sequence,
|
|
17
|
+
encode_fixed_bytes_base64,
|
|
18
|
+
encode_model_sequence,
|
|
19
|
+
)
|
|
20
|
+
from ._transaction_application import TransactionApplication
|
|
21
|
+
from ._transaction_asset_config import TransactionAssetConfig
|
|
22
|
+
from ._transaction_asset_freeze import TransactionAssetFreeze
|
|
23
|
+
from ._transaction_asset_transfer import TransactionAssetTransfer
|
|
24
|
+
from ._transaction_heartbeat import TransactionHeartbeat
|
|
25
|
+
from ._transaction_keyreg import TransactionKeyreg
|
|
26
|
+
from ._transaction_payment import TransactionPayment
|
|
27
|
+
from ._transaction_signature import TransactionSignature
|
|
28
|
+
from ._transaction_state_proof import TransactionStateProof
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
@dataclass(slots=True)
|
|
32
|
+
class Transaction:
|
|
33
|
+
"""
|
|
34
|
+
Contains all fields common to all transactions and serves as an envelope to all
|
|
35
|
+
transactions type. Represents both regular and inner transactions.
|
|
36
|
+
|
|
37
|
+
Definition:
|
|
38
|
+
data/transactions/signedtxn.go : SignedTxn
|
|
39
|
+
data/transactions/transaction.go : Transaction
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
fee: int = field(
|
|
43
|
+
default=0,
|
|
44
|
+
metadata=wire("fee"),
|
|
45
|
+
)
|
|
46
|
+
first_valid: int = field(
|
|
47
|
+
default=0,
|
|
48
|
+
metadata=wire("first-valid"),
|
|
49
|
+
)
|
|
50
|
+
last_valid: int = field(
|
|
51
|
+
default=0,
|
|
52
|
+
metadata=wire("last-valid"),
|
|
53
|
+
)
|
|
54
|
+
sender: str = field(
|
|
55
|
+
default="",
|
|
56
|
+
metadata=wire("sender"),
|
|
57
|
+
)
|
|
58
|
+
tx_type: str = field(
|
|
59
|
+
default="",
|
|
60
|
+
metadata=wire("tx-type"),
|
|
61
|
+
)
|
|
62
|
+
application_transaction: TransactionApplication | None = field(
|
|
63
|
+
default=None,
|
|
64
|
+
metadata=nested("application-transaction", lambda: TransactionApplication),
|
|
65
|
+
)
|
|
66
|
+
asset_config_transaction: TransactionAssetConfig | None = field(
|
|
67
|
+
default=None,
|
|
68
|
+
metadata=nested("asset-config-transaction", lambda: TransactionAssetConfig),
|
|
69
|
+
)
|
|
70
|
+
asset_freeze_transaction: TransactionAssetFreeze | None = field(
|
|
71
|
+
default=None,
|
|
72
|
+
metadata=nested("asset-freeze-transaction", lambda: TransactionAssetFreeze),
|
|
73
|
+
)
|
|
74
|
+
asset_transfer_transaction: TransactionAssetTransfer | None = field(
|
|
75
|
+
default=None,
|
|
76
|
+
metadata=nested("asset-transfer-transaction", lambda: TransactionAssetTransfer),
|
|
77
|
+
)
|
|
78
|
+
auth_addr: str | None = field(
|
|
79
|
+
default=None,
|
|
80
|
+
metadata=wire("auth-addr"),
|
|
81
|
+
)
|
|
82
|
+
close_rewards: int | None = field(
|
|
83
|
+
default=None,
|
|
84
|
+
metadata=wire("close-rewards"),
|
|
85
|
+
)
|
|
86
|
+
closing_amount: int | None = field(
|
|
87
|
+
default=None,
|
|
88
|
+
metadata=wire("closing-amount"),
|
|
89
|
+
)
|
|
90
|
+
confirmed_round: int | None = field(
|
|
91
|
+
default=None,
|
|
92
|
+
metadata=wire("confirmed-round"),
|
|
93
|
+
)
|
|
94
|
+
created_app_id: int | None = field(
|
|
95
|
+
default=None,
|
|
96
|
+
metadata=wire("created-application-index"),
|
|
97
|
+
)
|
|
98
|
+
created_asset_id: int | None = field(
|
|
99
|
+
default=None,
|
|
100
|
+
metadata=wire("created-asset-index"),
|
|
101
|
+
)
|
|
102
|
+
genesis_hash: bytes | None = field(
|
|
103
|
+
default=None,
|
|
104
|
+
metadata=wire(
|
|
105
|
+
"genesis-hash",
|
|
106
|
+
encode=lambda v: encode_fixed_bytes_base64(v, 32),
|
|
107
|
+
decode=lambda raw: decode_fixed_bytes_base64(raw, 32),
|
|
108
|
+
),
|
|
109
|
+
)
|
|
110
|
+
genesis_id: str | None = field(
|
|
111
|
+
default=None,
|
|
112
|
+
metadata=wire("genesis-id"),
|
|
113
|
+
)
|
|
114
|
+
global_state_delta: list[EvalDeltaKeyValue] | None = field(
|
|
115
|
+
default=None,
|
|
116
|
+
metadata=wire(
|
|
117
|
+
"global-state-delta",
|
|
118
|
+
encode=encode_model_sequence,
|
|
119
|
+
decode=lambda raw: decode_model_sequence(lambda: EvalDeltaKeyValue, raw),
|
|
120
|
+
),
|
|
121
|
+
)
|
|
122
|
+
group: bytes | None = field(
|
|
123
|
+
default=None,
|
|
124
|
+
metadata=wire(
|
|
125
|
+
"group",
|
|
126
|
+
encode=lambda v: encode_fixed_bytes_base64(v, 32),
|
|
127
|
+
decode=lambda raw: decode_fixed_bytes_base64(raw, 32),
|
|
128
|
+
),
|
|
129
|
+
)
|
|
130
|
+
heartbeat_transaction: TransactionHeartbeat | None = field(
|
|
131
|
+
default=None,
|
|
132
|
+
metadata=nested("heartbeat-transaction", lambda: TransactionHeartbeat),
|
|
133
|
+
)
|
|
134
|
+
id_: str | None = field(
|
|
135
|
+
default=None,
|
|
136
|
+
metadata=wire("id"),
|
|
137
|
+
)
|
|
138
|
+
inner_txns: list["Transaction"] | None = field(
|
|
139
|
+
default=None,
|
|
140
|
+
metadata=wire(
|
|
141
|
+
"inner-txns",
|
|
142
|
+
encode=encode_model_sequence,
|
|
143
|
+
decode=lambda raw: decode_model_sequence(lambda: Transaction, raw),
|
|
144
|
+
),
|
|
145
|
+
)
|
|
146
|
+
intra_round_offset: int | None = field(
|
|
147
|
+
default=None,
|
|
148
|
+
metadata=wire("intra-round-offset"),
|
|
149
|
+
)
|
|
150
|
+
keyreg_transaction: TransactionKeyreg | None = field(
|
|
151
|
+
default=None,
|
|
152
|
+
metadata=nested("keyreg-transaction", lambda: TransactionKeyreg),
|
|
153
|
+
)
|
|
154
|
+
lease: bytes | None = field(
|
|
155
|
+
default=None,
|
|
156
|
+
metadata=wire(
|
|
157
|
+
"lease",
|
|
158
|
+
encode=lambda v: encode_fixed_bytes_base64(v, 32),
|
|
159
|
+
decode=lambda raw: decode_fixed_bytes_base64(raw, 32),
|
|
160
|
+
),
|
|
161
|
+
)
|
|
162
|
+
local_state_delta: list[AccountStateDelta] | None = field(
|
|
163
|
+
default=None,
|
|
164
|
+
metadata=wire(
|
|
165
|
+
"local-state-delta",
|
|
166
|
+
encode=encode_model_sequence,
|
|
167
|
+
decode=lambda raw: decode_model_sequence(lambda: AccountStateDelta, raw),
|
|
168
|
+
),
|
|
169
|
+
)
|
|
170
|
+
logs: list[bytes] | None = field(
|
|
171
|
+
default=None,
|
|
172
|
+
metadata=wire(
|
|
173
|
+
"logs",
|
|
174
|
+
encode=encode_bytes_sequence,
|
|
175
|
+
decode=decode_bytes_sequence,
|
|
176
|
+
),
|
|
177
|
+
)
|
|
178
|
+
note: bytes | None = field(
|
|
179
|
+
default=None,
|
|
180
|
+
metadata=wire(
|
|
181
|
+
"note",
|
|
182
|
+
encode=encode_bytes_base64,
|
|
183
|
+
decode=decode_bytes_base64,
|
|
184
|
+
),
|
|
185
|
+
)
|
|
186
|
+
payment_transaction: TransactionPayment | None = field(
|
|
187
|
+
default=None,
|
|
188
|
+
metadata=nested("payment-transaction", lambda: TransactionPayment),
|
|
189
|
+
)
|
|
190
|
+
receiver_rewards: int | None = field(
|
|
191
|
+
default=None,
|
|
192
|
+
metadata=wire("receiver-rewards"),
|
|
193
|
+
)
|
|
194
|
+
rekey_to: str | None = field(
|
|
195
|
+
default=None,
|
|
196
|
+
metadata=wire("rekey-to"),
|
|
197
|
+
)
|
|
198
|
+
round_time: int | None = field(
|
|
199
|
+
default=None,
|
|
200
|
+
metadata=wire("round-time"),
|
|
201
|
+
)
|
|
202
|
+
sender_rewards: int | None = field(
|
|
203
|
+
default=None,
|
|
204
|
+
metadata=wire("sender-rewards"),
|
|
205
|
+
)
|
|
206
|
+
signature: TransactionSignature | None = field(
|
|
207
|
+
default=None,
|
|
208
|
+
metadata=nested("signature", lambda: TransactionSignature),
|
|
209
|
+
)
|
|
210
|
+
state_proof_transaction: TransactionStateProof | None = field(
|
|
211
|
+
default=None,
|
|
212
|
+
metadata=nested("state-proof-transaction", lambda: TransactionStateProof),
|
|
213
|
+
)
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# AUTO-GENERATED: oas_generator
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass, field
|
|
5
|
+
|
|
6
|
+
from algokit_common.serde import enum_value, nested, wire
|
|
7
|
+
|
|
8
|
+
from ._box_reference import BoxReference
|
|
9
|
+
from ._on_completion import OnCompletion
|
|
10
|
+
from ._resource_ref import ResourceRef
|
|
11
|
+
from ._serde_helpers import (
|
|
12
|
+
decode_bytes_base64,
|
|
13
|
+
decode_bytes_sequence,
|
|
14
|
+
decode_model_sequence,
|
|
15
|
+
encode_bytes_base64,
|
|
16
|
+
encode_bytes_sequence,
|
|
17
|
+
encode_model_sequence,
|
|
18
|
+
)
|
|
19
|
+
from ._state_schema import StateSchema
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@dataclass(slots=True)
|
|
23
|
+
class TransactionApplication:
|
|
24
|
+
"""
|
|
25
|
+
Fields for application transactions.
|
|
26
|
+
|
|
27
|
+
Definition:
|
|
28
|
+
data/transactions/application.go : ApplicationCallTxnFields
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
on_completion: OnCompletion = field(
|
|
32
|
+
metadata=enum_value("on-completion", OnCompletion),
|
|
33
|
+
)
|
|
34
|
+
application_id: int = field(
|
|
35
|
+
default=0,
|
|
36
|
+
metadata=wire("application-id"),
|
|
37
|
+
)
|
|
38
|
+
access: list[ResourceRef] | None = field(
|
|
39
|
+
default=None,
|
|
40
|
+
metadata=wire(
|
|
41
|
+
"access",
|
|
42
|
+
encode=encode_model_sequence,
|
|
43
|
+
decode=lambda raw: decode_model_sequence(lambda: ResourceRef, raw),
|
|
44
|
+
),
|
|
45
|
+
)
|
|
46
|
+
accounts: list[str] | None = field(
|
|
47
|
+
default=None,
|
|
48
|
+
metadata=wire("accounts"),
|
|
49
|
+
)
|
|
50
|
+
application_args: list[bytes] | None = field(
|
|
51
|
+
default=None,
|
|
52
|
+
metadata=wire(
|
|
53
|
+
"application-args",
|
|
54
|
+
encode=encode_bytes_sequence,
|
|
55
|
+
decode=decode_bytes_sequence,
|
|
56
|
+
),
|
|
57
|
+
)
|
|
58
|
+
approval_program: bytes | None = field(
|
|
59
|
+
default=None,
|
|
60
|
+
metadata=wire(
|
|
61
|
+
"approval-program",
|
|
62
|
+
encode=encode_bytes_base64,
|
|
63
|
+
decode=decode_bytes_base64,
|
|
64
|
+
),
|
|
65
|
+
)
|
|
66
|
+
box_references: list[BoxReference] | None = field(
|
|
67
|
+
default=None,
|
|
68
|
+
metadata=wire(
|
|
69
|
+
"box-references",
|
|
70
|
+
encode=encode_model_sequence,
|
|
71
|
+
decode=lambda raw: decode_model_sequence(lambda: BoxReference, raw),
|
|
72
|
+
),
|
|
73
|
+
)
|
|
74
|
+
clear_state_program: bytes | None = field(
|
|
75
|
+
default=None,
|
|
76
|
+
metadata=wire(
|
|
77
|
+
"clear-state-program",
|
|
78
|
+
encode=encode_bytes_base64,
|
|
79
|
+
decode=decode_bytes_base64,
|
|
80
|
+
),
|
|
81
|
+
)
|
|
82
|
+
extra_program_pages: int | None = field(
|
|
83
|
+
default=None,
|
|
84
|
+
metadata=wire("extra-program-pages"),
|
|
85
|
+
)
|
|
86
|
+
foreign_apps: list[int] | None = field(
|
|
87
|
+
default=None,
|
|
88
|
+
metadata=wire("foreign-apps"),
|
|
89
|
+
)
|
|
90
|
+
foreign_assets: list[int] | None = field(
|
|
91
|
+
default=None,
|
|
92
|
+
metadata=wire("foreign-assets"),
|
|
93
|
+
)
|
|
94
|
+
global_state_schema: StateSchema | None = field(
|
|
95
|
+
default=None,
|
|
96
|
+
metadata=nested("global-state-schema", lambda: StateSchema),
|
|
97
|
+
)
|
|
98
|
+
local_state_schema: StateSchema | None = field(
|
|
99
|
+
default=None,
|
|
100
|
+
metadata=nested("local-state-schema", lambda: StateSchema),
|
|
101
|
+
)
|
|
102
|
+
reject_version: int | None = field(
|
|
103
|
+
default=None,
|
|
104
|
+
metadata=wire("reject-version"),
|
|
105
|
+
)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# AUTO-GENERATED: oas_generator
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass, field
|
|
5
|
+
|
|
6
|
+
from algokit_common.serde import nested, wire
|
|
7
|
+
|
|
8
|
+
from ._asset_params import AssetParams
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@dataclass(slots=True)
|
|
12
|
+
class TransactionAssetConfig:
|
|
13
|
+
"""
|
|
14
|
+
Fields for asset allocation, re-configuration, and destruction.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
A zero value for asset-id indicates asset creation.
|
|
18
|
+
A zero value for the params indicates asset destruction.
|
|
19
|
+
|
|
20
|
+
Definition:
|
|
21
|
+
data/transactions/asset.go : AssetConfigTxnFields
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
asset_id: int | None = field(
|
|
25
|
+
default=None,
|
|
26
|
+
metadata=wire("asset-id"),
|
|
27
|
+
)
|
|
28
|
+
params: AssetParams | None = field(
|
|
29
|
+
default=None,
|
|
30
|
+
metadata=nested("params", lambda: AssetParams),
|
|
31
|
+
)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# AUTO-GENERATED: oas_generator
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass, field
|
|
5
|
+
|
|
6
|
+
from algokit_common.serde import wire
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@dataclass(slots=True)
|
|
10
|
+
class TransactionAssetFreeze:
|
|
11
|
+
"""
|
|
12
|
+
Fields for an asset freeze transaction.
|
|
13
|
+
|
|
14
|
+
Definition:
|
|
15
|
+
data/transactions/asset.go : AssetFreezeTxnFields
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
address: str = field(
|
|
19
|
+
default="",
|
|
20
|
+
metadata=wire("address"),
|
|
21
|
+
)
|
|
22
|
+
asset_id: int = field(
|
|
23
|
+
default=0,
|
|
24
|
+
metadata=wire("asset-id"),
|
|
25
|
+
)
|
|
26
|
+
new_freeze_status: bool = field(
|
|
27
|
+
default=False,
|
|
28
|
+
metadata=wire("new-freeze-status"),
|
|
29
|
+
)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# AUTO-GENERATED: oas_generator
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass, field
|
|
5
|
+
|
|
6
|
+
from algokit_common.serde import wire
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@dataclass(slots=True)
|
|
10
|
+
class TransactionAssetTransfer:
|
|
11
|
+
"""
|
|
12
|
+
Fields for an asset transfer transaction.
|
|
13
|
+
|
|
14
|
+
Definition:
|
|
15
|
+
data/transactions/asset.go : AssetTransferTxnFields
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
amount: int = field(
|
|
19
|
+
default=0,
|
|
20
|
+
metadata=wire("amount"),
|
|
21
|
+
)
|
|
22
|
+
asset_id: int = field(
|
|
23
|
+
default=0,
|
|
24
|
+
metadata=wire("asset-id"),
|
|
25
|
+
)
|
|
26
|
+
receiver: str = field(
|
|
27
|
+
default="",
|
|
28
|
+
metadata=wire("receiver"),
|
|
29
|
+
)
|
|
30
|
+
close_amount: int | None = field(
|
|
31
|
+
default=None,
|
|
32
|
+
metadata=wire("close-amount"),
|
|
33
|
+
)
|
|
34
|
+
close_to: str | None = field(
|
|
35
|
+
default=None,
|
|
36
|
+
metadata=wire("close-to"),
|
|
37
|
+
)
|
|
38
|
+
sender: str | None = field(
|
|
39
|
+
default=None,
|
|
40
|
+
metadata=wire("sender"),
|
|
41
|
+
)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# AUTO-GENERATED: oas_generator
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass, field
|
|
5
|
+
|
|
6
|
+
from algokit_common.serde import nested, wire
|
|
7
|
+
|
|
8
|
+
from ._hb_proof_fields import HbProofFields
|
|
9
|
+
from ._serde_helpers import (
|
|
10
|
+
decode_bytes_base64,
|
|
11
|
+
decode_fixed_bytes_base64,
|
|
12
|
+
encode_bytes_base64,
|
|
13
|
+
encode_fixed_bytes_base64,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@dataclass(slots=True)
|
|
18
|
+
class TransactionHeartbeat:
|
|
19
|
+
"""
|
|
20
|
+
Fields for a heartbeat transaction.
|
|
21
|
+
|
|
22
|
+
Definition:
|
|
23
|
+
data/transactions/heartbeat.go : HeartbeatTxnFields
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
hb_proof: HbProofFields = field(
|
|
27
|
+
metadata=nested("hb-proof", lambda: HbProofFields, required=True),
|
|
28
|
+
)
|
|
29
|
+
hb_address: str = field(
|
|
30
|
+
default="",
|
|
31
|
+
metadata=wire("hb-address"),
|
|
32
|
+
)
|
|
33
|
+
hb_key_dilution: int = field(
|
|
34
|
+
default=0,
|
|
35
|
+
metadata=wire("hb-key-dilution"),
|
|
36
|
+
)
|
|
37
|
+
hb_seed: bytes = field(
|
|
38
|
+
default=b"",
|
|
39
|
+
metadata=wire(
|
|
40
|
+
"hb-seed",
|
|
41
|
+
encode=encode_bytes_base64,
|
|
42
|
+
decode=decode_bytes_base64,
|
|
43
|
+
),
|
|
44
|
+
)
|
|
45
|
+
hb_vote_id: bytes = field(
|
|
46
|
+
default=b"",
|
|
47
|
+
metadata=wire(
|
|
48
|
+
"hb-vote-id",
|
|
49
|
+
encode=lambda v: encode_fixed_bytes_base64(v, 32),
|
|
50
|
+
decode=lambda raw: decode_fixed_bytes_base64(raw, 32),
|
|
51
|
+
),
|
|
52
|
+
)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# AUTO-GENERATED: oas_generator
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass, field
|
|
5
|
+
|
|
6
|
+
from algokit_common.serde import wire
|
|
7
|
+
|
|
8
|
+
from ._serde_helpers import decode_fixed_bytes_base64, encode_fixed_bytes_base64
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@dataclass(slots=True)
|
|
12
|
+
class TransactionKeyreg:
|
|
13
|
+
"""
|
|
14
|
+
Fields for a keyreg transaction.
|
|
15
|
+
|
|
16
|
+
Definition:
|
|
17
|
+
data/transactions/keyreg.go : KeyregTxnFields
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
non_participation: bool | None = field(
|
|
21
|
+
default=None,
|
|
22
|
+
metadata=wire("non-participation"),
|
|
23
|
+
)
|
|
24
|
+
selection_participation_key: bytes | None = field(
|
|
25
|
+
default=None,
|
|
26
|
+
metadata=wire(
|
|
27
|
+
"selection-participation-key",
|
|
28
|
+
encode=lambda v: encode_fixed_bytes_base64(v, 32),
|
|
29
|
+
decode=lambda raw: decode_fixed_bytes_base64(raw, 32),
|
|
30
|
+
),
|
|
31
|
+
)
|
|
32
|
+
state_proof_key: bytes | None = field(
|
|
33
|
+
default=None,
|
|
34
|
+
metadata=wire(
|
|
35
|
+
"state-proof-key",
|
|
36
|
+
encode=lambda v: encode_fixed_bytes_base64(v, 64),
|
|
37
|
+
decode=lambda raw: decode_fixed_bytes_base64(raw, 64),
|
|
38
|
+
),
|
|
39
|
+
)
|
|
40
|
+
vote_first_valid: int | None = field(
|
|
41
|
+
default=None,
|
|
42
|
+
metadata=wire("vote-first-valid"),
|
|
43
|
+
)
|
|
44
|
+
vote_key_dilution: int | None = field(
|
|
45
|
+
default=None,
|
|
46
|
+
metadata=wire("vote-key-dilution"),
|
|
47
|
+
)
|
|
48
|
+
vote_last_valid: int | None = field(
|
|
49
|
+
default=None,
|
|
50
|
+
metadata=wire("vote-last-valid"),
|
|
51
|
+
)
|
|
52
|
+
vote_participation_key: bytes | None = field(
|
|
53
|
+
default=None,
|
|
54
|
+
metadata=wire(
|
|
55
|
+
"vote-participation-key",
|
|
56
|
+
encode=lambda v: encode_fixed_bytes_base64(v, 32),
|
|
57
|
+
decode=lambda raw: decode_fixed_bytes_base64(raw, 32),
|
|
58
|
+
),
|
|
59
|
+
)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# AUTO-GENERATED: oas_generator
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass, field
|
|
5
|
+
|
|
6
|
+
from algokit_common.serde import wire
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@dataclass(slots=True)
|
|
10
|
+
class TransactionPayment:
|
|
11
|
+
"""
|
|
12
|
+
Fields for a payment transaction.
|
|
13
|
+
|
|
14
|
+
Definition:
|
|
15
|
+
data/transactions/payment.go : PaymentTxnFields
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
amount: int = field(
|
|
19
|
+
default=0,
|
|
20
|
+
metadata=wire("amount"),
|
|
21
|
+
)
|
|
22
|
+
receiver: str = field(
|
|
23
|
+
default="",
|
|
24
|
+
metadata=wire("receiver"),
|
|
25
|
+
)
|
|
26
|
+
close_amount: int | None = field(
|
|
27
|
+
default=None,
|
|
28
|
+
metadata=wire("close-amount"),
|
|
29
|
+
)
|
|
30
|
+
close_remainder_to: str | None = field(
|
|
31
|
+
default=None,
|
|
32
|
+
metadata=wire("close-remainder-to"),
|
|
33
|
+
)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# AUTO-GENERATED: oas_generator
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass, field
|
|
5
|
+
|
|
6
|
+
from algokit_common.serde import nested, wire
|
|
7
|
+
|
|
8
|
+
from ._transaction import Transaction
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@dataclass(slots=True)
|
|
12
|
+
class TransactionResponse:
|
|
13
|
+
transaction: Transaction = field(
|
|
14
|
+
metadata=nested("transaction", lambda: Transaction, required=True),
|
|
15
|
+
)
|
|
16
|
+
current_round: int = field(
|
|
17
|
+
default=0,
|
|
18
|
+
metadata=wire("current-round"),
|
|
19
|
+
)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# AUTO-GENERATED: oas_generator
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass, field
|
|
5
|
+
|
|
6
|
+
from algokit_common.serde import nested, wire
|
|
7
|
+
|
|
8
|
+
from ._serde_helpers import decode_bytes_base64, encode_bytes_base64
|
|
9
|
+
from ._transaction_signature_logicsig import TransactionSignatureLogicsig
|
|
10
|
+
from ._transaction_signature_multisig import TransactionSignatureMultisig
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@dataclass(slots=True)
|
|
14
|
+
class TransactionSignature:
|
|
15
|
+
"""
|
|
16
|
+
Validation signature associated with some data. Only one of the signatures should be
|
|
17
|
+
provided.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
logicsig: TransactionSignatureLogicsig | None = field(
|
|
21
|
+
default=None,
|
|
22
|
+
metadata=nested("logicsig", lambda: TransactionSignatureLogicsig),
|
|
23
|
+
)
|
|
24
|
+
multisig: TransactionSignatureMultisig | None = field(
|
|
25
|
+
default=None,
|
|
26
|
+
metadata=nested("multisig", lambda: TransactionSignatureMultisig),
|
|
27
|
+
)
|
|
28
|
+
sig: bytes | None = field(
|
|
29
|
+
default=None,
|
|
30
|
+
metadata=wire(
|
|
31
|
+
"sig",
|
|
32
|
+
encode=encode_bytes_base64,
|
|
33
|
+
decode=decode_bytes_base64,
|
|
34
|
+
),
|
|
35
|
+
)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# AUTO-GENERATED: oas_generator
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass, field
|
|
5
|
+
|
|
6
|
+
from algokit_common.serde import nested, wire
|
|
7
|
+
|
|
8
|
+
from ._serde_helpers import (
|
|
9
|
+
decode_bytes_base64,
|
|
10
|
+
decode_bytes_sequence,
|
|
11
|
+
decode_fixed_bytes_base64,
|
|
12
|
+
encode_bytes_base64,
|
|
13
|
+
encode_bytes_sequence,
|
|
14
|
+
encode_fixed_bytes_base64,
|
|
15
|
+
)
|
|
16
|
+
from ._transaction_signature_multisig import TransactionSignatureMultisig
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@dataclass(slots=True)
|
|
20
|
+
class TransactionSignatureLogicsig:
|
|
21
|
+
r"""
|
|
22
|
+
\[lsig\] Programatic transaction signature.
|
|
23
|
+
|
|
24
|
+
Definition:
|
|
25
|
+
data/transactions/logicsig.go
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
logic: bytes = field(
|
|
29
|
+
default=b"",
|
|
30
|
+
metadata=wire(
|
|
31
|
+
"logic",
|
|
32
|
+
encode=encode_bytes_base64,
|
|
33
|
+
decode=decode_bytes_base64,
|
|
34
|
+
),
|
|
35
|
+
)
|
|
36
|
+
args: list[bytes] | None = field(
|
|
37
|
+
default=None,
|
|
38
|
+
metadata=wire(
|
|
39
|
+
"args",
|
|
40
|
+
encode=encode_bytes_sequence,
|
|
41
|
+
decode=decode_bytes_sequence,
|
|
42
|
+
),
|
|
43
|
+
)
|
|
44
|
+
logic_multisig_signature: TransactionSignatureMultisig | None = field(
|
|
45
|
+
default=None,
|
|
46
|
+
metadata=nested("logic-multisig-signature", lambda: TransactionSignatureMultisig),
|
|
47
|
+
)
|
|
48
|
+
multisig_signature: TransactionSignatureMultisig | None = field(
|
|
49
|
+
default=None,
|
|
50
|
+
metadata=nested("multisig-signature", lambda: TransactionSignatureMultisig),
|
|
51
|
+
)
|
|
52
|
+
signature: bytes | None = field(
|
|
53
|
+
default=None,
|
|
54
|
+
metadata=wire(
|
|
55
|
+
"signature",
|
|
56
|
+
encode=lambda v: encode_fixed_bytes_base64(v, 64),
|
|
57
|
+
decode=lambda raw: decode_fixed_bytes_base64(raw, 64),
|
|
58
|
+
),
|
|
59
|
+
)
|