Skip to content

Conversation

@Raja-89
Copy link
Contributor

@Raja-89 Raja-89 commented Nov 12, 2025

Summary

Refactored examples/token_transfer.py into modular functions for improved readability and structure.
Introduced:

  • account_balance_query()
  • transfer_transaction()
  • main() entry point for clear script execution.

Maintains identical runtime behavior and output.
Linked issue: #773

Raja-89 and others added 3 commits November 12, 2025 10:11
Signed-off-by: Raja Rathour <imraja729@gmail.com>
Signed-off-by: Raja Rathour <193507075+Raja-89@users.noreply.github.com>
@Raja-89
Copy link
Contributor Author

Raja-89 commented Nov 12, 2025

Hey @exploreriii , Ready for preview , please check.
ThankYou

Copy link
Contributor

@exploreriii exploreriii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Raja-89 sorry the title of this issue was not titled correctly, but I'll persist as the description was correct.

Please edit:
examples/transfer_token.py
this is a file that already exists
so, you should keep the content in there and just modularise it

Currently, you have created a new file, token_trasnfer.py, which means we have duplicate content as have another at token_transfer.py

Thanks!

@exploreriii
Copy link
Contributor

Hi @Raja-89 issues persist in this PR when you are able
Thanks

@exploreriii
Copy link
Contributor

Hi @Raja-89 please confirm if you are able to continue working on this PRr

Raja-89 and others added 2 commits November 22, 2025 12:41
Signed-off-by: Raja Rathour <imraja729@gmail.com>
Signed-off-by: Raja Rathour <193507075+Raja-89@users.noreply.github.com>
Copy link
Contributor

@exploreriii exploreriii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Raja-89 very good just a changelog update please

CHANGELOG.md Outdated
- Limit workflow bot to one message per PR
- Refactored token-related example scripts (`token_delete.py`, `token_dissociate.py`, etc.) for improved readability and modularity. [#370]
- upgrade: step security action upgraded from harden-runner-2.13.1 to harden-runner-2.13.1
- upgrade: step security action upgraded from harden-runner-2.13.1 to harden-runner.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you make sure line 38 includes this:

  • upgrade: step security action upgraded from harden-runner-2.13.1 to harden-runner-2.13.1

- Added `examples/token_create_transaction_token_fee_schedule.py` to demonstrate creating tokens with custom fee schedules and the consequences of not having it.

### Changed
- Upgraded step-security/harden-runner v2.13.2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In line 34, please add your changelog entry about token transfer

@Raja-89
Copy link
Contributor Author

Raja-89 commented Nov 22, 2025

Hi @exploreriii , done the changes, ready for final review.
Thanks


# Transfer Token
print("\nSTEP 4: Transfering Token...")
def transfer_transaction(client, operator_id, operator_key, recipient_id, token_id):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should stay transfer_tokens() please

@nadineloepfe
Copy link
Contributor

also rebase please :)

Signed-off-by: Raja Rathour <imraja729@gmail.com>
@Raja-89 Raja-89 force-pushed the feat/modular-token-transfer branch from d9abfbb to 45a0dc4 Compare November 25, 2025 05:08
@exploreriii
Copy link
Contributor

@tech0priyanshu would you like to help review this PR?

@tech0priyanshu
Copy link
Contributor

sure @exploreriii

uv run examples/transaction/transfer_transaction_fungible.py
python examples/transaction/transfer_transaction_fungible.py
uv run examples/transfer_token.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Raja-89 , this file is now renamed to examples/transaction/transfer_transaction_fungible.py.

cc- @exploreriii

@tech0priyanshu
Copy link
Contributor

Also, please resolve the conflicts and rebase to pull in the latest changes from main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants