[−][src]Module cosmos_stdtx::schema
Amino schema for an sdk.Msg
.
Schema files are similar to Protobuf schemas, but use a TOML-based syntax.
Example TOML File
Below is an example TOML file defining an sdk.Msg
. This example defines
a type named oracle/MsgExchangeRatePrevote
:
[[definition]]
type_name = "oracle/MsgExchangeRatePrevote"
fields = [
{ name = "hash", type = "string", tag = "1" }, # tag will be inferred if unspecified
{ name = "denom", type = "string" },
{ name = "feeder", type = "sdk.AccAddress" },
{ name = "validator", type = "sdk.ValAddress" },
]
Structs
Definition | Definition of a particular type in the schema |
Field | Fields in an Amino-serialized |
Schema | Schema definition for an |
TypeName | Name of an Amino type |
Enums
ValueType | Types of Amino values which can be included in a |