typed

package
v29.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

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 AppendAutoCLIQueryOptions added in v29.9.0

func AppendAutoCLIQueryOptions(content string, options ...string) (string, error)

AppendAutoCLIQueryOptions appends options to the Query RpcCommandOptions in AutoCLIOptions.

func AppendAutoCLITxOptions added in v29.9.0

func AppendAutoCLITxOptions(content string, options ...string) (string, error)

AppendAutoCLITxOptions appends options to the Tx RpcCommandOptions in AutoCLIOptions.

func Box

func Box(box fs.FS, opts *Options, g *genny.Generator) error

func ModuleSimulationMsgModify

func ModuleSimulationMsgModify(
	content,
	modulePath,
	moduleName string,
	typeName, msgSigner multiformatname.Name,
	msgs ...string,
) (string, error)

Types

type Options

type Options struct {
	AppName      string
	ProtoDir     string
	ProtoVer     string
	ModuleName   string
	ModulePath   string
	TypeName     multiformatname.Name
	MsgSigner    multiformatname.Name
	Fields       field.Fields
	Index        field.Field
	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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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