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 Tips middleware #10208

Merged
merged 54 commits into from
Nov 16, 2021
Merged
Changes from 2 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
6ec5722
Add IsTipper
amaury1093 Oct 7, 2021
6eb5a10
Use addr in signer data
amaury1093 Oct 7, 2021
72a56cb
Always populate addr in signer data
amaury1093 Oct 7, 2021
c0bd505
fi error messages
amaury1093 Oct 7, 2021
551f5f4
make proto gen
amaury1093 Oct 12, 2021
49987e7
Merge branch 'master' into am/0fee0gas
amaury1093 Oct 12, 2021
76b8dff
fix build
amaury1093 Oct 12, 2021
e285150
Add fields to sign docs and sign mode handler
amaury1093 Oct 12, 2021
3f04021
Remove getSequence
amaury1093 Oct 12, 2021
031b987
Merge branch 'am/0fee0gas' of ssh://github.com/cosmos/cosmos-sdk into…
amaury1093 Oct 12, 2021
a33a5cd
Update x/auth/migrations/legacytx/stdtx.go
amaury1093 Oct 12, 2021
a5d11b3
Update x/auth/migrations/legacytx/stdsign.go
amaury1093 Oct 12, 2021
894a7ce
Use addressCodec
amaury1093 Oct 12, 2021
6c66bfb
NewTxConfig with addrCdc
amaury1093 Oct 12, 2021
debee8d
REmove simapp.NewBech32
amaury1093 Oct 12, 2021
e3a7c35
Move bech32 stuff to x/auth/address
amaury1093 Oct 13, 2021
dfd1d82
Add changelog
amaury1093 Oct 13, 2021
7092ee8
Move address.Codec to x/auth
amaury1093 Oct 13, 2021
bac6349
Fix test
amaury1093 Oct 13, 2021
b5a18ea
Merge branch 'am/0fee0gas' of ssh://github.com/cosmos/cosmos-sdk into…
amaury1093 Oct 13, 2021
80b0637
Merge branch 'am/amino-tipper' of ssh://github.com/cosmos/cosmos-sdk …
amaury1093 Oct 13, 2021
ab495df
Add tests for tipper and feepayer
amaury1093 Oct 13, 2021
892bff4
Rename tests
amaury1093 Oct 13, 2021
2dd883c
Add more tests
amaury1093 Oct 13, 2021
07ef3e2
Empty tip test
amaury1093 Oct 13, 2021
b7a1fc1
feat: Add Tips middleware
amaury1093 Oct 14, 2021
4a83a3f
Add changelog
amaury1093 Oct 14, 2021
34a4a89
Merge branch 'master' of ssh://github.com/cosmos/cosmos-sdk into am/a…
amaury1093 Oct 18, 2021
d5feed5
Revert unwanted files
amaury1093 Oct 18, 2021
0071f3c
Less line diff
amaury1093 Oct 18, 2021
df19e58
fix test
amaury1093 Oct 18, 2021
6c069d5
fix another test
amaury1093 Oct 18, 2021
7216370
Fix test
amaury1093 Oct 18, 2021
8f1367d
Merge branch 'am/amino-tipper' of ssh://github.com/cosmos/cosmos-sdk …
amaury1093 Oct 18, 2021
0fa4bc0
Update x/auth/migrations/legacytx/stdtx_test.go
amaury1093 Oct 19, 2021
6058b7d
Fix tests
amaury1093 Oct 19, 2021
a606970
Add more gas
amaury1093 Oct 19, 2021
e3f8d91
Merge branch 'am/amino-tipper' of ssh://github.com/cosmos/cosmos-sdk …
amaury1093 Oct 19, 2021
7602d4d
Address reviews
amaury1093 Oct 22, 2021
6b9abab
Merge branch 'master' into am/amino-tipper
amaury1093 Oct 22, 2021
bd6d8eb
Merge branch 'am/amino-tipper' of ssh://github.com/cosmos/cosmos-sdk …
amaury1093 Oct 22, 2021
f96b80c
Merge branch 'master' of ssh://github.com/cosmos/cosmos-sdk into am/9…
amaury1093 Oct 22, 2021
b5f81df
Merge branch 'master' of ssh://github.com/cosmos/cosmos-sdk into am/9…
amaury1093 Oct 26, 2021
a424a34
Remove sign mode middleware
amaury1093 Oct 26, 2021
c5bfc3b
Fix direct_aux sign mode handler
amaury1093 Oct 26, 2021
64123ed
Fix test
amaury1093 Oct 26, 2021
6eeeb9d
Merge branch 'master' into am/9912-tips-middleware
amaury1093 Oct 26, 2021
e9d0d28
Merge branch 'master' of ssh://github.com/cosmos/cosmos-sdk into am/9…
amaury1093 Nov 16, 2021
d6b5970
Fix build
amaury1093 Nov 16, 2021
e933fc4
Fix tests using AuxTxBuilder
amaury1093 Nov 16, 2021
28b0bba
Less line diff
amaury1093 Nov 16, 2021
a771813
Tweak tests
amaury1093 Nov 16, 2021
02a5fe0
Rename middleware
amaury1093 Nov 16, 2021
cd9404d
Merge branch 'master' into am/9912-tips-middleware
amaury1093 Nov 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion x/auth/migrations/legacytx/stdtx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func TestStdSignBytes(t *testing.T) {
fmt.Sprintf(`{"account_number":"3","chain_id":"1234","fee":{"amount":[{"amount":"150","denom":"atom"}],"gas":"100000","payer":"%s"},"memo":"memo","msgs":[["%s"]],"sequence":"6"}`, addr, addr),
},
{
"no fee, with tip (omitempty)",
"no fee, with tip",
args{"1234", 3, 6, 0, StdFee{}, []sdk.Msg{testdata.NewTestMsg(addr)}, "memo", defaultTip},
fmt.Sprintf(`{"account_number":"3","chain_id":"1234","fee":{"amount":[],"gas":"0"},"memo":"memo","msgs":[["%s"]],"sequence":"6","tip":{"amount":[{"amount":"150","denom":"tiptoken"}],"tipper":"%s"}}`, addr, addr),
},
Expand Down