-
Notifications
You must be signed in to change notification settings - Fork 34
Make it easier to build deployment transactions #64
Copy link
Copy link
Open
Description
I find it really useful to have the following functions when building custom deployment tools. It may worth adding similar functions to ckb-sdk:
- Deploy some data as a type-id cell: https://github.com/godwokenrises/godwoken/blob/494b1f4548506cc29a8ba3d3e45881a227a3d061/crates/tools/src/utils/deploy.rs#L58
- Add output with just enough capacity for some data: https://github.com/godwokenrises/godwoken/blob/494b1f4548506cc29a8ba3d3e45881a227a3d061/crates/utils/src/transaction_skeleton.rs#L127
- Generate type-id args/script: https://github.com/godwokenrises/godwoken/blob/494b1f4548506cc29a8ba3d3e45881a227a3d061/crates/utils/src/type_id.rs
Maybe we should also add a function that adds the next output as a type id cell with some specified lock and data, given a transaction that has at least one input.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels