ibc

package
v29.0.0-...-fb5b081 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Placeholder = "// this line is used by starport scaffolding # 1"

	// Placeholders IBC packets
	PlaceholderIBCPacketEvent         = "// this line is used by starport scaffolding # ibc/packet/event"
	PlaceholderIBCPacketModuleRecv    = "// this line is used by starport scaffolding # ibc/packet/module/recv"
	PlaceholderIBCPacketModuleAck     = "// this line is used by starport scaffolding # ibc/packet/module/ack"
	PlaceholderIBCPacketModuleTimeout = "// this line is used by starport scaffolding # ibc/packet/module/timeout"
)

Variables

This section is empty.

Functions

func NewPacket

func NewPacket(replacer placeholder.Replacer, opts *PacketOptions) (*genny.Generator, error)

NewPacket returns the generator to scaffold a packet in an IBC module.

Types

type PacketOptions

type PacketOptions struct {
	AppName    string
	AppPath    string
	ProtoDir   string
	ProtoVer   string
	ModuleName string
	ModulePath string
	PacketName multiformatname.Name
	MsgSigner  multiformatname.Name
	Fields     field.Fields
	AckFields  field.Fields
	NoMessage  bool
}

PacketOptions are options to scaffold a packet in a IBC module.

func (*PacketOptions) ProtoFile

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

ProtoFile returns the path to the proto folder.

Jump to

Keyboard shortcuts

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