-
Notifications
You must be signed in to change notification settings - Fork 409
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 to GRPC message server #366
Conversation
Codecov Report
@@ Coverage Diff @@
## master #366 +/- ##
==========================================
- Coverage 57.19% 56.02% -1.18%
==========================================
Files 33 34 +1
Lines 3453 3461 +8
==========================================
- Hits 1975 1939 -36
- Misses 1327 1376 +49
+ Partials 151 146 -5
|
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.
Nice work. A few comments on my pass through it.
I do think this is an improvement, and we can shove it into 0.14 so cosmjs works the same for 0.14 and 0.15
if msg.Admin != "" { | ||
if adminAddr, err = sdk.AccAddressFromBech32(msg.Admin); err != nil { | ||
return nil, sdkerrors.Wrap(err, "admin") | ||
func hasWasmModuleAttribute(attrs []abci.EventAttribute) bool { |
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.
Why do we need this? I am a bit unsure and need to investigate the event/attribute system a bit more.
There were multiple sub-messages merging into each other before causing confusion. I will try some tests in a branch
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.
Saved follow up for #368 but not for 0.14.0 release
repeated cosmos.base.v1beta1.Coin init_funds = 6 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; | ||
} | ||
// MsgInstantiateContractResponse return instantiation result data | ||
message MsgInstantiateContractResponse { |
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.
I do like these clear types for return value
89b79e5
to
33333da
Compare
I am good to merge this. I need to investigate the how events are handled better in the baseapp and tendermint levels. |
Resolves #328
This PR introduces support for the sdk grpc server to handle messages.
It introduces a breaking change to the response data that is returned. Instead of our custom data it is marshalled protobuf now. See
tx.proto
for service and type definitionsLeft to do: