Documentation ¶
Index ¶
- type Codec
- func (c *Codec) AddInterfaces(registerFuncs ...func(codectypes.InterfaceRegistry))
- func (c *Codec) IsTypedEvent(event *abcitypes.Event) bool
- func (c *Codec) MarshalProtoJSON(event proto.Message) (json.RawMessage, error)
- func (c *Codec) ParseEvent(event *abcitypes.Event) (proto.Message, error)
- func (c *Codec) ParseTx(txBytes []byte) (*tx.Tx, error)
- func (c *Codec) ParseTxMessage(message *codectypes.Any) (proto.Message, error)
- func (c *Codec) ParseTxMessages(messages []*codectypes.Any) ([]proto.Message, error)
- func (c *Codec) ParseUntypedEvent(event *abcitypes.Event) (json.RawMessage, error)
- type DefaultSDKTypes
- type ProtoCodec
- type SDKTypes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec struct {
// contains filtered or unexported fields
}
func NewCodec ¶
func NewCodec() *Codec
NewCodec creates a new instance of Codec with registered interfaces.
func NewCodecWithInterfaces ¶ added in v0.1.5
func NewCodecWithInterfaces(interfaceRegistry codectypes.InterfaceRegistry, codec ProtoCodec, sdkTypes SDKTypes) *Codec
func (*Codec) AddInterfaces ¶
func (c *Codec) AddInterfaces(registerFuncs ...func(codectypes.InterfaceRegistry))
func (*Codec) IsTypedEvent ¶ added in v0.1.4
func (*Codec) MarshalProtoJSON ¶
MarshalJSON marshals a proto message to a json string
func (*Codec) ParseEvent ¶
DecodeMsg decodes a typed event and returns a decoded event
func (*Codec) ParseTxMessage ¶
func (*Codec) ParseTxMessages ¶
func (*Codec) ParseUntypedEvent ¶ added in v0.1.4
type DefaultSDKTypes ¶
type DefaultSDKTypes struct{}
Default implementation of the SDKTypes interface
func (DefaultSDKTypes) ParseTypedEvent ¶
Click to show internal directories.
Click to hide internal directories.