diff --git a/api/layer/bridge/tx.pulsar.go b/api/layer/bridge/tx.pulsar.go index eb15c2351..5c37f3e25 100644 --- a/api/layer/bridge/tx.pulsar.go +++ b/api/layer/bridge/tx.pulsar.go @@ -1838,878 +1838,6 @@ func (x *fastReflection_MsgWithdrawTokensResponse) ProtoMethods() *protoiface.Me } } -var ( - md_MsgClaimDepositRequest protoreflect.MessageDescriptor - fd_MsgClaimDepositRequest_creator protoreflect.FieldDescriptor - fd_MsgClaimDepositRequest_deposit_id protoreflect.FieldDescriptor - fd_MsgClaimDepositRequest_index protoreflect.FieldDescriptor -) - -func init() { - file_layer_bridge_tx_proto_init() - md_MsgClaimDepositRequest = File_layer_bridge_tx_proto.Messages().ByName("MsgClaimDepositRequest") - fd_MsgClaimDepositRequest_creator = md_MsgClaimDepositRequest.Fields().ByName("creator") - fd_MsgClaimDepositRequest_deposit_id = md_MsgClaimDepositRequest.Fields().ByName("deposit_id") - fd_MsgClaimDepositRequest_index = md_MsgClaimDepositRequest.Fields().ByName("index") -} - -var _ protoreflect.Message = (*fastReflection_MsgClaimDepositRequest)(nil) - -type fastReflection_MsgClaimDepositRequest MsgClaimDepositRequest - -func (x *MsgClaimDepositRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgClaimDepositRequest)(x) -} - -func (x *MsgClaimDepositRequest) slowProtoReflect() protoreflect.Message { - mi := &file_layer_bridge_tx_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgClaimDepositRequest_messageType fastReflection_MsgClaimDepositRequest_messageType -var _ protoreflect.MessageType = fastReflection_MsgClaimDepositRequest_messageType{} - -type fastReflection_MsgClaimDepositRequest_messageType struct{} - -func (x fastReflection_MsgClaimDepositRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgClaimDepositRequest)(nil) -} -func (x fastReflection_MsgClaimDepositRequest_messageType) New() protoreflect.Message { - return new(fastReflection_MsgClaimDepositRequest) -} -func (x fastReflection_MsgClaimDepositRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgClaimDepositRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgClaimDepositRequest) Descriptor() protoreflect.MessageDescriptor { - return md_MsgClaimDepositRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgClaimDepositRequest) Type() protoreflect.MessageType { - return _fastReflection_MsgClaimDepositRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgClaimDepositRequest) New() protoreflect.Message { - return new(fastReflection_MsgClaimDepositRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgClaimDepositRequest) Interface() protoreflect.ProtoMessage { - return (*MsgClaimDepositRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgClaimDepositRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgClaimDepositRequest_creator, value) { - return - } - } - if x.DepositId != uint64(0) { - value := protoreflect.ValueOfUint64(x.DepositId) - if !f(fd_MsgClaimDepositRequest_deposit_id, value) { - return - } - } - if x.Index != uint64(0) { - value := protoreflect.ValueOfUint64(x.Index) - if !f(fd_MsgClaimDepositRequest_index, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgClaimDepositRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "layer.bridge.MsgClaimDepositRequest.creator": - return x.Creator != "" - case "layer.bridge.MsgClaimDepositRequest.deposit_id": - return x.DepositId != uint64(0) - case "layer.bridge.MsgClaimDepositRequest.index": - return x.Index != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.MsgClaimDepositRequest")) - } - panic(fmt.Errorf("message layer.bridge.MsgClaimDepositRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgClaimDepositRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "layer.bridge.MsgClaimDepositRequest.creator": - x.Creator = "" - case "layer.bridge.MsgClaimDepositRequest.deposit_id": - x.DepositId = uint64(0) - case "layer.bridge.MsgClaimDepositRequest.index": - x.Index = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.MsgClaimDepositRequest")) - } - panic(fmt.Errorf("message layer.bridge.MsgClaimDepositRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgClaimDepositRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "layer.bridge.MsgClaimDepositRequest.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "layer.bridge.MsgClaimDepositRequest.deposit_id": - value := x.DepositId - return protoreflect.ValueOfUint64(value) - case "layer.bridge.MsgClaimDepositRequest.index": - value := x.Index - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.MsgClaimDepositRequest")) - } - panic(fmt.Errorf("message layer.bridge.MsgClaimDepositRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgClaimDepositRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "layer.bridge.MsgClaimDepositRequest.creator": - x.Creator = value.Interface().(string) - case "layer.bridge.MsgClaimDepositRequest.deposit_id": - x.DepositId = value.Uint() - case "layer.bridge.MsgClaimDepositRequest.index": - x.Index = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.MsgClaimDepositRequest")) - } - panic(fmt.Errorf("message layer.bridge.MsgClaimDepositRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgClaimDepositRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "layer.bridge.MsgClaimDepositRequest.creator": - panic(fmt.Errorf("field creator of message layer.bridge.MsgClaimDepositRequest is not mutable")) - case "layer.bridge.MsgClaimDepositRequest.deposit_id": - panic(fmt.Errorf("field deposit_id of message layer.bridge.MsgClaimDepositRequest is not mutable")) - case "layer.bridge.MsgClaimDepositRequest.index": - panic(fmt.Errorf("field index of message layer.bridge.MsgClaimDepositRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.MsgClaimDepositRequest")) - } - panic(fmt.Errorf("message layer.bridge.MsgClaimDepositRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgClaimDepositRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "layer.bridge.MsgClaimDepositRequest.creator": - return protoreflect.ValueOfString("") - case "layer.bridge.MsgClaimDepositRequest.deposit_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "layer.bridge.MsgClaimDepositRequest.index": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.MsgClaimDepositRequest")) - } - panic(fmt.Errorf("message layer.bridge.MsgClaimDepositRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgClaimDepositRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in layer.bridge.MsgClaimDepositRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgClaimDepositRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgClaimDepositRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgClaimDepositRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgClaimDepositRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgClaimDepositRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.DepositId != 0 { - n += 1 + runtime.Sov(uint64(x.DepositId)) - } - if x.Index != 0 { - n += 1 + runtime.Sov(uint64(x.Index)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgClaimDepositRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Index != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Index)) - i-- - dAtA[i] = 0x18 - } - if x.DepositId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.DepositId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgClaimDepositRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgClaimDepositRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgClaimDepositRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DepositId", wireType) - } - x.DepositId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.DepositId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) - } - x.Index = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Index |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgClaimDepositResponse protoreflect.MessageDescriptor -) - -func init() { - file_layer_bridge_tx_proto_init() - md_MsgClaimDepositResponse = File_layer_bridge_tx_proto.Messages().ByName("MsgClaimDepositResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgClaimDepositResponse)(nil) - -type fastReflection_MsgClaimDepositResponse MsgClaimDepositResponse - -func (x *MsgClaimDepositResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgClaimDepositResponse)(x) -} - -func (x *MsgClaimDepositResponse) slowProtoReflect() protoreflect.Message { - mi := &file_layer_bridge_tx_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgClaimDepositResponse_messageType fastReflection_MsgClaimDepositResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgClaimDepositResponse_messageType{} - -type fastReflection_MsgClaimDepositResponse_messageType struct{} - -func (x fastReflection_MsgClaimDepositResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgClaimDepositResponse)(nil) -} -func (x fastReflection_MsgClaimDepositResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgClaimDepositResponse) -} -func (x fastReflection_MsgClaimDepositResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgClaimDepositResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgClaimDepositResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgClaimDepositResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgClaimDepositResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgClaimDepositResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgClaimDepositResponse) New() protoreflect.Message { - return new(fastReflection_MsgClaimDepositResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgClaimDepositResponse) Interface() protoreflect.ProtoMessage { - return (*MsgClaimDepositResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgClaimDepositResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgClaimDepositResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.MsgClaimDepositResponse")) - } - panic(fmt.Errorf("message layer.bridge.MsgClaimDepositResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgClaimDepositResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.MsgClaimDepositResponse")) - } - panic(fmt.Errorf("message layer.bridge.MsgClaimDepositResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgClaimDepositResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.MsgClaimDepositResponse")) - } - panic(fmt.Errorf("message layer.bridge.MsgClaimDepositResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgClaimDepositResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.MsgClaimDepositResponse")) - } - panic(fmt.Errorf("message layer.bridge.MsgClaimDepositResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgClaimDepositResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.MsgClaimDepositResponse")) - } - panic(fmt.Errorf("message layer.bridge.MsgClaimDepositResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgClaimDepositResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: layer.bridge.MsgClaimDepositResponse")) - } - panic(fmt.Errorf("message layer.bridge.MsgClaimDepositResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgClaimDepositResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in layer.bridge.MsgClaimDepositResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgClaimDepositResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgClaimDepositResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgClaimDepositResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgClaimDepositResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgClaimDepositResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgClaimDepositResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgClaimDepositResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgClaimDepositResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgClaimDepositResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - var _ protoreflect.List = (*_MsgClaimDepositsRequest_2_list)(nil) type _MsgClaimDepositsRequest_2_list struct { @@ -2826,7 +1954,7 @@ func (x *MsgClaimDepositsRequest) ProtoReflect() protoreflect.Message { } func (x *MsgClaimDepositsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_layer_bridge_tx_proto_msgTypes[6] + mi := &file_layer_bridge_tx_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3508,7 +2636,7 @@ func (x *MsgClaimDepositsResponse) ProtoReflect() protoreflect.Message { } func (x *MsgClaimDepositsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_layer_bridge_tx_proto_msgTypes[7] + mi := &file_layer_bridge_tx_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4013,83 +3141,6 @@ func (*MsgWithdrawTokensResponse) Descriptor() ([]byte, []int) { return file_layer_bridge_tx_proto_rawDescGZIP(), []int{3} } -type MsgClaimDepositRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - DepositId uint64 `protobuf:"varint,2,opt,name=deposit_id,json=depositId,proto3" json:"deposit_id,omitempty"` - Index uint64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` -} - -func (x *MsgClaimDepositRequest) Reset() { - *x = MsgClaimDepositRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_layer_bridge_tx_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgClaimDepositRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgClaimDepositRequest) ProtoMessage() {} - -// Deprecated: Use MsgClaimDepositRequest.ProtoReflect.Descriptor instead. -func (*MsgClaimDepositRequest) Descriptor() ([]byte, []int) { - return file_layer_bridge_tx_proto_rawDescGZIP(), []int{4} -} - -func (x *MsgClaimDepositRequest) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgClaimDepositRequest) GetDepositId() uint64 { - if x != nil { - return x.DepositId - } - return 0 -} - -func (x *MsgClaimDepositRequest) GetIndex() uint64 { - if x != nil { - return x.Index - } - return 0 -} - -type MsgClaimDepositResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgClaimDepositResponse) Reset() { - *x = MsgClaimDepositResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_layer_bridge_tx_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgClaimDepositResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgClaimDepositResponse) ProtoMessage() {} - -// Deprecated: Use MsgClaimDepositResponse.ProtoReflect.Descriptor instead. -func (*MsgClaimDepositResponse) Descriptor() ([]byte, []int) { - return file_layer_bridge_tx_proto_rawDescGZIP(), []int{5} -} - type MsgClaimDepositsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -4103,7 +3154,7 @@ type MsgClaimDepositsRequest struct { func (x *MsgClaimDepositsRequest) Reset() { *x = MsgClaimDepositsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_layer_bridge_tx_proto_msgTypes[6] + mi := &file_layer_bridge_tx_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4117,7 +3168,7 @@ func (*MsgClaimDepositsRequest) ProtoMessage() {} // Deprecated: Use MsgClaimDepositsRequest.ProtoReflect.Descriptor instead. func (*MsgClaimDepositsRequest) Descriptor() ([]byte, []int) { - return file_layer_bridge_tx_proto_rawDescGZIP(), []int{6} + return file_layer_bridge_tx_proto_rawDescGZIP(), []int{4} } func (x *MsgClaimDepositsRequest) GetCreator() string { @@ -4150,7 +3201,7 @@ type MsgClaimDepositsResponse struct { func (x *MsgClaimDepositsResponse) Reset() { *x = MsgClaimDepositsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_layer_bridge_tx_proto_msgTypes[7] + mi := &file_layer_bridge_tx_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4164,7 +3215,7 @@ func (*MsgClaimDepositsResponse) ProtoMessage() {} // Deprecated: Use MsgClaimDepositsResponse.ProtoReflect.Descriptor instead. func (*MsgClaimDepositsResponse) Descriptor() ([]byte, []int) { - return file_layer_bridge_tx_proto_rawDescGZIP(), []int{7} + return file_layer_bridge_tx_proto_rawDescGZIP(), []int{5} } var File_layer_bridge_tx_proto protoreflect.FileDescriptor @@ -4198,61 +3249,46 @@ var file_layer_bridge_tx_proto_rawDesc = []byte{ 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x75, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x44, - 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x6f, 0x73, - 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x64, 0x65, 0x70, - 0x6f, 0x73, 0x69, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x0c, 0x82, 0xe7, - 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, - 0x67, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7c, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x69, - 0x6d, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, - 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x04, 0x52, - 0x0a, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x49, 0x64, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x69, - 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x04, 0x52, 0x07, 0x69, 0x6e, - 0x64, 0x69, 0x63, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x22, 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x44, - 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, - 0x90, 0x03, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x69, 0x0a, 0x13, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, - 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x4d, 0x73, - 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x2c, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, - 0x64, 0x67, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x74, - 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x1f, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, - 0x64, 0x67, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x1a, 0x27, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, - 0x69, 0x64, 0x67, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, - 0x0a, 0x0c, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x24, - 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x4d, 0x73, - 0x67, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, + 0x6e, 0x73, 0x65, 0x22, 0x7c, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x44, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0a, 0x64, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x49, 0x64, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x64, + 0x69, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x04, 0x52, 0x07, 0x69, 0x6e, 0x64, 0x69, + 0x63, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x22, 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x44, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb3, 0x02, + 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x69, 0x0a, 0x13, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x2e, 0x6c, + 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x1a, 0x2c, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, + 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, + 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x5a, 0x0a, 0x0e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x73, 0x12, 0x1f, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, + 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x73, 0x1a, 0x27, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x0d, + 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x12, 0x25, 0x2e, + 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x4d, 0x73, 0x67, + 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x44, 0x65, 0x70, 0x6f, - 0x73, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x0d, 0x43, - 0x6c, 0x61, 0x69, 0x6d, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x12, 0x25, 0x2e, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, - 0x6c, 0x61, 0x69, 0x6d, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, - 0x67, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x44, 0x65, 0x70, 0x6f, 0x73, - 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, - 0x2a, 0x01, 0x42, 0x99, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, - 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, - 0x65, 0x6c, 0x6c, 0x6f, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0xa2, - 0x02, 0x03, 0x4c, 0x42, 0x58, 0xaa, 0x02, 0x0c, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x42, 0x72, - 0x69, 0x64, 0x67, 0x65, 0xca, 0x02, 0x0c, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x5c, 0x42, 0x72, 0x69, - 0x64, 0x67, 0x65, 0xe2, 0x02, 0x18, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x5c, 0x42, 0x72, 0x69, 0x64, - 0x67, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x0d, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x3a, 0x3a, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, + 0xb0, 0x2a, 0x01, 0x42, 0x99, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x61, 0x79, 0x65, + 0x72, 0x2e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x74, 0x65, 0x6c, 0x6c, 0x6f, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, + 0xa2, 0x02, 0x03, 0x4c, 0x42, 0x58, 0xaa, 0x02, 0x0c, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x42, + 0x72, 0x69, 0x64, 0x67, 0x65, 0xca, 0x02, 0x0c, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x5c, 0x42, 0x72, + 0x69, 0x64, 0x67, 0x65, 0xe2, 0x02, 0x18, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x5c, 0x42, 0x72, 0x69, + 0x64, 0x67, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x0d, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x3a, 0x3a, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -4267,30 +3303,26 @@ func file_layer_bridge_tx_proto_rawDescGZIP() []byte { return file_layer_bridge_tx_proto_rawDescData } -var file_layer_bridge_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_layer_bridge_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_layer_bridge_tx_proto_goTypes = []interface{}{ (*MsgRequestAttestations)(nil), // 0: layer.bridge.MsgRequestAttestations (*MsgRequestAttestationsResponse)(nil), // 1: layer.bridge.MsgRequestAttestationsResponse (*MsgWithdrawTokens)(nil), // 2: layer.bridge.MsgWithdrawTokens (*MsgWithdrawTokensResponse)(nil), // 3: layer.bridge.MsgWithdrawTokensResponse - (*MsgClaimDepositRequest)(nil), // 4: layer.bridge.MsgClaimDepositRequest - (*MsgClaimDepositResponse)(nil), // 5: layer.bridge.MsgClaimDepositResponse - (*MsgClaimDepositsRequest)(nil), // 6: layer.bridge.MsgClaimDepositsRequest - (*MsgClaimDepositsResponse)(nil), // 7: layer.bridge.MsgClaimDepositsResponse - (*v1beta1.Coin)(nil), // 8: cosmos.base.v1beta1.Coin + (*MsgClaimDepositsRequest)(nil), // 4: layer.bridge.MsgClaimDepositsRequest + (*MsgClaimDepositsResponse)(nil), // 5: layer.bridge.MsgClaimDepositsResponse + (*v1beta1.Coin)(nil), // 6: cosmos.base.v1beta1.Coin } var file_layer_bridge_tx_proto_depIdxs = []int32{ - 8, // 0: layer.bridge.MsgWithdrawTokens.amount:type_name -> cosmos.base.v1beta1.Coin + 6, // 0: layer.bridge.MsgWithdrawTokens.amount:type_name -> cosmos.base.v1beta1.Coin 0, // 1: layer.bridge.Msg.RequestAttestations:input_type -> layer.bridge.MsgRequestAttestations 2, // 2: layer.bridge.Msg.WithdrawTokens:input_type -> layer.bridge.MsgWithdrawTokens - 4, // 3: layer.bridge.Msg.ClaimDeposit:input_type -> layer.bridge.MsgClaimDepositRequest - 6, // 4: layer.bridge.Msg.ClaimDeposits:input_type -> layer.bridge.MsgClaimDepositsRequest - 1, // 5: layer.bridge.Msg.RequestAttestations:output_type -> layer.bridge.MsgRequestAttestationsResponse - 3, // 6: layer.bridge.Msg.WithdrawTokens:output_type -> layer.bridge.MsgWithdrawTokensResponse - 5, // 7: layer.bridge.Msg.ClaimDeposit:output_type -> layer.bridge.MsgClaimDepositResponse - 7, // 8: layer.bridge.Msg.ClaimDeposits:output_type -> layer.bridge.MsgClaimDepositsResponse - 5, // [5:9] is the sub-list for method output_type - 1, // [1:5] is the sub-list for method input_type + 4, // 3: layer.bridge.Msg.ClaimDeposits:input_type -> layer.bridge.MsgClaimDepositsRequest + 1, // 4: layer.bridge.Msg.RequestAttestations:output_type -> layer.bridge.MsgRequestAttestationsResponse + 3, // 5: layer.bridge.Msg.WithdrawTokens:output_type -> layer.bridge.MsgWithdrawTokensResponse + 5, // 6: layer.bridge.Msg.ClaimDeposits:output_type -> layer.bridge.MsgClaimDepositsResponse + 4, // [4:7] is the sub-list for method output_type + 1, // [1:4] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension extendee 0, // [0:1] is the sub-list for field type_name @@ -4351,30 +3383,6 @@ func file_layer_bridge_tx_proto_init() { } } file_layer_bridge_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgClaimDepositRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer_bridge_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgClaimDepositResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer_bridge_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgClaimDepositsRequest); i { case 0: return &v.state @@ -4386,7 +3394,7 @@ func file_layer_bridge_tx_proto_init() { return nil } } - file_layer_bridge_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_layer_bridge_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgClaimDepositsResponse); i { case 0: return &v.state @@ -4405,7 +3413,7 @@ func file_layer_bridge_tx_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_layer_bridge_tx_proto_rawDesc, NumEnums: 0, - NumMessages: 8, + NumMessages: 6, NumExtensions: 0, NumServices: 1, }, diff --git a/api/layer/bridge/tx_grpc.pb.go b/api/layer/bridge/tx_grpc.pb.go index c0f4c2391..91160a975 100644 --- a/api/layer/bridge/tx_grpc.pb.go +++ b/api/layer/bridge/tx_grpc.pb.go @@ -20,7 +20,6 @@ const _ = grpc.SupportPackageIsVersion7 type MsgClient interface { RequestAttestations(ctx context.Context, in *MsgRequestAttestations, opts ...grpc.CallOption) (*MsgRequestAttestationsResponse, error) WithdrawTokens(ctx context.Context, in *MsgWithdrawTokens, opts ...grpc.CallOption) (*MsgWithdrawTokensResponse, error) - ClaimDeposit(ctx context.Context, in *MsgClaimDepositRequest, opts ...grpc.CallOption) (*MsgClaimDepositResponse, error) ClaimDeposits(ctx context.Context, in *MsgClaimDepositsRequest, opts ...grpc.CallOption) (*MsgClaimDepositsResponse, error) } @@ -50,15 +49,6 @@ func (c *msgClient) WithdrawTokens(ctx context.Context, in *MsgWithdrawTokens, o return out, nil } -func (c *msgClient) ClaimDeposit(ctx context.Context, in *MsgClaimDepositRequest, opts ...grpc.CallOption) (*MsgClaimDepositResponse, error) { - out := new(MsgClaimDepositResponse) - err := c.cc.Invoke(ctx, "/layer.bridge.Msg/ClaimDeposit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *msgClient) ClaimDeposits(ctx context.Context, in *MsgClaimDepositsRequest, opts ...grpc.CallOption) (*MsgClaimDepositsResponse, error) { out := new(MsgClaimDepositsResponse) err := c.cc.Invoke(ctx, "/layer.bridge.Msg/ClaimDeposits", in, out, opts...) @@ -74,7 +64,6 @@ func (c *msgClient) ClaimDeposits(ctx context.Context, in *MsgClaimDepositsReque type MsgServer interface { RequestAttestations(context.Context, *MsgRequestAttestations) (*MsgRequestAttestationsResponse, error) WithdrawTokens(context.Context, *MsgWithdrawTokens) (*MsgWithdrawTokensResponse, error) - ClaimDeposit(context.Context, *MsgClaimDepositRequest) (*MsgClaimDepositResponse, error) ClaimDeposits(context.Context, *MsgClaimDepositsRequest) (*MsgClaimDepositsResponse, error) mustEmbedUnimplementedMsgServer() } @@ -89,9 +78,6 @@ func (UnimplementedMsgServer) RequestAttestations(context.Context, *MsgRequestAt func (UnimplementedMsgServer) WithdrawTokens(context.Context, *MsgWithdrawTokens) (*MsgWithdrawTokensResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method WithdrawTokens not implemented") } -func (UnimplementedMsgServer) ClaimDeposit(context.Context, *MsgClaimDepositRequest) (*MsgClaimDepositResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClaimDeposit not implemented") -} func (UnimplementedMsgServer) ClaimDeposits(context.Context, *MsgClaimDepositsRequest) (*MsgClaimDepositsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ClaimDeposits not implemented") } @@ -144,24 +130,6 @@ func _Msg_WithdrawTokens_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } -func _Msg_ClaimDeposit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgClaimDepositRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ClaimDeposit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/layer.bridge.Msg/ClaimDeposit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ClaimDeposit(ctx, req.(*MsgClaimDepositRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Msg_ClaimDeposits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgClaimDepositsRequest) if err := dec(in); err != nil { @@ -195,10 +163,6 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ MethodName: "WithdrawTokens", Handler: _Msg_WithdrawTokens_Handler, }, - { - MethodName: "ClaimDeposit", - Handler: _Msg_ClaimDeposit_Handler, - }, { MethodName: "ClaimDeposits", Handler: _Msg_ClaimDeposits_Handler, diff --git a/proto/layer/bridge/tx.proto b/proto/layer/bridge/tx.proto index 820c31059..f006b3f79 100644 --- a/proto/layer/bridge/tx.proto +++ b/proto/layer/bridge/tx.proto @@ -13,7 +13,6 @@ service Msg { option (cosmos.msg.v1.service) = true; rpc RequestAttestations(MsgRequestAttestations) returns (MsgRequestAttestationsResponse); rpc WithdrawTokens(MsgWithdrawTokens) returns (MsgWithdrawTokensResponse); - rpc ClaimDeposit(MsgClaimDepositRequest) returns (MsgClaimDepositResponse); rpc ClaimDeposits(MsgClaimDepositsRequest) returns (MsgClaimDepositsResponse); } @@ -37,16 +36,6 @@ message MsgWithdrawTokens { message MsgWithdrawTokensResponse {} -message MsgClaimDepositRequest { - option (cosmos.msg.v1.signer) = "creator"; - - string creator = 1; - uint64 deposit_id = 2; - uint64 index = 3; -} - -message MsgClaimDepositResponse {} - message MsgClaimDepositsRequest { option (cosmos.msg.v1.signer) = "creator"; diff --git a/x/bridge/autocli.go b/x/bridge/autocli.go index ac8f887ac..ebf3881a3 100644 --- a/x/bridge/autocli.go +++ b/x/bridge/autocli.go @@ -96,12 +96,6 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { Short: "Execute the WithdrawTokens RPC method", PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "creator"}, {ProtoField: "recipient"}, {ProtoField: "amount"}}, }, - { - RpcMethod: "ClaimDeposit", - Use: "claim-deposit [creator] [deposit-id] [index]", - Short: "Execute the ClaimDeposit RPC method", - PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "creator"}, {ProtoField: "deposit_id"}, {ProtoField: "index"}}, - }, { RpcMethod: "ClaimDeposits", Use: "claim-deposits [creator] [deposit-ids] [indices]", diff --git a/x/bridge/keeper/msg_server_claim_deposit.go b/x/bridge/keeper/msg_server_claim_deposit.go deleted file mode 100644 index e8dc8310a..000000000 --- a/x/bridge/keeper/msg_server_claim_deposit.go +++ /dev/null @@ -1,27 +0,0 @@ -package keeper - -import ( - "context" - "strconv" - - "github.com/tellor-io/layer/x/bridge/types" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func (k msgServer) ClaimDeposit(goCtx context.Context, msg *types.MsgClaimDepositRequest) (*types.MsgClaimDepositResponse, error) { - sdkCtx := sdk.UnwrapSDKContext(goCtx) - msgSender := sdk.MustAccAddressFromBech32(msg.Creator) - if err := k.Keeper.ClaimDeposit(sdkCtx, msg.DepositId, msg.Index, msgSender); err != nil { - return nil, err - } - - sdk.UnwrapSDKContext(goCtx).EventManager().EmitEvents(sdk.Events{ - sdk.NewEvent( - "deposit_claimed", - sdk.NewAttribute("deposit_id", strconv.FormatUint(msg.DepositId, 10)), - ), - }) - - return &types.MsgClaimDepositResponse{}, nil -} diff --git a/x/bridge/keeper/msg_server_claim_deposit_test.go b/x/bridge/keeper/msg_server_claim_deposits_test.go similarity index 91% rename from x/bridge/keeper/msg_server_claim_deposit_test.go rename to x/bridge/keeper/msg_server_claim_deposits_test.go index a47c2caf1..9599bfdd3 100644 --- a/x/bridge/keeper/msg_server_claim_deposit_test.go +++ b/x/bridge/keeper/msg_server_claim_deposits_test.go @@ -17,12 +17,12 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -func TestMsgClaimDeposit(t *testing.T) { +func TestMsgClaimDeposits(t *testing.T) { k, _, bk, ok, _, _, ctx := setupKeeper(t) msgServer := keeper.NewMsgServerImpl(k) require.Panics(t, func() { - _, err := msgServer.ClaimDeposit(ctx, nil) + _, err := msgServer.ClaimDeposits(ctx, nil) require.Error(t, err) }) @@ -73,10 +73,10 @@ func TestMsgClaimDeposit(t *testing.T) { depositId := uint64(0) reportIndex := uint64(0) - result, err := msgServer.ClaimDeposit(sdkCtx, &bridgetypes.MsgClaimDepositRequest{ - Creator: msgSender.String(), - DepositId: depositId, - Index: reportIndex, + result, err := msgServer.ClaimDeposits(sdkCtx, &bridgetypes.MsgClaimDepositsRequest{ + Creator: msgSender.String(), + DepositIds: []uint64{depositId}, + Indices: []uint64{reportIndex}, }) require.NoError(t, err) require.NotNil(t, result) diff --git a/x/bridge/types/message_claim_deposit.go b/x/bridge/types/message_claim_deposit.go deleted file mode 100644 index 55119d443..000000000 --- a/x/bridge/types/message_claim_deposit.go +++ /dev/null @@ -1,49 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgClaimDeposit = "claim_deposit" - -var _ sdk.Msg = &MsgClaimDepositRequest{} - -func NewMsgClaimDepositRequest(creator string, depositId, reportIndex uint64) *MsgClaimDepositRequest { - return &MsgClaimDepositRequest{ - Creator: creator, - DepositId: depositId, - Index: reportIndex, - } -} - -func (msg *MsgClaimDepositRequest) Route() string { - return RouterKey -} - -func (msg *MsgClaimDepositRequest) Type() string { - return TypeMsgClaimDeposit -} - -func (msg *MsgClaimDepositRequest) GetSigners() []sdk.AccAddress { - creator, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - panic(err) - } - return []sdk.AccAddress{creator} -} - -func (msg *MsgClaimDepositRequest) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgClaimDepositRequest) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/bridge/types/message_claim_deposit_test.go b/x/bridge/types/message_claim_deposit_test.go deleted file mode 100644 index d1b200a60..000000000 --- a/x/bridge/types/message_claim_deposit_test.go +++ /dev/null @@ -1,59 +0,0 @@ -package types - -import ( - "testing" - - "github.com/stretchr/testify/require" - "github.com/tellor-io/layer/testutil/sample" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -func TestMsgClaimDeposit_NewMsgClaimDepositRequest(t *testing.T) { - addr := sample.AccAddress() - msg := NewMsgClaimDepositRequest(addr, 0, 0) - require.Equal(t, msg.Type(), "claim_deposit") - require.Equal(t, msg.Creator, addr) - require.Equal(t, msg.DepositId, uint64(0)) - require.Equal(t, msg.Index, uint64(0)) -} - -func TestMsgClaimDeposit_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgClaimDepositRequest - err error - }{ - { - name: "invalid address", - msg: MsgClaimDepositRequest{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid address", - msg: MsgClaimDepositRequest{ - Creator: sample.AccAddress(), - }, - }, - { - name: "normal data", - msg: MsgClaimDepositRequest{ - Creator: sample.AccAddress(), - DepositId: 1, - Index: 1, - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/bridge/types/tx.pb.go b/x/bridge/types/tx.pb.go index 1aa35caae..780e945ce 100644 --- a/x/bridge/types/tx.pb.go +++ b/x/bridge/types/tx.pb.go @@ -222,102 +222,6 @@ func (m *MsgWithdrawTokensResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgWithdrawTokensResponse proto.InternalMessageInfo -type MsgClaimDepositRequest struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - DepositId uint64 `protobuf:"varint,2,opt,name=deposit_id,json=depositId,proto3" json:"deposit_id,omitempty"` - Index uint64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` -} - -func (m *MsgClaimDepositRequest) Reset() { *m = MsgClaimDepositRequest{} } -func (m *MsgClaimDepositRequest) String() string { return proto.CompactTextString(m) } -func (*MsgClaimDepositRequest) ProtoMessage() {} -func (*MsgClaimDepositRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cb4091a52ebadfca, []int{4} -} -func (m *MsgClaimDepositRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgClaimDepositRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgClaimDepositRequest.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 *MsgClaimDepositRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgClaimDepositRequest.Merge(m, src) -} -func (m *MsgClaimDepositRequest) XXX_Size() int { - return m.Size() -} -func (m *MsgClaimDepositRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MsgClaimDepositRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgClaimDepositRequest proto.InternalMessageInfo - -func (m *MsgClaimDepositRequest) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgClaimDepositRequest) GetDepositId() uint64 { - if m != nil { - return m.DepositId - } - return 0 -} - -func (m *MsgClaimDepositRequest) GetIndex() uint64 { - if m != nil { - return m.Index - } - return 0 -} - -type MsgClaimDepositResponse struct { -} - -func (m *MsgClaimDepositResponse) Reset() { *m = MsgClaimDepositResponse{} } -func (m *MsgClaimDepositResponse) String() string { return proto.CompactTextString(m) } -func (*MsgClaimDepositResponse) ProtoMessage() {} -func (*MsgClaimDepositResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb4091a52ebadfca, []int{5} -} -func (m *MsgClaimDepositResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgClaimDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgClaimDepositResponse.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 *MsgClaimDepositResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgClaimDepositResponse.Merge(m, src) -} -func (m *MsgClaimDepositResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgClaimDepositResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgClaimDepositResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgClaimDepositResponse proto.InternalMessageInfo - type MsgClaimDepositsRequest struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` DepositIds []uint64 `protobuf:"varint,2,rep,packed,name=deposit_ids,json=depositIds,proto3" json:"deposit_ids,omitempty"` @@ -328,7 +232,7 @@ func (m *MsgClaimDepositsRequest) Reset() { *m = MsgClaimDepositsRequest func (m *MsgClaimDepositsRequest) String() string { return proto.CompactTextString(m) } func (*MsgClaimDepositsRequest) ProtoMessage() {} func (*MsgClaimDepositsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cb4091a52ebadfca, []int{6} + return fileDescriptor_cb4091a52ebadfca, []int{4} } func (m *MsgClaimDepositsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -385,7 +289,7 @@ func (m *MsgClaimDepositsResponse) Reset() { *m = MsgClaimDepositsRespon func (m *MsgClaimDepositsResponse) String() string { return proto.CompactTextString(m) } func (*MsgClaimDepositsResponse) ProtoMessage() {} func (*MsgClaimDepositsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb4091a52ebadfca, []int{7} + return fileDescriptor_cb4091a52ebadfca, []int{5} } func (m *MsgClaimDepositsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -419,8 +323,6 @@ func init() { proto.RegisterType((*MsgRequestAttestationsResponse)(nil), "layer.bridge.MsgRequestAttestationsResponse") proto.RegisterType((*MsgWithdrawTokens)(nil), "layer.bridge.MsgWithdrawTokens") proto.RegisterType((*MsgWithdrawTokensResponse)(nil), "layer.bridge.MsgWithdrawTokensResponse") - proto.RegisterType((*MsgClaimDepositRequest)(nil), "layer.bridge.MsgClaimDepositRequest") - proto.RegisterType((*MsgClaimDepositResponse)(nil), "layer.bridge.MsgClaimDepositResponse") proto.RegisterType((*MsgClaimDepositsRequest)(nil), "layer.bridge.MsgClaimDepositsRequest") proto.RegisterType((*MsgClaimDepositsResponse)(nil), "layer.bridge.MsgClaimDepositsResponse") } @@ -428,41 +330,38 @@ func init() { func init() { proto.RegisterFile("layer/bridge/tx.proto", fileDescriptor_cb4091a52ebadfca) } var fileDescriptor_cb4091a52ebadfca = []byte{ - // 541 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0xc7, 0xe3, 0x26, 0x2d, 0x64, 0x1a, 0x90, 0x30, 0x85, 0x3a, 0xa6, 0x38, 0x51, 0xc4, 0x47, - 0xa9, 0xc0, 0x56, 0xca, 0x01, 0x89, 0x1b, 0x0d, 0x97, 0x1e, 0x72, 0xb1, 0x90, 0x90, 0x8a, 0x04, - 0xf2, 0xc7, 0xc8, 0x5d, 0x11, 0x7b, 0x5d, 0xef, 0xba, 0x24, 0x12, 0x07, 0xc4, 0x13, 0x54, 0x3c, - 0x49, 0x1f, 0xa3, 0xc7, 0x1e, 0x39, 0x21, 0x94, 0x1c, 0xfa, 0x1a, 0x28, 0xbb, 0x76, 0xd2, 0xc6, - 0x56, 0xc2, 0xc9, 0x9e, 0x99, 0xff, 0xce, 0xfc, 0x76, 0x76, 0x34, 0xf0, 0x60, 0xe0, 0x8c, 0x30, - 0xb1, 0xdc, 0x84, 0xf8, 0x01, 0x5a, 0x7c, 0x68, 0xc6, 0x09, 0xe5, 0x54, 0x6d, 0x08, 0xb7, 0x29, - 0xdd, 0xba, 0xe1, 0x51, 0x16, 0x52, 0x66, 0xb9, 0x0e, 0x43, 0xeb, 0xb4, 0xeb, 0x22, 0x77, 0xba, - 0x96, 0x47, 0x49, 0x24, 0xd5, 0xfa, 0x76, 0x16, 0x0f, 0x59, 0x60, 0x9d, 0x76, 0xa7, 0x9f, 0x2c, - 0xb0, 0x15, 0xd0, 0x80, 0x8a, 0x5f, 0x6b, 0xfa, 0x27, 0xbd, 0x9d, 0x11, 0x3c, 0xec, 0xb3, 0xc0, - 0xc6, 0x93, 0x14, 0x19, 0x7f, 0xc7, 0x39, 0x32, 0xee, 0x70, 0x42, 0x23, 0xa6, 0x6a, 0x70, 0xcb, - 0x4b, 0xd0, 0xe1, 0x34, 0xd1, 0x94, 0xb6, 0xb2, 0x5b, 0xb7, 0x73, 0x53, 0x6d, 0xc2, 0xed, 0x93, - 0x14, 0x93, 0xd1, 0x17, 0xe2, 0x6b, 0x6b, 0x32, 0x24, 0xec, 0x43, 0x5f, 0xdd, 0x81, 0x3a, 0x27, - 0xe1, 0x34, 0x49, 0x18, 0x6b, 0x55, 0x11, 0x9b, 0x3b, 0xde, 0x36, 0x7e, 0x5e, 0x9d, 0xef, 0xe5, - 0x69, 0x3a, 0x6d, 0x30, 0xca, 0x4b, 0xdb, 0xc8, 0x62, 0x1a, 0x31, 0xec, 0xfc, 0x52, 0xe0, 0x5e, - 0x9f, 0x05, 0x1f, 0x09, 0x3f, 0xf6, 0x13, 0xe7, 0xdb, 0x07, 0xfa, 0x15, 0x97, 0x82, 0xed, 0x40, - 0x3d, 0x41, 0x8f, 0xc4, 0x04, 0x23, 0x9e, 0x91, 0xcd, 0x1d, 0xea, 0x1b, 0xd8, 0x70, 0x42, 0x9a, - 0x46, 0x5c, 0x80, 0x6d, 0xee, 0x37, 0x4d, 0xd9, 0x2a, 0x73, 0xda, 0x4a, 0x33, 0x6b, 0xa5, 0xd9, - 0xa3, 0x24, 0x3a, 0xa8, 0x5d, 0xfc, 0x69, 0x55, 0xec, 0x4c, 0xbe, 0x80, 0xfd, 0x08, 0x9a, 0x05, - 0xa6, 0x19, 0x71, 0x2a, 0xda, 0xd9, 0x1b, 0x38, 0x24, 0x7c, 0x8f, 0x31, 0x65, 0x84, 0x67, 0xf7, - 0x5b, 0x42, 0xfd, 0x18, 0xc0, 0x97, 0xda, 0xbc, 0xa1, 0x35, 0xbb, 0x9e, 0x79, 0x0e, 0x7d, 0x75, - 0x0b, 0xd6, 0x49, 0xe4, 0xe3, 0x50, 0x50, 0xd7, 0x6c, 0x69, 0x2c, 0x30, 0x35, 0x61, 0xbb, 0x50, - 0x36, 0x23, 0xfa, 0x5e, 0x08, 0xb1, 0xd5, 0x48, 0x2d, 0xd8, 0x9c, 0x23, 0x31, 0x6d, 0xad, 0x5d, - 0xdd, 0xad, 0xd9, 0x30, 0x63, 0x12, 0x6f, 0x40, 0x22, 0x9f, 0x78, 0xc8, 0xb4, 0xaa, 0x08, 0xe6, - 0xe6, 0x02, 0x98, 0x0e, 0x5a, 0xb1, 0xba, 0x24, 0xdb, 0x3f, 0xab, 0x42, 0xb5, 0xcf, 0x02, 0x95, - 0xc0, 0xfd, 0xb2, 0xf9, 0x7b, 0x62, 0x5e, 0x9f, 0x7b, 0xb3, 0x7c, 0x54, 0xf4, 0x97, 0xff, 0xa3, - 0xca, 0x4b, 0xaa, 0x47, 0x70, 0x77, 0x61, 0x98, 0x5a, 0x85, 0xf3, 0x37, 0x05, 0xfa, 0xf3, 0x15, - 0x82, 0x59, 0xee, 0x4f, 0xd0, 0xb8, 0x7e, 0xcf, 0x12, 0xfe, 0x92, 0xb1, 0xd0, 0x9f, 0xae, 0x50, - 0x65, 0xc9, 0x3f, 0xc3, 0x9d, 0x1b, 0x4d, 0x54, 0x97, 0x9f, 0xcb, 0x9f, 0x58, 0x7f, 0xb6, 0x4a, - 0x26, 0xf3, 0xeb, 0xeb, 0x3f, 0xae, 0xce, 0xf7, 0x94, 0x83, 0xde, 0xc5, 0xd8, 0x50, 0x2e, 0xc7, - 0x86, 0xf2, 0x77, 0x6c, 0x28, 0x67, 0x13, 0xa3, 0x72, 0x39, 0x31, 0x2a, 0xbf, 0x27, 0x46, 0xe5, - 0xe8, 0x45, 0x40, 0xf8, 0x71, 0xea, 0x9a, 0x1e, 0x0d, 0x2d, 0x8e, 0x83, 0x01, 0x4d, 0x5e, 0x11, - 0x6a, 0xc9, 0x85, 0x35, 0x9c, 0xad, 0xac, 0x51, 0x8c, 0xcc, 0xdd, 0x10, 0x9b, 0xe5, 0xf5, 0xbf, - 0x00, 0x00, 0x00, 0xff, 0xff, 0xec, 0xbb, 0x42, 0x12, 0xcf, 0x04, 0x00, 0x00, + // 495 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0x8e, 0x9b, 0x52, 0xc8, 0xb4, 0x20, 0x61, 0x7e, 0xea, 0x98, 0xca, 0x89, 0x22, 0x7e, 0x4a, + 0x05, 0x5e, 0xa5, 0x1c, 0x90, 0xb8, 0xd1, 0x70, 0xe9, 0x21, 0x17, 0x0b, 0x09, 0xa9, 0x07, 0x2a, + 0xff, 0x8c, 0xb6, 0x2b, 0x62, 0xaf, 0xbb, 0xb3, 0x29, 0x8d, 0xc4, 0x01, 0xf1, 0x04, 0x88, 0x27, + 0xa9, 0xc4, 0x4b, 0xf4, 0xd8, 0x23, 0x27, 0x84, 0x92, 0x43, 0x5f, 0x03, 0xc5, 0xeb, 0xa4, 0x34, + 0x89, 0x5a, 0x4e, 0xde, 0xfd, 0xbe, 0x6f, 0x67, 0xbe, 0x99, 0xf1, 0xc0, 0x83, 0x5e, 0x38, 0x40, + 0xc5, 0x22, 0x25, 0x12, 0x8e, 0x4c, 0x1f, 0xfb, 0xb9, 0x92, 0x5a, 0xda, 0x6b, 0x05, 0xec, 0x1b, + 0xd8, 0xf5, 0x62, 0x49, 0xa9, 0x24, 0x16, 0x85, 0x84, 0xec, 0xa8, 0x1d, 0xa1, 0x0e, 0xdb, 0x2c, + 0x96, 0x22, 0x33, 0x6a, 0x77, 0xbd, 0xe4, 0x53, 0xe2, 0xec, 0xa8, 0x3d, 0xfe, 0x94, 0xc4, 0x7d, + 0x2e, 0xb9, 0x2c, 0x8e, 0x6c, 0x7c, 0x32, 0x68, 0x6b, 0x00, 0x0f, 0xbb, 0xc4, 0x03, 0x3c, 0xec, + 0x23, 0xe9, 0xb7, 0x5a, 0x23, 0xe9, 0x50, 0x0b, 0x99, 0x91, 0xed, 0xc0, 0xcd, 0x58, 0x61, 0xa8, + 0xa5, 0x72, 0xac, 0xa6, 0xb5, 0x59, 0x0b, 0x26, 0x57, 0xbb, 0x0e, 0xb7, 0x0e, 0xfb, 0xa8, 0x06, + 0xfb, 0x22, 0x71, 0x96, 0x0c, 0x55, 0xdc, 0x77, 0x13, 0x7b, 0x03, 0x6a, 0x5a, 0xa4, 0xe3, 0x20, + 0x69, 0xee, 0x54, 0x0b, 0xee, 0x02, 0x78, 0xb3, 0xf6, 0xed, 0xfc, 0x64, 0x6b, 0x12, 0xa6, 0xd5, + 0x04, 0x6f, 0x71, 0xea, 0x00, 0x29, 0x97, 0x19, 0x61, 0xeb, 0x87, 0x05, 0x77, 0xbb, 0xc4, 0x3f, + 0x08, 0x7d, 0x90, 0xa8, 0xf0, 0xf3, 0x7b, 0xf9, 0x09, 0xaf, 0x34, 0xb6, 0x01, 0x35, 0x85, 0xb1, + 0xc8, 0x05, 0x66, 0xba, 0x74, 0x76, 0x01, 0xd8, 0xaf, 0x61, 0x25, 0x4c, 0x65, 0x3f, 0xd3, 0x85, + 0xb1, 0xd5, 0xed, 0xba, 0x6f, 0x5a, 0xe5, 0x8f, 0x5b, 0xe9, 0x97, 0xad, 0xf4, 0x3b, 0x52, 0x64, + 0x3b, 0xcb, 0xa7, 0xbf, 0x1b, 0x95, 0xa0, 0x94, 0xcf, 0xd8, 0x7e, 0x04, 0xf5, 0x39, 0x4f, 0x53, + 0xc7, 0x5f, 0x60, 0xbd, 0x4b, 0xbc, 0xd3, 0x0b, 0x45, 0xfa, 0x0e, 0x73, 0x49, 0x42, 0x53, 0x59, + 0xe0, 0x15, 0xb6, 0x1b, 0xb0, 0x9a, 0x18, 0xf1, 0xbe, 0x48, 0xc8, 0x59, 0x6a, 0x56, 0x37, 0x97, + 0x03, 0x28, 0xa1, 0xdd, 0xa4, 0xa8, 0x58, 0x64, 0x89, 0x88, 0x91, 0x9c, 0x6a, 0x41, 0x4e, 0xae, + 0x33, 0xd6, 0x5c, 0x70, 0xe6, 0xb3, 0x1b, 0x67, 0xdb, 0x3f, 0x97, 0xa0, 0xda, 0x25, 0x6e, 0x0b, + 0xb8, 0xb7, 0x68, 0xda, 0x8f, 0xfd, 0x7f, 0xff, 0x32, 0x7f, 0xf1, 0x60, 0xdc, 0x17, 0xff, 0xa3, + 0x9a, 0xa4, 0xb4, 0xf7, 0xe0, 0xce, 0xcc, 0xe8, 0x1a, 0x73, 0xef, 0x2f, 0x0b, 0xdc, 0x67, 0xd7, + 0x08, 0xa6, 0xb1, 0x3f, 0xc2, 0xed, 0x4b, 0x75, 0xda, 0x4f, 0xe6, 0x5e, 0x2e, 0x9a, 0x82, 0xfb, + 0xf4, 0x3a, 0x99, 0x89, 0xef, 0xde, 0xf8, 0x7a, 0x7e, 0xb2, 0x65, 0xed, 0x74, 0x4e, 0x87, 0x9e, + 0x75, 0x36, 0xf4, 0xac, 0x3f, 0x43, 0xcf, 0xfa, 0x3e, 0xf2, 0x2a, 0x67, 0x23, 0xaf, 0xf2, 0x6b, + 0xe4, 0x55, 0xf6, 0x9e, 0x73, 0xa1, 0x0f, 0xfa, 0x91, 0x1f, 0xcb, 0x94, 0x69, 0xec, 0xf5, 0xa4, + 0x7a, 0x29, 0x24, 0x33, 0x1b, 0x7c, 0x3c, 0xdd, 0xe1, 0x41, 0x8e, 0x14, 0xad, 0x14, 0xab, 0xf6, + 0xea, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x31, 0xb7, 0xd8, 0x32, 0xe0, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -479,7 +378,6 @@ const _ = grpc.SupportPackageIsVersion4 type MsgClient interface { RequestAttestations(ctx context.Context, in *MsgRequestAttestations, opts ...grpc.CallOption) (*MsgRequestAttestationsResponse, error) WithdrawTokens(ctx context.Context, in *MsgWithdrawTokens, opts ...grpc.CallOption) (*MsgWithdrawTokensResponse, error) - ClaimDeposit(ctx context.Context, in *MsgClaimDepositRequest, opts ...grpc.CallOption) (*MsgClaimDepositResponse, error) ClaimDeposits(ctx context.Context, in *MsgClaimDepositsRequest, opts ...grpc.CallOption) (*MsgClaimDepositsResponse, error) } @@ -509,15 +407,6 @@ func (c *msgClient) WithdrawTokens(ctx context.Context, in *MsgWithdrawTokens, o return out, nil } -func (c *msgClient) ClaimDeposit(ctx context.Context, in *MsgClaimDepositRequest, opts ...grpc.CallOption) (*MsgClaimDepositResponse, error) { - out := new(MsgClaimDepositResponse) - err := c.cc.Invoke(ctx, "/layer.bridge.Msg/ClaimDeposit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *msgClient) ClaimDeposits(ctx context.Context, in *MsgClaimDepositsRequest, opts ...grpc.CallOption) (*MsgClaimDepositsResponse, error) { out := new(MsgClaimDepositsResponse) err := c.cc.Invoke(ctx, "/layer.bridge.Msg/ClaimDeposits", in, out, opts...) @@ -531,7 +420,6 @@ func (c *msgClient) ClaimDeposits(ctx context.Context, in *MsgClaimDepositsReque type MsgServer interface { RequestAttestations(context.Context, *MsgRequestAttestations) (*MsgRequestAttestationsResponse, error) WithdrawTokens(context.Context, *MsgWithdrawTokens) (*MsgWithdrawTokensResponse, error) - ClaimDeposit(context.Context, *MsgClaimDepositRequest) (*MsgClaimDepositResponse, error) ClaimDeposits(context.Context, *MsgClaimDepositsRequest) (*MsgClaimDepositsResponse, error) } @@ -545,9 +433,6 @@ func (*UnimplementedMsgServer) RequestAttestations(ctx context.Context, req *Msg func (*UnimplementedMsgServer) WithdrawTokens(ctx context.Context, req *MsgWithdrawTokens) (*MsgWithdrawTokensResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method WithdrawTokens not implemented") } -func (*UnimplementedMsgServer) ClaimDeposit(ctx context.Context, req *MsgClaimDepositRequest) (*MsgClaimDepositResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClaimDeposit not implemented") -} func (*UnimplementedMsgServer) ClaimDeposits(ctx context.Context, req *MsgClaimDepositsRequest) (*MsgClaimDepositsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ClaimDeposits not implemented") } @@ -592,24 +477,6 @@ func _Msg_WithdrawTokens_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } -func _Msg_ClaimDeposit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgClaimDepositRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ClaimDeposit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/layer.bridge.Msg/ClaimDeposit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ClaimDeposit(ctx, req.(*MsgClaimDepositRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Msg_ClaimDeposits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgClaimDepositsRequest) if err := dec(in); err != nil { @@ -640,10 +507,6 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "WithdrawTokens", Handler: _Msg_WithdrawTokens_Handler, }, - { - MethodName: "ClaimDeposit", - Handler: _Msg_ClaimDeposit_Handler, - }, { MethodName: "ClaimDeposits", Handler: _Msg_ClaimDeposits_Handler, @@ -790,69 +653,6 @@ func (m *MsgWithdrawTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *MsgClaimDepositRequest) 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 *MsgClaimDepositRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgClaimDepositRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Index != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x18 - } - if m.DepositId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.DepositId)) - i-- - dAtA[i] = 0x10 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgClaimDepositResponse) 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 *MsgClaimDepositResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgClaimDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - func (m *MsgClaimDepositsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1011,34 +811,6 @@ func (m *MsgWithdrawTokensResponse) Size() (n int) { return n } -func (m *MsgClaimDepositRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.DepositId != 0 { - n += 1 + sovTx(uint64(m.DepositId)) - } - if m.Index != 0 { - n += 1 + sovTx(uint64(m.Index)) - } - return n -} - -func (m *MsgClaimDepositResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - func (m *MsgClaimDepositsRequest) Size() (n int) { if m == nil { return 0 @@ -1474,176 +1246,6 @@ func (m *MsgWithdrawTokensResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgClaimDepositRequest) 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 ErrIntOverflowTx - } - 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: MsgClaimDepositRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgClaimDepositRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - 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 ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositId", wireType) - } - m.DepositId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DepositId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) - } - m.Index = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Index |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgClaimDepositResponse) 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 ErrIntOverflowTx - } - 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: MsgClaimDepositResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgClaimDepositResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *MsgClaimDepositsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0