feat(docs): rename x/builder -> x/auction (#55)
* rename x/builder -> x/auction * update proto / etc. * integratino fix --------- Co-authored-by: David Terpay <david.terpay@gmail.com>
This commit is contained in:
parent
21b9b6f882
commit
3c6f319ff1
@ -19,8 +19,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_sdk_builder_module_v1_module_proto_init()
|
||||
md_Module = File_sdk_builder_module_v1_module_proto.Messages().ByName("Module")
|
||||
file_sdk_auction_module_v1_module_proto_init()
|
||||
md_Module = File_sdk_auction_module_v1_module_proto.Messages().ByName("Module")
|
||||
fd_Module_authority = md_Module.Fields().ByName("authority")
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@ func (x *Module) ProtoReflect() protoreflect.Message {
|
||||
}
|
||||
|
||||
func (x *Module) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_sdk_builder_module_v1_module_proto_msgTypes[0]
|
||||
mi := &file_sdk_auction_module_v1_module_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -110,13 +110,13 @@ func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, proto
|
||||
// a repeated field is populated if it is non-empty.
|
||||
func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.module.v1.Module.authority":
|
||||
case "sdk.auction.module.v1.Module.authority":
|
||||
return x.Authority != ""
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.module.v1.Module"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.module.v1.Module"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.module.v1.Module does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.module.v1.Module does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -128,13 +128,13 @@ func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
// Clear is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.module.v1.Module.authority":
|
||||
case "sdk.auction.module.v1.Module.authority":
|
||||
x.Authority = ""
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.module.v1.Module"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.module.v1.Module"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.module.v1.Module does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.module.v1.Module does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -146,14 +146,14 @@ func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
|
||||
// of the value; to obtain a mutable reference, use Mutable.
|
||||
func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch descriptor.FullName() {
|
||||
case "sdk.builder.module.v1.Module.authority":
|
||||
case "sdk.auction.module.v1.Module.authority":
|
||||
value := x.Authority
|
||||
return protoreflect.ValueOfString(value)
|
||||
default:
|
||||
if descriptor.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.module.v1.Module"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.module.v1.Module"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.module.v1.Module does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.module.v1.Module does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -169,13 +169,13 @@ func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) pro
|
||||
// Set is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.module.v1.Module.authority":
|
||||
case "sdk.auction.module.v1.Module.authority":
|
||||
x.Authority = value.Interface().(string)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.module.v1.Module"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.module.v1.Module"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.module.v1.Module does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.module.v1.Module does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -191,13 +191,13 @@ func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value proto
|
||||
// Mutable is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.module.v1.Module.authority":
|
||||
panic(fmt.Errorf("field authority of message sdk.builder.module.v1.Module is not mutable"))
|
||||
case "sdk.auction.module.v1.Module.authority":
|
||||
panic(fmt.Errorf("field authority of message sdk.auction.module.v1.Module is not mutable"))
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.module.v1.Module"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.module.v1.Module"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.module.v1.Module does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.module.v1.Module does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -206,13 +206,13 @@ func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protore
|
||||
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||||
func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.module.v1.Module.authority":
|
||||
case "sdk.auction.module.v1.Module.authority":
|
||||
return protoreflect.ValueOfString("")
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.module.v1.Module"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.module.v1.Module"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.module.v1.Module does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.module.v1.Module does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -222,7 +222,7 @@ func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protor
|
||||
func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
switch d.FullName() {
|
||||
default:
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.builder.module.v1.Module", d.FullName()))
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.auction.module.v1.Module", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@ -437,7 +437,7 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods {
|
||||
// versions:
|
||||
// protoc-gen-go v1.27.0
|
||||
// protoc (unknown)
|
||||
// source: sdk/builder/module/v1/module.proto
|
||||
// source: sdk/auction/module/v1/module.proto
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
@ -446,7 +446,7 @@ const (
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// Module is the config object of the builder module.
|
||||
// Module is the config object of the auction module.
|
||||
type Module struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -460,7 +460,7 @@ type Module struct {
|
||||
func (x *Module) Reset() {
|
||||
*x = Module{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_sdk_builder_module_v1_module_proto_msgTypes[0]
|
||||
mi := &file_sdk_auction_module_v1_module_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -474,7 +474,7 @@ func (*Module) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use Module.ProtoReflect.Descriptor instead.
|
||||
func (*Module) Descriptor() ([]byte, []int) {
|
||||
return file_sdk_builder_module_v1_module_proto_rawDescGZIP(), []int{0}
|
||||
return file_sdk_auction_module_v1_module_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *Module) GetAuthority() string {
|
||||
@ -484,54 +484,54 @@ func (x *Module) GetAuthority() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_sdk_builder_module_v1_module_proto protoreflect.FileDescriptor
|
||||
var File_sdk_auction_module_v1_module_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_sdk_builder_module_v1_module_proto_rawDesc = []byte{
|
||||
0x0a, 0x22, 0x73, 0x64, 0x6b, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x6d, 0x6f,
|
||||
var file_sdk_auction_module_v1_module_proto_rawDesc = []byte{
|
||||
0x0a, 0x22, 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x6f,
|
||||
0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65,
|
||||
0x72, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f,
|
||||
0x6e, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73,
|
||||
0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31,
|
||||
0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x57, 0x0a,
|
||||
0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f,
|
||||
0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68,
|
||||
0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x2f, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x29, 0x0a, 0x27, 0x67,
|
||||
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6b, 0x69, 0x70, 0x2d, 0x6d,
|
||||
0x65, 0x76, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x78, 0x2f, 0x62,
|
||||
0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x42, 0xd0, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x73,
|
||||
0x64, 0x6b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
|
||||
0x65, 0x76, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x78, 0x2f, 0x61,
|
||||
0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xd0, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x73,
|
||||
0x64, 0x6b, 0x2e, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
|
||||
0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69,
|
||||
0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65,
|
||||
0x72, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x6f, 0x64, 0x75,
|
||||
0x6c, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x42, 0x4d, 0xaa, 0x02, 0x15, 0x53, 0x64, 0x6b,
|
||||
0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e,
|
||||
0x56, 0x31, 0xca, 0x02, 0x15, 0x53, 0x64, 0x6b, 0x5c, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72,
|
||||
0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f,
|
||||
0x6e, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x6f, 0x64, 0x75,
|
||||
0x6c, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x41, 0x4d, 0xaa, 0x02, 0x15, 0x53, 0x64, 0x6b,
|
||||
0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e,
|
||||
0x56, 0x31, 0xca, 0x02, 0x15, 0x53, 0x64, 0x6b, 0x5c, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x21, 0x53, 0x64, 0x6b,
|
||||
0x5c, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c,
|
||||
0x5c, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c,
|
||||
0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
|
||||
0x18, 0x53, 0x64, 0x6b, 0x3a, 0x3a, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x3a, 0x3a, 0x4d,
|
||||
0x18, 0x53, 0x64, 0x6b, 0x3a, 0x3a, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x4d,
|
||||
0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_sdk_builder_module_v1_module_proto_rawDescOnce sync.Once
|
||||
file_sdk_builder_module_v1_module_proto_rawDescData = file_sdk_builder_module_v1_module_proto_rawDesc
|
||||
file_sdk_auction_module_v1_module_proto_rawDescOnce sync.Once
|
||||
file_sdk_auction_module_v1_module_proto_rawDescData = file_sdk_auction_module_v1_module_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_sdk_builder_module_v1_module_proto_rawDescGZIP() []byte {
|
||||
file_sdk_builder_module_v1_module_proto_rawDescOnce.Do(func() {
|
||||
file_sdk_builder_module_v1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_sdk_builder_module_v1_module_proto_rawDescData)
|
||||
func file_sdk_auction_module_v1_module_proto_rawDescGZIP() []byte {
|
||||
file_sdk_auction_module_v1_module_proto_rawDescOnce.Do(func() {
|
||||
file_sdk_auction_module_v1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_sdk_auction_module_v1_module_proto_rawDescData)
|
||||
})
|
||||
return file_sdk_builder_module_v1_module_proto_rawDescData
|
||||
return file_sdk_auction_module_v1_module_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_sdk_builder_module_v1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_sdk_builder_module_v1_module_proto_goTypes = []interface{}{
|
||||
(*Module)(nil), // 0: sdk.builder.module.v1.Module
|
||||
var file_sdk_auction_module_v1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_sdk_auction_module_v1_module_proto_goTypes = []interface{}{
|
||||
(*Module)(nil), // 0: sdk.auction.module.v1.Module
|
||||
}
|
||||
var file_sdk_builder_module_v1_module_proto_depIdxs = []int32{
|
||||
var file_sdk_auction_module_v1_module_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
@ -539,13 +539,13 @@ var file_sdk_builder_module_v1_module_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_sdk_builder_module_v1_module_proto_init() }
|
||||
func file_sdk_builder_module_v1_module_proto_init() {
|
||||
if File_sdk_builder_module_v1_module_proto != nil {
|
||||
func init() { file_sdk_auction_module_v1_module_proto_init() }
|
||||
func file_sdk_auction_module_v1_module_proto_init() {
|
||||
if File_sdk_auction_module_v1_module_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_sdk_builder_module_v1_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_sdk_auction_module_v1_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Module); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -562,18 +562,18 @@ func file_sdk_builder_module_v1_module_proto_init() {
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_sdk_builder_module_v1_module_proto_rawDesc,
|
||||
RawDescriptor: file_sdk_auction_module_v1_module_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_sdk_builder_module_v1_module_proto_goTypes,
|
||||
DependencyIndexes: file_sdk_builder_module_v1_module_proto_depIdxs,
|
||||
MessageInfos: file_sdk_builder_module_v1_module_proto_msgTypes,
|
||||
GoTypes: file_sdk_auction_module_v1_module_proto_goTypes,
|
||||
DependencyIndexes: file_sdk_auction_module_v1_module_proto_depIdxs,
|
||||
MessageInfos: file_sdk_auction_module_v1_module_proto_msgTypes,
|
||||
}.Build()
|
||||
File_sdk_builder_module_v1_module_proto = out.File
|
||||
file_sdk_builder_module_v1_module_proto_rawDesc = nil
|
||||
file_sdk_builder_module_v1_module_proto_goTypes = nil
|
||||
file_sdk_builder_module_v1_module_proto_depIdxs = nil
|
||||
File_sdk_auction_module_v1_module_proto = out.File
|
||||
file_sdk_auction_module_v1_module_proto_rawDesc = nil
|
||||
file_sdk_auction_module_v1_module_proto_goTypes = nil
|
||||
file_sdk_auction_module_v1_module_proto_depIdxs = nil
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
|
||||
package builderv1
|
||||
package auctionv1
|
||||
|
||||
import (
|
||||
_ "cosmossdk.io/api/amino"
|
||||
@ -22,8 +22,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_sdk_builder_v1_genesis_proto_init()
|
||||
md_GenesisState = File_sdk_builder_v1_genesis_proto.Messages().ByName("GenesisState")
|
||||
file_sdk_auction_v1_genesis_proto_init()
|
||||
md_GenesisState = File_sdk_auction_v1_genesis_proto.Messages().ByName("GenesisState")
|
||||
fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
|
||||
}
|
||||
|
||||
@ -36,7 +36,7 @@ func (x *GenesisState) ProtoReflect() protoreflect.Message {
|
||||
}
|
||||
|
||||
func (x *GenesisState) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_sdk_builder_v1_genesis_proto_msgTypes[0]
|
||||
mi := &file_sdk_auction_v1_genesis_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -113,13 +113,13 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor,
|
||||
// a repeated field is populated if it is non-empty.
|
||||
func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.GenesisState.params":
|
||||
case "sdk.auction.v1.GenesisState.params":
|
||||
return x.Params != nil
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -131,13 +131,13 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool
|
||||
// Clear is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.GenesisState.params":
|
||||
case "sdk.auction.v1.GenesisState.params":
|
||||
x.Params = nil
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -149,14 +149,14 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
|
||||
// of the value; to obtain a mutable reference, use Mutable.
|
||||
func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch descriptor.FullName() {
|
||||
case "sdk.builder.v1.GenesisState.params":
|
||||
case "sdk.auction.v1.GenesisState.params":
|
||||
value := x.Params
|
||||
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||||
default:
|
||||
if descriptor.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.GenesisState does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.GenesisState does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -172,13 +172,13 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto
|
||||
// Set is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.GenesisState.params":
|
||||
case "sdk.auction.v1.GenesisState.params":
|
||||
x.Params = value.Message().Interface().(*Params)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -194,16 +194,16 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value
|
||||
// Mutable is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.GenesisState.params":
|
||||
case "sdk.auction.v1.GenesisState.params":
|
||||
if x.Params == nil {
|
||||
x.Params = new(Params)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -212,14 +212,14 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p
|
||||
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||||
func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.GenesisState.params":
|
||||
case "sdk.auction.v1.GenesisState.params":
|
||||
m := new(Params)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.GenesisState"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.GenesisState"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.GenesisState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -229,7 +229,7 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor)
|
||||
func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
switch d.FullName() {
|
||||
default:
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.builder.v1.GenesisState", d.FullName()))
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.auction.v1.GenesisState", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@ -462,8 +462,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_sdk_builder_v1_genesis_proto_init()
|
||||
md_Params = File_sdk_builder_v1_genesis_proto.Messages().ByName("Params")
|
||||
file_sdk_auction_v1_genesis_proto_init()
|
||||
md_Params = File_sdk_auction_v1_genesis_proto.Messages().ByName("Params")
|
||||
fd_Params_max_bundle_size = md_Params.Fields().ByName("max_bundle_size")
|
||||
fd_Params_escrow_account_address = md_Params.Fields().ByName("escrow_account_address")
|
||||
fd_Params_reserve_fee = md_Params.Fields().ByName("reserve_fee")
|
||||
@ -481,7 +481,7 @@ func (x *Params) ProtoReflect() protoreflect.Message {
|
||||
}
|
||||
|
||||
func (x *Params) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_sdk_builder_v1_genesis_proto_msgTypes[1]
|
||||
mi := &file_sdk_auction_v1_genesis_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -588,23 +588,23 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto
|
||||
// a repeated field is populated if it is non-empty.
|
||||
func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.Params.max_bundle_size":
|
||||
case "sdk.auction.v1.Params.max_bundle_size":
|
||||
return x.MaxBundleSize != uint32(0)
|
||||
case "sdk.builder.v1.Params.escrow_account_address":
|
||||
case "sdk.auction.v1.Params.escrow_account_address":
|
||||
return len(x.EscrowAccountAddress) != 0
|
||||
case "sdk.builder.v1.Params.reserve_fee":
|
||||
case "sdk.auction.v1.Params.reserve_fee":
|
||||
return x.ReserveFee != nil
|
||||
case "sdk.builder.v1.Params.min_bid_increment":
|
||||
case "sdk.auction.v1.Params.min_bid_increment":
|
||||
return x.MinBidIncrement != nil
|
||||
case "sdk.builder.v1.Params.front_running_protection":
|
||||
case "sdk.auction.v1.Params.front_running_protection":
|
||||
return x.FrontRunningProtection != false
|
||||
case "sdk.builder.v1.Params.proposer_fee":
|
||||
case "sdk.auction.v1.Params.proposer_fee":
|
||||
return x.ProposerFee != ""
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.Params"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.Params"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.Params does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.Params does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -616,23 +616,23 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
// Clear is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.Params.max_bundle_size":
|
||||
case "sdk.auction.v1.Params.max_bundle_size":
|
||||
x.MaxBundleSize = uint32(0)
|
||||
case "sdk.builder.v1.Params.escrow_account_address":
|
||||
case "sdk.auction.v1.Params.escrow_account_address":
|
||||
x.EscrowAccountAddress = nil
|
||||
case "sdk.builder.v1.Params.reserve_fee":
|
||||
case "sdk.auction.v1.Params.reserve_fee":
|
||||
x.ReserveFee = nil
|
||||
case "sdk.builder.v1.Params.min_bid_increment":
|
||||
case "sdk.auction.v1.Params.min_bid_increment":
|
||||
x.MinBidIncrement = nil
|
||||
case "sdk.builder.v1.Params.front_running_protection":
|
||||
case "sdk.auction.v1.Params.front_running_protection":
|
||||
x.FrontRunningProtection = false
|
||||
case "sdk.builder.v1.Params.proposer_fee":
|
||||
case "sdk.auction.v1.Params.proposer_fee":
|
||||
x.ProposerFee = ""
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.Params"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.Params"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.Params does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.Params does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -644,29 +644,29 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) {
|
||||
// of the value; to obtain a mutable reference, use Mutable.
|
||||
func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch descriptor.FullName() {
|
||||
case "sdk.builder.v1.Params.max_bundle_size":
|
||||
case "sdk.auction.v1.Params.max_bundle_size":
|
||||
value := x.MaxBundleSize
|
||||
return protoreflect.ValueOfUint32(value)
|
||||
case "sdk.builder.v1.Params.escrow_account_address":
|
||||
case "sdk.auction.v1.Params.escrow_account_address":
|
||||
value := x.EscrowAccountAddress
|
||||
return protoreflect.ValueOfBytes(value)
|
||||
case "sdk.builder.v1.Params.reserve_fee":
|
||||
case "sdk.auction.v1.Params.reserve_fee":
|
||||
value := x.ReserveFee
|
||||
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||||
case "sdk.builder.v1.Params.min_bid_increment":
|
||||
case "sdk.auction.v1.Params.min_bid_increment":
|
||||
value := x.MinBidIncrement
|
||||
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||||
case "sdk.builder.v1.Params.front_running_protection":
|
||||
case "sdk.auction.v1.Params.front_running_protection":
|
||||
value := x.FrontRunningProtection
|
||||
return protoreflect.ValueOfBool(value)
|
||||
case "sdk.builder.v1.Params.proposer_fee":
|
||||
case "sdk.auction.v1.Params.proposer_fee":
|
||||
value := x.ProposerFee
|
||||
return protoreflect.ValueOfString(value)
|
||||
default:
|
||||
if descriptor.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.Params"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.Params"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.Params does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.Params does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -682,23 +682,23 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro
|
||||
// Set is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.Params.max_bundle_size":
|
||||
case "sdk.auction.v1.Params.max_bundle_size":
|
||||
x.MaxBundleSize = uint32(value.Uint())
|
||||
case "sdk.builder.v1.Params.escrow_account_address":
|
||||
case "sdk.auction.v1.Params.escrow_account_address":
|
||||
x.EscrowAccountAddress = value.Bytes()
|
||||
case "sdk.builder.v1.Params.reserve_fee":
|
||||
case "sdk.auction.v1.Params.reserve_fee":
|
||||
x.ReserveFee = value.Message().Interface().(*v1beta1.Coin)
|
||||
case "sdk.builder.v1.Params.min_bid_increment":
|
||||
case "sdk.auction.v1.Params.min_bid_increment":
|
||||
x.MinBidIncrement = value.Message().Interface().(*v1beta1.Coin)
|
||||
case "sdk.builder.v1.Params.front_running_protection":
|
||||
case "sdk.auction.v1.Params.front_running_protection":
|
||||
x.FrontRunningProtection = value.Bool()
|
||||
case "sdk.builder.v1.Params.proposer_fee":
|
||||
case "sdk.auction.v1.Params.proposer_fee":
|
||||
x.ProposerFee = value.Interface().(string)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.Params"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.Params"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.Params does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.Params does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -714,29 +714,29 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto
|
||||
// Mutable is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.Params.reserve_fee":
|
||||
case "sdk.auction.v1.Params.reserve_fee":
|
||||
if x.ReserveFee == nil {
|
||||
x.ReserveFee = new(v1beta1.Coin)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.ReserveFee.ProtoReflect())
|
||||
case "sdk.builder.v1.Params.min_bid_increment":
|
||||
case "sdk.auction.v1.Params.min_bid_increment":
|
||||
if x.MinBidIncrement == nil {
|
||||
x.MinBidIncrement = new(v1beta1.Coin)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.MinBidIncrement.ProtoReflect())
|
||||
case "sdk.builder.v1.Params.max_bundle_size":
|
||||
panic(fmt.Errorf("field max_bundle_size of message sdk.builder.v1.Params is not mutable"))
|
||||
case "sdk.builder.v1.Params.escrow_account_address":
|
||||
panic(fmt.Errorf("field escrow_account_address of message sdk.builder.v1.Params is not mutable"))
|
||||
case "sdk.builder.v1.Params.front_running_protection":
|
||||
panic(fmt.Errorf("field front_running_protection of message sdk.builder.v1.Params is not mutable"))
|
||||
case "sdk.builder.v1.Params.proposer_fee":
|
||||
panic(fmt.Errorf("field proposer_fee of message sdk.builder.v1.Params is not mutable"))
|
||||
case "sdk.auction.v1.Params.max_bundle_size":
|
||||
panic(fmt.Errorf("field max_bundle_size of message sdk.auction.v1.Params is not mutable"))
|
||||
case "sdk.auction.v1.Params.escrow_account_address":
|
||||
panic(fmt.Errorf("field escrow_account_address of message sdk.auction.v1.Params is not mutable"))
|
||||
case "sdk.auction.v1.Params.front_running_protection":
|
||||
panic(fmt.Errorf("field front_running_protection of message sdk.auction.v1.Params is not mutable"))
|
||||
case "sdk.auction.v1.Params.proposer_fee":
|
||||
panic(fmt.Errorf("field proposer_fee of message sdk.auction.v1.Params is not mutable"))
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.Params"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.Params"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.Params does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.Params does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -745,25 +745,25 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore
|
||||
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||||
func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.Params.max_bundle_size":
|
||||
case "sdk.auction.v1.Params.max_bundle_size":
|
||||
return protoreflect.ValueOfUint32(uint32(0))
|
||||
case "sdk.builder.v1.Params.escrow_account_address":
|
||||
case "sdk.auction.v1.Params.escrow_account_address":
|
||||
return protoreflect.ValueOfBytes(nil)
|
||||
case "sdk.builder.v1.Params.reserve_fee":
|
||||
case "sdk.auction.v1.Params.reserve_fee":
|
||||
m := new(v1beta1.Coin)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "sdk.builder.v1.Params.min_bid_increment":
|
||||
case "sdk.auction.v1.Params.min_bid_increment":
|
||||
m := new(v1beta1.Coin)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "sdk.builder.v1.Params.front_running_protection":
|
||||
case "sdk.auction.v1.Params.front_running_protection":
|
||||
return protoreflect.ValueOfBool(false)
|
||||
case "sdk.builder.v1.Params.proposer_fee":
|
||||
case "sdk.auction.v1.Params.proposer_fee":
|
||||
return protoreflect.ValueOfString("")
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.Params"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.Params"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.Params does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.Params does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -773,7 +773,7 @@ func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protor
|
||||
func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
switch d.FullName() {
|
||||
default:
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.builder.v1.Params", d.FullName()))
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.auction.v1.Params", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@ -1201,7 +1201,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods {
|
||||
// versions:
|
||||
// protoc-gen-go v1.27.0
|
||||
// protoc (unknown)
|
||||
// source: sdk/builder/v1/genesis.proto
|
||||
// source: sdk/auction/v1/genesis.proto
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
@ -1210,7 +1210,7 @@ const (
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// GenesisState defines the genesis state of the x/builder module.
|
||||
// GenesisState defines the genesis state of the x/auction module.
|
||||
type GenesisState struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -1222,7 +1222,7 @@ type GenesisState struct {
|
||||
func (x *GenesisState) Reset() {
|
||||
*x = GenesisState{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_sdk_builder_v1_genesis_proto_msgTypes[0]
|
||||
mi := &file_sdk_auction_v1_genesis_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1236,7 +1236,7 @@ func (*GenesisState) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
|
||||
func (*GenesisState) Descriptor() ([]byte, []int) {
|
||||
return file_sdk_builder_v1_genesis_proto_rawDescGZIP(), []int{0}
|
||||
return file_sdk_auction_v1_genesis_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *GenesisState) GetParams() *Params {
|
||||
@ -1246,7 +1246,7 @@ func (x *GenesisState) GetParams() *Params {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Params defines the parameters of the x/builder module.
|
||||
// Params defines the parameters of the x/auction module.
|
||||
type Params struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -1274,7 +1274,7 @@ type Params struct {
|
||||
func (x *Params) Reset() {
|
||||
*x = Params{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_sdk_builder_v1_genesis_proto_msgTypes[1]
|
||||
mi := &file_sdk_auction_v1_genesis_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1288,7 +1288,7 @@ func (*Params) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use Params.ProtoReflect.Descriptor instead.
|
||||
func (*Params) Descriptor() ([]byte, []int) {
|
||||
return file_sdk_builder_v1_genesis_proto_rawDescGZIP(), []int{1}
|
||||
return file_sdk_auction_v1_genesis_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *Params) GetMaxBundleSize() uint32 {
|
||||
@ -1333,12 +1333,12 @@ func (x *Params) GetProposerFee() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_sdk_builder_v1_genesis_proto protoreflect.FileDescriptor
|
||||
var File_sdk_auction_v1_genesis_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_sdk_builder_v1_genesis_proto_rawDesc = []byte{
|
||||
0x0a, 0x1c, 0x73, 0x64, 0x6b, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31,
|
||||
var file_sdk_auction_v1_genesis_proto_rawDesc = []byte{
|
||||
0x0a, 0x1c, 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31,
|
||||
0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e,
|
||||
0x73, 0x64, 0x6b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x14,
|
||||
0x73, 0x64, 0x6b, 0x2e, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 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, 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,
|
||||
@ -1347,7 +1347,7 @@ var file_sdk_builder_v1_genesis_proto_rawDesc = []byte{
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x22, 0x44, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61,
|
||||
0x74, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72,
|
||||
0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00,
|
||||
0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xb5, 0x03, 0x0a, 0x06, 0x50, 0x61, 0x72,
|
||||
0x61, 0x6d, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c,
|
||||
@ -1376,43 +1376,43 @@ var file_sdk_builder_v1_genesis_proto_rawDesc = []byte{
|
||||
0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0xa8, 0xe7, 0xb0,
|
||||
0x2a, 0x01, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x46, 0x65, 0x65, 0x3a,
|
||||
0x1f, 0x8a, 0xe7, 0xb0, 0x2a, 0x1a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2d, 0x73, 0x64, 0x6b, 0x2f,
|
||||
0x78, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
|
||||
0x42, 0xa7, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x75, 0x69,
|
||||
0x6c, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73,
|
||||
0x78, 0x2f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
|
||||
0x42, 0xa7, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x75, 0x63,
|
||||
0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73,
|
||||
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73,
|
||||
0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x62, 0x75,
|
||||
0x69, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72,
|
||||
0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x42, 0x58, 0xaa, 0x02, 0x0e, 0x53, 0x64, 0x6b, 0x2e, 0x42,
|
||||
0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x53, 0x64, 0x6b, 0x5c,
|
||||
0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x53, 0x64, 0x6b,
|
||||
0x5c, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d,
|
||||
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x53, 0x64, 0x6b, 0x3a, 0x3a, 0x42,
|
||||
0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x75,
|
||||
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x53, 0x64, 0x6b, 0x2e, 0x41,
|
||||
0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x53, 0x64, 0x6b, 0x5c,
|
||||
0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x53, 0x64, 0x6b,
|
||||
0x5c, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d,
|
||||
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x53, 0x64, 0x6b, 0x3a, 0x3a, 0x41,
|
||||
0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_sdk_builder_v1_genesis_proto_rawDescOnce sync.Once
|
||||
file_sdk_builder_v1_genesis_proto_rawDescData = file_sdk_builder_v1_genesis_proto_rawDesc
|
||||
file_sdk_auction_v1_genesis_proto_rawDescOnce sync.Once
|
||||
file_sdk_auction_v1_genesis_proto_rawDescData = file_sdk_auction_v1_genesis_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_sdk_builder_v1_genesis_proto_rawDescGZIP() []byte {
|
||||
file_sdk_builder_v1_genesis_proto_rawDescOnce.Do(func() {
|
||||
file_sdk_builder_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_sdk_builder_v1_genesis_proto_rawDescData)
|
||||
func file_sdk_auction_v1_genesis_proto_rawDescGZIP() []byte {
|
||||
file_sdk_auction_v1_genesis_proto_rawDescOnce.Do(func() {
|
||||
file_sdk_auction_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_sdk_auction_v1_genesis_proto_rawDescData)
|
||||
})
|
||||
return file_sdk_builder_v1_genesis_proto_rawDescData
|
||||
return file_sdk_auction_v1_genesis_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_sdk_builder_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_sdk_builder_v1_genesis_proto_goTypes = []interface{}{
|
||||
(*GenesisState)(nil), // 0: sdk.builder.v1.GenesisState
|
||||
(*Params)(nil), // 1: sdk.builder.v1.Params
|
||||
var file_sdk_auction_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_sdk_auction_v1_genesis_proto_goTypes = []interface{}{
|
||||
(*GenesisState)(nil), // 0: sdk.auction.v1.GenesisState
|
||||
(*Params)(nil), // 1: sdk.auction.v1.Params
|
||||
(*v1beta1.Coin)(nil), // 2: cosmos.base.v1beta1.Coin
|
||||
}
|
||||
var file_sdk_builder_v1_genesis_proto_depIdxs = []int32{
|
||||
1, // 0: sdk.builder.v1.GenesisState.params:type_name -> sdk.builder.v1.Params
|
||||
2, // 1: sdk.builder.v1.Params.reserve_fee:type_name -> cosmos.base.v1beta1.Coin
|
||||
2, // 2: sdk.builder.v1.Params.min_bid_increment:type_name -> cosmos.base.v1beta1.Coin
|
||||
var file_sdk_auction_v1_genesis_proto_depIdxs = []int32{
|
||||
1, // 0: sdk.auction.v1.GenesisState.params:type_name -> sdk.auction.v1.Params
|
||||
2, // 1: sdk.auction.v1.Params.reserve_fee:type_name -> cosmos.base.v1beta1.Coin
|
||||
2, // 2: sdk.auction.v1.Params.min_bid_increment:type_name -> cosmos.base.v1beta1.Coin
|
||||
3, // [3:3] is the sub-list for method output_type
|
||||
3, // [3:3] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
@ -1420,13 +1420,13 @@ var file_sdk_builder_v1_genesis_proto_depIdxs = []int32{
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_sdk_builder_v1_genesis_proto_init() }
|
||||
func file_sdk_builder_v1_genesis_proto_init() {
|
||||
if File_sdk_builder_v1_genesis_proto != nil {
|
||||
func init() { file_sdk_auction_v1_genesis_proto_init() }
|
||||
func file_sdk_auction_v1_genesis_proto_init() {
|
||||
if File_sdk_auction_v1_genesis_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_sdk_builder_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_sdk_auction_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GenesisState); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1438,7 +1438,7 @@ func file_sdk_builder_v1_genesis_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_sdk_builder_v1_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_sdk_auction_v1_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Params); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1455,18 +1455,18 @@ func file_sdk_builder_v1_genesis_proto_init() {
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_sdk_builder_v1_genesis_proto_rawDesc,
|
||||
RawDescriptor: file_sdk_auction_v1_genesis_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_sdk_builder_v1_genesis_proto_goTypes,
|
||||
DependencyIndexes: file_sdk_builder_v1_genesis_proto_depIdxs,
|
||||
MessageInfos: file_sdk_builder_v1_genesis_proto_msgTypes,
|
||||
GoTypes: file_sdk_auction_v1_genesis_proto_goTypes,
|
||||
DependencyIndexes: file_sdk_auction_v1_genesis_proto_depIdxs,
|
||||
MessageInfos: file_sdk_auction_v1_genesis_proto_msgTypes,
|
||||
}.Build()
|
||||
File_sdk_builder_v1_genesis_proto = out.File
|
||||
file_sdk_builder_v1_genesis_proto_rawDesc = nil
|
||||
file_sdk_builder_v1_genesis_proto_goTypes = nil
|
||||
file_sdk_builder_v1_genesis_proto_depIdxs = nil
|
||||
File_sdk_auction_v1_genesis_proto = out.File
|
||||
file_sdk_auction_v1_genesis_proto_rawDesc = nil
|
||||
file_sdk_auction_v1_genesis_proto_goTypes = nil
|
||||
file_sdk_auction_v1_genesis_proto_depIdxs = nil
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
|
||||
package builderv1
|
||||
package auctionv1
|
||||
|
||||
import (
|
||||
_ "cosmossdk.io/api/cosmos/query/v1"
|
||||
@ -20,8 +20,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_sdk_builder_v1_query_proto_init()
|
||||
md_QueryParamsRequest = File_sdk_builder_v1_query_proto.Messages().ByName("QueryParamsRequest")
|
||||
file_sdk_auction_v1_query_proto_init()
|
||||
md_QueryParamsRequest = File_sdk_auction_v1_query_proto.Messages().ByName("QueryParamsRequest")
|
||||
}
|
||||
|
||||
var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
|
||||
@ -33,7 +33,7 @@ func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
|
||||
}
|
||||
|
||||
func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_sdk_builder_v1_query_proto_msgTypes[0]
|
||||
mi := &file_sdk_auction_v1_query_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -106,9 +106,9 @@ func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor)
|
||||
switch fd.FullName() {
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.QueryParamsRequest"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.QueryParamsRequest"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.QueryParamsRequest does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.QueryParamsRequest does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -122,9 +122,9 @@ func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescripto
|
||||
switch fd.FullName() {
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.QueryParamsRequest"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.QueryParamsRequest"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.QueryParamsRequest does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.QueryParamsRequest does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -138,9 +138,9 @@ func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDes
|
||||
switch descriptor.FullName() {
|
||||
default:
|
||||
if descriptor.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.QueryParamsRequest"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.QueryParamsRequest"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.QueryParamsRequest does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.QueryParamsRequest does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -158,9 +158,9 @@ func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor,
|
||||
switch fd.FullName() {
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.QueryParamsRequest"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.QueryParamsRequest"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.QueryParamsRequest does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.QueryParamsRequest does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -178,9 +178,9 @@ func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescrip
|
||||
switch fd.FullName() {
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.QueryParamsRequest"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.QueryParamsRequest"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.QueryParamsRequest does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.QueryParamsRequest does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -191,9 +191,9 @@ func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescri
|
||||
switch fd.FullName() {
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.QueryParamsRequest"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.QueryParamsRequest"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.QueryParamsRequest does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.QueryParamsRequest does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -203,7 +203,7 @@ func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescri
|
||||
func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
switch d.FullName() {
|
||||
default:
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.builder.v1.QueryParamsRequest", d.FullName()))
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.auction.v1.QueryParamsRequest", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@ -377,8 +377,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_sdk_builder_v1_query_proto_init()
|
||||
md_QueryParamsResponse = File_sdk_builder_v1_query_proto.Messages().ByName("QueryParamsResponse")
|
||||
file_sdk_auction_v1_query_proto_init()
|
||||
md_QueryParamsResponse = File_sdk_auction_v1_query_proto.Messages().ByName("QueryParamsResponse")
|
||||
fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
|
||||
}
|
||||
|
||||
@ -391,7 +391,7 @@ func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
|
||||
}
|
||||
|
||||
func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_sdk_builder_v1_query_proto_msgTypes[1]
|
||||
mi := &file_sdk_auction_v1_query_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -468,13 +468,13 @@ func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDesc
|
||||
// a repeated field is populated if it is non-empty.
|
||||
func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.QueryParamsResponse.params":
|
||||
case "sdk.auction.v1.QueryParamsResponse.params":
|
||||
return x.Params != nil
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.QueryParamsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.QueryParamsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.QueryParamsResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.QueryParamsResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -486,13 +486,13 @@ func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor
|
||||
// Clear is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.QueryParamsResponse.params":
|
||||
case "sdk.auction.v1.QueryParamsResponse.params":
|
||||
x.Params = nil
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.QueryParamsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.QueryParamsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.QueryParamsResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.QueryParamsResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -504,14 +504,14 @@ func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescript
|
||||
// of the value; to obtain a mutable reference, use Mutable.
|
||||
func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch descriptor.FullName() {
|
||||
case "sdk.builder.v1.QueryParamsResponse.params":
|
||||
case "sdk.auction.v1.QueryParamsResponse.params":
|
||||
value := x.Params
|
||||
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||||
default:
|
||||
if descriptor.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.QueryParamsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.QueryParamsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.QueryParamsResponse does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.QueryParamsResponse does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -527,13 +527,13 @@ func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDe
|
||||
// Set is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.QueryParamsResponse.params":
|
||||
case "sdk.auction.v1.QueryParamsResponse.params":
|
||||
x.Params = value.Message().Interface().(*Params)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.QueryParamsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.QueryParamsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.QueryParamsResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.QueryParamsResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -549,16 +549,16 @@ func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor
|
||||
// Mutable is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.QueryParamsResponse.params":
|
||||
case "sdk.auction.v1.QueryParamsResponse.params":
|
||||
if x.Params == nil {
|
||||
x.Params = new(Params)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.QueryParamsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.QueryParamsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.QueryParamsResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.QueryParamsResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -567,14 +567,14 @@ func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescri
|
||||
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||||
func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.QueryParamsResponse.params":
|
||||
case "sdk.auction.v1.QueryParamsResponse.params":
|
||||
m := new(Params)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.QueryParamsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.QueryParamsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.QueryParamsResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.QueryParamsResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -584,7 +584,7 @@ func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescr
|
||||
func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
switch d.FullName() {
|
||||
default:
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.builder.v1.QueryParamsResponse", d.FullName()))
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.auction.v1.QueryParamsResponse", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@ -810,7 +810,7 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods
|
||||
// versions:
|
||||
// protoc-gen-go v1.27.0
|
||||
// protoc (unknown)
|
||||
// source: sdk/builder/v1/query.proto
|
||||
// source: sdk/auction/v1/query.proto
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
@ -829,7 +829,7 @@ type QueryParamsRequest struct {
|
||||
func (x *QueryParamsRequest) Reset() {
|
||||
*x = QueryParamsRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_sdk_builder_v1_query_proto_msgTypes[0]
|
||||
mi := &file_sdk_auction_v1_query_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -843,7 +843,7 @@ func (*QueryParamsRequest) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_sdk_builder_v1_query_proto_rawDescGZIP(), []int{0}
|
||||
return file_sdk_auction_v1_query_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
// QueryParamsResponse is the response type for the Query/Params RPC method.
|
||||
@ -859,7 +859,7 @@ type QueryParamsResponse struct {
|
||||
func (x *QueryParamsResponse) Reset() {
|
||||
*x = QueryParamsResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_sdk_builder_v1_query_proto_msgTypes[1]
|
||||
mi := &file_sdk_auction_v1_query_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -873,7 +873,7 @@ func (*QueryParamsResponse) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
|
||||
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
|
||||
return file_sdk_builder_v1_query_proto_rawDescGZIP(), []int{1}
|
||||
return file_sdk_auction_v1_query_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *QueryParamsResponse) GetParams() *Params {
|
||||
@ -883,69 +883,69 @@ func (x *QueryParamsResponse) GetParams() *Params {
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_sdk_builder_v1_query_proto protoreflect.FileDescriptor
|
||||
var File_sdk_auction_v1_query_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_sdk_builder_v1_query_proto_rawDesc = []byte{
|
||||
0x0a, 0x1a, 0x73, 0x64, 0x6b, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31,
|
||||
var file_sdk_auction_v1_query_proto_rawDesc = []byte{
|
||||
0x0a, 0x1a, 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31,
|
||||
0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x73, 0x64,
|
||||
0x6b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f,
|
||||
0x6b, 0x2e, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 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, 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, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76,
|
||||
0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x73,
|
||||
0x64, 0x6b, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65,
|
||||
0x64, 0x6b, 0x2f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65,
|
||||
0x6e, 0x65, 0x73, 0x69, 0x73, 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, 0x4b, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61,
|
||||
0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62,
|
||||
0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
|
||||
0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61,
|
||||
0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
|
||||
0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x32, 0x85,
|
||||
0x01, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x7c, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61,
|
||||
0x6d, 0x73, 0x12, 0x22, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72,
|
||||
0x6d, 0x73, 0x12, 0x22, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x75, 0x69,
|
||||
0x6c, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x75, 0x63,
|
||||
0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72,
|
||||
0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x88, 0xe7, 0xb0,
|
||||
0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f,
|
||||
0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f,
|
||||
0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xa5, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x73,
|
||||
0x64, 0x6b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51,
|
||||
0x64, 0x6b, 0x2e, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51,
|
||||
0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x63, 0x6f, 0x73,
|
||||
0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x64,
|
||||
0x6b, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x75, 0x69,
|
||||
0x6c, 0x64, 0x65, 0x72, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x42, 0x58, 0xaa, 0x02, 0x0e, 0x53,
|
||||
0x64, 0x6b, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e,
|
||||
0x53, 0x64, 0x6b, 0x5c, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xe2, 0x02,
|
||||
0x1a, 0x53, 0x64, 0x6b, 0x5c, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x5c,
|
||||
0x6b, 0x2f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x75, 0x63,
|
||||
0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x53,
|
||||
0x64, 0x6b, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e,
|
||||
0x53, 0x64, 0x6b, 0x5c, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02,
|
||||
0x1a, 0x53, 0x64, 0x6b, 0x5c, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c,
|
||||
0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x53, 0x64,
|
||||
0x6b, 0x3a, 0x3a, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06,
|
||||
0x6b, 0x3a, 0x3a, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_sdk_builder_v1_query_proto_rawDescOnce sync.Once
|
||||
file_sdk_builder_v1_query_proto_rawDescData = file_sdk_builder_v1_query_proto_rawDesc
|
||||
file_sdk_auction_v1_query_proto_rawDescOnce sync.Once
|
||||
file_sdk_auction_v1_query_proto_rawDescData = file_sdk_auction_v1_query_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_sdk_builder_v1_query_proto_rawDescGZIP() []byte {
|
||||
file_sdk_builder_v1_query_proto_rawDescOnce.Do(func() {
|
||||
file_sdk_builder_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_sdk_builder_v1_query_proto_rawDescData)
|
||||
func file_sdk_auction_v1_query_proto_rawDescGZIP() []byte {
|
||||
file_sdk_auction_v1_query_proto_rawDescOnce.Do(func() {
|
||||
file_sdk_auction_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_sdk_auction_v1_query_proto_rawDescData)
|
||||
})
|
||||
return file_sdk_builder_v1_query_proto_rawDescData
|
||||
return file_sdk_auction_v1_query_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_sdk_builder_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_sdk_builder_v1_query_proto_goTypes = []interface{}{
|
||||
(*QueryParamsRequest)(nil), // 0: sdk.builder.v1.QueryParamsRequest
|
||||
(*QueryParamsResponse)(nil), // 1: sdk.builder.v1.QueryParamsResponse
|
||||
(*Params)(nil), // 2: sdk.builder.v1.Params
|
||||
var file_sdk_auction_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_sdk_auction_v1_query_proto_goTypes = []interface{}{
|
||||
(*QueryParamsRequest)(nil), // 0: sdk.auction.v1.QueryParamsRequest
|
||||
(*QueryParamsResponse)(nil), // 1: sdk.auction.v1.QueryParamsResponse
|
||||
(*Params)(nil), // 2: sdk.auction.v1.Params
|
||||
}
|
||||
var file_sdk_builder_v1_query_proto_depIdxs = []int32{
|
||||
2, // 0: sdk.builder.v1.QueryParamsResponse.params:type_name -> sdk.builder.v1.Params
|
||||
0, // 1: sdk.builder.v1.Query.Params:input_type -> sdk.builder.v1.QueryParamsRequest
|
||||
1, // 2: sdk.builder.v1.Query.Params:output_type -> sdk.builder.v1.QueryParamsResponse
|
||||
var file_sdk_auction_v1_query_proto_depIdxs = []int32{
|
||||
2, // 0: sdk.auction.v1.QueryParamsResponse.params:type_name -> sdk.auction.v1.Params
|
||||
0, // 1: sdk.auction.v1.Query.Params:input_type -> sdk.auction.v1.QueryParamsRequest
|
||||
1, // 2: sdk.auction.v1.Query.Params:output_type -> sdk.auction.v1.QueryParamsResponse
|
||||
2, // [2:3] is the sub-list for method output_type
|
||||
1, // [1:2] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
@ -953,14 +953,14 @@ var file_sdk_builder_v1_query_proto_depIdxs = []int32{
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_sdk_builder_v1_query_proto_init() }
|
||||
func file_sdk_builder_v1_query_proto_init() {
|
||||
if File_sdk_builder_v1_query_proto != nil {
|
||||
func init() { file_sdk_auction_v1_query_proto_init() }
|
||||
func file_sdk_auction_v1_query_proto_init() {
|
||||
if File_sdk_auction_v1_query_proto != nil {
|
||||
return
|
||||
}
|
||||
file_sdk_builder_v1_genesis_proto_init()
|
||||
file_sdk_auction_v1_genesis_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_sdk_builder_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_sdk_auction_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*QueryParamsRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -972,7 +972,7 @@ func file_sdk_builder_v1_query_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_sdk_builder_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_sdk_auction_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*QueryParamsResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -989,18 +989,18 @@ func file_sdk_builder_v1_query_proto_init() {
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_sdk_builder_v1_query_proto_rawDesc,
|
||||
RawDescriptor: file_sdk_auction_v1_query_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_sdk_builder_v1_query_proto_goTypes,
|
||||
DependencyIndexes: file_sdk_builder_v1_query_proto_depIdxs,
|
||||
MessageInfos: file_sdk_builder_v1_query_proto_msgTypes,
|
||||
GoTypes: file_sdk_auction_v1_query_proto_goTypes,
|
||||
DependencyIndexes: file_sdk_auction_v1_query_proto_depIdxs,
|
||||
MessageInfos: file_sdk_auction_v1_query_proto_msgTypes,
|
||||
}.Build()
|
||||
File_sdk_builder_v1_query_proto = out.File
|
||||
file_sdk_builder_v1_query_proto_rawDesc = nil
|
||||
file_sdk_builder_v1_query_proto_goTypes = nil
|
||||
file_sdk_builder_v1_query_proto_depIdxs = nil
|
||||
File_sdk_auction_v1_query_proto = out.File
|
||||
file_sdk_auction_v1_query_proto_rawDesc = nil
|
||||
file_sdk_auction_v1_query_proto_goTypes = nil
|
||||
file_sdk_auction_v1_query_proto_depIdxs = nil
|
||||
}
|
||||
@ -2,9 +2,9 @@
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.3.0
|
||||
// - protoc (unknown)
|
||||
// source: sdk/builder/v1/query.proto
|
||||
// source: sdk/auction/v1/query.proto
|
||||
|
||||
package builderv1
|
||||
package auctionv1
|
||||
|
||||
import (
|
||||
context "context"
|
||||
@ -19,14 +19,14 @@ import (
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
|
||||
const (
|
||||
Query_Params_FullMethodName = "/sdk.builder.v1.Query/Params"
|
||||
Query_Params_FullMethodName = "/sdk.auction.v1.Query/Params"
|
||||
)
|
||||
|
||||
// QueryClient is the client API for Query service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type QueryClient interface {
|
||||
// Params queries the parameters of the x/builder module.
|
||||
// Params queries the parameters of the x/auction module.
|
||||
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts .
|
||||
// All implementations must embed UnimplementedQueryServer
|
||||
// for forward compatibility
|
||||
type QueryServer interface {
|
||||
// Params queries the parameters of the x/builder module.
|
||||
// Params queries the parameters of the x/auction module.
|
||||
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
||||
mustEmbedUnimplementedQueryServer()
|
||||
}
|
||||
@ -98,7 +98,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var Query_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "sdk.builder.v1.Query",
|
||||
ServiceName: "sdk.auction.v1.Query",
|
||||
HandlerType: (*QueryServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
@ -107,5 +107,5 @@ var Query_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "sdk/builder/v1/query.proto",
|
||||
Metadata: "sdk/auction/v1/query.proto",
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
|
||||
package builderv1
|
||||
package auctionv1
|
||||
|
||||
import (
|
||||
_ "cosmossdk.io/api/amino"
|
||||
@ -72,8 +72,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_sdk_builder_v1_tx_proto_init()
|
||||
md_MsgAuctionBid = File_sdk_builder_v1_tx_proto.Messages().ByName("MsgAuctionBid")
|
||||
file_sdk_auction_v1_tx_proto_init()
|
||||
md_MsgAuctionBid = File_sdk_auction_v1_tx_proto.Messages().ByName("MsgAuctionBid")
|
||||
fd_MsgAuctionBid_bidder = md_MsgAuctionBid.Fields().ByName("bidder")
|
||||
fd_MsgAuctionBid_bid = md_MsgAuctionBid.Fields().ByName("bid")
|
||||
fd_MsgAuctionBid_transactions = md_MsgAuctionBid.Fields().ByName("transactions")
|
||||
@ -88,7 +88,7 @@ func (x *MsgAuctionBid) ProtoReflect() protoreflect.Message {
|
||||
}
|
||||
|
||||
func (x *MsgAuctionBid) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_sdk_builder_v1_tx_proto_msgTypes[0]
|
||||
mi := &file_sdk_auction_v1_tx_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -177,17 +177,17 @@ func (x *fastReflection_MsgAuctionBid) Range(f func(protoreflect.FieldDescriptor
|
||||
// a repeated field is populated if it is non-empty.
|
||||
func (x *fastReflection_MsgAuctionBid) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.MsgAuctionBid.bidder":
|
||||
case "sdk.auction.v1.MsgAuctionBid.bidder":
|
||||
return x.Bidder != ""
|
||||
case "sdk.builder.v1.MsgAuctionBid.bid":
|
||||
case "sdk.auction.v1.MsgAuctionBid.bid":
|
||||
return x.Bid != nil
|
||||
case "sdk.builder.v1.MsgAuctionBid.transactions":
|
||||
case "sdk.auction.v1.MsgAuctionBid.transactions":
|
||||
return len(x.Transactions) != 0
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgAuctionBid"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgAuctionBid"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgAuctionBid does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgAuctionBid does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -199,17 +199,17 @@ func (x *fastReflection_MsgAuctionBid) Has(fd protoreflect.FieldDescriptor) bool
|
||||
// Clear is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_MsgAuctionBid) Clear(fd protoreflect.FieldDescriptor) {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.MsgAuctionBid.bidder":
|
||||
case "sdk.auction.v1.MsgAuctionBid.bidder":
|
||||
x.Bidder = ""
|
||||
case "sdk.builder.v1.MsgAuctionBid.bid":
|
||||
case "sdk.auction.v1.MsgAuctionBid.bid":
|
||||
x.Bid = nil
|
||||
case "sdk.builder.v1.MsgAuctionBid.transactions":
|
||||
case "sdk.auction.v1.MsgAuctionBid.transactions":
|
||||
x.Transactions = nil
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgAuctionBid"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgAuctionBid"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgAuctionBid does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgAuctionBid does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -221,13 +221,13 @@ func (x *fastReflection_MsgAuctionBid) Clear(fd protoreflect.FieldDescriptor) {
|
||||
// of the value; to obtain a mutable reference, use Mutable.
|
||||
func (x *fastReflection_MsgAuctionBid) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch descriptor.FullName() {
|
||||
case "sdk.builder.v1.MsgAuctionBid.bidder":
|
||||
case "sdk.auction.v1.MsgAuctionBid.bidder":
|
||||
value := x.Bidder
|
||||
return protoreflect.ValueOfString(value)
|
||||
case "sdk.builder.v1.MsgAuctionBid.bid":
|
||||
case "sdk.auction.v1.MsgAuctionBid.bid":
|
||||
value := x.Bid
|
||||
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||||
case "sdk.builder.v1.MsgAuctionBid.transactions":
|
||||
case "sdk.auction.v1.MsgAuctionBid.transactions":
|
||||
if len(x.Transactions) == 0 {
|
||||
return protoreflect.ValueOfList(&_MsgAuctionBid_3_list{})
|
||||
}
|
||||
@ -235,9 +235,9 @@ func (x *fastReflection_MsgAuctionBid) Get(descriptor protoreflect.FieldDescript
|
||||
return protoreflect.ValueOfList(listValue)
|
||||
default:
|
||||
if descriptor.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgAuctionBid"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgAuctionBid"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgAuctionBid does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgAuctionBid does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -253,19 +253,19 @@ func (x *fastReflection_MsgAuctionBid) Get(descriptor protoreflect.FieldDescript
|
||||
// Set is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_MsgAuctionBid) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.MsgAuctionBid.bidder":
|
||||
case "sdk.auction.v1.MsgAuctionBid.bidder":
|
||||
x.Bidder = value.Interface().(string)
|
||||
case "sdk.builder.v1.MsgAuctionBid.bid":
|
||||
case "sdk.auction.v1.MsgAuctionBid.bid":
|
||||
x.Bid = value.Message().Interface().(*v1beta1.Coin)
|
||||
case "sdk.builder.v1.MsgAuctionBid.transactions":
|
||||
case "sdk.auction.v1.MsgAuctionBid.transactions":
|
||||
lv := value.List()
|
||||
clv := lv.(*_MsgAuctionBid_3_list)
|
||||
x.Transactions = *clv.list
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgAuctionBid"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgAuctionBid"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgAuctionBid does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgAuctionBid does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -281,24 +281,24 @@ func (x *fastReflection_MsgAuctionBid) Set(fd protoreflect.FieldDescriptor, valu
|
||||
// Mutable is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_MsgAuctionBid) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.MsgAuctionBid.bid":
|
||||
case "sdk.auction.v1.MsgAuctionBid.bid":
|
||||
if x.Bid == nil {
|
||||
x.Bid = new(v1beta1.Coin)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Bid.ProtoReflect())
|
||||
case "sdk.builder.v1.MsgAuctionBid.transactions":
|
||||
case "sdk.auction.v1.MsgAuctionBid.transactions":
|
||||
if x.Transactions == nil {
|
||||
x.Transactions = [][]byte{}
|
||||
}
|
||||
value := &_MsgAuctionBid_3_list{list: &x.Transactions}
|
||||
return protoreflect.ValueOfList(value)
|
||||
case "sdk.builder.v1.MsgAuctionBid.bidder":
|
||||
panic(fmt.Errorf("field bidder of message sdk.builder.v1.MsgAuctionBid is not mutable"))
|
||||
case "sdk.auction.v1.MsgAuctionBid.bidder":
|
||||
panic(fmt.Errorf("field bidder of message sdk.auction.v1.MsgAuctionBid is not mutable"))
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgAuctionBid"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgAuctionBid"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgAuctionBid does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgAuctionBid does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -307,19 +307,19 @@ func (x *fastReflection_MsgAuctionBid) Mutable(fd protoreflect.FieldDescriptor)
|
||||
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||||
func (x *fastReflection_MsgAuctionBid) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.MsgAuctionBid.bidder":
|
||||
case "sdk.auction.v1.MsgAuctionBid.bidder":
|
||||
return protoreflect.ValueOfString("")
|
||||
case "sdk.builder.v1.MsgAuctionBid.bid":
|
||||
case "sdk.auction.v1.MsgAuctionBid.bid":
|
||||
m := new(v1beta1.Coin)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "sdk.builder.v1.MsgAuctionBid.transactions":
|
||||
case "sdk.auction.v1.MsgAuctionBid.transactions":
|
||||
list := [][]byte{}
|
||||
return protoreflect.ValueOfList(&_MsgAuctionBid_3_list{list: &list})
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgAuctionBid"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgAuctionBid"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgAuctionBid does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgAuctionBid does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -329,7 +329,7 @@ func (x *fastReflection_MsgAuctionBid) NewField(fd protoreflect.FieldDescriptor)
|
||||
func (x *fastReflection_MsgAuctionBid) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
switch d.FullName() {
|
||||
default:
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.builder.v1.MsgAuctionBid", d.FullName()))
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.auction.v1.MsgAuctionBid", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@ -646,8 +646,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_sdk_builder_v1_tx_proto_init()
|
||||
md_MsgAuctionBidResponse = File_sdk_builder_v1_tx_proto.Messages().ByName("MsgAuctionBidResponse")
|
||||
file_sdk_auction_v1_tx_proto_init()
|
||||
md_MsgAuctionBidResponse = File_sdk_auction_v1_tx_proto.Messages().ByName("MsgAuctionBidResponse")
|
||||
}
|
||||
|
||||
var _ protoreflect.Message = (*fastReflection_MsgAuctionBidResponse)(nil)
|
||||
@ -659,7 +659,7 @@ func (x *MsgAuctionBidResponse) ProtoReflect() protoreflect.Message {
|
||||
}
|
||||
|
||||
func (x *MsgAuctionBidResponse) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_sdk_builder_v1_tx_proto_msgTypes[1]
|
||||
mi := &file_sdk_auction_v1_tx_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -732,9 +732,9 @@ func (x *fastReflection_MsgAuctionBidResponse) Has(fd protoreflect.FieldDescript
|
||||
switch fd.FullName() {
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgAuctionBidResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgAuctionBidResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgAuctionBidResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgAuctionBidResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -748,9 +748,9 @@ func (x *fastReflection_MsgAuctionBidResponse) Clear(fd protoreflect.FieldDescri
|
||||
switch fd.FullName() {
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgAuctionBidResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgAuctionBidResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgAuctionBidResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgAuctionBidResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -764,9 +764,9 @@ func (x *fastReflection_MsgAuctionBidResponse) Get(descriptor protoreflect.Field
|
||||
switch descriptor.FullName() {
|
||||
default:
|
||||
if descriptor.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgAuctionBidResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgAuctionBidResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgAuctionBidResponse does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgAuctionBidResponse does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -784,9 +784,9 @@ func (x *fastReflection_MsgAuctionBidResponse) Set(fd protoreflect.FieldDescript
|
||||
switch fd.FullName() {
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgAuctionBidResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgAuctionBidResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgAuctionBidResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgAuctionBidResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -804,9 +804,9 @@ func (x *fastReflection_MsgAuctionBidResponse) Mutable(fd protoreflect.FieldDesc
|
||||
switch fd.FullName() {
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgAuctionBidResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgAuctionBidResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgAuctionBidResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgAuctionBidResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -817,9 +817,9 @@ func (x *fastReflection_MsgAuctionBidResponse) NewField(fd protoreflect.FieldDes
|
||||
switch fd.FullName() {
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgAuctionBidResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgAuctionBidResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgAuctionBidResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgAuctionBidResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -829,7 +829,7 @@ func (x *fastReflection_MsgAuctionBidResponse) NewField(fd protoreflect.FieldDes
|
||||
func (x *fastReflection_MsgAuctionBidResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
switch d.FullName() {
|
||||
default:
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.builder.v1.MsgAuctionBidResponse", d.FullName()))
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.auction.v1.MsgAuctionBidResponse", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@ -1004,8 +1004,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_sdk_builder_v1_tx_proto_init()
|
||||
md_MsgUpdateParams = File_sdk_builder_v1_tx_proto.Messages().ByName("MsgUpdateParams")
|
||||
file_sdk_auction_v1_tx_proto_init()
|
||||
md_MsgUpdateParams = File_sdk_auction_v1_tx_proto.Messages().ByName("MsgUpdateParams")
|
||||
fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
|
||||
fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params")
|
||||
}
|
||||
@ -1019,7 +1019,7 @@ func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message {
|
||||
}
|
||||
|
||||
func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_sdk_builder_v1_tx_proto_msgTypes[2]
|
||||
mi := &file_sdk_auction_v1_tx_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -1102,15 +1102,15 @@ func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescript
|
||||
// a repeated field is populated if it is non-empty.
|
||||
func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.MsgUpdateParams.authority":
|
||||
case "sdk.auction.v1.MsgUpdateParams.authority":
|
||||
return x.Authority != ""
|
||||
case "sdk.builder.v1.MsgUpdateParams.params":
|
||||
case "sdk.auction.v1.MsgUpdateParams.params":
|
||||
return x.Params != nil
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgUpdateParams"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgUpdateParams"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgUpdateParams does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgUpdateParams does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -1122,15 +1122,15 @@ func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bo
|
||||
// Clear is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.MsgUpdateParams.authority":
|
||||
case "sdk.auction.v1.MsgUpdateParams.authority":
|
||||
x.Authority = ""
|
||||
case "sdk.builder.v1.MsgUpdateParams.params":
|
||||
case "sdk.auction.v1.MsgUpdateParams.params":
|
||||
x.Params = nil
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgUpdateParams"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgUpdateParams"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgUpdateParams does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgUpdateParams does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -1142,17 +1142,17 @@ func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor)
|
||||
// of the value; to obtain a mutable reference, use Mutable.
|
||||
func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch descriptor.FullName() {
|
||||
case "sdk.builder.v1.MsgUpdateParams.authority":
|
||||
case "sdk.auction.v1.MsgUpdateParams.authority":
|
||||
value := x.Authority
|
||||
return protoreflect.ValueOfString(value)
|
||||
case "sdk.builder.v1.MsgUpdateParams.params":
|
||||
case "sdk.auction.v1.MsgUpdateParams.params":
|
||||
value := x.Params
|
||||
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||||
default:
|
||||
if descriptor.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgUpdateParams"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgUpdateParams"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgUpdateParams does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgUpdateParams does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -1168,15 +1168,15 @@ func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescri
|
||||
// Set is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.MsgUpdateParams.authority":
|
||||
case "sdk.auction.v1.MsgUpdateParams.authority":
|
||||
x.Authority = value.Interface().(string)
|
||||
case "sdk.builder.v1.MsgUpdateParams.params":
|
||||
case "sdk.auction.v1.MsgUpdateParams.params":
|
||||
x.Params = value.Message().Interface().(*Params)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgUpdateParams"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgUpdateParams"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgUpdateParams does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgUpdateParams does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -1192,18 +1192,18 @@ func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, va
|
||||
// Mutable is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.MsgUpdateParams.params":
|
||||
case "sdk.auction.v1.MsgUpdateParams.params":
|
||||
if x.Params == nil {
|
||||
x.Params = new(Params)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
|
||||
case "sdk.builder.v1.MsgUpdateParams.authority":
|
||||
panic(fmt.Errorf("field authority of message sdk.builder.v1.MsgUpdateParams is not mutable"))
|
||||
case "sdk.auction.v1.MsgUpdateParams.authority":
|
||||
panic(fmt.Errorf("field authority of message sdk.auction.v1.MsgUpdateParams is not mutable"))
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgUpdateParams"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgUpdateParams"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgUpdateParams does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgUpdateParams does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -1212,16 +1212,16 @@ func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor
|
||||
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||||
func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "sdk.builder.v1.MsgUpdateParams.authority":
|
||||
case "sdk.auction.v1.MsgUpdateParams.authority":
|
||||
return protoreflect.ValueOfString("")
|
||||
case "sdk.builder.v1.MsgUpdateParams.params":
|
||||
case "sdk.auction.v1.MsgUpdateParams.params":
|
||||
m := new(Params)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgUpdateParams"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgUpdateParams"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgUpdateParams does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgUpdateParams does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -1231,7 +1231,7 @@ func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescripto
|
||||
func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
switch d.FullName() {
|
||||
default:
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.builder.v1.MsgUpdateParams", d.FullName()))
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.auction.v1.MsgUpdateParams", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@ -1501,8 +1501,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_sdk_builder_v1_tx_proto_init()
|
||||
md_MsgUpdateParamsResponse = File_sdk_builder_v1_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
|
||||
file_sdk_auction_v1_tx_proto_init()
|
||||
md_MsgUpdateParamsResponse = File_sdk_auction_v1_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
|
||||
}
|
||||
|
||||
var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
|
||||
@ -1514,7 +1514,7 @@ func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
|
||||
}
|
||||
|
||||
func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_sdk_builder_v1_tx_proto_msgTypes[3]
|
||||
mi := &file_sdk_auction_v1_tx_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -1587,9 +1587,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescri
|
||||
switch fd.FullName() {
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgUpdateParamsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgUpdateParamsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -1603,9 +1603,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDesc
|
||||
switch fd.FullName() {
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgUpdateParamsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgUpdateParamsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -1619,9 +1619,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) Get(descriptor protoreflect.Fie
|
||||
switch descriptor.FullName() {
|
||||
default:
|
||||
if descriptor.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgUpdateParamsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgUpdateParamsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -1639,9 +1639,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescri
|
||||
switch fd.FullName() {
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgUpdateParamsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgUpdateParamsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -1659,9 +1659,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDe
|
||||
switch fd.FullName() {
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgUpdateParamsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgUpdateParamsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -1672,9 +1672,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldD
|
||||
switch fd.FullName() {
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.builder.v1.MsgUpdateParamsResponse"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: sdk.auction.v1.MsgUpdateParamsResponse"))
|
||||
}
|
||||
panic(fmt.Errorf("message sdk.builder.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message sdk.auction.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -1684,7 +1684,7 @@ func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldD
|
||||
func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
switch d.FullName() {
|
||||
default:
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.builder.v1.MsgUpdateParamsResponse", d.FullName()))
|
||||
panic(fmt.Errorf("%s is not a oneof field in sdk.auction.v1.MsgUpdateParamsResponse", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@ -1856,7 +1856,7 @@ func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Meth
|
||||
// versions:
|
||||
// protoc-gen-go v1.27.0
|
||||
// protoc (unknown)
|
||||
// source: sdk/builder/v1/tx.proto
|
||||
// source: sdk/auction/v1/tx.proto
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
@ -1865,7 +1865,7 @@ const (
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// MsgAuctionBid defines a request type for sending bids to the x/builder
|
||||
// MsgAuctionBid defines a request type for sending bids to the x/auction
|
||||
// module.
|
||||
type MsgAuctionBid struct {
|
||||
state protoimpl.MessageState
|
||||
@ -1886,7 +1886,7 @@ type MsgAuctionBid struct {
|
||||
func (x *MsgAuctionBid) Reset() {
|
||||
*x = MsgAuctionBid{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_sdk_builder_v1_tx_proto_msgTypes[0]
|
||||
mi := &file_sdk_auction_v1_tx_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1900,7 +1900,7 @@ func (*MsgAuctionBid) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use MsgAuctionBid.ProtoReflect.Descriptor instead.
|
||||
func (*MsgAuctionBid) Descriptor() ([]byte, []int) {
|
||||
return file_sdk_builder_v1_tx_proto_rawDescGZIP(), []int{0}
|
||||
return file_sdk_auction_v1_tx_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *MsgAuctionBid) GetBidder() string {
|
||||
@ -1934,7 +1934,7 @@ type MsgAuctionBidResponse struct {
|
||||
func (x *MsgAuctionBidResponse) Reset() {
|
||||
*x = MsgAuctionBidResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_sdk_builder_v1_tx_proto_msgTypes[1]
|
||||
mi := &file_sdk_auction_v1_tx_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1948,10 +1948,10 @@ func (*MsgAuctionBidResponse) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use MsgAuctionBidResponse.ProtoReflect.Descriptor instead.
|
||||
func (*MsgAuctionBidResponse) Descriptor() ([]byte, []int) {
|
||||
return file_sdk_builder_v1_tx_proto_rawDescGZIP(), []int{1}
|
||||
return file_sdk_auction_v1_tx_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
// MsgUpdateParams defines a request type for updating the x/builder module
|
||||
// MsgUpdateParams defines a request type for updating the x/auction module
|
||||
// parameters.
|
||||
type MsgUpdateParams struct {
|
||||
state protoimpl.MessageState
|
||||
@ -1959,16 +1959,16 @@ type MsgUpdateParams struct {
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// authority is the address of the account that is authorized to update the
|
||||
// x/builder module parameters.
|
||||
// x/auction module parameters.
|
||||
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
|
||||
// params is the new parameters for the x/builder module.
|
||||
// params is the new parameters for the x/auction module.
|
||||
Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
|
||||
}
|
||||
|
||||
func (x *MsgUpdateParams) Reset() {
|
||||
*x = MsgUpdateParams{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_sdk_builder_v1_tx_proto_msgTypes[2]
|
||||
mi := &file_sdk_auction_v1_tx_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1982,7 +1982,7 @@ func (*MsgUpdateParams) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
|
||||
func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
|
||||
return file_sdk_builder_v1_tx_proto_rawDescGZIP(), []int{2}
|
||||
return file_sdk_auction_v1_tx_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *MsgUpdateParams) GetAuthority() string {
|
||||
@ -2009,7 +2009,7 @@ type MsgUpdateParamsResponse struct {
|
||||
func (x *MsgUpdateParamsResponse) Reset() {
|
||||
*x = MsgUpdateParamsResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_sdk_builder_v1_tx_proto_msgTypes[3]
|
||||
mi := &file_sdk_auction_v1_tx_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -2023,21 +2023,21 @@ func (*MsgUpdateParamsResponse) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
|
||||
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
|
||||
return file_sdk_builder_v1_tx_proto_rawDescGZIP(), []int{3}
|
||||
return file_sdk_auction_v1_tx_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
var File_sdk_builder_v1_tx_proto protoreflect.FileDescriptor
|
||||
var File_sdk_auction_v1_tx_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_sdk_builder_v1_tx_proto_rawDesc = []byte{
|
||||
0x0a, 0x17, 0x73, 0x64, 0x6b, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31,
|
||||
0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x73, 0x64, 0x6b, 0x2e, 0x62,
|
||||
0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70,
|
||||
var file_sdk_auction_v1_tx_proto_rawDesc = []byte{
|
||||
0x0a, 0x17, 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31,
|
||||
0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x73, 0x64, 0x6b, 0x2e, 0x61,
|
||||
0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 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,
|
||||
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, 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, 0x1c, 0x73,
|
||||
0x64, 0x6b, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65,
|
||||
0x64, 0x6b, 0x2f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65,
|
||||
0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73,
|
||||
0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d,
|
||||
@ -2055,7 +2055,7 @@ var file_sdk_builder_v1_tx_proto_rawDesc = []byte{
|
||||
0x20, 0x03, 0x28, 0x0c, 0x52, 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f,
|
||||
0x6e, 0x73, 0x3a, 0x35, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x62, 0x69, 0x64,
|
||||
0x64, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x21, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2d, 0x73, 0x64,
|
||||
0x6b, 0x2f, 0x78, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x4d, 0x73, 0x67, 0x41,
|
||||
0x6b, 0x2f, 0x78, 0x2f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x4d, 0x73, 0x67, 0x41,
|
||||
0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x69, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x4d, 0x73, 0x67,
|
||||
0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x22, 0xbb, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
||||
@ -2064,69 +2064,69 @@ var file_sdk_builder_v1_tx_proto_rawDesc = []byte{
|
||||
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72,
|
||||
0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x34,
|
||||
0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16,
|
||||
0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61,
|
||||
0x72, 0x61, 0x6d, 0x73, 0x3a, 0x3a, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61,
|
||||
0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x23, 0x62, 0x6c, 0x6f,
|
||||
0x63, 0x6b, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x78, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72,
|
||||
0x63, 0x6b, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x78, 0x2f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
|
||||
0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72,
|
||||
0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xdd, 0x01, 0x0a, 0x03,
|
||||
0x4d, 0x73, 0x67, 0x12, 0x75, 0x0a, 0x0a, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x69,
|
||||
0x64, 0x12, 0x1d, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e,
|
||||
0x64, 0x12, 0x1d, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x69, 0x64,
|
||||
0x1a, 0x25, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x76,
|
||||
0x1a, 0x25, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x69, 0x64, 0x52,
|
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x22,
|
||||
0x19, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x62, 0x75, 0x69, 0x6c,
|
||||
0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x69, 0x64, 0x12, 0x58, 0x0a, 0x0c, 0x55, 0x70,
|
||||
0x19, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x75, 0x63, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x69, 0x64, 0x12, 0x58, 0x0a, 0x0c, 0x55, 0x70,
|
||||
0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1f, 0x2e, 0x73, 0x64, 0x6b,
|
||||
0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55,
|
||||
0x2e, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x27, 0x2e, 0x73, 0x64,
|
||||
0x6b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67,
|
||||
0x6b, 0x2e, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67,
|
||||
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xa2, 0x01, 0x0a, 0x12,
|
||||
0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e,
|
||||
0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
|
||||
0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x63,
|
||||
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f,
|
||||
0x73, 0x64, 0x6b, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x62,
|
||||
0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x42, 0x58, 0xaa, 0x02,
|
||||
0x0e, 0x53, 0x64, 0x6b, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca,
|
||||
0x02, 0x0e, 0x53, 0x64, 0x6b, 0x5c, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31,
|
||||
0xe2, 0x02, 0x1a, 0x53, 0x64, 0x6b, 0x5c, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x5c, 0x56,
|
||||
0x73, 0x64, 0x6b, 0x2f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x61,
|
||||
0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x41, 0x58, 0xaa, 0x02,
|
||||
0x0e, 0x53, 0x64, 0x6b, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca,
|
||||
0x02, 0x0e, 0x53, 0x64, 0x6b, 0x5c, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31,
|
||||
0xe2, 0x02, 0x1a, 0x53, 0x64, 0x6b, 0x5c, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56,
|
||||
0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10,
|
||||
0x53, 0x64, 0x6b, 0x3a, 0x3a, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31,
|
||||
0x53, 0x64, 0x6b, 0x3a, 0x3a, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31,
|
||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_sdk_builder_v1_tx_proto_rawDescOnce sync.Once
|
||||
file_sdk_builder_v1_tx_proto_rawDescData = file_sdk_builder_v1_tx_proto_rawDesc
|
||||
file_sdk_auction_v1_tx_proto_rawDescOnce sync.Once
|
||||
file_sdk_auction_v1_tx_proto_rawDescData = file_sdk_auction_v1_tx_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_sdk_builder_v1_tx_proto_rawDescGZIP() []byte {
|
||||
file_sdk_builder_v1_tx_proto_rawDescOnce.Do(func() {
|
||||
file_sdk_builder_v1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_sdk_builder_v1_tx_proto_rawDescData)
|
||||
func file_sdk_auction_v1_tx_proto_rawDescGZIP() []byte {
|
||||
file_sdk_auction_v1_tx_proto_rawDescOnce.Do(func() {
|
||||
file_sdk_auction_v1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_sdk_auction_v1_tx_proto_rawDescData)
|
||||
})
|
||||
return file_sdk_builder_v1_tx_proto_rawDescData
|
||||
return file_sdk_auction_v1_tx_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_sdk_builder_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_sdk_builder_v1_tx_proto_goTypes = []interface{}{
|
||||
(*MsgAuctionBid)(nil), // 0: sdk.builder.v1.MsgAuctionBid
|
||||
(*MsgAuctionBidResponse)(nil), // 1: sdk.builder.v1.MsgAuctionBidResponse
|
||||
(*MsgUpdateParams)(nil), // 2: sdk.builder.v1.MsgUpdateParams
|
||||
(*MsgUpdateParamsResponse)(nil), // 3: sdk.builder.v1.MsgUpdateParamsResponse
|
||||
var file_sdk_auction_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_sdk_auction_v1_tx_proto_goTypes = []interface{}{
|
||||
(*MsgAuctionBid)(nil), // 0: sdk.auction.v1.MsgAuctionBid
|
||||
(*MsgAuctionBidResponse)(nil), // 1: sdk.auction.v1.MsgAuctionBidResponse
|
||||
(*MsgUpdateParams)(nil), // 2: sdk.auction.v1.MsgUpdateParams
|
||||
(*MsgUpdateParamsResponse)(nil), // 3: sdk.auction.v1.MsgUpdateParamsResponse
|
||||
(*v1beta1.Coin)(nil), // 4: cosmos.base.v1beta1.Coin
|
||||
(*Params)(nil), // 5: sdk.builder.v1.Params
|
||||
(*Params)(nil), // 5: sdk.auction.v1.Params
|
||||
}
|
||||
var file_sdk_builder_v1_tx_proto_depIdxs = []int32{
|
||||
4, // 0: sdk.builder.v1.MsgAuctionBid.bid:type_name -> cosmos.base.v1beta1.Coin
|
||||
5, // 1: sdk.builder.v1.MsgUpdateParams.params:type_name -> sdk.builder.v1.Params
|
||||
0, // 2: sdk.builder.v1.Msg.AuctionBid:input_type -> sdk.builder.v1.MsgAuctionBid
|
||||
2, // 3: sdk.builder.v1.Msg.UpdateParams:input_type -> sdk.builder.v1.MsgUpdateParams
|
||||
1, // 4: sdk.builder.v1.Msg.AuctionBid:output_type -> sdk.builder.v1.MsgAuctionBidResponse
|
||||
3, // 5: sdk.builder.v1.Msg.UpdateParams:output_type -> sdk.builder.v1.MsgUpdateParamsResponse
|
||||
var file_sdk_auction_v1_tx_proto_depIdxs = []int32{
|
||||
4, // 0: sdk.auction.v1.MsgAuctionBid.bid:type_name -> cosmos.base.v1beta1.Coin
|
||||
5, // 1: sdk.auction.v1.MsgUpdateParams.params:type_name -> sdk.auction.v1.Params
|
||||
0, // 2: sdk.auction.v1.Msg.AuctionBid:input_type -> sdk.auction.v1.MsgAuctionBid
|
||||
2, // 3: sdk.auction.v1.Msg.UpdateParams:input_type -> sdk.auction.v1.MsgUpdateParams
|
||||
1, // 4: sdk.auction.v1.Msg.AuctionBid:output_type -> sdk.auction.v1.MsgAuctionBidResponse
|
||||
3, // 5: sdk.auction.v1.Msg.UpdateParams:output_type -> sdk.auction.v1.MsgUpdateParamsResponse
|
||||
4, // [4:6] is the sub-list for method output_type
|
||||
2, // [2:4] is the sub-list for method input_type
|
||||
2, // [2:2] is the sub-list for extension type_name
|
||||
@ -2134,14 +2134,14 @@ var file_sdk_builder_v1_tx_proto_depIdxs = []int32{
|
||||
0, // [0:2] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_sdk_builder_v1_tx_proto_init() }
|
||||
func file_sdk_builder_v1_tx_proto_init() {
|
||||
if File_sdk_builder_v1_tx_proto != nil {
|
||||
func init() { file_sdk_auction_v1_tx_proto_init() }
|
||||
func file_sdk_auction_v1_tx_proto_init() {
|
||||
if File_sdk_auction_v1_tx_proto != nil {
|
||||
return
|
||||
}
|
||||
file_sdk_builder_v1_genesis_proto_init()
|
||||
file_sdk_auction_v1_genesis_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_sdk_builder_v1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_sdk_auction_v1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MsgAuctionBid); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2153,7 +2153,7 @@ func file_sdk_builder_v1_tx_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_sdk_builder_v1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_sdk_auction_v1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MsgAuctionBidResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2165,7 +2165,7 @@ func file_sdk_builder_v1_tx_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_sdk_builder_v1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_sdk_auction_v1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MsgUpdateParams); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2177,7 +2177,7 @@ func file_sdk_builder_v1_tx_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_sdk_builder_v1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_sdk_auction_v1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MsgUpdateParamsResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2194,18 +2194,18 @@ func file_sdk_builder_v1_tx_proto_init() {
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_sdk_builder_v1_tx_proto_rawDesc,
|
||||
RawDescriptor: file_sdk_auction_v1_tx_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 4,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_sdk_builder_v1_tx_proto_goTypes,
|
||||
DependencyIndexes: file_sdk_builder_v1_tx_proto_depIdxs,
|
||||
MessageInfos: file_sdk_builder_v1_tx_proto_msgTypes,
|
||||
GoTypes: file_sdk_auction_v1_tx_proto_goTypes,
|
||||
DependencyIndexes: file_sdk_auction_v1_tx_proto_depIdxs,
|
||||
MessageInfos: file_sdk_auction_v1_tx_proto_msgTypes,
|
||||
}.Build()
|
||||
File_sdk_builder_v1_tx_proto = out.File
|
||||
file_sdk_builder_v1_tx_proto_rawDesc = nil
|
||||
file_sdk_builder_v1_tx_proto_goTypes = nil
|
||||
file_sdk_builder_v1_tx_proto_depIdxs = nil
|
||||
File_sdk_auction_v1_tx_proto = out.File
|
||||
file_sdk_auction_v1_tx_proto_rawDesc = nil
|
||||
file_sdk_auction_v1_tx_proto_goTypes = nil
|
||||
file_sdk_auction_v1_tx_proto_depIdxs = nil
|
||||
}
|
||||
@ -2,9 +2,9 @@
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.3.0
|
||||
// - protoc (unknown)
|
||||
// source: sdk/builder/v1/tx.proto
|
||||
// source: sdk/auction/v1/tx.proto
|
||||
|
||||
package builderv1
|
||||
package auctionv1
|
||||
|
||||
import (
|
||||
context "context"
|
||||
@ -19,17 +19,17 @@ import (
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
|
||||
const (
|
||||
Msg_AuctionBid_FullMethodName = "/sdk.builder.v1.Msg/AuctionBid"
|
||||
Msg_UpdateParams_FullMethodName = "/sdk.builder.v1.Msg/UpdateParams"
|
||||
Msg_AuctionBid_FullMethodName = "/sdk.auction.v1.Msg/AuctionBid"
|
||||
Msg_UpdateParams_FullMethodName = "/sdk.auction.v1.Msg/UpdateParams"
|
||||
)
|
||||
|
||||
// MsgClient is the client API for Msg service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type MsgClient interface {
|
||||
// AuctionBid defines a method for sending bids to the x/builder module.
|
||||
// AuctionBid defines a method for sending bids to the x/auction module.
|
||||
AuctionBid(ctx context.Context, in *MsgAuctionBid, opts ...grpc.CallOption) (*MsgAuctionBidResponse, error)
|
||||
// UpdateParams defines a governance operation for updating the x/builder
|
||||
// UpdateParams defines a governance operation for updating the x/auction
|
||||
// module parameters. The authority is hard-coded to the x/gov module account.
|
||||
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
|
||||
}
|
||||
@ -64,9 +64,9 @@ func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts
|
||||
// All implementations must embed UnimplementedMsgServer
|
||||
// for forward compatibility
|
||||
type MsgServer interface {
|
||||
// AuctionBid defines a method for sending bids to the x/builder module.
|
||||
// AuctionBid defines a method for sending bids to the x/auction module.
|
||||
AuctionBid(context.Context, *MsgAuctionBid) (*MsgAuctionBidResponse, error)
|
||||
// UpdateParams defines a governance operation for updating the x/builder
|
||||
// UpdateParams defines a governance operation for updating the x/auction
|
||||
// module parameters. The authority is hard-coded to the x/gov module account.
|
||||
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
|
||||
mustEmbedUnimplementedMsgServer()
|
||||
@ -135,7 +135,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var Msg_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "sdk.builder.v1.Msg",
|
||||
ServiceName: "sdk.auction.v1.Msg",
|
||||
HandlerType: (*MsgServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
@ -148,5 +148,5 @@ var Msg_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "sdk/builder/v1/tx.proto",
|
||||
Metadata: "sdk/auction/v1/tx.proto",
|
||||
}
|
||||
@ -18,7 +18,7 @@ import (
|
||||
"github.com/skip-mev/block-sdk/lanes/free"
|
||||
"github.com/skip-mev/block-sdk/lanes/mev"
|
||||
testutils "github.com/skip-mev/block-sdk/testutils"
|
||||
buildertypes "github.com/skip-mev/block-sdk/x/builder/types"
|
||||
auctiontypes "github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
type BlockBusterTestSuite struct {
|
||||
@ -51,7 +51,7 @@ func (suite *BlockBusterTestSuite) SetupTest() {
|
||||
// General config for transactions and randomness for the test suite
|
||||
suite.encodingConfig = testutils.CreateTestEncodingConfig()
|
||||
suite.random = rand.New(rand.NewSource(time.Now().Unix()))
|
||||
key := storetypes.NewKVStoreKey(buildertypes.StoreKey)
|
||||
key := storetypes.NewKVStoreKey(auctiontypes.StoreKey)
|
||||
testCtx := testutil.DefaultContextWithDB(suite.T(), key, storetypes.NewTransientStoreKey("transient_test"))
|
||||
suite.ctx = testCtx.Ctx.WithBlockHeight(1)
|
||||
|
||||
|
||||
@ -23,10 +23,10 @@ $ go install github.com/skip-mev/block-sdk
|
||||
## 📚 Usage
|
||||
|
||||
1. This guide assumes you have already set up the [Block SDK (and the default lane)](https://docs.skip.money/chains/overview)
|
||||
2. You will need to instantiate the `x/builder` module into your application. This
|
||||
2. You will need to instantiate the `x/auction` module into your application. This
|
||||
module is responsible for processing auction transactions and distributing revenue
|
||||
to the auction house. The `x/builder` module is also responsible for ensuring the
|
||||
validity of auction transactions. *The `x/builder` module should not exist on its
|
||||
to the auction house. The `x/auction` module is also responsible for ensuring the
|
||||
validity of auction transactions. *The `x/auction` module should not exist on its
|
||||
own. **This is the most intensive part of the set up process.**
|
||||
3. Next, add the MEV lane into the `lane` object on your `app.go`. The first
|
||||
lane is the highest priority lane and the last lane is the lowest priority lane.
|
||||
@ -41,7 +41,7 @@ lanes in the `LanedMempool`.
|
||||
NOTE: This example walks through setting up the MEV and Default lanes.
|
||||
|
||||
1. Import the necessary dependencies into your application. This includes the
|
||||
Block SDK proposal handlers + mempool, keeper, builder types, and builder
|
||||
Block SDK proposal handlers + mempool, keeper, auction types, and auction
|
||||
module. This tutorial will go into more detail into each of the dependencies.
|
||||
|
||||
```go
|
||||
@ -50,10 +50,10 @@ NOTE: This example walks through setting up the MEV and Default lanes.
|
||||
"github.com/skip-mev/block-sdk/abci"
|
||||
"github.com/skip-mev/block-sdk/lanes/mev"
|
||||
"github.com/skip-mev/block-sdk/lanes/base"
|
||||
buildermodule "github.com/skip-mev/block-sdk/x/builder"
|
||||
builderkeeper "github.com/skip-mev/block-sdk/x/builder/keeper"
|
||||
buildertypes "github.com/skip-mev/block-sdk/x/builder/types"
|
||||
builderante "github.com/skip-mev/block-sdk/x/builder/ante"
|
||||
auctionmodule "github.com/skip-mev/block-sdk/x/auction"
|
||||
auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper"
|
||||
auctiontypes "github.com/skip-mev/block-sdk/x/auction/types"
|
||||
auctionante "github.com/skip-mev/block-sdk/x/auction/ante"
|
||||
...
|
||||
)
|
||||
```
|
||||
@ -71,13 +71,13 @@ NOTE: This example walks through setting up the MEV and Default lanes.
|
||||
var (
|
||||
ModuleBasics = module.NewBasicManager(
|
||||
...
|
||||
buildermodule.AppModuleBasic{},
|
||||
auctionmodule.AppModuleBasic{},
|
||||
)
|
||||
...
|
||||
)
|
||||
```
|
||||
|
||||
3. The builder `Keeper` is MEV lane's gateway to processing special `MsgAuctionBid`
|
||||
3. The auction `Keeper` is MEV lane's gateway to processing special `MsgAuctionBid`
|
||||
messages that allow users to participate in the top of block auction, distribute
|
||||
revenue to the auction house, and ensure the validity of auction transactions.
|
||||
|
||||
@ -91,20 +91,20 @@ NOTE: This example walks through setting up the MEV and Default lanes.
|
||||
```go
|
||||
type App struct {
|
||||
...
|
||||
// BuilderKeeper is the keeper that handles processing auction transactions
|
||||
BuilderKeeper builderkeeper.Keeper
|
||||
// auctionkeeper is the keeper that handles processing auction transactions
|
||||
auctionkeeper auctionkeeper.Keeper
|
||||
|
||||
// Custom checkTx handler
|
||||
checkTxHandler mev.CheckTx
|
||||
}
|
||||
```
|
||||
|
||||
b. Add the builder module to the list of module account permissions. This will
|
||||
instantiate the builder module account on genesis.
|
||||
b. Add the auction module to the list of module account permissions. This will
|
||||
instantiate the auction module account on genesis.
|
||||
|
||||
```go
|
||||
maccPerms = map[string][]string{
|
||||
builder.ModuleName: nil,
|
||||
auction.ModuleName: nil,
|
||||
...
|
||||
}
|
||||
```
|
||||
@ -155,7 +155,7 @@ NOTE: This example walks through setting up the MEV and Default lanes.
|
||||
app.App.SetMempool(mempool)
|
||||
```
|
||||
|
||||
d. Add the `x/builder` module's `AuctionDecorator` to the ante-handler
|
||||
d. Add the `x/auction` module's `AuctionDecorator` to the ante-handler
|
||||
chain. The `AuctionDecorator` is an AnteHandler decorator that enforces
|
||||
various chain configurable MEV rules.
|
||||
|
||||
@ -163,8 +163,8 @@ NOTE: This example walks through setting up the MEV and Default lanes.
|
||||
anteDecorators := []sdk.AnteDecorator{
|
||||
ante.NewSetUpContextDecorator(),
|
||||
...
|
||||
builderante.NewBuilderDecorator(
|
||||
options.BuilderKeeper,
|
||||
auctionante.NewAuctionDecorator(
|
||||
options.auctionkeeper,
|
||||
options.TxEncoder,
|
||||
options.TOBLane,
|
||||
options.Mempool,
|
||||
@ -184,19 +184,19 @@ NOTE: This example walks through setting up the MEV and Default lanes.
|
||||
app.App.SetAnteHandler(anteHandler)
|
||||
```
|
||||
|
||||
e. Instantiate the builder keeper, store keys, and module manager. Note, be
|
||||
e. Instantiate the auction keeper, store keys, and module manager. Note, be
|
||||
sure to do this after all the required keeper dependencies have been instantiated.
|
||||
|
||||
```go
|
||||
keys := storetypes.NewKVStoreKeys(
|
||||
buildertypes.StoreKey,
|
||||
auctiontypes.StoreKey,
|
||||
...
|
||||
)
|
||||
|
||||
...
|
||||
app.BuilderKeeper := builderkeeper.NewKeeper(
|
||||
app.auctionkeeper := auctionkeeper.NewKeeper(
|
||||
appCodec,
|
||||
keys[buildertypes.StoreKey],
|
||||
keys[auctiontypes.StoreKey],
|
||||
app.AccountKeeper,
|
||||
app.BankKeeper,
|
||||
app.DistrKeeper,
|
||||
@ -206,7 +206,7 @@ NOTE: This example walks through setting up the MEV and Default lanes.
|
||||
|
||||
|
||||
app.ModuleManager = module.NewManager(
|
||||
builder.NewAppModule(appCodec, app.BuilderKeeper),
|
||||
auction.NewAppModule(appCodec, app.auctionkeeper),
|
||||
...
|
||||
)
|
||||
```
|
||||
@ -252,7 +252,7 @@ NOTE: This example walks through setting up the MEV and Default lanes.
|
||||
|
||||
```go
|
||||
genesisModuleOrder := []string{
|
||||
buildertypes.ModuleName,
|
||||
auctiontypes.ModuleName,
|
||||
...,
|
||||
}
|
||||
```
|
||||
|
||||
@ -9,7 +9,7 @@ import (
|
||||
"github.com/skip-mev/block-sdk/block"
|
||||
"github.com/skip-mev/block-sdk/block/base"
|
||||
"github.com/skip-mev/block-sdk/block/utils"
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
// PrepareLaneHandler will attempt to select the highest bid transaction that is valid
|
||||
|
||||
@ -10,7 +10,7 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@ -7,7 +7,7 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/x/auth/signing"
|
||||
|
||||
"github.com/skip-mev/block-sdk/block/base"
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@ -24,7 +24,7 @@ var _ MEVLaneI = (*MEVLane)(nil)
|
||||
// next block.
|
||||
type (
|
||||
// MEVLaneI defines the interface for the mev auction lane. This interface
|
||||
// is utilized by both the x/builder module and the checkTx handler.
|
||||
// is utilized by both the x/auction module and the checkTx handler.
|
||||
MEVLaneI interface { //nolint
|
||||
block.Lane
|
||||
Factory
|
||||
|
||||
@ -52,7 +52,7 @@ func TxPriority(config Factory) base.TxPriority[string] {
|
||||
}
|
||||
|
||||
// GetTopAuctionTx returns the highest bidding transaction in the auction mempool.
|
||||
// This is primarily a helper function for the x/builder module.
|
||||
// This is primarily a helper function for the x/auction module.
|
||||
func (l *MEVLane) GetTopAuctionTx(ctx context.Context) sdk.Tx {
|
||||
iterator := l.Select(ctx, nil)
|
||||
if iterator == nil {
|
||||
|
||||
@ -5,16 +5,16 @@ import (
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
buildertypes "github.com/skip-mev/block-sdk/x/builder/types"
|
||||
auctiontypes "github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
// GetMsgAuctionBidFromTx attempts to retrieve a MsgAuctionBid from an sdk.Tx if
|
||||
// one exists. If a MsgAuctionBid does exist and other messages are also present,
|
||||
// an error is returned. If no MsgAuctionBid is present, <nil, nil> is returned.
|
||||
func GetMsgAuctionBidFromTx(tx sdk.Tx) (*buildertypes.MsgAuctionBid, error) {
|
||||
auctionBidMsgs := make([]*buildertypes.MsgAuctionBid, 0)
|
||||
func GetMsgAuctionBidFromTx(tx sdk.Tx) (*auctiontypes.MsgAuctionBid, error) {
|
||||
auctionBidMsgs := make([]*auctiontypes.MsgAuctionBid, 0)
|
||||
for _, msg := range tx.GetMsgs() {
|
||||
t, ok := msg.(*buildertypes.MsgAuctionBid)
|
||||
t, ok := msg.(*auctiontypes.MsgAuctionBid)
|
||||
if ok {
|
||||
auctionBidMsgs = append(auctionBidMsgs, t)
|
||||
}
|
||||
|
||||
@ -8,14 +8,14 @@ import (
|
||||
|
||||
"github.com/skip-mev/block-sdk/lanes/mev"
|
||||
testutils "github.com/skip-mev/block-sdk/testutils"
|
||||
buildertypes "github.com/skip-mev/block-sdk/x/builder/types"
|
||||
auctiontypes "github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
func TestGetMsgAuctionBidFromTx_Valid(t *testing.T) {
|
||||
encCfg := testutils.CreateTestEncodingConfig()
|
||||
|
||||
txBuilder := encCfg.TxConfig.NewTxBuilder()
|
||||
txBuilder.SetMsgs(&buildertypes.MsgAuctionBid{})
|
||||
txBuilder.SetMsgs(&auctiontypes.MsgAuctionBid{})
|
||||
|
||||
msg, err := mev.GetMsgAuctionBidFromTx(txBuilder.GetTx())
|
||||
require.NoError(t, err)
|
||||
@ -27,8 +27,8 @@ func TestGetMsgAuctionBidFromTx_MultiMsgBid(t *testing.T) {
|
||||
|
||||
txBuilder := encCfg.TxConfig.NewTxBuilder()
|
||||
txBuilder.SetMsgs(
|
||||
&buildertypes.MsgAuctionBid{},
|
||||
&buildertypes.MsgAuctionBid{},
|
||||
&auctiontypes.MsgAuctionBid{},
|
||||
&auctiontypes.MsgAuctionBid{},
|
||||
&banktypes.MsgSend{},
|
||||
)
|
||||
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package sdk.builder.module.v1;
|
||||
package sdk.auction.module.v1;
|
||||
|
||||
import "cosmos/app/v1alpha1/module.proto";
|
||||
|
||||
// Module is the config object of the builder module.
|
||||
// Module is the config object of the auction module.
|
||||
message Module {
|
||||
option (cosmos.app.v1alpha1.module) = {
|
||||
go_import : "github.com/skip-mev/block-sdk/x/builder"
|
||||
go_import : "github.com/skip-mev/block-sdk/x/auction"
|
||||
};
|
||||
|
||||
// Authority defines the custom module authority. If not set, defaults to the
|
||||
@ -1,19 +1,19 @@
|
||||
syntax = "proto3";
|
||||
package sdk.builder.v1;
|
||||
package sdk.auction.v1;
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
import "cosmos/base/v1beta1/coin.proto";
|
||||
import "amino/amino.proto";
|
||||
import "cosmos_proto/cosmos.proto";
|
||||
|
||||
option go_package = "github.com/skip-mev/block-sdk/x/builder/types";
|
||||
option go_package = "github.com/skip-mev/block-sdk/x/auction/types";
|
||||
|
||||
// GenesisState defines the genesis state of the x/builder module.
|
||||
// GenesisState defines the genesis state of the x/auction module.
|
||||
message GenesisState { Params params = 1 [ (gogoproto.nullable) = false ]; }
|
||||
|
||||
// Params defines the parameters of the x/builder module.
|
||||
// Params defines the parameters of the x/auction module.
|
||||
message Params {
|
||||
option (amino.name) = "block-sdk/x/builder/Params";
|
||||
option (amino.name) = "block-sdk/x/auction/Params";
|
||||
|
||||
// max_bundle_size is the maximum number of transactions that can be bundled
|
||||
// in a single bundle.
|
||||
@ -1,19 +1,19 @@
|
||||
syntax = "proto3";
|
||||
package sdk.builder.v1;
|
||||
package sdk.auction.v1;
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
import "google/api/annotations.proto";
|
||||
import "cosmos/query/v1/query.proto";
|
||||
import "sdk/builder/v1/genesis.proto";
|
||||
import "sdk/auction/v1/genesis.proto";
|
||||
|
||||
option go_package = "github.com/skip-mev/block-sdk/x/builder/types";
|
||||
option go_package = "github.com/skip-mev/block-sdk/x/auction/types";
|
||||
|
||||
// Query defines the x/builder querier service.
|
||||
// Query defines the x/auction querier service.
|
||||
service Query {
|
||||
// Params queries the parameters of the x/builder module.
|
||||
// Params queries the parameters of the x/auction module.
|
||||
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
|
||||
option (cosmos.query.v1.module_query_safe) = true;
|
||||
option (google.api.http).get = "/block-sdk/builder/v1/params";
|
||||
option (google.api.http).get = "/block-sdk/auction/v1/params";
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,35 +1,35 @@
|
||||
syntax = "proto3";
|
||||
package sdk.builder.v1;
|
||||
package sdk.auction.v1;
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
import "google/api/annotations.proto";
|
||||
import "cosmos/base/v1beta1/coin.proto";
|
||||
import "sdk/builder/v1/genesis.proto";
|
||||
import "sdk/auction/v1/genesis.proto";
|
||||
import "cosmos_proto/cosmos.proto";
|
||||
import "cosmos/msg/v1/msg.proto";
|
||||
import "amino/amino.proto";
|
||||
|
||||
option go_package = "github.com/skip-mev/block-sdk/x/builder/types";
|
||||
option go_package = "github.com/skip-mev/block-sdk/x/auction/types";
|
||||
|
||||
// Msg defines the x/builder Msg service.
|
||||
// Msg defines the x/auction Msg service.
|
||||
service Msg {
|
||||
option (cosmos.msg.v1.service) = true;
|
||||
|
||||
// AuctionBid defines a method for sending bids to the x/builder module.
|
||||
// AuctionBid defines a method for sending bids to the x/auction module.
|
||||
rpc AuctionBid(MsgAuctionBid) returns (MsgAuctionBidResponse) {
|
||||
option (google.api.http).post = "/block-sdk/builder/v1/bid";
|
||||
option (google.api.http).post = "/block-sdk/auction/v1/bid";
|
||||
};
|
||||
|
||||
// UpdateParams defines a governance operation for updating the x/builder
|
||||
// UpdateParams defines a governance operation for updating the x/auction
|
||||
// module parameters. The authority is hard-coded to the x/gov module account.
|
||||
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse);
|
||||
}
|
||||
|
||||
// MsgAuctionBid defines a request type for sending bids to the x/builder
|
||||
// MsgAuctionBid defines a request type for sending bids to the x/auction
|
||||
// module.
|
||||
message MsgAuctionBid {
|
||||
option (cosmos.msg.v1.signer) = "bidder";
|
||||
option (amino.name) = "block-sdk/x/builder/MsgAuctionBid";
|
||||
option (amino.name) = "block-sdk/x/auction/MsgAuctionBid";
|
||||
|
||||
option (gogoproto.equal) = false;
|
||||
|
||||
@ -48,18 +48,18 @@ message MsgAuctionBid {
|
||||
// MsgAuctionBidResponse defines the Msg/AuctionBid response type.
|
||||
message MsgAuctionBidResponse {}
|
||||
|
||||
// MsgUpdateParams defines a request type for updating the x/builder module
|
||||
// MsgUpdateParams defines a request type for updating the x/auction module
|
||||
// parameters.
|
||||
message MsgUpdateParams {
|
||||
option (cosmos.msg.v1.signer) = "authority";
|
||||
option (amino.name) = "block-sdk/x/builder/MsgUpdateParams";
|
||||
option (amino.name) = "block-sdk/x/auction/MsgUpdateParams";
|
||||
|
||||
option (gogoproto.equal) = false;
|
||||
|
||||
// authority is the address of the account that is authorized to update the
|
||||
// x/builder module parameters.
|
||||
// x/auction module parameters.
|
||||
string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
|
||||
// params is the new parameters for the x/builder module.
|
||||
// params is the new parameters for the x/auction module.
|
||||
Params params = 2 [ (gogoproto.nullable) = false ];
|
||||
}
|
||||
|
||||
@ -6,17 +6,17 @@ import (
|
||||
|
||||
"github.com/skip-mev/block-sdk/block"
|
||||
"github.com/skip-mev/block-sdk/block/utils"
|
||||
builderante "github.com/skip-mev/block-sdk/x/builder/ante"
|
||||
builderkeeper "github.com/skip-mev/block-sdk/x/builder/keeper"
|
||||
auctionante "github.com/skip-mev/block-sdk/x/auction/ante"
|
||||
auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper"
|
||||
)
|
||||
|
||||
type POBHandlerOptions struct {
|
||||
BaseOptions ante.HandlerOptions
|
||||
Mempool block.Mempool
|
||||
MEVLane builderante.MEVLane
|
||||
MEVLane auctionante.MEVLane
|
||||
TxDecoder sdk.TxDecoder
|
||||
TxEncoder sdk.TxEncoder
|
||||
BuilderKeeper builderkeeper.Keeper
|
||||
auctionkeeper auctionkeeper.Keeper
|
||||
FreeLane block.Lane
|
||||
}
|
||||
|
||||
@ -55,7 +55,7 @@ func NewPOBAnteHandler(options POBHandlerOptions) sdk.AnteHandler {
|
||||
ante.NewSigGasConsumeDecorator(options.BaseOptions.AccountKeeper, options.BaseOptions.SigGasConsumer),
|
||||
ante.NewSigVerificationDecorator(options.BaseOptions.AccountKeeper, options.BaseOptions.SignModeHandler),
|
||||
ante.NewIncrementSequenceDecorator(options.BaseOptions.AccountKeeper),
|
||||
builderante.NewBuilderDecorator(options.BuilderKeeper, options.TxEncoder, options.MEVLane, options.Mempool),
|
||||
auctionante.NewAuctionDecorator(options.auctionkeeper, options.TxEncoder, options.MEVLane, options.Mempool),
|
||||
}
|
||||
|
||||
return sdk.ChainAnteDecorators(anteDecorators...)
|
||||
|
||||
@ -67,8 +67,8 @@ import (
|
||||
defaultlane "github.com/skip-mev/block-sdk/lanes/base"
|
||||
"github.com/skip-mev/block-sdk/lanes/free"
|
||||
"github.com/skip-mev/block-sdk/lanes/mev"
|
||||
buildermodule "github.com/skip-mev/block-sdk/x/builder"
|
||||
builderkeeper "github.com/skip-mev/block-sdk/x/builder/keeper"
|
||||
auctionmodule "github.com/skip-mev/block-sdk/x/auction"
|
||||
auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -104,7 +104,7 @@ var (
|
||||
groupmodule.AppModuleBasic{},
|
||||
vesting.AppModuleBasic{},
|
||||
consensus.AppModuleBasic{},
|
||||
buildermodule.AppModuleBasic{},
|
||||
auctionmodule.AppModuleBasic{},
|
||||
feegrantmodule.AppModuleBasic{},
|
||||
)
|
||||
)
|
||||
@ -136,7 +136,7 @@ type TestApp struct {
|
||||
GroupKeeper groupkeeper.Keeper
|
||||
ConsensusParamsKeeper consensuskeeper.Keeper
|
||||
CircuitBreakerKeeper circuitkeeper.Keeper
|
||||
BuilderKeeper builderkeeper.Keeper
|
||||
auctionkeeper auctionkeeper.Keeper
|
||||
FeeGrantKeeper feegrantkeeper.Keeper
|
||||
|
||||
// custom checkTx handler
|
||||
@ -217,7 +217,7 @@ func New(
|
||||
&app.ParamsKeeper,
|
||||
&app.AuthzKeeper,
|
||||
&app.GroupKeeper,
|
||||
&app.BuilderKeeper,
|
||||
&app.auctionkeeper,
|
||||
&app.ConsensusParamsKeeper,
|
||||
&app.FeeGrantKeeper,
|
||||
&app.CircuitBreakerKeeper,
|
||||
@ -319,7 +319,7 @@ func New(
|
||||
}
|
||||
options := POBHandlerOptions{
|
||||
BaseOptions: handlerOptions,
|
||||
BuilderKeeper: app.BuilderKeeper,
|
||||
auctionkeeper: app.auctionkeeper,
|
||||
TxDecoder: app.txConfig.TxDecoder(),
|
||||
TxEncoder: app.txConfig.TxEncoder(),
|
||||
FreeLane: freeLane,
|
||||
|
||||
@ -65,9 +65,9 @@ import (
|
||||
_ "github.com/cosmos/cosmos-sdk/x/slashing" // import for side-effects
|
||||
_ "github.com/cosmos/cosmos-sdk/x/staking" // import for side-effects
|
||||
|
||||
buildermodulev1 "github.com/skip-mev/block-sdk/api/sdk/builder/module/v1"
|
||||
_ "github.com/skip-mev/block-sdk/x/builder" // import for side-effects
|
||||
buildertypes "github.com/skip-mev/block-sdk/x/builder/types"
|
||||
auctionmodulev1 "github.com/skip-mev/block-sdk/api/sdk/auction/module/v1"
|
||||
_ "github.com/skip-mev/block-sdk/x/auction" // import for side-effects
|
||||
auctiontypes "github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -79,7 +79,7 @@ var (
|
||||
{Account: stakingtypes.BondedPoolName, Permissions: []string{authtypes.Burner, stakingtypes.ModuleName}},
|
||||
{Account: stakingtypes.NotBondedPoolName, Permissions: []string{authtypes.Burner, stakingtypes.ModuleName}},
|
||||
{Account: govtypes.ModuleName, Permissions: []string{authtypes.Burner}},
|
||||
{Account: buildertypes.ModuleName, Permissions: []string{}},
|
||||
{Account: auctiontypes.ModuleName, Permissions: []string{}},
|
||||
}
|
||||
|
||||
// blocked account addresses
|
||||
@ -112,7 +112,7 @@ var (
|
||||
stakingtypes.ModuleName,
|
||||
genutiltypes.ModuleName,
|
||||
authz.ModuleName,
|
||||
buildertypes.ModuleName,
|
||||
auctiontypes.ModuleName,
|
||||
feegrant.ModuleName,
|
||||
},
|
||||
EndBlockers: []string{
|
||||
@ -121,7 +121,7 @@ var (
|
||||
stakingtypes.ModuleName,
|
||||
genutiltypes.ModuleName,
|
||||
group.ModuleName,
|
||||
buildertypes.ModuleName,
|
||||
auctiontypes.ModuleName,
|
||||
feegrant.ModuleName,
|
||||
},
|
||||
OverrideStoreKeys: []*runtimev1alpha1.StoreKeyConfig{
|
||||
@ -150,7 +150,7 @@ var (
|
||||
vestingtypes.ModuleName,
|
||||
consensustypes.ModuleName,
|
||||
circuittypes.ModuleName,
|
||||
buildertypes.ModuleName,
|
||||
auctiontypes.ModuleName,
|
||||
feegrant.ModuleName,
|
||||
},
|
||||
// When ExportGenesis is not specified, the export genesis module order
|
||||
@ -244,8 +244,8 @@ var (
|
||||
Config: appconfig.WrapAny(&circuitmodulev1.Module{}),
|
||||
},
|
||||
{
|
||||
Name: buildertypes.ModuleName,
|
||||
Config: appconfig.WrapAny(&buildermodulev1.Module{}),
|
||||
Name: auctiontypes.ModuleName,
|
||||
Config: appconfig.WrapAny(&auctionmodulev1.Module{}),
|
||||
},
|
||||
},
|
||||
}),
|
||||
|
||||
@ -26,7 +26,7 @@ import (
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/credentials/insecure"
|
||||
|
||||
buildertypes "github.com/skip-mev/block-sdk/x/builder/types"
|
||||
auctiontypes "github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
// ChainBuilderFromChainSpec creates an interchaintest chain builder factory given a ChainSpec
|
||||
@ -149,7 +149,7 @@ type Tx struct {
|
||||
}
|
||||
|
||||
// CreateAuctionBidMsg creates a new AuctionBid tx signed by the given user, the order of txs in the MsgAuctionBid will be determined by the contents + order of the MessageForUsers
|
||||
func CreateAuctionBidMsg(t *testing.T, ctx context.Context, searcher cosmos.User, chain *cosmos.CosmosChain, bid sdk.Coin, txsPerUser []Tx) (*buildertypes.MsgAuctionBid, [][]byte) {
|
||||
func CreateAuctionBidMsg(t *testing.T, ctx context.Context, searcher cosmos.User, chain *cosmos.CosmosChain, bid sdk.Coin, txsPerUser []Tx) (*auctiontypes.MsgAuctionBid, [][]byte) {
|
||||
// for each MessagesForUser get the signed bytes
|
||||
txs := make([][]byte, len(txsPerUser))
|
||||
for i, tx := range txsPerUser {
|
||||
@ -161,7 +161,7 @@ func CreateAuctionBidMsg(t *testing.T, ctx context.Context, searcher cosmos.User
|
||||
require.NoError(t, err)
|
||||
|
||||
// create a message auction bid
|
||||
return buildertypes.NewMsgAuctionBid(
|
||||
return auctiontypes.NewMsgAuctionBid(
|
||||
accAddr,
|
||||
bid,
|
||||
txs,
|
||||
@ -221,8 +221,8 @@ func BroadcastTxs(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain,
|
||||
return txs
|
||||
}
|
||||
|
||||
// QueryBuilderParams queries the x/builder module's params
|
||||
func QueryBuilderParams(t *testing.T, chain ibc.Chain) buildertypes.Params {
|
||||
// QueryAuctionParams queries the x/auction module's params
|
||||
func QueryAuctionParams(t *testing.T, chain ibc.Chain) auctiontypes.Params {
|
||||
// cast chain to cosmos-chain
|
||||
cosmosChain, ok := chain.(*cosmos.CosmosChain)
|
||||
require.True(t, ok)
|
||||
@ -230,11 +230,11 @@ func QueryBuilderParams(t *testing.T, chain ibc.Chain) buildertypes.Params {
|
||||
nodes := cosmosChain.Nodes()
|
||||
require.True(t, len(nodes) > 0)
|
||||
// make params query to first node
|
||||
resp, _, err := nodes[0].ExecQuery(context.Background(), "builder", "params")
|
||||
resp, _, err := nodes[0].ExecQuery(context.Background(), "auction", "params")
|
||||
require.NoError(t, err)
|
||||
|
||||
// unmarshal params
|
||||
var params buildertypes.Params
|
||||
var params auctiontypes.Params
|
||||
err = json.Unmarshal(resp, ¶ms)
|
||||
require.NoError(t, err)
|
||||
return params
|
||||
|
||||
@ -11,7 +11,7 @@ import (
|
||||
"github.com/stretchr/testify/suite"
|
||||
|
||||
"github.com/skip-mev/block-sdk/tests/integration"
|
||||
buildertypes "github.com/skip-mev/block-sdk/x/builder/types"
|
||||
auctiontypes "github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -31,7 +31,7 @@ var (
|
||||
|
||||
genesisKV = []cosmos.GenesisKV{
|
||||
{
|
||||
Key: "app_state.builder.params.max_bundle_size",
|
||||
Key: "app_state.auction.params.max_bundle_size",
|
||||
Value: 3,
|
||||
},
|
||||
}
|
||||
@ -70,8 +70,8 @@ var (
|
||||
func MakeEncodingConfig() *testutil.TestEncodingConfig {
|
||||
cfg := cosmos.DefaultEncoding()
|
||||
|
||||
// register builder types
|
||||
buildertypes.RegisterInterfaces(cfg.InterfaceRegistry)
|
||||
// register auction types
|
||||
auctiontypes.RegisterInterfaces(cfg.InterfaceRegistry)
|
||||
|
||||
return &cfg
|
||||
}
|
||||
|
||||
@ -76,7 +76,7 @@ func (s *IntegrationTestSuite) SetupSubTest() {
|
||||
|
||||
func (s *IntegrationTestSuite) TestQueryParams() {
|
||||
// query params
|
||||
params := QueryBuilderParams(s.T(), s.chain)
|
||||
params := QueryAuctionParams(s.T(), s.chain)
|
||||
|
||||
// expect validate to pass
|
||||
require.NoError(s.T(), params.Validate())
|
||||
@ -90,7 +90,7 @@ func (s *IntegrationTestSuite) TestQueryParams() {
|
||||
// 3. The balance of the escrow account should be updated correctly.
|
||||
// 4. Top of block bids will be included in block proposals before other transactions
|
||||
func (s *IntegrationTestSuite) TestValidBids() {
|
||||
params := QueryBuilderParams(s.T(), s.chain)
|
||||
params := QueryAuctionParams(s.T(), s.chain)
|
||||
escrowAddr := sdk.AccAddress(params.EscrowAccountAddress).String()
|
||||
|
||||
s.Run("Valid Auction Bid", func() {
|
||||
@ -322,7 +322,7 @@ func (s *IntegrationTestSuite) TestValidBids() {
|
||||
// 5. If there is a block that has multiple valid bids with timeouts that are sufficiently far apart,
|
||||
// the bids should be executed respecting the highest bids until the timeout is reached.
|
||||
func (s *IntegrationTestSuite) TestMultipleBids() {
|
||||
params := QueryBuilderParams(s.T(), s.chain)
|
||||
params := QueryAuctionParams(s.T(), s.chain)
|
||||
escrowAddr := sdk.AccAddress(params.EscrowAccountAddress).String()
|
||||
|
||||
s.Run("broadcasting bids to two different validators (both should execute over several blocks) with same bid", func() {
|
||||
@ -664,7 +664,7 @@ func (s *IntegrationTestSuite) TestMultipleBids() {
|
||||
}
|
||||
|
||||
func (s *IntegrationTestSuite) TestInvalidBids() {
|
||||
params := QueryBuilderParams(s.T(), s.chain)
|
||||
params := QueryAuctionParams(s.T(), s.chain)
|
||||
escrowAddr := sdk.AccAddress(params.EscrowAccountAddress).String()
|
||||
|
||||
s.Run("searcher is attempting to submit a bundle that includes another bid tx", func() {
|
||||
@ -1001,7 +1001,7 @@ func (s *IntegrationTestSuite) TestLanes() {
|
||||
|
||||
delegation := sdk.NewCoin(s.denom, sdk.NewInt(100))
|
||||
|
||||
params := QueryBuilderParams(s.T(), s.chain)
|
||||
params := QueryAuctionParams(s.T(), s.chain)
|
||||
|
||||
s.Run("block with mev, free, and normal tx", func() {
|
||||
user2BalanceBefore := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user2.FormattedAddress(), s.denom)
|
||||
|
||||
@ -20,7 +20,7 @@ import (
|
||||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
||||
"github.com/cosmos/gogoproto/proto"
|
||||
|
||||
buildertypes "github.com/skip-mev/block-sdk/x/builder/types"
|
||||
auctiontypes "github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
type EncodingConfig struct {
|
||||
@ -44,7 +44,7 @@ func CreateTestEncodingConfig() EncodingConfig {
|
||||
|
||||
banktypes.RegisterInterfaces(interfaceRegistry)
|
||||
cryptocodec.RegisterInterfaces(interfaceRegistry)
|
||||
buildertypes.RegisterInterfaces(interfaceRegistry)
|
||||
auctiontypes.RegisterInterfaces(interfaceRegistry)
|
||||
stakingtypes.RegisterInterfaces(interfaceRegistry)
|
||||
|
||||
protoCodec := codec.NewProtoCodec(interfaceRegistry)
|
||||
@ -195,7 +195,7 @@ func CreateTxWithSigners(txCfg client.TxConfig, nonce, timeout uint64, signers [
|
||||
}
|
||||
|
||||
func CreateAuctionTx(txCfg client.TxConfig, bidder Account, bid sdk.Coin, nonce, timeout uint64, signers []Account) (authsigning.Tx, []authsigning.Tx, error) {
|
||||
bidMsg := &buildertypes.MsgAuctionBid{
|
||||
bidMsg := &auctiontypes.MsgAuctionBid{
|
||||
Bidder: bidder.Address.String(),
|
||||
Bid: bid,
|
||||
Transactions: make([][]byte, len(signers)),
|
||||
@ -242,7 +242,7 @@ func CreateAuctionTx(txCfg client.TxConfig, bidder Account, bid sdk.Coin, nonce,
|
||||
}
|
||||
|
||||
func CreateAuctionTxWithSigners(txCfg client.TxConfig, bidder Account, bid sdk.Coin, nonce, timeout uint64, signers []Account) (authsigning.Tx, error) {
|
||||
bidMsg := &buildertypes.MsgAuctionBid{
|
||||
bidMsg := &auctiontypes.MsgAuctionBid{
|
||||
Bidder: bidder.Address.String(),
|
||||
Bid: bid,
|
||||
Transactions: make([][]byte, len(signers)),
|
||||
@ -311,8 +311,8 @@ func CreateRandomMsgs(acc sdk.AccAddress, numberMsgs int) []sdk.Msg {
|
||||
return msgs
|
||||
}
|
||||
|
||||
func CreateMsgAuctionBid(txCfg client.TxConfig, bidder Account, bid sdk.Coin, nonce uint64, numberMsgs int) (*buildertypes.MsgAuctionBid, error) {
|
||||
bidMsg := &buildertypes.MsgAuctionBid{
|
||||
func CreateMsgAuctionBid(txCfg client.TxConfig, bidder Account, bid sdk.Coin, nonce uint64, numberMsgs int) (*auctiontypes.MsgAuctionBid, error) {
|
||||
bidMsg := &auctiontypes.MsgAuctionBid{
|
||||
Bidder: bidder.Address.String(),
|
||||
Bid: bid,
|
||||
Transactions: make([][]byte, numberMsgs),
|
||||
|
||||
@ -8,11 +8,11 @@ import (
|
||||
"cosmossdk.io/errors"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/keeper"
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/keeper"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
var _ sdk.AnteDecorator = BuilderDecorator{}
|
||||
var _ sdk.AnteDecorator = AuctionDecorator{}
|
||||
|
||||
type (
|
||||
// MEVLane is an interface that defines the methods required to interact with the MEV
|
||||
@ -27,18 +27,18 @@ type (
|
||||
Contains(tx sdk.Tx) bool
|
||||
}
|
||||
|
||||
// BuilderDecorator is an AnteDecorator that validates the auction bid and bundled transactions.
|
||||
BuilderDecorator struct {
|
||||
builderKeeper keeper.Keeper
|
||||
// AuctionDecorator is an AnteDecorator that validates the auction bid and bundled transactions.
|
||||
AuctionDecorator struct {
|
||||
auctionkeeper keeper.Keeper
|
||||
txEncoder sdk.TxEncoder
|
||||
lane MEVLane
|
||||
mempool Mempool
|
||||
}
|
||||
)
|
||||
|
||||
func NewBuilderDecorator(ak keeper.Keeper, txEncoder sdk.TxEncoder, lane MEVLane, mempool Mempool) BuilderDecorator {
|
||||
return BuilderDecorator{
|
||||
builderKeeper: ak,
|
||||
func NewAuctionDecorator(ak keeper.Keeper, txEncoder sdk.TxEncoder, lane MEVLane, mempool Mempool) AuctionDecorator {
|
||||
return AuctionDecorator{
|
||||
auctionkeeper: ak,
|
||||
txEncoder: txEncoder,
|
||||
lane: lane,
|
||||
mempool: mempool,
|
||||
@ -47,15 +47,15 @@ func NewBuilderDecorator(ak keeper.Keeper, txEncoder sdk.TxEncoder, lane MEVLane
|
||||
|
||||
// AnteHandle validates that the auction bid is valid if one exists. If valid it will deduct the entrance fee from the
|
||||
// bidder's account.
|
||||
func (bd BuilderDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) {
|
||||
func (ad AuctionDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) {
|
||||
// If comet is re-checking a transaction, we only need to check if the transaction is in the application-side mempool.
|
||||
if ctx.IsReCheckTx() {
|
||||
if !bd.mempool.Contains(tx) {
|
||||
if !ad.mempool.Contains(tx) {
|
||||
return ctx, fmt.Errorf("transaction not found in application-side mempool")
|
||||
}
|
||||
}
|
||||
|
||||
bidInfo, err := bd.lane.GetAuctionBidInfo(tx)
|
||||
bidInfo, err := ad.lane.GetAuctionBidInfo(tx)
|
||||
if err != nil {
|
||||
return ctx, err
|
||||
}
|
||||
@ -63,7 +63,7 @@ func (bd BuilderDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool,
|
||||
// Validate the auction bid if one exists.
|
||||
if bidInfo != nil {
|
||||
// Auction transactions must have a timeout set to a valid block height.
|
||||
if err := bd.ValidateTimeout(ctx, int64(bidInfo.Timeout)); err != nil {
|
||||
if err := ad.ValidateTimeout(ctx, int64(bidInfo.Timeout)); err != nil {
|
||||
return ctx, err
|
||||
}
|
||||
|
||||
@ -73,20 +73,20 @@ func (bd BuilderDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool,
|
||||
// poor liveness guarantees.
|
||||
topBid := sdk.Coin{}
|
||||
if ctx.IsCheckTx() || ctx.IsReCheckTx() {
|
||||
if topBidTx := bd.lane.GetTopAuctionTx(ctx); topBidTx != nil {
|
||||
topBidBz, err := bd.txEncoder(topBidTx)
|
||||
if topBidTx := ad.lane.GetTopAuctionTx(ctx); topBidTx != nil {
|
||||
topBidBz, err := ad.txEncoder(topBidTx)
|
||||
if err != nil {
|
||||
return ctx, err
|
||||
}
|
||||
|
||||
currentTxBz, err := bd.txEncoder(tx)
|
||||
currentTxBz, err := ad.txEncoder(tx)
|
||||
if err != nil {
|
||||
return ctx, err
|
||||
}
|
||||
|
||||
// Compare the bytes to see if the current transaction is the highest bidding transaction.
|
||||
if !bytes.Equal(topBidBz, currentTxBz) {
|
||||
topBidInfo, err := bd.lane.GetAuctionBidInfo(topBidTx)
|
||||
topBidInfo, err := ad.lane.GetAuctionBidInfo(topBidTx)
|
||||
if err != nil {
|
||||
return ctx, err
|
||||
}
|
||||
@ -96,7 +96,7 @@ func (bd BuilderDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool,
|
||||
}
|
||||
}
|
||||
|
||||
if err := bd.builderKeeper.ValidateBidInfo(ctx, topBid, bidInfo); err != nil {
|
||||
if err := ad.auctionkeeper.ValidateBidInfo(ctx, topBid, bidInfo); err != nil {
|
||||
return ctx, errors.Wrap(err, "failed to validate auction bid")
|
||||
}
|
||||
}
|
||||
@ -106,7 +106,7 @@ func (bd BuilderDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool,
|
||||
|
||||
// ValidateTimeout validates that the timeout is greater than or equal to the expected block height
|
||||
// the bid transaction will be executed in.
|
||||
func (bd BuilderDecorator) ValidateTimeout(ctx sdk.Context, timeout int64) error {
|
||||
func (ad AuctionDecorator) ValidateTimeout(ctx sdk.Context, timeout int64) error {
|
||||
currentBlockHeight := ctx.BlockHeight()
|
||||
|
||||
// If the mode is CheckTx or ReCheckTx, we increment the current block height by one to
|
||||
@ -18,9 +18,9 @@ import (
|
||||
defaultlane "github.com/skip-mev/block-sdk/lanes/base"
|
||||
"github.com/skip-mev/block-sdk/lanes/mev"
|
||||
testutils "github.com/skip-mev/block-sdk/testutils"
|
||||
"github.com/skip-mev/block-sdk/x/builder/ante"
|
||||
"github.com/skip-mev/block-sdk/x/builder/keeper"
|
||||
buildertypes "github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/ante"
|
||||
"github.com/skip-mev/block-sdk/x/auction/keeper"
|
||||
auctiontypes "github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
type AnteTestSuite struct {
|
||||
@ -30,13 +30,13 @@ type AnteTestSuite struct {
|
||||
encodingConfig testutils.EncodingConfig
|
||||
random *rand.Rand
|
||||
|
||||
// builder setup
|
||||
builderKeeper keeper.Keeper
|
||||
// auction setup
|
||||
auctionkeeper keeper.Keeper
|
||||
bankKeeper *testutils.MockBankKeeper
|
||||
accountKeeper *testutils.MockAccountKeeper
|
||||
distrKeeper *testutils.MockDistributionKeeper
|
||||
stakingKeeper *testutils.MockStakingKeeper
|
||||
builderDecorator ante.BuilderDecorator
|
||||
auctionDecorator ante.AuctionDecorator
|
||||
key *storetypes.KVStoreKey
|
||||
authorityAccount sdk.AccAddress
|
||||
|
||||
@ -58,19 +58,19 @@ func (suite *AnteTestSuite) SetupTest() {
|
||||
// General config
|
||||
suite.encodingConfig = testutils.CreateTestEncodingConfig()
|
||||
suite.random = rand.New(rand.NewSource(time.Now().Unix()))
|
||||
suite.key = storetypes.NewKVStoreKey(buildertypes.StoreKey)
|
||||
suite.key = storetypes.NewKVStoreKey(auctiontypes.StoreKey)
|
||||
testCtx := testutil.DefaultContextWithDB(suite.T(), suite.key, storetypes.NewTransientStoreKey("transient_test"))
|
||||
suite.ctx = testCtx.Ctx.WithIsCheckTx(true)
|
||||
|
||||
// Keepers set up
|
||||
ctrl := gomock.NewController(suite.T())
|
||||
suite.accountKeeper = testutils.NewMockAccountKeeper(ctrl)
|
||||
suite.accountKeeper.EXPECT().GetModuleAddress(buildertypes.ModuleName).Return(sdk.AccAddress{}).AnyTimes()
|
||||
suite.accountKeeper.EXPECT().GetModuleAddress(auctiontypes.ModuleName).Return(sdk.AccAddress{}).AnyTimes()
|
||||
suite.bankKeeper = testutils.NewMockBankKeeper(ctrl)
|
||||
suite.distrKeeper = testutils.NewMockDistributionKeeper(ctrl)
|
||||
suite.stakingKeeper = testutils.NewMockStakingKeeper(ctrl)
|
||||
suite.authorityAccount = sdk.AccAddress([]byte("authority"))
|
||||
suite.builderKeeper = keeper.NewKeeper(
|
||||
suite.auctionkeeper = keeper.NewKeeper(
|
||||
suite.encodingConfig.Codec,
|
||||
suite.key,
|
||||
suite.accountKeeper,
|
||||
@ -79,7 +79,7 @@ func (suite *AnteTestSuite) SetupTest() {
|
||||
suite.stakingKeeper,
|
||||
suite.authorityAccount.String(),
|
||||
)
|
||||
err := suite.builderKeeper.SetParams(suite.ctx, buildertypes.DefaultParams())
|
||||
err := suite.auctionkeeper.SetParams(suite.ctx, auctiontypes.DefaultParams())
|
||||
suite.Require().NoError(err)
|
||||
|
||||
// Lanes configuration
|
||||
@ -120,7 +120,7 @@ func (suite *AnteTestSuite) anteHandler(ctx sdk.Context, tx sdk.Tx, _ bool) (sdk
|
||||
return ctx, nil
|
||||
}
|
||||
|
||||
return suite.builderDecorator.AnteHandle(ctx, tx, false, next)
|
||||
return suite.auctionDecorator.AnteHandle(ctx, tx, false, next)
|
||||
}
|
||||
|
||||
func (suite *AnteTestSuite) TestAnteHandler() {
|
||||
@ -266,7 +266,7 @@ func (suite *AnteTestSuite) TestAnteHandler() {
|
||||
suite.ctx = suite.ctx.WithBlockHeight(1)
|
||||
|
||||
// Set the mev params
|
||||
err := suite.builderKeeper.SetParams(suite.ctx, buildertypes.Params{
|
||||
err := suite.auctionkeeper.SetParams(suite.ctx, auctiontypes.Params{
|
||||
MaxBundleSize: maxBundleSize,
|
||||
ReserveFee: reserveFee,
|
||||
MinBidIncrement: minBidIncrement,
|
||||
@ -296,7 +296,7 @@ func (suite *AnteTestSuite) TestAnteHandler() {
|
||||
|
||||
// Execute the ante handler
|
||||
suite.balance = balance
|
||||
suite.builderDecorator = ante.NewBuilderDecorator(suite.builderKeeper, suite.encodingConfig.TxConfig.TxEncoder(), suite.mevLane, suite.mempool)
|
||||
suite.auctionDecorator = ante.NewAuctionDecorator(suite.auctionkeeper, suite.encodingConfig.TxConfig.TxEncoder(), suite.mevLane, suite.mempool)
|
||||
_, err = suite.anteHandler(suite.ctx, mevTx, false)
|
||||
if tc.pass {
|
||||
suite.Require().NoError(err)
|
||||
@ -8,10 +8,10 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
// GetQueryCmd returns the cli query commands for the builder module.
|
||||
// GetQueryCmd returns the cli query commands for the auction module.
|
||||
func GetQueryCmd() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: types.ModuleName,
|
||||
@ -28,11 +28,11 @@ func GetQueryCmd() *cobra.Command {
|
||||
return cmd
|
||||
}
|
||||
|
||||
// CmdQueryParams implements a command that will return the current parameters of the builder module.
|
||||
// CmdQueryParams implements a command that will return the current parameters of the auction module.
|
||||
func CmdQueryParams() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "params",
|
||||
Short: "Query the current parameters of the builder module",
|
||||
Short: "Query the current parameters of the auction module",
|
||||
Args: cobra.NoArgs,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
clientCtx, err := client.GetClientQueryContext(cmd)
|
||||
@ -12,15 +12,15 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
// NewTxCmd returns a root CLI command handler for all x/builder transaction
|
||||
// NewTxCmd returns a root CLI command handler for all x/auction transaction
|
||||
// commands.
|
||||
func NewTxCmd() *cobra.Command {
|
||||
txCmd := &cobra.Command{
|
||||
Use: types.ModuleName,
|
||||
Short: "Builder transaction subcommands",
|
||||
Short: "auction transaction subcommands",
|
||||
DisableFlagParsing: true,
|
||||
SuggestionsMinimumDistance: 2,
|
||||
RunE: client.ValidateCmd,
|
||||
@ -5,7 +5,7 @@ import (
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
// ValidateBidInfo validates that the bid can be included in the auction.
|
||||
@ -8,8 +8,8 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
testutils "github.com/skip-mev/block-sdk/testutils"
|
||||
"github.com/skip-mev/block-sdk/x/builder/keeper"
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/keeper"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
func (suite *KeeperTestSuite) TestValidateBidInfo() {
|
||||
@ -159,11 +159,11 @@ func (suite *KeeperTestSuite) TestValidateBidInfo() {
|
||||
|
||||
tc.malleate()
|
||||
|
||||
// Set up the new builder keeper with mocks customized for this test case
|
||||
// Set up the new auction keeper with mocks customized for this test case
|
||||
suite.bankKeeper.EXPECT().GetBalance(suite.ctx, bidder.Address, minBidIncrement.Denom).Return(balance).AnyTimes()
|
||||
suite.bankKeeper.EXPECT().SendCoins(suite.ctx, bidder.Address, escrowAddress, reserveFee).Return(nil).AnyTimes()
|
||||
|
||||
suite.builderKeeper = keeper.NewKeeper(
|
||||
suite.auctionkeeper = keeper.NewKeeper(
|
||||
suite.encCfg.Codec,
|
||||
suite.key,
|
||||
suite.accountKeeper,
|
||||
@ -179,7 +179,7 @@ func (suite *KeeperTestSuite) TestValidateBidInfo() {
|
||||
FrontRunningProtection: frontRunningProtection,
|
||||
MinBidIncrement: minBidIncrement,
|
||||
}
|
||||
suite.builderKeeper.SetParams(suite.ctx, params)
|
||||
suite.auctionkeeper.SetParams(suite.ctx, params)
|
||||
|
||||
// Create the bundle of transactions ordered by accounts
|
||||
bundle := make([][]byte, 0)
|
||||
@ -208,7 +208,7 @@ func (suite *KeeperTestSuite) TestValidateBidInfo() {
|
||||
Signers: signers,
|
||||
}
|
||||
|
||||
err := suite.builderKeeper.ValidateBidInfo(suite.ctx, highestBid, bidInfo)
|
||||
err := suite.auctionkeeper.ValidateBidInfo(suite.ctx, highestBid, bidInfo)
|
||||
if tc.pass {
|
||||
suite.Require().NoError(err)
|
||||
} else {
|
||||
@ -317,7 +317,7 @@ func (suite *KeeperTestSuite) TestValidateBundle() {
|
||||
}
|
||||
|
||||
// Validate the bundle
|
||||
err := suite.builderKeeper.ValidateAuctionBundle(bidder.Address, signers)
|
||||
err := suite.auctionkeeper.ValidateAuctionBundle(bidder.Address, signers)
|
||||
if tc.pass {
|
||||
suite.Require().NoError(err)
|
||||
} else {
|
||||
@ -3,12 +3,12 @@ package keeper
|
||||
import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
// InitGenesis initializes the builder module's state from a given genesis state.
|
||||
// InitGenesis initializes the auction module's state from a given genesis state.
|
||||
func (k Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState) {
|
||||
// Set the builder module's parameters.
|
||||
// Set the auction module's parameters.
|
||||
if err := k.SetParams(ctx, gs.Params); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@ -16,7 +16,7 @@ func (k Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState) {
|
||||
|
||||
// ExportGenesis returns a GenesisState for a given context.
|
||||
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState {
|
||||
// Get the builder module's parameters.
|
||||
// Get the auction module's parameters.
|
||||
params, err := k.GetParams(ctx)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
@ -5,22 +5,22 @@ import (
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
var _ types.QueryServer = QueryServer{}
|
||||
|
||||
// QueryServer defines the builder module's gRPC querier service.
|
||||
// QueryServer defines the auction module's gRPC querier service.
|
||||
type QueryServer struct {
|
||||
keeper Keeper
|
||||
}
|
||||
|
||||
// NewQueryServer creates a new gRPC query server for the builder module.
|
||||
// NewQueryServer creates a new gRPC query server for the auction module.
|
||||
func NewQueryServer(keeper Keeper) *QueryServer {
|
||||
return &QueryServer{keeper: keeper}
|
||||
}
|
||||
|
||||
// Params queries all parameters of the builder module.
|
||||
// Params queries all parameters of the auction module.
|
||||
func (q QueryServer) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {
|
||||
ctx := sdk.UnwrapSDKContext(c)
|
||||
|
||||
@ -10,8 +10,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/rewards"
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/rewards"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
type Keeper struct {
|
||||
@ -65,9 +65,9 @@ func NewKeeperWithRewardsAddressProvider(
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// Ensure that the builder module account exists.
|
||||
// Ensure that the auction module account exists.
|
||||
if accountKeeper.GetModuleAddress(types.ModuleName) == nil {
|
||||
panic("builder module account has not been set")
|
||||
panic("auction module account has not been set")
|
||||
}
|
||||
|
||||
return Keeper{
|
||||
@ -79,7 +79,7 @@ func NewKeeperWithRewardsAddressProvider(
|
||||
}
|
||||
}
|
||||
|
||||
// Logger returns a builder module-specific logger.
|
||||
// Logger returns a auction module-specific logger.
|
||||
func (k Keeper) Logger(ctx sdk.Context) log.Logger {
|
||||
return ctx.Logger().With("module", "x/"+types.ModuleName)
|
||||
}
|
||||
@ -89,7 +89,7 @@ func (k Keeper) GetAuthority() string {
|
||||
return k.authority
|
||||
}
|
||||
|
||||
// GetParams returns the builder module's parameters.
|
||||
// GetParams returns the auction module's parameters.
|
||||
func (k Keeper) GetParams(ctx sdk.Context) (types.Params, error) {
|
||||
store := ctx.KVStore(k.storeKey)
|
||||
|
||||
@ -97,7 +97,7 @@ func (k Keeper) GetParams(ctx sdk.Context) (types.Params, error) {
|
||||
bz := store.Get(key)
|
||||
|
||||
if len(bz) == 0 {
|
||||
return types.Params{}, fmt.Errorf("no params found for the builder module")
|
||||
return types.Params{}, fmt.Errorf("no params found for the auction module")
|
||||
}
|
||||
|
||||
params := types.Params{}
|
||||
@ -108,7 +108,7 @@ func (k Keeper) GetParams(ctx sdk.Context) (types.Params, error) {
|
||||
return params, nil
|
||||
}
|
||||
|
||||
// SetParams sets the builder module's parameters.
|
||||
// SetParams sets the auction module's parameters.
|
||||
func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error {
|
||||
store := ctx.KVStore(k.storeKey)
|
||||
|
||||
@ -132,7 +132,7 @@ func (k Keeper) GetMaxBundleSize(ctx sdk.Context) (uint32, error) {
|
||||
return params.MaxBundleSize, nil
|
||||
}
|
||||
|
||||
// GetEscrowAccount returns the builder module's escrow account.
|
||||
// GetEscrowAccount returns the auction module's escrow account.
|
||||
func (k Keeper) GetEscrowAccount(ctx sdk.Context) (sdk.AccAddress, error) {
|
||||
params, err := k.GetParams(ctx)
|
||||
if err != nil {
|
||||
@ -142,7 +142,7 @@ func (k Keeper) GetEscrowAccount(ctx sdk.Context) (sdk.AccAddress, error) {
|
||||
return params.EscrowAccountAddress, nil
|
||||
}
|
||||
|
||||
// GetReserveFee returns the reserve fee of the builder module.
|
||||
// GetReserveFee returns the reserve fee of the auction module.
|
||||
func (k Keeper) GetReserveFee(ctx sdk.Context) (sdk.Coin, error) {
|
||||
params, err := k.GetParams(ctx)
|
||||
if err != nil {
|
||||
@ -152,7 +152,7 @@ func (k Keeper) GetReserveFee(ctx sdk.Context) (sdk.Coin, error) {
|
||||
return params.ReserveFee, nil
|
||||
}
|
||||
|
||||
// GetMinBidIncrement returns the minimum bid increment for the builder.
|
||||
// GetMinBidIncrement returns the minimum bid increment for the auction.
|
||||
func (k Keeper) GetMinBidIncrement(ctx sdk.Context) (sdk.Coin, error) {
|
||||
params, err := k.GetParams(ctx)
|
||||
if err != nil {
|
||||
@ -162,7 +162,7 @@ func (k Keeper) GetMinBidIncrement(ctx sdk.Context) (sdk.Coin, error) {
|
||||
return params.MinBidIncrement, nil
|
||||
}
|
||||
|
||||
// GetProposerFee returns the proposer fee for the builder module.
|
||||
// GetProposerFee returns the proposer fee for the auction module.
|
||||
func (k Keeper) GetProposerFee(ctx sdk.Context) (math.LegacyDec, error) {
|
||||
params, err := k.GetParams(ctx)
|
||||
if err != nil {
|
||||
@ -9,8 +9,8 @@ import (
|
||||
"github.com/golang/mock/gomock"
|
||||
|
||||
testutils "github.com/skip-mev/block-sdk/testutils"
|
||||
"github.com/skip-mev/block-sdk/x/builder/keeper"
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/keeper"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
|
||||
"github.com/stretchr/testify/suite"
|
||||
)
|
||||
@ -18,7 +18,7 @@ import (
|
||||
type KeeperTestSuite struct {
|
||||
suite.Suite
|
||||
|
||||
builderKeeper keeper.Keeper
|
||||
auctionkeeper keeper.Keeper
|
||||
bankKeeper *testutils.MockBankKeeper
|
||||
accountKeeper *testutils.MockAccountKeeper
|
||||
distrKeeper *testutils.MockDistributionKeeper
|
||||
@ -49,7 +49,7 @@ func (suite *KeeperTestSuite) SetupTest() {
|
||||
suite.distrKeeper = testutils.NewMockDistributionKeeper(ctrl)
|
||||
suite.stakingKeeper = testutils.NewMockStakingKeeper(ctrl)
|
||||
suite.authorityAccount = sdk.AccAddress([]byte("authority"))
|
||||
suite.builderKeeper = keeper.NewKeeper(
|
||||
suite.auctionkeeper = keeper.NewKeeper(
|
||||
suite.encCfg.Codec,
|
||||
suite.key,
|
||||
suite.accountKeeper,
|
||||
@ -59,8 +59,8 @@ func (suite *KeeperTestSuite) SetupTest() {
|
||||
suite.authorityAccount.String(),
|
||||
)
|
||||
|
||||
err := suite.builderKeeper.SetParams(suite.ctx, types.DefaultParams())
|
||||
err := suite.auctionkeeper.SetParams(suite.ctx, types.DefaultParams())
|
||||
suite.Require().NoError(err)
|
||||
|
||||
suite.msgServer = keeper.NewMsgServerImpl(suite.builderKeeper)
|
||||
suite.msgServer = keeper.NewMsgServerImpl(suite.auctionkeeper)
|
||||
}
|
||||
@ -9,17 +9,17 @@ import (
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
var _ types.MsgServer = MsgServer{}
|
||||
|
||||
// MsgServer is the wrapper for the builder module's msg service.
|
||||
// MsgServer is the wrapper for the auction module's msg service.
|
||||
type MsgServer struct {
|
||||
Keeper
|
||||
}
|
||||
|
||||
// NewMsgServerImpl returns an implementation of the builder MsgServer interface.
|
||||
// NewMsgServerImpl returns an implementation of the auction MsgServer interface.
|
||||
func NewMsgServerImpl(keeper Keeper) *MsgServer {
|
||||
return &MsgServer{Keeper: keeper}
|
||||
}
|
||||
@ -9,7 +9,7 @@ import (
|
||||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
||||
|
||||
testutils "github.com/skip-mev/block-sdk/testutils"
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
func (suite *KeeperTestSuite) TestMsgAuctionBid() {
|
||||
@ -48,7 +48,7 @@ func (suite *KeeperTestSuite) TestMsgAuctionBid() {
|
||||
malleate: func() {
|
||||
params := types.DefaultParams()
|
||||
params.MaxBundleSize = 2
|
||||
suite.builderKeeper.SetParams(suite.ctx, params)
|
||||
suite.auctionkeeper.SetParams(suite.ctx, params)
|
||||
},
|
||||
expectErr: true,
|
||||
},
|
||||
@ -63,7 +63,7 @@ func (suite *KeeperTestSuite) TestMsgAuctionBid() {
|
||||
params := types.DefaultParams()
|
||||
params.ProposerFee = math.LegacyZeroDec()
|
||||
params.EscrowAccountAddress = escrow.Address
|
||||
suite.builderKeeper.SetParams(suite.ctx, params)
|
||||
suite.auctionkeeper.SetParams(suite.ctx, params)
|
||||
|
||||
suite.bankKeeper.EXPECT().
|
||||
SendCoins(
|
||||
@ -88,7 +88,7 @@ func (suite *KeeperTestSuite) TestMsgAuctionBid() {
|
||||
params := types.DefaultParams()
|
||||
params.ProposerFee = math.LegacyMustNewDecFromStr("0.30")
|
||||
params.EscrowAccountAddress = escrow.Address
|
||||
suite.builderKeeper.SetParams(suite.ctx, params)
|
||||
suite.auctionkeeper.SetParams(suite.ctx, params)
|
||||
|
||||
suite.distrKeeper.EXPECT().
|
||||
GetPreviousProposerConsAddr(suite.ctx).
|
||||
@ -1,4 +1,4 @@
|
||||
package builder
|
||||
package auction
|
||||
|
||||
import (
|
||||
"context"
|
||||
@ -20,10 +20,10 @@ import (
|
||||
"github.com/grpc-ecosystem/grpc-gateway/runtime"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
modulev1 "github.com/skip-mev/block-sdk/api/sdk/builder/module/v1"
|
||||
"github.com/skip-mev/block-sdk/x/builder/client/cli"
|
||||
"github.com/skip-mev/block-sdk/x/builder/keeper"
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
modulev1 "github.com/skip-mev/block-sdk/api/sdk/auction/module/v1"
|
||||
"github.com/skip-mev/block-sdk/x/auction/client/cli"
|
||||
"github.com/skip-mev/block-sdk/x/auction/keeper"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -31,35 +31,35 @@ var (
|
||||
_ module.AppModuleBasic = AppModuleBasic{}
|
||||
)
|
||||
|
||||
// ConsensusVersion defines the current x/builder module consensus version.
|
||||
// ConsensusVersion defines the current x/auction module consensus version.
|
||||
const ConsensusVersion = 1
|
||||
|
||||
// AppModuleBasic defines the basic application module used by the builder module.
|
||||
// AppModuleBasic defines the basic application module used by the auction module.
|
||||
type AppModuleBasic struct {
|
||||
cdc codec.Codec
|
||||
}
|
||||
|
||||
// Name returns the builder module's name.
|
||||
// Name returns the auction module's name.
|
||||
func (AppModuleBasic) Name() string {
|
||||
return types.ModuleName
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the builder module's types on the given LegacyAmino codec.
|
||||
// RegisterLegacyAminoCodec registers the auction module's types on the given LegacyAmino codec.
|
||||
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
||||
types.RegisterLegacyAminoCodec(cdc)
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the builder module's interface types.
|
||||
// RegisterInterfaces registers the auction module's interface types.
|
||||
func (AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
|
||||
types.RegisterInterfaces(registry)
|
||||
}
|
||||
|
||||
// DefaultGenesis returns default genesis state as raw bytes for the builder module.
|
||||
// DefaultGenesis returns default genesis state as raw bytes for the auction module.
|
||||
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {
|
||||
return cdc.MustMarshalJSON(types.DefaultGenesisState())
|
||||
}
|
||||
|
||||
// ValidateGenesis performs genesis state validation for the builder module.
|
||||
// ValidateGenesis performs genesis state validation for the auction module.
|
||||
func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error {
|
||||
var genState types.GenesisState
|
||||
if err := cdc.UnmarshalJSON(bz, &genState); err != nil {
|
||||
@ -69,19 +69,19 @@ func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingCo
|
||||
return genState.Validate()
|
||||
}
|
||||
|
||||
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the builder module.
|
||||
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the auction module.
|
||||
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {
|
||||
if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
// GetTxCmd returns the root tx command for the builder module.
|
||||
// GetTxCmd returns the root tx command for the auction module.
|
||||
func (AppModuleBasic) GetTxCmd() *cobra.Command {
|
||||
return cli.NewTxCmd()
|
||||
}
|
||||
|
||||
// GetQueryCmd returns the root query command for the builder module.
|
||||
// GetQueryCmd returns the root query command for the auction module.
|
||||
func (AppModuleBasic) GetQueryCmd() *cobra.Command {
|
||||
return cli.GetQueryCmd()
|
||||
}
|
||||
@ -111,7 +111,7 @@ func (am AppModule) IsOnePerModuleType() {}
|
||||
// ConsensusVersion implements AppModule/ConsensusVersion.
|
||||
func (AppModule) ConsensusVersion() uint64 { return ConsensusVersion }
|
||||
|
||||
// RegisterServices registers a the gRPC Query and Msg services for the x/builder
|
||||
// RegisterServices registers a the gRPC Query and Msg services for the x/auction
|
||||
// module.
|
||||
func (am AppModule) RegisterServices(cfc module.Configurator) {
|
||||
types.RegisterMsgServer(cfc.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
|
||||
@ -125,7 +125,7 @@ func (a AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router) {}
|
||||
// logic (most often the chain will be halted).
|
||||
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {}
|
||||
|
||||
// InitGenesis performs the module's genesis initialization for the builder
|
||||
// InitGenesis performs the module's genesis initialization for the auction
|
||||
// module. It returns no validator updates.
|
||||
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) []abci.ValidatorUpdate {
|
||||
var genState types.GenesisState
|
||||
@ -135,7 +135,7 @@ func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.Ra
|
||||
return []abci.ValidatorUpdate{}
|
||||
}
|
||||
|
||||
// ExportGenesis returns the builder module's exported genesis state as raw
|
||||
// ExportGenesis returns the auction module's exported genesis state as raw
|
||||
// JSON bytes.
|
||||
func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage {
|
||||
genState := am.keeper.ExportGenesis(ctx)
|
||||
@ -165,7 +165,7 @@ type Inputs struct {
|
||||
type Outputs struct {
|
||||
depinject.Out
|
||||
|
||||
BuilderKeeper keeper.Keeper
|
||||
auctionkeeper keeper.Keeper
|
||||
Module appmodule.AppModule
|
||||
}
|
||||
|
||||
@ -176,7 +176,7 @@ func ProvideModule(in Inputs) Outputs {
|
||||
authority = authtypes.NewModuleAddressOrBech32Address(in.Config.Authority)
|
||||
}
|
||||
|
||||
builderKeeper := keeper.NewKeeper(
|
||||
auctionkeeper := keeper.NewKeeper(
|
||||
in.Cdc,
|
||||
in.Key,
|
||||
in.AccountKeeper,
|
||||
@ -186,7 +186,7 @@ func ProvideModule(in Inputs) Outputs {
|
||||
authority.String(),
|
||||
)
|
||||
|
||||
m := NewAppModule(in.Cdc, builderKeeper)
|
||||
m := NewAppModule(in.Cdc, auctionkeeper)
|
||||
|
||||
return Outputs{BuilderKeeper: builderKeeper, Module: m}
|
||||
return Outputs{auctionkeeper: auctionkeeper, Module: m}
|
||||
}
|
||||
@ -5,7 +5,7 @@ import (
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
var _ types.RewardsAddressProvider = (*FixedAddressRewardsAddressProvider)(nil)
|
||||
@ -3,7 +3,7 @@ package rewards
|
||||
import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
var _ types.RewardsAddressProvider = (*ProposerRewardsAddressProvider)(nil)
|
||||
@ -20,17 +20,17 @@ func init() {
|
||||
sdk.RegisterLegacyAminoCodec(amino)
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the necessary x/builder interfaces and
|
||||
// RegisterLegacyAminoCodec registers the necessary x/auction interfaces and
|
||||
// concrete types on the provided LegacyAmino codec. These types are used for
|
||||
// Amino JSON serialization.
|
||||
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
||||
legacy.RegisterAminoMsg(cdc, &MsgAuctionBid{}, "block-sdk/x/builder/MsgAuctionBid")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "block-sdk/x/builder/MsgUpdateParams")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgAuctionBid{}, "block-sdk/x/auction/MsgAuctionBid")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "block-sdk/x/auction/MsgUpdateParams")
|
||||
|
||||
cdc.RegisterConcrete(Params{}, "block-sdk/x/builder/Params", nil)
|
||||
cdc.RegisterConcrete(Params{}, "block-sdk/x/auction/Params", nil)
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the x/builder interfaces types with the
|
||||
// RegisterInterfaces registers the x/auction interfaces types with the
|
||||
// interface registry.
|
||||
func RegisterInterfaces(registry types.InterfaceRegistry) {
|
||||
registry.RegisterImplementations(
|
||||
@ -20,12 +20,12 @@ func DefaultGenesisState() *GenesisState {
|
||||
}
|
||||
}
|
||||
|
||||
// Validate performs basic validation of the builder module genesis state.
|
||||
// Validate performs basic validation of the auction module genesis state.
|
||||
func (gs GenesisState) Validate() error {
|
||||
return gs.Params.Validate()
|
||||
}
|
||||
|
||||
// GetGenesisStateFromAppState returns x/builder GenesisState given raw application
|
||||
// GetGenesisStateFromAppState returns x/auction GenesisState given raw application
|
||||
// genesis state.
|
||||
func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) GenesisState {
|
||||
var genesisState GenesisState
|
||||
@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: sdk/builder/v1/genesis.proto
|
||||
// source: sdk/auction/v1/genesis.proto
|
||||
|
||||
package types
|
||||
|
||||
@ -27,7 +27,7 @@ var _ = math.Inf
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// GenesisState defines the genesis state of the x/builder module.
|
||||
// GenesisState defines the genesis state of the x/auction module.
|
||||
type GenesisState struct {
|
||||
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
|
||||
}
|
||||
@ -36,7 +36,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} }
|
||||
func (m *GenesisState) String() string { return proto.CompactTextString(m) }
|
||||
func (*GenesisState) ProtoMessage() {}
|
||||
func (*GenesisState) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_bec962a3edf90ddb, []int{0}
|
||||
return fileDescriptor_6fc9f0e935c2021b, []int{0}
|
||||
}
|
||||
func (m *GenesisState) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -72,7 +72,7 @@ func (m *GenesisState) GetParams() Params {
|
||||
return Params{}
|
||||
}
|
||||
|
||||
// Params defines the parameters of the x/builder module.
|
||||
// Params defines the parameters of the x/auction module.
|
||||
type Params struct {
|
||||
// max_bundle_size is the maximum number of transactions that can be bundled
|
||||
// in a single bundle.
|
||||
@ -97,7 +97,7 @@ func (m *Params) Reset() { *m = Params{} }
|
||||
func (m *Params) String() string { return proto.CompactTextString(m) }
|
||||
func (*Params) ProtoMessage() {}
|
||||
func (*Params) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_bec962a3edf90ddb, []int{1}
|
||||
return fileDescriptor_6fc9f0e935c2021b, []int{1}
|
||||
}
|
||||
func (m *Params) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -162,45 +162,45 @@ func (m *Params) GetFrontRunningProtection() bool {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*GenesisState)(nil), "sdk.builder.v1.GenesisState")
|
||||
proto.RegisterType((*Params)(nil), "sdk.builder.v1.Params")
|
||||
proto.RegisterType((*GenesisState)(nil), "sdk.auction.v1.GenesisState")
|
||||
proto.RegisterType((*Params)(nil), "sdk.auction.v1.Params")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("sdk/builder/v1/genesis.proto", fileDescriptor_bec962a3edf90ddb) }
|
||||
func init() { proto.RegisterFile("sdk/auction/v1/genesis.proto", fileDescriptor_6fc9f0e935c2021b) }
|
||||
|
||||
var fileDescriptor_bec962a3edf90ddb = []byte{
|
||||
var fileDescriptor_6fc9f0e935c2021b = []byte{
|
||||
// 499 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x4f, 0x6b, 0x13, 0x41,
|
||||
0x18, 0xc6, 0xb3, 0xb6, 0x06, 0x3b, 0x49, 0x2d, 0x5d, 0x4a, 0xd8, 0x46, 0xd9, 0x84, 0x1e, 0x24,
|
||||
0x14, 0xb2, 0x43, 0x54, 0x44, 0xbc, 0x35, 0xc6, 0x16, 0xc1, 0x43, 0xd8, 0x9e, 0xf4, 0xb2, 0xcc,
|
||||
0xce, 0xbe, 0xdd, 0x0e, 0xc9, 0xcc, 0x2c, 0x33, 0x93, 0x98, 0xf6, 0x23, 0x78, 0xf2, 0x63, 0x78,
|
||||
0xec, 0x41, 0xbf, 0x43, 0x8f, 0xc5, 0x93, 0x78, 0x28, 0x92, 0x1c, 0xfa, 0x35, 0x64, 0x67, 0xb6,
|
||||
0x05, 0xc1, 0x4b, 0x2f, 0xcb, 0xce, 0xfc, 0xe6, 0x7d, 0xde, 0xe7, 0xfd, 0x83, 0x9e, 0xea, 0x6c,
|
||||
0x82, 0xd3, 0x19, 0x9b, 0x66, 0xa0, 0xf0, 0x7c, 0x80, 0x73, 0x10, 0xa0, 0x99, 0x8e, 0x0a, 0x25,
|
||||
0x8d, 0xf4, 0x1f, 0xeb, 0x6c, 0x12, 0x55, 0x34, 0x9a, 0x0f, 0xda, 0x3b, 0xb9, 0xcc, 0xa5, 0x45,
|
||||
0xb8, 0xfc, 0x73, 0xaf, 0xda, 0x21, 0x95, 0x9a, 0x4b, 0x8d, 0x53, 0xa2, 0x01, 0xcf, 0x07, 0x29,
|
||||
0x18, 0x32, 0xc0, 0x54, 0x32, 0x51, 0xf1, 0x6d, 0xc2, 0x99, 0x90, 0xd8, 0x7e, 0xab, 0xab, 0x5d,
|
||||
0x17, 0x92, 0x38, 0x2d, 0x77, 0x70, 0x68, 0x6f, 0x84, 0x9a, 0x47, 0xce, 0xc4, 0xb1, 0x21, 0x06,
|
||||
0xfc, 0x97, 0xa8, 0x5e, 0x10, 0x45, 0xb8, 0x0e, 0xbc, 0xae, 0xd7, 0x6b, 0x3c, 0x6f, 0x45, 0xff,
|
||||
0x9a, 0x8a, 0xc6, 0x96, 0x0e, 0xd7, 0x2f, 0xaf, 0x3b, 0xb5, 0xb8, 0x7a, 0xbb, 0xf7, 0x63, 0x0d,
|
||||
0xd5, 0x1d, 0xf0, 0x9f, 0xa1, 0x2d, 0x4e, 0x16, 0x49, 0x3a, 0x13, 0xd9, 0x14, 0x12, 0xcd, 0xce,
|
||||
0xc1, 0x2a, 0x6d, 0xc6, 0x9b, 0x9c, 0x2c, 0x86, 0xf6, 0xf6, 0x98, 0x9d, 0x97, 0x89, 0x5a, 0xa0,
|
||||
0xa9, 0x92, 0x9f, 0x13, 0x42, 0xa9, 0x9c, 0x09, 0x93, 0x90, 0x2c, 0x53, 0xa0, 0x75, 0xf0, 0xa0,
|
||||
0xeb, 0xf5, 0x9a, 0xf1, 0x8e, 0xa3, 0x07, 0x0e, 0x1e, 0x38, 0xe6, 0xbf, 0x43, 0x0d, 0x05, 0x1a,
|
||||
0xd4, 0x1c, 0x92, 0x13, 0x80, 0x60, 0xcd, 0x7a, 0xdc, 0x8d, 0xaa, 0x92, 0xca, 0x96, 0x44, 0x55,
|
||||
0x4b, 0xa2, 0xb7, 0x92, 0x89, 0xe1, 0x46, 0x69, 0xf3, 0xdb, 0xcd, 0xc5, 0xbe, 0x17, 0xa3, 0x2a,
|
||||
0xf0, 0x10, 0xc0, 0x1f, 0xa3, 0x6d, 0xce, 0x44, 0x92, 0xb2, 0x2c, 0x61, 0x82, 0x2a, 0xe0, 0x20,
|
||||
0x4c, 0xb0, 0x7e, 0x0f, 0xb1, 0x2d, 0xce, 0xc4, 0x90, 0x65, 0xef, 0x6f, 0x83, 0xfd, 0xd7, 0x28,
|
||||
0x38, 0x51, 0x52, 0x98, 0x44, 0xcd, 0x84, 0x60, 0x22, 0xb7, 0xbd, 0x06, 0x6a, 0x98, 0x14, 0xc1,
|
||||
0xc3, 0xae, 0xd7, 0x7b, 0x14, 0xb7, 0x2c, 0x8f, 0x1d, 0x1e, 0xdf, 0x51, 0xff, 0x23, 0x6a, 0x16,
|
||||
0x4a, 0x16, 0x52, 0x83, 0xb2, 0x35, 0xd5, 0xbb, 0x5e, 0x6f, 0x63, 0xf8, 0xaa, 0xcc, 0xf5, 0xfb,
|
||||
0xba, 0xf3, 0xc4, 0xb9, 0x29, 0x87, 0xc0, 0x24, 0xe6, 0xc4, 0x9c, 0x46, 0x1f, 0x20, 0x27, 0xf4,
|
||||
0x6c, 0x04, 0xf4, 0xe7, 0xf7, 0x3e, 0xaa, 0xcc, 0x8e, 0x80, 0x3a, 0x63, 0x8d, 0x5b, 0xad, 0x43,
|
||||
0x80, 0x37, 0x9d, 0x2f, 0x37, 0x17, 0xfb, 0xed, 0x74, 0x2a, 0xe9, 0xa4, 0x5f, 0x6e, 0xde, 0xe2,
|
||||
0x6e, 0xf7, 0xaa, 0x29, 0x1e, 0x5d, 0x2e, 0x43, 0xef, 0x6a, 0x19, 0x7a, 0x7f, 0x96, 0xa1, 0xf7,
|
||||
0x75, 0x15, 0xd6, 0xae, 0x56, 0x61, 0xed, 0xd7, 0x2a, 0xac, 0x7d, 0xea, 0xe7, 0xcc, 0x9c, 0xce,
|
||||
0xd2, 0x88, 0x4a, 0x8e, 0xf5, 0x84, 0x15, 0x7d, 0x0e, 0x73, 0xfc, 0x3f, 0x25, 0x73, 0x56, 0x80,
|
||||
0x4e, 0xeb, 0x76, 0x9b, 0x5e, 0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xce, 0x7d, 0x8f, 0xeb, 0xe1,
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x41, 0x6b, 0xdb, 0x3e,
|
||||
0x18, 0xc6, 0xe3, 0x7f, 0xfb, 0x0f, 0xab, 0x92, 0xae, 0xd4, 0x94, 0xe0, 0x66, 0xc3, 0x09, 0x3d,
|
||||
0x8c, 0x50, 0x88, 0x45, 0xb6, 0x31, 0xc6, 0x6e, 0xcd, 0xb2, 0x96, 0xc1, 0x0e, 0xc1, 0x3d, 0x6d,
|
||||
0x17, 0x23, 0xcb, 0x6f, 0x5d, 0x91, 0x4a, 0x32, 0x92, 0xe2, 0xa5, 0xfd, 0x08, 0x3b, 0xed, 0x63,
|
||||
0xec, 0xd8, 0xc3, 0xf6, 0x1d, 0x7a, 0x2c, 0x3b, 0x8d, 0x1d, 0xca, 0x48, 0x0e, 0xfd, 0x1a, 0xc3,
|
||||
0x92, 0x5b, 0x18, 0xec, 0xb2, 0x8b, 0xb1, 0xf4, 0xd3, 0xfb, 0xe8, 0xd1, 0xf3, 0xbe, 0xe8, 0xb1,
|
||||
0xce, 0x66, 0x98, 0xcc, 0xa9, 0x61, 0x52, 0xe0, 0x72, 0x84, 0x73, 0x10, 0xa0, 0x99, 0x8e, 0x0a,
|
||||
0x25, 0x8d, 0xf4, 0x1f, 0xea, 0x6c, 0x16, 0xd5, 0x34, 0x2a, 0x47, 0xdd, 0x9d, 0x5c, 0xe6, 0xd2,
|
||||
0x22, 0x5c, 0xfd, 0xb9, 0x53, 0xdd, 0x90, 0x4a, 0xcd, 0xa5, 0xc6, 0x29, 0xd1, 0x80, 0xcb, 0x51,
|
||||
0x0a, 0x86, 0x8c, 0x30, 0x95, 0x4c, 0xd4, 0x7c, 0x9b, 0x70, 0x26, 0x24, 0xb6, 0xdf, 0x7a, 0x6b,
|
||||
0xd7, 0x95, 0x24, 0x4e, 0xcb, 0x2d, 0x1c, 0xda, 0x9b, 0xa0, 0xf6, 0x91, 0x33, 0x71, 0x6c, 0x88,
|
||||
0x01, 0xff, 0x39, 0x6a, 0x16, 0x44, 0x11, 0xae, 0x03, 0xaf, 0xef, 0x0d, 0x5a, 0x4f, 0x3b, 0xd1,
|
||||
0x9f, 0xa6, 0xa2, 0xa9, 0xa5, 0xe3, 0xf5, 0xab, 0x9b, 0x5e, 0x23, 0xae, 0xcf, 0xee, 0x7d, 0x5b,
|
||||
0x43, 0x4d, 0x07, 0xfc, 0x27, 0x68, 0x8b, 0x93, 0x45, 0x92, 0xce, 0x45, 0x76, 0x06, 0x89, 0x66,
|
||||
0x17, 0x60, 0x95, 0x36, 0xe3, 0x4d, 0x4e, 0x16, 0x63, 0xbb, 0x7b, 0xcc, 0x2e, 0xaa, 0x8b, 0x3a,
|
||||
0xa0, 0xa9, 0x92, 0x1f, 0x13, 0x42, 0xa9, 0x9c, 0x0b, 0x93, 0x90, 0x2c, 0x53, 0xa0, 0x75, 0xf0,
|
||||
0x5f, 0xdf, 0x1b, 0xb4, 0xe3, 0x1d, 0x47, 0x0f, 0x1c, 0x3c, 0x70, 0xcc, 0x7f, 0x83, 0x5a, 0x0a,
|
||||
0x34, 0xa8, 0x12, 0x92, 0x13, 0x80, 0x60, 0xcd, 0x7a, 0xdc, 0x8d, 0xea, 0x27, 0x55, 0x91, 0x44,
|
||||
0x75, 0x24, 0xd1, 0x6b, 0xc9, 0xc4, 0x78, 0xa3, 0xb2, 0xf9, 0xe5, 0xf6, 0x72, 0xdf, 0x8b, 0x51,
|
||||
0x5d, 0x78, 0x08, 0xe0, 0x4f, 0xd1, 0x36, 0x67, 0x22, 0x49, 0x59, 0x96, 0x30, 0x41, 0x15, 0x70,
|
||||
0x10, 0x26, 0x58, 0xff, 0x07, 0xb1, 0x2d, 0xce, 0xc4, 0x98, 0x65, 0x6f, 0xef, 0x8a, 0xfd, 0x97,
|
||||
0x28, 0x38, 0x51, 0x52, 0x98, 0x44, 0xcd, 0x85, 0x60, 0x22, 0xb7, 0x59, 0x83, 0x4d, 0x2d, 0xf8,
|
||||
0xbf, 0xef, 0x0d, 0x1e, 0xc4, 0x1d, 0xcb, 0x63, 0x87, 0xa7, 0xf7, 0xd4, 0x7f, 0x8f, 0xda, 0x85,
|
||||
0x92, 0x85, 0xd4, 0xa0, 0xec, 0x9b, 0x9a, 0x7d, 0x6f, 0xb0, 0x31, 0x7e, 0x51, 0xdd, 0xf5, 0xf3,
|
||||
0xa6, 0xf7, 0xc8, 0xb9, 0xa9, 0x9a, 0xc0, 0x24, 0xe6, 0xc4, 0x9c, 0x46, 0xef, 0x20, 0x27, 0xf4,
|
||||
0x7c, 0x02, 0xf4, 0xfb, 0xd7, 0x21, 0xaa, 0xcd, 0x4e, 0x80, 0x3a, 0x63, 0xad, 0x3b, 0xad, 0x43,
|
||||
0x80, 0x57, 0xbd, 0x4f, 0xb7, 0x97, 0xfb, 0xdd, 0xf4, 0x4c, 0xd2, 0xd9, 0xb0, 0x9a, 0xbc, 0xc5,
|
||||
0xfd, 0xec, 0xd5, 0x5d, 0x3c, 0xba, 0x5a, 0x86, 0xde, 0xf5, 0x32, 0xf4, 0x7e, 0x2d, 0x43, 0xef,
|
||||
0xf3, 0x2a, 0x6c, 0x5c, 0xaf, 0xc2, 0xc6, 0x8f, 0x55, 0xd8, 0xf8, 0x30, 0xcc, 0x99, 0x39, 0x9d,
|
||||
0xa7, 0x11, 0x95, 0x1c, 0xeb, 0x19, 0x2b, 0x86, 0x1c, 0x4a, 0xfc, 0x37, 0x25, 0x73, 0x5e, 0x80,
|
||||
0x4e, 0x9b, 0x76, 0x9a, 0x9e, 0xfd, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x31, 0xe3, 0xa8, 0x13, 0xe1,
|
||||
0x02, 0x00, 0x00,
|
||||
}
|
||||
|
||||
22
x/auction/types/keys.go
Normal file
22
x/auction/types/keys.go
Normal file
@ -0,0 +1,22 @@
|
||||
package types
|
||||
|
||||
const (
|
||||
// ModuleName is the name of the auction module
|
||||
ModuleName = "auction"
|
||||
|
||||
// StoreKey is the default store key for the auction module
|
||||
StoreKey = ModuleName
|
||||
|
||||
// RouterKey is the message route for the auction module
|
||||
RouterKey = ModuleName
|
||||
|
||||
// QuerierRoute is the querier route for the auction module
|
||||
QuerierRoute = ModuleName
|
||||
)
|
||||
|
||||
const (
|
||||
prefixParams = iota + 1
|
||||
)
|
||||
|
||||
// KeyParams is the store key for the auction module's parameters.
|
||||
var KeyParams = []byte{prefixParams}
|
||||
@ -6,7 +6,7 @@ import (
|
||||
"cosmossdk.io/math"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
// TestMsgAuctionBid tests the ValidateBasic method of MsgAuctionBid
|
||||
@ -35,7 +35,7 @@ func NewParams(
|
||||
}
|
||||
}
|
||||
|
||||
// DefaultParams returns the default x/builder parameters.
|
||||
// DefaultParams returns the default x/auction parameters.
|
||||
func DefaultParams() Params {
|
||||
return NewParams(
|
||||
DefaultMaxBundleSize,
|
||||
@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: sdk/builder/v1/query.proto
|
||||
// source: sdk/auction/v1/query.proto
|
||||
|
||||
package types
|
||||
|
||||
@ -38,7 +38,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} }
|
||||
func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryParamsRequest) ProtoMessage() {}
|
||||
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_83b6271e8d232d07, []int{0}
|
||||
return fileDescriptor_47f76418be29a6d6, []int{0}
|
||||
}
|
||||
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -77,7 +77,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} }
|
||||
func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryParamsResponse) ProtoMessage() {}
|
||||
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_83b6271e8d232d07, []int{1}
|
||||
return fileDescriptor_47f76418be29a6d6, []int{1}
|
||||
}
|
||||
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -114,34 +114,33 @@ func (m *QueryParamsResponse) GetParams() Params {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*QueryParamsRequest)(nil), "sdk.builder.v1.QueryParamsRequest")
|
||||
proto.RegisterType((*QueryParamsResponse)(nil), "sdk.builder.v1.QueryParamsResponse")
|
||||
proto.RegisterType((*QueryParamsRequest)(nil), "sdk.auction.v1.QueryParamsRequest")
|
||||
proto.RegisterType((*QueryParamsResponse)(nil), "sdk.auction.v1.QueryParamsResponse")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("sdk/builder/v1/query.proto", fileDescriptor_83b6271e8d232d07) }
|
||||
func init() { proto.RegisterFile("sdk/auction/v1/query.proto", fileDescriptor_47f76418be29a6d6) }
|
||||
|
||||
var fileDescriptor_83b6271e8d232d07 = []byte{
|
||||
// 305 bytes of a gzipped FileDescriptorProto
|
||||
var fileDescriptor_47f76418be29a6d6 = []byte{
|
||||
// 303 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2a, 0x4e, 0xc9, 0xd6,
|
||||
0x4f, 0x2a, 0xcd, 0xcc, 0x49, 0x49, 0x2d, 0xd2, 0x2f, 0x33, 0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0xaa,
|
||||
0x4f, 0x2c, 0x4d, 0x2e, 0xc9, 0xcc, 0xcf, 0xd3, 0x2f, 0x33, 0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0xaa,
|
||||
0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2b, 0x4e, 0xc9, 0xd6, 0x83, 0xca, 0xe9, 0x95,
|
||||
0x19, 0x4a, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0xa5, 0xf4, 0x41, 0x2c, 0x88, 0x2a, 0x29, 0x99,
|
||||
0xf4, 0xfc, 0xfc, 0xf4, 0x9c, 0x54, 0xfd, 0xc4, 0x82, 0x4c, 0xfd, 0xc4, 0xbc, 0xbc, 0xfc, 0x92,
|
||||
0xc4, 0x92, 0xcc, 0xfc, 0xbc, 0x62, 0xa8, 0xac, 0x74, 0x72, 0x7e, 0x71, 0x6e, 0x7e, 0x31, 0xc4,
|
||||
0x5c, 0x34, 0x0b, 0xa4, 0x64, 0xd0, 0x2c, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x84, 0x6a, 0x55,
|
||||
0x12, 0xe1, 0x12, 0x0a, 0x04, 0x29, 0x0e, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0x0e, 0x4a, 0x2d, 0x2c,
|
||||
0x4d, 0x2d, 0x2e, 0x51, 0xf2, 0xe6, 0x12, 0x46, 0x11, 0x2d, 0x2e, 0xc8, 0xcf, 0x2b, 0x4e, 0x15,
|
||||
0x32, 0xe1, 0x62, 0x2b, 0x00, 0x8b, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x89, 0xe9, 0xa1,
|
||||
0x3a, 0x5e, 0x0f, 0xa2, 0xde, 0x89, 0xe5, 0xc4, 0x3d, 0x79, 0x86, 0x20, 0xa8, 0x5a, 0xa3, 0x56,
|
||||
0x46, 0x2e, 0x56, 0xb0, 0x69, 0x42, 0x35, 0x5c, 0x6c, 0x10, 0x15, 0x42, 0x4a, 0xe8, 0x3a, 0x31,
|
||||
0x1d, 0x21, 0xa5, 0x8c, 0x57, 0x0d, 0xc4, 0x49, 0x4a, 0x9a, 0x1d, 0xcf, 0x37, 0x68, 0x31, 0x36,
|
||||
0x5d, 0x7e, 0x32, 0x99, 0x49, 0x4e, 0x48, 0x46, 0x3f, 0x29, 0x27, 0x3f, 0x39, 0x5b, 0x17, 0xcd,
|
||||
0xc7, 0x10, 0x77, 0x38, 0xb9, 0x9f, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47,
|
||||
0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94,
|
||||
0x6e, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x71, 0x76, 0x66, 0x81,
|
||||
0x6e, 0x6e, 0x6a, 0x19, 0x92, 0x51, 0x15, 0x70, 0xc3, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8,
|
||||
0xc0, 0x41, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x97, 0x9a, 0x15, 0x9d, 0xd7, 0x01, 0x00,
|
||||
0x00,
|
||||
0x44, 0x90, 0xfa, 0x62, 0xa8, 0xac, 0x74, 0x72, 0x7e, 0x71, 0x6e, 0x7e, 0x31, 0xc4, 0x5c, 0x34,
|
||||
0x0b, 0xa4, 0x64, 0xd0, 0x2c, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x84, 0x6a, 0x55, 0x12, 0xe1,
|
||||
0x12, 0x0a, 0x04, 0x29, 0x0e, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0x0e, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d,
|
||||
0x2e, 0x51, 0xf2, 0xe6, 0x12, 0x46, 0x11, 0x2d, 0x2e, 0xc8, 0xcf, 0x2b, 0x4e, 0x15, 0x32, 0xe1,
|
||||
0x62, 0x2b, 0x00, 0x8b, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x89, 0xe9, 0xa1, 0x3a, 0x5e,
|
||||
0x0f, 0xa2, 0xde, 0x89, 0xe5, 0xc4, 0x3d, 0x79, 0x86, 0x20, 0xa8, 0x5a, 0xa3, 0x56, 0x46, 0x2e,
|
||||
0x56, 0xb0, 0x69, 0x42, 0x35, 0x5c, 0x6c, 0x10, 0x15, 0x42, 0x4a, 0xe8, 0x3a, 0x31, 0x1d, 0x21,
|
||||
0xa5, 0x8c, 0x57, 0x0d, 0xc4, 0x49, 0x4a, 0x9a, 0x1d, 0xcf, 0x37, 0x68, 0x31, 0x36, 0x5d, 0x7e,
|
||||
0x32, 0x99, 0x49, 0x4e, 0x48, 0x46, 0x3f, 0x29, 0x27, 0x3f, 0x39, 0x5b, 0x17, 0xcd, 0xc7, 0x10,
|
||||
0x77, 0x38, 0xb9, 0x9f, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c,
|
||||
0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x6e, 0x7a,
|
||||
0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x71, 0x76, 0x66, 0x81, 0x6e, 0x6e,
|
||||
0x6a, 0x19, 0x92, 0x51, 0x15, 0x70, 0xc3, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x41,
|
||||
0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x23, 0x86, 0x8c, 0xe6, 0xd7, 0x01, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@ -156,7 +155,7 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type QueryClient interface {
|
||||
// Params queries the parameters of the x/builder module.
|
||||
// Params queries the parameters of the x/auction module.
|
||||
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
||||
}
|
||||
|
||||
@ -170,7 +169,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient {
|
||||
|
||||
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
|
||||
out := new(QueryParamsResponse)
|
||||
err := c.cc.Invoke(ctx, "/sdk.builder.v1.Query/Params", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/sdk.auction.v1.Query/Params", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -179,7 +178,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts .
|
||||
|
||||
// QueryServer is the server API for Query service.
|
||||
type QueryServer interface {
|
||||
// Params queries the parameters of the x/builder module.
|
||||
// Params queries the parameters of the x/auction module.
|
||||
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
||||
}
|
||||
|
||||
@ -205,7 +204,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/sdk.builder.v1.Query/Params",
|
||||
FullMethod: "/sdk.auction.v1.Query/Params",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
|
||||
@ -214,7 +213,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf
|
||||
}
|
||||
|
||||
var _Query_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "sdk.builder.v1.Query",
|
||||
ServiceName: "sdk.auction.v1.Query",
|
||||
HandlerType: (*QueryServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
@ -223,7 +222,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "sdk/builder/v1/query.proto",
|
||||
Metadata: "sdk/auction/v1/query.proto",
|
||||
}
|
||||
|
||||
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) {
|
||||
@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: sdk/builder/v1/query.proto
|
||||
// source: sdk/auction/v1/query.proto
|
||||
|
||||
/*
|
||||
Package types is a reverse proxy.
|
||||
@ -145,7 +145,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
|
||||
}
|
||||
|
||||
var (
|
||||
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"block-sdk", "builder", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"block-sdk", "auction", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
)
|
||||
|
||||
var (
|
||||
@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: sdk/builder/v1/tx.proto
|
||||
// source: sdk/auction/v1/tx.proto
|
||||
|
||||
package types
|
||||
|
||||
@ -33,7 +33,7 @@ var _ = math.Inf
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// MsgAuctionBid defines a request type for sending bids to the x/builder
|
||||
// MsgAuctionBid defines a request type for sending bids to the x/auction
|
||||
// module.
|
||||
type MsgAuctionBid struct {
|
||||
// bidder is the address of the account that is submitting a bid to the
|
||||
@ -51,7 +51,7 @@ func (m *MsgAuctionBid) Reset() { *m = MsgAuctionBid{} }
|
||||
func (m *MsgAuctionBid) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgAuctionBid) ProtoMessage() {}
|
||||
func (*MsgAuctionBid) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e97f973cb189144b, []int{0}
|
||||
return fileDescriptor_cb2030683390c1e9, []int{0}
|
||||
}
|
||||
func (m *MsgAuctionBid) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -109,7 +109,7 @@ func (m *MsgAuctionBidResponse) Reset() { *m = MsgAuctionBidResponse{} }
|
||||
func (m *MsgAuctionBidResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgAuctionBidResponse) ProtoMessage() {}
|
||||
func (*MsgAuctionBidResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e97f973cb189144b, []int{1}
|
||||
return fileDescriptor_cb2030683390c1e9, []int{1}
|
||||
}
|
||||
func (m *MsgAuctionBidResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -138,13 +138,13 @@ func (m *MsgAuctionBidResponse) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_MsgAuctionBidResponse proto.InternalMessageInfo
|
||||
|
||||
// MsgUpdateParams defines a request type for updating the x/builder module
|
||||
// MsgUpdateParams defines a request type for updating the x/auction module
|
||||
// parameters.
|
||||
type MsgUpdateParams struct {
|
||||
// authority is the address of the account that is authorized to update the
|
||||
// x/builder module parameters.
|
||||
// x/auction module parameters.
|
||||
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
|
||||
// params is the new parameters for the x/builder module.
|
||||
// params is the new parameters for the x/auction module.
|
||||
Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
|
||||
}
|
||||
|
||||
@ -152,7 +152,7 @@ func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} }
|
||||
func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgUpdateParams) ProtoMessage() {}
|
||||
func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e97f973cb189144b, []int{2}
|
||||
return fileDescriptor_cb2030683390c1e9, []int{2}
|
||||
}
|
||||
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -203,7 +203,7 @@ func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse
|
||||
func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgUpdateParamsResponse) ProtoMessage() {}
|
||||
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e97f973cb189144b, []int{3}
|
||||
return fileDescriptor_cb2030683390c1e9, []int{3}
|
||||
}
|
||||
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -233,50 +233,50 @@ func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*MsgAuctionBid)(nil), "sdk.builder.v1.MsgAuctionBid")
|
||||
proto.RegisterType((*MsgAuctionBidResponse)(nil), "sdk.builder.v1.MsgAuctionBidResponse")
|
||||
proto.RegisterType((*MsgUpdateParams)(nil), "sdk.builder.v1.MsgUpdateParams")
|
||||
proto.RegisterType((*MsgUpdateParamsResponse)(nil), "sdk.builder.v1.MsgUpdateParamsResponse")
|
||||
proto.RegisterType((*MsgAuctionBid)(nil), "sdk.auction.v1.MsgAuctionBid")
|
||||
proto.RegisterType((*MsgAuctionBidResponse)(nil), "sdk.auction.v1.MsgAuctionBidResponse")
|
||||
proto.RegisterType((*MsgUpdateParams)(nil), "sdk.auction.v1.MsgUpdateParams")
|
||||
proto.RegisterType((*MsgUpdateParamsResponse)(nil), "sdk.auction.v1.MsgUpdateParamsResponse")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("sdk/builder/v1/tx.proto", fileDescriptor_e97f973cb189144b) }
|
||||
func init() { proto.RegisterFile("sdk/auction/v1/tx.proto", fileDescriptor_cb2030683390c1e9) }
|
||||
|
||||
var fileDescriptor_e97f973cb189144b = []byte{
|
||||
// 536 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0x4f, 0x8f, 0x12, 0x4f,
|
||||
0x10, 0x65, 0x96, 0xdf, 0x8f, 0x84, 0x16, 0x35, 0x4e, 0x56, 0xf9, 0xa3, 0x0e, 0xec, 0x18, 0x23,
|
||||
0x21, 0x61, 0x5a, 0x56, 0xdd, 0x03, 0xb7, 0xc5, 0x83, 0x27, 0x12, 0x83, 0x31, 0x31, 0x5e, 0x4c,
|
||||
0x0f, 0xd3, 0xe9, 0xed, 0xc0, 0x74, 0x4f, 0xa6, 0x1a, 0xb2, 0x7b, 0x33, 0x7b, 0xf4, 0x64, 0xe2,
|
||||
0x17, 0xf0, 0xe8, 0x91, 0x83, 0x37, 0xbf, 0xc0, 0x1e, 0x37, 0xea, 0xc1, 0x8b, 0xc6, 0x80, 0x09,
|
||||
0x7e, 0x0c, 0xd3, 0x4c, 0xb3, 0x30, 0x64, 0x75, 0x2f, 0x84, 0xa9, 0xf7, 0xea, 0x55, 0xbd, 0xd7,
|
||||
0x85, 0x8a, 0x10, 0x0c, 0xb0, 0x3f, 0xe2, 0xc3, 0x80, 0xc6, 0x78, 0xdc, 0xc2, 0xea, 0xd0, 0x8b,
|
||||
0x62, 0xa9, 0xa4, 0x7d, 0x05, 0x82, 0x81, 0x67, 0x00, 0x6f, 0xdc, 0xaa, 0x6c, 0x33, 0xc9, 0xe4,
|
||||
0x02, 0xc2, 0xfa, 0x5f, 0xc2, 0xaa, 0xdc, 0x62, 0x52, 0xb2, 0x21, 0xc5, 0x24, 0xe2, 0x98, 0x08,
|
||||
0x21, 0x15, 0x51, 0x5c, 0x0a, 0x30, 0xa8, 0xd3, 0x97, 0x10, 0x4a, 0xc0, 0x3e, 0x01, 0x8a, 0xc7,
|
||||
0x2d, 0x9f, 0x2a, 0xd2, 0xc2, 0x7d, 0xc9, 0xc5, 0xb2, 0x7b, 0x63, 0x38, 0xa3, 0x82, 0x02, 0x5f,
|
||||
0x76, 0x97, 0x93, 0xee, 0x57, 0xc9, 0xd0, 0xe4, 0xc3, 0x40, 0x45, 0x23, 0x1c, 0x02, 0xd3, 0x7d,
|
||||
0x21, 0x30, 0x03, 0x5c, 0x23, 0x21, 0x17, 0x12, 0x2f, 0x7e, 0x93, 0x92, 0xfb, 0xd5, 0x42, 0x97,
|
||||
0xbb, 0xc0, 0xf6, 0x47, 0x7d, 0xbd, 0x5a, 0x87, 0x07, 0xf6, 0x7d, 0x94, 0xf3, 0x79, 0x10, 0xd0,
|
||||
0xb8, 0x64, 0xd5, 0xac, 0x7a, 0xbe, 0x53, 0xfa, 0xfc, 0xb1, 0xb9, 0x6d, 0xf4, 0xf7, 0x83, 0x20,
|
||||
0xa6, 0x00, 0xcf, 0x54, 0xcc, 0x05, 0xeb, 0x19, 0x9e, 0xbd, 0x87, 0xb2, 0x3e, 0x0f, 0x4a, 0x5b,
|
||||
0x35, 0xab, 0x7e, 0x69, 0xb7, 0xec, 0x19, 0xae, 0xb6, 0xe5, 0x19, 0x5b, 0xde, 0x63, 0xc9, 0x45,
|
||||
0x27, 0x7f, 0xf2, 0xa3, 0x9a, 0xf9, 0x30, 0x9f, 0x34, 0xac, 0x9e, 0x6e, 0xb0, 0x5d, 0x54, 0x50,
|
||||
0x31, 0x11, 0x40, 0x16, 0xb3, 0xa1, 0x94, 0xad, 0x65, 0xeb, 0x85, 0x5e, 0xaa, 0xd6, 0x7e, 0xf4,
|
||||
0xfb, 0x7d, 0x35, 0x73, 0x3c, 0x9f, 0x34, 0xcc, 0xb0, 0x37, 0xf3, 0x49, 0x63, 0xc7, 0x1f, 0xca,
|
||||
0xfe, 0xa0, 0xa9, 0xe3, 0x39, 0x3c, 0x0b, 0x28, 0x65, 0xc2, 0x2d, 0xa2, 0xeb, 0xa9, 0x42, 0x8f,
|
||||
0x42, 0x24, 0x05, 0x50, 0xf7, 0x93, 0x85, 0xae, 0x76, 0x81, 0x3d, 0x8f, 0x02, 0xa2, 0xe8, 0x53,
|
||||
0x12, 0x93, 0x10, 0xec, 0x3d, 0x94, 0x27, 0x23, 0x75, 0x20, 0x63, 0xae, 0x8e, 0x2e, 0x34, 0xbd,
|
||||
0xa2, 0xda, 0x0f, 0x51, 0x2e, 0x5a, 0x28, 0x18, 0xeb, 0x37, 0xbc, 0xf4, 0x55, 0x78, 0x89, 0x7e,
|
||||
0xe7, 0x3f, 0xed, 0xbb, 0x67, 0xb8, 0xed, 0xf6, 0xd2, 0xd1, 0x4a, 0x49, 0x9b, 0xba, 0xf3, 0x17,
|
||||
0x53, 0xeb, 0x9b, 0xba, 0x65, 0x54, 0xdc, 0x28, 0x2d, 0x8d, 0xed, 0x7e, 0xb7, 0x50, 0xb6, 0x0b,
|
||||
0xcc, 0x1e, 0x21, 0xb4, 0xf6, 0x98, 0xb7, 0x37, 0x57, 0x4a, 0xa5, 0x52, 0xb9, 0xfb, 0x4f, 0xf8,
|
||||
0x2c, 0xb4, 0x9d, 0xe3, 0x2f, 0xbf, 0xde, 0x6d, 0xdd, 0x74, 0xcb, 0x78, 0xb5, 0xe4, 0xda, 0x61,
|
||||
0xea, 0xb7, 0x7c, 0x81, 0x0a, 0xa9, 0x4c, 0xab, 0xe7, 0x28, 0xaf, 0x13, 0x2a, 0xf7, 0x2e, 0x20,
|
||||
0x2c, 0x87, 0x57, 0xfe, 0x7f, 0xad, 0x2f, 0xa6, 0xf3, 0xe4, 0x64, 0xea, 0x58, 0xa7, 0x53, 0xc7,
|
||||
0xfa, 0x39, 0x75, 0xac, 0xb7, 0x33, 0x27, 0x73, 0x3a, 0x73, 0x32, 0xdf, 0x66, 0x4e, 0xe6, 0x65,
|
||||
0x93, 0x71, 0x75, 0x30, 0xf2, 0xbd, 0xbe, 0x0c, 0x31, 0x0c, 0x78, 0xd4, 0x0c, 0xe9, 0x18, 0x9f,
|
||||
0x97, 0xa6, 0x3a, 0x8a, 0x28, 0xf8, 0xb9, 0xc5, 0xe1, 0x3f, 0xf8, 0x13, 0x00, 0x00, 0xff, 0xff,
|
||||
0x33, 0x09, 0xf2, 0x29, 0xdc, 0x03, 0x00, 0x00,
|
||||
var fileDescriptor_cb2030683390c1e9 = []byte{
|
||||
// 532 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0xcf, 0x6b, 0x13, 0x41,
|
||||
0x14, 0xce, 0x36, 0x1a, 0xc8, 0x18, 0x15, 0x97, 0x6a, 0x7e, 0xa8, 0x9b, 0x74, 0x45, 0x0c, 0x81,
|
||||
0xec, 0x98, 0xaa, 0x3d, 0xe4, 0xd6, 0x78, 0xf0, 0x14, 0x90, 0x88, 0x20, 0x5e, 0x64, 0x36, 0x3b,
|
||||
0x4c, 0x87, 0x74, 0x67, 0x96, 0x7d, 0x93, 0xd0, 0xde, 0xa4, 0x47, 0x4f, 0x82, 0xff, 0x80, 0x47,
|
||||
0x8f, 0x39, 0x78, 0xf3, 0x1f, 0xe8, 0xb1, 0xa8, 0x07, 0x2f, 0x8a, 0x24, 0x42, 0xfc, 0x33, 0x64,
|
||||
0xb2, 0x93, 0x26, 0x1b, 0x6a, 0x7b, 0x09, 0xd9, 0xf7, 0xbe, 0xf7, 0x7d, 0xef, 0xfb, 0xe6, 0xa1,
|
||||
0x22, 0x04, 0x03, 0x4c, 0x86, 0x7d, 0xc5, 0xa5, 0xc0, 0xa3, 0x16, 0x56, 0x07, 0x5e, 0x14, 0x4b,
|
||||
0x25, 0xed, 0x6b, 0x10, 0x0c, 0x3c, 0xd3, 0xf0, 0x46, 0xad, 0xca, 0x26, 0x93, 0x4c, 0xce, 0x5b,
|
||||
0x58, 0xff, 0x4b, 0x50, 0x95, 0x3b, 0x4c, 0x4a, 0xb6, 0x4f, 0x31, 0x89, 0x38, 0x26, 0x42, 0x48,
|
||||
0x45, 0x34, 0x1e, 0x4c, 0xd7, 0xe9, 0x4b, 0x08, 0x25, 0x60, 0x9f, 0x00, 0xc5, 0xa3, 0x96, 0x4f,
|
||||
0x15, 0x69, 0xe1, 0xbe, 0xe4, 0x62, 0x31, 0xbd, 0x26, 0xce, 0xa8, 0xa0, 0xc0, 0x17, 0xd3, 0xe5,
|
||||
0x64, 0xfa, 0x4d, 0x22, 0x9a, 0x7c, 0x98, 0x56, 0xd1, 0x10, 0x87, 0xc0, 0xf4, 0x5c, 0x08, 0xcc,
|
||||
0x34, 0x6e, 0x90, 0x90, 0x0b, 0x89, 0xe7, 0xbf, 0x49, 0xc9, 0xfd, 0x6e, 0xa1, 0xab, 0x5d, 0x60,
|
||||
0xbb, 0x89, 0x4c, 0x87, 0x07, 0xf6, 0x43, 0x94, 0xf3, 0x79, 0x10, 0xd0, 0xb8, 0x64, 0xd5, 0xac,
|
||||
0x7a, 0xbe, 0x53, 0xfa, 0xfa, 0xb9, 0xb9, 0x69, 0xf8, 0x77, 0x83, 0x20, 0xa6, 0x00, 0x2f, 0x54,
|
||||
0xcc, 0x05, 0xeb, 0x19, 0x9c, 0xbd, 0x83, 0xb2, 0x3e, 0x0f, 0x4a, 0x1b, 0x35, 0xab, 0x7e, 0x65,
|
||||
0xbb, 0xec, 0x19, 0xac, 0xb6, 0xe5, 0x19, 0x5b, 0xde, 0x53, 0xc9, 0x45, 0x27, 0x7f, 0xfc, 0xab,
|
||||
0x9a, 0xf9, 0x34, 0x1b, 0x37, 0xac, 0x9e, 0x1e, 0xb0, 0x5d, 0x54, 0x50, 0x31, 0x11, 0x40, 0xe6,
|
||||
0xda, 0x50, 0xca, 0xd6, 0xb2, 0xf5, 0x42, 0x2f, 0x55, 0x6b, 0x3f, 0xf9, 0xfb, 0xb1, 0x9a, 0x39,
|
||||
0x9a, 0x8d, 0x1b, 0x46, 0xec, 0xdd, 0x6c, 0xdc, 0xd8, 0xf2, 0xf7, 0x65, 0x7f, 0xd0, 0xd4, 0xf1,
|
||||
0x1c, 0x9c, 0x06, 0x94, 0x32, 0xe1, 0x16, 0xd1, 0xcd, 0x54, 0xa1, 0x47, 0x21, 0x92, 0x02, 0xa8,
|
||||
0xfb, 0xc5, 0x42, 0xd7, 0xbb, 0xc0, 0x5e, 0x46, 0x01, 0x51, 0xf4, 0x39, 0x89, 0x49, 0x08, 0xf6,
|
||||
0x0e, 0xca, 0x93, 0xa1, 0xda, 0x93, 0x31, 0x57, 0x87, 0x17, 0x9a, 0x5e, 0x42, 0xed, 0xc7, 0x28,
|
||||
0x17, 0xcd, 0x19, 0x8c, 0xf5, 0x5b, 0x5e, 0xfa, 0x2a, 0xbc, 0x84, 0xbf, 0x73, 0x49, 0xfb, 0xee,
|
||||
0x19, 0x6c, 0xbb, 0xbd, 0x70, 0xb4, 0x64, 0xd2, 0xa6, 0xee, 0xfd, 0xc7, 0xd4, 0xea, 0xa6, 0x6e,
|
||||
0x19, 0x15, 0xd7, 0x4a, 0x0b, 0x63, 0xdb, 0x3f, 0x2d, 0x94, 0xed, 0x02, 0xb3, 0x87, 0x08, 0xad,
|
||||
0x3c, 0xe6, 0xdd, 0xf5, 0x95, 0x52, 0xa9, 0x54, 0xee, 0x9f, 0xdb, 0x3e, 0x0d, 0x6d, 0xeb, 0xe8,
|
||||
0xdb, 0x9f, 0x0f, 0x1b, 0xb7, 0xdd, 0x32, 0x5e, 0x2e, 0xb9, 0x72, 0x98, 0xfa, 0x2d, 0x5f, 0xa1,
|
||||
0x42, 0x2a, 0xd3, 0xea, 0x19, 0xcc, 0xab, 0x80, 0xca, 0x83, 0x0b, 0x00, 0x0b, 0xf1, 0xca, 0xe5,
|
||||
0xb7, 0xfa, 0x62, 0x3a, 0xcf, 0x8e, 0x27, 0x8e, 0x75, 0x32, 0x71, 0xac, 0xdf, 0x13, 0xc7, 0x7a,
|
||||
0x3f, 0x75, 0x32, 0x27, 0x53, 0x27, 0xf3, 0x63, 0xea, 0x64, 0x5e, 0x37, 0x19, 0x57, 0x7b, 0x43,
|
||||
0xdf, 0xeb, 0xcb, 0x10, 0xc3, 0x80, 0x47, 0xcd, 0x90, 0x8e, 0xf0, 0x59, 0x69, 0xaa, 0xc3, 0x88,
|
||||
0x82, 0x9f, 0x9b, 0x1f, 0xfe, 0xa3, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x72, 0xbe, 0x69, 0x7f,
|
||||
0xdc, 0x03, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@ -291,9 +291,9 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type MsgClient interface {
|
||||
// AuctionBid defines a method for sending bids to the x/builder module.
|
||||
// AuctionBid defines a method for sending bids to the x/auction module.
|
||||
AuctionBid(ctx context.Context, in *MsgAuctionBid, opts ...grpc.CallOption) (*MsgAuctionBidResponse, error)
|
||||
// UpdateParams defines a governance operation for updating the x/builder
|
||||
// UpdateParams defines a governance operation for updating the x/auction
|
||||
// module parameters. The authority is hard-coded to the x/gov module account.
|
||||
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
|
||||
}
|
||||
@ -308,7 +308,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient {
|
||||
|
||||
func (c *msgClient) AuctionBid(ctx context.Context, in *MsgAuctionBid, opts ...grpc.CallOption) (*MsgAuctionBidResponse, error) {
|
||||
out := new(MsgAuctionBidResponse)
|
||||
err := c.cc.Invoke(ctx, "/sdk.builder.v1.Msg/AuctionBid", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/sdk.auction.v1.Msg/AuctionBid", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -317,7 +317,7 @@ func (c *msgClient) AuctionBid(ctx context.Context, in *MsgAuctionBid, opts ...g
|
||||
|
||||
func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
|
||||
out := new(MsgUpdateParamsResponse)
|
||||
err := c.cc.Invoke(ctx, "/sdk.builder.v1.Msg/UpdateParams", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/sdk.auction.v1.Msg/UpdateParams", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -326,9 +326,9 @@ func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts
|
||||
|
||||
// MsgServer is the server API for Msg service.
|
||||
type MsgServer interface {
|
||||
// AuctionBid defines a method for sending bids to the x/builder module.
|
||||
// AuctionBid defines a method for sending bids to the x/auction module.
|
||||
AuctionBid(context.Context, *MsgAuctionBid) (*MsgAuctionBidResponse, error)
|
||||
// UpdateParams defines a governance operation for updating the x/builder
|
||||
// UpdateParams defines a governance operation for updating the x/auction
|
||||
// module parameters. The authority is hard-coded to the x/gov module account.
|
||||
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
|
||||
}
|
||||
@ -358,7 +358,7 @@ func _Msg_AuctionBid_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/sdk.builder.v1.Msg/AuctionBid",
|
||||
FullMethod: "/sdk.auction.v1.Msg/AuctionBid",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).AuctionBid(ctx, req.(*MsgAuctionBid))
|
||||
@ -376,7 +376,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/sdk.builder.v1.Msg/UpdateParams",
|
||||
FullMethod: "/sdk.auction.v1.Msg/UpdateParams",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
|
||||
@ -385,7 +385,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in
|
||||
}
|
||||
|
||||
var _Msg_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "sdk.builder.v1.Msg",
|
||||
ServiceName: "sdk.auction.v1.Msg",
|
||||
HandlerType: (*MsgServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
@ -398,7 +398,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "sdk/builder/v1/tx.proto",
|
||||
Metadata: "sdk/auction/v1/tx.proto",
|
||||
}
|
||||
|
||||
func (m *MsgAuctionBid) Marshal() (dAtA []byte, err error) {
|
||||
@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: sdk/builder/v1/tx.proto
|
||||
// source: sdk/auction/v1/tx.proto
|
||||
|
||||
/*
|
||||
Package types is a reverse proxy.
|
||||
@ -163,7 +163,7 @@ func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client
|
||||
}
|
||||
|
||||
var (
|
||||
pattern_Msg_AuctionBid_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"block-sdk", "builder", "v1", "bid"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Msg_AuctionBid_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"block-sdk", "auction", "v1", "bid"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
)
|
||||
|
||||
var (
|
||||
@ -1,22 +0,0 @@
|
||||
package types
|
||||
|
||||
const (
|
||||
// ModuleName is the name of the builder module
|
||||
ModuleName = "builder"
|
||||
|
||||
// StoreKey is the default store key for the builder module
|
||||
StoreKey = ModuleName
|
||||
|
||||
// RouterKey is the message route for the builder module
|
||||
RouterKey = ModuleName
|
||||
|
||||
// QuerierRoute is the querier route for the builder module
|
||||
QuerierRoute = ModuleName
|
||||
)
|
||||
|
||||
const (
|
||||
prefixParams = iota + 1
|
||||
)
|
||||
|
||||
// KeyParams is the store key for the builder module's parameters.
|
||||
var KeyParams = []byte{prefixParams}
|
||||
Loading…
Reference in New Issue
Block a user