Skip to content

Commit c53f383

Browse files
committed
chore: final refactors, client setup improvements and changelog
Signed-off-by: MonaaEid <[email protected]>
1 parent 5794205 commit c53f383

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

CHANGELOG.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.
1010
- Unified balance and transfer logging format — both now consistently display values in hbars for clarity.
1111

1212
### Added
13+
- Refactored `examples/topic_create.py` into modular functions for better readability and reuse.
14+
- Add Rebasing and Signing section to signing.md with instructions for maintaining commit verification during rebase operations (#556)
1315
- Add `examples/account_id.py` demonstrating AccountId class usage including creating standard AccountIds, parsing from strings, comparing instances, and creating AccountIds with public key aliases
14-
1516
- Added Google-style docstrings to `CustomFractionalFee` class and its methods in `custom_fractional_fee.py`.
1617
- Added `dependabot.yaml` file to enable automated dependency management.
1718
- Common issues guide for SDK developers at `examples/sdk_developers/common_issues.md`
@@ -20,23 +21,37 @@ This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.
2021
- docs: Added Google-style docstrings to `CustomFixedFee` class and its methods in `custom_fixed_fee.py`.
2122
- docs: Add Google-style docstrings to `CustomRoyaltyFee` class and its methods in `custom_royalty_fee.py`.
2223
- docs: Add Google-style docstrings to `AbstractTokenTransferTransaction` class and its methods in `abstract_token_transfer_transaction.py`.
24+
- docs: Add Google-style docstrings to `TokenRelationship` class and its methods in `token_relationship.py`.
25+
- feat: add initial testing guide structure
26+
- Added `checksum` filed for TopicId, FileId, ContractId, ScheduleId class
2327

2428
### Changed
2529

30+
- Refactored TopicId class to use @dataclass decorator for reducing boilerplate code
31+
- Renamed `examples/nft_allowance.py` to `examples/account_allowance_nft.py` for consistency with account class naming scheme
32+
- Added changelog conflict resolution examples to `docs/common_issues.md`
2633
- Refactored `examples/topic_create.py` to be more modular by splitting functions and renaming `create_topic()` to `main()`.
2734
- Refactored `examples/transfer_hbar.py` to improve modularity by separating transfer and balance query operations into dedicated functions
2835
- Enhanced contributing section in README.md with resource links
2936
- Refactored examples/topic_message_submit.py to be more modular
3037
- Added "One Issue Per Pull Request" section to `examples/sdk_developers/common_issues.md`.
3138
- docs: Improved the contributing section in the README.md file
3239
- Refactored `examples/transfer_nft.py` to be more modular by isolating transfer logic.
40+
- Refactored `examples/file_append.py` into modular functions for better readability, reuse, and consistency across examples.
41+
- Ensured identical runtime behavior and output to the previous version to maintain backward compatibility.
3342
- Renamed `examples/hbar_allowance.py` to `examples/account_allowance_hbar.py` for naming consistency
43+
- Converted monolithic function in `token_create_nft_infinite.py` to multiple modular functions for better structure and ease.
44+
- docs: Use relative paths for internal GitHub links (#560).
45+
- Update pyproject.toml maintainers list.
3446
- Refactored token-related example scripts (`token_delete.py`, `token_dissociate.py`, etc.) for improved readability and modularity. [#370]
35-
3647
### Fixed
3748

3849
- Add type hints to `setup_client()` and `create_new_account()` functions in `examples/account_create.py` (#418)
3950
- Added explicit read and write permissions to test.yml
51+
- Type hinting for `Topic` related transactions.
52+
53+
### Removed
54+
- Remove deprecated camelCase alias support and `_DeprecatedAliasesMixin`; SDK now only exposes snake_case attributes for `NftId`, `TokenInfo`, and `TransactionReceipt`. (Issue #428)
4055

4156
## [0.1.6] - 2025-10-21
4257

@@ -57,13 +72,18 @@ This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.
5772
- Approved transfer support to TransferTransaction
5873
- set_transaction_id() API to Transaction class
5974
- Allowance examples (hbar_allowance.py, token_allowance.py, nft_allowance.py)
75+
- Refactored examples/logging_example.py for better modularity (#478)
6076

6177
### Changed
6278

6379
- TransferTransaction refactored to use TokenTransfer and HbarTransfer classes instead of dictionaries
6480
- Added checksum validation for TokenId
6581
- Refactor examples/token_cancel_airdrop
6682
- Refactor token creation examples for modularity and consistency
83+
- Updated `signing.md` to clarify commit signing requirements, including DCO, GPG, and branch-specific guidelines (#459)
84+
85+
### Changed
86+
6787
- Rearranged running_examples.md to be alphabetical
6888
- Refactor token_associate.py for better structure, add association verification query (#367)
6989
- Refactored `examples/account_create.py` to improve modularity and readability (#363)
@@ -372,4 +392,4 @@ contract_call_local_pb2.ContractLoginfo -> contract_types_pb2.ContractLoginfo
372392

373393
### Removed
374394

375-
- N/A
395+
- N/A

examples/token_mint_fungible.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ def token_mint_fungible(client, token_id, supply_key):
9898
Only the holder of the supply key can perform these actions.
9999
"""
100100

101-
# Create a new token with a supply key so its supply can be changed later
102-
103101
mint_amount = 5000 # This is 50.00 tokens because decimals is 2
104102
print(f"\nSTEP 3: Minting {mint_amount} more tokens for {token_id}...")
105103

0 commit comments

Comments
 (0)