ibc

package
v0.0.0-...-7149754 Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: Apache-2.0 Imports: 16 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"

	// Placeholders IBC packets
	PlaceholderIBCPacketProtoField       = "// this line is used by starport scaffolding # ibc/packet/proto/field"
	PlaceholderIBCPacketProtoFieldNumber = "// this line is used by starport scaffolding # ibc/packet/proto/field/number"
	PlaceholderIBCPacketProtoMessage     = "// this line is used by starport scaffolding # ibc/packet/proto/message"
	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"

	// Placeholders for messages
	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"

	// Placeholders for Oracle
	PlaceholderProtoPacketImport      = "// this line is used by starport scaffolding # proto/packet/import"
	PlaceholderProtoTxImport          = "// this line is used by starport scaffolding # proto/tx/import"
	PlaceholderOraclePacketModuleRecv = "// this line is used by starport scaffolding # oracle/packet/module/recv"
	PlaceholderOraclePacketModuleAck  = "// this line is used by starport scaffolding # oracle/packet/module/ack"
	PlaceholderOracleModuleRecv       = "// this line is used by starport scaffolding # oracle/module/recv"
	PlaceholderOracleModuleAck        = "// this line is used by starport scaffolding # oracle/module/ack"
)

Variables

This section is empty.

Functions

func NewOracle

func NewOracle(replacer placeholder.Replacer, opts *OracleOptions) (*genny.Generator, error)

NewOracle returns the generator to scaffold the implementation of the Oracle interface inside a module

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 OracleOptions

type OracleOptions struct {
	AppName    string
	AppPath    string
	ModuleName string
	ModulePath string
	QueryName  multiformatname.Name
	MsgSigner  multiformatname.Name
}

OracleOptions are options to scaffold an oracle query in a IBC module

type PacketOptions

type PacketOptions struct {
	AppName    string
	AppPath    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

Jump to

Keyboard shortcuts

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