Skip to content

Commit

Permalink
upd keeper, whitelist msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
quasisamurai committed Sep 8, 2023
1 parent 01616e6 commit 6d36314
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
16 changes: 15 additions & 1 deletion app/proposals_allowlisting.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ import (
icahosttypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host/types"
ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"
contractmanagertypes "github.com/neutron-org/neutron/x/contractmanager/types"
crontypes "github.com/neutron-org/neutron/x/cron/types"
feeburnertypes "github.com/neutron-org/neutron/x/feeburner/types"
feerefundertypes "github.com/neutron-org/neutron/x/feerefunder/types"
interchainqueriestypes "github.com/neutron-org/neutron/x/interchainqueries/types"
interchaintxstypes "github.com/neutron-org/neutron/x/interchaintxs/types"
tokenfactorytypes "github.com/neutron-org/neutron/x/tokenfactory/types"
)

func IsConsumerProposalAllowlisted(content govtypes.Content) bool {
Expand Down Expand Up @@ -46,7 +53,14 @@ func isSdkMessageWhitelisted(msg sdk.Msg) bool {
*wasmtypes.MsgPinCodes,
*wasmtypes.MsgUnpinCodes,
*upgradetypes.MsgSoftwareUpgrade,
*upgradetypes.MsgCancelUpgrade:
*upgradetypes.MsgCancelUpgrade,
*tokenfactorytypes.MsgUpdateParams,
*interchainqueriestypes.MsgUpdateParams,
*interchaintxstypes.MsgUpdateParams,
*feeburnertypes.MsgUpdateParams,
*feerefundertypes.MsgUpdateParams,
*crontypes.MsgUpdateParams,
*contractmanagertypes.MsgUpdateParams:
return true
}
return false
Expand Down
2 changes: 1 addition & 1 deletion wasmbinding/bindings/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ type BurnTokens struct {

type SetBeforeSend struct {
Denom string `json:"denom"`
CosmWasmAddr string `json:"mint_to_address"`
CosmWasmAddr string `json:"cosm_wasm_addr"`
}

// AddSchedule adds new schedule to the cron module
Expand Down
2 changes: 1 addition & 1 deletion x/tokenfactory/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (k Keeper) Logger(ctx sdk.Context) log.Logger {
return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName))
}

// Logger returns a logger for the x/tokenfactory module
// GetAuthority returns an authority for the x/tokenfactory module
func (k Keeper) GetAuthority() string {
return k.authority
}
Expand Down

0 comments on commit 6d36314

Please sign in to comment.