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

refactor: Move TxDecoder into its own middleware #10612

Merged
merged 59 commits into from
Dec 6, 2021
Merged
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
aa99314
WIP: middleware refactor
atheeshp Nov 12, 2021
58c09f2
refactor `tx.Request`
atheeshp Nov 15, 2021
fd5f84a
Merge branch 'master' of github.com:cosmos/cosmos-sdk into ap/mw-refa…
atheeshp Nov 15, 2021
f766aef
Add MsgResponses any in sdk.Result
amaury1093 Nov 15, 2021
c5e516b
add helper functions in abci
atheeshp Nov 17, 2021
43cda59
Merge branch 'master' of github.com:cosmos/cosmos-sdk into ap/mw-refa…
atheeshp Nov 18, 2021
306c1fc
refactor tips
atheeshp Nov 18, 2021
f1afaab
Merge branch 'master' of github.com:cosmos/cosmos-sdk into ap/mw-refa…
atheeshp Nov 22, 2021
caf2e39
review changes
atheeshp Nov 23, 2021
26285bf
Merge branch 'master' of github.com:cosmos/cosmos-sdk into ap/mw-refa…
atheeshp Nov 23, 2021
81f013a
Fix mock tests
amaury1093 Nov 25, 2021
b2dbf10
Update baseapp/abci.go
amaury1093 Nov 25, 2021
d685963
Update baseapp/abci.go
amaury1093 Nov 25, 2021
043c3d4
Update types/tx/middleware.go
amaury1093 Nov 25, 2021
23ef037
Update types/tx/middleware.go
amaury1093 Nov 25, 2021
fded41a
tx.Response to abci conversion
amaury1093 Nov 25, 2021
dfeac86
refactor makeABCIData
amaury1093 Nov 25, 2021
7d3f868
Merge branch 'master' of ssh://github.com/cosmos/cosmos-sdk into ap/m…
amaury1093 Nov 25, 2021
b75795e
Add comments
amaury1093 Nov 25, 2021
fe7dbbc
Fix build
amaury1093 Nov 25, 2021
51861fb
fix build error
atheeshp Nov 26, 2021
9783965
fix tests
atheeshp Nov 26, 2021
ed08f40
Merge branch 'master' of github.com:cosmos/cosmos-sdk into ap/mw-refa…
atheeshp Nov 26, 2021
4c2320a
fix test
atheeshp Nov 26, 2021
cde4010
fix tests
atheeshp Nov 29, 2021
d5b43d3
Merge branch 'master' of github.com:cosmos/cosmos-sdk into ap/mw-refa…
atheeshp Nov 29, 2021
02e3f93
Fix TestSimulateTx
amaury1093 Nov 29, 2021
e795b2e
fix tests
atheeshp Nov 30, 2021
24d9a04
Merge branch 'master' of github.com:cosmos/cosmos-sdk into ap/mw-refa…
atheeshp Nov 30, 2021
c6c387c
fix test
atheeshp Nov 30, 2021
141d214
Fix build
amaury1093 Nov 30, 2021
2300c28
Merge branch 'ap/mw-refactor' of ssh://github.com/cosmos/cosmos-sdk i…
amaury1093 Nov 30, 2021
d89eee7
Merge branch 'master' of ssh://github.com/cosmos/cosmos-sdk into ap/m…
amaury1093 Nov 30, 2021
fa5df34
Simplify code
amaury1093 Nov 30, 2021
1608e18
fix test build
amaury1093 Nov 30, 2021
4e9071f
Use repeated bytes in txMsgData
amaury1093 Nov 30, 2021
310fee5
Fix grpc-gateway test
amaury1093 Nov 30, 2021
f7e12fb
Merge branch 'master' of ssh://github.com/cosmos/cosmos-sdk into ap/m…
amaury1093 Nov 30, 2021
39bee75
Make proto-gen
amaury1093 Nov 30, 2021
39f0bcc
Automagically register MsgResponse
amaury1093 Nov 30, 2021
72b0c30
review changes
atheeshp Dec 1, 2021
df75f83
Merge branch 'master' into ap/mw-refactor
atheeshp Dec 1, 2021
edffa1b
Merge branch 'ap/mw-refactor' of ssh://github.com/cosmos/cosmos-sdk i…
amaury1093 Dec 1, 2021
473ef1f
Merge branch 'master' of ssh://github.com/cosmos/cosmos-sdk into ap/m…
amaury1093 Dec 1, 2021
cf51edf
Use froydi's trick
amaury1093 Dec 1, 2021
5c93517
Use Any in TxMsgData
amaury1093 Dec 1, 2021
19b7189
Finally remove API breaking change
amaury1093 Dec 1, 2021
ceb97a4
Revert unnecessary stuff
amaury1093 Dec 1, 2021
963e5b6
refactor: Move TxDecoder into its own middleware
amaury1093 Nov 25, 2021
51cbf76
Add test for txDecoderMiddleware
amaury1093 Nov 25, 2021
c63122e
Fix some baseapp tests
amaury1093 Nov 25, 2021
2deca27
Fix some more tests
amaury1093 Dec 1, 2021
00f3681
Fix mock tests
amaury1093 Dec 1, 2021
77ca28a
Fix middleware tests
amaury1093 Dec 1, 2021
66085ab
Add cl
amaury1093 Dec 1, 2021
d6b0884
Merge branch 'master' of ssh://github.com/cosmos/cosmos-sdk into am/1…
amaury1093 Dec 2, 2021
d6c42d7
Fix tests
amaury1093 Dec 2, 2021
1c6dab1
Update types/tx/middleware.go
amaury1093 Dec 2, 2021
8fa3113
Merge branch 'master' into am/10610-txdecoder-middleware
amaury1093 Dec 6, 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
Prev Previous commit
Next Next commit
Update types/tx/middleware.go
  • Loading branch information
amaury1093 committed Nov 25, 2021
commit 23ef03724e065855a249ec2fdd35597d9d957350
5 changes: 4 additions & 1 deletion types/tx/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ type ResponseSimulateTx struct {
type Response struct {
GasWanted uint64
GasUsed uint64
MsgResponses []*codectypes.Any // Represents each Msg service handler's response type. Will get proto-serialized into the `Data` field in ABCI, see note #2
// MsgResponses is an array containing each Msg service handler's response
// type, packed in an Any. This will get proto-serialized into the `Data` field
// in the ABCI Check/DeliverTx responses.
MsgResponses []*codectypes.Any
Log string
Events []abci.Event
}
Expand Down