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

Feat/default tx builder step1 #53

Closed

Conversation

liuck8080
Copy link
Contributor

What does this PR do?

  1. Add default transaction builders for sighash, multisig, DAO, ACP, cheque, the default builders are all have default configurations for basic usage.
  2. Add parser for address, Bytes, Byte32, OutPoint, H160, H256, Vec, etc from string to object.
  3. Add examples about to use these default builders.

How does it tested.

  • test by the examples

Liu Chuankai added 21 commits March 3, 2023 19:23
The doa.rs is bigger, move to a directory can add submodule easily
1. add macro impl_default_builder to save code rewrite for default
simple transaction builder; 2. SUDT update transfer need more than 1
keys to update exist cell;
add example for DefaultChequeWithdrawBuilder and
DefaultChequeClaimBuilder
1. Add cheque claim examples for create cell with specified capacity and
for update cell with target cell's capacity for fee; 2. Fix the problem
if the first queried sender cell without amount will block the udt
transfer.
@liuck8080 liuck8080 requested a review from quake March 3, 2023 11:34
@liuck8080 liuck8080 force-pushed the feat/default_tx_builder_step1 branch from 6ebbe67 to 40d2702 Compare March 9, 2023 13:18
@liuck8080
Copy link
Contributor Author

This PR is too big, so i create #59 to only contain examples/send_ckb_example.rs and examples/send_ckb_multisig_example.rs, hope that will reduce the review work.

@liuck8080 liuck8080 closed this Mar 29, 2023
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.

1 participant