diff --git a/proto/dymensionxyz/dymension/eibc/events.proto b/proto/dymensionxyz/dymension/eibc/events.proto index 2b34607e2..bbca04eb8 100644 --- a/proto/dymensionxyz/dymension/eibc/events.proto +++ b/proto/dymensionxyz/dymension/eibc/events.proto @@ -67,9 +67,9 @@ message EventDemandOrderFeeUpdated { message EventDemandOrderFulfilled { // order_id is the unique identifier of the demand order. string order_id = 1; - // fulfillment_id is the unique identifier of the fulfillment. + // price is the price of the demand order. string price = 2; - // fulfillment_amount is the amount of the fulfillment. + // fee is the fee of the demand order. string fee = 3; // is_fulfilled is the flag indicating whether the order is fulfilled. bool is_fulfilled = 4; @@ -85,9 +85,9 @@ message EventDemandOrderFulfilled { message EventDemandOrderFulfilledAuthorized { // order_id is the unique identifier of the demand order. string order_id = 1; - // fulfillment_id is the unique identifier of the fulfillment. + // price is the price of the demand order. string price = 2; - // fulfillment_amount is the amount of the fulfillment. + // fee is the fee of the demand order. string fee = 3; // is_fulfilled is the flag indicating whether the order is fulfilled. bool is_fulfilled = 4; @@ -101,4 +101,8 @@ message EventDemandOrderFulfilledAuthorized { uint64 creation_height = 11; // lp_address is the address of the LP. string lp_address = 12; + // operator_address is the address of the operator. + string operator_address = 13; + // operator_fee is the fee of the operator. + string operator_fee = 14; } diff --git a/x/eibc/keeper/msg_server.go b/x/eibc/keeper/msg_server.go index e40c5bef1..64f7711af 100644 --- a/x/eibc/keeper/msg_server.go +++ b/x/eibc/keeper/msg_server.go @@ -123,7 +123,12 @@ func (m msgServer) FulfillOrderAuthorized(goCtx context.Context, msg *types.MsgF return nil, err } - if err = uevent.EmitTypedEvent(ctx, demandOrder.GetFulfilledAuthorizedEvent(demandOrder.CreationHeight, msg.LpAddress)); err != nil { + if err = uevent.EmitTypedEvent(ctx, demandOrder.GetFulfilledAuthorizedEvent( + demandOrder.CreationHeight, + msg.LpAddress, + operatorAccount.GetAddress().String(), + operatorFee.String(), + )); err != nil { return nil, fmt.Errorf("emit event: %w", err) } diff --git a/x/eibc/types/demand_order.go b/x/eibc/types/demand_order.go index 61007ae73..409faa699 100644 --- a/x/eibc/types/demand_order.go +++ b/x/eibc/types/demand_order.go @@ -104,17 +104,22 @@ func (m *DemandOrder) GetFulfilledEvent() *EventDemandOrderFulfilled { } } -func (m *DemandOrder) GetFulfilledAuthorizedEvent(creationHeight uint64, lpAddress string) *EventDemandOrderFulfilledAuthorized { +func (m *DemandOrder) GetFulfilledAuthorizedEvent( + creationHeight uint64, + lpAddress, operatorAddress, operatorFee string, +) *EventDemandOrderFulfilledAuthorized { return &EventDemandOrderFulfilledAuthorized{ - OrderId: m.Id, - Price: m.Price.String(), - Fee: m.Fee.String(), - IsFulfilled: true, - PacketStatus: m.TrackingPacketStatus.String(), - Fulfiller: m.FulfillerAddress, - PacketType: m.Type.String(), - CreationHeight: creationHeight, - LpAddress: lpAddress, + OrderId: m.Id, + Price: m.Price.String(), + Fee: m.Fee.String(), + IsFulfilled: true, + PacketStatus: m.TrackingPacketStatus.String(), + Fulfiller: m.FulfillerAddress, + PacketType: m.Type.String(), + CreationHeight: creationHeight, + LpAddress: lpAddress, + OperatorAddress: operatorAddress, + OperatorFee: operatorFee, } } diff --git a/x/eibc/types/events.pb.go b/x/eibc/types/events.pb.go index 03215d4e5..fdde93146 100644 --- a/x/eibc/types/events.pb.go +++ b/x/eibc/types/events.pb.go @@ -330,9 +330,9 @@ func (m *EventDemandOrderFeeUpdated) GetAmount() string { type EventDemandOrderFulfilled struct { // order_id is the unique identifier of the demand order. OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` - // fulfillment_id is the unique identifier of the fulfillment. + // price is the price of the demand order. Price string `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"` - // fulfillment_amount is the amount of the fulfillment. + // fee is the fee of the demand order. Fee string `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"` // is_fulfilled is the flag indicating whether the order is fulfilled. IsFulfilled bool `protobuf:"varint,4,opt,name=is_fulfilled,json=isFulfilled,proto3" json:"is_fulfilled,omitempty"` @@ -430,9 +430,9 @@ func (m *EventDemandOrderFulfilled) GetPacketType() string { type EventDemandOrderFulfilledAuthorized struct { // order_id is the unique identifier of the demand order. OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` - // fulfillment_id is the unique identifier of the fulfillment. + // price is the price of the demand order. Price string `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"` - // fulfillment_amount is the amount of the fulfillment. + // fee is the fee of the demand order. Fee string `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"` // is_fulfilled is the flag indicating whether the order is fulfilled. IsFulfilled bool `protobuf:"varint,4,opt,name=is_fulfilled,json=isFulfilled,proto3" json:"is_fulfilled,omitempty"` @@ -446,6 +446,10 @@ type EventDemandOrderFulfilledAuthorized struct { CreationHeight uint64 `protobuf:"varint,11,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"` // lp_address is the address of the LP. LpAddress string `protobuf:"bytes,12,opt,name=lp_address,json=lpAddress,proto3" json:"lp_address,omitempty"` + // operator_address is the address of the operator. + OperatorAddress string `protobuf:"bytes,13,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"` + // operator_fee is the fee of the operator. + OperatorFee string `protobuf:"bytes,14,opt,name=operator_fee,json=operatorFee,proto3" json:"operator_fee,omitempty"` } func (m *EventDemandOrderFulfilledAuthorized) Reset() { *m = EventDemandOrderFulfilledAuthorized{} } @@ -544,6 +548,20 @@ func (m *EventDemandOrderFulfilledAuthorized) GetLpAddress() string { return "" } +func (m *EventDemandOrderFulfilledAuthorized) GetOperatorAddress() string { + if m != nil { + return m.OperatorAddress + } + return "" +} + +func (m *EventDemandOrderFulfilledAuthorized) GetOperatorFee() string { + if m != nil { + return m.OperatorFee + } + return "" +} + func init() { proto.RegisterType((*EventDemandOrderCreated)(nil), "dymensionxyz.dymension.eibc.EventDemandOrderCreated") proto.RegisterType((*EventDemandOrderPacketStatusUpdated)(nil), "dymensionxyz.dymension.eibc.EventDemandOrderPacketStatusUpdated") @@ -557,45 +575,47 @@ func init() { } var fileDescriptor_87abe4479c806cf7 = []byte{ - // 601 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x54, 0xcd, 0x52, 0x13, 0x41, - 0x10, 0x66, 0x03, 0xe4, 0xa7, 0x13, 0x41, 0xa7, 0x28, 0x19, 0x22, 0x44, 0x08, 0x45, 0x99, 0xf2, - 0x90, 0x2d, 0xe5, 0x09, 0x40, 0xa5, 0xa4, 0x38, 0xa8, 0x51, 0x2f, 0x5e, 0xb6, 0x96, 0x4c, 0x27, - 0x99, 0x62, 0xb3, 0x33, 0xb5, 0x3b, 0x01, 0x96, 0xa7, 0xf0, 0x69, 0xf4, 0x15, 0x3c, 0x72, 0xf4, - 0x48, 0x41, 0xf1, 0x1e, 0xd6, 0xcc, 0x6c, 0x42, 0xb2, 0x10, 0xb4, 0x2c, 0x4f, 0xde, 0xb6, 0xbf, - 0xee, 0xed, 0xf9, 0x7a, 0xbe, 0x6f, 0x1a, 0x1a, 0x2c, 0xe9, 0x63, 0x18, 0x73, 0x11, 0x9e, 0x26, - 0x67, 0xee, 0x28, 0x70, 0x91, 0x1f, 0xb6, 0x5d, 0x3c, 0xc6, 0x50, 0xc5, 0x4d, 0x19, 0x09, 0x25, - 0xc8, 0x93, 0xf1, 0xca, 0xe6, 0x28, 0x68, 0xea, 0xca, 0xea, 0x52, 0x57, 0x74, 0x85, 0xa9, 0x73, - 0xf5, 0x97, 0xfd, 0xa5, 0xfa, 0x7c, 0x4a, 0xf3, 0xb6, 0xe8, 0xf7, 0x45, 0xe8, 0xc6, 0xca, 0x57, - 0x83, 0xb4, 0x7d, 0xb5, 0x79, 0x1f, 0x11, 0x86, 0x7d, 0x3f, 0x64, 0x9e, 0x88, 0x18, 0x46, 0xb6, - 0xbe, 0x7e, 0x91, 0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1c, - 0xd3, 0x8a, 0x3d, 0x28, 0x90, 0x3b, 0x16, 0xd8, 0x3d, 0xf8, 0x71, 0x59, 0x73, 0xce, 0x2f, 0x6b, - 0xce, 0xc5, 0x65, 0xcd, 0xf9, 0x7a, 0x55, 0x9b, 0x39, 0xbf, 0xaa, 0xcd, 0xfc, 0xbc, 0xaa, 0xcd, - 0x7c, 0x79, 0xd1, 0xe5, 0xaa, 0x37, 0x38, 0xd4, 0xaf, 0xcd, 0x9d, 0xb2, 0x7a, 0x8f, 0xb7, 0xdd, - 0x53, 0xbb, 0x7f, 0x35, 0xcb, 0xf8, 0x30, 0x6f, 0x36, 0xef, 0xf6, 0xaf, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x8e, 0x13, 0x5c, 0x0f, 0x34, 0x06, 0x00, 0x00, + // 633 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x54, 0xcf, 0x52, 0x13, 0x4f, + 0x10, 0x66, 0x09, 0xe4, 0x4f, 0x27, 0xfc, 0xf9, 0x4d, 0x51, 0x3f, 0x96, 0x08, 0x11, 0x42, 0x51, + 0x46, 0x0f, 0xd9, 0x52, 0x9e, 0x00, 0xd4, 0x94, 0x14, 0x07, 0x35, 0xea, 0xc5, 0xcb, 0xd6, 0x92, + 0xe9, 0x24, 0x53, 0x6c, 0x76, 0xa6, 0x66, 0x27, 0x40, 0xb8, 0x7b, 0xf7, 0x69, 0x7c, 0x06, 0x8f, + 0x1c, 0x3d, 0x52, 0x50, 0xbc, 0x87, 0x35, 0x33, 0xbb, 0x21, 0x09, 0x04, 0x2d, 0xcb, 0x93, 0xb7, + 0xed, 0xaf, 0xbf, 0xed, 0xe9, 0xee, 0xef, 0x9b, 0x81, 0x1a, 0x1d, 0xf4, 0x30, 0x8a, 0x19, 0x8f, + 0xce, 0x06, 0xe7, 0xde, 0x30, 0xf0, 0x90, 0x1d, 0xb5, 0x3c,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83, 0x1b, 0xb0, 0x0e, 0x85, 0xb4, 0x88, 0x4c, 0x3c, 0x7a, + 0x0b, 0x4c, 0x7a, 0x18, 0x26, 0x3d, 0x5c, 0xfd, 0x92, 0xb9, 0x6b, 0xc4, 0x61, 0x07, 0x7b, 0x7d, + 0xd5, 0xe5, 0x92, 0x9d, 0xff, 0x4b, 0x13, 0x93, 0x27, 0xb0, 0xd4, 0xd2, 0x8f, 0x19, 0xe3, 0x51, + 0xea, 0x8b, 0xa2, 0xf1, 0xc5, 0x62, 0x0a, 0x27, 0xd6, 0xd8, 0x00, 0x08, 0x85, 0x1f, 0x50, 0x2a, + 0x31, 0x8e, 0xdd, 0x92, 0x3d, 0x28, 0x14, 0x7b, 0x16, 0x20, 0x4f, 0x61, 0x99, 0x0b, 0x94, 0x81, + 0xe2, 0x72, 0x48, 0x5a, 0x30, 0xa4, 0xa5, 0x14, 0x4f, 0xa9, 0x5b, 0x50, 0x1a, 0x52, 0xf5, 0x52, + 0x16, 0x0d, 0xad, 0x98, 0x62, 0x0d, 0xc4, 0xfd, 0xc3, 0xef, 0x57, 0x15, 0xe7, 0xe2, 0xaa, 0xe2, + 0x5c, 0x5e, 0x55, 0x9c, 0xaf, 0xd7, 0x95, 0x99, 0x8b, 0xeb, 0xca, 0xcc, 0x8f, 0xeb, 0xca, 0xcc, + 0xe7, 0xe7, 0x1d, 0xa6, 0xba, 0xfd, 0x23, 0x7d, 0x77, 0xbd, 0x29, 0x0f, 0xf9, 0xc9, 0xae, 0x77, + 0x66, 0x5f, 0x73, 0x3d, 0x73, 0x7c, 0x94, 0x35, 0xef, 0xf8, 0xee, 0xcf, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x7a, 0xa7, 0x80, 0xd9, 0x82, 0x06, 0x00, 0x00, } func (m *EventDemandOrderCreated) Marshal() (dAtA []byte, err error) { @@ -909,6 +929,20 @@ func (m *EventDemandOrderFulfilledAuthorized) MarshalToSizedBuffer(dAtA []byte) _ = i var l int _ = l + if len(m.OperatorFee) > 0 { + i -= len(m.OperatorFee) + copy(dAtA[i:], m.OperatorFee) + i = encodeVarintEvents(dAtA, i, uint64(len(m.OperatorFee))) + i-- + dAtA[i] = 0x72 + } + if len(m.OperatorAddress) > 0 { + i -= len(m.OperatorAddress) + copy(dAtA[i:], m.OperatorAddress) + i = encodeVarintEvents(dAtA, i, uint64(len(m.OperatorAddress))) + i-- + dAtA[i] = 0x6a + } if len(m.LpAddress) > 0 { i -= len(m.LpAddress) copy(dAtA[i:], m.LpAddress) @@ -1169,6 +1203,14 @@ func (m *EventDemandOrderFulfilledAuthorized) Size() (n int) { if l > 0 { n += 1 + l + sovEvents(uint64(l)) } + l = len(m.OperatorAddress) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.OperatorFee) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } return n } @@ -2491,6 +2533,70 @@ func (m *EventDemandOrderFulfilledAuthorized) Unmarshal(dAtA []byte) error { } m.LpAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperatorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OperatorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperatorFee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OperatorFee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvents(dAtA[iNdEx:])