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: Add deploy subcommand #397

Closed
wants to merge 19 commits into from

Conversation

TheWaWaR
Copy link
Collaborator

@TheWaWaR TheWaWaR commented May 29, 2021

Features:

  • sighash/multisig lock/unlock
  • type id
  • dep group
  • migration
  • outpoint/file as data source
  • offline sign

A brief usage

#### Init config
ckb-cli deploy init-config --deployment-config deployment.toml

# >>>> Then edit deployment.toml file

#### Generate intermedium information
ckb-cli deploy gen-txs \
    --deployment-config ./deployment.toml \
    --migration-dir ./migrations \
    --from-address ckt1qyqvsv5240xeh85wvnau2eky8pwrhh4jr8ts8vyj37 \
    --sign-now \
    --info-file info.json

#### sign with key
ckb-cli deploy sign-txs \
    --from-account ckt1qyqvsv5240xeh85wvnau2eky8pwrhh4jr8ts8vyj37 \
    --add-signatures \
    --info-file info.json 

#### sign with another key (support multisig and offline sign)
ckb-cli deploy sign-txs \
    --from-account ckt1qyqyqnuss20vpevzrt46n0886h5yrn5l07jsgz7kfp \
    --add-signatures \
    --info-file info.json 

#### Explain the deploy action
ckb-cli deploy explain-txs --info-file info.json
# ==== Cell transaction ====
# [cell] Changed   name:      my_cell, old-capacity: 43026.0, new-capacity: 43006.0
# [cell] Unchanged name: genesis_cell, old-capacity:   202.0, new-capacity:   202.0
# > old total capacity: 43228.0 (CKB) (removed items not included)
# > new total capacity: 43208.0 (CKB)
# ==== DepGroup transaction ====
# [dep_group] Changed   name: my_dep_group, old-capacity:   137.0, new-capacity:   137.0
# > old total capacity: 137.0 (CKB) (removed items not included)
# > new total capacity: 137.0 (CKB)

#### Set signatures to witnesses and send to CKB node
ckb-cli deploy apply-txs \
    --migration-dir ./migrations \
    --info-file info.json

@TheWaWaR TheWaWaR requested review from a team and xxuejie May 29, 2021 16:12
@TheWaWaR TheWaWaR changed the title [HOLD] feat: Add deploy subcommand feat: Add deploy subcommand May 30, 2021
@TheWaWaR TheWaWaR force-pushed the add-deploy-subcommand branch from 298be38 to 2ce948a Compare June 1, 2021 06:51
@TheWaWaR TheWaWaR force-pushed the add-deploy-subcommand branch from 6faa623 to de8e0ea Compare July 14, 2021 13:23
@TheWaWaR TheWaWaR changed the base branch from develop to release-v0.43.0 August 5, 2021 06:45
@TheWaWaR TheWaWaR force-pushed the add-deploy-subcommand branch 3 times, most recently from 2f56ea4 to c564611 Compare October 21, 2021 08:04
@TheWaWaR TheWaWaR changed the base branch from release-v0.43.0 to develop October 21, 2021 08:06
@TheWaWaR TheWaWaR force-pushed the add-deploy-subcommand branch from c564611 to d328503 Compare October 21, 2021 08:09
@TheWaWaR TheWaWaR force-pushed the add-deploy-subcommand branch from 160de3e to b8276e0 Compare January 6, 2022 10:19
@TheWaWaR TheWaWaR force-pushed the add-deploy-subcommand branch from d0f95d7 to 729dfed Compare January 26, 2022 11:01
@TheWaWaR
Copy link
Collaborator Author

TheWaWaR commented Nov 7, 2022

Replaced by new submitted PR: #515

@TheWaWaR TheWaWaR closed this Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant