Documentation ¶
Index ¶
- Variables
- func AccAddressFromBech32(address string) (addr sdk.AccAddress, err error)
- func ConvertAccAddressFromBech32(attributeValue string, _ bool) ([]any, error)
- func ConvertAmount(attributeValue string, indexed bool) ([]any, error)
- func ConvertPacketData(attributeValue string, indexed bool) ([]any, error)
- func ConvertUint64(attributeValue string, _ bool) ([]any, error)
- func IcaConvertEvent(event sdk.Event) (*ethtypes.Log, error)
- func NewEventDescriptors(a abi.ABI) map[string]*EventDescriptor
- func RelayerConvertEvent(event sdk.Event) (*ethtypes.Log, error)
- func ReturnStringAsIs(attributeValue string, _ bool) ([]any, error)
- type EventDescriptor
- type ValueDecoder
- type ValueDecoders
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RelayerEvents map[string]*EventDescriptor IcaEvents map[string]*EventDescriptor RelayerValueDecoders = ValueDecoders{ channeltypes.AttributeKeyDataHex: ConvertPacketData, transfertypes.AttributeKeyAmount: ConvertAmount, banktypes.AttributeKeyRecipient: ConvertAccAddressFromBech32, banktypes.AttributeKeySpender: ConvertAccAddressFromBech32, banktypes.AttributeKeyReceiver: ConvertAccAddressFromBech32, banktypes.AttributeKeySender: ConvertAccAddressFromBech32, banktypes.AttributeKeyMinter: ConvertAccAddressFromBech32, banktypes.AttributeKeyBurner: ConvertAccAddressFromBech32, channeltypes.AttributeKeySequence: ReturnStringAsIs, channeltypes.AttributeKeySrcPort: ReturnStringAsIs, channeltypes.AttributeKeySrcChannel: ReturnStringAsIs, channeltypes.AttributeKeyDstPort: ReturnStringAsIs, channeltypes.AttributeKeyDstChannel: ReturnStringAsIs, channeltypes.AttributeKeyConnectionID: ReturnStringAsIs, ibcfeetypes.AttributeKeyFee: ReturnStringAsIs, transfertypes.AttributeKeyDenom: ReturnStringAsIs, } IcaValueDecoders = ValueDecoders{ cronoseventstypes.AttributeKeySeq: ConvertUint64, channeltypes.AttributeKeySrcChannel: ReturnStringAsIs, } )
Functions ¶
func AccAddressFromBech32 ¶
func AccAddressFromBech32(address string) (addr sdk.AccAddress, err error)
func NewEventDescriptors ¶
func NewEventDescriptors(a abi.ABI) map[string]*EventDescriptor
Types ¶
type EventDescriptor ¶
type EventDescriptor struct {
// contains filtered or unexported fields
}
EventDescriptor describes how to convert an native event to a eth log
func (*EventDescriptor) ConvertEvent ¶
func (desc *EventDescriptor) ConvertEvent( event []abci.EventAttribute, valueDecoders ValueDecoders, ) (*ethtypes.Log, error)
type ValueDecoder ¶
type ValueDecoders ¶
type ValueDecoders map[string]ValueDecoder
func (ValueDecoders) GetDecoder ¶
func (d ValueDecoders) GetDecoder(name string) (ValueDecoder, bool)
Click to show internal directories.
Click to hide internal directories.