filecoin-project / filecoin-project/actors-utils

Batching or transaction-like capability for exported library methods

Open
#16 1 comment 0 reactions 0 assignees View on GitHub
enhancement frc46 token
Dominant language
Rust
Stars
17
Forks
17
PR merge metrics
No merged PRs in 30d

Description

@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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.