Documentation ¶
Index ¶
- Constants
- func Box(box packd.Walker, opts *Options, g *genny.Generator) error
- func EnsureGogoProtoImported(protoFile, importPlaceholder string) string
- func GenesisStateHighestFieldNumber(path string) (int, error)
- func ModuleSimulationMsgModify(replacer placeholder.Replacer, content, moduleName string, ...) string
- func PatchGenesisTypeImport(replacer placeholder.Replacer, content string) string
- type Options
Constants ¶
View Source
const ( Placeholder = "// this line is used by starport scaffolding # 1" Placeholder2 = "// this line is used by starport scaffolding # 2" Placeholder3 = "// this line is used by starport scaffolding # 3" Placeholder4 = "<!-- this line is used by starport scaffolding # 4 -->" PlaceholderProtoTxImport = "// this line is used by starport scaffolding # proto/tx/import" PlaceholderProtoTxRPC = "// this line is used by starport scaffolding # proto/tx/rpc" PlaceholderProtoTxMessage = "// this line is used by starport scaffolding # proto/tx/message" PlaceholderHandlerMsgServer = "// this line is used by starport scaffolding # handler/msgServer" // Genesis PlaceholderGenesisProtoImport = "// this line is used by starport scaffolding # genesis/proto/import" PlaceholderGenesisProtoState = "// this line is used by starport scaffolding # genesis/proto/state" PlaceholderGenesisTypesImport = "// this line is used by starport scaffolding # genesis/types/import" PlaceholderGenesisTypesDefault = "// this line is used by starport scaffolding # genesis/types/default" PlaceholderGenesisTypesValidate = "// this line is used by starport scaffolding # genesis/types/validate" PlaceholderGenesisModuleInit = "// this line is used by starport scaffolding # genesis/module/init" PlaceholderGenesisModuleExport = "// this line is used by starport scaffolding # genesis/module/export" PlaceholderSimappConst = "// this line is used by starport scaffolding # simapp/module/const" PlaceholderSimappGenesisState = "// this line is used by starport scaffolding # simapp/module/genesisState" PlaceholderSimappOperation = "// this line is used by starport scaffolding # simapp/module/operation" )
View Source
const ProtoGenesisStateMessage = "GenesisState"
ProtoGenesisStateMessage is the name of the proto message that represents the genesis state
Variables ¶
This section is empty.
Functions ¶
func EnsureGogoProtoImported ¶
EnsureGogoProtoImported add the gogo.proto import in the proto file content in case it's not defined
func GenesisStateHighestFieldNumber ¶
GenesisStateHighestFieldNumber returns the highest field number in the genesis state proto message This allows to determine next the field numbers
func ModuleSimulationMsgModify ¶
func ModuleSimulationMsgModify( replacer placeholder.Replacer, content, moduleName string, typeName multiformatname.Name, msgs ...string, ) string
func PatchGenesisTypeImport ¶
func PatchGenesisTypeImport(replacer placeholder.Replacer, content string) string
PatchGenesisTypeImport patches types/genesis.go content from the issue: https://github.com/wahaha957/cli/issues/992
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.