typed

package
v29.0.0-...-0018c38 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Placeholder  = "// this line is used by starport scaffolding # 1"
	Placeholder3 = "// this line is used by starport scaffolding # 3"
	Placeholder4 = "<!-- this line is used by starport scaffolding # 4 -->"

	// Genesis
	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"
	PlaceholderSimappOperationMsg = "// this line is used by starport scaffolding # simapp/module/OpMsg"

	// Placeholders AutoCLI
	PlaceholderAutoCLIQuery = "// this line is used by ignite scaffolding # autocli/query"
	PlaceholderAutoCLITx    = "// this line is used by ignite scaffolding # autocli/tx"

	// Placeholders Collections
	PlaceholderCollectionType        = "// this line is used by starport scaffolding # collection/type"
	PlaceholderCollectionInstantiate = "// this line is used by starport scaffolding # collection/instantiate"
)
View Source
const (
	// GoGoProtoImport is the import path for the gogoproto package.
	GoGoProtoImport = "gogoproto/gogo.proto"
	// MsgSignerOption correspond to the proto annotation for defining a message signer.
	MsgSignerOption = "(cosmos.msg.v1.signer)"
)
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 Box

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

func ModuleSimulationMsgModify

func ModuleSimulationMsgModify(
	replacer placeholder.Replacer,
	content,
	moduleName string,
	typeName multiformatname.Name,
	msgs ...string,
) string

Types

type Options

type Options struct {
	AppName      string
	AppPath      string
	ProtoDir     string
	ModuleName   string
	ModulePath   string
	TypeName     multiformatname.Name
	MsgSigner    multiformatname.Name
	Fields       field.Fields
	Indexes      field.Fields
	NoMessage    bool
	NoSimulation bool
	IsIBC        bool
}

Options ...

func (*Options) ProtoFile

func (opts *Options) ProtoFile(fname string) string

ProtoFile returns the path to the proto folder within the generated app.

func (*Options) ProtoTypeImport

func (opts *Options) ProtoTypeImport() *proto.Import

ProtoTypeImport Return the protobuf import statement for this type.

func (*Options) Validate

func (opts *Options) Validate() error

Validate that options are usable.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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