@@ -143,9 +143,6 @@ import (
143
143
"github.com/haqq-network/haqq/x/coinomics"
144
144
coinomicskeeper "github.com/haqq-network/haqq/x/coinomics/keeper"
145
145
coinomicstypes "github.com/haqq-network/haqq/x/coinomics/types"
146
- "github.com/haqq-network/haqq/x/dao"
147
- daokeeper "github.com/haqq-network/haqq/x/dao/keeper"
148
- daotypes "github.com/haqq-network/haqq/x/dao/types"
149
146
"github.com/haqq-network/haqq/x/epochs"
150
147
epochskeeper "github.com/haqq-network/haqq/x/epochs/keeper"
151
148
epochstypes "github.com/haqq-network/haqq/x/epochs/types"
@@ -156,6 +153,9 @@ import (
156
153
"github.com/haqq-network/haqq/x/liquidvesting"
157
154
liquidvestingkeeper "github.com/haqq-network/haqq/x/liquidvesting/keeper"
158
155
liquidvestingtypes "github.com/haqq-network/haqq/x/liquidvesting/types"
156
+ "github.com/haqq-network/haqq/x/ucdao"
157
+ ucdaokeeper "github.com/haqq-network/haqq/x/ucdao/keeper"
158
+ ucdaotypes "github.com/haqq-network/haqq/x/ucdao/types"
159
159
"github.com/haqq-network/haqq/x/vesting"
160
160
vestingkeeper "github.com/haqq-network/haqq/x/vesting/keeper"
161
161
vestingtypes "github.com/haqq-network/haqq/x/vesting/types"
@@ -172,6 +172,7 @@ import (
172
172
v174 "github.com/haqq-network/haqq/app/upgrades/v1.7.4"
173
173
v175 "github.com/haqq-network/haqq/app/upgrades/v1.7.5"
174
174
v176 "github.com/haqq-network/haqq/app/upgrades/v1.7.6"
175
+ v177 "github.com/haqq-network/haqq/app/upgrades/v1.7.7"
175
176
176
177
// NOTE: override ICS20 keeper to support IBC transfers of ERC20 tokens
177
178
"github.com/haqq-network/haqq/x/ibc/transfer"
@@ -249,7 +250,7 @@ var (
249
250
epochs.AppModuleBasic {},
250
251
consensus.AppModuleBasic {},
251
252
liquidvesting.AppModuleBasic {},
252
- dao .AppModuleBasic {},
253
+ ucdao .AppModuleBasic {},
253
254
)
254
255
255
256
// module account permissions
@@ -266,7 +267,7 @@ var (
266
267
coinomicstypes .ModuleName : {authtypes .Minter },
267
268
vestingtypes .ModuleName : nil , // Add vesting module account
268
269
liquidvestingtypes .ModuleName : {authtypes .Minter , authtypes .Burner },
269
- daotypes .ModuleName : nil ,
270
+ ucdaotypes .ModuleName : nil ,
270
271
}
271
272
272
273
// module accounts that are allowed to receive tokens
@@ -335,7 +336,7 @@ type Haqq struct {
335
336
336
337
// Haqq keepers
337
338
CoinomicsKeeper coinomicskeeper.Keeper
338
- DaoKeeper daokeeper .Keeper
339
+ DaoKeeper ucdaokeeper .Keeper
339
340
340
341
// the module manager
341
342
mm * module.Manager
@@ -409,7 +410,7 @@ func NewHaqq(
409
410
// haqq keys
410
411
coinomicstypes .StoreKey ,
411
412
liquidvestingtypes .StoreKey ,
412
- daotypes .StoreKey ,
413
+ ucdaotypes .StoreKey ,
413
414
)
414
415
415
416
// Add the EVM transient store key
@@ -559,8 +560,8 @@ func NewHaqq(
559
560
app .AccountKeeper , app .BankKeeper , app .Erc20Keeper , app .VestingKeeper ,
560
561
)
561
562
562
- app .DaoKeeper = daokeeper .NewBaseKeeper (
563
- appCodec , keys [daotypes .StoreKey ], app .AccountKeeper , app .BankKeeper , authAddr ,
563
+ app .DaoKeeper = ucdaokeeper .NewBaseKeeper (
564
+ appCodec , keys [ucdaotypes .StoreKey ], app .AccountKeeper , app .BankKeeper , authAddr ,
564
565
)
565
566
566
567
epochsKeeper := epochskeeper .NewKeeper (appCodec , keys [epochstypes .StoreKey ])
@@ -711,7 +712,7 @@ func NewHaqq(
711
712
712
713
// Haqq app modules
713
714
coinomics .NewAppModule (app .CoinomicsKeeper , app .AccountKeeper , app .StakingKeeper ),
714
- dao .NewAppModule (appCodec , app .DaoKeeper , app .GetSubspace (daotypes .ModuleName )),
715
+ ucdao .NewAppModule (appCodec , app .DaoKeeper , app .GetSubspace (ucdaotypes .ModuleName )),
715
716
)
716
717
717
718
// During begin block slashing happens after distr.BeginBlocker so that
@@ -749,7 +750,7 @@ func NewHaqq(
749
750
coinomicstypes .ModuleName ,
750
751
consensusparamtypes .ModuleName ,
751
752
liquidvestingtypes .ModuleName ,
752
- daotypes .ModuleName ,
753
+ ucdaotypes .ModuleName ,
753
754
)
754
755
755
756
// NOTE: fee market module must go last in order to retrieve the block gas used.
@@ -786,7 +787,7 @@ func NewHaqq(
786
787
coinomicstypes .ModuleName ,
787
788
consensusparamtypes .ModuleName ,
788
789
liquidvestingtypes .ModuleName ,
789
- daotypes .ModuleName ,
790
+ ucdaotypes .ModuleName ,
790
791
)
791
792
792
793
// NOTE: The genutils module must occur after staking so that pools are
@@ -826,7 +827,7 @@ func NewHaqq(
826
827
coinomicstypes .ModuleName ,
827
828
erc20types .ModuleName ,
828
829
epochstypes .ModuleName ,
829
- daotypes .ModuleName ,
830
+ ucdaotypes .ModuleName ,
830
831
// NOTE: crisis module must go at the end to check for invariants on each module
831
832
crisistypes .ModuleName ,
832
833
consensusparamtypes .ModuleName ,
@@ -1189,7 +1190,7 @@ func initParamsKeeper(
1189
1190
// haqq subspaces
1190
1191
paramsKeeper .Subspace (coinomicstypes .ModuleName )
1191
1192
paramsKeeper .Subspace (liquidvestingtypes .ModuleName )
1192
- paramsKeeper .Subspace (daotypes .ModuleName )
1193
+ paramsKeeper .Subspace (ucdaotypes .ModuleName )
1193
1194
1194
1195
return paramsKeeper
1195
1196
}
@@ -1298,6 +1299,12 @@ func (app *Haqq) setupUpgradeHandlers() {
1298
1299
v176 .CreateUpgradeHandler (app .mm , app .configurator , app .AccountKeeper , app .BankKeeper , app .StakingKeeper , app .DaoKeeper , app .LiquidVestingKeeper , app .Erc20Keeper ),
1299
1300
)
1300
1301
1302
+ // v1.7.7 Rename DAO module to United Contributors DAO
1303
+ app .UpgradeKeeper .SetUpgradeHandler (
1304
+ v177 .UpgradeName ,
1305
+ v177 .CreateUpgradeHandler (app .mm , app .configurator ),
1306
+ )
1307
+
1301
1308
// When a planned update height is reached, the old binary will panic
1302
1309
// writing on disk the height and name of the update that triggered it
1303
1310
// This will read that value, and execute the preparations for the upgrade.
@@ -1341,7 +1348,16 @@ func (app *Haqq) setupUpgradeHandlers() {
1341
1348
case v176 .UpgradeName :
1342
1349
storeUpgrades = & storetypes.StoreUpgrades {
1343
1350
Added : []string {
1344
- daotypes .ModuleName ,
1351
+ ucdaotypes .ModuleOldName ,
1352
+ },
1353
+ }
1354
+ case v177 .UpgradeName :
1355
+ storeUpgrades = & storetypes.StoreUpgrades {
1356
+ Renamed : []storetypes.StoreRename {
1357
+ {
1358
+ OldKey : ucdaotypes .ModuleOldName ,
1359
+ NewKey : ucdaotypes .ModuleName ,
1360
+ },
1345
1361
},
1346
1362
}
1347
1363
}
0 commit comments