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.
Click to show internal directories.
Click to hide internal directories.