diff --git a/proto/greenfield/virtualgroup/common.proto b/proto/greenfield/virtualgroup/common.proto index 11a52990c..68114bd50 100644 --- a/proto/greenfield/virtualgroup/common.proto +++ b/proto/greenfield/virtualgroup/common.proto @@ -9,5 +9,5 @@ option go_package = "github.com/bnb-chain/greenfield/x/virtualgroup/types"; enum PickVGFStrategy { option (gogoproto.goproto_enum_prefix) = false; - StrategyMaximizeFreeStoreSize = 0; + Strategy_Maximize_Free_Store_Size = 0; } diff --git a/swagger/static/swagger.yaml b/swagger/static/swagger.yaml index 2efa82b2f..b0870d8cf 100644 --- a/swagger/static/swagger.yaml +++ b/swagger/static/swagger.yaml @@ -6491,8 +6491,8 @@ paths: required: false type: string enum: - - StrategyMaximizeFreeStoreSize - default: StrategyMaximizeFreeStoreSize + - Strategy_Maximize_Free_Store_Size + default: Strategy_Maximize_Free_Store_Size tags: - Query /greenfield/virtualgroup/swap_in_info: @@ -37240,8 +37240,8 @@ definitions: greenfield.virtualgroup.PickVGFStrategy: type: string enum: - - StrategyMaximizeFreeStoreSize - default: StrategyMaximizeFreeStoreSize + - Strategy_Maximize_Free_Store_Size + default: Strategy_Maximize_Free_Store_Size title: >- PickVGFStrategy represents the method for selecting the best global virtual group family based on the strategy diff --git a/x/virtualgroup/keeper/grpc_query.go b/x/virtualgroup/keeper/grpc_query.go index cadefa6be..75b02481a 100644 --- a/x/virtualgroup/keeper/grpc_query.go +++ b/x/virtualgroup/keeper/grpc_query.go @@ -212,7 +212,7 @@ func (k Keeper) QuerySpOptimalGlobalVirtualGroupFamily(goCtx context.Context, re var freeStoreSize float64 var currentFreeStoreSize float64 switch req.PickVgfStrategy { - case types.StrategyMaximizeFreeStoreSize: + case types.Strategy_Maximize_Free_Store_Size: for _, gvgfID := range stats.GlobalVirtualGroupFamilyIds { gvgFamily, found := k.GetGVGFamily(ctx, gvgfID) if !found { diff --git a/x/virtualgroup/types/common.pb.go b/x/virtualgroup/types/common.pb.go index 414401fe0..0940dc794 100644 --- a/x/virtualgroup/types/common.pb.go +++ b/x/virtualgroup/types/common.pb.go @@ -25,15 +25,15 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type PickVGFStrategy int32 const ( - StrategyMaximizeFreeStoreSize PickVGFStrategy = 0 + Strategy_Maximize_Free_Store_Size PickVGFStrategy = 0 ) var PickVGFStrategy_name = map[int32]string{ - 0: "StrategyMaximizeFreeStoreSize", + 0: "Strategy_Maximize_Free_Store_Size", } var PickVGFStrategy_value = map[string]int32{ - "StrategyMaximizeFreeStoreSize": 0, + "Strategy_Maximize_Free_Store_Size": 0, } func (x PickVGFStrategy) String() string { @@ -53,18 +53,18 @@ func init() { } var fileDescriptor_95d96763aeb17687 = []byte{ - // 202 bytes of a gzipped FileDescriptorProto + // 206 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x49, 0x2f, 0x4a, 0x4d, 0xcd, 0x4b, 0xcb, 0x4c, 0xcd, 0x49, 0xd1, 0x2f, 0xcb, 0x2c, 0x2a, 0x29, 0x4d, 0xcc, 0x49, 0x2f, 0xca, 0x2f, 0x2d, 0xd0, 0x4f, 0xce, 0xcf, 0xcd, 0xcd, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x47, 0xa8, 0xd2, 0x43, 0x56, 0x25, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x56, 0xa3, - 0x0f, 0x62, 0x41, 0x94, 0x6b, 0x59, 0x71, 0xf1, 0x07, 0x64, 0x26, 0x67, 0x87, 0xb9, 0xbb, 0x05, - 0x97, 0x14, 0x25, 0x96, 0xa4, 0xa6, 0x57, 0x0a, 0x29, 0x72, 0xc9, 0xc2, 0xd8, 0xbe, 0x89, 0x15, - 0x99, 0xb9, 0x99, 0x55, 0xa9, 0x6e, 0x45, 0xa9, 0xa9, 0xc1, 0x25, 0xf9, 0x45, 0xa9, 0xc1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3d, 0xb3, 0x24, 0xa3, + 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, 0x29, 0x2f, 0x49, 0x37, 0x39, 0x23, 0x31, 0x33, 0x4f, + 0x1f, 0xc9, 0x0f, 0x15, 0xa8, 0xbe, 0x28, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x3b, 0xcb, + 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xe8, 0xdf, 0xb8, 0xf0, 0xed, 0x00, 0x00, 0x00, } diff --git a/x/virtualgroup/types/query.pb.go b/x/virtualgroup/types/query.pb.go index 6d76564b5..bedb36f30 100644 --- a/x/virtualgroup/types/query.pb.go +++ b/x/virtualgroup/types/query.pb.go @@ -912,7 +912,7 @@ func (m *QuerySpOptimalGlobalVirtualGroupFamilyRequest) GetPickVgfStrategy() Pic if m != nil { return m.PickVgfStrategy } - return StrategyMaximizeFreeStoreSize + return Strategy_Maximize_Free_Store_Size } type QuerySpOptimalGlobalVirtualGroupFamilyResponse struct {