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

Display (unsigned) transaction's pretty print on the terminal before signing #3137

Merged
merged 5 commits into from
Jul 29, 2020

Conversation

tjanez
Copy link
Member

@tjanez tjanez commented Jul 28, 2020

Closes #3134.

@tjanez tjanez force-pushed the tjanez/cli-txn-sign-confirm branch 2 times, most recently from a00e174 to 0fb5edd Compare July 29, 2020 12:08
@tjanez tjanez added c:cli Category: command line interface c:staking Category: staking labels Jul 29, 2020
@tjanez tjanez marked this pull request as ready for review July 29, 2020 12:09
@codecov
Copy link

codecov bot commented Jul 29, 2020

Codecov Report

Merging #3137 into master will increase coverage by 0.20%.
The diff coverage is 67.92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3137      +/-   ##
==========================================
+ Coverage   68.76%   68.97%   +0.20%     
==========================================
  Files         376      376              
  Lines       37079    37115      +36     
==========================================
+ Hits        25498    25600     +102     
+ Misses       8317     8259      -58     
+ Partials     3264     3256       -8     
Impacted Files Coverage Δ
go/oasis-node/cmd/common/common.go 52.27% <0.00%> (-5.72%) ⬇️
go/oasis-node/cmd/common/consensus/consensus.go 40.90% <42.85%> (-0.56%) ⬇️
go/oasis-node/cmd/common/flags/flags.go 94.73% <100.00%> (+0.61%) ⬆️
go/oasis-node/cmd/keymanager/keymanager.go 50.96% <100.00%> (+0.13%) ⬆️
go/oasis-node/cmd/registry/entity/entity.go 45.71% <100.00%> (+0.22%) ⬆️
go/oasis-node/cmd/registry/runtime/runtime.go 59.82% <100.00%> (+0.11%) ⬆️
go/oasis-node/cmd/stake/account.go 60.00% <100.00%> (+2.10%) ⬆️
go/worker/common/p2p/error/error.go 71.42% <0.00%> (-28.58%) ⬇️
go/consensus/tendermint/api/api.go 80.64% <0.00%> (-8.61%) ⬇️
go/consensus/tendermint/epochtime/epochtime.go 78.78% <0.00%> (-7.58%) ⬇️
... and 49 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0a8e82c...c3c78db. Read the comment docs.

This will allow passing additional information to SignAndSaveTx().
Adapt 'oasis-node stake account gen_*' CLI commands to display stake
amount in pretty printed transactions in token values.
If file signer is used, ask for confirmation before signing a
transaction, unless --assume_yes flag is set.

go/oasis-node/cmd/{keymanager,registry/entity,registry/runtime,stake}:
Add support for --assume_yes flag.

go/oasis-test-runner/{oasis/cli,scenario/e2e}: Set --assume_yes flag for
all commands that sign transactions.
@tjanez tjanez force-pushed the tjanez/cli-txn-sign-confirm branch from 0fb5edd to c3c78db Compare July 29, 2020 12:44
@tjanez tjanez merged commit 8162e5f into master Jul 29, 2020
@tjanez tjanez deleted the tjanez/cli-txn-sign-confirm branch July 29, 2020 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:cli Category: command line interface c:staking Category: staking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display (unsigned) transaction's pretty print on the terminal before signing
2 participants