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

Implement Stargate message handling/ Queries #397

Closed
alpe opened this issue Jan 29, 2021 · 1 comment
Closed

Implement Stargate message handling/ Queries #397

alpe opened this issue Jan 29, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request stargate
Milestone

Comments

@alpe
Copy link
Contributor

alpe commented Jan 29, 2021

// StargateMsg is encoded the same way as a protobof [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto).
// This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md)
type StargateMsg struct {
	TypeURL string `json:"type_url"`
	Value   []byte `json:"value"`
}

https://github.com/CosmWasm/wasmvm/blob/0.14-dev/types/msg.go#L154

This can be tested

  • Test CosmosMsg::Stargate handling (via reflect contract)
  • Test QueryRequest::Stargate handling (via reflect contract)
@alpe alpe added enhancement New feature or request stargate labels Jan 29, 2021
@alpe alpe added this to the v0.16.0 milestone Jan 29, 2021
@alpe
Copy link
Contributor Author

alpe commented Jan 29, 2021

Same as #388

@alpe alpe closed this as completed Jan 29, 2021
@alpe alpe added the duplicate This issue or pull request already exists label Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request stargate
Projects
None yet
Development

No branches or pull requests

1 participant