-
Notifications
You must be signed in to change notification settings - Fork 4
/
constants.go
79 lines (73 loc) · 3.24 KB
/
constants.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package v2_6
import (
storetypes "cosmossdk.io/store/types"
"cosmossdk.io/x/feegrant"
sdk "github.com/cosmos/cosmos-sdk/types"
vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
"github.com/cosmos/cosmos-sdk/x/authz"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types"
crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
"github.com/cosmos/cosmos-sdk/x/group"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types"
"github.com/ODIN-PROTOCOL/odin-core/app/upgrades"
oracletypes "github.com/ODIN-PROTOCOL/odin-core/x/oracle/types"
)
const UpgradeName = "v2_6"
var Upgrade = upgrades.Upgrade{
UpgradeName: UpgradeName,
CreateUpgradeHandler: CreateUpgradeHandler,
StoreUpgrades: storetypes.StoreUpgrades{
Added: []string{group.StoreKey, consensusparamtypes.StoreKey, crisistypes.StoreKey},
},
}
var ICAAllowMessages = []string{
sdk.MsgTypeURL(&authz.MsgExec{}),
sdk.MsgTypeURL(&authz.MsgGrant{}),
sdk.MsgTypeURL(&authz.MsgRevoke{}),
sdk.MsgTypeURL(&banktypes.MsgSend{}),
sdk.MsgTypeURL(&banktypes.MsgMultiSend{}),
sdk.MsgTypeURL(&distrtypes.MsgSetWithdrawAddress{}),
sdk.MsgTypeURL(&distrtypes.MsgWithdrawValidatorCommission{}),
sdk.MsgTypeURL(&distrtypes.MsgFundCommunityPool{}),
sdk.MsgTypeURL(&distrtypes.MsgWithdrawDelegatorReward{}),
sdk.MsgTypeURL(&feegrant.MsgGrantAllowance{}),
sdk.MsgTypeURL(&feegrant.MsgRevokeAllowance{}),
sdk.MsgTypeURL(&govv1beta1.MsgVoteWeighted{}),
sdk.MsgTypeURL(&govv1beta1.MsgSubmitProposal{}),
sdk.MsgTypeURL(&govv1beta1.MsgDeposit{}),
sdk.MsgTypeURL(&govv1beta1.MsgVote{}),
// Change: add messages from Group module
sdk.MsgTypeURL(&group.MsgCreateGroupPolicy{}),
sdk.MsgTypeURL(&group.MsgCreateGroupWithPolicy{}),
sdk.MsgTypeURL(&group.MsgCreateGroup{}),
sdk.MsgTypeURL(&group.MsgExec{}),
sdk.MsgTypeURL(&group.MsgLeaveGroup{}),
sdk.MsgTypeURL(&group.MsgSubmitProposal{}),
sdk.MsgTypeURL(&group.MsgUpdateGroupAdmin{}),
sdk.MsgTypeURL(&group.MsgUpdateGroupMembers{}),
sdk.MsgTypeURL(&group.MsgUpdateGroupMetadata{}),
sdk.MsgTypeURL(&group.MsgUpdateGroupPolicyAdmin{}),
sdk.MsgTypeURL(&group.MsgUpdateGroupPolicyDecisionPolicy{}),
sdk.MsgTypeURL(&group.MsgUpdateGroupPolicyMetadata{}),
sdk.MsgTypeURL(&group.MsgVote{}),
sdk.MsgTypeURL(&group.MsgWithdrawProposal{}),
// Change: add messages from Oracle module
sdk.MsgTypeURL(&oracletypes.MsgActivate{}),
sdk.MsgTypeURL(&oracletypes.MsgCreateDataSource{}),
sdk.MsgTypeURL(&oracletypes.MsgCreateOracleScript{}),
sdk.MsgTypeURL(&oracletypes.MsgEditDataSource{}),
sdk.MsgTypeURL(&oracletypes.MsgEditOracleScript{}),
sdk.MsgTypeURL(&oracletypes.MsgReportData{}),
sdk.MsgTypeURL(&oracletypes.MsgRequestData{}),
sdk.MsgTypeURL(&stakingtypes.MsgEditValidator{}),
sdk.MsgTypeURL(&stakingtypes.MsgDelegate{}),
sdk.MsgTypeURL(&stakingtypes.MsgUndelegate{}),
sdk.MsgTypeURL(&stakingtypes.MsgBeginRedelegate{}),
sdk.MsgTypeURL(&stakingtypes.MsgCreateValidator{}),
sdk.MsgTypeURL(&vestingtypes.MsgCreateVestingAccount{}),
sdk.MsgTypeURL(&ibctransfertypes.MsgTransfer{}),
}