Commit a32cf1eb authored by stackman27's avatar stackman27
Browse files

bez feedback

parent 93ddfe5d
Showing with 59 additions and 61 deletions
+59 -61
......@@ -72,8 +72,8 @@ import (
"github.com/osmosis-labs/osmosis/v12/x/txfees"
txfeeskeeper "github.com/osmosis-labs/osmosis/v12/x/txfees/keeper"
txfeestypes "github.com/osmosis-labs/osmosis/v12/x/txfees/types"
validatorpreference "github.com/osmosis-labs/osmosis/v12/x/validator-preference"
validatorpreferencetypes "github.com/osmosis-labs/osmosis/v12/x/validator-preference/types"
validatorpreference "github.com/osmosis-labs/osmosis/v12/x/valset-pref"
validatorpreferencetypes "github.com/osmosis-labs/osmosis/v12/x/valset-pref/types"
)
type AppKeepers struct {
......
......@@ -40,7 +40,7 @@ import (
"github.com/osmosis-labs/osmosis/v12/x/tokenfactory"
"github.com/osmosis-labs/osmosis/v12/x/twap/twapmodule"
"github.com/osmosis-labs/osmosis/v12/x/txfees"
validatorpreferencemodule "github.com/osmosis-labs/osmosis/v12/x/validator-preference/valpref-module"
validatorpreferencemodule "github.com/osmosis-labs/osmosis/v12/x/valset-pref/valpref-module"
)
// AppModuleBasics returns ModuleBasics for the module BasicManager.
......
......@@ -67,8 +67,8 @@ import (
twaptypes "github.com/osmosis-labs/osmosis/v12/x/twap/types"
"github.com/osmosis-labs/osmosis/v12/x/txfees"
txfeestypes "github.com/osmosis-labs/osmosis/v12/x/txfees/types"
validatorpreferencetypes "github.com/osmosis-labs/osmosis/v12/x/validator-preference/types"
validatorpreferencemodule "github.com/osmosis-labs/osmosis/v12/x/validator-preference/valpref-module"
validatorpreferencetypes "github.com/osmosis-labs/osmosis/v12/x/valset-pref/types"
validatorpreferencemodule "github.com/osmosis-labs/osmosis/v12/x/valset-pref/valpref-module"
)
// moduleAccountPermissions defines module account permissions
......
......@@ -3,7 +3,7 @@ package v13
import (
store "github.com/cosmos/cosmos-sdk/store/types"
"github.com/osmosis-labs/osmosis/v12/app/upgrades"
validatorpreferencetypes "github.com/osmosis-labs/osmosis/v12/x/validator-preference/types"
validatorpreferencetypes "github.com/osmosis-labs/osmosis/v12/x/valset-pref/types"
)
// UpgradeName defines the on-chain upgrade name for the Osmosis v9 upgrade.
......
......@@ -8,7 +8,7 @@ import (
"github.com/osmosis-labs/osmosis/v12/app/keepers"
"github.com/osmosis-labs/osmosis/v12/app/upgrades"
lockuptypes "github.com/osmosis-labs/osmosis/v12/x/lockup/types"
validatorpreferencetypes "github.com/osmosis-labs/osmosis/v12/x/validator-preference/types"
validatorpreferencetypes "github.com/osmosis-labs/osmosis/v12/x/valset-pref/types"
)
func CreateUpgradeHandler(
......
......@@ -3,9 +3,9 @@ package osmosis.validatorpreference.v1beta1;
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "osmosis/validator-preference/v1beta1/params.proto";
import "osmosis/valset-pref/v1beta1/params.proto";
option go_package = "github.com/osmosis-labs/osmosis/v12/x/validator-preference/types";
option go_package = "github.com/osmosis-labs/osmosis/v12/x/valset-pref/types";
option (gogoproto.goproto_getters_all) = false;
// GenesisState defines the validator-set preference module's genesis state.
......
......@@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "cosmos_proto/cosmos.proto";
import "cosmos/base/v1beta1/coin.proto";
option go_package = "github.com/osmosis-labs/osmosis/v12/x/validator-preference/types";
option go_package = "github.com/osmosis-labs/osmosis/v12/x/valset-pref/types";
// Params defines the parameters for the module.
message Params {
......
......@@ -3,9 +3,9 @@ package osmosis.validatorpreference.v1beta1;
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "osmosis/validator-preference/v1beta1/state.proto";
import "osmosis/valset-pref/v1beta1/state.proto";
option go_package = "github.com/osmosis-labs/osmosis/v12/x/validator-preference/client/queryproto";
option go_package = "github.com/osmosis-labs/osmosis/v12/x/valset-pref/client/queryproto";
option (gogoproto.goproto_getters_all) = false;
// Query defines the gRPC querier service.
......@@ -13,8 +13,7 @@ service Query {
// Returns the list of ValidatorPreferences for the user.
rpc UserValidatorPreferences(QueryUserValidatorPreferences)
returns (QueryUserValidatorPreferenceResponse) {
option (google.api.http).get =
"/osmosis/validator-preference/v1beta1/{user}";
option (google.api.http).get = "/osmosis/valset-pref/v1beta1/{user}";
}
}
......
......@@ -4,7 +4,7 @@ package osmosis.validatorpreference.v1beta1;
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
option go_package = "github.com/osmosis-labs/osmosis/v12/x/validator-preference/types";
option go_package = "github.com/osmosis-labs/osmosis/v12/x/valset-pref/types";
option (gogoproto.goproto_getters_all) = false;
// ValidatorPreference defines the message structure for
......
......@@ -3,11 +3,11 @@ package osmosis.validatorpreference.v1beta1;
import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";
import "osmosis/validator-preference/v1beta1/state.proto";
import "osmosis/valset-pref/v1beta1/state.proto";
option go_package = "github.com/osmosis-labs/osmosis/v12/x/validator-preference/types";
option go_package = "github.com/osmosis-labs/osmosis/v12/x/valset-pref/types";
// Msg defines the validator-preference modules's gRPC message service.
// Msg defines the valset-pref modules's gRPC message service.
service Msg {
// SetValidatorSetPreference creates a set of validator preference.
// This message will process both create + update request.
......
package types
File moved
......@@ -3,8 +3,8 @@ package client
import (
"context"
validatorprefkeeper "github.com/osmosis-labs/osmosis/v12/x/validator-preference"
"github.com/osmosis-labs/osmosis/v12/x/validator-preference/client/queryproto"
validatorprefkeeper "github.com/osmosis-labs/osmosis/v12/x/valset-pref"
"github.com/osmosis-labs/osmosis/v12/x/valset-pref/client/queryproto"
)
type Querier struct {
......
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: osmosis/validator-preference/v1beta1/query.proto
// source: osmosis/valset-pref/v1beta1/query.proto
package queryproto
......@@ -9,7 +9,7 @@ import (
_ "github.com/gogo/protobuf/gogoproto"
grpc1 "github.com/gogo/protobuf/grpc"
proto "github.com/gogo/protobuf/proto"
types "github.com/osmosis-labs/osmosis/v12/x/validator-preference/types"
types "github.com/osmosis-labs/osmosis/v12/x/valset-pref/types"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
......@@ -40,7 +40,7 @@ func (m *QueryUserValidatorPreferences) Reset() { *m = QueryUserValidato
func (m *QueryUserValidatorPreferences) String() string { return proto.CompactTextString(m) }
func (*QueryUserValidatorPreferences) ProtoMessage() {}
func (*QueryUserValidatorPreferences) Descriptor() ([]byte, []int) {
return fileDescriptor_888a45acbabdd269, []int{0}
return fileDescriptor_9ffbeb4123fe56ae, []int{0}
}
func (m *QueryUserValidatorPreferences) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
......@@ -78,7 +78,7 @@ func (m *QueryUserValidatorPreferenceResponse) Reset() { *m = QueryUserV
func (m *QueryUserValidatorPreferenceResponse) String() string { return proto.CompactTextString(m) }
func (*QueryUserValidatorPreferenceResponse) ProtoMessage() {}
func (*QueryUserValidatorPreferenceResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_888a45acbabdd269, []int{1}
return fileDescriptor_9ffbeb4123fe56ae, []int{1}
}
func (m *QueryUserValidatorPreferenceResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
......@@ -113,33 +113,33 @@ func init() {
}
func init() {
proto.RegisterFile("osmosis/validator-preference/v1beta1/query.proto", fileDescriptor_888a45acbabdd269)
}
var fileDescriptor_888a45acbabdd269 = []byte{
// 338 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0xc8, 0x2f, 0xce, 0xcd,
0x2f, 0xce, 0x2c, 0xd6, 0x2f, 0x4b, 0xcc, 0xc9, 0x4c, 0x49, 0x2c, 0xc9, 0x2f, 0xd2, 0x2d, 0x28,
0x4a, 0x4d, 0x4b, 0x2d, 0x4a, 0xcd, 0x4b, 0x4e, 0xd5, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34,
0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0xaa, 0xd4, 0x2b, 0x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 0xa2, 0x22, 0xac, 0x1a, 0x14, 0xea, 0xb5, 0x4e, 0x59, 0x27, 0x1e, 0xca, 0x31, 0x9c,
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, 0x4f, 0x7a, 0x66, 0x49, 0x46, 0x69,
0x92, 0x5e, 0x72, 0x7e, 0x2e, 0xcc, 0x54, 0xdd, 0x9c, 0xc4, 0xa4, 0x62, 0x84, 0x15, 0x86, 0x46,
0xfa, 0x15, 0xd8, 0x2d, 0x4a, 0xce, 0xc9, 0x4c, 0xcd, 0x2b, 0x81, 0xa4, 0x51, 0x70, 0xba, 0x48,
0x62, 0x03, 0x53, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x44, 0xbd, 0xf5, 0xa9, 0xdd, 0x02,
0x00, 0x00,
proto.RegisterFile("osmosis/valset-pref/v1beta1/query.proto", fileDescriptor_9ffbeb4123fe56ae)
}
var fileDescriptor_9ffbeb4123fe56ae = []byte{
// 342 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcf, 0x2f, 0xce, 0xcd,
0x2f, 0xce, 0x2c, 0xd6, 0x2f, 0x4b, 0xcc, 0x29, 0x4e, 0x2d, 0xd1, 0x2d, 0x28, 0x4a, 0x4d, 0xd3,
0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0xaa, 0xd4, 0x2b, 0x28,
0xca, 0x2f, 0xc9, 0x17, 0x52, 0x86, 0x2a, 0xd4, 0x2b, 0x4b, 0xcc, 0xc9, 0x4c, 0x49, 0x2c, 0xc9,
0x2f, 0x02, 0x29, 0x4d, 0x2d, 0x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x3c,
0xf1, 0x50, 0x8e, 0xe1, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63,
0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x9c, 0xd3,
0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0x61, 0x86, 0xe9, 0xe6, 0x24, 0x26, 0x15,
0x23, 0x4c, 0x36, 0x34, 0xd2, 0xaf, 0x40, 0x31, 0x3f, 0x39, 0x27, 0x33, 0x35, 0xaf, 0x04, 0x92,
0x10, 0xc1, 0xa9, 0x20, 0x89, 0x0d, 0x4c, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x88, 0x49,
0x0d, 0xe4, 0xb9, 0x02, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
......@@ -221,7 +221,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "osmosis/validator-preference/v1beta1/query.proto",
Metadata: "osmosis/valset-pref/v1beta1/query.proto",
}
func (m *QueryUserValidatorPreferences) Marshal() (dAtA []byte, err error) {
......
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: osmosis/validator-preference/v1beta1/query.proto
// source: osmosis/valset-pref/v1beta1/query.proto
/*
Package queryproto is a reverse proxy.
......@@ -181,7 +181,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
}
var (
pattern_Query_UserValidatorPreferences_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"osmosis", "validator-preference", "v1beta1", "user"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_UserValidatorPreferences_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"osmosis", "valset-pref", "v1beta1", "user"}, "", runtime.AssumeColonVerbOpt(false)))
)
var (
......
package keeper
import (
"github.com/osmosis-labs/osmosis/v12/x/validator-preference/types"
"github.com/osmosis-labs/osmosis/v12/x/valset-pref/types"
sdk "github.com/cosmos/cosmos-sdk/types"
)
......
......@@ -9,7 +9,7 @@ import (
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/gogo/protobuf/proto"
"github.com/osmosis-labs/osmosis/v12/osmoutils"
"github.com/osmosis-labs/osmosis/v12/x/validator-preference/types"
"github.com/osmosis-labs/osmosis/v12/x/valset-pref/types"
)
type Keeper struct {
......
......@@ -6,7 +6,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/osmosis-labs/osmosis/v12/app/apptesting"
"github.com/osmosis-labs/osmosis/v12/x/validator-preference/types"
"github.com/osmosis-labs/osmosis/v12/x/valset-pref/types"
"github.com/stretchr/testify/suite"
)
......
......@@ -4,7 +4,7 @@ import (
"context"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/osmosis-labs/osmosis/v12/x/validator-preference/types"
"github.com/osmosis-labs/osmosis/v12/x/valset-pref/types"
)
type msgServer struct {
......
......@@ -2,8 +2,8 @@ package keeper_test
import (
sdk "github.com/cosmos/cosmos-sdk/types"
valPref "github.com/osmosis-labs/osmosis/v12/x/validator-preference"
"github.com/osmosis-labs/osmosis/v12/x/validator-preference/types"
valPref "github.com/osmosis-labs/osmosis/v12/x/valset-pref"
"github.com/osmosis-labs/osmosis/v12/x/valset-pref/types"
)
func (suite *KeeperTestSuite) TestSetValidatorSetPreference() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment