Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batching or transaction-like capability for exported library methods #16

Open
alexytsu opened this issue Jul 19, 2022 · 1 comment
Open
Labels
enhancement New feature or request frc46 token frc46_token package

Comments

@alexytsu
Copy link
Collaborator

@anorth has suggested

One consideration for improving the API is efficiency of state writes for bulk operations. The current API will force some unnecessary state.save() calls for intermediate states. E.g. intialising and then minting to a bunch of accounts up front, or making multiple transfers (from some non-standard token method). This API is pretty good for the basic cases and we want to keep them easy. We should think about how/whether to change this API to aid batching, or add an alternative style for less common but more complex calls. Maybe a closure that executes over state object, or a builder-style API that can abstract over it while batching.

@alexytsu alexytsu added enhancement New feature or request frc46 token frc46_token package labels Jul 19, 2022
@alexytsu
Copy link
Collaborator Author

alexytsu commented Aug 1, 2022

#40 is in progress but deferred for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frc46 token frc46_token package
Projects
None yet
Development

No branches or pull requests

1 participant