From 5add900ed6a46ef5253318861350c9889d3faa0d Mon Sep 17 00:00:00 2001 From: satawatnack Date: Mon, 27 Jan 2025 22:59:19 +0700 Subject: [PATCH] clean up --- api/band/tunnel/v1beta1/tunnel.pulsar.go | 3634 +++++++++++----------- proto/band/tunnel/v1beta1/tunnel.proto | 56 +- scripts/tunnel/create_router_tunnel.sh | 2 +- x/tunnel/client/cli/tx.go | 4 +- x/tunnel/types/tunnel.pb.go | 1395 ++++----- 5 files changed, 2546 insertions(+), 2545 deletions(-) diff --git a/api/band/tunnel/v1beta1/tunnel.pulsar.go b/api/band/tunnel/v1beta1/tunnel.pulsar.go index 1e313b316..a6b49b57c 100644 --- a/api/band/tunnel/v1beta1/tunnel.pulsar.go +++ b/api/band/tunnel/v1beta1/tunnel.pulsar.go @@ -18,30 +18,146 @@ import ( sync "sync" ) +var _ protoreflect.List = (*_Tunnel_5_list)(nil) + +type _Tunnel_5_list struct { + list *[]*SignalDeviation +} + +func (x *_Tunnel_5_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_Tunnel_5_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_Tunnel_5_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*SignalDeviation) + (*x.list)[i] = concreteValue +} + +func (x *_Tunnel_5_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*SignalDeviation) + *x.list = append(*x.list, concreteValue) +} + +func (x *_Tunnel_5_list) AppendMutable() protoreflect.Value { + v := new(SignalDeviation) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_Tunnel_5_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_Tunnel_5_list) NewElement() protoreflect.Value { + v := new(SignalDeviation) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_Tunnel_5_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_Tunnel_7_list)(nil) + +type _Tunnel_7_list struct { + list *[]*v1beta1.Coin +} + +func (x *_Tunnel_7_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_Tunnel_7_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_Tunnel_7_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) + (*x.list)[i] = concreteValue +} + +func (x *_Tunnel_7_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) + *x.list = append(*x.list, concreteValue) +} + +func (x *_Tunnel_7_list) AppendMutable() protoreflect.Value { + v := new(v1beta1.Coin) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_Tunnel_7_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_Tunnel_7_list) NewElement() protoreflect.Value { + v := new(v1beta1.Coin) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_Tunnel_7_list) IsValid() bool { + return x.list != nil +} + var ( - md_SignalDeviation protoreflect.MessageDescriptor - fd_SignalDeviation_signal_id protoreflect.FieldDescriptor - fd_SignalDeviation_soft_deviation_bps protoreflect.FieldDescriptor - fd_SignalDeviation_hard_deviation_bps protoreflect.FieldDescriptor + md_Tunnel protoreflect.MessageDescriptor + fd_Tunnel_id protoreflect.FieldDescriptor + fd_Tunnel_sequence protoreflect.FieldDescriptor + fd_Tunnel_route protoreflect.FieldDescriptor + fd_Tunnel_fee_payer protoreflect.FieldDescriptor + fd_Tunnel_signal_deviations protoreflect.FieldDescriptor + fd_Tunnel_interval protoreflect.FieldDescriptor + fd_Tunnel_total_deposit protoreflect.FieldDescriptor + fd_Tunnel_is_active protoreflect.FieldDescriptor + fd_Tunnel_created_at protoreflect.FieldDescriptor + fd_Tunnel_creator protoreflect.FieldDescriptor ) func init() { file_band_tunnel_v1beta1_tunnel_proto_init() - md_SignalDeviation = File_band_tunnel_v1beta1_tunnel_proto.Messages().ByName("SignalDeviation") - fd_SignalDeviation_signal_id = md_SignalDeviation.Fields().ByName("signal_id") - fd_SignalDeviation_soft_deviation_bps = md_SignalDeviation.Fields().ByName("soft_deviation_bps") - fd_SignalDeviation_hard_deviation_bps = md_SignalDeviation.Fields().ByName("hard_deviation_bps") + md_Tunnel = File_band_tunnel_v1beta1_tunnel_proto.Messages().ByName("Tunnel") + fd_Tunnel_id = md_Tunnel.Fields().ByName("id") + fd_Tunnel_sequence = md_Tunnel.Fields().ByName("sequence") + fd_Tunnel_route = md_Tunnel.Fields().ByName("route") + fd_Tunnel_fee_payer = md_Tunnel.Fields().ByName("fee_payer") + fd_Tunnel_signal_deviations = md_Tunnel.Fields().ByName("signal_deviations") + fd_Tunnel_interval = md_Tunnel.Fields().ByName("interval") + fd_Tunnel_total_deposit = md_Tunnel.Fields().ByName("total_deposit") + fd_Tunnel_is_active = md_Tunnel.Fields().ByName("is_active") + fd_Tunnel_created_at = md_Tunnel.Fields().ByName("created_at") + fd_Tunnel_creator = md_Tunnel.Fields().ByName("creator") } -var _ protoreflect.Message = (*fastReflection_SignalDeviation)(nil) +var _ protoreflect.Message = (*fastReflection_Tunnel)(nil) -type fastReflection_SignalDeviation SignalDeviation +type fastReflection_Tunnel Tunnel -func (x *SignalDeviation) ProtoReflect() protoreflect.Message { - return (*fastReflection_SignalDeviation)(x) +func (x *Tunnel) ProtoReflect() protoreflect.Message { + return (*fastReflection_Tunnel)(x) } -func (x *SignalDeviation) slowProtoReflect() protoreflect.Message { +func (x *Tunnel) slowProtoReflect() protoreflect.Message { mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -53,43 +169,43 @@ func (x *SignalDeviation) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_SignalDeviation_messageType fastReflection_SignalDeviation_messageType -var _ protoreflect.MessageType = fastReflection_SignalDeviation_messageType{} +var _fastReflection_Tunnel_messageType fastReflection_Tunnel_messageType +var _ protoreflect.MessageType = fastReflection_Tunnel_messageType{} -type fastReflection_SignalDeviation_messageType struct{} +type fastReflection_Tunnel_messageType struct{} -func (x fastReflection_SignalDeviation_messageType) Zero() protoreflect.Message { - return (*fastReflection_SignalDeviation)(nil) +func (x fastReflection_Tunnel_messageType) Zero() protoreflect.Message { + return (*fastReflection_Tunnel)(nil) } -func (x fastReflection_SignalDeviation_messageType) New() protoreflect.Message { - return new(fastReflection_SignalDeviation) +func (x fastReflection_Tunnel_messageType) New() protoreflect.Message { + return new(fastReflection_Tunnel) } -func (x fastReflection_SignalDeviation_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_SignalDeviation +func (x fastReflection_Tunnel_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Tunnel } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_SignalDeviation) Descriptor() protoreflect.MessageDescriptor { - return md_SignalDeviation +func (x *fastReflection_Tunnel) Descriptor() protoreflect.MessageDescriptor { + return md_Tunnel } // 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_SignalDeviation) Type() protoreflect.MessageType { - return _fastReflection_SignalDeviation_messageType +func (x *fastReflection_Tunnel) Type() protoreflect.MessageType { + return _fastReflection_Tunnel_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_SignalDeviation) New() protoreflect.Message { - return new(fastReflection_SignalDeviation) +func (x *fastReflection_Tunnel) New() protoreflect.Message { + return new(fastReflection_Tunnel) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_SignalDeviation) Interface() protoreflect.ProtoMessage { - return (*SignalDeviation)(x) +func (x *fastReflection_Tunnel) Interface() protoreflect.ProtoMessage { + return (*Tunnel)(x) } // Range iterates over every populated field in an undefined order, @@ -97,22 +213,64 @@ func (x *fastReflection_SignalDeviation) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_SignalDeviation) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.SignalId != "" { - value := protoreflect.ValueOfString(x.SignalId) - if !f(fd_SignalDeviation_signal_id, value) { +func (x *fastReflection_Tunnel) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Id != uint64(0) { + value := protoreflect.ValueOfUint64(x.Id) + if !f(fd_Tunnel_id, value) { return } } - if x.SoftDeviationBps != uint64(0) { - value := protoreflect.ValueOfUint64(x.SoftDeviationBps) - if !f(fd_SignalDeviation_soft_deviation_bps, value) { + if x.Sequence != uint64(0) { + value := protoreflect.ValueOfUint64(x.Sequence) + if !f(fd_Tunnel_sequence, value) { return } } - if x.HardDeviationBps != uint64(0) { - value := protoreflect.ValueOfUint64(x.HardDeviationBps) - if !f(fd_SignalDeviation_hard_deviation_bps, value) { + if x.Route != nil { + value := protoreflect.ValueOfMessage(x.Route.ProtoReflect()) + if !f(fd_Tunnel_route, value) { + return + } + } + if x.FeePayer != "" { + value := protoreflect.ValueOfString(x.FeePayer) + if !f(fd_Tunnel_fee_payer, value) { + return + } + } + if len(x.SignalDeviations) != 0 { + value := protoreflect.ValueOfList(&_Tunnel_5_list{list: &x.SignalDeviations}) + if !f(fd_Tunnel_signal_deviations, value) { + return + } + } + if x.Interval != uint64(0) { + value := protoreflect.ValueOfUint64(x.Interval) + if !f(fd_Tunnel_interval, value) { + return + } + } + if len(x.TotalDeposit) != 0 { + value := protoreflect.ValueOfList(&_Tunnel_7_list{list: &x.TotalDeposit}) + if !f(fd_Tunnel_total_deposit, value) { + return + } + } + if x.IsActive != false { + value := protoreflect.ValueOfBool(x.IsActive) + if !f(fd_Tunnel_is_active, value) { + return + } + } + if x.CreatedAt != int64(0) { + value := protoreflect.ValueOfInt64(x.CreatedAt) + if !f(fd_Tunnel_created_at, value) { + return + } + } + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_Tunnel_creator, value) { return } } @@ -129,41 +287,69 @@ func (x *fastReflection_SignalDeviation) Range(f func(protoreflect.FieldDescript // 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_SignalDeviation) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_Tunnel) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "band.tunnel.v1beta1.SignalDeviation.signal_id": - return x.SignalId != "" - case "band.tunnel.v1beta1.SignalDeviation.soft_deviation_bps": - return x.SoftDeviationBps != uint64(0) - case "band.tunnel.v1beta1.SignalDeviation.hard_deviation_bps": - return x.HardDeviationBps != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.SignalDeviation")) - } - panic(fmt.Errorf("message band.tunnel.v1beta1.SignalDeviation does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// + case "band.tunnel.v1beta1.Tunnel.id": + return x.Id != uint64(0) + case "band.tunnel.v1beta1.Tunnel.sequence": + return x.Sequence != uint64(0) + case "band.tunnel.v1beta1.Tunnel.route": + return x.Route != nil + case "band.tunnel.v1beta1.Tunnel.fee_payer": + return x.FeePayer != "" + case "band.tunnel.v1beta1.Tunnel.signal_deviations": + return len(x.SignalDeviations) != 0 + case "band.tunnel.v1beta1.Tunnel.interval": + return x.Interval != uint64(0) + case "band.tunnel.v1beta1.Tunnel.total_deposit": + return len(x.TotalDeposit) != 0 + case "band.tunnel.v1beta1.Tunnel.is_active": + return x.IsActive != false + case "band.tunnel.v1beta1.Tunnel.created_at": + return x.CreatedAt != int64(0) + case "band.tunnel.v1beta1.Tunnel.creator": + return x.Creator != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Tunnel")) + } + panic(fmt.Errorf("message band.tunnel.v1beta1.Tunnel 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_SignalDeviation) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_Tunnel) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "band.tunnel.v1beta1.SignalDeviation.signal_id": - x.SignalId = "" - case "band.tunnel.v1beta1.SignalDeviation.soft_deviation_bps": - x.SoftDeviationBps = uint64(0) - case "band.tunnel.v1beta1.SignalDeviation.hard_deviation_bps": - x.HardDeviationBps = uint64(0) + case "band.tunnel.v1beta1.Tunnel.id": + x.Id = uint64(0) + case "band.tunnel.v1beta1.Tunnel.sequence": + x.Sequence = uint64(0) + case "band.tunnel.v1beta1.Tunnel.route": + x.Route = nil + case "band.tunnel.v1beta1.Tunnel.fee_payer": + x.FeePayer = "" + case "band.tunnel.v1beta1.Tunnel.signal_deviations": + x.SignalDeviations = nil + case "band.tunnel.v1beta1.Tunnel.interval": + x.Interval = uint64(0) + case "band.tunnel.v1beta1.Tunnel.total_deposit": + x.TotalDeposit = nil + case "band.tunnel.v1beta1.Tunnel.is_active": + x.IsActive = false + case "band.tunnel.v1beta1.Tunnel.created_at": + x.CreatedAt = int64(0) + case "band.tunnel.v1beta1.Tunnel.creator": + x.Creator = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.SignalDeviation")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Tunnel")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.SignalDeviation does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Tunnel does not contain field %s", fd.FullName())) } } @@ -173,22 +359,49 @@ func (x *fastReflection_SignalDeviation) Clear(fd protoreflect.FieldDescriptor) // 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_SignalDeviation) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Tunnel) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "band.tunnel.v1beta1.SignalDeviation.signal_id": - value := x.SignalId - return protoreflect.ValueOfString(value) - case "band.tunnel.v1beta1.SignalDeviation.soft_deviation_bps": - value := x.SoftDeviationBps + case "band.tunnel.v1beta1.Tunnel.id": + value := x.Id return protoreflect.ValueOfUint64(value) - case "band.tunnel.v1beta1.SignalDeviation.hard_deviation_bps": - value := x.HardDeviationBps + case "band.tunnel.v1beta1.Tunnel.sequence": + value := x.Sequence + return protoreflect.ValueOfUint64(value) + case "band.tunnel.v1beta1.Tunnel.route": + value := x.Route + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "band.tunnel.v1beta1.Tunnel.fee_payer": + value := x.FeePayer + return protoreflect.ValueOfString(value) + case "band.tunnel.v1beta1.Tunnel.signal_deviations": + if len(x.SignalDeviations) == 0 { + return protoreflect.ValueOfList(&_Tunnel_5_list{}) + } + listValue := &_Tunnel_5_list{list: &x.SignalDeviations} + return protoreflect.ValueOfList(listValue) + case "band.tunnel.v1beta1.Tunnel.interval": + value := x.Interval return protoreflect.ValueOfUint64(value) + case "band.tunnel.v1beta1.Tunnel.total_deposit": + if len(x.TotalDeposit) == 0 { + return protoreflect.ValueOfList(&_Tunnel_7_list{}) + } + listValue := &_Tunnel_7_list{list: &x.TotalDeposit} + return protoreflect.ValueOfList(listValue) + case "band.tunnel.v1beta1.Tunnel.is_active": + value := x.IsActive + return protoreflect.ValueOfBool(value) + case "band.tunnel.v1beta1.Tunnel.created_at": + value := x.CreatedAt + return protoreflect.ValueOfInt64(value) + case "band.tunnel.v1beta1.Tunnel.creator": + value := x.Creator + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.SignalDeviation")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Tunnel")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.SignalDeviation does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Tunnel does not contain field %s", descriptor.FullName())) } } @@ -202,19 +415,37 @@ func (x *fastReflection_SignalDeviation) Get(descriptor protoreflect.FieldDescri // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SignalDeviation) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_Tunnel) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "band.tunnel.v1beta1.SignalDeviation.signal_id": - x.SignalId = value.Interface().(string) - case "band.tunnel.v1beta1.SignalDeviation.soft_deviation_bps": - x.SoftDeviationBps = value.Uint() - case "band.tunnel.v1beta1.SignalDeviation.hard_deviation_bps": - x.HardDeviationBps = value.Uint() + case "band.tunnel.v1beta1.Tunnel.id": + x.Id = value.Uint() + case "band.tunnel.v1beta1.Tunnel.sequence": + x.Sequence = value.Uint() + case "band.tunnel.v1beta1.Tunnel.route": + x.Route = value.Message().Interface().(*anypb.Any) + case "band.tunnel.v1beta1.Tunnel.fee_payer": + x.FeePayer = value.Interface().(string) + case "band.tunnel.v1beta1.Tunnel.signal_deviations": + lv := value.List() + clv := lv.(*_Tunnel_5_list) + x.SignalDeviations = *clv.list + case "band.tunnel.v1beta1.Tunnel.interval": + x.Interval = value.Uint() + case "band.tunnel.v1beta1.Tunnel.total_deposit": + lv := value.List() + clv := lv.(*_Tunnel_7_list) + x.TotalDeposit = *clv.list + case "band.tunnel.v1beta1.Tunnel.is_active": + x.IsActive = value.Bool() + case "band.tunnel.v1beta1.Tunnel.created_at": + x.CreatedAt = value.Int() + case "band.tunnel.v1beta1.Tunnel.creator": + x.Creator = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.SignalDeviation")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Tunnel")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.SignalDeviation does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Tunnel does not contain field %s", fd.FullName())) } } @@ -228,48 +459,90 @@ func (x *fastReflection_SignalDeviation) Set(fd protoreflect.FieldDescriptor, va // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SignalDeviation) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Tunnel) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "band.tunnel.v1beta1.SignalDeviation.signal_id": - panic(fmt.Errorf("field signal_id of message band.tunnel.v1beta1.SignalDeviation is not mutable")) - case "band.tunnel.v1beta1.SignalDeviation.soft_deviation_bps": - panic(fmt.Errorf("field soft_deviation_bps of message band.tunnel.v1beta1.SignalDeviation is not mutable")) - case "band.tunnel.v1beta1.SignalDeviation.hard_deviation_bps": - panic(fmt.Errorf("field hard_deviation_bps of message band.tunnel.v1beta1.SignalDeviation is not mutable")) + case "band.tunnel.v1beta1.Tunnel.route": + if x.Route == nil { + x.Route = new(anypb.Any) + } + return protoreflect.ValueOfMessage(x.Route.ProtoReflect()) + case "band.tunnel.v1beta1.Tunnel.signal_deviations": + if x.SignalDeviations == nil { + x.SignalDeviations = []*SignalDeviation{} + } + value := &_Tunnel_5_list{list: &x.SignalDeviations} + return protoreflect.ValueOfList(value) + case "band.tunnel.v1beta1.Tunnel.total_deposit": + if x.TotalDeposit == nil { + x.TotalDeposit = []*v1beta1.Coin{} + } + value := &_Tunnel_7_list{list: &x.TotalDeposit} + return protoreflect.ValueOfList(value) + case "band.tunnel.v1beta1.Tunnel.id": + panic(fmt.Errorf("field id of message band.tunnel.v1beta1.Tunnel is not mutable")) + case "band.tunnel.v1beta1.Tunnel.sequence": + panic(fmt.Errorf("field sequence of message band.tunnel.v1beta1.Tunnel is not mutable")) + case "band.tunnel.v1beta1.Tunnel.fee_payer": + panic(fmt.Errorf("field fee_payer of message band.tunnel.v1beta1.Tunnel is not mutable")) + case "band.tunnel.v1beta1.Tunnel.interval": + panic(fmt.Errorf("field interval of message band.tunnel.v1beta1.Tunnel is not mutable")) + case "band.tunnel.v1beta1.Tunnel.is_active": + panic(fmt.Errorf("field is_active of message band.tunnel.v1beta1.Tunnel is not mutable")) + case "band.tunnel.v1beta1.Tunnel.created_at": + panic(fmt.Errorf("field created_at of message band.tunnel.v1beta1.Tunnel is not mutable")) + case "band.tunnel.v1beta1.Tunnel.creator": + panic(fmt.Errorf("field creator of message band.tunnel.v1beta1.Tunnel is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.SignalDeviation")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Tunnel")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.SignalDeviation does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Tunnel 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_SignalDeviation) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Tunnel) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "band.tunnel.v1beta1.SignalDeviation.signal_id": - return protoreflect.ValueOfString("") - case "band.tunnel.v1beta1.SignalDeviation.soft_deviation_bps": + case "band.tunnel.v1beta1.Tunnel.id": return protoreflect.ValueOfUint64(uint64(0)) - case "band.tunnel.v1beta1.SignalDeviation.hard_deviation_bps": + case "band.tunnel.v1beta1.Tunnel.sequence": + return protoreflect.ValueOfUint64(uint64(0)) + case "band.tunnel.v1beta1.Tunnel.route": + m := new(anypb.Any) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "band.tunnel.v1beta1.Tunnel.fee_payer": + return protoreflect.ValueOfString("") + case "band.tunnel.v1beta1.Tunnel.signal_deviations": + list := []*SignalDeviation{} + return protoreflect.ValueOfList(&_Tunnel_5_list{list: &list}) + case "band.tunnel.v1beta1.Tunnel.interval": return protoreflect.ValueOfUint64(uint64(0)) + case "band.tunnel.v1beta1.Tunnel.total_deposit": + list := []*v1beta1.Coin{} + return protoreflect.ValueOfList(&_Tunnel_7_list{list: &list}) + case "band.tunnel.v1beta1.Tunnel.is_active": + return protoreflect.ValueOfBool(false) + case "band.tunnel.v1beta1.Tunnel.created_at": + return protoreflect.ValueOfInt64(int64(0)) + case "band.tunnel.v1beta1.Tunnel.creator": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.SignalDeviation")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Tunnel")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.SignalDeviation does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Tunnel 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_SignalDeviation) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_Tunnel) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in band.tunnel.v1beta1.SignalDeviation", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in band.tunnel.v1beta1.Tunnel", d.FullName())) } panic("unreachable") } @@ -277,7 +550,7 @@ func (x *fastReflection_SignalDeviation) WhichOneof(d protoreflect.OneofDescript // 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_SignalDeviation) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_Tunnel) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -288,7 +561,7 @@ func (x *fastReflection_SignalDeviation) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SignalDeviation) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_Tunnel) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -300,7 +573,7 @@ func (x *fastReflection_SignalDeviation) SetUnknown(fields protoreflect.RawField // 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_SignalDeviation) IsValid() bool { +func (x *fastReflection_Tunnel) IsValid() bool { return x != nil } @@ -310,9 +583,9 @@ func (x *fastReflection_SignalDeviation) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_SignalDeviation) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_Tunnel) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*SignalDeviation) + x := input.Message.Interface().(*Tunnel) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -324,15 +597,44 @@ func (x *fastReflection_SignalDeviation) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.SignalId) + if x.Id != 0 { + n += 1 + runtime.Sov(uint64(x.Id)) + } + if x.Sequence != 0 { + n += 1 + runtime.Sov(uint64(x.Sequence)) + } + if x.Route != nil { + l = options.Size(x.Route) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.FeePayer) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.SoftDeviationBps != 0 { - n += 1 + runtime.Sov(uint64(x.SoftDeviationBps)) + if len(x.SignalDeviations) > 0 { + for _, e := range x.SignalDeviations { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } } - if x.HardDeviationBps != 0 { - n += 1 + runtime.Sov(uint64(x.HardDeviationBps)) + if x.Interval != 0 { + n += 1 + runtime.Sov(uint64(x.Interval)) + } + if len(x.TotalDeposit) > 0 { + for _, e := range x.TotalDeposit { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.IsActive { + n += 2 + } + if x.CreatedAt != 0 { + n += 1 + runtime.Sov(uint64(x.CreatedAt)) + } + l = len(x.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -344,7 +646,7 @@ func (x *fastReflection_SignalDeviation) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*SignalDeviation) + x := input.Message.Interface().(*Tunnel) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -363,22 +665,95 @@ func (x *fastReflection_SignalDeviation) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.HardDeviationBps != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.HardDeviationBps)) + 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] = 0x18 + dAtA[i] = 0x52 } - if x.SoftDeviationBps != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SoftDeviationBps)) + if x.CreatedAt != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CreatedAt)) + i-- + dAtA[i] = 0x48 + } + if x.IsActive { + i-- + if x.IsActive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if len(x.TotalDeposit) > 0 { + for iNdEx := len(x.TotalDeposit) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.TotalDeposit[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3a + } + } + if x.Interval != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Interval)) + i-- + dAtA[i] = 0x30 + } + if len(x.SignalDeviations) > 0 { + for iNdEx := len(x.SignalDeviations) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.SignalDeviations[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + } + if len(x.FeePayer) > 0 { + i -= len(x.FeePayer) + copy(dAtA[i:], x.FeePayer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FeePayer))) + i-- + dAtA[i] = 0x22 + } + if x.Route != nil { + encoded, err := options.Marshal(x.Route) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.Sequence != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Sequence)) i-- dAtA[i] = 0x10 } - if len(x.SignalId) > 0 { - i -= len(x.SignalId) - copy(dAtA[i:], x.SignalId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SignalId))) + if x.Id != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -391,7 +766,7 @@ func (x *fastReflection_SignalDeviation) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*SignalDeviation) + x := input.Message.Interface().(*Tunnel) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -423,15 +798,89 @@ func (x *fastReflection_SignalDeviation) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SignalDeviation: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Tunnel: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SignalDeviation: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Tunnel: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + x.Id = 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.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + } + x.Sequence = 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.Sequence |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SignalId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Route == nil { + x.Route = &anypb.Any{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Route); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FeePayer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -459,13 +908,13 @@ func (x *fastReflection_SignalDeviation) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.SignalId = string(dAtA[iNdEx:postIndex]) + x.FeePayer = 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 SoftDeviationBps", wireType) + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SignalDeviations", wireType) } - x.SoftDeviationBps = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -475,16 +924,31 @@ func (x *fastReflection_SignalDeviation) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.SoftDeviationBps |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 3: + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.SignalDeviations = append(x.SignalDeviations, &SignalDeviation{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SignalDeviations[len(x.SignalDeviations)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 6: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HardDeviationBps", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) } - x.HardDeviationBps = 0 + x.Interval = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -494,22 +958,127 @@ func (x *fastReflection_SignalDeviation) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.HardDeviationBps |= uint64(b&0x7F) << shift + x.Interval |= 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 + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalDeposit", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.TotalDeposit = append(x.TotalDeposit, &v1beta1.Coin{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TotalDeposit[len(x.TotalDeposit)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsActive", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.IsActive = bool(v != 0) + case 9: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) + } + x.CreatedAt = 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.CreatedAt |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + 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 + 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]...) @@ -534,81 +1103,81 @@ func (x *fastReflection_SignalDeviation) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_Deposit_3_list)(nil) +var _ protoreflect.List = (*_LatestPrices_2_list)(nil) -type _Deposit_3_list struct { - list *[]*v1beta1.Coin +type _LatestPrices_2_list struct { + list *[]*v1beta11.Price } -func (x *_Deposit_3_list) Len() int { +func (x *_LatestPrices_2_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_Deposit_3_list) Get(i int) protoreflect.Value { +func (x *_LatestPrices_2_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_Deposit_3_list) Set(i int, value protoreflect.Value) { +func (x *_LatestPrices_2_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) + concreteValue := valueUnwrapped.Interface().(*v1beta11.Price) (*x.list)[i] = concreteValue } -func (x *_Deposit_3_list) Append(value protoreflect.Value) { +func (x *_LatestPrices_2_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) + concreteValue := valueUnwrapped.Interface().(*v1beta11.Price) *x.list = append(*x.list, concreteValue) } -func (x *_Deposit_3_list) AppendMutable() protoreflect.Value { - v := new(v1beta1.Coin) +func (x *_LatestPrices_2_list) AppendMutable() protoreflect.Value { + v := new(v1beta11.Price) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_Deposit_3_list) Truncate(n int) { +func (x *_LatestPrices_2_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_Deposit_3_list) NewElement() protoreflect.Value { - v := new(v1beta1.Coin) +func (x *_LatestPrices_2_list) NewElement() protoreflect.Value { + v := new(v1beta11.Price) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_Deposit_3_list) IsValid() bool { +func (x *_LatestPrices_2_list) IsValid() bool { return x.list != nil } var ( - md_Deposit protoreflect.MessageDescriptor - fd_Deposit_tunnel_id protoreflect.FieldDescriptor - fd_Deposit_depositor protoreflect.FieldDescriptor - fd_Deposit_amount protoreflect.FieldDescriptor + md_LatestPrices protoreflect.MessageDescriptor + fd_LatestPrices_tunnel_id protoreflect.FieldDescriptor + fd_LatestPrices_prices protoreflect.FieldDescriptor + fd_LatestPrices_last_interval protoreflect.FieldDescriptor ) func init() { file_band_tunnel_v1beta1_tunnel_proto_init() - md_Deposit = File_band_tunnel_v1beta1_tunnel_proto.Messages().ByName("Deposit") - fd_Deposit_tunnel_id = md_Deposit.Fields().ByName("tunnel_id") - fd_Deposit_depositor = md_Deposit.Fields().ByName("depositor") - fd_Deposit_amount = md_Deposit.Fields().ByName("amount") + md_LatestPrices = File_band_tunnel_v1beta1_tunnel_proto.Messages().ByName("LatestPrices") + fd_LatestPrices_tunnel_id = md_LatestPrices.Fields().ByName("tunnel_id") + fd_LatestPrices_prices = md_LatestPrices.Fields().ByName("prices") + fd_LatestPrices_last_interval = md_LatestPrices.Fields().ByName("last_interval") } -var _ protoreflect.Message = (*fastReflection_Deposit)(nil) +var _ protoreflect.Message = (*fastReflection_LatestPrices)(nil) -type fastReflection_Deposit Deposit +type fastReflection_LatestPrices LatestPrices -func (x *Deposit) ProtoReflect() protoreflect.Message { - return (*fastReflection_Deposit)(x) +func (x *LatestPrices) ProtoReflect() protoreflect.Message { + return (*fastReflection_LatestPrices)(x) } -func (x *Deposit) slowProtoReflect() protoreflect.Message { +func (x *LatestPrices) slowProtoReflect() protoreflect.Message { mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -620,43 +1189,43 @@ func (x *Deposit) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_Deposit_messageType fastReflection_Deposit_messageType -var _ protoreflect.MessageType = fastReflection_Deposit_messageType{} +var _fastReflection_LatestPrices_messageType fastReflection_LatestPrices_messageType +var _ protoreflect.MessageType = fastReflection_LatestPrices_messageType{} -type fastReflection_Deposit_messageType struct{} +type fastReflection_LatestPrices_messageType struct{} -func (x fastReflection_Deposit_messageType) Zero() protoreflect.Message { - return (*fastReflection_Deposit)(nil) +func (x fastReflection_LatestPrices_messageType) Zero() protoreflect.Message { + return (*fastReflection_LatestPrices)(nil) } -func (x fastReflection_Deposit_messageType) New() protoreflect.Message { - return new(fastReflection_Deposit) +func (x fastReflection_LatestPrices_messageType) New() protoreflect.Message { + return new(fastReflection_LatestPrices) } -func (x fastReflection_Deposit_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Deposit +func (x fastReflection_LatestPrices_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_LatestPrices } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_Deposit) Descriptor() protoreflect.MessageDescriptor { - return md_Deposit +func (x *fastReflection_LatestPrices) Descriptor() protoreflect.MessageDescriptor { + return md_LatestPrices } // 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_Deposit) Type() protoreflect.MessageType { - return _fastReflection_Deposit_messageType +func (x *fastReflection_LatestPrices) Type() protoreflect.MessageType { + return _fastReflection_LatestPrices_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_Deposit) New() protoreflect.Message { - return new(fastReflection_Deposit) +func (x *fastReflection_LatestPrices) New() protoreflect.Message { + return new(fastReflection_LatestPrices) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_Deposit) Interface() protoreflect.ProtoMessage { - return (*Deposit)(x) +func (x *fastReflection_LatestPrices) Interface() protoreflect.ProtoMessage { + return (*LatestPrices)(x) } // Range iterates over every populated field in an undefined order, @@ -664,22 +1233,22 @@ func (x *fastReflection_Deposit) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_Deposit) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_LatestPrices) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TunnelId != uint64(0) { value := protoreflect.ValueOfUint64(x.TunnelId) - if !f(fd_Deposit_tunnel_id, value) { + if !f(fd_LatestPrices_tunnel_id, value) { return } } - if x.Depositor != "" { - value := protoreflect.ValueOfString(x.Depositor) - if !f(fd_Deposit_depositor, value) { + if len(x.Prices) != 0 { + value := protoreflect.ValueOfList(&_LatestPrices_2_list{list: &x.Prices}) + if !f(fd_LatestPrices_prices, value) { return } } - if len(x.Amount) != 0 { - value := protoreflect.ValueOfList(&_Deposit_3_list{list: &x.Amount}) - if !f(fd_Deposit_amount, value) { + if x.LastInterval != int64(0) { + value := protoreflect.ValueOfInt64(x.LastInterval) + if !f(fd_LatestPrices_last_interval, value) { return } } @@ -696,19 +1265,19 @@ func (x *fastReflection_Deposit) Range(f func(protoreflect.FieldDescriptor, prot // 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_Deposit) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_LatestPrices) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "band.tunnel.v1beta1.Deposit.tunnel_id": + case "band.tunnel.v1beta1.LatestPrices.tunnel_id": return x.TunnelId != uint64(0) - case "band.tunnel.v1beta1.Deposit.depositor": - return x.Depositor != "" - case "band.tunnel.v1beta1.Deposit.amount": - return len(x.Amount) != 0 + case "band.tunnel.v1beta1.LatestPrices.prices": + return len(x.Prices) != 0 + case "band.tunnel.v1beta1.LatestPrices.last_interval": + return x.LastInterval != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Deposit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.LatestPrices")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Deposit does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.LatestPrices does not contain field %s", fd.FullName())) } } @@ -718,19 +1287,19 @@ func (x *fastReflection_Deposit) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Deposit) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_LatestPrices) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "band.tunnel.v1beta1.Deposit.tunnel_id": + case "band.tunnel.v1beta1.LatestPrices.tunnel_id": x.TunnelId = uint64(0) - case "band.tunnel.v1beta1.Deposit.depositor": - x.Depositor = "" - case "band.tunnel.v1beta1.Deposit.amount": - x.Amount = nil + case "band.tunnel.v1beta1.LatestPrices.prices": + x.Prices = nil + case "band.tunnel.v1beta1.LatestPrices.last_interval": + x.LastInterval = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Deposit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.LatestPrices")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Deposit does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.LatestPrices does not contain field %s", fd.FullName())) } } @@ -740,25 +1309,25 @@ func (x *fastReflection_Deposit) Clear(fd protoreflect.FieldDescriptor) { // 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_Deposit) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_LatestPrices) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "band.tunnel.v1beta1.Deposit.tunnel_id": + case "band.tunnel.v1beta1.LatestPrices.tunnel_id": value := x.TunnelId return protoreflect.ValueOfUint64(value) - case "band.tunnel.v1beta1.Deposit.depositor": - value := x.Depositor - return protoreflect.ValueOfString(value) - case "band.tunnel.v1beta1.Deposit.amount": - if len(x.Amount) == 0 { - return protoreflect.ValueOfList(&_Deposit_3_list{}) + case "band.tunnel.v1beta1.LatestPrices.prices": + if len(x.Prices) == 0 { + return protoreflect.ValueOfList(&_LatestPrices_2_list{}) } - listValue := &_Deposit_3_list{list: &x.Amount} + listValue := &_LatestPrices_2_list{list: &x.Prices} return protoreflect.ValueOfList(listValue) + case "band.tunnel.v1beta1.LatestPrices.last_interval": + value := x.LastInterval + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Deposit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.LatestPrices")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Deposit does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.LatestPrices does not contain field %s", descriptor.FullName())) } } @@ -772,21 +1341,21 @@ func (x *fastReflection_Deposit) Get(descriptor protoreflect.FieldDescriptor) pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Deposit) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_LatestPrices) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "band.tunnel.v1beta1.Deposit.tunnel_id": + case "band.tunnel.v1beta1.LatestPrices.tunnel_id": x.TunnelId = value.Uint() - case "band.tunnel.v1beta1.Deposit.depositor": - x.Depositor = value.Interface().(string) - case "band.tunnel.v1beta1.Deposit.amount": + case "band.tunnel.v1beta1.LatestPrices.prices": lv := value.List() - clv := lv.(*_Deposit_3_list) - x.Amount = *clv.list + clv := lv.(*_LatestPrices_2_list) + x.Prices = *clv.list + case "band.tunnel.v1beta1.LatestPrices.last_interval": + x.LastInterval = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Deposit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.LatestPrices")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Deposit does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.LatestPrices does not contain field %s", fd.FullName())) } } @@ -800,53 +1369,53 @@ func (x *fastReflection_Deposit) Set(fd protoreflect.FieldDescriptor, value prot // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Deposit) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_LatestPrices) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "band.tunnel.v1beta1.Deposit.amount": - if x.Amount == nil { - x.Amount = []*v1beta1.Coin{} + case "band.tunnel.v1beta1.LatestPrices.prices": + if x.Prices == nil { + x.Prices = []*v1beta11.Price{} } - value := &_Deposit_3_list{list: &x.Amount} + value := &_LatestPrices_2_list{list: &x.Prices} return protoreflect.ValueOfList(value) - case "band.tunnel.v1beta1.Deposit.tunnel_id": - panic(fmt.Errorf("field tunnel_id of message band.tunnel.v1beta1.Deposit is not mutable")) - case "band.tunnel.v1beta1.Deposit.depositor": - panic(fmt.Errorf("field depositor of message band.tunnel.v1beta1.Deposit is not mutable")) + case "band.tunnel.v1beta1.LatestPrices.tunnel_id": + panic(fmt.Errorf("field tunnel_id of message band.tunnel.v1beta1.LatestPrices is not mutable")) + case "band.tunnel.v1beta1.LatestPrices.last_interval": + panic(fmt.Errorf("field last_interval of message band.tunnel.v1beta1.LatestPrices is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Deposit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.LatestPrices")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Deposit does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.LatestPrices 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_Deposit) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_LatestPrices) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "band.tunnel.v1beta1.Deposit.tunnel_id": + case "band.tunnel.v1beta1.LatestPrices.tunnel_id": return protoreflect.ValueOfUint64(uint64(0)) - case "band.tunnel.v1beta1.Deposit.depositor": - return protoreflect.ValueOfString("") - case "band.tunnel.v1beta1.Deposit.amount": - list := []*v1beta1.Coin{} - return protoreflect.ValueOfList(&_Deposit_3_list{list: &list}) + case "band.tunnel.v1beta1.LatestPrices.prices": + list := []*v1beta11.Price{} + return protoreflect.ValueOfList(&_LatestPrices_2_list{list: &list}) + case "band.tunnel.v1beta1.LatestPrices.last_interval": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Deposit")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.LatestPrices")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Deposit does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.LatestPrices 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_Deposit) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_LatestPrices) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in band.tunnel.v1beta1.Deposit", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in band.tunnel.v1beta1.LatestPrices", d.FullName())) } panic("unreachable") } @@ -854,7 +1423,7 @@ func (x *fastReflection_Deposit) WhichOneof(d protoreflect.OneofDescriptor) prot // 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_Deposit) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_LatestPrices) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -865,7 +1434,7 @@ func (x *fastReflection_Deposit) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Deposit) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_LatestPrices) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -877,7 +1446,7 @@ func (x *fastReflection_Deposit) SetUnknown(fields protoreflect.RawFields) { // 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_Deposit) IsValid() bool { +func (x *fastReflection_LatestPrices) IsValid() bool { return x != nil } @@ -887,9 +1456,9 @@ func (x *fastReflection_Deposit) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_Deposit) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_LatestPrices) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Deposit) + x := input.Message.Interface().(*LatestPrices) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -904,16 +1473,15 @@ func (x *fastReflection_Deposit) ProtoMethods() *protoiface.Methods { if x.TunnelId != 0 { n += 1 + runtime.Sov(uint64(x.TunnelId)) } - l = len(x.Depositor) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Amount) > 0 { - for _, e := range x.Amount { + if len(x.Prices) > 0 { + for _, e := range x.Prices { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } } + if x.LastInterval != 0 { + n += 1 + runtime.Sov(uint64(x.LastInterval)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -924,7 +1492,7 @@ func (x *fastReflection_Deposit) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Deposit) + x := input.Message.Interface().(*LatestPrices) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -943,9 +1511,14 @@ func (x *fastReflection_Deposit) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Amount) > 0 { - for iNdEx := len(x.Amount) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Amount[iNdEx]) + if x.LastInterval != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.LastInterval)) + i-- + dAtA[i] = 0x18 + } + if len(x.Prices) > 0 { + for iNdEx := len(x.Prices) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Prices[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -956,16 +1529,9 @@ func (x *fastReflection_Deposit) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 } } - if len(x.Depositor) > 0 { - i -= len(x.Depositor) - copy(dAtA[i:], x.Depositor) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Depositor))) - i-- - dAtA[i] = 0x12 - } if x.TunnelId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TunnelId)) i-- @@ -982,7 +1548,7 @@ func (x *fastReflection_Deposit) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Deposit) + x := input.Message.Interface().(*LatestPrices) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1014,10 +1580,10 @@ func (x *fastReflection_Deposit) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Deposit: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LatestPrices: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Deposit: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LatestPrices: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1041,9 +1607,9 @@ func (x *fastReflection_Deposit) ProtoMethods() *protoiface.Methods { } case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Depositor", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Prices", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1053,29 +1619,31 @@ func (x *fastReflection_Deposit) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen 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.Depositor = string(dAtA[iNdEx:postIndex]) + x.Prices = append(x.Prices, &v1beta11.Price{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Prices[len(x.Prices)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastInterval", wireType) } - var msglen int + x.LastInterval = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1085,26 +1653,11 @@ func (x *fastReflection_Deposit) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + x.LastInterval |= int64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - 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.Amount = append(x.Amount, &v1beta1.Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount[len(x.Amount)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1140,146 +1693,77 @@ func (x *fastReflection_Deposit) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_Tunnel_5_list)(nil) - -type _Tunnel_5_list struct { - list *[]*SignalDeviation -} - -func (x *_Tunnel_5_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Tunnel_5_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_Tunnel_5_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*SignalDeviation) - (*x.list)[i] = concreteValue -} - -func (x *_Tunnel_5_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*SignalDeviation) - *x.list = append(*x.list, concreteValue) -} - -func (x *_Tunnel_5_list) AppendMutable() protoreflect.Value { - v := new(SignalDeviation) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Tunnel_5_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_Tunnel_5_list) NewElement() protoreflect.Value { - v := new(SignalDeviation) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Tunnel_5_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_Tunnel_7_list)(nil) +var _ protoreflect.List = (*_TotalFees_1_list)(nil) -type _Tunnel_7_list struct { +type _TotalFees_1_list struct { list *[]*v1beta1.Coin } -func (x *_Tunnel_7_list) Len() int { +func (x *_TotalFees_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_Tunnel_7_list) Get(i int) protoreflect.Value { +func (x *_TotalFees_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_Tunnel_7_list) Set(i int, value protoreflect.Value) { +func (x *_TotalFees_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) (*x.list)[i] = concreteValue } -func (x *_Tunnel_7_list) Append(value protoreflect.Value) { +func (x *_TotalFees_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) *x.list = append(*x.list, concreteValue) } -func (x *_Tunnel_7_list) AppendMutable() protoreflect.Value { +func (x *_TotalFees_1_list) AppendMutable() protoreflect.Value { v := new(v1beta1.Coin) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_Tunnel_7_list) Truncate(n int) { +func (x *_TotalFees_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_Tunnel_7_list) NewElement() protoreflect.Value { +func (x *_TotalFees_1_list) NewElement() protoreflect.Value { v := new(v1beta1.Coin) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_Tunnel_7_list) IsValid() bool { +func (x *_TotalFees_1_list) IsValid() bool { return x.list != nil } var ( - md_Tunnel protoreflect.MessageDescriptor - fd_Tunnel_id protoreflect.FieldDescriptor - fd_Tunnel_sequence protoreflect.FieldDescriptor - fd_Tunnel_route protoreflect.FieldDescriptor - fd_Tunnel_fee_payer protoreflect.FieldDescriptor - fd_Tunnel_signal_deviations protoreflect.FieldDescriptor - fd_Tunnel_interval protoreflect.FieldDescriptor - fd_Tunnel_total_deposit protoreflect.FieldDescriptor - fd_Tunnel_is_active protoreflect.FieldDescriptor - fd_Tunnel_created_at protoreflect.FieldDescriptor - fd_Tunnel_creator protoreflect.FieldDescriptor + md_TotalFees protoreflect.MessageDescriptor + fd_TotalFees_total_base_packet_fee protoreflect.FieldDescriptor ) func init() { file_band_tunnel_v1beta1_tunnel_proto_init() - md_Tunnel = File_band_tunnel_v1beta1_tunnel_proto.Messages().ByName("Tunnel") - fd_Tunnel_id = md_Tunnel.Fields().ByName("id") - fd_Tunnel_sequence = md_Tunnel.Fields().ByName("sequence") - fd_Tunnel_route = md_Tunnel.Fields().ByName("route") - fd_Tunnel_fee_payer = md_Tunnel.Fields().ByName("fee_payer") - fd_Tunnel_signal_deviations = md_Tunnel.Fields().ByName("signal_deviations") - fd_Tunnel_interval = md_Tunnel.Fields().ByName("interval") - fd_Tunnel_total_deposit = md_Tunnel.Fields().ByName("total_deposit") - fd_Tunnel_is_active = md_Tunnel.Fields().ByName("is_active") - fd_Tunnel_created_at = md_Tunnel.Fields().ByName("created_at") - fd_Tunnel_creator = md_Tunnel.Fields().ByName("creator") + md_TotalFees = File_band_tunnel_v1beta1_tunnel_proto.Messages().ByName("TotalFees") + fd_TotalFees_total_base_packet_fee = md_TotalFees.Fields().ByName("total_base_packet_fee") } -var _ protoreflect.Message = (*fastReflection_Tunnel)(nil) +var _ protoreflect.Message = (*fastReflection_TotalFees)(nil) -type fastReflection_Tunnel Tunnel +type fastReflection_TotalFees TotalFees -func (x *Tunnel) ProtoReflect() protoreflect.Message { - return (*fastReflection_Tunnel)(x) +func (x *TotalFees) ProtoReflect() protoreflect.Message { + return (*fastReflection_TotalFees)(x) } -func (x *Tunnel) slowProtoReflect() protoreflect.Message { +func (x *TotalFees) slowProtoReflect() protoreflect.Message { mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1291,43 +1775,43 @@ func (x *Tunnel) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_Tunnel_messageType fastReflection_Tunnel_messageType -var _ protoreflect.MessageType = fastReflection_Tunnel_messageType{} +var _fastReflection_TotalFees_messageType fastReflection_TotalFees_messageType +var _ protoreflect.MessageType = fastReflection_TotalFees_messageType{} -type fastReflection_Tunnel_messageType struct{} +type fastReflection_TotalFees_messageType struct{} -func (x fastReflection_Tunnel_messageType) Zero() protoreflect.Message { - return (*fastReflection_Tunnel)(nil) +func (x fastReflection_TotalFees_messageType) Zero() protoreflect.Message { + return (*fastReflection_TotalFees)(nil) } -func (x fastReflection_Tunnel_messageType) New() protoreflect.Message { - return new(fastReflection_Tunnel) +func (x fastReflection_TotalFees_messageType) New() protoreflect.Message { + return new(fastReflection_TotalFees) } -func (x fastReflection_Tunnel_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Tunnel +func (x fastReflection_TotalFees_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TotalFees } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_Tunnel) Descriptor() protoreflect.MessageDescriptor { - return md_Tunnel +func (x *fastReflection_TotalFees) Descriptor() protoreflect.MessageDescriptor { + return md_TotalFees } // 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_Tunnel) Type() protoreflect.MessageType { - return _fastReflection_Tunnel_messageType +func (x *fastReflection_TotalFees) Type() protoreflect.MessageType { + return _fastReflection_TotalFees_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_Tunnel) New() protoreflect.Message { - return new(fastReflection_Tunnel) +func (x *fastReflection_TotalFees) New() protoreflect.Message { + return new(fastReflection_TotalFees) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_Tunnel) Interface() protoreflect.ProtoMessage { - return (*Tunnel)(x) +func (x *fastReflection_TotalFees) Interface() protoreflect.ProtoMessage { + return (*TotalFees)(x) } // Range iterates over every populated field in an undefined order, @@ -1335,64 +1819,10 @@ func (x *fastReflection_Tunnel) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_Tunnel) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Id != uint64(0) { - value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_Tunnel_id, value) { - return - } - } - if x.Sequence != uint64(0) { - value := protoreflect.ValueOfUint64(x.Sequence) - if !f(fd_Tunnel_sequence, value) { - return - } - } - if x.Route != nil { - value := protoreflect.ValueOfMessage(x.Route.ProtoReflect()) - if !f(fd_Tunnel_route, value) { - return - } - } - if x.FeePayer != "" { - value := protoreflect.ValueOfString(x.FeePayer) - if !f(fd_Tunnel_fee_payer, value) { - return - } - } - if len(x.SignalDeviations) != 0 { - value := protoreflect.ValueOfList(&_Tunnel_5_list{list: &x.SignalDeviations}) - if !f(fd_Tunnel_signal_deviations, value) { - return - } - } - if x.Interval != uint64(0) { - value := protoreflect.ValueOfUint64(x.Interval) - if !f(fd_Tunnel_interval, value) { - return - } - } - if len(x.TotalDeposit) != 0 { - value := protoreflect.ValueOfList(&_Tunnel_7_list{list: &x.TotalDeposit}) - if !f(fd_Tunnel_total_deposit, value) { - return - } - } - if x.IsActive != false { - value := protoreflect.ValueOfBool(x.IsActive) - if !f(fd_Tunnel_is_active, value) { - return - } - } - if x.CreatedAt != int64(0) { - value := protoreflect.ValueOfInt64(x.CreatedAt) - if !f(fd_Tunnel_created_at, value) { - return - } - } - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_Tunnel_creator, value) { +func (x *fastReflection_TotalFees) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.TotalBasePacketFee) != 0 { + value := protoreflect.ValueOfList(&_TotalFees_1_list{list: &x.TotalBasePacketFee}) + if !f(fd_TotalFees_total_base_packet_fee, value) { return } } @@ -1409,33 +1839,15 @@ func (x *fastReflection_Tunnel) Range(f func(protoreflect.FieldDescriptor, proto // 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_Tunnel) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_TotalFees) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "band.tunnel.v1beta1.Tunnel.id": - return x.Id != uint64(0) - case "band.tunnel.v1beta1.Tunnel.sequence": - return x.Sequence != uint64(0) - case "band.tunnel.v1beta1.Tunnel.route": - return x.Route != nil - case "band.tunnel.v1beta1.Tunnel.fee_payer": - return x.FeePayer != "" - case "band.tunnel.v1beta1.Tunnel.signal_deviations": - return len(x.SignalDeviations) != 0 - case "band.tunnel.v1beta1.Tunnel.interval": - return x.Interval != uint64(0) - case "band.tunnel.v1beta1.Tunnel.total_deposit": - return len(x.TotalDeposit) != 0 - case "band.tunnel.v1beta1.Tunnel.is_active": - return x.IsActive != false - case "band.tunnel.v1beta1.Tunnel.created_at": - return x.CreatedAt != int64(0) - case "band.tunnel.v1beta1.Tunnel.creator": - return x.Creator != "" + case "band.tunnel.v1beta1.TotalFees.total_base_packet_fee": + return len(x.TotalBasePacketFee) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Tunnel")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.TotalFees")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Tunnel does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.TotalFees does not contain field %s", fd.FullName())) } } @@ -1445,33 +1857,15 @@ func (x *fastReflection_Tunnel) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Tunnel) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_TotalFees) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "band.tunnel.v1beta1.Tunnel.id": - x.Id = uint64(0) - case "band.tunnel.v1beta1.Tunnel.sequence": - x.Sequence = uint64(0) - case "band.tunnel.v1beta1.Tunnel.route": - x.Route = nil - case "band.tunnel.v1beta1.Tunnel.fee_payer": - x.FeePayer = "" - case "band.tunnel.v1beta1.Tunnel.signal_deviations": - x.SignalDeviations = nil - case "band.tunnel.v1beta1.Tunnel.interval": - x.Interval = uint64(0) - case "band.tunnel.v1beta1.Tunnel.total_deposit": - x.TotalDeposit = nil - case "band.tunnel.v1beta1.Tunnel.is_active": - x.IsActive = false - case "band.tunnel.v1beta1.Tunnel.created_at": - x.CreatedAt = int64(0) - case "band.tunnel.v1beta1.Tunnel.creator": - x.Creator = "" + case "band.tunnel.v1beta1.TotalFees.total_base_packet_fee": + x.TotalBasePacketFee = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Tunnel")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.TotalFees")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Tunnel does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.TotalFees does not contain field %s", fd.FullName())) } } @@ -1481,49 +1875,19 @@ func (x *fastReflection_Tunnel) Clear(fd protoreflect.FieldDescriptor) { // 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_Tunnel) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_TotalFees) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "band.tunnel.v1beta1.Tunnel.id": - value := x.Id - return protoreflect.ValueOfUint64(value) - case "band.tunnel.v1beta1.Tunnel.sequence": - value := x.Sequence - return protoreflect.ValueOfUint64(value) - case "band.tunnel.v1beta1.Tunnel.route": - value := x.Route - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "band.tunnel.v1beta1.Tunnel.fee_payer": - value := x.FeePayer - return protoreflect.ValueOfString(value) - case "band.tunnel.v1beta1.Tunnel.signal_deviations": - if len(x.SignalDeviations) == 0 { - return protoreflect.ValueOfList(&_Tunnel_5_list{}) - } - listValue := &_Tunnel_5_list{list: &x.SignalDeviations} - return protoreflect.ValueOfList(listValue) - case "band.tunnel.v1beta1.Tunnel.interval": - value := x.Interval - return protoreflect.ValueOfUint64(value) - case "band.tunnel.v1beta1.Tunnel.total_deposit": - if len(x.TotalDeposit) == 0 { - return protoreflect.ValueOfList(&_Tunnel_7_list{}) + case "band.tunnel.v1beta1.TotalFees.total_base_packet_fee": + if len(x.TotalBasePacketFee) == 0 { + return protoreflect.ValueOfList(&_TotalFees_1_list{}) } - listValue := &_Tunnel_7_list{list: &x.TotalDeposit} + listValue := &_TotalFees_1_list{list: &x.TotalBasePacketFee} return protoreflect.ValueOfList(listValue) - case "band.tunnel.v1beta1.Tunnel.is_active": - value := x.IsActive - return protoreflect.ValueOfBool(value) - case "band.tunnel.v1beta1.Tunnel.created_at": - value := x.CreatedAt - return protoreflect.ValueOfInt64(value) - case "band.tunnel.v1beta1.Tunnel.creator": - value := x.Creator - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Tunnel")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.TotalFees")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Tunnel does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.TotalFees does not contain field %s", descriptor.FullName())) } } @@ -1537,37 +1901,17 @@ func (x *fastReflection_Tunnel) Get(descriptor protoreflect.FieldDescriptor) pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Tunnel) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_TotalFees) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "band.tunnel.v1beta1.Tunnel.id": - x.Id = value.Uint() - case "band.tunnel.v1beta1.Tunnel.sequence": - x.Sequence = value.Uint() - case "band.tunnel.v1beta1.Tunnel.route": - x.Route = value.Message().Interface().(*anypb.Any) - case "band.tunnel.v1beta1.Tunnel.fee_payer": - x.FeePayer = value.Interface().(string) - case "band.tunnel.v1beta1.Tunnel.signal_deviations": - lv := value.List() - clv := lv.(*_Tunnel_5_list) - x.SignalDeviations = *clv.list - case "band.tunnel.v1beta1.Tunnel.interval": - x.Interval = value.Uint() - case "band.tunnel.v1beta1.Tunnel.total_deposit": + case "band.tunnel.v1beta1.TotalFees.total_base_packet_fee": lv := value.List() - clv := lv.(*_Tunnel_7_list) - x.TotalDeposit = *clv.list - case "band.tunnel.v1beta1.Tunnel.is_active": - x.IsActive = value.Bool() - case "band.tunnel.v1beta1.Tunnel.created_at": - x.CreatedAt = value.Int() - case "band.tunnel.v1beta1.Tunnel.creator": - x.Creator = value.Interface().(string) + clv := lv.(*_TotalFees_1_list) + x.TotalBasePacketFee = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Tunnel")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.TotalFees")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Tunnel does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.TotalFees does not contain field %s", fd.FullName())) } } @@ -1581,90 +1925,45 @@ func (x *fastReflection_Tunnel) Set(fd protoreflect.FieldDescriptor, value proto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Tunnel) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_TotalFees) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "band.tunnel.v1beta1.Tunnel.route": - if x.Route == nil { - x.Route = new(anypb.Any) - } - return protoreflect.ValueOfMessage(x.Route.ProtoReflect()) - case "band.tunnel.v1beta1.Tunnel.signal_deviations": - if x.SignalDeviations == nil { - x.SignalDeviations = []*SignalDeviation{} + case "band.tunnel.v1beta1.TotalFees.total_base_packet_fee": + if x.TotalBasePacketFee == nil { + x.TotalBasePacketFee = []*v1beta1.Coin{} } - value := &_Tunnel_5_list{list: &x.SignalDeviations} + value := &_TotalFees_1_list{list: &x.TotalBasePacketFee} return protoreflect.ValueOfList(value) - case "band.tunnel.v1beta1.Tunnel.total_deposit": - if x.TotalDeposit == nil { - x.TotalDeposit = []*v1beta1.Coin{} + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.TotalFees")) } - value := &_Tunnel_7_list{list: &x.TotalDeposit} - return protoreflect.ValueOfList(value) - case "band.tunnel.v1beta1.Tunnel.id": - panic(fmt.Errorf("field id of message band.tunnel.v1beta1.Tunnel is not mutable")) - case "band.tunnel.v1beta1.Tunnel.sequence": - panic(fmt.Errorf("field sequence of message band.tunnel.v1beta1.Tunnel is not mutable")) - case "band.tunnel.v1beta1.Tunnel.fee_payer": - panic(fmt.Errorf("field fee_payer of message band.tunnel.v1beta1.Tunnel is not mutable")) - case "band.tunnel.v1beta1.Tunnel.interval": - panic(fmt.Errorf("field interval of message band.tunnel.v1beta1.Tunnel is not mutable")) - case "band.tunnel.v1beta1.Tunnel.is_active": - panic(fmt.Errorf("field is_active of message band.tunnel.v1beta1.Tunnel is not mutable")) - case "band.tunnel.v1beta1.Tunnel.created_at": - panic(fmt.Errorf("field created_at of message band.tunnel.v1beta1.Tunnel is not mutable")) - case "band.tunnel.v1beta1.Tunnel.creator": - panic(fmt.Errorf("field creator of message band.tunnel.v1beta1.Tunnel is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Tunnel")) - } - panic(fmt.Errorf("message band.tunnel.v1beta1.Tunnel does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.TotalFees 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_Tunnel) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_TotalFees) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "band.tunnel.v1beta1.Tunnel.id": - return protoreflect.ValueOfUint64(uint64(0)) - case "band.tunnel.v1beta1.Tunnel.sequence": - return protoreflect.ValueOfUint64(uint64(0)) - case "band.tunnel.v1beta1.Tunnel.route": - m := new(anypb.Any) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "band.tunnel.v1beta1.Tunnel.fee_payer": - return protoreflect.ValueOfString("") - case "band.tunnel.v1beta1.Tunnel.signal_deviations": - list := []*SignalDeviation{} - return protoreflect.ValueOfList(&_Tunnel_5_list{list: &list}) - case "band.tunnel.v1beta1.Tunnel.interval": - return protoreflect.ValueOfUint64(uint64(0)) - case "band.tunnel.v1beta1.Tunnel.total_deposit": + case "band.tunnel.v1beta1.TotalFees.total_base_packet_fee": list := []*v1beta1.Coin{} - return protoreflect.ValueOfList(&_Tunnel_7_list{list: &list}) - case "band.tunnel.v1beta1.Tunnel.is_active": - return protoreflect.ValueOfBool(false) - case "band.tunnel.v1beta1.Tunnel.created_at": - return protoreflect.ValueOfInt64(int64(0)) - case "band.tunnel.v1beta1.Tunnel.creator": - return protoreflect.ValueOfString("") + return protoreflect.ValueOfList(&_TotalFees_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Tunnel")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.TotalFees")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Tunnel does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.TotalFees 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_Tunnel) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_TotalFees) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in band.tunnel.v1beta1.Tunnel", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in band.tunnel.v1beta1.TotalFees", d.FullName())) } panic("unreachable") } @@ -1672,7 +1971,7 @@ func (x *fastReflection_Tunnel) WhichOneof(d protoreflect.OneofDescriptor) proto // 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_Tunnel) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_TotalFees) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1683,7 +1982,7 @@ func (x *fastReflection_Tunnel) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Tunnel) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_TotalFees) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1695,7 +1994,7 @@ func (x *fastReflection_Tunnel) SetUnknown(fields protoreflect.RawFields) { // 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_Tunnel) IsValid() bool { +func (x *fastReflection_TotalFees) IsValid() bool { return x != nil } @@ -1705,9 +2004,9 @@ func (x *fastReflection_Tunnel) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_Tunnel) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_TotalFees) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Tunnel) + x := input.Message.Interface().(*TotalFees) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1719,45 +2018,12 @@ func (x *fastReflection_Tunnel) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.Id != 0 { - n += 1 + runtime.Sov(uint64(x.Id)) - } - if x.Sequence != 0 { - n += 1 + runtime.Sov(uint64(x.Sequence)) - } - if x.Route != nil { - l = options.Size(x.Route) - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.FeePayer) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.SignalDeviations) > 0 { - for _, e := range x.SignalDeviations { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Interval != 0 { - n += 1 + runtime.Sov(uint64(x.Interval)) - } - if len(x.TotalDeposit) > 0 { - for _, e := range x.TotalDeposit { + if len(x.TotalBasePacketFee) > 0 { + for _, e := range x.TotalBasePacketFee { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } } - if x.IsActive { - n += 2 - } - if x.CreatedAt != 0 { - n += 1 + runtime.Sov(uint64(x.CreatedAt)) - } - l = len(x.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -1768,7 +2034,7 @@ func (x *fastReflection_Tunnel) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Tunnel) + x := input.Message.Interface().(*TotalFees) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1787,52 +2053,9 @@ func (x *fastReflection_Tunnel) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - 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] = 0x52 - } - if x.CreatedAt != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CreatedAt)) - i-- - dAtA[i] = 0x48 - } - if x.IsActive { - i-- - if x.IsActive { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if len(x.TotalDeposit) > 0 { - for iNdEx := len(x.TotalDeposit) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.TotalDeposit[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x3a - } - } - if x.Interval != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Interval)) - i-- - dAtA[i] = 0x30 - } - if len(x.SignalDeviations) > 0 { - for iNdEx := len(x.SignalDeviations) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.SignalDeviations[iNdEx]) + if len(x.TotalBasePacketFee) > 0 { + for iNdEx := len(x.TotalBasePacketFee) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.TotalBasePacketFee[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1843,39 +2066,8 @@ func (x *fastReflection_Tunnel) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x2a - } - } - if len(x.FeePayer) > 0 { - i -= len(x.FeePayer) - copy(dAtA[i:], x.FeePayer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FeePayer))) - i-- - dAtA[i] = 0x22 - } - if x.Route != nil { - encoded, err := options.Marshal(x.Route) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err + dAtA[i] = 0xa } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if x.Sequence != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Sequence)) - i-- - dAtA[i] = 0x10 - } - if x.Id != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) - i-- - dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -1888,7 +2080,7 @@ func (x *fastReflection_Tunnel) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Tunnel) + x := input.Message.Interface().(*TotalFees) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1904,190 +2096,31 @@ func (x *fastReflection_Tunnel) ProtoMethods() *protoiface.Methods { 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: Tunnel: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Tunnel: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - x.Id = 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.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) - } - x.Sequence = 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.Sequence |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) - } - var msglen int - 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++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - 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 - } - if x.Route == nil { - x.Route = &anypb.Any{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Route); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FeePayer", 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.FeePayer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SignalDeviations", wireType) - } - var msglen int - 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++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - 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.SignalDeviations = append(x.SignalDeviations, &SignalDeviation{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SignalDeviations[len(x.SignalDeviations)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow } - iNdEx = postIndex - case 6: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Interval = 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.Interval |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - case 7: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TotalFees: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TotalFees: 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 TotalDeposit", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalBasePacketFee", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2114,82 +2147,11 @@ func (x *fastReflection_Tunnel) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TotalDeposit = append(x.TotalDeposit, &v1beta1.Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TotalDeposit[len(x.TotalDeposit)-1]); err != nil { + x.TotalBasePacketFee = append(x.TotalBasePacketFee, &v1beta1.Coin{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TotalBasePacketFee[len(x.TotalBasePacketFee)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 8: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsActive", wireType) - } - var v int - 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.IsActive = bool(v != 0) - case 9: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) - } - x.CreatedAt = 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.CreatedAt |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - 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 default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2225,81 +2187,85 @@ func (x *fastReflection_Tunnel) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_LatestPrices_2_list)(nil) +var _ protoreflect.List = (*_Packet_3_list)(nil) -type _LatestPrices_2_list struct { +type _Packet_3_list struct { list *[]*v1beta11.Price } -func (x *_LatestPrices_2_list) Len() int { +func (x *_Packet_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_LatestPrices_2_list) Get(i int) protoreflect.Value { +func (x *_Packet_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_LatestPrices_2_list) Set(i int, value protoreflect.Value) { +func (x *_Packet_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*v1beta11.Price) (*x.list)[i] = concreteValue } -func (x *_LatestPrices_2_list) Append(value protoreflect.Value) { +func (x *_Packet_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*v1beta11.Price) *x.list = append(*x.list, concreteValue) } -func (x *_LatestPrices_2_list) AppendMutable() protoreflect.Value { +func (x *_Packet_3_list) AppendMutable() protoreflect.Value { v := new(v1beta11.Price) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_LatestPrices_2_list) Truncate(n int) { +func (x *_Packet_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_LatestPrices_2_list) NewElement() protoreflect.Value { +func (x *_Packet_3_list) NewElement() protoreflect.Value { v := new(v1beta11.Price) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_LatestPrices_2_list) IsValid() bool { +func (x *_Packet_3_list) IsValid() bool { return x.list != nil } var ( - md_LatestPrices protoreflect.MessageDescriptor - fd_LatestPrices_tunnel_id protoreflect.FieldDescriptor - fd_LatestPrices_prices protoreflect.FieldDescriptor - fd_LatestPrices_last_interval protoreflect.FieldDescriptor + md_Packet protoreflect.MessageDescriptor + fd_Packet_tunnel_id protoreflect.FieldDescriptor + fd_Packet_sequence protoreflect.FieldDescriptor + fd_Packet_prices protoreflect.FieldDescriptor + fd_Packet_receipt protoreflect.FieldDescriptor + fd_Packet_created_at protoreflect.FieldDescriptor ) func init() { file_band_tunnel_v1beta1_tunnel_proto_init() - md_LatestPrices = File_band_tunnel_v1beta1_tunnel_proto.Messages().ByName("LatestPrices") - fd_LatestPrices_tunnel_id = md_LatestPrices.Fields().ByName("tunnel_id") - fd_LatestPrices_prices = md_LatestPrices.Fields().ByName("prices") - fd_LatestPrices_last_interval = md_LatestPrices.Fields().ByName("last_interval") + md_Packet = File_band_tunnel_v1beta1_tunnel_proto.Messages().ByName("Packet") + fd_Packet_tunnel_id = md_Packet.Fields().ByName("tunnel_id") + fd_Packet_sequence = md_Packet.Fields().ByName("sequence") + fd_Packet_prices = md_Packet.Fields().ByName("prices") + fd_Packet_receipt = md_Packet.Fields().ByName("receipt") + fd_Packet_created_at = md_Packet.Fields().ByName("created_at") } -var _ protoreflect.Message = (*fastReflection_LatestPrices)(nil) +var _ protoreflect.Message = (*fastReflection_Packet)(nil) -type fastReflection_LatestPrices LatestPrices +type fastReflection_Packet Packet -func (x *LatestPrices) ProtoReflect() protoreflect.Message { - return (*fastReflection_LatestPrices)(x) +func (x *Packet) ProtoReflect() protoreflect.Message { + return (*fastReflection_Packet)(x) } -func (x *LatestPrices) slowProtoReflect() protoreflect.Message { +func (x *Packet) slowProtoReflect() protoreflect.Message { mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2311,43 +2277,43 @@ func (x *LatestPrices) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_LatestPrices_messageType fastReflection_LatestPrices_messageType -var _ protoreflect.MessageType = fastReflection_LatestPrices_messageType{} +var _fastReflection_Packet_messageType fastReflection_Packet_messageType +var _ protoreflect.MessageType = fastReflection_Packet_messageType{} -type fastReflection_LatestPrices_messageType struct{} +type fastReflection_Packet_messageType struct{} -func (x fastReflection_LatestPrices_messageType) Zero() protoreflect.Message { - return (*fastReflection_LatestPrices)(nil) +func (x fastReflection_Packet_messageType) Zero() protoreflect.Message { + return (*fastReflection_Packet)(nil) } -func (x fastReflection_LatestPrices_messageType) New() protoreflect.Message { - return new(fastReflection_LatestPrices) +func (x fastReflection_Packet_messageType) New() protoreflect.Message { + return new(fastReflection_Packet) } -func (x fastReflection_LatestPrices_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_LatestPrices +func (x fastReflection_Packet_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Packet } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_LatestPrices) Descriptor() protoreflect.MessageDescriptor { - return md_LatestPrices +func (x *fastReflection_Packet) Descriptor() protoreflect.MessageDescriptor { + return md_Packet } // 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_LatestPrices) Type() protoreflect.MessageType { - return _fastReflection_LatestPrices_messageType +func (x *fastReflection_Packet) Type() protoreflect.MessageType { + return _fastReflection_Packet_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_LatestPrices) New() protoreflect.Message { - return new(fastReflection_LatestPrices) +func (x *fastReflection_Packet) New() protoreflect.Message { + return new(fastReflection_Packet) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_LatestPrices) Interface() protoreflect.ProtoMessage { - return (*LatestPrices)(x) +func (x *fastReflection_Packet) Interface() protoreflect.ProtoMessage { + return (*Packet)(x) } // Range iterates over every populated field in an undefined order, @@ -2355,22 +2321,34 @@ func (x *fastReflection_LatestPrices) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_LatestPrices) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_Packet) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TunnelId != uint64(0) { value := protoreflect.ValueOfUint64(x.TunnelId) - if !f(fd_LatestPrices_tunnel_id, value) { + if !f(fd_Packet_tunnel_id, value) { + return + } + } + if x.Sequence != uint64(0) { + value := protoreflect.ValueOfUint64(x.Sequence) + if !f(fd_Packet_sequence, value) { return } } if len(x.Prices) != 0 { - value := protoreflect.ValueOfList(&_LatestPrices_2_list{list: &x.Prices}) - if !f(fd_LatestPrices_prices, value) { + value := protoreflect.ValueOfList(&_Packet_3_list{list: &x.Prices}) + if !f(fd_Packet_prices, value) { return } } - if x.LastInterval != int64(0) { - value := protoreflect.ValueOfInt64(x.LastInterval) - if !f(fd_LatestPrices_last_interval, value) { + if x.Receipt != nil { + value := protoreflect.ValueOfMessage(x.Receipt.ProtoReflect()) + if !f(fd_Packet_receipt, value) { + return + } + } + if x.CreatedAt != int64(0) { + value := protoreflect.ValueOfInt64(x.CreatedAt) + if !f(fd_Packet_created_at, value) { return } } @@ -2387,19 +2365,23 @@ func (x *fastReflection_LatestPrices) Range(f func(protoreflect.FieldDescriptor, // 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_LatestPrices) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_Packet) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "band.tunnel.v1beta1.LatestPrices.tunnel_id": + case "band.tunnel.v1beta1.Packet.tunnel_id": return x.TunnelId != uint64(0) - case "band.tunnel.v1beta1.LatestPrices.prices": + case "band.tunnel.v1beta1.Packet.sequence": + return x.Sequence != uint64(0) + case "band.tunnel.v1beta1.Packet.prices": return len(x.Prices) != 0 - case "band.tunnel.v1beta1.LatestPrices.last_interval": - return x.LastInterval != int64(0) + case "band.tunnel.v1beta1.Packet.receipt": + return x.Receipt != nil + case "band.tunnel.v1beta1.Packet.created_at": + return x.CreatedAt != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.LatestPrices")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Packet")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.LatestPrices does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Packet does not contain field %s", fd.FullName())) } } @@ -2409,19 +2391,23 @@ func (x *fastReflection_LatestPrices) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_LatestPrices) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_Packet) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "band.tunnel.v1beta1.LatestPrices.tunnel_id": + case "band.tunnel.v1beta1.Packet.tunnel_id": x.TunnelId = uint64(0) - case "band.tunnel.v1beta1.LatestPrices.prices": + case "band.tunnel.v1beta1.Packet.sequence": + x.Sequence = uint64(0) + case "band.tunnel.v1beta1.Packet.prices": x.Prices = nil - case "band.tunnel.v1beta1.LatestPrices.last_interval": - x.LastInterval = int64(0) + case "band.tunnel.v1beta1.Packet.receipt": + x.Receipt = nil + case "band.tunnel.v1beta1.Packet.created_at": + x.CreatedAt = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.LatestPrices")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Packet")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.LatestPrices does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Packet does not contain field %s", fd.FullName())) } } @@ -2431,25 +2417,31 @@ func (x *fastReflection_LatestPrices) Clear(fd protoreflect.FieldDescriptor) { // 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_LatestPrices) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Packet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "band.tunnel.v1beta1.LatestPrices.tunnel_id": + case "band.tunnel.v1beta1.Packet.tunnel_id": value := x.TunnelId return protoreflect.ValueOfUint64(value) - case "band.tunnel.v1beta1.LatestPrices.prices": + case "band.tunnel.v1beta1.Packet.sequence": + value := x.Sequence + return protoreflect.ValueOfUint64(value) + case "band.tunnel.v1beta1.Packet.prices": if len(x.Prices) == 0 { - return protoreflect.ValueOfList(&_LatestPrices_2_list{}) + return protoreflect.ValueOfList(&_Packet_3_list{}) } - listValue := &_LatestPrices_2_list{list: &x.Prices} + listValue := &_Packet_3_list{list: &x.Prices} return protoreflect.ValueOfList(listValue) - case "band.tunnel.v1beta1.LatestPrices.last_interval": - value := x.LastInterval + case "band.tunnel.v1beta1.Packet.receipt": + value := x.Receipt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "band.tunnel.v1beta1.Packet.created_at": + value := x.CreatedAt return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.LatestPrices")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Packet")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.LatestPrices does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Packet does not contain field %s", descriptor.FullName())) } } @@ -2463,21 +2455,25 @@ func (x *fastReflection_LatestPrices) Get(descriptor protoreflect.FieldDescripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_LatestPrices) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_Packet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "band.tunnel.v1beta1.LatestPrices.tunnel_id": + case "band.tunnel.v1beta1.Packet.tunnel_id": x.TunnelId = value.Uint() - case "band.tunnel.v1beta1.LatestPrices.prices": + case "band.tunnel.v1beta1.Packet.sequence": + x.Sequence = value.Uint() + case "band.tunnel.v1beta1.Packet.prices": lv := value.List() - clv := lv.(*_LatestPrices_2_list) + clv := lv.(*_Packet_3_list) x.Prices = *clv.list - case "band.tunnel.v1beta1.LatestPrices.last_interval": - x.LastInterval = value.Int() + case "band.tunnel.v1beta1.Packet.receipt": + x.Receipt = value.Message().Interface().(*anypb.Any) + case "band.tunnel.v1beta1.Packet.created_at": + x.CreatedAt = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.LatestPrices")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Packet")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.LatestPrices does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Packet does not contain field %s", fd.FullName())) } } @@ -2491,53 +2487,65 @@ func (x *fastReflection_LatestPrices) Set(fd protoreflect.FieldDescriptor, value // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_LatestPrices) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Packet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "band.tunnel.v1beta1.LatestPrices.prices": + case "band.tunnel.v1beta1.Packet.prices": if x.Prices == nil { x.Prices = []*v1beta11.Price{} } - value := &_LatestPrices_2_list{list: &x.Prices} + value := &_Packet_3_list{list: &x.Prices} return protoreflect.ValueOfList(value) - case "band.tunnel.v1beta1.LatestPrices.tunnel_id": - panic(fmt.Errorf("field tunnel_id of message band.tunnel.v1beta1.LatestPrices is not mutable")) - case "band.tunnel.v1beta1.LatestPrices.last_interval": - panic(fmt.Errorf("field last_interval of message band.tunnel.v1beta1.LatestPrices is not mutable")) + case "band.tunnel.v1beta1.Packet.receipt": + if x.Receipt == nil { + x.Receipt = new(anypb.Any) + } + return protoreflect.ValueOfMessage(x.Receipt.ProtoReflect()) + case "band.tunnel.v1beta1.Packet.tunnel_id": + panic(fmt.Errorf("field tunnel_id of message band.tunnel.v1beta1.Packet is not mutable")) + case "band.tunnel.v1beta1.Packet.sequence": + panic(fmt.Errorf("field sequence of message band.tunnel.v1beta1.Packet is not mutable")) + case "band.tunnel.v1beta1.Packet.created_at": + panic(fmt.Errorf("field created_at of message band.tunnel.v1beta1.Packet is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.LatestPrices")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Packet")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.LatestPrices does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Packet 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_LatestPrices) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Packet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "band.tunnel.v1beta1.LatestPrices.tunnel_id": + case "band.tunnel.v1beta1.Packet.tunnel_id": return protoreflect.ValueOfUint64(uint64(0)) - case "band.tunnel.v1beta1.LatestPrices.prices": + case "band.tunnel.v1beta1.Packet.sequence": + return protoreflect.ValueOfUint64(uint64(0)) + case "band.tunnel.v1beta1.Packet.prices": list := []*v1beta11.Price{} - return protoreflect.ValueOfList(&_LatestPrices_2_list{list: &list}) - case "band.tunnel.v1beta1.LatestPrices.last_interval": + return protoreflect.ValueOfList(&_Packet_3_list{list: &list}) + case "band.tunnel.v1beta1.Packet.receipt": + m := new(anypb.Any) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "band.tunnel.v1beta1.Packet.created_at": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.LatestPrices")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Packet")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.LatestPrices does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Packet 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_LatestPrices) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_Packet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in band.tunnel.v1beta1.LatestPrices", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in band.tunnel.v1beta1.Packet", d.FullName())) } panic("unreachable") } @@ -2545,7 +2553,7 @@ func (x *fastReflection_LatestPrices) WhichOneof(d protoreflect.OneofDescriptor) // 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_LatestPrices) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_Packet) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2556,7 +2564,7 @@ func (x *fastReflection_LatestPrices) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_LatestPrices) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_Packet) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2568,7 +2576,7 @@ func (x *fastReflection_LatestPrices) SetUnknown(fields protoreflect.RawFields) // 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_LatestPrices) IsValid() bool { +func (x *fastReflection_Packet) IsValid() bool { return x != nil } @@ -2578,9 +2586,9 @@ func (x *fastReflection_LatestPrices) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_LatestPrices) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_Packet) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*LatestPrices) + x := input.Message.Interface().(*Packet) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2595,14 +2603,21 @@ func (x *fastReflection_LatestPrices) ProtoMethods() *protoiface.Methods { if x.TunnelId != 0 { n += 1 + runtime.Sov(uint64(x.TunnelId)) } + if x.Sequence != 0 { + n += 1 + runtime.Sov(uint64(x.Sequence)) + } if len(x.Prices) > 0 { for _, e := range x.Prices { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } } - if x.LastInterval != 0 { - n += 1 + runtime.Sov(uint64(x.LastInterval)) + if x.Receipt != nil { + l = options.Size(x.Receipt) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.CreatedAt != 0 { + n += 1 + runtime.Sov(uint64(x.CreatedAt)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -2614,7 +2629,7 @@ func (x *fastReflection_LatestPrices) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*LatestPrices) + x := input.Message.Interface().(*Packet) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2633,10 +2648,24 @@ func (x *fastReflection_LatestPrices) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.LastInterval != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.LastInterval)) + if x.CreatedAt != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CreatedAt)) i-- - dAtA[i] = 0x18 + dAtA[i] = 0x28 + } + if x.Receipt != nil { + encoded, err := options.Marshal(x.Receipt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 } if len(x.Prices) > 0 { for iNdEx := len(x.Prices) - 1; iNdEx >= 0; iNdEx-- { @@ -2651,9 +2680,14 @@ func (x *fastReflection_LatestPrices) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } } + if x.Sequence != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Sequence)) + i-- + dAtA[i] = 0x10 + } if x.TunnelId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TunnelId)) i-- @@ -2670,7 +2704,7 @@ func (x *fastReflection_LatestPrices) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*LatestPrices) + x := input.Message.Interface().(*Packet) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2702,10 +2736,10 @@ func (x *fastReflection_LatestPrices) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LatestPrices: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Packet: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LatestPrices: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Packet: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2728,6 +2762,25 @@ func (x *fastReflection_LatestPrices) ProtoMethods() *protoiface.Methods { } } case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + } + x.Sequence = 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.Sequence |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Prices", wireType) } @@ -2761,11 +2814,47 @@ func (x *fastReflection_LatestPrices) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 3: + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Receipt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Receipt == nil { + x.Receipt = &anypb.Any{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Receipt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastInterval", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) } - x.LastInterval = 0 + x.CreatedAt = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2775,7 +2864,7 @@ func (x *fastReflection_LatestPrices) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.LastInterval |= int64(b&0x7F) << shift + x.CreatedAt |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2815,77 +2904,81 @@ func (x *fastReflection_LatestPrices) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_TotalFees_1_list)(nil) +var _ protoreflect.List = (*_Deposit_3_list)(nil) -type _TotalFees_1_list struct { +type _Deposit_3_list struct { list *[]*v1beta1.Coin } -func (x *_TotalFees_1_list) Len() int { +func (x *_Deposit_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_TotalFees_1_list) Get(i int) protoreflect.Value { +func (x *_Deposit_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_TotalFees_1_list) Set(i int, value protoreflect.Value) { +func (x *_Deposit_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) (*x.list)[i] = concreteValue } -func (x *_TotalFees_1_list) Append(value protoreflect.Value) { +func (x *_Deposit_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) *x.list = append(*x.list, concreteValue) } -func (x *_TotalFees_1_list) AppendMutable() protoreflect.Value { +func (x *_Deposit_3_list) AppendMutable() protoreflect.Value { v := new(v1beta1.Coin) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_TotalFees_1_list) Truncate(n int) { +func (x *_Deposit_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_TotalFees_1_list) NewElement() protoreflect.Value { +func (x *_Deposit_3_list) NewElement() protoreflect.Value { v := new(v1beta1.Coin) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_TotalFees_1_list) IsValid() bool { +func (x *_Deposit_3_list) IsValid() bool { return x.list != nil } var ( - md_TotalFees protoreflect.MessageDescriptor - fd_TotalFees_total_base_packet_fee protoreflect.FieldDescriptor + md_Deposit protoreflect.MessageDescriptor + fd_Deposit_tunnel_id protoreflect.FieldDescriptor + fd_Deposit_depositor protoreflect.FieldDescriptor + fd_Deposit_amount protoreflect.FieldDescriptor ) func init() { file_band_tunnel_v1beta1_tunnel_proto_init() - md_TotalFees = File_band_tunnel_v1beta1_tunnel_proto.Messages().ByName("TotalFees") - fd_TotalFees_total_base_packet_fee = md_TotalFees.Fields().ByName("total_base_packet_fee") + md_Deposit = File_band_tunnel_v1beta1_tunnel_proto.Messages().ByName("Deposit") + fd_Deposit_tunnel_id = md_Deposit.Fields().ByName("tunnel_id") + fd_Deposit_depositor = md_Deposit.Fields().ByName("depositor") + fd_Deposit_amount = md_Deposit.Fields().ByName("amount") } -var _ protoreflect.Message = (*fastReflection_TotalFees)(nil) - -type fastReflection_TotalFees TotalFees +var _ protoreflect.Message = (*fastReflection_Deposit)(nil) -func (x *TotalFees) ProtoReflect() protoreflect.Message { - return (*fastReflection_TotalFees)(x) +type fastReflection_Deposit Deposit + +func (x *Deposit) ProtoReflect() protoreflect.Message { + return (*fastReflection_Deposit)(x) } -func (x *TotalFees) slowProtoReflect() protoreflect.Message { +func (x *Deposit) slowProtoReflect() protoreflect.Message { mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2897,43 +2990,43 @@ func (x *TotalFees) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_TotalFees_messageType fastReflection_TotalFees_messageType -var _ protoreflect.MessageType = fastReflection_TotalFees_messageType{} +var _fastReflection_Deposit_messageType fastReflection_Deposit_messageType +var _ protoreflect.MessageType = fastReflection_Deposit_messageType{} -type fastReflection_TotalFees_messageType struct{} +type fastReflection_Deposit_messageType struct{} -func (x fastReflection_TotalFees_messageType) Zero() protoreflect.Message { - return (*fastReflection_TotalFees)(nil) +func (x fastReflection_Deposit_messageType) Zero() protoreflect.Message { + return (*fastReflection_Deposit)(nil) } -func (x fastReflection_TotalFees_messageType) New() protoreflect.Message { - return new(fastReflection_TotalFees) +func (x fastReflection_Deposit_messageType) New() protoreflect.Message { + return new(fastReflection_Deposit) } -func (x fastReflection_TotalFees_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_TotalFees +func (x fastReflection_Deposit_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Deposit } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_TotalFees) Descriptor() protoreflect.MessageDescriptor { - return md_TotalFees +func (x *fastReflection_Deposit) Descriptor() protoreflect.MessageDescriptor { + return md_Deposit } // 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_TotalFees) Type() protoreflect.MessageType { - return _fastReflection_TotalFees_messageType +func (x *fastReflection_Deposit) Type() protoreflect.MessageType { + return _fastReflection_Deposit_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_TotalFees) New() protoreflect.Message { - return new(fastReflection_TotalFees) +func (x *fastReflection_Deposit) New() protoreflect.Message { + return new(fastReflection_Deposit) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_TotalFees) Interface() protoreflect.ProtoMessage { - return (*TotalFees)(x) +func (x *fastReflection_Deposit) Interface() protoreflect.ProtoMessage { + return (*Deposit)(x) } // Range iterates over every populated field in an undefined order, @@ -2941,10 +3034,22 @@ func (x *fastReflection_TotalFees) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_TotalFees) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.TotalBasePacketFee) != 0 { - value := protoreflect.ValueOfList(&_TotalFees_1_list{list: &x.TotalBasePacketFee}) - if !f(fd_TotalFees_total_base_packet_fee, value) { +func (x *fastReflection_Deposit) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TunnelId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TunnelId) + if !f(fd_Deposit_tunnel_id, value) { + return + } + } + if x.Depositor != "" { + value := protoreflect.ValueOfString(x.Depositor) + if !f(fd_Deposit_depositor, value) { + return + } + } + if len(x.Amount) != 0 { + value := protoreflect.ValueOfList(&_Deposit_3_list{list: &x.Amount}) + if !f(fd_Deposit_amount, value) { return } } @@ -2961,15 +3066,19 @@ func (x *fastReflection_TotalFees) Range(f func(protoreflect.FieldDescriptor, pr // 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_TotalFees) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_Deposit) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "band.tunnel.v1beta1.TotalFees.total_base_packet_fee": - return len(x.TotalBasePacketFee) != 0 + case "band.tunnel.v1beta1.Deposit.tunnel_id": + return x.TunnelId != uint64(0) + case "band.tunnel.v1beta1.Deposit.depositor": + return x.Depositor != "" + case "band.tunnel.v1beta1.Deposit.amount": + return len(x.Amount) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.TotalFees")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Deposit")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.TotalFees does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Deposit does not contain field %s", fd.FullName())) } } @@ -2979,15 +3088,19 @@ func (x *fastReflection_TotalFees) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TotalFees) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_Deposit) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "band.tunnel.v1beta1.TotalFees.total_base_packet_fee": - x.TotalBasePacketFee = nil + case "band.tunnel.v1beta1.Deposit.tunnel_id": + x.TunnelId = uint64(0) + case "band.tunnel.v1beta1.Deposit.depositor": + x.Depositor = "" + case "band.tunnel.v1beta1.Deposit.amount": + x.Amount = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.TotalFees")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Deposit")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.TotalFees does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Deposit does not contain field %s", fd.FullName())) } } @@ -2997,19 +3110,25 @@ func (x *fastReflection_TotalFees) Clear(fd protoreflect.FieldDescriptor) { // 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_TotalFees) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Deposit) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "band.tunnel.v1beta1.TotalFees.total_base_packet_fee": - if len(x.TotalBasePacketFee) == 0 { - return protoreflect.ValueOfList(&_TotalFees_1_list{}) + case "band.tunnel.v1beta1.Deposit.tunnel_id": + value := x.TunnelId + return protoreflect.ValueOfUint64(value) + case "band.tunnel.v1beta1.Deposit.depositor": + value := x.Depositor + return protoreflect.ValueOfString(value) + case "band.tunnel.v1beta1.Deposit.amount": + if len(x.Amount) == 0 { + return protoreflect.ValueOfList(&_Deposit_3_list{}) } - listValue := &_TotalFees_1_list{list: &x.TotalBasePacketFee} + listValue := &_Deposit_3_list{list: &x.Amount} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.TotalFees")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Deposit")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.TotalFees does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Deposit does not contain field %s", descriptor.FullName())) } } @@ -3023,17 +3142,21 @@ func (x *fastReflection_TotalFees) Get(descriptor protoreflect.FieldDescriptor) // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TotalFees) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_Deposit) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "band.tunnel.v1beta1.TotalFees.total_base_packet_fee": + case "band.tunnel.v1beta1.Deposit.tunnel_id": + x.TunnelId = value.Uint() + case "band.tunnel.v1beta1.Deposit.depositor": + x.Depositor = value.Interface().(string) + case "band.tunnel.v1beta1.Deposit.amount": lv := value.List() - clv := lv.(*_TotalFees_1_list) - x.TotalBasePacketFee = *clv.list + clv := lv.(*_Deposit_3_list) + x.Amount = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.TotalFees")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Deposit")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.TotalFees does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Deposit does not contain field %s", fd.FullName())) } } @@ -3047,45 +3170,53 @@ func (x *fastReflection_TotalFees) Set(fd protoreflect.FieldDescriptor, value pr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TotalFees) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Deposit) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "band.tunnel.v1beta1.TotalFees.total_base_packet_fee": - if x.TotalBasePacketFee == nil { - x.TotalBasePacketFee = []*v1beta1.Coin{} + case "band.tunnel.v1beta1.Deposit.amount": + if x.Amount == nil { + x.Amount = []*v1beta1.Coin{} } - value := &_TotalFees_1_list{list: &x.TotalBasePacketFee} + value := &_Deposit_3_list{list: &x.Amount} return protoreflect.ValueOfList(value) + case "band.tunnel.v1beta1.Deposit.tunnel_id": + panic(fmt.Errorf("field tunnel_id of message band.tunnel.v1beta1.Deposit is not mutable")) + case "band.tunnel.v1beta1.Deposit.depositor": + panic(fmt.Errorf("field depositor of message band.tunnel.v1beta1.Deposit is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.TotalFees")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Deposit")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.TotalFees does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Deposit 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_TotalFees) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Deposit) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "band.tunnel.v1beta1.TotalFees.total_base_packet_fee": + case "band.tunnel.v1beta1.Deposit.tunnel_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "band.tunnel.v1beta1.Deposit.depositor": + return protoreflect.ValueOfString("") + case "band.tunnel.v1beta1.Deposit.amount": list := []*v1beta1.Coin{} - return protoreflect.ValueOfList(&_TotalFees_1_list{list: &list}) + return protoreflect.ValueOfList(&_Deposit_3_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.TotalFees")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Deposit")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.TotalFees does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.Deposit 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_TotalFees) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_Deposit) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in band.tunnel.v1beta1.TotalFees", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in band.tunnel.v1beta1.Deposit", d.FullName())) } panic("unreachable") } @@ -3093,7 +3224,7 @@ func (x *fastReflection_TotalFees) WhichOneof(d protoreflect.OneofDescriptor) pr // 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_TotalFees) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_Deposit) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3104,7 +3235,7 @@ func (x *fastReflection_TotalFees) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TotalFees) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_Deposit) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3116,7 +3247,7 @@ func (x *fastReflection_TotalFees) SetUnknown(fields protoreflect.RawFields) { // 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_TotalFees) IsValid() bool { +func (x *fastReflection_Deposit) IsValid() bool { return x != nil } @@ -3126,9 +3257,9 @@ func (x *fastReflection_TotalFees) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_TotalFees) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_Deposit) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*TotalFees) + x := input.Message.Interface().(*Deposit) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3140,8 +3271,15 @@ func (x *fastReflection_TotalFees) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if len(x.TotalBasePacketFee) > 0 { - for _, e := range x.TotalBasePacketFee { + if x.TunnelId != 0 { + n += 1 + runtime.Sov(uint64(x.TunnelId)) + } + l = len(x.Depositor) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Amount) > 0 { + for _, e := range x.Amount { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -3156,7 +3294,7 @@ func (x *fastReflection_TotalFees) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*TotalFees) + x := input.Message.Interface().(*Deposit) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3175,9 +3313,9 @@ func (x *fastReflection_TotalFees) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.TotalBasePacketFee) > 0 { - for iNdEx := len(x.TotalBasePacketFee) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.TotalBasePacketFee[iNdEx]) + if len(x.Amount) > 0 { + for iNdEx := len(x.Amount) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Amount[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3188,9 +3326,21 @@ func (x *fastReflection_TotalFees) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x1a } } + if len(x.Depositor) > 0 { + i -= len(x.Depositor) + copy(dAtA[i:], x.Depositor) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Depositor))) + i-- + dAtA[i] = 0x12 + } + if x.TunnelId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TunnelId)) + i-- + dAtA[i] = 0x8 + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -3202,7 +3352,7 @@ func (x *fastReflection_TotalFees) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*TotalFees) + x := input.Message.Interface().(*Deposit) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3221,28 +3371,79 @@ func (x *fastReflection_TotalFees) ProtoMethods() *protoiface.Methods { 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 + 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: Deposit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Deposit: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TunnelId", wireType) + } + x.TunnelId = 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.TunnelId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Depositor", 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 } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TotalFees: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TotalFees: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Depositor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalBasePacketFee", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3269,8 +3470,8 @@ func (x *fastReflection_TotalFees) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TotalBasePacketFee = append(x.TotalBasePacketFee, &v1beta1.Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TotalBasePacketFee[len(x.TotalBasePacketFee)-1]); err != nil { + x.Amount = append(x.Amount, &v1beta1.Coin{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount[len(x.Amount)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -3309,85 +3510,30 @@ func (x *fastReflection_TotalFees) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_Packet_3_list)(nil) - -type _Packet_3_list struct { - list *[]*v1beta11.Price -} - -func (x *_Packet_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Packet_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_Packet_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta11.Price) - (*x.list)[i] = concreteValue -} - -func (x *_Packet_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta11.Price) - *x.list = append(*x.list, concreteValue) -} - -func (x *_Packet_3_list) AppendMutable() protoreflect.Value { - v := new(v1beta11.Price) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Packet_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_Packet_3_list) NewElement() protoreflect.Value { - v := new(v1beta11.Price) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Packet_3_list) IsValid() bool { - return x.list != nil -} - var ( - md_Packet protoreflect.MessageDescriptor - fd_Packet_tunnel_id protoreflect.FieldDescriptor - fd_Packet_sequence protoreflect.FieldDescriptor - fd_Packet_prices protoreflect.FieldDescriptor - fd_Packet_receipt protoreflect.FieldDescriptor - fd_Packet_created_at protoreflect.FieldDescriptor + md_SignalDeviation protoreflect.MessageDescriptor + fd_SignalDeviation_signal_id protoreflect.FieldDescriptor + fd_SignalDeviation_soft_deviation_bps protoreflect.FieldDescriptor + fd_SignalDeviation_hard_deviation_bps protoreflect.FieldDescriptor ) func init() { file_band_tunnel_v1beta1_tunnel_proto_init() - md_Packet = File_band_tunnel_v1beta1_tunnel_proto.Messages().ByName("Packet") - fd_Packet_tunnel_id = md_Packet.Fields().ByName("tunnel_id") - fd_Packet_sequence = md_Packet.Fields().ByName("sequence") - fd_Packet_prices = md_Packet.Fields().ByName("prices") - fd_Packet_receipt = md_Packet.Fields().ByName("receipt") - fd_Packet_created_at = md_Packet.Fields().ByName("created_at") + md_SignalDeviation = File_band_tunnel_v1beta1_tunnel_proto.Messages().ByName("SignalDeviation") + fd_SignalDeviation_signal_id = md_SignalDeviation.Fields().ByName("signal_id") + fd_SignalDeviation_soft_deviation_bps = md_SignalDeviation.Fields().ByName("soft_deviation_bps") + fd_SignalDeviation_hard_deviation_bps = md_SignalDeviation.Fields().ByName("hard_deviation_bps") } -var _ protoreflect.Message = (*fastReflection_Packet)(nil) +var _ protoreflect.Message = (*fastReflection_SignalDeviation)(nil) -type fastReflection_Packet Packet +type fastReflection_SignalDeviation SignalDeviation -func (x *Packet) ProtoReflect() protoreflect.Message { - return (*fastReflection_Packet)(x) +func (x *SignalDeviation) ProtoReflect() protoreflect.Message { + return (*fastReflection_SignalDeviation)(x) } -func (x *Packet) slowProtoReflect() protoreflect.Message { +func (x *SignalDeviation) slowProtoReflect() protoreflect.Message { mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3399,43 +3545,43 @@ func (x *Packet) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_Packet_messageType fastReflection_Packet_messageType -var _ protoreflect.MessageType = fastReflection_Packet_messageType{} +var _fastReflection_SignalDeviation_messageType fastReflection_SignalDeviation_messageType +var _ protoreflect.MessageType = fastReflection_SignalDeviation_messageType{} -type fastReflection_Packet_messageType struct{} +type fastReflection_SignalDeviation_messageType struct{} -func (x fastReflection_Packet_messageType) Zero() protoreflect.Message { - return (*fastReflection_Packet)(nil) +func (x fastReflection_SignalDeviation_messageType) Zero() protoreflect.Message { + return (*fastReflection_SignalDeviation)(nil) } -func (x fastReflection_Packet_messageType) New() protoreflect.Message { - return new(fastReflection_Packet) +func (x fastReflection_SignalDeviation_messageType) New() protoreflect.Message { + return new(fastReflection_SignalDeviation) } -func (x fastReflection_Packet_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Packet +func (x fastReflection_SignalDeviation_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_SignalDeviation } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_Packet) Descriptor() protoreflect.MessageDescriptor { - return md_Packet +func (x *fastReflection_SignalDeviation) Descriptor() protoreflect.MessageDescriptor { + return md_SignalDeviation } // 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_Packet) Type() protoreflect.MessageType { - return _fastReflection_Packet_messageType +func (x *fastReflection_SignalDeviation) Type() protoreflect.MessageType { + return _fastReflection_SignalDeviation_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_Packet) New() protoreflect.Message { - return new(fastReflection_Packet) +func (x *fastReflection_SignalDeviation) New() protoreflect.Message { + return new(fastReflection_SignalDeviation) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_Packet) Interface() protoreflect.ProtoMessage { - return (*Packet)(x) +func (x *fastReflection_SignalDeviation) Interface() protoreflect.ProtoMessage { + return (*SignalDeviation)(x) } // Range iterates over every populated field in an undefined order, @@ -3443,34 +3589,22 @@ func (x *fastReflection_Packet) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_Packet) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TunnelId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TunnelId) - if !f(fd_Packet_tunnel_id, value) { - return - } - } - if x.Sequence != uint64(0) { - value := protoreflect.ValueOfUint64(x.Sequence) - if !f(fd_Packet_sequence, value) { - return - } - } - if len(x.Prices) != 0 { - value := protoreflect.ValueOfList(&_Packet_3_list{list: &x.Prices}) - if !f(fd_Packet_prices, value) { +func (x *fastReflection_SignalDeviation) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.SignalId != "" { + value := protoreflect.ValueOfString(x.SignalId) + if !f(fd_SignalDeviation_signal_id, value) { return } } - if x.Receipt != nil { - value := protoreflect.ValueOfMessage(x.Receipt.ProtoReflect()) - if !f(fd_Packet_receipt, value) { + if x.SoftDeviationBps != uint64(0) { + value := protoreflect.ValueOfUint64(x.SoftDeviationBps) + if !f(fd_SignalDeviation_soft_deviation_bps, value) { return } } - if x.CreatedAt != int64(0) { - value := protoreflect.ValueOfInt64(x.CreatedAt) - if !f(fd_Packet_created_at, value) { + if x.HardDeviationBps != uint64(0) { + value := protoreflect.ValueOfUint64(x.HardDeviationBps) + if !f(fd_SignalDeviation_hard_deviation_bps, value) { return } } @@ -3487,23 +3621,19 @@ func (x *fastReflection_Packet) Range(f func(protoreflect.FieldDescriptor, proto // 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_Packet) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_SignalDeviation) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "band.tunnel.v1beta1.Packet.tunnel_id": - return x.TunnelId != uint64(0) - case "band.tunnel.v1beta1.Packet.sequence": - return x.Sequence != uint64(0) - case "band.tunnel.v1beta1.Packet.prices": - return len(x.Prices) != 0 - case "band.tunnel.v1beta1.Packet.receipt": - return x.Receipt != nil - case "band.tunnel.v1beta1.Packet.created_at": - return x.CreatedAt != int64(0) + case "band.tunnel.v1beta1.SignalDeviation.signal_id": + return x.SignalId != "" + case "band.tunnel.v1beta1.SignalDeviation.soft_deviation_bps": + return x.SoftDeviationBps != uint64(0) + case "band.tunnel.v1beta1.SignalDeviation.hard_deviation_bps": + return x.HardDeviationBps != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Packet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.SignalDeviation")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Packet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.SignalDeviation does not contain field %s", fd.FullName())) } } @@ -3513,23 +3643,19 @@ func (x *fastReflection_Packet) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Packet) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_SignalDeviation) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "band.tunnel.v1beta1.Packet.tunnel_id": - x.TunnelId = uint64(0) - case "band.tunnel.v1beta1.Packet.sequence": - x.Sequence = uint64(0) - case "band.tunnel.v1beta1.Packet.prices": - x.Prices = nil - case "band.tunnel.v1beta1.Packet.receipt": - x.Receipt = nil - case "band.tunnel.v1beta1.Packet.created_at": - x.CreatedAt = int64(0) + case "band.tunnel.v1beta1.SignalDeviation.signal_id": + x.SignalId = "" + case "band.tunnel.v1beta1.SignalDeviation.soft_deviation_bps": + x.SoftDeviationBps = uint64(0) + case "band.tunnel.v1beta1.SignalDeviation.hard_deviation_bps": + x.HardDeviationBps = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Packet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.SignalDeviation")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Packet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.SignalDeviation does not contain field %s", fd.FullName())) } } @@ -3539,31 +3665,22 @@ func (x *fastReflection_Packet) Clear(fd protoreflect.FieldDescriptor) { // 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_Packet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_SignalDeviation) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "band.tunnel.v1beta1.Packet.tunnel_id": - value := x.TunnelId - return protoreflect.ValueOfUint64(value) - case "band.tunnel.v1beta1.Packet.sequence": - value := x.Sequence + case "band.tunnel.v1beta1.SignalDeviation.signal_id": + value := x.SignalId + return protoreflect.ValueOfString(value) + case "band.tunnel.v1beta1.SignalDeviation.soft_deviation_bps": + value := x.SoftDeviationBps + return protoreflect.ValueOfUint64(value) + case "band.tunnel.v1beta1.SignalDeviation.hard_deviation_bps": + value := x.HardDeviationBps return protoreflect.ValueOfUint64(value) - case "band.tunnel.v1beta1.Packet.prices": - if len(x.Prices) == 0 { - return protoreflect.ValueOfList(&_Packet_3_list{}) - } - listValue := &_Packet_3_list{list: &x.Prices} - return protoreflect.ValueOfList(listValue) - case "band.tunnel.v1beta1.Packet.receipt": - value := x.Receipt - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "band.tunnel.v1beta1.Packet.created_at": - value := x.CreatedAt - return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Packet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.SignalDeviation")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Packet does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.SignalDeviation does not contain field %s", descriptor.FullName())) } } @@ -3577,25 +3694,19 @@ func (x *fastReflection_Packet) Get(descriptor protoreflect.FieldDescriptor) pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Packet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_SignalDeviation) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "band.tunnel.v1beta1.Packet.tunnel_id": - x.TunnelId = value.Uint() - case "band.tunnel.v1beta1.Packet.sequence": - x.Sequence = value.Uint() - case "band.tunnel.v1beta1.Packet.prices": - lv := value.List() - clv := lv.(*_Packet_3_list) - x.Prices = *clv.list - case "band.tunnel.v1beta1.Packet.receipt": - x.Receipt = value.Message().Interface().(*anypb.Any) - case "band.tunnel.v1beta1.Packet.created_at": - x.CreatedAt = value.Int() + case "band.tunnel.v1beta1.SignalDeviation.signal_id": + x.SignalId = value.Interface().(string) + case "band.tunnel.v1beta1.SignalDeviation.soft_deviation_bps": + x.SoftDeviationBps = value.Uint() + case "band.tunnel.v1beta1.SignalDeviation.hard_deviation_bps": + x.HardDeviationBps = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Packet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.SignalDeviation")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Packet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.SignalDeviation does not contain field %s", fd.FullName())) } } @@ -3609,65 +3720,48 @@ func (x *fastReflection_Packet) Set(fd protoreflect.FieldDescriptor, value proto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Packet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_SignalDeviation) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "band.tunnel.v1beta1.Packet.prices": - if x.Prices == nil { - x.Prices = []*v1beta11.Price{} - } - value := &_Packet_3_list{list: &x.Prices} - return protoreflect.ValueOfList(value) - case "band.tunnel.v1beta1.Packet.receipt": - if x.Receipt == nil { - x.Receipt = new(anypb.Any) - } - return protoreflect.ValueOfMessage(x.Receipt.ProtoReflect()) - case "band.tunnel.v1beta1.Packet.tunnel_id": - panic(fmt.Errorf("field tunnel_id of message band.tunnel.v1beta1.Packet is not mutable")) - case "band.tunnel.v1beta1.Packet.sequence": - panic(fmt.Errorf("field sequence of message band.tunnel.v1beta1.Packet is not mutable")) - case "band.tunnel.v1beta1.Packet.created_at": - panic(fmt.Errorf("field created_at of message band.tunnel.v1beta1.Packet is not mutable")) + case "band.tunnel.v1beta1.SignalDeviation.signal_id": + panic(fmt.Errorf("field signal_id of message band.tunnel.v1beta1.SignalDeviation is not mutable")) + case "band.tunnel.v1beta1.SignalDeviation.soft_deviation_bps": + panic(fmt.Errorf("field soft_deviation_bps of message band.tunnel.v1beta1.SignalDeviation is not mutable")) + case "band.tunnel.v1beta1.SignalDeviation.hard_deviation_bps": + panic(fmt.Errorf("field hard_deviation_bps of message band.tunnel.v1beta1.SignalDeviation is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Packet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.SignalDeviation")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Packet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.SignalDeviation 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_Packet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_SignalDeviation) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "band.tunnel.v1beta1.Packet.tunnel_id": + case "band.tunnel.v1beta1.SignalDeviation.signal_id": + return protoreflect.ValueOfString("") + case "band.tunnel.v1beta1.SignalDeviation.soft_deviation_bps": return protoreflect.ValueOfUint64(uint64(0)) - case "band.tunnel.v1beta1.Packet.sequence": + case "band.tunnel.v1beta1.SignalDeviation.hard_deviation_bps": return protoreflect.ValueOfUint64(uint64(0)) - case "band.tunnel.v1beta1.Packet.prices": - list := []*v1beta11.Price{} - return protoreflect.ValueOfList(&_Packet_3_list{list: &list}) - case "band.tunnel.v1beta1.Packet.receipt": - m := new(anypb.Any) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "band.tunnel.v1beta1.Packet.created_at": - return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.Packet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: band.tunnel.v1beta1.SignalDeviation")) } - panic(fmt.Errorf("message band.tunnel.v1beta1.Packet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message band.tunnel.v1beta1.SignalDeviation 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_Packet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_SignalDeviation) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in band.tunnel.v1beta1.Packet", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in band.tunnel.v1beta1.SignalDeviation", d.FullName())) } panic("unreachable") } @@ -3675,7 +3769,7 @@ func (x *fastReflection_Packet) WhichOneof(d protoreflect.OneofDescriptor) proto // 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_Packet) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_SignalDeviation) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3686,7 +3780,7 @@ func (x *fastReflection_Packet) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Packet) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_SignalDeviation) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3698,7 +3792,7 @@ func (x *fastReflection_Packet) SetUnknown(fields protoreflect.RawFields) { // 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_Packet) IsValid() bool { +func (x *fastReflection_SignalDeviation) IsValid() bool { return x != nil } @@ -3708,9 +3802,9 @@ func (x *fastReflection_Packet) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_Packet) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_SignalDeviation) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Packet) + x := input.Message.Interface().(*SignalDeviation) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3722,24 +3816,15 @@ func (x *fastReflection_Packet) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.TunnelId != 0 { - n += 1 + runtime.Sov(uint64(x.TunnelId)) - } - if x.Sequence != 0 { - n += 1 + runtime.Sov(uint64(x.Sequence)) - } - if len(x.Prices) > 0 { - for _, e := range x.Prices { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Receipt != nil { - l = options.Size(x.Receipt) + l = len(x.SignalId) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.CreatedAt != 0 { - n += 1 + runtime.Sov(uint64(x.CreatedAt)) + if x.SoftDeviationBps != 0 { + n += 1 + runtime.Sov(uint64(x.SoftDeviationBps)) + } + if x.HardDeviationBps != 0 { + n += 1 + runtime.Sov(uint64(x.HardDeviationBps)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -3751,7 +3836,7 @@ func (x *fastReflection_Packet) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Packet) + x := input.Message.Interface().(*SignalDeviation) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3770,50 +3855,22 @@ func (x *fastReflection_Packet) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.CreatedAt != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CreatedAt)) - i-- - dAtA[i] = 0x28 - } - if x.Receipt != nil { - encoded, err := options.Marshal(x.Receipt) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if x.HardDeviationBps != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.HardDeviationBps)) i-- - dAtA[i] = 0x22 - } - if len(x.Prices) > 0 { - for iNdEx := len(x.Prices) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Prices[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } + dAtA[i] = 0x18 } - if x.Sequence != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Sequence)) + if x.SoftDeviationBps != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SoftDeviationBps)) i-- dAtA[i] = 0x10 } - if x.TunnelId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TunnelId)) + if len(x.SignalId) > 0 { + i -= len(x.SignalId) + copy(dAtA[i:], x.SignalId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SignalId))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -3826,7 +3883,7 @@ func (x *fastReflection_Packet) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Packet) + x := input.Message.Interface().(*SignalDeviation) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3858,55 +3915,17 @@ func (x *fastReflection_Packet) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Packet: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SignalDeviation: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Packet: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SignalDeviation: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TunnelId", wireType) - } - x.TunnelId = 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.TunnelId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) - } - x.Sequence = 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.Sequence |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Prices", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SignalId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -3916,31 +3935,29 @@ func (x *fastReflection_Packet) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + 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.Prices = append(x.Prices, &v1beta11.Price{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Prices[len(x.Prices)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.SignalId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Receipt", wireType) + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SoftDeviationBps", wireType) } - var msglen int + x.SoftDeviationBps = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -3950,33 +3967,16 @@ func (x *fastReflection_Packet) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + x.SoftDeviationBps |= uint64(b&0x7F) << shift if b < 0x80 { break } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - 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 - } - if x.Receipt == nil { - x.Receipt = &anypb.Any{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Receipt); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 5: + } + case 3: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HardDeviationBps", wireType) } - x.CreatedAt = 0 + x.HardDeviationBps = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -3986,7 +3986,7 @@ func (x *fastReflection_Packet) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.CreatedAt |= int64(b&0x7F) << shift + x.HardDeviationBps |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4677,116 +4677,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// SignalDeviation is the type for a signal with soft and hard deviation -type SignalDeviation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // signal_id is the signal ID - SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` - // soft_deviation_bps is the soft deviation in basis points - SoftDeviationBps uint64 `protobuf:"varint,2,opt,name=soft_deviation_bps,json=softDeviationBps,proto3" json:"soft_deviation_bps,omitempty"` - // hard_deviation_bps is the hard deviation in basis points - HardDeviationBps uint64 `protobuf:"varint,3,opt,name=hard_deviation_bps,json=hardDeviationBps,proto3" json:"hard_deviation_bps,omitempty"` -} - -func (x *SignalDeviation) Reset() { - *x = SignalDeviation{} - if protoimpl.UnsafeEnabled { - mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SignalDeviation) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SignalDeviation) ProtoMessage() {} - -// Deprecated: Use SignalDeviation.ProtoReflect.Descriptor instead. -func (*SignalDeviation) Descriptor() ([]byte, []int) { - return file_band_tunnel_v1beta1_tunnel_proto_rawDescGZIP(), []int{0} -} - -func (x *SignalDeviation) GetSignalId() string { - if x != nil { - return x.SignalId - } - return "" -} - -func (x *SignalDeviation) GetSoftDeviationBps() uint64 { - if x != nil { - return x.SoftDeviationBps - } - return 0 -} - -func (x *SignalDeviation) GetHardDeviationBps() uint64 { - if x != nil { - return x.HardDeviationBps - } - return 0 -} - -// Deposit defines an amount deposited by an account address to the tunnel. -type Deposit struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // tunnel_id defines the unique id of the tunnel. - TunnelId uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` - // depositor defines the deposit addresses from the proposals. - Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` - // amount to be deposited by depositor. - Amount []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *Deposit) Reset() { - *x = Deposit{} - if protoimpl.UnsafeEnabled { - mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Deposit) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Deposit) ProtoMessage() {} - -// Deprecated: Use Deposit.ProtoReflect.Descriptor instead. -func (*Deposit) Descriptor() ([]byte, []int) { - return file_band_tunnel_v1beta1_tunnel_proto_rawDescGZIP(), []int{1} -} - -func (x *Deposit) GetTunnelId() uint64 { - if x != nil { - return x.TunnelId - } - return 0 -} - -func (x *Deposit) GetDepositor() string { - if x != nil { - return x.Depositor - } - return "" -} - -func (x *Deposit) GetAmount() []*v1beta1.Coin { - if x != nil { - return x.Amount - } - return nil -} - // Tunnel contains the information of the tunnel that is created by the user type Tunnel struct { state protoimpl.MessageState @@ -4818,7 +4708,7 @@ type Tunnel struct { func (x *Tunnel) Reset() { *x = Tunnel{} if protoimpl.UnsafeEnabled { - mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[2] + mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4832,7 +4722,7 @@ func (*Tunnel) ProtoMessage() {} // Deprecated: Use Tunnel.ProtoReflect.Descriptor instead. func (*Tunnel) Descriptor() ([]byte, []int) { - return file_band_tunnel_v1beta1_tunnel_proto_rawDescGZIP(), []int{2} + return file_band_tunnel_v1beta1_tunnel_proto_rawDescGZIP(), []int{0} } func (x *Tunnel) GetId() uint64 { @@ -4922,7 +4812,7 @@ type LatestPrices struct { func (x *LatestPrices) Reset() { *x = LatestPrices{} if protoimpl.UnsafeEnabled { - mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[3] + mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4936,7 +4826,7 @@ func (*LatestPrices) ProtoMessage() {} // Deprecated: Use LatestPrices.ProtoReflect.Descriptor instead. func (*LatestPrices) Descriptor() ([]byte, []int) { - return file_band_tunnel_v1beta1_tunnel_proto_rawDescGZIP(), []int{3} + return file_band_tunnel_v1beta1_tunnel_proto_rawDescGZIP(), []int{1} } func (x *LatestPrices) GetTunnelId() uint64 { @@ -4973,7 +4863,7 @@ type TotalFees struct { func (x *TotalFees) Reset() { *x = TotalFees{} if protoimpl.UnsafeEnabled { - mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[4] + mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4987,7 +4877,7 @@ func (*TotalFees) ProtoMessage() {} // Deprecated: Use TotalFees.ProtoReflect.Descriptor instead. func (*TotalFees) Descriptor() ([]byte, []int) { - return file_band_tunnel_v1beta1_tunnel_proto_rawDescGZIP(), []int{4} + return file_band_tunnel_v1beta1_tunnel_proto_rawDescGZIP(), []int{2} } func (x *TotalFees) GetTotalBasePacketFee() []*v1beta1.Coin { @@ -5018,7 +4908,7 @@ type Packet struct { func (x *Packet) Reset() { *x = Packet{} if protoimpl.UnsafeEnabled { - mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[5] + mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5032,7 +4922,7 @@ func (*Packet) ProtoMessage() {} // Deprecated: Use Packet.ProtoReflect.Descriptor instead. func (*Packet) Descriptor() ([]byte, []int) { - return file_band_tunnel_v1beta1_tunnel_proto_rawDescGZIP(), []int{5} + return file_band_tunnel_v1beta1_tunnel_proto_rawDescGZIP(), []int{3} } func (x *Packet) GetTunnelId() uint64 { @@ -5070,6 +4960,116 @@ func (x *Packet) GetCreatedAt() int64 { return 0 } +// Deposit defines an amount deposited by an account address to the tunnel. +type Deposit struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // tunnel_id defines the unique id of the tunnel. + TunnelId uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` + // depositor defines the deposit addresses from the proposals. + Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` + // amount to be deposited by depositor. + Amount []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *Deposit) Reset() { + *x = Deposit{} + if protoimpl.UnsafeEnabled { + mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Deposit) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Deposit) ProtoMessage() {} + +// Deprecated: Use Deposit.ProtoReflect.Descriptor instead. +func (*Deposit) Descriptor() ([]byte, []int) { + return file_band_tunnel_v1beta1_tunnel_proto_rawDescGZIP(), []int{4} +} + +func (x *Deposit) GetTunnelId() uint64 { + if x != nil { + return x.TunnelId + } + return 0 +} + +func (x *Deposit) GetDepositor() string { + if x != nil { + return x.Depositor + } + return "" +} + +func (x *Deposit) GetAmount() []*v1beta1.Coin { + if x != nil { + return x.Amount + } + return nil +} + +// SignalDeviation is the type for a signal with soft and hard deviation +type SignalDeviation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // signal_id is the signal ID + SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` + // soft_deviation_bps is the soft deviation in basis points + SoftDeviationBps uint64 `protobuf:"varint,2,opt,name=soft_deviation_bps,json=softDeviationBps,proto3" json:"soft_deviation_bps,omitempty"` + // hard_deviation_bps is the hard deviation in basis points + HardDeviationBps uint64 `protobuf:"varint,3,opt,name=hard_deviation_bps,json=hardDeviationBps,proto3" json:"hard_deviation_bps,omitempty"` +} + +func (x *SignalDeviation) Reset() { + *x = SignalDeviation{} + if protoimpl.UnsafeEnabled { + mi := &file_band_tunnel_v1beta1_tunnel_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalDeviation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalDeviation) ProtoMessage() {} + +// Deprecated: Use SignalDeviation.ProtoReflect.Descriptor instead. +func (*SignalDeviation) Descriptor() ([]byte, []int) { + return file_band_tunnel_v1beta1_tunnel_proto_rawDescGZIP(), []int{5} +} + +func (x *SignalDeviation) GetSignalId() string { + if x != nil { + return x.SignalId + } + return "" +} + +func (x *SignalDeviation) GetSoftDeviationBps() uint64 { + if x != nil { + return x.SoftDeviationBps + } + return 0 +} + +func (x *SignalDeviation) GetHardDeviationBps() uint64 { + if x != nil { + return x.HardDeviationBps + } + return 0 +} + // TunnelSignatureOrder defines a general signature order for sending signature to tss group. type TunnelSignatureOrder struct { state protoimpl.MessageState @@ -5152,101 +5152,101 @@ var file_band_tunnel_v1beta1_tunnel_proto_rawDesc = []byte{ 0x64, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x62, 0x61, 0x6e, 0x64, 0x2f, 0x66, 0x65, 0x65, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x66, 0x65, 0x65, - 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xca, 0x01, 0x0a, 0x0f, 0x53, 0x69, 0x67, - 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x09, - 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x0c, 0xe2, 0xde, 0x1f, 0x08, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x49, 0x44, 0x52, 0x08, 0x73, - 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x12, 0x73, 0x6f, 0x66, 0x74, 0x5f, - 0x64, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x70, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x42, 0x14, 0xe2, 0xde, 0x1f, 0x10, 0x53, 0x6f, 0x66, 0x74, 0x44, 0x65, 0x76, - 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x50, 0x53, 0x52, 0x10, 0x73, 0x6f, 0x66, 0x74, 0x44, - 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x70, 0x73, 0x12, 0x42, 0x0a, 0x12, 0x68, - 0x61, 0x72, 0x64, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x70, - 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x42, 0x14, 0xe2, 0xde, 0x1f, 0x10, 0x48, 0x61, 0x72, - 0x64, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x50, 0x53, 0x52, 0x10, 0x68, - 0x61, 0x72, 0x64, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x70, 0x73, 0x3a, - 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xdc, 0x01, 0x0a, 0x07, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, - 0x74, 0x12, 0x29, 0x0a, 0x09, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x42, 0x0c, 0xe2, 0xde, 0x1f, 0x08, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, - 0x49, 0x44, 0x52, 0x08, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x09, - 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8d, 0x04, 0x0a, 0x06, 0x54, 0x75, 0x6e, + 0x6e, 0x65, 0x6c, 0x12, 0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, + 0x06, 0xe2, 0xde, 0x1f, 0x02, 0x49, 0x44, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, + 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, + 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x0a, 0xca, 0xb4, + 0x2d, 0x06, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x12, + 0x35, 0x0a, 0x09, 0x66, 0x65, 0x65, 0x5f, 0x70, 0x61, 0x79, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x66, 0x65, + 0x65, 0x50, 0x61, 0x79, 0x65, 0x72, 0x12, 0x57, 0x0a, 0x11, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, + 0x5f, 0x64, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x61, 0x6e, 0x64, 0x2e, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x44, 0x65, + 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x75, 0x0a, 0x0d, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0x07, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x35, 0xc8, + 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, + 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0xa8, + 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, + 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x32, + 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x64, 0x65, 0x70, 0x6f, 0x73, - 0x69, 0x74, 0x6f, 0x72, 0x12, 0x68, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, - 0x35, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, - 0x73, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x04, - 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x8d, 0x04, 0x0a, 0x06, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x12, - 0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x06, 0xe2, 0xde, 0x1f, - 0x02, 0x49, 0x44, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, - 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, - 0x6e, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x0a, 0xca, 0xb4, 0x2d, 0x06, 0x52, 0x6f, - 0x75, 0x74, 0x65, 0x49, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x35, 0x0a, 0x09, 0x66, - 0x65, 0x65, 0x5f, 0x70, 0x61, 0x79, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, - 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x66, 0x65, 0x65, 0x50, 0x61, 0x79, - 0x65, 0x72, 0x12, 0x57, 0x0a, 0x11, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x76, - 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, - 0x62, 0x61, 0x6e, 0x64, 0x2e, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x73, 0x69, 0x67, 0x6e, 0x61, - 0x6c, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x75, 0x0a, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x35, 0xc8, 0xde, 0x1f, 0x00, 0xaa, - 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, - 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x1b, - 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x08, 0x69, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, - 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x04, - 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x9d, 0x01, 0x0a, 0x0c, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, - 0x72, 0x69, 0x63, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x09, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x0c, 0xe2, 0xde, 0x1f, 0x08, 0x54, 0x75, - 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x44, 0x52, 0x08, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, - 0x12, 0x37, 0x0a, 0x06, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x62, 0x61, 0x6e, 0x64, 0x2e, 0x66, 0x65, 0x65, 0x64, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x06, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x73, - 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x3a, 0x04, - 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x91, 0x01, 0x0a, 0x09, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x46, 0x65, - 0x65, 0x73, 0x12, 0x7e, 0x0a, 0x15, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x62, 0x61, 0x73, 0x65, - 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, - 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, - 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x12, - 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x42, 0x61, 0x73, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x46, - 0x65, 0x65, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xeb, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x12, 0x29, 0x0a, 0x09, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x0c, 0xe2, 0xde, 0x1f, 0x08, 0x54, 0x75, 0x6e, 0x6e, - 0x65, 0x6c, 0x49, 0x44, 0x52, 0x08, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x1a, - 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x70, 0x72, - 0x69, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x61, 0x6e, - 0x64, 0x2e, 0x66, 0x65, 0x65, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x50, 0x72, 0x69, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x72, 0x69, - 0x63, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x12, 0xca, 0xb4, 0x2d, 0x0e, - 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x49, 0x52, 0x07, - 0x72, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xc7, 0x01, 0x0a, 0x14, 0x54, 0x75, 0x6e, 0x6e, 0x65, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x9d, 0x01, 0x0a, 0x0c, 0x4c, 0x61, 0x74, + 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x09, 0x74, 0x75, 0x6e, + 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x0c, 0xe2, 0xde, + 0x1f, 0x08, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x44, 0x52, 0x08, 0x74, 0x75, 0x6e, 0x6e, + 0x65, 0x6c, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x06, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x61, 0x6e, 0x64, 0x2e, 0x66, 0x65, 0x65, 0x64, + 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x12, 0x23, 0x0a, + 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, + 0x61, 0x6c, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x91, 0x01, 0x0a, 0x09, 0x54, 0x6f, 0x74, + 0x61, 0x6c, 0x46, 0x65, 0x65, 0x73, 0x12, 0x7e, 0x0a, 0x15, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, + 0x62, 0x61, 0x73, 0x65, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x66, 0x65, 0x65, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, + 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, + 0x6e, 0x73, 0x52, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x42, 0x61, 0x73, 0x65, 0x50, 0x61, 0x63, + 0x6b, 0x65, 0x74, 0x46, 0x65, 0x65, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xeb, 0x01, 0x0a, + 0x06, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x29, 0x0a, 0x09, 0x74, 0x75, 0x6e, 0x6e, 0x65, + 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x0c, 0xe2, 0xde, 0x1f, 0x08, + 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x44, 0x52, 0x08, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, + 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x37, + 0x0a, 0x06, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x62, 0x61, 0x6e, 0x64, 0x2e, 0x66, 0x65, 0x65, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x06, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x65, 0x69, + 0x70, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x12, + 0xca, 0xb4, 0x2d, 0x0e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, + 0x74, 0x49, 0x52, 0x07, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xdc, 0x01, 0x0a, 0x07, 0x44, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x29, 0x0a, 0x09, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x0c, 0xe2, 0xde, 0x1f, 0x08, 0x54, + 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x44, 0x52, 0x08, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, + 0x64, 0x12, 0x36, 0x0a, 0x09, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, + 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x12, 0x68, 0x0a, 0x06, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x35, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xca, 0x01, 0x0a, 0x0f, 0x53, 0x69, + 0x67, 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, + 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x0c, 0xe2, 0xde, 0x1f, 0x08, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x49, 0x44, 0x52, 0x08, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x12, 0x73, 0x6f, 0x66, 0x74, + 0x5f, 0x64, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x70, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x04, 0x42, 0x14, 0xe2, 0xde, 0x1f, 0x10, 0x53, 0x6f, 0x66, 0x74, 0x44, 0x65, + 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x50, 0x53, 0x52, 0x10, 0x73, 0x6f, 0x66, 0x74, + 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x70, 0x73, 0x12, 0x42, 0x0a, 0x12, + 0x68, 0x61, 0x72, 0x64, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, + 0x70, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x42, 0x14, 0xe2, 0xde, 0x1f, 0x10, 0x48, 0x61, + 0x72, 0x64, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x50, 0x53, 0x52, 0x10, + 0x68, 0x61, 0x72, 0x64, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x70, 0x73, + 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xc7, 0x01, 0x0a, 0x14, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x70, @@ -5290,27 +5290,27 @@ func file_band_tunnel_v1beta1_tunnel_proto_rawDescGZIP() []byte { var file_band_tunnel_v1beta1_tunnel_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_band_tunnel_v1beta1_tunnel_proto_goTypes = []interface{}{ - (*SignalDeviation)(nil), // 0: band.tunnel.v1beta1.SignalDeviation - (*Deposit)(nil), // 1: band.tunnel.v1beta1.Deposit - (*Tunnel)(nil), // 2: band.tunnel.v1beta1.Tunnel - (*LatestPrices)(nil), // 3: band.tunnel.v1beta1.LatestPrices - (*TotalFees)(nil), // 4: band.tunnel.v1beta1.TotalFees - (*Packet)(nil), // 5: band.tunnel.v1beta1.Packet + (*Tunnel)(nil), // 0: band.tunnel.v1beta1.Tunnel + (*LatestPrices)(nil), // 1: band.tunnel.v1beta1.LatestPrices + (*TotalFees)(nil), // 2: band.tunnel.v1beta1.TotalFees + (*Packet)(nil), // 3: band.tunnel.v1beta1.Packet + (*Deposit)(nil), // 4: band.tunnel.v1beta1.Deposit + (*SignalDeviation)(nil), // 5: band.tunnel.v1beta1.SignalDeviation (*TunnelSignatureOrder)(nil), // 6: band.tunnel.v1beta1.TunnelSignatureOrder - (*v1beta1.Coin)(nil), // 7: cosmos.base.v1beta1.Coin - (*anypb.Any)(nil), // 8: google.protobuf.Any + (*anypb.Any)(nil), // 7: google.protobuf.Any + (*v1beta1.Coin)(nil), // 8: cosmos.base.v1beta1.Coin (*v1beta11.Price)(nil), // 9: band.feeds.v1beta1.Price (v1beta11.Encoder)(0), // 10: band.feeds.v1beta1.Encoder } var file_band_tunnel_v1beta1_tunnel_proto_depIdxs = []int32{ - 7, // 0: band.tunnel.v1beta1.Deposit.amount:type_name -> cosmos.base.v1beta1.Coin - 8, // 1: band.tunnel.v1beta1.Tunnel.route:type_name -> google.protobuf.Any - 0, // 2: band.tunnel.v1beta1.Tunnel.signal_deviations:type_name -> band.tunnel.v1beta1.SignalDeviation - 7, // 3: band.tunnel.v1beta1.Tunnel.total_deposit:type_name -> cosmos.base.v1beta1.Coin - 9, // 4: band.tunnel.v1beta1.LatestPrices.prices:type_name -> band.feeds.v1beta1.Price - 7, // 5: band.tunnel.v1beta1.TotalFees.total_base_packet_fee:type_name -> cosmos.base.v1beta1.Coin - 9, // 6: band.tunnel.v1beta1.Packet.prices:type_name -> band.feeds.v1beta1.Price - 8, // 7: band.tunnel.v1beta1.Packet.receipt:type_name -> google.protobuf.Any + 7, // 0: band.tunnel.v1beta1.Tunnel.route:type_name -> google.protobuf.Any + 5, // 1: band.tunnel.v1beta1.Tunnel.signal_deviations:type_name -> band.tunnel.v1beta1.SignalDeviation + 8, // 2: band.tunnel.v1beta1.Tunnel.total_deposit:type_name -> cosmos.base.v1beta1.Coin + 9, // 3: band.tunnel.v1beta1.LatestPrices.prices:type_name -> band.feeds.v1beta1.Price + 8, // 4: band.tunnel.v1beta1.TotalFees.total_base_packet_fee:type_name -> cosmos.base.v1beta1.Coin + 9, // 5: band.tunnel.v1beta1.Packet.prices:type_name -> band.feeds.v1beta1.Price + 7, // 6: band.tunnel.v1beta1.Packet.receipt:type_name -> google.protobuf.Any + 8, // 7: band.tunnel.v1beta1.Deposit.amount:type_name -> cosmos.base.v1beta1.Coin 9, // 8: band.tunnel.v1beta1.TunnelSignatureOrder.prices:type_name -> band.feeds.v1beta1.Price 10, // 9: band.tunnel.v1beta1.TunnelSignatureOrder.encoder:type_name -> band.feeds.v1beta1.Encoder 10, // [10:10] is the sub-list for method output_type @@ -5327,7 +5327,7 @@ func file_band_tunnel_v1beta1_tunnel_proto_init() { } if !protoimpl.UnsafeEnabled { file_band_tunnel_v1beta1_tunnel_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignalDeviation); i { + switch v := v.(*Tunnel); i { case 0: return &v.state case 1: @@ -5339,7 +5339,7 @@ func file_band_tunnel_v1beta1_tunnel_proto_init() { } } file_band_tunnel_v1beta1_tunnel_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Deposit); i { + switch v := v.(*LatestPrices); i { case 0: return &v.state case 1: @@ -5351,7 +5351,7 @@ func file_band_tunnel_v1beta1_tunnel_proto_init() { } } file_band_tunnel_v1beta1_tunnel_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Tunnel); i { + switch v := v.(*TotalFees); i { case 0: return &v.state case 1: @@ -5363,7 +5363,7 @@ func file_band_tunnel_v1beta1_tunnel_proto_init() { } } file_band_tunnel_v1beta1_tunnel_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestPrices); i { + switch v := v.(*Packet); i { case 0: return &v.state case 1: @@ -5375,7 +5375,7 @@ func file_band_tunnel_v1beta1_tunnel_proto_init() { } } file_band_tunnel_v1beta1_tunnel_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TotalFees); i { + switch v := v.(*Deposit); i { case 0: return &v.state case 1: @@ -5387,7 +5387,7 @@ func file_band_tunnel_v1beta1_tunnel_proto_init() { } } file_band_tunnel_v1beta1_tunnel_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Packet); i { + switch v := v.(*SignalDeviation); i { case 0: return &v.state case 1: diff --git a/proto/band/tunnel/v1beta1/tunnel.proto b/proto/band/tunnel/v1beta1/tunnel.proto index 6d8eaa6b5..d47c95831 100644 --- a/proto/band/tunnel/v1beta1/tunnel.proto +++ b/proto/band/tunnel/v1beta1/tunnel.proto @@ -13,34 +13,6 @@ import "band/feeds/v1beta1/feeds.proto"; option go_package = "github.com/bandprotocol/chain/v3/x/tunnel/types"; option (gogoproto.equal_all) = true; -// SignalDeviation is the type for a signal with soft and hard deviation -message SignalDeviation { - option (gogoproto.equal) = true; - - // signal_id is the signal ID - string signal_id = 1 [(gogoproto.customname) = "SignalID"]; - // soft_deviation_bps is the soft deviation in basis points - uint64 soft_deviation_bps = 2 [(gogoproto.customname) = "SoftDeviationBPS"]; - // hard_deviation_bps is the hard deviation in basis points - uint64 hard_deviation_bps = 3 [(gogoproto.customname) = "HardDeviationBPS"]; -} - -// Deposit defines an amount deposited by an account address to the tunnel. -message Deposit { - option (gogoproto.equal) = true; - - // tunnel_id defines the unique id of the tunnel. - uint64 tunnel_id = 1 [(gogoproto.customname) = "TunnelID"]; - // depositor defines the deposit addresses from the proposals. - string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // amount to be deposited by depositor. - repeated cosmos.base.v1beta1.Coin amount = 3 [ - (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", - (amino.dont_omitempty) = true - ]; -} - // Tunnel contains the information of the tunnel that is created by the user message Tunnel { option (gogoproto.equal) = true; @@ -106,6 +78,34 @@ message Packet { int64 created_at = 5; } +// Deposit defines an amount deposited by an account address to the tunnel. +message Deposit { + option (gogoproto.equal) = true; + + // tunnel_id defines the unique id of the tunnel. + uint64 tunnel_id = 1 [(gogoproto.customname) = "TunnelID"]; + // depositor defines the deposit addresses from the proposals. + string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // amount to be deposited by depositor. + repeated cosmos.base.v1beta1.Coin amount = 3 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", + (amino.dont_omitempty) = true + ]; +} + +// SignalDeviation is the type for a signal with soft and hard deviation +message SignalDeviation { + option (gogoproto.equal) = true; + + // signal_id is the signal ID + string signal_id = 1 [(gogoproto.customname) = "SignalID"]; + // soft_deviation_bps is the soft deviation in basis points + uint64 soft_deviation_bps = 2 [(gogoproto.customname) = "SoftDeviationBPS"]; + // hard_deviation_bps is the hard deviation in basis points + uint64 hard_deviation_bps = 3 [(gogoproto.customname) = "HardDeviationBPS"]; +} + // TunnelSignatureOrder defines a general signature order for sending signature to tss group. message TunnelSignatureOrder { option (gogoproto.goproto_getters) = false; diff --git a/scripts/tunnel/create_router_tunnel.sh b/scripts/tunnel/create_router_tunnel.sh index 84273989e..7a216e108 100644 --- a/scripts/tunnel/create_router_tunnel.sh +++ b/scripts/tunnel/create_router_tunnel.sh @@ -1 +1 @@ -bandd tx tunnel create-tunnel router 1uband router17c2txg2px6vna8a6v4ql4eh4ruvprerhytxvwt2ugp4qr473pajsyj9pgm 17000 0xDFCfEbF22e85193eDc37b8b136d4F3394987d1AE 300000 10000000 1000000000uband 1000 ./scripts/tunnel/signal_deviations.json --from requester --keyring-backend test --gas-prices 0.0025uband -y --chain-id bandchain +bandd tx tunnel create-tunnel router router17c2txg2px6vna8a6v4ql4eh4ruvprerhytxvwt2ugp4qr473pajsyj9pgm 17000 0xDFCfEbF22e85193eDc37b8b136d4F3394987d1AE 300000 10000000 1000000000uband 1000 ./scripts/tunnel/signal_deviations.json --from requester --keyring-backend test --gas-prices 0.0025uband -y --chain-id bandchain diff --git a/x/tunnel/client/cli/tx.go b/x/tunnel/client/cli/tx.go index 3c0dc9341..2566d09f7 100644 --- a/x/tunnel/client/cli/tx.go +++ b/x/tunnel/client/cli/tx.go @@ -51,8 +51,8 @@ func GetTxCmdCreateTunnel() *cobra.Command { txCmd.AddCommand( GetTxCmdCreateTSSTunnel(), GetTxCmdCreateIBCTunnel(), - GetTxCmdCreateRouterTunnel(), GetTxCmdCreateIBCHookTunnel(), + GetTxCmdCreateRouterTunnel(), ) return txCmd @@ -279,8 +279,8 @@ func GetTxCmdUpdateRoute() *cobra.Command { // add create tunnel subcommands txCmd.AddCommand( GetTxCmdUpdateIBCRoute(), - GetTxCmdUpdateRouterRoute(), GetTxCmdUpdateIBCHookRoute(), + GetTxCmdUpdateRouterRoute(), ) return txCmd diff --git a/x/tunnel/types/tunnel.pb.go b/x/tunnel/types/tunnel.pb.go index 27ca57bba..9521cb16f 100644 --- a/x/tunnel/types/tunnel.pb.go +++ b/x/tunnel/types/tunnel.pb.go @@ -7,9 +7,9 @@ import ( fmt "fmt" types2 "github.com/bandprotocol/chain/v3/x/feeds/types" _ "github.com/cosmos/cosmos-proto" - types1 "github.com/cosmos/cosmos-sdk/codec/types" + types "github.com/cosmos/cosmos-sdk/codec/types" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" + types1 "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" @@ -29,134 +29,6 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// SignalDeviation is the type for a signal with soft and hard deviation -type SignalDeviation struct { - // signal_id is the signal ID - SignalID string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` - // soft_deviation_bps is the soft deviation in basis points - SoftDeviationBPS uint64 `protobuf:"varint,2,opt,name=soft_deviation_bps,json=softDeviationBps,proto3" json:"soft_deviation_bps,omitempty"` - // hard_deviation_bps is the hard deviation in basis points - HardDeviationBPS uint64 `protobuf:"varint,3,opt,name=hard_deviation_bps,json=hardDeviationBps,proto3" json:"hard_deviation_bps,omitempty"` -} - -func (m *SignalDeviation) Reset() { *m = SignalDeviation{} } -func (m *SignalDeviation) String() string { return proto.CompactTextString(m) } -func (*SignalDeviation) ProtoMessage() {} -func (*SignalDeviation) Descriptor() ([]byte, []int) { - return fileDescriptor_6bb6151451ba2f25, []int{0} -} -func (m *SignalDeviation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SignalDeviation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SignalDeviation.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 *SignalDeviation) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalDeviation.Merge(m, src) -} -func (m *SignalDeviation) XXX_Size() int { - return m.Size() -} -func (m *SignalDeviation) XXX_DiscardUnknown() { - xxx_messageInfo_SignalDeviation.DiscardUnknown(m) -} - -var xxx_messageInfo_SignalDeviation proto.InternalMessageInfo - -func (m *SignalDeviation) GetSignalID() string { - if m != nil { - return m.SignalID - } - return "" -} - -func (m *SignalDeviation) GetSoftDeviationBPS() uint64 { - if m != nil { - return m.SoftDeviationBPS - } - return 0 -} - -func (m *SignalDeviation) GetHardDeviationBPS() uint64 { - if m != nil { - return m.HardDeviationBPS - } - return 0 -} - -// Deposit defines an amount deposited by an account address to the tunnel. -type Deposit struct { - // tunnel_id defines the unique id of the tunnel. - TunnelID uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` - // depositor defines the deposit addresses from the proposals. - Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` - // amount to be deposited by depositor. - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` -} - -func (m *Deposit) Reset() { *m = Deposit{} } -func (m *Deposit) String() string { return proto.CompactTextString(m) } -func (*Deposit) ProtoMessage() {} -func (*Deposit) Descriptor() ([]byte, []int) { - return fileDescriptor_6bb6151451ba2f25, []int{1} -} -func (m *Deposit) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Deposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Deposit.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 *Deposit) XXX_Merge(src proto.Message) { - xxx_messageInfo_Deposit.Merge(m, src) -} -func (m *Deposit) XXX_Size() int { - return m.Size() -} -func (m *Deposit) XXX_DiscardUnknown() { - xxx_messageInfo_Deposit.DiscardUnknown(m) -} - -var xxx_messageInfo_Deposit proto.InternalMessageInfo - -func (m *Deposit) GetTunnelID() uint64 { - if m != nil { - return m.TunnelID - } - return 0 -} - -func (m *Deposit) GetDepositor() string { - if m != nil { - return m.Depositor - } - return "" -} - -func (m *Deposit) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.Amount - } - return nil -} - // Tunnel contains the information of the tunnel that is created by the user type Tunnel struct { // id is the tunnel ID @@ -164,7 +36,7 @@ type Tunnel struct { // sequence is representing the sequence of the tunnel packet. Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` // route is the route for delivering the signal prices - Route *types1.Any `protobuf:"bytes,3,opt,name=route,proto3" json:"route,omitempty"` + Route *types.Any `protobuf:"bytes,3,opt,name=route,proto3" json:"route,omitempty"` // fee_payer is the address of the fee payer FeePayer string `protobuf:"bytes,4,opt,name=fee_payer,json=feePayer,proto3" json:"fee_payer,omitempty"` // signal_deviations is the list of signal deviations @@ -185,7 +57,7 @@ func (m *Tunnel) Reset() { *m = Tunnel{} } func (m *Tunnel) String() string { return proto.CompactTextString(m) } func (*Tunnel) ProtoMessage() {} func (*Tunnel) Descriptor() ([]byte, []int) { - return fileDescriptor_6bb6151451ba2f25, []int{2} + return fileDescriptor_6bb6151451ba2f25, []int{0} } func (m *Tunnel) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -228,7 +100,7 @@ func (m *Tunnel) GetSequence() uint64 { return 0 } -func (m *Tunnel) GetRoute() *types1.Any { +func (m *Tunnel) GetRoute() *types.Any { if m != nil { return m.Route } @@ -298,7 +170,7 @@ func (m *LatestPrices) Reset() { *m = LatestPrices{} } func (m *LatestPrices) String() string { return proto.CompactTextString(m) } func (*LatestPrices) ProtoMessage() {} func (*LatestPrices) Descriptor() ([]byte, []int) { - return fileDescriptor_6bb6151451ba2f25, []int{3} + return fileDescriptor_6bb6151451ba2f25, []int{1} } func (m *LatestPrices) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -358,7 +230,7 @@ func (m *TotalFees) Reset() { *m = TotalFees{} } func (m *TotalFees) String() string { return proto.CompactTextString(m) } func (*TotalFees) ProtoMessage() {} func (*TotalFees) Descriptor() ([]byte, []int) { - return fileDescriptor_6bb6151451ba2f25, []int{4} + return fileDescriptor_6bb6151451ba2f25, []int{2} } func (m *TotalFees) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -403,7 +275,7 @@ type Packet struct { // prices is the list of prices information from feeds module. Prices []types2.Price `protobuf:"bytes,3,rep,name=prices,proto3" json:"prices"` // receipt represents the confirmation of the packet delivery to the destination via the specified route. - Receipt *types1.Any `protobuf:"bytes,4,opt,name=receipt,proto3" json:"receipt,omitempty"` + Receipt *types.Any `protobuf:"bytes,4,opt,name=receipt,proto3" json:"receipt,omitempty"` // created_at is the timestamp when the packet is created CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` } @@ -412,7 +284,7 @@ func (m *Packet) Reset() { *m = Packet{} } func (m *Packet) String() string { return proto.CompactTextString(m) } func (*Packet) ProtoMessage() {} func (*Packet) Descriptor() ([]byte, []int) { - return fileDescriptor_6bb6151451ba2f25, []int{5} + return fileDescriptor_6bb6151451ba2f25, []int{3} } func (m *Packet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -462,7 +334,7 @@ func (m *Packet) GetPrices() []types2.Price { return nil } -func (m *Packet) GetReceipt() *types1.Any { +func (m *Packet) GetReceipt() *types.Any { if m != nil { return m.Receipt } @@ -476,30 +348,28 @@ func (m *Packet) GetCreatedAt() int64 { return 0 } -// TunnelSignatureOrder defines a general signature order for sending signature to tss group. -type TunnelSignatureOrder struct { - // sequence is the sequence of the packet - Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"` - // prices is the list of prices information from feeds module. - Prices []types2.Price `protobuf:"bytes,2,rep,name=prices,proto3" json:"prices"` - // created_at is the timestamp when the packet is created - CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - // encoder is the mode of encoding data. - Encoder types2.Encoder `protobuf:"varint,4,opt,name=encoder,proto3,enum=band.feeds.v1beta1.Encoder" json:"encoder,omitempty"` +// Deposit defines an amount deposited by an account address to the tunnel. +type Deposit struct { + // tunnel_id defines the unique id of the tunnel. + TunnelID uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` + // depositor defines the deposit addresses from the proposals. + Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` + // amount to be deposited by depositor. + Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` } -func (m *TunnelSignatureOrder) Reset() { *m = TunnelSignatureOrder{} } -func (m *TunnelSignatureOrder) String() string { return proto.CompactTextString(m) } -func (*TunnelSignatureOrder) ProtoMessage() {} -func (*TunnelSignatureOrder) Descriptor() ([]byte, []int) { - return fileDescriptor_6bb6151451ba2f25, []int{6} +func (m *Deposit) Reset() { *m = Deposit{} } +func (m *Deposit) String() string { return proto.CompactTextString(m) } +func (*Deposit) ProtoMessage() {} +func (*Deposit) Descriptor() ([]byte, []int) { + return fileDescriptor_6bb6151451ba2f25, []int{4} } -func (m *TunnelSignatureOrder) XXX_Unmarshal(b []byte) error { +func (m *Deposit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *TunnelSignatureOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Deposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_TunnelSignatureOrder.Marshal(b, m, deterministic) + return xxx_messageInfo_Deposit.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -509,155 +379,221 @@ func (m *TunnelSignatureOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *TunnelSignatureOrder) XXX_Merge(src proto.Message) { - xxx_messageInfo_TunnelSignatureOrder.Merge(m, src) +func (m *Deposit) XXX_Merge(src proto.Message) { + xxx_messageInfo_Deposit.Merge(m, src) } -func (m *TunnelSignatureOrder) XXX_Size() int { +func (m *Deposit) XXX_Size() int { return m.Size() } -func (m *TunnelSignatureOrder) XXX_DiscardUnknown() { - xxx_messageInfo_TunnelSignatureOrder.DiscardUnknown(m) +func (m *Deposit) XXX_DiscardUnknown() { + xxx_messageInfo_Deposit.DiscardUnknown(m) } -var xxx_messageInfo_TunnelSignatureOrder proto.InternalMessageInfo +var xxx_messageInfo_Deposit proto.InternalMessageInfo -func init() { - proto.RegisterType((*SignalDeviation)(nil), "band.tunnel.v1beta1.SignalDeviation") - proto.RegisterType((*Deposit)(nil), "band.tunnel.v1beta1.Deposit") - proto.RegisterType((*Tunnel)(nil), "band.tunnel.v1beta1.Tunnel") - proto.RegisterType((*LatestPrices)(nil), "band.tunnel.v1beta1.LatestPrices") - proto.RegisterType((*TotalFees)(nil), "band.tunnel.v1beta1.TotalFees") - proto.RegisterType((*Packet)(nil), "band.tunnel.v1beta1.Packet") - proto.RegisterType((*TunnelSignatureOrder)(nil), "band.tunnel.v1beta1.TunnelSignatureOrder") +func (m *Deposit) GetTunnelID() uint64 { + if m != nil { + return m.TunnelID + } + return 0 } -func init() { proto.RegisterFile("band/tunnel/v1beta1/tunnel.proto", fileDescriptor_6bb6151451ba2f25) } - -var fileDescriptor_6bb6151451ba2f25 = []byte{ - // 894 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x41, 0x6f, 0x1b, 0x45, - 0x14, 0xf6, 0xd8, 0x8e, 0xed, 0x9d, 0xa6, 0x25, 0x1d, 0x0c, 0xda, 0xa6, 0xc2, 0xb6, 0x02, 0x07, - 0x83, 0x94, 0x5d, 0x9a, 0x2a, 0x45, 0xea, 0x2d, 0x4b, 0xa8, 0xb0, 0x04, 0x22, 0xda, 0x54, 0x42, - 0xe2, 0xb2, 0x1a, 0xef, 0x3e, 0xdb, 0xa3, 0x3a, 0x3b, 0xcb, 0xcc, 0xd8, 0x22, 0x17, 0xce, 0x5c, - 0x90, 0xe0, 0x07, 0x20, 0xf5, 0x58, 0x71, 0xe2, 0x90, 0xff, 0x40, 0x95, 0x53, 0xc5, 0x89, 0x03, - 0x32, 0xc8, 0x39, 0x80, 0xc4, 0x9f, 0x40, 0x3b, 0x33, 0xeb, 0x60, 0x2b, 0x21, 0xf2, 0x81, 0x4b, - 0x92, 0xf7, 0xe6, 0x7b, 0x6f, 0xde, 0xf7, 0xbe, 0x6f, 0xb2, 0xb8, 0xd3, 0xa7, 0x69, 0xe2, 0xab, - 0x49, 0x9a, 0xc2, 0xd8, 0x9f, 0x3e, 0xe8, 0x83, 0xa2, 0x0f, 0x6c, 0xe8, 0x65, 0x82, 0x2b, 0x4e, - 0x5e, 0xcf, 0x11, 0x9e, 0x4d, 0x59, 0xc4, 0xf6, 0x5d, 0x7a, 0xc2, 0x52, 0xee, 0xeb, 0x9f, 0x06, - 0xb7, 0xdd, 0x8a, 0xb9, 0x3c, 0xe1, 0xd2, 0xef, 0x53, 0x09, 0x8b, 0x4e, 0x31, 0x67, 0xa9, 0x3d, - 0xbf, 0x67, 0xce, 0x23, 0x1d, 0xf9, 0x26, 0xb0, 0x47, 0xcd, 0x21, 0x1f, 0x72, 0x93, 0xcf, 0xff, - 0x2a, 0x0a, 0x86, 0x9c, 0x0f, 0xc7, 0xe0, 0xeb, 0xa8, 0x3f, 0x19, 0xf8, 0x34, 0x3d, 0xb5, 0x47, - 0x66, 0xea, 0x01, 0x40, 0x22, 0x17, 0x57, 0x41, 0x1a, 0xf3, 0x04, 0x44, 0x31, 0xcd, 0x15, 0x08, - 0x1d, 0x99, 0xf3, 0x9d, 0x73, 0x84, 0x5f, 0x3b, 0x66, 0xc3, 0x94, 0x8e, 0x0f, 0x61, 0xca, 0xa8, - 0x62, 0x3c, 0x25, 0xef, 0x62, 0x47, 0xea, 0x54, 0xc4, 0x12, 0x17, 0x75, 0x50, 0xd7, 0x09, 0x36, - 0xe7, 0xb3, 0x76, 0xc3, 0xe0, 0x7a, 0x87, 0x61, 0xc3, 0x1c, 0xf7, 0x12, 0x12, 0x60, 0x22, 0xf9, - 0x40, 0x45, 0x49, 0x51, 0x1c, 0xf5, 0x33, 0xe9, 0x96, 0x3b, 0xa8, 0x5b, 0x0d, 0x9a, 0xf3, 0x59, - 0x7b, 0xeb, 0x98, 0x0f, 0xd4, 0xa2, 0x73, 0x70, 0x74, 0x1c, 0x6e, 0xc9, 0xa5, 0x4c, 0x26, 0xf3, - 0x1e, 0x23, 0x2a, 0x92, 0x95, 0x1e, 0x95, 0xcb, 0x1e, 0x1f, 0x53, 0x91, 0x2c, 0xf7, 0x18, 0x2d, - 0x65, 0x32, 0xf9, 0xb8, 0xfa, 0xd7, 0xf3, 0x36, 0xda, 0xf9, 0x0d, 0xe1, 0xfa, 0x21, 0x64, 0x5c, - 0x32, 0x95, 0x93, 0x30, 0x5a, 0x15, 0x24, 0xaa, 0x86, 0xc4, 0x53, 0x9d, 0xcc, 0x49, 0x98, 0xe3, - 0x5e, 0x42, 0x1e, 0x61, 0x27, 0x31, 0x55, 0x5c, 0xe8, 0xd9, 0x9d, 0xc0, 0xfd, 0xe5, 0x6c, 0xb7, - 0x69, 0xb5, 0x39, 0x48, 0x12, 0x01, 0x52, 0x1e, 0x2b, 0xc1, 0xd2, 0x61, 0x78, 0x09, 0x25, 0x23, - 0x5c, 0xa3, 0x27, 0x7c, 0x92, 0x2a, 0xb7, 0xd2, 0xa9, 0x74, 0x6f, 0xed, 0xdd, 0xf3, 0x6c, 0x45, - 0x2e, 0x7d, 0x61, 0x11, 0xef, 0x43, 0xce, 0xd2, 0x60, 0xff, 0xe5, 0xac, 0x5d, 0xfa, 0xf1, 0xf7, - 0x76, 0x77, 0xc8, 0xd4, 0x68, 0xd2, 0xf7, 0x62, 0x7e, 0x62, 0xa5, 0xb7, 0xbf, 0x76, 0x65, 0xf2, - 0xcc, 0x57, 0xa7, 0x19, 0x48, 0x5d, 0x20, 0x5f, 0xfc, 0xf9, 0xd3, 0x7b, 0x28, 0xb4, 0xfd, 0x2d, - 0xbd, 0x6f, 0xab, 0xb8, 0x66, 0xc6, 0x27, 0x6f, 0xe2, 0xf2, 0x82, 0x56, 0x6d, 0x3e, 0x6b, 0x97, - 0x7b, 0x87, 0x61, 0x99, 0x25, 0x64, 0x1b, 0x37, 0x24, 0x7c, 0x39, 0x81, 0x34, 0x06, 0xa3, 0x42, - 0xb8, 0x88, 0xc9, 0x23, 0xbc, 0x21, 0xf8, 0x44, 0x81, 0x5e, 0xed, 0xad, 0xbd, 0xa6, 0x67, 0x7c, - 0xe5, 0x15, 0xbe, 0xf2, 0x0e, 0xd2, 0xd3, 0x00, 0x9f, 0x9f, 0xed, 0xd6, 0xc2, 0x1c, 0xd6, 0x0b, - 0x0d, 0x9c, 0xec, 0x63, 0x67, 0x00, 0x10, 0x65, 0xf4, 0x14, 0x84, 0x5b, 0xbd, 0x61, 0x3d, 0x8d, - 0x01, 0xc0, 0x51, 0x8e, 0x24, 0x9f, 0xe3, 0xbb, 0xd6, 0x45, 0x0b, 0x61, 0xa5, 0xbb, 0xa1, 0x17, - 0xf5, 0x8e, 0x77, 0xc5, 0x5b, 0xf2, 0x56, 0x6c, 0x18, 0x54, 0xf3, 0x9d, 0x85, 0x5b, 0x72, 0x39, - 0x2d, 0x73, 0x8e, 0x2c, 0x55, 0x20, 0xa6, 0x74, 0xec, 0xd6, 0x0c, 0xc7, 0x22, 0x26, 0x13, 0x7c, - 0x5b, 0x71, 0xa5, 0xef, 0xd4, 0x2a, 0xb9, 0xf5, 0xff, 0x49, 0x99, 0x4d, 0x7d, 0x4d, 0x61, 0xb6, - 0xfb, 0xd8, 0x61, 0x32, 0xa2, 0xb1, 0x62, 0x53, 0x70, 0x1b, 0x1d, 0xd4, 0x6d, 0x84, 0x0d, 0x26, - 0x0f, 0x74, 0x4c, 0xde, 0xc2, 0x38, 0x16, 0x40, 0x15, 0x24, 0x11, 0x55, 0xae, 0xd3, 0x41, 0xdd, - 0x4a, 0xe8, 0xd8, 0xcc, 0x81, 0x22, 0x7b, 0xb8, 0xae, 0x03, 0x2e, 0x5c, 0x7c, 0xc3, 0x72, 0x0b, - 0xa0, 0xf5, 0xc3, 0x0f, 0x08, 0x6f, 0x7e, 0x42, 0x15, 0x48, 0x75, 0x24, 0x58, 0x0c, 0x72, 0x1d, - 0xcf, 0x7f, 0x80, 0x6b, 0x99, 0x2e, 0x72, 0xcb, 0x76, 0x43, 0x5a, 0x12, 0xf3, 0xaf, 0xa1, 0x58, - 0x90, 0x6e, 0x6b, 0x75, 0xb0, 0x70, 0xf2, 0x36, 0xbe, 0x3d, 0xa6, 0x52, 0x45, 0x0b, 0x09, 0x2a, - 0x9a, 0xd0, 0x66, 0x9e, 0xec, 0xd9, 0x9c, 0x9d, 0xef, 0x7b, 0x84, 0x9d, 0xa7, 0xf9, 0x9a, 0x9e, - 0x00, 0x48, 0xf2, 0x35, 0x7e, 0xc3, 0x48, 0x93, 0x6b, 0x10, 0x65, 0x34, 0x7e, 0x06, 0x2a, 0x1a, - 0x00, 0xb8, 0xe8, 0x26, 0x89, 0xde, 0x5f, 0x57, 0xa2, 0x90, 0xe8, 0x9b, 0x02, 0x2a, 0xe1, 0x48, - 0xdf, 0xf3, 0x04, 0xc0, 0xce, 0xf4, 0x37, 0xc2, 0x35, 0x93, 0x5b, 0x67, 0x5b, 0xff, 0xf5, 0xac, - 0x2e, 0x37, 0x59, 0x59, 0x6f, 0x93, 0x01, 0xae, 0x0b, 0x88, 0x81, 0x65, 0x4a, 0xbf, 0xaa, 0xeb, - 0x5e, 0x24, 0x39, 0x3f, 0xdb, 0xbd, 0x63, 0x46, 0x0e, 0x0d, 0xbc, 0x17, 0x16, 0x85, 0x2b, 0xde, - 0xda, 0x58, 0xf1, 0xd6, 0xce, 0xcf, 0x08, 0x37, 0x0d, 0x1d, 0xfd, 0xb8, 0xd4, 0x44, 0xc0, 0x67, - 0x22, 0x01, 0xb1, 0x44, 0x08, 0x5d, 0x4b, 0x68, 0x4d, 0x6b, 0x2c, 0x0f, 0x53, 0x59, 0x35, 0xfa, - 0x3e, 0xae, 0xdb, 0x6f, 0x93, 0xe6, 0x7b, 0x67, 0xef, 0xfe, 0x55, 0x8d, 0x3f, 0x32, 0x90, 0xb0, - 0xc0, 0x3e, 0xae, 0x7e, 0xf3, 0xbc, 0x5d, 0x0a, 0x3e, 0x7d, 0x31, 0x6f, 0xa1, 0x97, 0xf3, 0x16, - 0x7a, 0x35, 0x6f, 0xa1, 0x3f, 0xe6, 0x2d, 0xf4, 0xdd, 0x45, 0xab, 0xf4, 0xea, 0xa2, 0x55, 0xfa, - 0xf5, 0xa2, 0x55, 0xfa, 0xc2, 0xff, 0x97, 0x33, 0xf2, 0x9e, 0x7a, 0x81, 0x31, 0x1f, 0xfb, 0xf1, - 0x88, 0xb2, 0xd4, 0x9f, 0x3e, 0xf4, 0xbf, 0x2a, 0xbe, 0xed, 0xda, 0x26, 0xfd, 0x9a, 0x46, 0x3c, - 0xfc, 0x27, 0x00, 0x00, 0xff, 0xff, 0x84, 0xfb, 0xad, 0xef, 0xf7, 0x07, 0x00, 0x00, +func (m *Deposit) GetDepositor() string { + if m != nil { + return m.Depositor + } + return "" } -func (this *SignalDeviation) Equal(that interface{}) bool { - if that == nil { - return this == nil +func (m *Deposit) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Amount } + return nil +} - that1, ok := that.(*SignalDeviation) - if !ok { - that2, ok := that.(SignalDeviation) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.SignalID != that1.SignalID { - return false - } - if this.SoftDeviationBPS != that1.SoftDeviationBPS { - return false - } - if this.HardDeviationBPS != that1.HardDeviationBPS { - return false - } - return true +// SignalDeviation is the type for a signal with soft and hard deviation +type SignalDeviation struct { + // signal_id is the signal ID + SignalID string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` + // soft_deviation_bps is the soft deviation in basis points + SoftDeviationBPS uint64 `protobuf:"varint,2,opt,name=soft_deviation_bps,json=softDeviationBps,proto3" json:"soft_deviation_bps,omitempty"` + // hard_deviation_bps is the hard deviation in basis points + HardDeviationBPS uint64 `protobuf:"varint,3,opt,name=hard_deviation_bps,json=hardDeviationBps,proto3" json:"hard_deviation_bps,omitempty"` } -func (this *Deposit) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*Deposit) - if !ok { - that2, ok := that.(Deposit) - if ok { - that1 = &that2 - } else { - return false +func (m *SignalDeviation) Reset() { *m = SignalDeviation{} } +func (m *SignalDeviation) String() string { return proto.CompactTextString(m) } +func (*SignalDeviation) ProtoMessage() {} +func (*SignalDeviation) Descriptor() ([]byte, []int) { + return fileDescriptor_6bb6151451ba2f25, []int{5} +} +func (m *SignalDeviation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SignalDeviation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SignalDeviation.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.TunnelID != that1.TunnelID { - return false +} +func (m *SignalDeviation) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignalDeviation.Merge(m, src) +} +func (m *SignalDeviation) XXX_Size() int { + return m.Size() +} +func (m *SignalDeviation) XXX_DiscardUnknown() { + xxx_messageInfo_SignalDeviation.DiscardUnknown(m) +} + +var xxx_messageInfo_SignalDeviation proto.InternalMessageInfo + +func (m *SignalDeviation) GetSignalID() string { + if m != nil { + return m.SignalID } - if this.Depositor != that1.Depositor { - return false + return "" +} + +func (m *SignalDeviation) GetSoftDeviationBPS() uint64 { + if m != nil { + return m.SoftDeviationBPS } - if len(this.Amount) != len(that1.Amount) { - return false + return 0 +} + +func (m *SignalDeviation) GetHardDeviationBPS() uint64 { + if m != nil { + return m.HardDeviationBPS } - for i := range this.Amount { - if !this.Amount[i].Equal(&that1.Amount[i]) { - return false + return 0 +} + +// TunnelSignatureOrder defines a general signature order for sending signature to tss group. +type TunnelSignatureOrder struct { + // sequence is the sequence of the packet + Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"` + // prices is the list of prices information from feeds module. + Prices []types2.Price `protobuf:"bytes,2,rep,name=prices,proto3" json:"prices"` + // created_at is the timestamp when the packet is created + CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // encoder is the mode of encoding data. + Encoder types2.Encoder `protobuf:"varint,4,opt,name=encoder,proto3,enum=band.feeds.v1beta1.Encoder" json:"encoder,omitempty"` +} + +func (m *TunnelSignatureOrder) Reset() { *m = TunnelSignatureOrder{} } +func (m *TunnelSignatureOrder) String() string { return proto.CompactTextString(m) } +func (*TunnelSignatureOrder) ProtoMessage() {} +func (*TunnelSignatureOrder) Descriptor() ([]byte, []int) { + return fileDescriptor_6bb6151451ba2f25, []int{6} +} +func (m *TunnelSignatureOrder) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TunnelSignatureOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TunnelSignatureOrder.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - return true } +func (m *TunnelSignatureOrder) XXX_Merge(src proto.Message) { + xxx_messageInfo_TunnelSignatureOrder.Merge(m, src) +} +func (m *TunnelSignatureOrder) XXX_Size() int { + return m.Size() +} +func (m *TunnelSignatureOrder) XXX_DiscardUnknown() { + xxx_messageInfo_TunnelSignatureOrder.DiscardUnknown(m) +} + +var xxx_messageInfo_TunnelSignatureOrder proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Tunnel)(nil), "band.tunnel.v1beta1.Tunnel") + proto.RegisterType((*LatestPrices)(nil), "band.tunnel.v1beta1.LatestPrices") + proto.RegisterType((*TotalFees)(nil), "band.tunnel.v1beta1.TotalFees") + proto.RegisterType((*Packet)(nil), "band.tunnel.v1beta1.Packet") + proto.RegisterType((*Deposit)(nil), "band.tunnel.v1beta1.Deposit") + proto.RegisterType((*SignalDeviation)(nil), "band.tunnel.v1beta1.SignalDeviation") + proto.RegisterType((*TunnelSignatureOrder)(nil), "band.tunnel.v1beta1.TunnelSignatureOrder") +} + +func init() { proto.RegisterFile("band/tunnel/v1beta1/tunnel.proto", fileDescriptor_6bb6151451ba2f25) } + +var fileDescriptor_6bb6151451ba2f25 = []byte{ + // 898 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xf7, 0xd8, 0x8e, 0xed, 0x9d, 0xa6, 0x25, 0x1d, 0x0c, 0xda, 0xa6, 0xc2, 0xb6, 0x02, 0x07, + 0x83, 0x94, 0x5d, 0x9a, 0x2a, 0x45, 0xea, 0x2d, 0x4b, 0xa8, 0xb0, 0x04, 0x22, 0xda, 0x54, 0x42, + 0xe2, 0xb2, 0x1a, 0xef, 0x3e, 0xdb, 0xa3, 0x3a, 0x3b, 0xcb, 0xcc, 0xd8, 0x22, 0x17, 0xce, 0x5c, + 0x90, 0xe0, 0x03, 0x20, 0xf5, 0x58, 0x71, 0xe2, 0x90, 0xef, 0x40, 0x95, 0x53, 0xc5, 0x89, 0x03, + 0x0a, 0xc8, 0x39, 0x80, 0xc4, 0x97, 0x40, 0x3b, 0x33, 0x6b, 0x63, 0x2b, 0x6d, 0x64, 0xa9, 0x97, + 0xc4, 0xef, 0xbd, 0xdf, 0xbc, 0x7f, 0xbf, 0xdf, 0xcc, 0xe2, 0x4e, 0x9f, 0xa6, 0x89, 0xaf, 0x26, + 0x69, 0x0a, 0x63, 0x7f, 0x7a, 0xaf, 0x0f, 0x8a, 0xde, 0xb3, 0xa6, 0x97, 0x09, 0xae, 0x38, 0x79, + 0x33, 0x47, 0x78, 0xd6, 0x65, 0x11, 0xdb, 0xb7, 0xe9, 0x09, 0x4b, 0xb9, 0xaf, 0xff, 0x1a, 0xdc, + 0x76, 0x2b, 0xe6, 0xf2, 0x84, 0x4b, 0xbf, 0x4f, 0x25, 0xcc, 0x33, 0xc5, 0x9c, 0xa5, 0x36, 0x7e, + 0xc7, 0xc4, 0x23, 0x6d, 0xf9, 0xc6, 0xb0, 0xa1, 0xe6, 0x90, 0x0f, 0xb9, 0xf1, 0xe7, 0xbf, 0x8a, + 0x03, 0x43, 0xce, 0x87, 0x63, 0xf0, 0xb5, 0xd5, 0x9f, 0x0c, 0x7c, 0x9a, 0x9e, 0xda, 0x90, 0xe9, + 0x7a, 0x00, 0x90, 0xc8, 0x79, 0x29, 0x48, 0x63, 0x9e, 0x80, 0x28, 0xba, 0xb9, 0x02, 0xa1, 0x2d, + 0x13, 0xdf, 0xf9, 0xbe, 0x8a, 0x6b, 0x8f, 0xf5, 0x4c, 0xe4, 0x6d, 0x5c, 0x66, 0x89, 0x8b, 0x3a, + 0xa8, 0x5b, 0x0d, 0x6a, 0xb3, 0x8b, 0x76, 0xb9, 0x77, 0x18, 0x96, 0x59, 0x42, 0xb6, 0x71, 0x43, + 0xc2, 0xd7, 0x13, 0x48, 0x63, 0x70, 0xcb, 0x79, 0x34, 0x9c, 0xdb, 0xe4, 0x01, 0xde, 0x10, 0x7c, + 0xa2, 0xc0, 0xad, 0x74, 0x50, 0xf7, 0xc6, 0x5e, 0xd3, 0x33, 0xbd, 0x7a, 0x45, 0xaf, 0xde, 0x41, + 0x7a, 0x1a, 0xe0, 0xf3, 0xb3, 0xdd, 0x5a, 0x98, 0xc3, 0x7a, 0xa1, 0x81, 0x93, 0x7d, 0xec, 0x0c, + 0x00, 0xa2, 0x8c, 0x9e, 0x82, 0x70, 0xab, 0x1d, 0xd4, 0x75, 0x02, 0xf7, 0xb7, 0xb3, 0xdd, 0xa6, + 0x5d, 0xc7, 0x41, 0x92, 0x08, 0x90, 0xf2, 0x58, 0x09, 0x96, 0x0e, 0xc3, 0xc6, 0x00, 0xe0, 0x28, + 0x47, 0x92, 0x2f, 0xf1, 0x6d, 0xc9, 0x86, 0x29, 0x1d, 0x47, 0x09, 0x4c, 0x19, 0x55, 0x8c, 0xa7, + 0xd2, 0xdd, 0xe8, 0x54, 0xba, 0x37, 0xf6, 0xde, 0xf3, 0xae, 0xe0, 0xc7, 0x3b, 0xd6, 0xe8, 0xc3, + 0x02, 0x1c, 0x54, 0x9f, 0x5f, 0xb4, 0x4b, 0xe1, 0x96, 0x5c, 0x76, 0xcb, 0x7c, 0x46, 0x96, 0x2a, + 0x10, 0x53, 0x3a, 0x76, 0x6b, 0x66, 0xc6, 0xc2, 0x26, 0x13, 0x7c, 0x53, 0x71, 0xa5, 0x6b, 0x66, + 0x5c, 0x32, 0xe5, 0xd6, 0x75, 0xc1, 0x3b, 0x9e, 0x6d, 0x36, 0x27, 0x7a, 0x5e, 0xf0, 0x63, 0xce, + 0xd2, 0x60, 0x3f, 0xaf, 0xf2, 0xf3, 0x9f, 0xed, 0xee, 0x90, 0xa9, 0xd1, 0xa4, 0xef, 0xc5, 0xfc, + 0xc4, 0x12, 0x6d, 0xff, 0xed, 0xca, 0xe4, 0x89, 0xaf, 0x4e, 0x33, 0x90, 0xfa, 0x80, 0x7c, 0xf6, + 0xf7, 0x2f, 0x1f, 0xa0, 0x70, 0x53, 0x97, 0x39, 0x34, 0x55, 0xc8, 0x5d, 0xec, 0x30, 0x19, 0xd1, + 0x58, 0xb1, 0x29, 0xb8, 0x8d, 0x0e, 0xea, 0x36, 0xc2, 0x06, 0x93, 0x07, 0xda, 0x26, 0xef, 0x60, + 0x1c, 0x0b, 0xa0, 0x0a, 0x92, 0x88, 0x2a, 0xd7, 0xe9, 0xa0, 0x6e, 0x25, 0x74, 0xac, 0xe7, 0x40, + 0x91, 0x3d, 0x5c, 0xd7, 0x06, 0x17, 0x2e, 0xbe, 0x66, 0xb9, 0x05, 0xf0, 0x61, 0xf5, 0x9f, 0xa7, + 0x6d, 0xb4, 0xf3, 0x13, 0xc2, 0x9b, 0x9f, 0x51, 0x05, 0x52, 0x1d, 0x09, 0x16, 0x83, 0x24, 0xef, + 0x63, 0xc7, 0xec, 0x34, 0x9a, 0x8b, 0x63, 0x73, 0x76, 0xd1, 0x6e, 0x18, 0xd1, 0xf4, 0x0e, 0xc3, + 0x86, 0x09, 0xf7, 0x12, 0xf2, 0x11, 0xae, 0x65, 0xfa, 0x90, 0x5b, 0xb6, 0x1b, 0xd2, 0x94, 0x18, + 0xb9, 0x15, 0x0b, 0xd2, 0x69, 0x2d, 0x0f, 0x16, 0x4e, 0xde, 0xc5, 0x37, 0xc7, 0x54, 0xaa, 0x68, + 0x4e, 0x41, 0x45, 0x0f, 0xb4, 0x99, 0x3b, 0x7b, 0xd6, 0x67, 0xfb, 0xfb, 0x11, 0x61, 0xe7, 0x71, + 0xbe, 0xa6, 0x47, 0x00, 0x92, 0x7c, 0x8b, 0xdf, 0x32, 0xd4, 0xe4, 0x1c, 0x44, 0x19, 0x8d, 0x9f, + 0x80, 0x8a, 0x06, 0x00, 0x2e, 0xba, 0x8e, 0xa2, 0x0f, 0xd7, 0xa5, 0x28, 0x24, 0xba, 0x52, 0x40, + 0x25, 0x1c, 0xe9, 0x3a, 0x8f, 0x00, 0x6c, 0x4f, 0xff, 0x22, 0x5c, 0x33, 0xbe, 0x75, 0xb6, 0xf5, + 0xaa, 0x6b, 0xb5, 0xd8, 0x64, 0x65, 0xbd, 0x4d, 0x06, 0xb8, 0x2e, 0x20, 0x06, 0x96, 0x29, 0x7d, + 0xab, 0x5e, 0x76, 0x23, 0xc9, 0xf9, 0xd9, 0xee, 0x2d, 0xd3, 0x72, 0x68, 0xe0, 0xbd, 0xb0, 0x38, + 0xb8, 0xa2, 0xad, 0x8d, 0x15, 0x6d, 0xed, 0xfc, 0x81, 0x70, 0xbd, 0xd0, 0xe8, 0x1a, 0xe3, 0x3e, + 0xc0, 0x8e, 0xbd, 0x3f, 0x5c, 0xe8, 0x79, 0x5f, 0x25, 0xca, 0x05, 0x94, 0x8c, 0x70, 0x8d, 0x9e, + 0xf0, 0x49, 0xaa, 0xe6, 0xab, 0x78, 0xdd, 0xd7, 0xce, 0xe6, 0xb7, 0x64, 0x9e, 0x23, 0xfc, 0xc6, + 0xca, 0xab, 0x91, 0x8f, 0x69, 0x9f, 0x1d, 0x3b, 0xa6, 0x63, 0xc6, 0x34, 0xb8, 0x7c, 0x4c, 0x13, + 0xee, 0x25, 0x24, 0xc0, 0x44, 0xf2, 0x81, 0x5a, 0xbc, 0x4f, 0x51, 0x3f, 0x93, 0x86, 0xdf, 0xa0, + 0x39, 0xbb, 0x68, 0x6f, 0x1d, 0xf3, 0x81, 0x5a, 0xbc, 0x47, 0x47, 0xc7, 0xe1, 0x96, 0x5c, 0xf2, + 0x64, 0x39, 0x89, 0x64, 0x44, 0x45, 0xb2, 0x92, 0xa3, 0xb2, 0xc8, 0xf1, 0x29, 0x15, 0xc9, 0x72, + 0x8e, 0xd1, 0x92, 0x27, 0x93, 0x76, 0x98, 0x5f, 0x11, 0x6e, 0x1a, 0x2e, 0x74, 0xab, 0x6a, 0x22, + 0xe0, 0x0b, 0x91, 0x80, 0x58, 0x12, 0x1f, 0x7a, 0xa9, 0xf8, 0xd6, 0xbc, 0xc6, 0xcb, 0xc2, 0xa9, + 0xac, 0x3e, 0x4a, 0xfb, 0xb8, 0x6e, 0xbf, 0x4d, 0x5a, 0x9b, 0xb7, 0xf6, 0xee, 0x5e, 0x95, 0xf8, + 0x13, 0x03, 0x09, 0x0b, 0xec, 0xc3, 0xea, 0x77, 0x4f, 0xdb, 0xa5, 0xe0, 0xf3, 0x67, 0xb3, 0x16, + 0x7a, 0x3e, 0x6b, 0xa1, 0x17, 0xb3, 0x16, 0xfa, 0x6b, 0xd6, 0x42, 0x3f, 0x5c, 0xb6, 0x4a, 0x2f, + 0x2e, 0x5b, 0xa5, 0xdf, 0x2f, 0x5b, 0xa5, 0xaf, 0xfc, 0xff, 0x31, 0x9e, 0xe7, 0xd4, 0x62, 0x8f, + 0xf9, 0xd8, 0x8f, 0x47, 0x94, 0xa5, 0xfe, 0xf4, 0xbe, 0xff, 0x4d, 0xf1, 0x6d, 0xd7, 0xf4, 0xf7, + 0x6b, 0x1a, 0x71, 0xff, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x38, 0x1b, 0xc5, 0xfa, 0xf7, 0x07, + 0x00, 0x00, +} + func (this *Tunnel) Equal(that interface{}) bool { if that == nil { return this == nil @@ -824,6 +760,71 @@ func (this *Packet) Equal(that interface{}) bool { } return true } +func (this *Deposit) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Deposit) + if !ok { + that2, ok := that.(Deposit) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.TunnelID != that1.TunnelID { + return false + } + if this.Depositor != that1.Depositor { + return false + } + if len(this.Amount) != len(that1.Amount) { + return false + } + for i := range this.Amount { + if !this.Amount[i].Equal(&that1.Amount[i]) { + return false + } + } + return true +} +func (this *SignalDeviation) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*SignalDeviation) + if !ok { + that2, ok := that.(SignalDeviation) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.SignalID != that1.SignalID { + return false + } + if this.SoftDeviationBPS != that1.SoftDeviationBPS { + return false + } + if this.HardDeviationBPS != that1.HardDeviationBPS { + return false + } + return true +} func (this *TunnelSignatureOrder) Equal(that interface{}) bool { if that == nil { return this == nil @@ -862,7 +863,7 @@ func (this *TunnelSignatureOrder) Equal(that interface{}) bool { } return true } -func (m *SignalDeviation) Marshal() (dAtA []byte, err error) { +func (m *Tunnel) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -872,60 +873,42 @@ func (m *SignalDeviation) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SignalDeviation) MarshalTo(dAtA []byte) (int, error) { +func (m *Tunnel) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SignalDeviation) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Tunnel) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.HardDeviationBPS != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.HardDeviationBPS)) + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTunnel(dAtA, i, uint64(len(m.Creator))) i-- - dAtA[i] = 0x18 + dAtA[i] = 0x52 } - if m.SoftDeviationBPS != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.SoftDeviationBPS)) + if m.CreatedAt != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.CreatedAt)) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x48 } - if len(m.SignalID) > 0 { - i -= len(m.SignalID) - copy(dAtA[i:], m.SignalID) - i = encodeVarintTunnel(dAtA, i, uint64(len(m.SignalID))) + if m.IsActive { i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Deposit) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if m.IsActive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 } - return dAtA[:n], nil -} - -func (m *Deposit) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Deposit) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Amount) > 0 { - for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + if len(m.TotalDeposit) > 0 { + for iNdEx := len(m.TotalDeposit) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.TotalDeposit[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -933,78 +916,7 @@ func (m *Deposit) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTunnel(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a - } - } - if len(m.Depositor) > 0 { - i -= len(m.Depositor) - copy(dAtA[i:], m.Depositor) - i = encodeVarintTunnel(dAtA, i, uint64(len(m.Depositor))) - i-- - dAtA[i] = 0x12 - } - if m.TunnelID != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.TunnelID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Tunnel) 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 *Tunnel) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Tunnel) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTunnel(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0x52 - } - if m.CreatedAt != 0 { - i = encodeVarintTunnel(dAtA, i, uint64(m.CreatedAt)) - i-- - dAtA[i] = 0x48 - } - if m.IsActive { - i-- - if m.IsActive { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if len(m.TotalDeposit) > 0 { - for iNdEx := len(m.TotalDeposit) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TotalDeposit[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTunnel(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a + dAtA[i] = 0x3a } } if m.Interval != 0 { @@ -1206,6 +1118,95 @@ func (m *Packet) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *Deposit) 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 *Deposit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Deposit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTunnel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Depositor) > 0 { + i -= len(m.Depositor) + copy(dAtA[i:], m.Depositor) + i = encodeVarintTunnel(dAtA, i, uint64(len(m.Depositor))) + i-- + dAtA[i] = 0x12 + } + if m.TunnelID != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.TunnelID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *SignalDeviation) 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 *SignalDeviation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SignalDeviation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HardDeviationBPS != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.HardDeviationBPS)) + i-- + dAtA[i] = 0x18 + } + if m.SoftDeviationBPS != 0 { + i = encodeVarintTunnel(dAtA, i, uint64(m.SoftDeviationBPS)) + i-- + dAtA[i] = 0x10 + } + if len(m.SignalID) > 0 { + i -= len(m.SignalID) + copy(dAtA[i:], m.SignalID) + i = encodeVarintTunnel(dAtA, i, uint64(len(m.SignalID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *TunnelSignatureOrder) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1269,47 +1270,6 @@ func encodeVarintTunnel(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *SignalDeviation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SignalID) - if l > 0 { - n += 1 + l + sovTunnel(uint64(l)) - } - if m.SoftDeviationBPS != 0 { - n += 1 + sovTunnel(uint64(m.SoftDeviationBPS)) - } - if m.HardDeviationBPS != 0 { - n += 1 + sovTunnel(uint64(m.HardDeviationBPS)) - } - return n -} - -func (m *Deposit) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TunnelID != 0 { - n += 1 + sovTunnel(uint64(m.TunnelID)) - } - l = len(m.Depositor) - if l > 0 { - n += 1 + l + sovTunnel(uint64(l)) - } - if len(m.Amount) > 0 { - for _, e := range m.Amount { - l = e.Size() - n += 1 + l + sovTunnel(uint64(l)) - } - } - return n -} - func (m *Tunnel) Size() (n int) { if m == nil { return 0 @@ -1422,6 +1382,47 @@ func (m *Packet) Size() (n int) { return n } +func (m *Deposit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TunnelID != 0 { + n += 1 + sovTunnel(uint64(m.TunnelID)) + } + l = len(m.Depositor) + if l > 0 { + n += 1 + l + sovTunnel(uint64(l)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovTunnel(uint64(l)) + } + } + return n +} + +func (m *SignalDeviation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SignalID) + if l > 0 { + n += 1 + l + sovTunnel(uint64(l)) + } + if m.SoftDeviationBPS != 0 { + n += 1 + sovTunnel(uint64(m.SoftDeviationBPS)) + } + if m.HardDeviationBPS != 0 { + n += 1 + sovTunnel(uint64(m.HardDeviationBPS)) + } + return n +} + func (m *TunnelSignatureOrder) Size() (n int) { if m == nil { return 0 @@ -1449,263 +1450,8 @@ func (m *TunnelSignatureOrder) Size() (n int) { func sovTunnel(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTunnel(x uint64) (n int) { - return sovTunnel(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *SignalDeviation) 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 ErrIntOverflowTunnel - } - 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: SignalDeviation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignalDeviation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - 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 ErrInvalidLengthTunnel - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTunnel - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignalID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SoftDeviationBPS", wireType) - } - m.SoftDeviationBPS = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SoftDeviationBPS |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HardDeviationBPS", wireType) - } - m.HardDeviationBPS = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HardDeviationBPS |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipTunnel(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTunnel - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Deposit) 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 ErrIntOverflowTunnel - } - 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: Deposit: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Deposit: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TunnelID", wireType) - } - m.TunnelID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TunnelID |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Depositor", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - 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 ErrInvalidLengthTunnel - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTunnel - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Depositor = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTunnel - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTunnel - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTunnel - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Amount = append(m.Amount, types.Coin{}) - if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTunnel(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTunnel - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func sozTunnel(x uint64) (n int) { + return sovTunnel(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *Tunnel) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -1804,7 +1550,7 @@ func (m *Tunnel) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Route == nil { - m.Route = &types1.Any{} + m.Route = &types.Any{} } if err := m.Route.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1924,7 +1670,7 @@ func (m *Tunnel) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TotalDeposit = append(m.TotalDeposit, types.Coin{}) + m.TotalDeposit = append(m.TotalDeposit, types1.Coin{}) if err := m.TotalDeposit[len(m.TotalDeposit)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2201,7 +1947,7 @@ func (m *TotalFees) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TotalBasePacketFee = append(m.TotalBasePacketFee, types.Coin{}) + m.TotalBasePacketFee = append(m.TotalBasePacketFee, types1.Coin{}) if err := m.TotalBasePacketFee[len(m.TotalBasePacketFee)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2358,7 +2104,7 @@ func (m *Packet) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Receipt == nil { - m.Receipt = &types1.Any{} + m.Receipt = &types.Any{} } if err := m.Receipt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2404,6 +2150,261 @@ func (m *Packet) Unmarshal(dAtA []byte) error { } return nil } +func (m *Deposit) 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 ErrIntOverflowTunnel + } + 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: Deposit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Deposit: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelID", wireType) + } + m.TunnelID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TunnelID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Depositor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + 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 ErrInvalidLengthTunnel + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Depositor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTunnel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, types1.Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTunnel(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTunnel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SignalDeviation) 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 ErrIntOverflowTunnel + } + 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: SignalDeviation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SignalDeviation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + 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 ErrInvalidLengthTunnel + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTunnel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SignalID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SoftDeviationBPS", wireType) + } + m.SoftDeviationBPS = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SoftDeviationBPS |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HardDeviationBPS", wireType) + } + m.HardDeviationBPS = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTunnel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HardDeviationBPS |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTunnel(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTunnel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *TunnelSignatureOrder) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0