diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d4145fe7..a457d036 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,6 +33,7 @@ jobs: - name: Unit Tests if: env.GIT_DIFF run: | + go work init make test test-integration: @@ -64,4 +65,5 @@ jobs: - name: Integration Tests if: env.GIT_DIFF run: | + go work init make test-integration diff --git a/.gitignore b/.gitignore index 17c7189a..a798bffc 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,6 @@ build/ # IDE .idea/ + +# Workspace +go.work* diff --git a/api/sdk/builder/module/v1/module.pulsar.go b/api/sdk/auction/module/v1/module.pulsar.go similarity index 82% rename from api/sdk/builder/module/v1/module.pulsar.go rename to api/sdk/auction/module/v1/module.pulsar.go index 98984819..5d502a37 100644 --- a/api/sdk/builder/module/v1/module.pulsar.go +++ b/api/sdk/auction/module/v1/module.pulsar.go @@ -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 } diff --git a/api/sdk/builder/v1/genesis.pulsar.go b/api/sdk/auction/v1/genesis.pulsar.go similarity index 87% rename from api/sdk/builder/v1/genesis.pulsar.go rename to api/sdk/auction/v1/genesis.pulsar.go index 007467d1..c23f397c 100644 --- a/api/sdk/builder/v1/genesis.pulsar.go +++ b/api/sdk/auction/v1/genesis.pulsar.go @@ -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 } diff --git a/api/sdk/builder/v1/query.pulsar.go b/api/sdk/auction/v1/query.pulsar.go similarity index 86% rename from api/sdk/builder/v1/query.pulsar.go rename to api/sdk/auction/v1/query.pulsar.go index 5ab70b8b..4c94641c 100644 --- a/api/sdk/builder/v1/query.pulsar.go +++ b/api/sdk/auction/v1/query.pulsar.go @@ -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 } diff --git a/api/sdk/builder/v1/query_grpc.pb.go b/api/sdk/auction/v1/query_grpc.pb.go similarity index 91% rename from api/sdk/builder/v1/query_grpc.pb.go rename to api/sdk/auction/v1/query_grpc.pb.go index a3a96112..eb4b2db5 100644 --- a/api/sdk/builder/v1/query_grpc.pb.go +++ b/api/sdk/auction/v1/query_grpc.pb.go @@ -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", } diff --git a/api/sdk/builder/v1/tx.pulsar.go b/api/sdk/auction/v1/tx.pulsar.go similarity index 88% rename from api/sdk/builder/v1/tx.pulsar.go rename to api/sdk/auction/v1/tx.pulsar.go index 43ad578e..34d2bd2f 100644 --- a/api/sdk/builder/v1/tx.pulsar.go +++ b/api/sdk/auction/v1/tx.pulsar.go @@ -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 -} -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 + (*Params)(nil), // 5: sdk.auction.v1.Params +} +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 } diff --git a/api/sdk/builder/v1/tx_grpc.pb.go b/api/sdk/auction/v1/tx_grpc.pb.go similarity index 92% rename from api/sdk/builder/v1/tx_grpc.pb.go rename to api/sdk/auction/v1/tx_grpc.pb.go index 76bd4a2d..8affd5e8 100644 --- a/api/sdk/builder/v1/tx_grpc.pb.go +++ b/api/sdk/auction/v1/tx_grpc.pb.go @@ -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", } diff --git a/block/mempool_test.go b/block/mempool_test.go index 6c729b6d..385123df 100644 --- a/block/mempool_test.go +++ b/block/mempool_test.go @@ -17,7 +17,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" "github.com/stretchr/testify/suite" ) @@ -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) diff --git a/go.work b/go.work deleted file mode 100644 index 90743a35..00000000 --- a/go.work +++ /dev/null @@ -1,3 +0,0 @@ -go 1.20 - -use . diff --git a/go.work.sum b/go.work.sum deleted file mode 100644 index eaf94995..00000000 --- a/go.work.sum +++ /dev/null @@ -1,205 +0,0 @@ -cloud.google.com/go v0.110.2/go.mod h1:k04UEeEtb6ZBRTv3dZz4CeJC3jKGxyhl0sAiVVquxiw= -cloud.google.com/go/accessapproval v1.7.1/go.mod h1:JYczztsHRMK7NTXb6Xw+dwbs/WnOJxbo/2mTI+Kgg68= -cloud.google.com/go/accesscontextmanager v1.8.1/go.mod h1:JFJHfvuaTC+++1iL1coPiG1eu5D24db2wXCDWDjIrxo= -cloud.google.com/go/aiplatform v1.45.0/go.mod h1:Iu2Q7sC7QGhXUeOhAj/oCK9a+ULz1O4AotZiqjQ8MYA= -cloud.google.com/go/analytics v0.21.2/go.mod h1:U8dcUtmDmjrmUTnnnRnI4m6zKn/yaA5N9RlEkYFHpQo= -cloud.google.com/go/apigateway v1.6.1/go.mod h1:ufAS3wpbRjqfZrzpvLC2oh0MFlpRJm2E/ts25yyqmXA= -cloud.google.com/go/apigeeconnect v1.6.1/go.mod h1:C4awq7x0JpLtrlQCr8AzVIzAaYgngRqWf9S5Uhg+wWs= -cloud.google.com/go/apigeeregistry v0.7.1/go.mod h1:1XgyjZye4Mqtw7T9TsY4NW10U7BojBvG4RMD+vRDrIw= -cloud.google.com/go/appengine v1.8.1/go.mod h1:6NJXGLVhZCN9aQ/AEDvmfzKEfoYBlfB80/BHiKVputY= -cloud.google.com/go/area120 v0.8.1/go.mod h1:BVfZpGpB7KFVNxPiQBuHkX6Ed0rS51xIgmGyjrAfzsg= -cloud.google.com/go/artifactregistry v1.14.1/go.mod h1:nxVdG19jTaSTu7yA7+VbWL346r3rIdkZ142BSQqhn5E= -cloud.google.com/go/asset v1.14.1/go.mod h1:4bEJ3dnHCqWCDbWJ/6Vn7GVI9LerSi7Rfdi03hd+WTQ= -cloud.google.com/go/assuredworkloads v1.11.1/go.mod h1:+F04I52Pgn5nmPG36CWFtxmav6+7Q+c5QyJoL18Lry0= -cloud.google.com/go/automl v1.13.1/go.mod h1:1aowgAHWYZU27MybSCFiukPO7xnyawv7pt3zK4bheQE= -cloud.google.com/go/baremetalsolution v0.5.0/go.mod h1:dXGxEkmR9BMwxhzBhV0AioD0ULBmuLZI8CdwalUxuss= -cloud.google.com/go/batch v0.7.0/go.mod h1:vLZN95s6teRUqRQ4s3RLDsH8PvboqBK+rn1oevL159g= -cloud.google.com/go/beyondcorp v0.6.1/go.mod h1:YhxDWw946SCbmcWo3fAhw3V4XZMSpQ/VYfcKGAEU8/4= -cloud.google.com/go/bigquery v1.52.0/go.mod h1:3b/iXjRQGU4nKa87cXeg6/gogLjO8C6PmuM8i5Bi/u4= -cloud.google.com/go/billing v1.16.0/go.mod h1:y8vx09JSSJG02k5QxbycNRrN7FGZB6F3CAcgum7jvGA= -cloud.google.com/go/binaryauthorization v1.6.1/go.mod h1:TKt4pa8xhowwffiBmbrbcxijJRZED4zrqnwZ1lKH51U= -cloud.google.com/go/certificatemanager v1.7.1/go.mod h1:iW8J3nG6SaRYImIa+wXQ0g8IgoofDFRp5UMzaNk1UqI= -cloud.google.com/go/channel v1.16.0/go.mod h1:eN/q1PFSl5gyu0dYdmxNXscY/4Fi7ABmeHCJNf/oHmc= -cloud.google.com/go/cloudbuild v1.10.1/go.mod h1:lyJg7v97SUIPq4RC2sGsz/9tNczhyv2AjML/ci4ulzU= -cloud.google.com/go/clouddms v1.6.1/go.mod h1:Ygo1vL52Ov4TBZQquhz5fiw2CQ58gvu+PlS6PVXCpZI= -cloud.google.com/go/cloudtasks v1.11.1/go.mod h1:a9udmnou9KO2iulGscKR0qBYjreuX8oHwpmFsKspEvM= -cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= -cloud.google.com/go/compute v1.19.1/go.mod h1:6ylj3a05WF8leseCdIf77NK0g1ey+nj5IKd5/kvShxE= -cloud.google.com/go/compute v1.19.3/go.mod h1:qxvISKp/gYnXkSAD1ppcSOveRAmzxicEv/JlizULFrI= -cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= -cloud.google.com/go/contactcenterinsights v1.9.1/go.mod h1:bsg/R7zGLYMVxFFzfh9ooLTruLRCG9fnzhH9KznHhbM= -cloud.google.com/go/container v1.22.1/go.mod h1:lTNExE2R7f+DLbAN+rJiKTisauFCaoDq6NURZ83eVH4= -cloud.google.com/go/containeranalysis v0.10.1/go.mod h1:Ya2jiILITMY68ZLPaogjmOMNkwsDrWBSTyBubGXO7j0= -cloud.google.com/go/datacatalog v1.14.1/go.mod h1:d2CevwTG4yedZilwe+v3E3ZBDRMobQfSG/a6cCCN5R4= -cloud.google.com/go/dataflow v0.9.1/go.mod h1:Wp7s32QjYuQDWqJPFFlnBKhkAtiFpMTdg00qGbnIHVw= -cloud.google.com/go/dataform v0.8.1/go.mod h1:3BhPSiw8xmppbgzeBbmDvmSWlwouuJkXsXsb8UBih9M= -cloud.google.com/go/datafusion v1.7.1/go.mod h1:KpoTBbFmoToDExJUso/fcCiguGDk7MEzOWXUsJo0wsI= -cloud.google.com/go/datalabeling v0.8.1/go.mod h1:XS62LBSVPbYR54GfYQsPXZjTW8UxCK2fkDciSrpRFdY= -cloud.google.com/go/dataplex v1.8.1/go.mod h1:7TyrDT6BCdI8/38Uvp0/ZxBslOslP2X2MPDucliyvSE= -cloud.google.com/go/dataproc v1.12.0/go.mod h1:zrF3aX0uV3ikkMz6z4uBbIKyhRITnxvr4i3IjKsKrw4= -cloud.google.com/go/dataqna v0.8.1/go.mod h1:zxZM0Bl6liMePWsHA8RMGAfmTG34vJMapbHAxQ5+WA8= -cloud.google.com/go/datastore v1.12.0/go.mod h1:KjdB88W897MRITkvWWJrg2OUtrR5XVj1EoLgSp6/N70= -cloud.google.com/go/datastream v1.9.1/go.mod h1:hqnmr8kdUBmrnk65k5wNRoHSCYksvpdZIcZIEl8h43Q= -cloud.google.com/go/deploy v1.11.0/go.mod h1:tKuSUV5pXbn67KiubiUNUejqLs4f5cxxiCNCeyl0F2g= -cloud.google.com/go/dialogflow v1.38.0/go.mod h1:L7jnH+JL2mtmdChzAIcXQHXMvQkE3U4hTaNltEuxXn4= -cloud.google.com/go/dlp v1.10.1/go.mod h1:IM8BWz1iJd8njcNcG0+Kyd9OPnqnRNkDV8j42VT5KOI= -cloud.google.com/go/documentai v1.20.0/go.mod h1:yJkInoMcK0qNAEdRnqY/D5asy73tnPe88I1YTZT+a8E= -cloud.google.com/go/domains v0.9.1/go.mod h1:aOp1c0MbejQQ2Pjf1iJvnVyT+z6R6s8pX66KaCSDYfE= -cloud.google.com/go/edgecontainer v1.1.1/go.mod h1:O5bYcS//7MELQZs3+7mabRqoWQhXCzenBu0R8bz2rwk= -cloud.google.com/go/errorreporting v0.3.0/go.mod h1:xsP2yaAp+OAW4OIm60An2bbLpqIhKXdWR/tawvl7QzU= -cloud.google.com/go/essentialcontacts v1.6.2/go.mod h1:T2tB6tX+TRak7i88Fb2N9Ok3PvY3UNbUsMag9/BARh4= -cloud.google.com/go/eventarc v1.12.1/go.mod h1:mAFCW6lukH5+IZjkvrEss+jmt2kOdYlN8aMx3sRJiAI= -cloud.google.com/go/filestore v1.7.1/go.mod h1:y10jsorq40JJnjR/lQ8AfFbbcGlw3g+Dp8oN7i7FjV4= -cloud.google.com/go/firestore v1.11.0/go.mod h1:b38dKhgzlmNNGTNZZwe7ZRFEuRab1Hay3/DBsIGKKy4= -cloud.google.com/go/functions v1.15.1/go.mod h1:P5yNWUTkyU+LvW/S9O6V+V423VZooALQlqoXdoPz5AE= -cloud.google.com/go/gaming v1.10.1/go.mod h1:XQQvtfP8Rb9Rxnxm5wFVpAp9zCQkJi2bLIb7iHGwB3s= -cloud.google.com/go/gkebackup v0.4.0/go.mod h1:byAyBGUwYGEEww7xsbnUTBHIYcOPy/PgUWUtOeRm9Vg= -cloud.google.com/go/gkeconnect v0.8.1/go.mod h1:KWiK1g9sDLZqhxB2xEuPV8V9NYzrqTUmQR9shJHpOZw= -cloud.google.com/go/gkehub v0.14.1/go.mod h1:VEXKIJZ2avzrbd7u+zeMtW00Y8ddk/4V9511C9CQGTY= -cloud.google.com/go/gkemulticloud v0.6.1/go.mod h1:kbZ3HKyTsiwqKX7Yw56+wUGwwNZViRnxWK2DVknXWfw= -cloud.google.com/go/gsuiteaddons v1.6.1/go.mod h1:CodrdOqRZcLp5WOwejHWYBjZvfY0kOphkAKpF/3qdZY= -cloud.google.com/go/iam v0.13.0/go.mod h1:ljOg+rcNfzZ5d6f1nAUJ8ZIxOaZUVoS14bKCtaLZ/D0= -cloud.google.com/go/iap v1.8.1/go.mod h1:sJCbeqg3mvWLqjZNsI6dfAtbbV1DL2Rl7e1mTyXYREQ= -cloud.google.com/go/ids v1.4.1/go.mod h1:np41ed8YMU8zOgv53MMMoCntLTn2lF+SUzlM+O3u/jw= -cloud.google.com/go/iot v1.7.1/go.mod h1:46Mgw7ev1k9KqK1ao0ayW9h0lI+3hxeanz+L1zmbbbk= -cloud.google.com/go/kms v1.12.1/go.mod h1:c9J991h5DTl+kg7gi3MYomh12YEENGrf48ee/N/2CDM= -cloud.google.com/go/language v1.10.1/go.mod h1:CPp94nsdVNiQEt1CNjF5WkTcisLiHPyIbMhvR8H2AW0= -cloud.google.com/go/lifesciences v0.9.1/go.mod h1:hACAOd1fFbCGLr/+weUKRAJas82Y4vrL3O5326N//Wc= -cloud.google.com/go/logging v1.7.0/go.mod h1:3xjP2CjkM3ZkO73aj4ASA5wRPGGCRrPIAeNqVNkzY8M= -cloud.google.com/go/longrunning v0.4.2/go.mod h1:OHrnaYyLUV6oqwh0xiS7e5sLQhP1m0QU9R+WhGDMgIQ= -cloud.google.com/go/longrunning v0.5.1/go.mod h1:spvimkwdz6SPWKEt/XBij79E9fiTkHSQl/fRUUQJYJc= -cloud.google.com/go/managedidentities v1.6.1/go.mod h1:h/irGhTN2SkZ64F43tfGPMbHnypMbu4RB3yl8YcuEak= -cloud.google.com/go/maps v0.7.0/go.mod h1:3GnvVl3cqeSvgMcpRlQidXsPYuDGQ8naBis7MVzpXsY= -cloud.google.com/go/mediatranslation v0.8.1/go.mod h1:L/7hBdEYbYHQJhX2sldtTO5SZZ1C1vkapubj0T2aGig= -cloud.google.com/go/memcache v1.10.1/go.mod h1:47YRQIarv4I3QS5+hoETgKO40InqzLP6kpNLvyXuyaA= -cloud.google.com/go/metastore v1.11.1/go.mod h1:uZuSo80U3Wd4zi6C22ZZliOUJ3XeM/MlYi/z5OAOWRA= -cloud.google.com/go/monitoring v1.15.1/go.mod h1:lADlSAlFdbqQuwwpaImhsJXu1QSdd3ojypXrFSMr2rM= -cloud.google.com/go/networkconnectivity v1.12.1/go.mod h1:PelxSWYM7Sh9/guf8CFhi6vIqf19Ir/sbfZRUwXh92E= -cloud.google.com/go/networkmanagement v1.8.0/go.mod h1:Ho/BUGmtyEqrttTgWEe7m+8vDdK74ibQc+Be0q7Fof0= -cloud.google.com/go/networksecurity v0.9.1/go.mod h1:MCMdxOKQ30wsBI1eI659f9kEp4wuuAueoC9AJKSPWZQ= -cloud.google.com/go/notebooks v1.9.1/go.mod h1:zqG9/gk05JrzgBt4ghLzEepPHNwE5jgPcHZRKhlC1A8= -cloud.google.com/go/optimization v1.4.1/go.mod h1:j64vZQP7h9bO49m2rVaTVoNM0vEBEN5eKPUPbZyXOrk= -cloud.google.com/go/orchestration v1.8.1/go.mod h1:4sluRF3wgbYVRqz7zJ1/EUNc90TTprliq9477fGobD8= -cloud.google.com/go/orgpolicy v1.11.1/go.mod h1:8+E3jQcpZJQliP+zaFfayC2Pg5bmhuLK755wKhIIUCE= -cloud.google.com/go/osconfig v1.12.1/go.mod h1:4CjBxND0gswz2gfYRCUoUzCm9zCABp91EeTtWXyz0tE= -cloud.google.com/go/oslogin v1.10.1/go.mod h1:x692z7yAue5nE7CsSnoG0aaMbNoRJRXO4sn73R+ZqAs= -cloud.google.com/go/phishingprotection v0.8.1/go.mod h1:AxonW7GovcA8qdEk13NfHq9hNx5KPtfxXNeUxTDxB6I= -cloud.google.com/go/policytroubleshooter v1.7.1/go.mod h1:0NaT5v3Ag1M7U5r0GfDCpUFkWd9YqpubBWsQlhanRv0= -cloud.google.com/go/privatecatalog v0.9.1/go.mod h1:0XlDXW2unJXdf9zFz968Hp35gl/bhF4twwpXZAW50JA= -cloud.google.com/go/pubsub v1.32.0/go.mod h1:f+w71I33OMyxf9VpMVcZbnG5KSUkCOUHYpFd5U1GdRc= -cloud.google.com/go/pubsublite v1.8.1/go.mod h1:fOLdU4f5xldK4RGJrBMm+J7zMWNj/k4PxwEZXy39QS0= -cloud.google.com/go/recaptchaenterprise/v2 v2.7.2/go.mod h1:kR0KjsJS7Jt1YSyWFkseQ756D45kaYNTlDPPaRAvDBU= -cloud.google.com/go/recommendationengine v0.8.1/go.mod h1:MrZihWwtFYWDzE6Hz5nKcNz3gLizXVIDI/o3G1DLcrE= -cloud.google.com/go/recommender v1.10.1/go.mod h1:XFvrE4Suqn5Cq0Lf+mCP6oBHD/yRMA8XxP5sb7Q7gpA= -cloud.google.com/go/redis v1.13.1/go.mod h1:VP7DGLpE91M6bcsDdMuyCm2hIpB6Vp2hI090Mfd1tcg= -cloud.google.com/go/resourcemanager v1.9.1/go.mod h1:dVCuosgrh1tINZ/RwBufr8lULmWGOkPS8gL5gqyjdT8= -cloud.google.com/go/resourcesettings v1.6.1/go.mod h1:M7mk9PIZrC5Fgsu1kZJci6mpgN8o0IUzVx3eJU3y4Jw= -cloud.google.com/go/retail v1.14.1/go.mod h1:y3Wv3Vr2k54dLNIrCzenyKG8g8dhvhncT2NcNjb/6gE= -cloud.google.com/go/run v0.9.0/go.mod h1:Wwu+/vvg8Y+JUApMwEDfVfhetv30hCG4ZwDR/IXl2Qg= -cloud.google.com/go/scheduler v1.10.1/go.mod h1:R63Ldltd47Bs4gnhQkmNDse5w8gBRrhObZ54PxgR2Oo= -cloud.google.com/go/secretmanager v1.11.1/go.mod h1:znq9JlXgTNdBeQk9TBW/FnR/W4uChEKGeqQWAJ8SXFw= -cloud.google.com/go/security v1.15.1/go.mod h1:MvTnnbsWnehoizHi09zoiZob0iCHVcL4AUBj76h9fXA= -cloud.google.com/go/securitycenter v1.23.0/go.mod h1:8pwQ4n+Y9WCWM278R8W3nF65QtY172h4S8aXyI9/hsQ= -cloud.google.com/go/servicedirectory v1.10.1/go.mod h1:Xv0YVH8s4pVOwfM/1eMTl0XJ6bzIOSLDt8f8eLaGOxQ= -cloud.google.com/go/shell v1.7.1/go.mod h1:u1RaM+huXFaTojTbW4g9P5emOrrmLE69KrxqQahKn4g= -cloud.google.com/go/spanner v1.47.0/go.mod h1:IXsJwVW2j4UKs0eYDqodab6HgGuA1bViSqW4uH9lfUI= -cloud.google.com/go/speech v1.17.1/go.mod h1:8rVNzU43tQvxDaGvqOhpDqgkJTFowBpDvCJ14kGlJYo= -cloud.google.com/go/storagetransfer v1.10.0/go.mod h1:DM4sTlSmGiNczmV6iZyceIh2dbs+7z2Ayg6YAiQlYfA= -cloud.google.com/go/talent v1.6.2/go.mod h1:CbGvmKCG61mkdjcqTcLOkb2ZN1SrQI8MDyma2l7VD24= -cloud.google.com/go/texttospeech v1.7.1/go.mod h1:m7QfG5IXxeneGqTapXNxv2ItxP/FS0hCZBwXYqucgSk= -cloud.google.com/go/tpu v1.6.1/go.mod h1:sOdcHVIgDEEOKuqUoi6Fq53MKHJAtOwtz0GuKsWSH3E= -cloud.google.com/go/trace v1.10.1/go.mod h1:gbtL94KE5AJLH3y+WVpfWILmqgc6dXcqgNXdOPAQTYk= -cloud.google.com/go/translate v1.8.1/go.mod h1:d1ZH5aaOA0CNhWeXeC8ujd4tdCFw8XoNWRljklu5RHs= -cloud.google.com/go/video v1.17.1/go.mod h1:9qmqPqw/Ib2tLqaeHgtakU+l5TcJxCJbhFXM7UJjVzU= -cloud.google.com/go/videointelligence v1.11.1/go.mod h1:76xn/8InyQHarjTWsBR058SmlPCwQjgcvoW0aZykOvo= -cloud.google.com/go/vision/v2 v2.7.2/go.mod h1:jKa8oSYBWhYiXarHPvP4USxYANYUEdEsQrloLjrSwJU= -cloud.google.com/go/vmmigration v1.7.1/go.mod h1:WD+5z7a/IpZ5bKK//YmT9E047AD+rjycCAvyMxGJbro= -cloud.google.com/go/vmwareengine v0.4.1/go.mod h1:Px64x+BvjPZwWuc4HdmVhoygcXqEkGHXoa7uyfTgSI0= -cloud.google.com/go/vpcaccess v1.7.1/go.mod h1:FogoD46/ZU+JUBX9D606X21EnxiszYi2tArQwLY4SXs= -cloud.google.com/go/webrisk v1.9.1/go.mod h1:4GCmXKcOa2BZcZPn6DCEvE7HypmEJcJkr4mtM+sqYPc= -cloud.google.com/go/websecurityscanner v1.6.1/go.mod h1:Njgaw3rttgRHXzwCB8kgCYqv5/rGpFCsBOvPbYgszpg= -cloud.google.com/go/workflows v1.11.1/go.mod h1:Z+t10G1wF7h8LgdY/EmRcQY8ptBD/nvofaL6FqlET6g= -github.com/DataDog/zstd v1.5.5/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= -github.com/alecthomas/kingpin/v2 v2.3.2/go.mod h1:0gyi0zQnjuFk8xrkNKamJoyUo382HRL7ATRpFZCw6tE= -github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= -github.com/bits-and-blooms/bitset v1.8.0 h1:FD+XqgOZDUxxZ8hzoBFuV9+cGWY9CslN6d5MS5JVb4c= -github.com/bits-and-blooms/bitset v1.8.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= -github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= -github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= -github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cockroachdb/errors v1.9.1 h1:yFVvsI0VxmRShfawbt/laCIDy/mtTqqnvoNgiy5bEV8= -github.com/cockroachdb/redact v1.1.3 h1:AKZds10rFSIj7qADf0g46UixK8NNLwWTNdCIGS5wfSQ= -github.com/cosmos/cosmos-db v0.0.0-20221226095112-f3c38ecb5e32 h1:zlCp9n3uwQieELltZWHRmwPmPaZ8+XoL2Sj+A2YJlr8= -github.com/cosmos/cosmos-db v1.0.0 h1:EVcQZ+qYag7W6uorBKFPvX6gRjw6Uq2hIh4hCWjuQ0E= -github.com/cosmos/iavl v1.0.0-beta.2 h1:XOsIM80Yyml/KifCXEYOy9tWCXwMAbLa91n6pReW07Y= -github.com/cosmos/iavl v1.0.0-beta.2/go.mod h1:EA97dJ07TBktRlG/iGzK6g1eCXNj1q3MGoFYkVzrwHE= -github.com/creachadair/atomicfile v0.3.1 h1:yQORkHjSYySh/tv5th1dkKcn02NEW5JleB84sjt+W4Q= -github.com/creachadair/atomicfile v0.3.1/go.mod h1:mwfrkRxFKwpNAflYZzytbSwxvbK6fdGRRlp0KEQc0qU= -github.com/creachadair/tomledit v0.0.24 h1:5Xjr25R2esu1rKCbQEmjZYlrhFkDspoAbAKb6QKQDhQ= -github.com/creachadair/tomledit v0.0.24/go.mod h1:9qHbShRWQzSCcn617cMzg4eab1vbLCOjOshAWSzWr8U= -github.com/creack/pty v1.1.9 h1:uDmaGzcdjhF4i/plgjmEsriH11Y0o7RKapEf/LDaM3w= -github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs= -github.com/docker/distribution v2.8.1+incompatible h1:Q50tZOPR6T/hjNsyc9g8/syEs6bk8XXApsHjKukMl68= -github.com/docker/docker v20.10.19+incompatible h1:lzEmjivyNHFHMNAFLXORMBXyGIhw/UP4DvJwvyKYq64= -github.com/emicklei/dot v1.5.0 h1:tc9eKdCBTgoR68vJ6OcgMtI0SdrGDwLPPVaPA6XhX50= -github.com/emicklei/dot v1.5.0/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= -github.com/envoyproxy/go-control-plane v0.11.1-0.20230524094728-9239064ad72f/go.mod h1:sfYdkwUW4BA3PbKjySwjJy+O4Pu0h62rlqCMHNk+K+Q= -github.com/envoyproxy/protoc-gen-validate v0.10.1/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= -github.com/getsentry/sentry-go v0.17.0 h1:UustVWnOoDFHBS7IJUB2QK/nB5pap748ZEp0swnQJak= -github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= -github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= -github.com/google/martian/v3 v3.3.2/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= -github.com/googleapis/gax-go/v2 v2.10.0/go.mod h1:4UOEnMCrxsSqQ940WnTiD6qJ63le2ev3xfyagutxiPw= -github.com/hashicorp/go-metrics v0.5.1 h1:rfPwUqFU6uZXNvGl4hzjY8LEBsqFVU4si1H9/Hqck/U= -github.com/hashicorp/go-metrics v0.5.1/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE= -github.com/hashicorp/go-plugin v1.4.10 h1:xUbmA4jC6Dq163/fWcp8P3JuHilrHHMLNRxzGQJ9hNk= -github.com/hashicorp/go-plugin v1.4.10/go.mod h1:6/1TEzT0eQznvI/gV2CM29DLSkAK/e58mUWKVsPaph0= -github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= -github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= -github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/linxGnu/grocksdb v1.8.0/go.mod h1:09CeBborffXhXdNpEcOeZrLKEnRtrZFEpFdPNI9Zjjg= -github.com/moby/term v0.0.0-20220808134915-39b0c02b01ae h1:O4SWKdcHVCvYqyDV+9CJA1fcDN2L11Bule0iFy3YlAI= -github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= -github.com/oasisprotocol/curve25519-voi v0.0.0-20230110094441-db37f07504ce h1:/pEpMk55wH0X+E5zedGEMOdLuWmV8P4+4W3+LZaM6kg= -github.com/oasisprotocol/curve25519-voi v0.0.0-20230110094441-db37f07504ce/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= -github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= -github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= -github.com/prometheus/client_golang v1.15.1/go.mod h1:e9yaBhRPU2pPNsZwE+JdQl0KEt1N9XgF6zxWmaC0xOk= -github.com/prometheus/procfs v0.10.1/go.mod h1:nwNm2aOCAYw8uTR/9bWRREkZFxAUcWzPHWJq+XBB/FM= -github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= -github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= -github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU= -go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= -golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.11.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= -golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/oauth2 v0.5.0/go.mod h1:9/XBHVqLaWO3/BRHs5jbpYCnOZVjj5V0ndyaAM7KB4I= -golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4= -golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/time v0.0.0-20220609170525-579cf78fd858 h1:Dpdu/EMxGMFgq0CeYMh4fazTD2vtlZRYE7wyynxJb9U= -golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4= -google.golang.org/api v0.125.0/go.mod h1:mBwVAtz+87bEN6CbA1GtZPDOqY2R5ONPqJeIlvyo4Aw= -google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU= -google.golang.org/genproto v0.0.0-20230525234025-438c736192d0/go.mod h1:9ExIQyXL5hZrHzQceCwuSYwZZ5QZBazOcprJ5rgs3lY= -google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64= -google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= -google.golang.org/genproto/googleapis/bytestream v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:ylj+BE99M198VPbBh6A8d9n3w8fChvyLK3wwBOjXBFA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230629202037-9506855d4529/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= -google.golang.org/grpc v1.54.0/go.mod h1:PUSEXI6iWghWaB6lXM4knEgpJNu2qUcKfDtNci3EC2g= -google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= -google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gotest.tools/v3 v3.5.0/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU= diff --git a/lanes/mev/README.md b/lanes/mev/README.md index cba50e05..2e959d49 100644 --- a/lanes/mev/README.md +++ b/lanes/mev/README.md @@ -16,10 +16,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. @@ -34,7 +34,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 @@ -43,10 +43,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" ... ) ``` @@ -64,13 +64,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. @@ -84,20 +84,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, ... } ``` @@ -148,7 +148,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. @@ -156,8 +156,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, @@ -177,19 +177,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, @@ -199,7 +199,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), ... ) ``` @@ -245,7 +245,7 @@ NOTE: This example walks through setting up the MEV and Default lanes. ```go genesisModuleOrder := []string{ - buildertypes.ModuleName, + auctiontypes.ModuleName, ..., } ``` diff --git a/lanes/mev/abci.go b/lanes/mev/abci.go index dcdd0793..c62b759d 100644 --- a/lanes/mev/abci.go +++ b/lanes/mev/abci.go @@ -8,7 +8,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 diff --git a/lanes/mev/check_tx.go b/lanes/mev/check_tx.go index fa062f47..b6698012 100644 --- a/lanes/mev/check_tx.go +++ b/lanes/mev/check_tx.go @@ -9,7 +9,8 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" 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 ( diff --git a/lanes/mev/factory.go b/lanes/mev/factory.go index 79fa05b4..ff2b3b14 100644 --- a/lanes/mev/factory.go +++ b/lanes/mev/factory.go @@ -6,7 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "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 ( diff --git a/lanes/mev/lane.go b/lanes/mev/lane.go index cfa69e5f..8d366a9b 100644 --- a/lanes/mev/lane.go +++ b/lanes/mev/lane.go @@ -23,7 +23,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 diff --git a/lanes/mev/mempool.go b/lanes/mev/mempool.go index 487f0ad9..b74a71d7 100644 --- a/lanes/mev/mempool.go +++ b/lanes/mev/mempool.go @@ -51,7 +51,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 { diff --git a/lanes/mev/utils.go b/lanes/mev/utils.go index e69cbe40..7802ddd0 100644 --- a/lanes/mev/utils.go +++ b/lanes/mev/utils.go @@ -4,16 +4,17 @@ import ( "errors" 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, 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) } diff --git a/lanes/mev/utils_test.go b/lanes/mev/utils_test.go index 3b3c3745..9644ba74 100644 --- a/lanes/mev/utils_test.go +++ b/lanes/mev/utils_test.go @@ -6,7 +6,7 @@ import ( banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "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" "github.com/stretchr/testify/require" ) @@ -14,7 +14,7 @@ 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) @@ -26,8 +26,8 @@ func TestGetMsgAuctionBidFromTx_MultiMsgBid(t *testing.T) { txBuilder := encCfg.TxConfig.NewTxBuilder() txBuilder.SetMsgs( - &buildertypes.MsgAuctionBid{}, - &buildertypes.MsgAuctionBid{}, + &auctiontypes.MsgAuctionBid{}, + &auctiontypes.MsgAuctionBid{}, &banktypes.MsgSend{}, ) diff --git a/proto/sdk/builder/module/v1/module.proto b/proto/sdk/auction/module/v1/module.proto similarity index 64% rename from proto/sdk/builder/module/v1/module.proto rename to proto/sdk/auction/module/v1/module.proto index ab5cedec..af268a56 100644 --- a/proto/sdk/builder/module/v1/module.proto +++ b/proto/sdk/auction/module/v1/module.proto @@ -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 diff --git a/proto/sdk/builder/v1/genesis.proto b/proto/sdk/auction/v1/genesis.proto similarity index 84% rename from proto/sdk/builder/v1/genesis.proto rename to proto/sdk/auction/v1/genesis.proto index 1a6c2b9a..ac0b7eb5 100644 --- a/proto/sdk/builder/v1/genesis.proto +++ b/proto/sdk/auction/v1/genesis.proto @@ -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. diff --git a/proto/sdk/builder/v1/query.proto b/proto/sdk/auction/v1/query.proto similarity index 66% rename from proto/sdk/builder/v1/query.proto rename to proto/sdk/auction/v1/query.proto index 5efb1656..2eaa41c8 100644 --- a/proto/sdk/builder/v1/query.proto +++ b/proto/sdk/auction/v1/query.proto @@ -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"; } } diff --git a/proto/sdk/builder/v1/tx.proto b/proto/sdk/auction/v1/tx.proto similarity index 74% rename from proto/sdk/builder/v1/tx.proto rename to proto/sdk/auction/v1/tx.proto index 5a9af552..95cb0d40 100644 --- a/proto/sdk/builder/v1/tx.proto +++ b/proto/sdk/auction/v1/tx.proto @@ -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 ]; } diff --git a/tests/app/ante.go b/tests/app/ante.go index 84a5c1e1..271b261b 100644 --- a/tests/app/ante.go +++ b/tests/app/ante.go @@ -5,17 +5,17 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth/ante" "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 AnteHandlerOptions 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 } @@ -54,7 +54,7 @@ func NewAnteHandler(options AnteHandlerOptions) 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...) diff --git a/tests/app/app.go b/tests/app/app.go index c5e51257..83979962 100644 --- a/tests/app/app.go +++ b/tests/app/app.go @@ -71,8 +71,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 ( @@ -113,7 +113,8 @@ var ( vesting.AppModuleBasic{}, nftmodule.AppModuleBasic{}, consensus.AppModuleBasic{}, - buildermodule.AppModuleBasic{}, + auctionmodule.AppModuleBasic{}, + feegrantmodule.AppModuleBasic{}, ) ) @@ -143,10 +144,10 @@ type TestApp struct { ParamsKeeper paramskeeper.Keeper AuthzKeeper authzkeeper.Keeper EvidenceKeeper evidencekeeper.Keeper - FeeGrantKeeper feegrantkeeper.Keeper GroupKeeper groupkeeper.Keeper ConsensusParamsKeeper consensuskeeper.Keeper - BuilderKeeper builderkeeper.Keeper + Auctionkeeper auctionkeeper.Keeper + FeeGrantKeeper feegrantkeeper.Keeper // custom checkTx handler checkTxHandler mev.CheckTx @@ -226,7 +227,7 @@ func New( &app.EvidenceKeeper, &app.FeeGrantKeeper, &app.GroupKeeper, - &app.BuilderKeeper, + &app.Auctionkeeper, &app.ConsensusParamsKeeper, ); err != nil { panic(err) @@ -319,7 +320,7 @@ func New( } options := AnteHandlerOptions{ BaseOptions: handlerOptions, - BuilderKeeper: app.BuilderKeeper, + auctionkeeper: app.Auctionkeeper, TxDecoder: app.txConfig.TxDecoder(), TxEncoder: app.txConfig.TxEncoder(), FreeLane: freeLane, diff --git a/tests/app/config.go b/tests/app/config.go index 2f9210eb..97787e7f 100644 --- a/tests/app/config.go +++ b/tests/app/config.go @@ -41,10 +41,12 @@ import ( paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - buildermodulev1 "github.com/skip-mev/block-sdk/api/sdk/builder/module/v1" - buildertypes "github.com/skip-mev/block-sdk/x/builder/types" "google.golang.org/protobuf/types/known/durationpb" + + + auctionmodulev1 "github.com/skip-mev/block-sdk/api/sdk/auction/module/v1" + auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" + upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" ) var ( @@ -60,7 +62,7 @@ var ( distrtypes.ModuleName, stakingtypes.ModuleName, slashingtypes.ModuleName, govtypes.ModuleName, minttypes.ModuleName, crisistypes.ModuleName, genutiltypes.ModuleName, evidencetypes.ModuleName, authz.ModuleName, feegrant.ModuleName, group.ModuleName, paramstypes.ModuleName, upgradetypes.ModuleName, - vestingtypes.ModuleName, consensustypes.ModuleName, buildertypes.ModuleName, + vestingtypes.ModuleName, consensustypes.ModuleName, auctiontypes.ModuleName, } // module account permissions @@ -71,7 +73,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 @@ -115,7 +117,7 @@ var ( group.ModuleName, paramstypes.ModuleName, vestingtypes.ModuleName, - buildertypes.ModuleName, + auctiontypes.ModuleName, consensustypes.ModuleName, }, EndBlockers: []string{ @@ -129,15 +131,15 @@ var ( slashingtypes.ModuleName, minttypes.ModuleName, genutiltypes.ModuleName, - evidencetypes.ModuleName, authz.ModuleName, + evidencetypes.ModuleName, feegrant.ModuleName, group.ModuleName, paramstypes.ModuleName, consensustypes.ModuleName, upgradetypes.ModuleName, vestingtypes.ModuleName, - buildertypes.ModuleName, + auctiontypes.ModuleName, }, OverrideStoreKeys: []*runtimev1alpha1.StoreKeyConfig{ { @@ -237,8 +239,8 @@ var ( Config: appconfig.WrapAny(&consensusmodulev1.Module{}), }, { - Name: buildertypes.ModuleName, - Config: appconfig.WrapAny(&buildermodulev1.Module{}), + Name: auctiontypes.ModuleName, + Config: appconfig.WrapAny(&auctionmodulev1.Module{}), }, }, }) diff --git a/tests/integration/chain_setup.go b/tests/integration/chain_setup.go index 90b531bd..4c677d2b 100644 --- a/tests/integration/chain_setup.go +++ b/tests/integration/chain_setup.go @@ -16,7 +16,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - buildertypes "github.com/skip-mev/block-sdk/x/builder/types" interchaintest "github.com/strangelove-ventures/interchaintest/v7" "github.com/strangelove-ventures/interchaintest/v7/chain/cosmos" "github.com/strangelove-ventures/interchaintest/v7/ibc" @@ -26,6 +25,8 @@ import ( "golang.org/x/sync/errgroup" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" + + auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" ) // ChainBuilderFromChainSpec creates an interchaintest chain builder factory given a ChainSpec @@ -148,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 { @@ -160,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, @@ -220,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) @@ -229,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 diff --git a/tests/integration/pob_integration_test.go b/tests/integration/pob_integration_test.go index 3973d9e0..5a3a4c62 100644 --- a/tests/integration/pob_integration_test.go +++ b/tests/integration/pob_integration_test.go @@ -6,11 +6,12 @@ import ( testutil "github.com/cosmos/cosmos-sdk/types/module/testutil" "github.com/skip-mev/block-sdk/tests/integration" - buildertypes "github.com/skip-mev/block-sdk/x/builder/types" "github.com/strangelove-ventures/interchaintest/v7" "github.com/strangelove-ventures/interchaintest/v7/chain/cosmos" "github.com/strangelove-ventures/interchaintest/v7/ibc" "github.com/stretchr/testify/suite" + + auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" ) var ( @@ -30,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, }, } @@ -69,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 } diff --git a/tests/integration/pob_suite.go b/tests/integration/pob_suite.go index 1a926e06..2f26b107 100644 --- a/tests/integration/pob_suite.go +++ b/tests/integration/pob_suite.go @@ -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) diff --git a/testutils/utils.go b/testutils/utils.go index c5a82549..0630aef6 100644 --- a/testutils/utils.go +++ b/testutils/utils.go @@ -16,7 +16,8 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth/tx" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - buildertypes "github.com/skip-mev/block-sdk/x/builder/types" + + auctiontypes "github.com/skip-mev/block-sdk/x/auction/types" ) type EncodingConfig struct { @@ -32,7 +33,7 @@ func CreateTestEncodingConfig() EncodingConfig { banktypes.RegisterInterfaces(interfaceRegistry) cryptocodec.RegisterInterfaces(interfaceRegistry) - buildertypes.RegisterInterfaces(interfaceRegistry) + auctiontypes.RegisterInterfaces(interfaceRegistry) stakingtypes.RegisterInterfaces(interfaceRegistry) codec := codec.NewProtoCodec(interfaceRegistry) @@ -183,7 +184,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)), @@ -230,7 +231,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)), @@ -299,8 +300,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), diff --git a/x/builder/ante/ante.go b/x/auction/ante/ante.go similarity index 74% rename from x/builder/ante/ante.go rename to x/auction/ante/ante.go index 5f6f5f64..e5538f58 100644 --- a/x/builder/ante/ante.go +++ b/x/auction/ante/ante.go @@ -7,11 +7,12 @@ 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 @@ -26,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, @@ -46,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 } @@ -62,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 } @@ -72,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 } @@ -95,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") } } @@ -105,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 diff --git a/x/builder/ante/ante_test.go b/x/auction/ante/ante_test.go similarity index 91% rename from x/builder/ante/ante_test.go rename to x/auction/ante/ante_test.go index e884191c..40cae416 100644 --- a/x/builder/ante/ante_test.go +++ b/x/auction/ante/ante_test.go @@ -17,9 +17,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" "github.com/stretchr/testify/suite" ) @@ -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) diff --git a/x/builder/client/cli/query.go b/x/auction/client/cli/query.go similarity index 84% rename from x/builder/client/cli/query.go rename to x/auction/client/cli/query.go index b69c5a42..b6d20bdf 100644 --- a/x/builder/client/cli/query.go +++ b/x/auction/client/cli/query.go @@ -6,11 +6,12 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/skip-mev/block-sdk/x/builder/types" "github.com/spf13/cobra" + + "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, @@ -27,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) diff --git a/x/builder/client/cli/tx.go b/x/auction/client/cli/tx.go similarity index 92% rename from x/builder/client/cli/tx.go rename to x/auction/client/cli/tx.go index e1ab60a2..0b23ca5e 100644 --- a/x/builder/client/cli/tx.go +++ b/x/auction/client/cli/tx.go @@ -10,16 +10,17 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/skip-mev/block-sdk/x/builder/types" "github.com/spf13/cobra" + + "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, diff --git a/x/builder/keeper/auction.go b/x/auction/keeper/auction.go similarity index 99% rename from x/builder/keeper/auction.go rename to x/auction/keeper/auction.go index 21d79337..f29d585a 100644 --- a/x/builder/keeper/auction.go +++ b/x/auction/keeper/auction.go @@ -4,7 +4,8 @@ import ( "fmt" 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. diff --git a/x/builder/keeper/auction_test.go b/x/auction/keeper/auction_test.go similarity index 95% rename from x/builder/keeper/auction_test.go rename to x/auction/keeper/auction_test.go index 69109f5c..37714da1 100644 --- a/x/builder/keeper/auction_test.go +++ b/x/auction/keeper/auction_test.go @@ -7,8 +7,8 @@ import ( "cosmossdk.io/math" 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() { @@ -158,11 +158,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, @@ -178,7 +178,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) @@ -207,7 +207,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 { @@ -316,7 +316,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 { diff --git a/x/builder/keeper/errors.go b/x/auction/keeper/errors.go similarity index 100% rename from x/builder/keeper/errors.go rename to x/auction/keeper/errors.go diff --git a/x/builder/keeper/genesis.go b/x/auction/keeper/genesis.go similarity index 70% rename from x/builder/keeper/genesis.go rename to x/auction/keeper/genesis.go index 9969cb58..f7a3ac11 100644 --- a/x/builder/keeper/genesis.go +++ b/x/auction/keeper/genesis.go @@ -2,12 +2,13 @@ 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) } @@ -15,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) diff --git a/x/builder/keeper/grpc_query.go b/x/auction/keeper/grpc_query.go similarity index 68% rename from x/builder/keeper/grpc_query.go rename to x/auction/keeper/grpc_query.go index 6ce60ff5..95a25123 100644 --- a/x/builder/keeper/grpc_query.go +++ b/x/auction/keeper/grpc_query.go @@ -4,22 +4,23 @@ import ( "context" 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) diff --git a/x/builder/keeper/keeper.go b/x/auction/keeper/keeper.go similarity index 82% rename from x/builder/keeper/keeper.go rename to x/auction/keeper/keeper.go index 90fc1a40..5962158f 100644 --- a/x/builder/keeper/keeper.go +++ b/x/auction/keeper/keeper.go @@ -8,8 +8,9 @@ import ( "github.com/cosmos/cosmos-sdk/codec" storetypes "github.com/cosmos/cosmos-sdk/store/types" 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/cometbft/cometbft/libs/log" + "github.com/skip-mev/block-sdk/x/auction/rewards" + "github.com/skip-mev/block-sdk/x/auction/types" ) type Keeper struct { @@ -63,9 +64,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{ @@ -77,12 +78,17 @@ func NewKeeperWithRewardsAddressProvider( } } +// Logger returns a auction module-specific logger. +func (k Keeper) Logger(ctx sdk.Context) log.Logger { + return ctx.Logger().With("module", "x/"+types.ModuleName) +} + // GetAuthority returns the address that is capable of executing a MsgUpdateParams message. 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) @@ -90,7 +96,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{} @@ -101,7 +107,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) @@ -125,7 +131,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 { @@ -135,7 +141,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 { @@ -145,7 +151,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 { @@ -155,7 +161,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 { diff --git a/x/builder/keeper/keeper_test.go b/x/auction/keeper/keeper_test.go similarity index 85% rename from x/builder/keeper/keeper_test.go rename to x/auction/keeper/keeper_test.go index b2340f5c..10ae0abe 100644 --- a/x/builder/keeper/keeper_test.go +++ b/x/auction/keeper/keeper_test.go @@ -8,8 +8,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "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" ) @@ -17,7 +17,7 @@ import ( type KeeperTestSuite struct { suite.Suite - builderKeeper keeper.Keeper + auctionkeeper keeper.Keeper bankKeeper *testutils.MockBankKeeper accountKeeper *testutils.MockAccountKeeper distrKeeper *testutils.MockDistributionKeeper @@ -48,7 +48,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, @@ -58,8 +58,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) } diff --git a/x/builder/keeper/msg_server.go b/x/auction/keeper/msg_server.go similarity index 95% rename from x/builder/keeper/msg_server.go rename to x/auction/keeper/msg_server.go index 81c9fffd..06857c8c 100644 --- a/x/builder/keeper/msg_server.go +++ b/x/auction/keeper/msg_server.go @@ -8,17 +8,18 @@ import ( "strings" 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} } diff --git a/x/builder/keeper/msg_server_test.go b/x/auction/keeper/msg_server_test.go similarity index 95% rename from x/builder/keeper/msg_server_test.go rename to x/auction/keeper/msg_server_test.go index 5b8120f8..b6e8a81e 100644 --- a/x/builder/keeper/msg_server_test.go +++ b/x/auction/keeper/msg_server_test.go @@ -7,7 +7,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" 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() { @@ -46,7 +46,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, }, @@ -61,7 +61,7 @@ func (suite *KeeperTestSuite) TestMsgAuctionBid() { params := types.DefaultParams() params.ProposerFee = sdk.ZeroDec() params.EscrowAccountAddress = escrow.Address - suite.builderKeeper.SetParams(suite.ctx, params) + suite.auctionkeeper.SetParams(suite.ctx, params) suite.bankKeeper.EXPECT(). SendCoins( @@ -86,7 +86,7 @@ func (suite *KeeperTestSuite) TestMsgAuctionBid() { params := types.DefaultParams() params.ProposerFee = sdk.MustNewDecFromStr("0.30") params.EscrowAccountAddress = escrow.Address - suite.builderKeeper.SetParams(suite.ctx, params) + suite.auctionkeeper.SetParams(suite.ctx, params) suite.distrKeeper.EXPECT(). GetPreviousProposerConsAddr(suite.ctx). diff --git a/x/builder/module.go b/x/auction/module.go similarity index 83% rename from x/builder/module.go rename to x/auction/module.go index 00eb9148..0ba4d7cc 100644 --- a/x/builder/module.go +++ b/x/auction/module.go @@ -1,4 +1,4 @@ -package builder +package auction import ( "context" @@ -18,11 +18,12 @@ import ( govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" - 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" "github.com/spf13/cobra" + + 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 ( @@ -30,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 { @@ -68,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() } @@ -110,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)) @@ -124,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 @@ -134,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) @@ -164,7 +165,7 @@ type Inputs struct { type Outputs struct { depinject.Out - BuilderKeeper keeper.Keeper + AuctionKeeper keeper.Keeper Module appmodule.AppModule } @@ -175,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, @@ -185,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} } diff --git a/x/builder/rewards/fixed_provider.go b/x/auction/rewards/fixed_provider.go similarity index 95% rename from x/builder/rewards/fixed_provider.go rename to x/auction/rewards/fixed_provider.go index af5e09a2..fe608caa 100644 --- a/x/builder/rewards/fixed_provider.go +++ b/x/auction/rewards/fixed_provider.go @@ -4,7 +4,8 @@ import ( "fmt" 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) diff --git a/x/builder/rewards/proposer_provider.go b/x/auction/rewards/proposer_provider.go similarity index 95% rename from x/builder/rewards/proposer_provider.go rename to x/auction/rewards/proposer_provider.go index ee3b1cb1..2e73fdf7 100644 --- a/x/builder/rewards/proposer_provider.go +++ b/x/auction/rewards/proposer_provider.go @@ -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) diff --git a/x/builder/types/bid_info.go b/x/auction/types/bid_info.go similarity index 100% rename from x/builder/types/bid_info.go rename to x/auction/types/bid_info.go diff --git a/x/builder/types/codec.go b/x/auction/types/codec.go similarity index 72% rename from x/builder/types/codec.go rename to x/auction/types/codec.go index f18de99f..3f076ce6 100644 --- a/x/builder/types/codec.go +++ b/x/auction/types/codec.go @@ -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( diff --git a/x/builder/types/events.go b/x/auction/types/events.go similarity index 100% rename from x/builder/types/events.go rename to x/auction/types/events.go diff --git a/x/builder/types/expected_keepers.go b/x/auction/types/expected_keepers.go similarity index 100% rename from x/builder/types/expected_keepers.go rename to x/auction/types/expected_keepers.go diff --git a/x/builder/types/genesis.go b/x/auction/types/genesis.go similarity index 85% rename from x/builder/types/genesis.go rename to x/auction/types/genesis.go index b03f485e..2858fb9e 100644 --- a/x/builder/types/genesis.go +++ b/x/auction/types/genesis.go @@ -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 diff --git a/x/builder/types/genesis.pb.go b/x/auction/types/genesis.pb.go similarity index 82% rename from x/builder/types/genesis.pb.go rename to x/auction/types/genesis.pb.go index dba1e32c..c27aa0a6 100644 --- a/x/builder/types/genesis.pb.go +++ b/x/auction/types/genesis.pb.go @@ -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, } diff --git a/x/auction/types/keys.go b/x/auction/types/keys.go new file mode 100644 index 00000000..bdc9ccca --- /dev/null +++ b/x/auction/types/keys.go @@ -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} diff --git a/x/builder/types/msgs.go b/x/auction/types/msgs.go similarity index 100% rename from x/builder/types/msgs.go rename to x/auction/types/msgs.go diff --git a/x/builder/types/msgs_test.go b/x/auction/types/msgs_test.go similarity index 99% rename from x/builder/types/msgs_test.go rename to x/auction/types/msgs_test.go index 132afeee..d0bafd49 100644 --- a/x/builder/types/msgs_test.go +++ b/x/auction/types/msgs_test.go @@ -5,7 +5,8 @@ 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 diff --git a/x/builder/types/params.go b/x/auction/types/params.go similarity index 97% rename from x/builder/types/params.go rename to x/auction/types/params.go index db8cb1a9..84d825d4 100644 --- a/x/builder/types/params.go +++ b/x/auction/types/params.go @@ -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, diff --git a/x/builder/types/query.pb.go b/x/auction/types/query.pb.go similarity index 85% rename from x/builder/types/query.pb.go rename to x/auction/types/query.pb.go index b89ec09c..439aab98 100644 --- a/x/builder/types/query.pb.go +++ b/x/auction/types/query.pb.go @@ -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) { diff --git a/x/builder/types/query.pb.gw.go b/x/auction/types/query.pb.gw.go similarity index 97% rename from x/builder/types/query.pb.gw.go rename to x/auction/types/query.pb.gw.go index ef97d55a..a657852c 100644 --- a/x/builder/types/query.pb.gw.go +++ b/x/auction/types/query.pb.gw.go @@ -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 ( diff --git a/x/builder/types/tx.pb.go b/x/auction/types/tx.pb.go similarity index 84% rename from x/builder/types/tx.pb.go rename to x/auction/types/tx.pb.go index 015756ff..9f84f001 100644 --- a/x/builder/types/tx.pb.go +++ b/x/auction/types/tx.pb.go @@ -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) { diff --git a/x/builder/types/tx.pb.gw.go b/x/auction/types/tx.pb.gw.go similarity index 97% rename from x/builder/types/tx.pb.gw.go rename to x/auction/types/tx.pb.gw.go index ceb0ff56..db8c6094 100644 --- a/x/builder/types/tx.pb.gw.go +++ b/x/auction/types/tx.pb.gw.go @@ -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 ( diff --git a/x/builder/types/keys.go b/x/builder/types/keys.go deleted file mode 100644 index 3bc7f21d..00000000 --- a/x/builder/types/keys.go +++ /dev/null @@ -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}