-
Notifications
You must be signed in to change notification settings - Fork 182
/
alias.go
41 lines (36 loc) · 1.54 KB
/
alias.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package upgrade
// nolint
import (
"github.com/okex/exchain/libs/cosmos-sdk/x/upgrade/internal/keeper"
"github.com/okex/exchain/libs/cosmos-sdk/x/upgrade/internal/types"
)
const (
ModuleName = types.ModuleName
RouterKey = types.RouterKey
StoreKey = types.StoreKey
QuerierKey = types.QuerierKey
PlanByte = types.PlanByte
DoneByte = types.DoneByte
ProposalTypeSoftwareUpgrade = types.ProposalTypeSoftwareUpgrade
ProposalTypeCancelSoftwareUpgrade = types.ProposalTypeCancelSoftwareUpgrade
QueryCurrent = types.QueryCurrent
QueryApplied = types.QueryApplied
)
var (
// functions aliases
RegisterCodec = types.RegisterCodec
PlanKey = types.PlanKey
NewSoftwareUpgradeProposal = types.NewSoftwareUpgradeProposal
NewCancelSoftwareUpgradeProposal = types.NewCancelSoftwareUpgradeProposal
NewQueryAppliedParams = types.NewQueryAppliedParams
NewKeeper = keeper.NewKeeper
NewQuerier = keeper.NewQuerier
)
type (
UpgradeHandler = types.UpgradeHandler //nolint:golint
Plan = types.Plan
SoftwareUpgradeProposal = types.SoftwareUpgradeProposal
CancelSoftwareUpgradeProposal = types.CancelSoftwareUpgradeProposal
QueryAppliedParams = types.QueryAppliedParams
Keeper = keeper.Keeper
)