Add createBaseTransactionPlanner function#648
Conversation
🦋 Changeset detectedLatest commit: 40ec271 The changes in this PR will be included in the next version bump. This PR includes changesets to release 41 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
BundleMonFiles updated (4)
Unchanged files (126)
Total files change +454B +0.13% Final result: ✅ View report in BundleMon website ➡️ |
|
Documentation Preview: https://kit-docs-jh1ordoeo-anza-tech.vercel.app |
2217537 to
b3aaf4d
Compare
666d041 to
c97b76d
Compare
b3aaf4d to
c4e9a22
Compare
c97b76d to
31763e7
Compare
5320c6b to
02639b5
Compare
8e37fcc to
9679edb
Compare
847e786 to
7e5441a
Compare
9c56c4d to
4ed14ff
Compare
@steveluscher In case you missed that. |
1814f01 to
3e55418
Compare
9679edb to
b6a8886
Compare
3e55418 to
3d5e8be
Compare
b6a8886 to
1069be1
Compare
6dab98f to
e399949
Compare
1069be1 to
c092699
Compare
74d0248 to
533a408
Compare
Merge activity
|
533a408 to
40ec271
Compare
|
Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up. |



This PR provides a base implementation for the
TransactionPlannertype that tries to pack transactions in the most optimal way possible.This function accepts a
createTransactionMessagecallback that dictates how each new transaction message should be created before filling them with instructions. Here's an example:An optional
onTransactionMessageUpdatedcallback can also be provided and will be executed any time something changes in a transaction message being planned (for instance, when new instructions are being added to the message). This allows users to hook logic into the planning process.Note, the function is called
createBaseTransactionPlannerbecause I was initially planning on having a high-levelcreateDefaultTransactionPlannerthat is all battery included but I'm thinking this interface is already good enough to be used as a high-level. So maybe I should rename this tocreateTransactionPlanner? Wdyt?