Skip to content

Commit abd376f

Browse files
committed
merging to get fix in place for wasm keys error
2 parents a96e3e3 + a903d15 commit abd376f

File tree

4 files changed

+9
-165
lines changed

4 files changed

+9
-165
lines changed

app/app.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
evidencekeeper "cosmossdk.io/x/evidence/keeper"
1515
feegrantkeeper "cosmossdk.io/x/feegrant/keeper"
1616
upgradekeeper "cosmossdk.io/x/upgrade/keeper"
17-
cosmwasmmodulekeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
1817
abci "github.com/cometbft/cometbft/abci/types"
1918
dbm "github.com/cosmos/cosmos-db"
2019
"github.com/cosmos/cosmos-sdk/baseapp"
@@ -132,7 +131,7 @@ type App struct {
132131

133132
// Scoped Wasm
134133
ScopedWasmKeeper capabilitykeeper.ScopedKeeper
135-
WasmKeeper cosmwasmmodulekeeper.Keeper
134+
WasmKeeper wasmkeeper.Keeper
136135
PaxKeeper paxmodulekeeper.Keeper
137136
UgdvestingKeeper ugdvestingmodulekeeper.Keeper
138137
UgdmintKeeper ugdmintmodulekeeper.Keeper
@@ -208,6 +207,7 @@ func New(
208207
// This needs to be removed after IBC supports App Wiring.
209208
app.GetIBCKeeper,
210209
app.GetCapabilityScopedKeeper,
210+
app.WasmKeeper,
211211
// Supply the logger
212212
logger,
213213

@@ -444,6 +444,11 @@ func (app *App) GetIBCKeeper() *ibckeeper.Keeper {
444444
return app.IBCKeeper
445445
}
446446

447+
// GetWasmKeeper reurns the wasm keeper
448+
func (app *App) GetWasmKeeper() wasmkeeper.Keeper {
449+
return app.WasmKeeper
450+
}
451+
447452
// GetCapabilityScopedKeeper returns the capability scoped keeper.
448453
func (app *App) GetCapabilityScopedKeeper(moduleName string) capabilitykeeper.ScopedKeeper {
449454
return app.CapabilityKeeper.ScopeToModule(moduleName)

app/app_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ var (
203203
{Account: ugdmintmoduletypes.ModuleName, Permissions: []string{authtypes.Minter}},
204204
{Account: gridnodemoduletypes.ModuleName},
205205
{Account: ugdvestingmoduletypes.ModuleName},
206-
{Account: cosmwasmmoduletypes.ModuleName},
206+
{Account: cosmwasmmoduletypes.ModuleName, Permissions: []string{authtypes.Burner}},
207207
// this line is used by starport scaffolding # stargate/app/maccPerms
208208
}
209209

app/legecyModules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func (app *App) registerLegecyModules(appOpts servertypes.AppOptions) {
214214
wasmOpts...,
215215
)
216216

217-
app.IBCKeeper.SetRouter(ibcRouter)
217+
//app.IBCKeeper.SetRouter(ibcRouter)
218218

219219
app.ScopedIBCKeeper = scopedIBCKeeper
220220
app.ScopedIBCTransferKeeper = scopedIBCTransferKeeper

docs/static/openapi.yml

Lines changed: 0 additions & 161 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,132 +1933,6 @@ paths:
19331933
description: MsgUpdateParams is the Msg/UpdateParams request type.
19341934
tags:
19351935
- Msg
1936-
/cosmos.crisis.v1beta1.Msg/UpdateParams:
1937-
post:
1938-
summary: >-
1939-
UpdateParams defines a governance operation for updating the x/crisis
1940-
module
1941-
1942-
parameters. The authority is defined in the keeper.
1943-
description: 'Since: cosmos-sdk 0.47'
1944-
operationId: CosmosCrisisV1Beta1Msg_UpdateParams
1945-
responses:
1946-
'200':
1947-
description: A successful response.
1948-
schema:
1949-
type: object
1950-
description: >-
1951-
MsgUpdateParamsResponse defines the response structure for
1952-
executing a
1953-
1954-
MsgUpdateParams message.
1955-
1956-
1957-
Since: cosmos-sdk 0.47
1958-
default:
1959-
description: An unexpected error response.
1960-
schema:
1961-
type: object
1962-
properties:
1963-
code:
1964-
type: integer
1965-
format: int32
1966-
message:
1967-
type: string
1968-
details:
1969-
type: array
1970-
items:
1971-
type: object
1972-
properties:
1973-
'@type':
1974-
type: string
1975-
additionalProperties: {}
1976-
parameters:
1977-
- name: body
1978-
description: |-
1979-
MsgUpdateParams is the Msg/UpdateParams request type.
1980-
1981-
Since: cosmos-sdk 0.47
1982-
in: body
1983-
required: true
1984-
schema:
1985-
type: object
1986-
properties:
1987-
authority:
1988-
type: string
1989-
description: >-
1990-
authority is the address that controls the module (defaults to
1991-
x/gov unless overwritten).
1992-
constant_fee:
1993-
description: constant_fee defines the x/crisis parameter.
1994-
type: object
1995-
properties:
1996-
denom:
1997-
type: string
1998-
amount:
1999-
type: string
2000-
description: |-
2001-
MsgUpdateParams is the Msg/UpdateParams request type.
2002-
2003-
Since: cosmos-sdk 0.47
2004-
tags:
2005-
- Msg
2006-
/cosmos.crisis.v1beta1.Msg/VerifyInvariant:
2007-
post:
2008-
summary: VerifyInvariant defines a method to verify a particular invariant.
2009-
operationId: CosmosCrisisV1Beta1Msg_VerifyInvariant
2010-
responses:
2011-
'200':
2012-
description: A successful response.
2013-
schema:
2014-
type: object
2015-
description: >-
2016-
MsgVerifyInvariantResponse defines the Msg/VerifyInvariant
2017-
response type.
2018-
default:
2019-
description: An unexpected error response.
2020-
schema:
2021-
type: object
2022-
properties:
2023-
code:
2024-
type: integer
2025-
format: int32
2026-
message:
2027-
type: string
2028-
details:
2029-
type: array
2030-
items:
2031-
type: object
2032-
properties:
2033-
'@type':
2034-
type: string
2035-
additionalProperties: {}
2036-
parameters:
2037-
- name: body
2038-
description: >-
2039-
MsgVerifyInvariant represents a message to verify a particular
2040-
invariance.
2041-
in: body
2042-
required: true
2043-
schema:
2044-
type: object
2045-
properties:
2046-
sender:
2047-
type: string
2048-
description: >-
2049-
sender is the account address of private key to send coins to
2050-
fee collector account.
2051-
invariant_module_name:
2052-
type: string
2053-
description: name of the invariant module.
2054-
invariant_route:
2055-
type: string
2056-
description: invariant_route is the msg's invariant route.
2057-
description: >-
2058-
MsgVerifyInvariant represents a message to verify a particular
2059-
invariance.
2060-
tags:
2061-
- Msg
20621936
/cosmos.distribution.v1beta1.Msg/CommunityPoolSpend:
20631937
post:
20641938
summary: >-
@@ -20632,48 +20506,13 @@ definitions:
2063220506
description: |-
2063320507
ValidatorParams restrict the public key types validators can use.
2063420508
NOTE: uses ABCI pubkey naming, not Amino names.
20635-
cosmos.crisis.v1beta1.MsgUpdateParams:
20636-
type: object
20637-
properties:
20638-
authority:
20639-
type: string
20640-
description: >-
20641-
authority is the address that controls the module (defaults to x/gov
20642-
unless overwritten).
20643-
constant_fee:
20644-
description: constant_fee defines the x/crisis parameter.
20645-
type: object
20646-
properties:
20647-
denom:
20648-
type: string
20649-
amount:
20650-
type: string
20651-
description: |-
20652-
MsgUpdateParams is the Msg/UpdateParams request type.
20653-
20654-
Since: cosmos-sdk 0.47
2065520509
cosmos.crisis.v1beta1.MsgUpdateParamsResponse:
2065620510
type: object
2065720511
description: |-
2065820512
MsgUpdateParamsResponse defines the response structure for executing a
2065920513
MsgUpdateParams message.
2066020514

2066120515
Since: cosmos-sdk 0.47
20662-
cosmos.crisis.v1beta1.MsgVerifyInvariant:
20663-
type: object
20664-
properties:
20665-
sender:
20666-
type: string
20667-
description: >-
20668-
sender is the account address of private key to send coins to fee
20669-
collector account.
20670-
invariant_module_name:
20671-
type: string
20672-
description: name of the invariant module.
20673-
invariant_route:
20674-
type: string
20675-
description: invariant_route is the msg's invariant route.
20676-
description: MsgVerifyInvariant represents a message to verify a particular invariance.
2067720516
cosmos.crisis.v1beta1.MsgVerifyInvariantResponse:
2067820517
type: object
2067920518
description: MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type.

0 commit comments

Comments
 (0)