Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseCfg ¶
type BaseCfg struct { Name string `json:"name"` ExtCfgFile string `json:"ext_cfg_file"` CfgRaw json.RawMessage `json:"cfg"` }
func (BaseCfg) UnmarshalData ¶
UnmarshalData unmarshal data to struct
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context for plugin ctx
func (Context) WithChainID ¶
type Event ¶
func FromSdkEvent ¶
type Plugin ¶
type Plugin interface { Init(Context) error Start(Context) error Stop(Context) error EvtHandler() PluginEvtHandler MsgHandler() PluginMsgHandler TxHandler() PluginTxHandler Logger() log.Logger Name() string }
type PluginEvtHandler ¶
type PluginMsgHandler ¶
type PluginTxHandler ¶
type PluginTxHandler func(ctx Context, tx chainTypes.StdTx)
Click to show internal directories.
Click to hide internal directories.