-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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 cli for tips transactions #10311
Merged
Merged
Changes from 1 commit
Commits
Show all changes
230 commits
Select commit
Hold shift click to select a range
48da6e2
Replace abci calls with txHandler
amaury1093 3e4d7b6
still WIP
amaury1093 096d103
Use inner
amaury1093 11bd37f
runTx middleware
amaury1093 c666dc9
Fix some tests
amaury1093 664f8d7
Simplify runMsgs
amaury1093 25a643e
Merge branch 'master' of ssh://github.com/cosmos/cosmos-sdk into am/m…
amaury1093 ac74030
Fix ante event emitting
amaury1093 0b8f940
Use context.Context
amaury1093 080c6af
Small refactor
amaury1093 c3911f8
Fix antehandler events
amaury1093 6582496
Add Simulate
amaury1093 a900541
Fix gasInfo
amaury1093 6b1f9d7
Add gas tx middleware
amaury1093 bbf2872
Fix baseapp_test
amaury1093 dd32108
Fix tests
amaury1093 60d43dc
Fix grpc SimulateTx test
amaury1093 4451a4b
Fix slashing test
amaury1093 7f071da
Merge branch 'master' into am/middleware
amaury1093 c5c0247
Fix mock tests
amaury1093 67a2cd5
Fix antehandlers test
amaury1093 788d7a0
Merge branch 'master' into am/middleware
alexanderbez 8fee5b9
Address reviews
amaury1093 43c4de0
Merge branch 'am/middleware' of ssh://github.com/cosmos/cosmos-sdk in…
amaury1093 00fce8c
More reviews
amaury1093 e5a076f
Fix tests
amaury1093 dd70e91
Merge branch 'master' into am/middleware
alexanderbez 61d1013
Switch ComposeMiddlewares order
amaury1093 74167e9
Fix test
amaury1093 0bb9c48
Merge branch 'master' into am/middleware
amaury1093 bcba471
migrate RejectExtensionOptions
amaury1093 8d763ba
migrate mempool to middleware
atheeshp 2595b27
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 16caed2
remove WithContext
atheeshp 967b3a3
migrate `ValidateBasicDecorator` to middleware
atheeshp 011b793
migrate `TxTimeoutHeightDecorator` to middleware
atheeshp 5b15fd8
migrate `ValidateMemoDecorator` to middleware
atheeshp 6d1f27c
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp ef64904
migrate `ConsumeGasForTxSize` to middleware
atheeshp 3d4ee4a
migrate `DeductFee` ante to middleware
atheeshp ba7379d
migrate signature ante to middlewares
atheeshp 49f6539
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp a92ba52
fix failing tests
atheeshp 7f1e831
fix tests
atheeshp a04988d
fix tests
atheeshp 39dab39
migrate ante tests
atheeshp 57a0796
migrate tests
atheeshp 4850b04
migrate tests
atheeshp a77202a
fix tests
atheeshp acb784f
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 8ff193a
refactor
atheeshp 4864fd2
fix tests
atheeshp 748501e
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 404be63
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp ae35f45
fix lint
atheeshp 83a1174
split baseapp_test.go
atheeshp e77f9b1
remove unused
atheeshp 8a25fa7
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp ce31800
update docs
atheeshp d47dd19
fix error
atheeshp b0409e7
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 06ca566
update docs
atheeshp f6b0d66
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 0adee13
reivew suggestions
atheeshp 6aee9bb
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 99e3155
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 9212400
fix tests
atheeshp 0516575
remove alias
atheeshp bd3a861
fix tests
atheeshp 8d72020
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 4066eef
fix tests
atheeshp 8fc3c06
fix tests
atheeshp 785a697
refactor
atheeshp adec5ff
refactor
atheeshp cf680e2
fix tests
atheeshp c01b79f
Merge branch 'atheesh/refactor-mw' of github.com:cosmos/cosmos-sdk in…
atheeshp 13b9988
refactor
atheeshp 2277aa9
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp d51d294
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp daf658d
fix test
atheeshp ff12cc3
fix tests
atheeshp 0482ae0
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp e289188
fix msg service router
atheeshp 9d5aead
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 9737db3
refactor msg service router tests
atheeshp f4a3040
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 0995d4a
fix rosetta
atheeshp f6c2e53
review changes
atheeshp 24832b4
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 9b2c116
review changes
atheeshp 0cf38e1
Use NewDefaultTxHandler where possible
amaury1093 7740e97
review changes
atheeshp 9c554cf
Merge branch 'am/ah-to-mw-2' of github.com:cosmos/cosmos-sdk into ath…
atheeshp 2a55b8b
review changes
atheeshp a3bf0b3
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 1ba2327
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp e5a30a5
refactor
atheeshp 174a345
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 2ac74d5
merge middleware_test.go & baseapp_test.go
atheeshp 31633eb
refactor some tests
amaury1093 04c4e6c
Refactor some more tests
amaury1093 d9613b0
address review changes
atheeshp 8fd1631
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 3380782
Merge branch 'atheesh/ah-to-mw' of github.com:cosmos/cosmos-sdk into …
atheeshp bf037a8
revert baseapp_test
atheeshp c519525
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 736694b
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 03f27a9
address review changes
atheeshp cebf66f
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 0027087
feat: Add Tips middleware
amaury1093 ff84618
Add test file
amaury1093 bb5e25f
add SetTip
amaury1093 aaa956d
Add test
amaury1093 2f3e7d5
Add sign modes test
amaury1093 129408e
Merge branch 'master' into atheesh/ah-to-mw
alexanderbez f5e1104
address review changes
atheeshp 9e51928
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ah…
atheeshp 8039aef
Merge branch 'atheesh/ah-to-mw' of github.com:cosmos/cosmos-sdk into …
atheeshp 1396896
Fix SignMode middleware
amaury1093 94fe995
Make tests pass
amaury1093 b4bb5ae
fix test
amaury1093 d3833f0
Merge branch 'atheesh/ah-to-mw' of ssh://github.com/cosmos/cosmos-sdk…
amaury1093 1a5c73e
Fix setup test
amaury1093 d1ea4c0
Add changelog
amaury1093 6019244
Rename to tips
amaury1093 5e95c7e
Merge branch 'master' of ssh://github.com/cosmos/cosmos-sdk into am/9…
amaury1093 118c0e6
Factor out reusable function
amaury1093 1be0a53
Merge branch 'master' of ssh://github.com/cosmos/cosmos-sdk into am/9…
amaury1093 15023f4
Add SIGN_MODE_AMINO_AUX
amaury1093 2058b0c
Add comment
amaury1093 7734e77
WIP: add tips cli
atheeshp 43f344d
revert tx.go
atheeshp 8860f53
add cli command `tips-to-fee`
atheeshp 3680800
add cli tests
atheeshp 6ec5722
Add IsTipper
amaury1093 6eb5a10
Use addr in signer data
amaury1093 72a56cb
Always populate addr in signer data
amaury1093 c0bd505
fi error messages
amaury1093 551f5f4
make proto gen
amaury1093 49987e7
Merge branch 'master' into am/0fee0gas
amaury1093 76b8dff
fix build
amaury1093 e285150
Add fields to sign docs and sign mode handler
amaury1093 910f2da
fix tests
atheeshp 8bff529
fix tests
atheeshp 3f04021
Remove getSequence
amaury1093 031b987
Merge branch 'am/0fee0gas' of ssh://github.com/cosmos/cosmos-sdk into…
amaury1093 a33a5cd
Update x/auth/migrations/legacytx/stdtx.go
amaury1093 a5d11b3
Update x/auth/migrations/legacytx/stdsign.go
amaury1093 894a7ce
Use addressCodec
amaury1093 6c66bfb
NewTxConfig with addrCdc
amaury1093 debee8d
REmove simapp.NewBech32
amaury1093 674a8cd
revert sign
atheeshp e3a7c35
Move bech32 stuff to x/auth/address
amaury1093 dfd1d82
Add changelog
amaury1093 7092ee8
Move address.Codec to x/auth
amaury1093 bac6349
Fix test
amaury1093 b5a18ea
Merge branch 'am/0fee0gas' of ssh://github.com/cosmos/cosmos-sdk into…
amaury1093 80b0637
Merge branch 'am/amino-tipper' of ssh://github.com/cosmos/cosmos-sdk …
amaury1093 ab495df
Add tests for tipper and feepayer
amaury1093 892bff4
Rename tests
amaury1093 2dd883c
Add more tests
amaury1093 07ef3e2
Empty tip test
amaury1093 b7a1fc1
feat: Add Tips middleware
amaury1093 4a83a3f
Add changelog
amaury1093 2e8254c
fixed conflicts
atheeshp 34a4a89
Merge branch 'master' of ssh://github.com/cosmos/cosmos-sdk into am/a…
amaury1093 d5feed5
Revert unwanted files
amaury1093 0071f3c
Less line diff
amaury1093 908db03
fix errors
atheeshp df19e58
fix test
amaury1093 2e7e75b
fix tests
atheeshp 6c069d5
fix another test
amaury1093 3a37cfe
fix tests
atheeshp 7216370
Fix test
amaury1093 8f1367d
Merge branch 'am/amino-tipper' of ssh://github.com/cosmos/cosmos-sdk …
amaury1093 cb749c2
removed logs
atheeshp 6a59fa4
Merge branch 'am/9912-tips-middleware' of github.com:cosmos/cosmos-sd…
atheeshp 0fa4bc0
Update x/auth/migrations/legacytx/stdtx_test.go
amaury1093 6058b7d
Fix tests
amaury1093 a606970
Add more gas
amaury1093 e3f8d91
Merge branch 'am/amino-tipper' of ssh://github.com/cosmos/cosmos-sdk …
amaury1093 8e181c4
Merge branch 'am/9912-tips-middleware' of github.com:cosmos/cosmos-sd…
atheeshp 9c0c498
fix test
atheeshp 6722477
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ti…
atheeshp dbdeaa3
fix conflicts
atheeshp 3468648
remove unecessary imports
atheeshp c2326db
update cli test
atheeshp e349121
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ti…
atheeshp cb2a697
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ti…
atheeshp be83c1c
add `makeAuxSignerData`
atheeshp f41b7bb
update settip
atheeshp 21fc0de
update tips.go cli
atheeshp eaf284c
comment `checkMultipleSigners`
atheeshp b2c0605
fix tests
atheeshp 790345c
add missing norace build tag
atheeshp 5e9753e
Fix multipler signers
amaury1093 99ae823
review changes
atheeshp 3d99381
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ti…
atheeshp b07dcb3
review changes
atheeshp a8c2f8f
review changes
atheeshp 71355d1
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ti…
atheeshp dfe8ebf
add tipper flag
atheeshp 96020a2
review changes
atheeshp 0ca4c17
add back `checkMultipleSigners`
atheeshp 87ff1d5
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ti…
atheeshp 7200552
add more tests
atheeshp 7079b08
fix tests
atheeshp 2627bb2
fix tests
atheeshp 05d1be1
remove console
atheeshp c60adc5
fix test
atheeshp 5557922
fix tests
atheeshp 4aabde0
fix test
atheeshp 9a76456
Update x/auth/client/testutil/suite.go
atheeshp 903f498
fix test
atheeshp 091835a
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ti…
atheeshp 5c05d4d
Merge branch 'master' into atheesh/tips-cli
amaury1093 c217410
fix test
atheeshp 9e6481a
Merge branch 'atheesh/tips-cli' of github.com:cosmos/cosmos-sdk into …
atheeshp c6dad76
fix tests
atheeshp 4d611a6
Merge branch 'atheesh/tips-cli' of github.com:cosmos/cosmos-sdk into …
atheeshp 66e8e93
fix test
atheeshp 8d6385e
fix tests
atheeshp aa9744d
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ti…
atheeshp 0197e81
Merge branch 'atheesh/tips-cli' of github.com:cosmos/cosmos-sdk into …
atheeshp 28e6deb
fix tests
atheeshp ecaf012
review changes
atheeshp 7747f53
add changelog
atheeshp 771870d
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/ti…
atheeshp 39c20d4
Update CHANGELOG.md
atheeshp 9b3faa9
Merge branch 'master' into atheesh/tips-cli
amaury1093 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix tests
- Loading branch information
commit 910f2dafbcbca5e91c8fc37c7525c1105930b478
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to
checkMultipleSigners
after adding the signatures withSetSignatures
below on line 270? Or is this constraint being enforced elsewhere/is unnecessary?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkMultipleSigners
was added to avoid using the CLI for signing multi-signers Msgs with DIRECT, it's a bad UX: you need a 1st step where all signers choose their SIGN_MODE and put inside AuthInfo, gather all that, and then a 2nd step where all signers sign over that AuthInfo.So you're probably right, we probably should keep
checkMultipleSigners
. However it must be modified, because with tips, we want to allow the fee payer to use DIRECT in a multi-signer tx (the other signer being the tipper).Maybe we can add a check that with multiple signers, only the last signer can be DIRECT. That way we still avoid the multi-DIRECT bad UX, but allow tipping.