Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
osmosis
Commits
a32cf1eb
Commit
a32cf1eb
authored
2 years ago
by
stackman27
Browse files
Options
Download
Email Patches
Plain Diff
bez feedback
parent
93ddfe5d
Changes
33
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
app/keepers/keepers.go
+2
-2
app/keepers/keepers.go
app/keepers/modules.go
+1
-1
app/keepers/modules.go
app/modules.go
+2
-2
app/modules.go
app/upgrades/v13/constants.go
+1
-1
app/upgrades/v13/constants.go
app/upgrades/v13/upgrades.go
+1
-1
app/upgrades/v13/upgrades.go
proto/osmosis/valset-pref/v1beta1/genesis.proto
+2
-2
proto/osmosis/valset-pref/v1beta1/genesis.proto
proto/osmosis/valset-pref/v1beta1/params.proto
+1
-1
proto/osmosis/valset-pref/v1beta1/params.proto
proto/osmosis/valset-pref/v1beta1/query.proto
+3
-4
proto/osmosis/valset-pref/v1beta1/query.proto
proto/osmosis/valset-pref/v1beta1/state.proto
+1
-1
proto/osmosis/valset-pref/v1beta1/state.proto
proto/osmosis/valset-pref/v1beta1/tx.proto
+3
-3
proto/osmosis/valset-pref/v1beta1/tx.proto
x/validator-preference/types/errors.go
+0
-1
x/validator-preference/types/errors.go
x/valset-pref/README.md
+0
-0
x/valset-pref/README.md
x/valset-pref/client/query_proto_wrap.go
+2
-2
x/valset-pref/client/query_proto_wrap.go
x/valset-pref/client/queryproto/query.pb.go
+32
-32
x/valset-pref/client/queryproto/query.pb.go
x/valset-pref/client/queryproto/query.pb.gw.go
+2
-2
x/valset-pref/client/queryproto/query.pb.gw.go
x/valset-pref/genesis.go
+1
-1
x/valset-pref/genesis.go
x/valset-pref/keeper.go
+1
-1
x/valset-pref/keeper.go
x/valset-pref/keeper_test.go
+1
-1
x/valset-pref/keeper_test.go
x/valset-pref/msg_server.go
+1
-1
x/valset-pref/msg_server.go
x/valset-pref/msg_server_test.go
+2
-2
x/valset-pref/msg_server_test.go
with
59 additions
and
61 deletions
+59
-61
app/keepers/keepers.go
+
2
-
2
View file @
a32cf1eb
...
...
@@ -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/val
idator-preference
"
validatorpreferencetypes
"github.com/osmosis-labs/osmosis/v12/x/val
idator-preference
/types"
validatorpreference
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
"
validatorpreferencetypes
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
/types"
)
type
AppKeepers
struct
{
...
...
This diff is collapsed.
Click to expand it.
app/keepers/modules.go
+
1
-
1
View file @
a32cf1eb
...
...
@@ -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/val
idator-preference
/valpref-module"
validatorpreferencemodule
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
/valpref-module"
)
// AppModuleBasics returns ModuleBasics for the module BasicManager.
...
...
This diff is collapsed.
Click to expand it.
app/modules.go
+
2
-
2
View file @
a32cf1eb
...
...
@@ -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/val
idator-preference
/types"
validatorpreferencemodule
"github.com/osmosis-labs/osmosis/v12/x/val
idator-preference
/valpref-module"
validatorpreferencetypes
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
/types"
validatorpreferencemodule
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
/valpref-module"
)
// moduleAccountPermissions defines module account permissions
...
...
This diff is collapsed.
Click to expand it.
app/upgrades/v13/constants.go
+
1
-
1
View file @
a32cf1eb
...
...
@@ -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/val
idator-preference
/types"
validatorpreferencetypes
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
/types"
)
// UpgradeName defines the on-chain upgrade name for the Osmosis v9 upgrade.
...
...
This diff is collapsed.
Click to expand it.
app/upgrades/v13/upgrades.go
+
1
-
1
View file @
a32cf1eb
...
...
@@ -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/val
idator-preference
/types"
validatorpreferencetypes
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
/types"
)
func
CreateUpgradeHandler
(
...
...
This diff is collapsed.
Click to expand it.
proto/osmosis/val
idator-preference
/v1beta1/genesis.proto
→
proto/osmosis/val
set-pref
/v1beta1/genesis.proto
+
2
-
2
View file @
a32cf1eb
...
...
@@ -3,9 +3,9 @@ package osmosis.validatorpreference.v1beta1;
import
"gogoproto/gogo.proto"
;
import
"google/api/annotations.proto"
;
import
"osmosis/val
idator-preference
/v1beta1/params.proto"
;
import
"osmosis/val
set-pref
/v1beta1/params.proto"
;
option
go_package
=
"github.com/osmosis-labs/osmosis/v12/x/val
idator-preference
/types"
;
option
go_package
=
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
/types"
;
option
(
gogoproto.goproto_getters_all
)
=
false
;
// GenesisState defines the validator-set preference module's genesis state.
...
...
This diff is collapsed.
Click to expand it.
proto/osmosis/val
idator-preference
/v1beta1/params.proto
→
proto/osmosis/val
set-pref
/v1beta1/params.proto
+
1
-
1
View file @
a32cf1eb
...
...
@@ -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/val
idator-preference
/types"
;
option
go_package
=
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
/types"
;
// Params defines the parameters for the module.
message
Params
{
...
...
This diff is collapsed.
Click to expand it.
proto/osmosis/val
idator-preference
/v1beta1/query.proto
→
proto/osmosis/val
set-pref
/v1beta1/query.proto
+
3
-
4
View file @
a32cf1eb
...
...
@@ -3,9 +3,9 @@ package osmosis.validatorpreference.v1beta1;
import
"gogoproto/gogo.proto"
;
import
"google/api/annotations.proto"
;
import
"osmosis/val
idator-preference
/v1beta1/state.proto"
;
import
"osmosis/val
set-pref
/v1beta1/state.proto"
;
option
go_package
=
"github.com/osmosis-labs/osmosis/v12/x/val
idator-preference
/client/queryproto"
;
option
go_package
=
"github.com/osmosis-labs/osmosis/v12/x/val
set-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}"
;
}
}
...
...
This diff is collapsed.
Click to expand it.
proto/osmosis/val
idator-preference
/v1beta1/state.proto
→
proto/osmosis/val
set-pref
/v1beta1/state.proto
+
1
-
1
View file @
a32cf1eb
...
...
@@ -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/val
idator-preference
/types"
;
option
go_package
=
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
/types"
;
option
(
gogoproto.goproto_getters_all
)
=
false
;
// ValidatorPreference defines the message structure for
...
...
This diff is collapsed.
Click to expand it.
proto/osmosis/val
idator-preference
/v1beta1/tx.proto
→
proto/osmosis/val
set-pref
/v1beta1/tx.proto
+
3
-
3
View file @
a32cf1eb
...
...
@@ -3,11 +3,11 @@ package osmosis.validatorpreference.v1beta1;
import
"gogoproto/gogo.proto"
;
import
"cosmos/base/v1beta1/coin.proto"
;
import
"osmosis/val
idator-preference
/v1beta1/state.proto"
;
import
"osmosis/val
set-pref
/v1beta1/state.proto"
;
option
go_package
=
"github.com/osmosis-labs/osmosis/v12/x/val
idator-preference
/types"
;
option
go_package
=
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
/types"
;
// Msg defines the val
idator-preference
modules's gRPC message service.
// Msg defines the val
set-pref
modules's gRPC message service.
service
Msg
{
// SetValidatorSetPreference creates a set of validator preference.
// This message will process both create + update request.
...
...
This diff is collapsed.
Click to expand it.
x/validator-preference/types/errors.go
deleted
100644 → 0
+
0
-
1
View file @
93ddfe5d
package
types
This diff is collapsed.
Click to expand it.
x/val
idator-preference
/README.md
→
x/val
set-pref
/README.md
+
0
-
0
View file @
a32cf1eb
File moved
This diff is collapsed.
Click to expand it.
x/val
idator-preference
/client/query_proto_wrap.go
→
x/val
set-pref
/client/query_proto_wrap.go
+
2
-
2
View file @
a32cf1eb
...
...
@@ -3,8 +3,8 @@ package client
import
(
"context"
validatorprefkeeper
"github.com/osmosis-labs/osmosis/v12/x/val
idator-preference
"
"github.com/osmosis-labs/osmosis/v12/x/val
idator-preference
/client/queryproto"
validatorprefkeeper
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
"
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
/client/queryproto"
)
type
Querier
struct
{
...
...
This diff is collapsed.
Click to expand it.
x/val
idator-preference
/client/queryproto/query.pb.go
→
x/val
set-pref
/client/queryproto/query.pb.go
+
32
-
32
View file @
a32cf1eb
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: osmosis/val
idator-preference
/v1beta1/query.proto
// source: osmosis/val
set-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/val
idator-preference
/types"
types
"github.com/osmosis-labs/osmosis/v12/x/val
set-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/val
idator-preference
/v1beta1/query.proto"
,
fileDescriptor_
888a45acbabdd269
)
}
var
fileDescriptor_
888a45acbabdd269
=
[]
byte
{
// 3
38
bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xe2
,
0x
3
2
,
0xc
8
,
0x2f
,
0xce
,
0xcd
,
0x2f
,
0xce
,
0x2c
,
0xd6
,
0x2f
,
0x4b
,
0xcc
,
0x
c
9
,
0x4
c
,
0x
49
,
0x
2c
,
0x
c9
,
0x2
f
,
0x
d2
,
0x
2
d
,
0x
28
,
0x
4a
,
0x
4d
,
0x4
b
,
0x2d
,
0x4a
,
0x
c
d
,
0x4
b
,
0x4
e
,
0xd
5
,
0x2f
,
0x
33
,
0x4
c
,
0x
4
a
,
0x
2
d
,
0x
49
,
0x
34
,
0x
d4
,
0x2f
,
0x
2
c
,
0x
4d
,
0x2
d
,
0x
a
a
,
0xd4
,
0x2b
,
0x
28
,
0xc
a
,
0x2f
,
0xc9
,
0x
17
,
0x
52
,
0x
86
,
0x
ea
,
0x
d0
,
0x
83
,
0x
eb
,
0x4
0
,
0x
68
,
0x
d0
,
0x
83
,
0x
6a
,
0x
90
,
0x
12
,
0x
49
,
0x
cf
,
0x
4f
,
0x
cf
,
0x
07
,
0x
ab
,
0xd7
,
0x07
,
0xb1
,
0x20
,
0x5a
,
0xa5
,
0x64
,
0xd2
,
0xf3
,
0xf3
,
0xd3
,
0x73
,
0x52
,
0xf5
,
0x13
,
0x0b
,
0x32
,
0xf5
,
0x13
,
0xf3
,
0xf2
,
0xf2
,
0x4b
,
0x12
,
0x4b
,
0x32
,
0xf3
,
0xf3
,
0x8a
,
0xa1
,
0xb2
,
0xc4
,
0x
39
,
0xa
5
,
0xb
8
,
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x
1a
,
0x
14
,
0x
ea
,
0x
b5
,
0x
4e
,
0x
59
,
0x
27
,
0x
1
e
,
0x
ca
,
0x
31
,
0x
9
c
,
0x
78
,
0x
24
,
0xc7
,
0x
7
8
,
0xe1
,
0x
91
,
0x
1c
,
0x
e
3
,
0x
83
,
0x
47
,
0x
72
,
0x
8c
,
0x1
3
,
0x1
e
,
0x
cb
,
0x3
1
,
0x
5
c
,
0x
78
,
0x
2c
,
0x
c7
,
0x
70
,
0x
e3
,
0x
b1
,
0x
1c
,
0x
43
,
0x
94
,
0x
4
f
,
0x
7a
,
0x
66
,
0x
49
,
0x
46
,
0x
69
,
0x
92
,
0x
5e
,
0x
7
2
,
0x
7e
,
0x
2e
,
0x
cc
,
0x
54
,
0x
dd
,
0x
9c
,
0x
c4
,
0x
a4
,
0x
62
,
0x
84
,
0x
15
,
0x
8
6
,
0x
46
,
0x
fa
,
0x
15
,
0x
d8
,
0x
2d
,
0x
4a
,
0x
ce
,
0x
c9
,
0x
4c
,
0x
cd
,
0x
2b
,
0x
81
,
0x
a4
,
0x5
1
,
0x
70
,
0x
ba
,
0x
48
,
0x
62
,
0x
03
,
0x
53
,
0x
c6
,
0x8
0
,
0x0
0
,
0x
00
,
0x
00
,
0x
ff
,
0x
ff
,
0x
44
,
0x
bd
,
0xf
5
,
0x
a9
,
0x
dd
,
0x
02
,
0x00
,
0x00
,
proto
.
RegisterFile
(
"osmosis/val
set-pref
/v1beta1/query.proto"
,
fileDescriptor_
9ffbeb4123fe56ae
)
}
var
fileDescriptor_
9ffbeb4123fe56ae
=
[]
byte
{
// 3
42
bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xe2
,
0x
5
2
,
0xc
f
,
0x2f
,
0xce
,
0xcd
,
0x2f
,
0xce
,
0x2c
,
0xd6
,
0x2f
,
0x4b
,
0xcc
,
0x
2
9
,
0x4
e
,
0x
2d
,
0x
d1
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,
0x
73
,
0x
61
,
0x
86
,
0x
e9
,
0x
e6
,
0x
24
,
0x
2
6
,
0x
15
,
0x
23
,
0x
4c
,
0x
36
,
0x
34
,
0x
d2
,
0x
af
,
0x
40
,
0x
31
,
0x
3f
,
0x
39
,
0x
27
,
0x
33
,
0x
3
5
,
0x
af
,
0x
04
,
0x
92
,
0x
10
,
0x
c1
,
0x
a9
,
0x
20
,
0x8
9
,
0x0
d
,
0x
4c
,
0x
19
,
0x
03
,
0x
02
,
0x
00
,
0x
00
,
0xf
f
,
0x
ff
,
0x
88
,
0x
49
,
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/val
idator-preference
/v1beta1/query.proto"
,
Metadata
:
"osmosis/val
set-pref
/v1beta1/query.proto"
,
}
func
(
m
*
QueryUserValidatorPreferences
)
Marshal
()
(
dAtA
[]
byte
,
err
error
)
{
...
...
This diff is collapsed.
Click to expand it.
x/val
idator-preference
/client/queryproto/query.pb.gw.go
→
x/val
set-pref
/client/queryproto/query.pb.gw.go
+
2
-
2
View file @
a32cf1eb
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: osmosis/val
idator-preference
/v1beta1/query.proto
// source: osmosis/val
set-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"
,
"val
idator-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"
,
"val
set-pref
"
,
"v1beta1"
,
"user"
},
""
,
runtime
.
AssumeColonVerbOpt
(
false
)))
)
var
(
...
...
This diff is collapsed.
Click to expand it.
x/val
idator-preference
/genesis.go
→
x/val
set-pref
/genesis.go
+
1
-
1
View file @
a32cf1eb
package
keeper
import
(
"github.com/osmosis-labs/osmosis/v12/x/val
idator-preference
/types"
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
/types"
sdk
"github.com/cosmos/cosmos-sdk/types"
)
...
...
This diff is collapsed.
Click to expand it.
x/val
idator-preference
/keeper.go
→
x/val
set-pref
/keeper.go
+
1
-
1
View file @
a32cf1eb
...
...
@@ -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/val
idator-preference
/types"
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
/types"
)
type
Keeper
struct
{
...
...
This diff is collapsed.
Click to expand it.
x/val
idator-preference
/keeper_test.go
→
x/val
set-pref
/keeper_test.go
+
1
-
1
View file @
a32cf1eb
...
...
@@ -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/val
idator-preference
/types"
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
/types"
"github.com/stretchr/testify/suite"
)
...
...
This diff is collapsed.
Click to expand it.
x/val
idator-preference
/msg_server.go
→
x/val
set-pref
/msg_server.go
+
1
-
1
View file @
a32cf1eb
...
...
@@ -4,7 +4,7 @@ import (
"context"
sdk
"github.com/cosmos/cosmos-sdk/types"
"github.com/osmosis-labs/osmosis/v12/x/val
idator-preference
/types"
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
/types"
)
type
msgServer
struct
{
...
...
This diff is collapsed.
Click to expand it.
x/val
idator-preference
/msg_server_test.go
→
x/val
set-pref
/msg_server_test.go
+
2
-
2
View file @
a32cf1eb
...
...
@@ -2,8 +2,8 @@ package keeper_test
import
(
sdk
"github.com/cosmos/cosmos-sdk/types"
valPref
"github.com/osmosis-labs/osmosis/v12/x/val
idator-preference
"
"github.com/osmosis-labs/osmosis/v12/x/val
idator-preference
/types"
valPref
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
"
"github.com/osmosis-labs/osmosis/v12/x/val
set-pref
/types"
)
func
(
suite
*
KeeperTestSuite
)
TestSetValidatorSetPreference
()
{
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment