Skip to content

Introducing Batch Transfer (with helper functions for validations)#441

Open
allquantor wants to merge 1 commit into
permaweb:mainfrom
allquantor:ivan/batch-transfer-refactor
Open

Introducing Batch Transfer (with helper functions for validations)#441
allquantor wants to merge 1 commit into
permaweb:mainfrom
allquantor:ivan/batch-transfer-refactor

Conversation

@allquantor
Copy link
Copy Markdown

@allquantor allquantor commented Apr 14, 2025

This PR introduces a batch-transfer action to the token blueprint, providing feature parity with [PR #438](#438).

However, unlike PR #438, this implementation extracts common logic—such as input validation and message replies—shared across transfer, burn, mint, and batch-transfer into reusable helper functions. This refactoring reduces overall complexity and improves readability.

While this approach results in a "higher line count of changes" , the structural improvements aim to make the codebase more maintainable. Both PRs are presented for comparison, and I'm happy to open the floor to discuss which approach is preferred.

@allquantor allquantor requested a review from twilson63 April 14, 2025 11:22
@allquantor
Copy link
Copy Markdown
Author

Here is some extensive testing I wrote for this blueprint.

https://gist.github.com/allquantor/122a6ea62cca19becbdc7ce5c7ac8c5f

Comment thread blueprints/token.lua
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.

2 participants