-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* More python types * Add BlockBuilderOptions and use dataclass more * Split Output * More changelog * Use correct types * Update bindings/python/CHANGELOG.md * Only AliasAddress, changelog * Only allowed features * Update doc comments * Add type hint
- Loading branch information
Showing
22 changed files
with
420 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Copyright 2023 IOTA Stiftung | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from __future__ import annotations | ||
from dataclasses import dataclass | ||
from typing import Any, Dict, List, Optional | ||
from iota_sdk.types.common import HexStr, AddressAndAmount | ||
from iota_sdk.client._high_level_api import Range | ||
from iota_sdk.types.burn import Burn | ||
from iota_sdk.types.output import Output | ||
from iota_sdk.types.input import UtxoInput | ||
|
||
|
||
@dataclass | ||
class BlockBuilderOptions: | ||
"""Options to build a block. | ||
""" | ||
total: str | ||
available: str | ||
coinType: Optional[int] = None | ||
accountInde: Optional[int] = None | ||
initialAddressIndex: Optional[int] = None | ||
inputs: Optional[List[UtxoInput]] = None | ||
inputRange: Optional[Range] = None | ||
output: Optional[AddressAndAmount] = None | ||
outputHex: Optional[List[Dict[str, Any]]] = None | ||
outputs: Optional[List[Output]] = None | ||
customRemainderAddress: Optional[str] = None | ||
tag: Optional[HexStr] = None | ||
data: Optional[HexStr] = None | ||
parents: Optional[List[HexStr]] = None | ||
burn: Optional[Burn] = None |
Oops, something went wrong.