forked from cerc-io/laconicd
Setup and plumbing for auction module (#1)
Reviewed-on: deep-stack/laconic2d#1 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
This commit is contained in:
@@ -4098,54 +4098,54 @@ func (x *fastReflection_QueryGetBondModuleBalanceRequest) ProtoMethods() *protoi
|
||||
}
|
||||
}
|
||||
|
||||
var _ protoreflect.List = (*_QueryGetBondModuleBalanceResponse_2_list)(nil)
|
||||
var _ protoreflect.List = (*_QueryGetBondModuleBalanceResponse_1_list)(nil)
|
||||
|
||||
type _QueryGetBondModuleBalanceResponse_2_list struct {
|
||||
type _QueryGetBondModuleBalanceResponse_1_list struct {
|
||||
list *[]*v1beta11.Coin
|
||||
}
|
||||
|
||||
func (x *_QueryGetBondModuleBalanceResponse_2_list) Len() int {
|
||||
func (x *_QueryGetBondModuleBalanceResponse_1_list) Len() int {
|
||||
if x.list == nil {
|
||||
return 0
|
||||
}
|
||||
return len(*x.list)
|
||||
}
|
||||
|
||||
func (x *_QueryGetBondModuleBalanceResponse_2_list) Get(i int) protoreflect.Value {
|
||||
func (x *_QueryGetBondModuleBalanceResponse_1_list) Get(i int) protoreflect.Value {
|
||||
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
||||
}
|
||||
|
||||
func (x *_QueryGetBondModuleBalanceResponse_2_list) Set(i int, value protoreflect.Value) {
|
||||
func (x *_QueryGetBondModuleBalanceResponse_1_list) Set(i int, value protoreflect.Value) {
|
||||
valueUnwrapped := value.Message()
|
||||
concreteValue := valueUnwrapped.Interface().(*v1beta11.Coin)
|
||||
(*x.list)[i] = concreteValue
|
||||
}
|
||||
|
||||
func (x *_QueryGetBondModuleBalanceResponse_2_list) Append(value protoreflect.Value) {
|
||||
func (x *_QueryGetBondModuleBalanceResponse_1_list) Append(value protoreflect.Value) {
|
||||
valueUnwrapped := value.Message()
|
||||
concreteValue := valueUnwrapped.Interface().(*v1beta11.Coin)
|
||||
*x.list = append(*x.list, concreteValue)
|
||||
}
|
||||
|
||||
func (x *_QueryGetBondModuleBalanceResponse_2_list) AppendMutable() protoreflect.Value {
|
||||
func (x *_QueryGetBondModuleBalanceResponse_1_list) AppendMutable() protoreflect.Value {
|
||||
v := new(v1beta11.Coin)
|
||||
*x.list = append(*x.list, v)
|
||||
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||||
}
|
||||
|
||||
func (x *_QueryGetBondModuleBalanceResponse_2_list) Truncate(n int) {
|
||||
func (x *_QueryGetBondModuleBalanceResponse_1_list) Truncate(n int) {
|
||||
for i := n; i < len(*x.list); i++ {
|
||||
(*x.list)[i] = nil
|
||||
}
|
||||
*x.list = (*x.list)[:n]
|
||||
}
|
||||
|
||||
func (x *_QueryGetBondModuleBalanceResponse_2_list) NewElement() protoreflect.Value {
|
||||
func (x *_QueryGetBondModuleBalanceResponse_1_list) NewElement() protoreflect.Value {
|
||||
v := new(v1beta11.Coin)
|
||||
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||||
}
|
||||
|
||||
func (x *_QueryGetBondModuleBalanceResponse_2_list) IsValid() bool {
|
||||
func (x *_QueryGetBondModuleBalanceResponse_1_list) IsValid() bool {
|
||||
return x.list != nil
|
||||
}
|
||||
|
||||
@@ -4226,7 +4226,7 @@ func (x *fastReflection_QueryGetBondModuleBalanceResponse) Interface() protorefl
|
||||
// on the current field descriptor.
|
||||
func (x *fastReflection_QueryGetBondModuleBalanceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||||
if len(x.Balance) != 0 {
|
||||
value := protoreflect.ValueOfList(&_QueryGetBondModuleBalanceResponse_2_list{list: &x.Balance})
|
||||
value := protoreflect.ValueOfList(&_QueryGetBondModuleBalanceResponse_1_list{list: &x.Balance})
|
||||
if !f(fd_QueryGetBondModuleBalanceResponse_balance, value) {
|
||||
return
|
||||
}
|
||||
@@ -4284,9 +4284,9 @@ func (x *fastReflection_QueryGetBondModuleBalanceResponse) Get(descriptor protor
|
||||
switch descriptor.FullName() {
|
||||
case "cerc.bond.v1.QueryGetBondModuleBalanceResponse.balance":
|
||||
if len(x.Balance) == 0 {
|
||||
return protoreflect.ValueOfList(&_QueryGetBondModuleBalanceResponse_2_list{})
|
||||
return protoreflect.ValueOfList(&_QueryGetBondModuleBalanceResponse_1_list{})
|
||||
}
|
||||
listValue := &_QueryGetBondModuleBalanceResponse_2_list{list: &x.Balance}
|
||||
listValue := &_QueryGetBondModuleBalanceResponse_1_list{list: &x.Balance}
|
||||
return protoreflect.ValueOfList(listValue)
|
||||
default:
|
||||
if descriptor.IsExtension() {
|
||||
@@ -4310,7 +4310,7 @@ func (x *fastReflection_QueryGetBondModuleBalanceResponse) Set(fd protoreflect.F
|
||||
switch fd.FullName() {
|
||||
case "cerc.bond.v1.QueryGetBondModuleBalanceResponse.balance":
|
||||
lv := value.List()
|
||||
clv := lv.(*_QueryGetBondModuleBalanceResponse_2_list)
|
||||
clv := lv.(*_QueryGetBondModuleBalanceResponse_1_list)
|
||||
x.Balance = *clv.list
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
@@ -4336,7 +4336,7 @@ func (x *fastReflection_QueryGetBondModuleBalanceResponse) Mutable(fd protorefle
|
||||
if x.Balance == nil {
|
||||
x.Balance = []*v1beta11.Coin{}
|
||||
}
|
||||
value := &_QueryGetBondModuleBalanceResponse_2_list{list: &x.Balance}
|
||||
value := &_QueryGetBondModuleBalanceResponse_1_list{list: &x.Balance}
|
||||
return protoreflect.ValueOfList(value)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
@@ -4353,7 +4353,7 @@ func (x *fastReflection_QueryGetBondModuleBalanceResponse) NewField(fd protorefl
|
||||
switch fd.FullName() {
|
||||
case "cerc.bond.v1.QueryGetBondModuleBalanceResponse.balance":
|
||||
list := []*v1beta11.Coin{}
|
||||
return protoreflect.ValueOfList(&_QueryGetBondModuleBalanceResponse_2_list{list: &list})
|
||||
return protoreflect.ValueOfList(&_QueryGetBondModuleBalanceResponse_1_list{list: &list})
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.bond.v1.QueryGetBondModuleBalanceResponse"))
|
||||
@@ -4471,7 +4471,7 @@ func (x *fastReflection_QueryGetBondModuleBalanceResponse) ProtoMethods() *proto
|
||||
copy(dAtA[i:], encoded)
|
||||
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
}
|
||||
if input.Buf != nil {
|
||||
@@ -4523,7 +4523,7 @@ func (x *fastReflection_QueryGetBondModuleBalanceResponse) ProtoMethods() *proto
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetBondModuleBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
case 2:
|
||||
case 1:
|
||||
if wireType != 2 {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType)
|
||||
}
|
||||
@@ -4945,7 +4945,7 @@ type QueryGetBondModuleBalanceResponse struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Balance []*v1beta11.Coin `protobuf:"bytes,2,rep,name=balance,proto3" json:"balance,omitempty"`
|
||||
Balance []*v1beta11.Coin `protobuf:"bytes,1,rep,name=balance,proto3" json:"balance,omitempty"`
|
||||
}
|
||||
|
||||
func (x *QueryGetBondModuleBalanceResponse) Reset() {
|
||||
@@ -4981,15 +4981,15 @@ var file_cerc_bond_v1_query_proto_rawDesc = []byte{
|
||||
0x0a, 0x18, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x62, 0x6f, 0x6e, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x71,
|
||||
0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x63, 0x65, 0x72, 0x63,
|
||||
0x2e, 0x62, 0x6f, 0x6e, 0x64, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17,
|
||||
0x63, 0x65, 0x72, 0x63, 0x2f, 0x62, 0x6f, 0x6e, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x6f, 0x6e,
|
||||
0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
|
||||
0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61,
|
||||
0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
|
||||
0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76,
|
||||
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c,
|
||||
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
|
||||
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f,
|
||||
0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f,
|
||||
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
|
||||
0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f,
|
||||
0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x62,
|
||||
0x6f, 0x6e, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x6f, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x64, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79,
|
||||
0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d,
|
||||
@@ -5049,7 +5049,7 @@ var file_cerc_bond_v1_query_proto_rawDesc = []byte{
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa8, 0x01, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72,
|
||||
0x79, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6e, 0x64, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x61,
|
||||
0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x82, 0x01,
|
||||
0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||
0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 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, 0x4d, 0xc8, 0xde, 0x1f, 0x00,
|
||||
0xf2, 0xde, 0x1f, 0x19, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x22,
|
||||
|
||||
Reference in New Issue
Block a user