Skip to content

Commit

Permalink
Merge pull request #15 from initia-labs/feat/emergency-proposal
Browse files Browse the repository at this point in the history
feat: implement emergency proposal
  • Loading branch information
beer-1 authored Nov 17, 2023
2 parents d22ddac + 7b12cdf commit e382d93
Show file tree
Hide file tree
Showing 50 changed files with 7,618 additions and 368 deletions.
5 changes: 3 additions & 2 deletions app/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
govtypesv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
icacontrollertypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/types"
icagenesistypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/genesis/types"
icahosttypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host/types"
icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types"

customdistrtypes "github.com/initia-labs/initia/x/distribution/types"
customgovtypes "github.com/initia-labs/initia/x/gov/types"
movetypes "github.com/initia-labs/initia/x/move/types"
stakingtypes "github.com/initia-labs/initia/x/mstaking/types"
rewardtypes "github.com/initia-labs/initia/x/reward/types"
Expand Down Expand Up @@ -53,9 +53,10 @@ func (genState GenesisState) ConfigureBondDenom(cdc codec.JSONCodec, bondDenom s
crisisGenState.ConstantFee.Denom = bondDenom
genState[crisistypes.ModuleName] = cdc.MustMarshalJSON(&crisisGenState)

var govGenState govtypesv1.GenesisState
var govGenState customgovtypes.GenesisState
cdc.MustUnmarshalJSON(genState[govtypes.ModuleName], &govGenState)
govGenState.Params.MinDeposit[0].Denom = bondDenom
govGenState.Params.EmergencyMinDeposit[0].Denom = bondDenom
genState[govtypes.ModuleName] = cdc.MustMarshalJSON(&govGenState)

var rewardGenState rewardtypes.GenesisState
Expand Down
10 changes: 9 additions & 1 deletion client/docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"url": "./tmp-swagger-gen/initia/distribution/v1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "CustomParams",
"Params": "CustomDistributionParams",
"DelegationTotalRewards": "CustomDelegationTotalRewards",
"DelegationRewards": "CustomDelegationRewards",
"ValidatorCommission": "CustomValidatorCommission",
Expand All @@ -218,6 +218,14 @@
}
}
},
{
"url": "./tmp-swagger-gen/initia/gov/v1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "CustomGovParams"
}
}
},
{
"url": "./tmp-swagger-gen/initia/move/v1/query.swagger.json",
"operationIds": {
Expand Down
2 changes: 1 addition & 1 deletion client/docs/statik/statik.go

Large diffs are not rendered by default.

Loading

0 comments on commit e382d93

Please sign in to comment.