Skip to content

Parse packet from events instead of manually constructing in endpoint.MsgSendPacket #7856

Open
@gjermundgaraba

Description

@gjermundgaraba

Create a test utilities for Eureka packet parsing, similar to what we have here:

func ParsePacketsFromEvents(eventType string, events []abci.Event) ([]channeltypes.Packet, error) {

I would imagine we would need to rename and refactor a bit to make a clear distinction between the type of packet your expecting. So either parsing for an IBC v1 packet (the current functions) or an IBC v2 packet.

Replace any places where we manually find the packet data or sequence today with the new test utilities method(s).

ℹ️ There is an implementation that may be possible to use as a starting point here: https://github.com/gjermundgaraba/libibc/blob/341e29c8dad60f63af2006425c3245f3aa69d343/chains/cosmos/events.go#L82-L109

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions