From 63b7baae86824c9f3e49ec840cabdcfa982d5b29 Mon Sep 17 00:00:00 2001 From: lumtis Date: Mon, 12 Aug 2024 14:05:18 +0200 Subject: [PATCH] add event for pausing --- .../zetacore/crosschain/events.proto | 6 + .../zetacore/crosschain/events_pb.d.ts | 34 ++ ...erver_update_erc20_custody_pause_status.go | 11 + x/crosschain/types/events.pb.go | 345 +++++++++++++++--- 4 files changed, 348 insertions(+), 48 deletions(-) diff --git a/proto/zetachain/zetacore/crosschain/events.proto b/proto/zetachain/zetacore/crosschain/events.proto index 5ec523d9e4..4b41ad8a40 100644 --- a/proto/zetachain/zetacore/crosschain/events.proto +++ b/proto/zetachain/zetacore/crosschain/events.proto @@ -75,3 +75,9 @@ message EventERC20CustodyFundsMigration { string amount = 3; string cctx_index = 4; } + +message EventERC20CustodyPausing { + int64 chain_id = 1; + bool pause = 2; + string cctx_index = 3; +} \ No newline at end of file diff --git a/typescript/zetachain/zetacore/crosschain/events_pb.d.ts b/typescript/zetachain/zetacore/crosschain/events_pb.d.ts index c46555a9e3..83ad9499f6 100644 --- a/typescript/zetachain/zetacore/crosschain/events_pb.d.ts +++ b/typescript/zetachain/zetacore/crosschain/events_pb.d.ts @@ -393,3 +393,37 @@ export declare class EventERC20CustodyFundsMigration extends Message | undefined, b: EventERC20CustodyFundsMigration | PlainMessage | undefined): boolean; } +/** + * @generated from message zetachain.zetacore.crosschain.EventERC20CustodyPausing + */ +export declare class EventERC20CustodyPausing extends Message { + /** + * @generated from field: int64 chain_id = 1; + */ + chainId: bigint; + + /** + * @generated from field: bool pause = 2; + */ + pause: boolean; + + /** + * @generated from field: string cctx_index = 3; + */ + cctxIndex: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.EventERC20CustodyPausing"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EventERC20CustodyPausing; + + static fromJson(jsonValue: JsonValue, options?: Partial): EventERC20CustodyPausing; + + static fromJsonString(jsonString: string, options?: Partial): EventERC20CustodyPausing; + + static equals(a: EventERC20CustodyPausing | PlainMessage | undefined, b: EventERC20CustodyPausing | PlainMessage | undefined): boolean; +} + diff --git a/x/crosschain/keeper/msg_server_update_erc20_custody_pause_status.go b/x/crosschain/keeper/msg_server_update_erc20_custody_pause_status.go index de1a2fdba0..4cda11f633 100644 --- a/x/crosschain/keeper/msg_server_update_erc20_custody_pause_status.go +++ b/x/crosschain/keeper/msg_server_update_erc20_custody_pause_status.go @@ -83,6 +83,17 @@ func (k msgServer) UpdateERC20CustodyPauseStatus( } k.SetCctxAndNonceToCctxAndInboundHashToCctx(ctx, cctx) + err = ctx.EventManager().EmitTypedEvent( + &types.EventERC20CustodyPausing{ + ChainId: msg.ChainId, + Pause: msg.Pause, + CctxIndex: cctx.Index, + }, + ) + if err != nil { + return nil, errorsmod.Wrapf(err, "failed to emit event") + } + return &types.MsgUpdateERC20CustodyPauseStatusResponse{ CctxIndex: cctx.Index, }, nil diff --git a/x/crosschain/types/events.pb.go b/x/crosschain/types/events.pb.go index 133b88f884..05751c4336 100644 --- a/x/crosschain/types/events.pb.go +++ b/x/crosschain/types/events.pb.go @@ -687,6 +687,66 @@ func (m *EventERC20CustodyFundsMigration) GetCctxIndex() string { return "" } +type EventERC20CustodyPausing struct { + ChainId int64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + Pause bool `protobuf:"varint,2,opt,name=pause,proto3" json:"pause,omitempty"` + CctxIndex string `protobuf:"bytes,3,opt,name=cctx_index,json=cctxIndex,proto3" json:"cctx_index,omitempty"` +} + +func (m *EventERC20CustodyPausing) Reset() { *m = EventERC20CustodyPausing{} } +func (m *EventERC20CustodyPausing) String() string { return proto.CompactTextString(m) } +func (*EventERC20CustodyPausing) ProtoMessage() {} +func (*EventERC20CustodyPausing) Descriptor() ([]byte, []int) { + return fileDescriptor_dd08b628129fa2e1, []int{8} +} +func (m *EventERC20CustodyPausing) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventERC20CustodyPausing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventERC20CustodyPausing.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventERC20CustodyPausing) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventERC20CustodyPausing.Merge(m, src) +} +func (m *EventERC20CustodyPausing) XXX_Size() int { + return m.Size() +} +func (m *EventERC20CustodyPausing) XXX_DiscardUnknown() { + xxx_messageInfo_EventERC20CustodyPausing.DiscardUnknown(m) +} + +var xxx_messageInfo_EventERC20CustodyPausing proto.InternalMessageInfo + +func (m *EventERC20CustodyPausing) GetChainId() int64 { + if m != nil { + return m.ChainId + } + return 0 +} + +func (m *EventERC20CustodyPausing) GetPause() bool { + if m != nil { + return m.Pause + } + return false +} + +func (m *EventERC20CustodyPausing) GetCctxIndex() string { + if m != nil { + return m.CctxIndex + } + return "" +} + func init() { proto.RegisterType((*EventInboundFinalized)(nil), "zetachain.zetacore.crosschain.EventInboundFinalized") proto.RegisterType((*EventZrcWithdrawCreated)(nil), "zetachain.zetacore.crosschain.EventZrcWithdrawCreated") @@ -696,6 +756,7 @@ func init() { proto.RegisterType((*EventCCTXGasPriceIncreased)(nil), "zetachain.zetacore.crosschain.EventCCTXGasPriceIncreased") proto.RegisterType((*EventERC20Whitelist)(nil), "zetachain.zetacore.crosschain.EventERC20Whitelist") proto.RegisterType((*EventERC20CustodyFundsMigration)(nil), "zetachain.zetacore.crosschain.EventERC20CustodyFundsMigration") + proto.RegisterType((*EventERC20CustodyPausing)(nil), "zetachain.zetacore.crosschain.EventERC20CustodyPausing") } func init() { @@ -703,54 +764,57 @@ func init() { } var fileDescriptor_dd08b628129fa2e1 = []byte{ - // 752 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 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 0xd5, 0x07, 0x9f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x99, 0x3d, 0xe9, 0xec, 0xba, 0x07, 0x00, 0x00, + // 789 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x95, 0xcd, 0x6e, 0xeb, 0x44, + 0x14, 0xc7, 0xeb, 0x9b, 0xef, 0xb9, 0x49, 0x00, 0xdf, 0x00, 0xa6, 0x52, 0xc3, 0xbd, 0x41, 0x08, + 0x84, 0x20, 0x2d, 0xe5, 0x09, 0x68, 0xd4, 0xd2, 0x08, 0x55, 0xad, 0xd2, 0xa2, 0xa2, 0x6e, 0x46, + 0x13, 0xcf, 0xc1, 0x1e, 0x70, 0xc6, 0xd1, 0xcc, 0xb8, 0x49, 0xfa, 0x14, 0x88, 0xf7, 0x60, 0x83, + 0xc4, 0x8e, 0x07, 0x60, 0xd9, 0x25, 0x4b, 0xd4, 0xbc, 0x08, 0x9a, 0x0f, 0xa7, 0x89, 0x53, 0xc1, + 0x02, 0x81, 0x74, 0x77, 0x3e, 0xff, 0x73, 0x3c, 0xe7, 0x37, 0xff, 0xe3, 0xf1, 0xa0, 0x4f, 0xee, + 0x40, 0x91, 0x30, 0x26, 0x8c, 0xef, 0x9b, 0xa7, 0x54, 0xc0, 0x7e, 0x28, 0x52, 0x29, 0xad, 0x06, + 0xb7, 0xc0, 0x95, 0xec, 0x4f, 0x45, 0xaa, 0x52, 0x7f, 0x6f, 0x55, 0xdb, 0xcf, 0x6b, 0xfb, 0x8f, + 0xb5, 0xbb, 0x9d, 0x28, 0x8d, 0x52, 0x53, 0xb9, 0xaf, 0x9f, 0xec, 0x4b, 0xbd, 0x65, 0x09, 0xbd, + 0x7d, 0xac, 0x57, 0x19, 0xf2, 0x71, 0x9a, 0x71, 0x7a, 0xc2, 0x38, 0x49, 0xd8, 0x1d, 0x50, 0xff, + 0x25, 0x6a, 0x4e, 0x64, 0x84, 0xd5, 0x62, 0x0a, 0x38, 0x13, 0x49, 0xe0, 0xbd, 0xf4, 0x3e, 0x6e, + 0x8c, 0xd0, 0x44, 0x46, 0x57, 0x8b, 0x29, 0x7c, 0x23, 0x12, 0x7f, 0x0f, 0xa1, 0x30, 0x54, 0x73, + 0xcc, 0x38, 0x85, 0x79, 0xf0, 0xcc, 0xe4, 0x1b, 0x5a, 0x19, 0x6a, 0xc1, 0x7f, 0x07, 0x55, 0x25, + 0x70, 0x0a, 0x22, 0x28, 0x99, 0x94, 0x8b, 0xfc, 0xf7, 0x50, 0x5d, 0xcd, 0x71, 0x2a, 0x22, 0xc6, + 0x83, 0xb2, 0xc9, 0xd4, 0xd4, 0xfc, 0x5c, 0x87, 0x7e, 0x07, 0x55, 0x88, 0x94, 0xa0, 0x82, 0x8a, + 0xd1, 0x6d, 0xe0, 0xbf, 0x42, 0x4d, 0x66, 0xe9, 0x70, 0x4c, 0x64, 0x1c, 0x54, 0x4d, 0xf2, 0xb9, + 0xd3, 0x4e, 0x89, 0x8c, 0xfd, 0x03, 0xd4, 0xc9, 0x4b, 0xc6, 0x49, 0x1a, 0xfe, 0x80, 0x63, 0x60, + 0x51, 0xac, 0x82, 0x9a, 0x29, 0xf5, 0x5d, 0xee, 0x48, 0xa7, 0x4e, 0x4d, 0xc6, 0xdf, 0x45, 0x75, + 0x01, 0x21, 0xb0, 0x5b, 0x10, 0x41, 0xdd, 0x54, 0xad, 0x62, 0xff, 0x43, 0xd4, 0xce, 0x9f, 0xb1, + 0x31, 0x2f, 0x68, 0x98, 0x8a, 0x56, 0xae, 0x0e, 0xb4, 0xa8, 0x37, 0x48, 0x26, 0x69, 0xc6, 0x55, + 0x80, 0xec, 0x06, 0x6d, 0xe4, 0x7f, 0x84, 0xde, 0x10, 0x90, 0x90, 0x05, 0x50, 0x3c, 0x01, 0x29, + 0x49, 0x04, 0xc1, 0x73, 0x53, 0xd0, 0x76, 0xf2, 0x99, 0x55, 0xb5, 0x81, 0x1c, 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, 0x7d, 0x64, 0x83, 0x42, 0xaf, 0x52, + 0xa1, 0xd7, 0xd1, 0xd7, 0xbf, 0x3f, 0x74, 0xbd, 0xfb, 0x87, 0xae, 0xf7, 0xe7, 0x43, 0xd7, 0xfb, + 0x71, 0xd9, 0xdd, 0xb9, 0x5f, 0x76, 0x77, 0xfe, 0x58, 0x76, 0x77, 0x6e, 0x3e, 0x8f, 0x98, 0x8a, + 0xb3, 0x71, 0x3f, 0x4c, 0x27, 0xe6, 0xae, 0xff, 0xac, 0x70, 0xed, 0xcf, 0xd7, 0x2f, 0x7e, 0x7d, + 0x08, 0xe4, 0xb8, 0x6a, 0xee, 0xf0, 0x2f, 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x0c, 0xc2, 0xaf, + 0xdb, 0x26, 0x08, 0x00, 0x00, } func (m *EventInboundFinalized) Marshal() (dAtA []byte, err error) { @@ -1266,6 +1330,51 @@ func (m *EventERC20CustodyFundsMigration) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } +func (m *EventERC20CustodyPausing) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventERC20CustodyPausing) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventERC20CustodyPausing) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CctxIndex) > 0 { + i -= len(m.CctxIndex) + copy(dAtA[i:], m.CctxIndex) + i = encodeVarintEvents(dAtA, i, uint64(len(m.CctxIndex))) + i-- + dAtA[i] = 0x1a + } + if m.Pause { + i-- + if m.Pause { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.ChainId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.ChainId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { offset -= sovEvents(v) base := offset @@ -1537,6 +1646,25 @@ func (m *EventERC20CustodyFundsMigration) Size() (n int) { return n } +func (m *EventERC20CustodyPausing) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ChainId != 0 { + n += 1 + sovEvents(uint64(m.ChainId)) + } + if m.Pause { + n += 2 + } + l = len(m.CctxIndex) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + func sovEvents(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -3447,6 +3575,127 @@ func (m *EventERC20CustodyFundsMigration) Unmarshal(dAtA []byte) error { } return nil } +func (m *EventERC20CustodyPausing) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventERC20CustodyPausing: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventERC20CustodyPausing: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + m.ChainId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChainId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Pause", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Pause = bool(v != 0) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CctxIndex", 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.CctxIndex = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipEvents(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0