Skip to content

Commit

Permalink
feat(gov): implement EGF functionality for government module (#720)
Browse files Browse the repository at this point in the history
Co-authored-by: fx0x55 <80245546+fx0x55@users.noreply.github.com>
  • Loading branch information
zakir-code and fx0x55 authored Oct 9, 2024
1 parent 0698a42 commit b796e92
Show file tree
Hide file tree
Showing 36 changed files with 3,200 additions and 3,728 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ lint-install:
fi

check-no-lint:
@if [ $$(find . -name '*.go' -type f | xargs grep 'nolint\|#nosec' | wc -l) -ne 29 ]; then \
@if [ $$(find . -name '*.go' -type f | xargs grep 'nolint\|#nosec' | wc -l) -ne 30 ]; then \
echo "\033[91m--> increase or decrease nolint, please recheck them\033[0m"; \
echo "\033[91m--> list nolint: \`find . -name '*.go' -type f | xargs grep 'nolint\|#nosec'\`\033[0m"; \
exit 1;\
Expand Down
2 changes: 2 additions & 0 deletions app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ func Test_MsgServiceRouter(t *testing.T) {
sdk.MsgTypeURL(&crosschaintypes.MsgSetOrchestratorAddress{}): {},
sdk.MsgTypeURL(&crosschaintypes.MsgAddOracleDeposit{}): {},
sdk.MsgTypeURL(&legacy.MsgUpdateParams{}): {},
sdk.MsgTypeURL(&legacy.MsgUpdateFXParams{}): {},
sdk.MsgTypeURL(&legacy.MsgUpdateEGFParams{}): {},
}
for _, msg := range myApp.InterfaceRegistry().ListImplementations(sdk.MsgInterfaceProtoName) {
if _, ok := deprecated[msg]; ok {
Expand Down
6 changes: 4 additions & 2 deletions app/interface_registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@
"/fx.erc20.v1.UpdateDenomAliasProposal",
"/fx.evm.v1.MsgCallContract",
"/fx.evm.v1.MsgCallContractResponse",
"/fx.gov.v1.MsgUpdateCustomParams",
"/fx.gov.v1.MsgUpdateCustomParamsResponse",
"/fx.gov.v1.MsgUpdateEGFParams",
"/fx.gov.v1.MsgUpdateEGFParamsResponse",
"/fx.gov.v1.MsgUpdateFXParams",
"/fx.gov.v1.MsgUpdateFXParamsResponse",
"/fx.gov.v1.MsgUpdateParams",
"/fx.gov.v1.MsgUpdateStore",
"/fx.gov.v1.MsgUpdateStoreResponse",
Expand Down Expand Up @@ -416,6 +416,7 @@
"/fx.erc20.v1.MsgUpdateDenomAlias",
"/fx.erc20.v1.MsgUpdateParams",
"/fx.evm.v1.MsgCallContract",
"/fx.gov.v1.MsgUpdateCustomParams",
"/fx.gov.v1.MsgUpdateEGFParams",
"/fx.gov.v1.MsgUpdateFXParams",
"/fx.gov.v1.MsgUpdateParams",
Expand Down Expand Up @@ -499,6 +500,7 @@
"/fx.erc20.v1.MsgUpdateDenomAlias",
"/fx.erc20.v1.MsgUpdateParams",
"/fx.evm.v1.MsgCallContract",
"/fx.gov.v1.MsgUpdateCustomParams",
"/fx.gov.v1.MsgUpdateEGFParams",
"/fx.gov.v1.MsgUpdateFXParams",
"/fx.gov.v1.MsgUpdateParams",
Expand Down
1 change: 1 addition & 0 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ func NewAppKeeper(
_govKeeper.SetLegacyRouter(govRouter)

appKeepers.GovKeeper = fxgovkeeper.NewKeeper(
runtime.NewKVStoreService(appKeepers.keys[govtypes.StoreKey]),
appKeepers.AccountKeeper,
appKeepers.BankKeeper,
appKeepers.StakingKeeper,
Expand Down
2 changes: 1 addition & 1 deletion docs/statik/statik.go

Large diffs are not rendered by default.

Loading

0 comments on commit b796e92

Please sign in to comment.