smartcontract: add comments to binding config fields
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
36af361c2b
commit
8beb9f23c3
1 changed files with 16 additions and 8 deletions
|
@ -53,7 +53,15 @@ type (
|
||||||
Hash util.Uint160 `yaml:"hash,omitempty"`
|
Hash util.Uint160 `yaml:"hash,omitempty"`
|
||||||
Overrides map[string]Override `yaml:"overrides,omitempty"`
|
Overrides map[string]Override `yaml:"overrides,omitempty"`
|
||||||
CallFlags map[string]callflag.CallFlag `yaml:"callflags,omitempty"`
|
CallFlags map[string]callflag.CallFlag `yaml:"callflags,omitempty"`
|
||||||
|
// NamedTypes contains exported structured types that have some name (even
|
||||||
|
// if the original structure doesn't) and a number of internal fields. The
|
||||||
|
// map key is in the form of `namespace.name`, the value is fully-qualified
|
||||||
|
// and possibly nested description of the type structure.
|
||||||
NamedTypes map[string]ExtendedType `yaml:"namedtypes,omitempty"`
|
NamedTypes map[string]ExtendedType `yaml:"namedtypes,omitempty"`
|
||||||
|
// Types contains type structure description for various types used in
|
||||||
|
// smartcontract. The map key has one of the following forms:
|
||||||
|
// - `methodName` for method return value;
|
||||||
|
// - `mathodName.paramName` for method's parameter value.
|
||||||
Types map[string]ExtendedType `yaml:"types,omitempty"`
|
Types map[string]ExtendedType `yaml:"types,omitempty"`
|
||||||
Output io.Writer `yaml:"-"`
|
Output io.Writer `yaml:"-"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue