message

package
v0.0.0-...-d298eb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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"

	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"
)

Variables

This section is empty.

Functions

func Box

func Box(box packd.Walker, opts *Options, g *genny.Generator) error

func NewGenerator

func NewGenerator(replacer placeholder.Replacer, opts *Options) (*genny.Generator, error)

NewGenerator returns the generator to scaffold a empty message in a module.

Types

type Options

type Options struct {
	AppName      string
	AppPath      string
	ModuleName   string
	ModulePath   string
	MsgName      multiformatname.Name
	MsgSigner    multiformatname.Name
	MsgDesc      string
	Fields       field.Fields
	ResFields    field.Fields
	NoSimulation bool
}

Options ...

func (*Options) Validate

func (opts *Options) Validate() error

Validate that options are usable.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL