* WIP on Any amino compatibility layer * Add tests & JSON * Refactor Marshal/UnmarshalAny * remove extra test * Add support for nested Any's * Add docs * Update codec/any_test.go Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
30 lines
476 B
Protocol Buffer
30 lines
476 B
Protocol Buffer
syntax = "proto3";
|
|
package cosmos_sdk.codec.v1;
|
|
|
|
import "google/protobuf/any.proto";
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/codec/testdata";
|
|
|
|
message Dog {
|
|
string size = 1;
|
|
string name = 2;
|
|
}
|
|
|
|
message Cat {
|
|
string moniker = 1;
|
|
int32 lives = 2;
|
|
}
|
|
|
|
message HasAnimal {
|
|
google.protobuf.Any animal = 1;
|
|
int64 x = 2;
|
|
}
|
|
|
|
message HasHasAnimal {
|
|
google.protobuf.Any has_animal = 1;
|
|
}
|
|
|
|
message HasHasHasAnimal {
|
|
google.protobuf.Any has_has_animal = 1;
|
|
}
|