diff --git a/cmd/api/docs/docs.go b/cmd/api/docs/docs.go index 43f742cf..d5dea296 100644 --- a/cmd/api/docs/docs.go +++ b/cmd/api/docs/docs.go @@ -2599,7 +2599,9 @@ const docTemplate = `{ "channel_open_try", "channel_open_init", "channel_open_confirm", - "channel_open_ack" + "channel_open_ack", + "recv_packet", + "write_acknowledgement" ], "x-enum-varnames": [ "EventTypeUnknown", @@ -2647,7 +2649,9 @@ const docTemplate = `{ "EventTypeChannelOpenTry", "EventTypeChannelOpenInit", "EventTypeChannelOpenConfirm", - "EventTypeChannelOpenAck" + "EventTypeChannelOpenAck", + "EventTypeRecvPacket", + "EventTypeWriteAcknowledgement" ] }, "types.MsgType": { diff --git a/cmd/api/docs/swagger.json b/cmd/api/docs/swagger.json index 09c096b2..545b4351 100644 --- a/cmd/api/docs/swagger.json +++ b/cmd/api/docs/swagger.json @@ -2592,7 +2592,9 @@ "channel_open_try", "channel_open_init", "channel_open_confirm", - "channel_open_ack" + "channel_open_ack", + "recv_packet", + "write_acknowledgement" ], "x-enum-varnames": [ "EventTypeUnknown", @@ -2640,7 +2642,9 @@ "EventTypeChannelOpenTry", "EventTypeChannelOpenInit", "EventTypeChannelOpenConfirm", - "EventTypeChannelOpenAck" + "EventTypeChannelOpenAck", + "EventTypeRecvPacket", + "EventTypeWriteAcknowledgement" ] }, "types.MsgType": { diff --git a/cmd/api/docs/swagger.yaml b/cmd/api/docs/swagger.yaml index ce7a5e24..f734e99a 100644 --- a/cmd/api/docs/swagger.yaml +++ b/cmd/api/docs/swagger.yaml @@ -547,6 +547,8 @@ definitions: - channel_open_init - channel_open_confirm - channel_open_ack + - recv_packet + - write_acknowledgement type: string x-enum-varnames: - EventTypeUnknown @@ -595,6 +597,8 @@ definitions: - EventTypeChannelOpenInit - EventTypeChannelOpenConfirm - EventTypeChannelOpenAck + - EventTypeRecvPacket + - EventTypeWriteAcknowledgement types.MsgType: enum: - MsgUnknown diff --git a/internal/storage/mock/address.go b/internal/storage/mock/address.go index 7d380590..074a326e 100644 --- a/internal/storage/mock/address.go +++ b/internal/storage/mock/address.go @@ -5,6 +5,7 @@ // // mockgen -source=address.go -destination=mock/address.go -package=mock -typed // + // Package mock is a generated GoMock package. package mock diff --git a/internal/storage/mock/balance.go b/internal/storage/mock/balance.go index 684c1bc2..eef0d935 100644 --- a/internal/storage/mock/balance.go +++ b/internal/storage/mock/balance.go @@ -5,6 +5,7 @@ // // mockgen -source=balance.go -destination=mock/balance.go -package=mock -typed // + // Package mock is a generated GoMock package. package mock diff --git a/internal/storage/mock/block.go b/internal/storage/mock/block.go index b3af1472..ccc4dc4f 100644 --- a/internal/storage/mock/block.go +++ b/internal/storage/mock/block.go @@ -5,6 +5,7 @@ // // mockgen -source=block.go -destination=mock/block.go -package=mock -typed // + // Package mock is a generated GoMock package. package mock diff --git a/internal/storage/mock/block_stats.go b/internal/storage/mock/block_stats.go index bbf39bbd..81abfe06 100644 --- a/internal/storage/mock/block_stats.go +++ b/internal/storage/mock/block_stats.go @@ -5,6 +5,7 @@ // // mockgen -source=block_stats.go -destination=mock/block_stats.go -package=mock -typed // + // Package mock is a generated GoMock package. package mock diff --git a/internal/storage/mock/constant.go b/internal/storage/mock/constant.go index ee1891af..24bd282d 100644 --- a/internal/storage/mock/constant.go +++ b/internal/storage/mock/constant.go @@ -5,6 +5,7 @@ // // mockgen -source=constant.go -destination=mock/constant.go -package=mock -typed // + // Package mock is a generated GoMock package. package mock diff --git a/internal/storage/mock/denom_metadata.go b/internal/storage/mock/denom_metadata.go index 1c9c6e60..e07c0f02 100644 --- a/internal/storage/mock/denom_metadata.go +++ b/internal/storage/mock/denom_metadata.go @@ -5,6 +5,7 @@ // // mockgen -source=denom_metadata.go -destination=mock/denom_metadata.go -package=mock -typed // + // Package mock is a generated GoMock package. package mock diff --git a/internal/storage/mock/event.go b/internal/storage/mock/event.go index 52cdd576..8c2ff172 100644 --- a/internal/storage/mock/event.go +++ b/internal/storage/mock/event.go @@ -5,6 +5,7 @@ // // mockgen -source=event.go -destination=mock/event.go -package=mock -typed // + // Package mock is a generated GoMock package. package mock diff --git a/internal/storage/mock/generic.go b/internal/storage/mock/generic.go index fa9d0e6c..16a3031a 100644 --- a/internal/storage/mock/generic.go +++ b/internal/storage/mock/generic.go @@ -5,6 +5,7 @@ // // mockgen -source=generic.go -destination=mock/generic.go -package=mock -typed // + // Package mock is a generated GoMock package. package mock diff --git a/internal/storage/mock/message.go b/internal/storage/mock/message.go index f4d418fb..f0fc3950 100644 --- a/internal/storage/mock/message.go +++ b/internal/storage/mock/message.go @@ -5,6 +5,7 @@ // // mockgen -source=message.go -destination=mock/message.go -package=mock -typed // + // Package mock is a generated GoMock package. package mock diff --git a/internal/storage/mock/namespace.go b/internal/storage/mock/namespace.go index 9c31aa3f..2a603d89 100644 --- a/internal/storage/mock/namespace.go +++ b/internal/storage/mock/namespace.go @@ -5,6 +5,7 @@ // // mockgen -source=namespace.go -destination=mock/namespace.go -package=mock -typed // + // Package mock is a generated GoMock package. package mock diff --git a/internal/storage/mock/state.go b/internal/storage/mock/state.go index 37c546da..21cc4d68 100644 --- a/internal/storage/mock/state.go +++ b/internal/storage/mock/state.go @@ -5,6 +5,7 @@ // // mockgen -source=state.go -destination=mock/state.go -package=mock -typed // + // Package mock is a generated GoMock package. package mock diff --git a/internal/storage/mock/stats.go b/internal/storage/mock/stats.go index 1d17c6ae..e2dceafd 100644 --- a/internal/storage/mock/stats.go +++ b/internal/storage/mock/stats.go @@ -5,6 +5,7 @@ // // mockgen -source=stats.go -destination=mock/stats.go -package=mock -typed // + // Package mock is a generated GoMock package. package mock diff --git a/internal/storage/mock/tx.go b/internal/storage/mock/tx.go index 88c02e45..3daa2a54 100644 --- a/internal/storage/mock/tx.go +++ b/internal/storage/mock/tx.go @@ -5,6 +5,7 @@ // // mockgen -source=tx.go -destination=mock/tx.go -package=mock -typed // + // Package mock is a generated GoMock package. package mock diff --git a/internal/storage/mock/validator.go b/internal/storage/mock/validator.go index ceb55561..d0f17023 100644 --- a/internal/storage/mock/validator.go +++ b/internal/storage/mock/validator.go @@ -5,6 +5,7 @@ // // mockgen -source=validator.go -destination=mock/validator.go -package=mock -typed // + // Package mock is a generated GoMock package. package mock diff --git a/internal/storage/types/event_type.go b/internal/storage/types/event_type.go index 0cba70f2..2dc1f6a5 100644 --- a/internal/storage/types/event_type.go +++ b/internal/storage/types/event_type.go @@ -61,7 +61,10 @@ package types channel_open_try, channel_open_init, channel_open_confirm, - channel_open_ack + channel_open_ack, + + recv_packet, + write_acknowledgement ) */ //go:generate go-enum --marshal --sql --values diff --git a/internal/storage/types/event_type_enum.go b/internal/storage/types/event_type_enum.go index 9c2fa1a8..1170999a 100644 --- a/internal/storage/types/event_type_enum.go +++ b/internal/storage/types/event_type_enum.go @@ -105,6 +105,10 @@ const ( EventTypeChannelOpenConfirm EventType = "channel_open_confirm" // EventTypeChannelOpenAck is a EventType of type channel_open_ack. EventTypeChannelOpenAck EventType = "channel_open_ack" + // EventTypeRecvPacket is a EventType of type recv_packet. + EventTypeRecvPacket EventType = "recv_packet" + // EventTypeWriteAcknowledgement is a EventType of type write_acknowledgement. + EventTypeWriteAcknowledgement EventType = "write_acknowledgement" ) var ErrInvalidEventType = errors.New("not a valid EventType") @@ -158,6 +162,8 @@ func EventTypeValues() []EventType { EventTypeChannelOpenInit, EventTypeChannelOpenConfirm, EventTypeChannelOpenAck, + EventTypeRecvPacket, + EventTypeWriteAcknowledgement, } } @@ -220,6 +226,8 @@ var _EventTypeValue = map[string]EventType{ "channel_open_init": EventTypeChannelOpenInit, "channel_open_confirm": EventTypeChannelOpenConfirm, "channel_open_ack": EventTypeChannelOpenAck, + "recv_packet": EventTypeRecvPacket, + "write_acknowledgement": EventTypeWriteAcknowledgement, } // ParseEventType attempts to convert a string to a EventType. diff --git a/pkg/node/mock/api.go b/pkg/node/mock/api.go index da0d6c19..9024b77b 100644 --- a/pkg/node/mock/api.go +++ b/pkg/node/mock/api.go @@ -5,6 +5,7 @@ // // mockgen -source=api.go -destination=mock/api.go -package=mock -typed // + // Package mock is a generated GoMock package. package mock