package
0.0.0-20250123153157-22e6c93069ee
Repository: https://github.com/scalarorg/relayers.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
func ParseEvmEventCompletedEvent(event map[string][]string) ([]IBCEvent[EVMEventCompleted], error) { log.Debug().Msgf("[ScalarClient] [ParseEvmEventCompletedEvent] start parser") eventIds := event[EventTypeEVMEventCompleted+".event_id"] txHashs := event["tx.hash"] srcChannels := event["write_acknowledgement.packet_src_channel"] destChannels := event["write_acknowledgement.packet_dst_channel"] events := make([]IBCEvent[EVMEventCompleted], len(eventIds)) for ind, eventId := range eventIds { eventID := removeQuote(eventId) chainEventCompleted := ChainEventCompleted { Chain: "", EventId: "", Type: "" } args := EVMEventCompleted{ ChainEventCompleted: , ID: eventID, Payload: "", } var srcChannel string var destChannel string if len(srcChannels) > ind { srcChannel = srcChannels[ind] } if len(destChannels) > ind { destChannel = destChannels[ind] } events[ind] = IBCEvent[EVMEventCompleted]{ Hash: txHashs[ind], SrcChannel: srcChannel, DestChannel: destChannel, Args: args, } } log.Debug().Msgf("[ScalarClient] [ParseEvmEventCompletedEvent] parsed events: %v", events) return events, nil }.
No description provided by the author
No description provided by the author
func ParseEvent[T proto.Message](rawData map[string][]string, messages T) ([]T, error) { msgName, values, err := parseTarget(rawData, messages) if err != nil { return nil, fmt.Errorf("failed to parse type: %T", reflect.TypeOf(messages)) } log.Info().Str("MessageType", msgName).Msg("Successful parsed event") // // Handle both struct and pointer cases // if targetVal.Kind() != reflect.Struct && targetVal.Kind() != reflect.Ptr && targetVal.Elem().Kind() != reflect.Struct { // return fmt.Errorf("target must be a struct or pointer to struct, got: %T", target) // } return values, nil }.
No description provided by the author
https://github.com/cosmos/cosmos-sdk/blob/main/client/rpc/tx.go#L159.
No description provided by the author
https://github.com/cosmos/cosmos-sdk/blob/main/client/rpc/tx.go#L159.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
var _ proto.Message = &EventTokenSent{}.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
For future use.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Todo: make it configurable.
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
ExecuteRequest represents an execute request.
No description provided by the author
IBCPacketEvent represents an IBC packet event.
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author