diff --git a/bindings/python/iota_sdk/types/mana.py b/bindings/python/iota_sdk/types/mana.py new file mode 100644 index 0000000000..6e8f1d80e4 --- /dev/null +++ b/bindings/python/iota_sdk/types/mana.py @@ -0,0 +1,15 @@ +# Copyright 2023 IOTA Stiftung +# SPDX-License-Identifier: Apache-2.0 + +@json +@dataclass +class ManaAllotment: + """An allotment of Mana which will be added upon commitment of the slot in which the containing transaction was issued, + in the form of Block Issuance Credits to the account. + + Attributes: + account_id: The unique identifier of the account. + mana: The alloted amount of mana. + """ + account_id: HexStr + mana: str diff --git a/bindings/python/iota_sdk/types/network_info.py b/bindings/python/iota_sdk/types/network_info.py index 08d7b45a5e..9272a1d667 100644 --- a/bindings/python/iota_sdk/types/network_info.py +++ b/bindings/python/iota_sdk/types/network_info.py @@ -12,5 +12,4 @@ class NetworkInfo: """Network related information. """ - protocol_parameters: NodeInfoProtocol diff --git a/bindings/python/iota_sdk/types/node_info.py b/bindings/python/iota_sdk/types/node_info.py index 85b2bde9eb..09e38ec91e 100644 --- a/bindings/python/iota_sdk/types/node_info.py +++ b/bindings/python/iota_sdk/types/node_info.py @@ -141,7 +141,6 @@ class NodeInfo: base_token: Information about the base token. features: List of features supported by the node. """ - name: str version: str status: NodeInfoStatus diff --git a/bindings/python/iota_sdk/types/output_data.py b/bindings/python/iota_sdk/types/output_data.py index 3cea71b9eb..effb0cbcd5 100644 --- a/bindings/python/iota_sdk/types/output_data.py +++ b/bindings/python/iota_sdk/types/output_data.py @@ -25,7 +25,6 @@ class OutputData(): remainder: Whether the output represents a remainder amount. chain: A list of chain state indexes. """ - output_id: HexStr metadata: OutputMetadata output: AccountOutput | FoundryOutput | NftOutput | BasicOutput diff --git a/bindings/python/iota_sdk/types/payload.py b/bindings/python/iota_sdk/types/payload.py index bf60855c5e..8e9534e51b 100644 --- a/bindings/python/iota_sdk/types/payload.py +++ b/bindings/python/iota_sdk/types/payload.py @@ -11,6 +11,7 @@ from iota_sdk.types.output import BasicOutput, AccountOutput, FoundryOutput, NftOutput from iota_sdk.types.input import UtxoInput from iota_sdk.types.unlock import SignatureUnlock, ReferenceUnlock +from iota_sdk.types.mana import ManaAllotment class PayloadType(IntEnum): @@ -37,6 +38,7 @@ class RegularTransactionEssence(TransactionEssence): inputs_commitment: HexStr inputs: List[UtxoInput] outputs: List[AccountOutput | FoundryOutput | NftOutput | BasicOutput] + allotments: List[ManaAllotment] payload: Optional[TaggedDataPayload] = None type: int = field(default_factory=lambda: 1, init=False)