Skip to content

Commit bfd6cf4

Browse files
committed
chore: use ignite v29.3.x
1 parent 4ceb94f commit bfd6cf4

File tree

13 files changed

+141
-136
lines changed

13 files changed

+141
-136
lines changed

app/app.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,9 @@ type App struct {
9898
ICAHostKeeper icahostkeeper.Keeper
9999
TransferKeeper ibctransferkeeper.Keeper
100100

101-
ExampleKeeper examplemodulekeeper.Keeper
102-
// this line is used by starport scaffolding # stargate/app/keeperDeclaration
103-
104101
// simulation manager
105-
sm *module.SimulationManager
102+
sm *module.SimulationManager
103+
ExampleKeeper examplemodulekeeper.Keeper
106104
}
107105

108106
func init() {

app/app_config.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ var (
8383
{Account: nft.ModuleName},
8484
{Account: ibctransfertypes.ModuleName, Permissions: []string{authtypes.Minter, authtypes.Burner}},
8585
{Account: icatypes.ModuleName},
86-
// this line is used by starport scaffolding # stargate/app/maccPerms
8786
}
8887

8988
// blocked account addresses

app/ibc.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ import (
2020
ibctransfer "github.com/cosmos/ibc-go/v10/modules/apps/transfer"
2121
ibctransferkeeper "github.com/cosmos/ibc-go/v10/modules/apps/transfer/keeper"
2222
ibctransfertypes "github.com/cosmos/ibc-go/v10/modules/apps/transfer/types"
23+
ibctransferv2 "github.com/cosmos/ibc-go/v10/modules/apps/transfer/v2"
2324
ibc "github.com/cosmos/ibc-go/v10/modules/core"
2425
ibcclienttypes "github.com/cosmos/ibc-go/v10/modules/core/02-client/types" // nolint:staticcheck // Deprecated: params key table is needed for params migration
2526
ibcconnectiontypes "github.com/cosmos/ibc-go/v10/modules/core/03-connection/types"
2627
porttypes "github.com/cosmos/ibc-go/v10/modules/core/05-port/types"
28+
ibcapi "github.com/cosmos/ibc-go/v10/modules/core/api"
2729
ibcexported "github.com/cosmos/ibc-go/v10/modules/core/exported"
2830
ibckeeper "github.com/cosmos/ibc-go/v10/modules/core/keeper"
2931
solomachine "github.com/cosmos/ibc-go/v10/modules/light-clients/06-solomachine"
@@ -100,19 +102,25 @@ func (app *App) registerIBCModules(appOpts servertypes.AppOptions) error {
100102
// create IBC module from bottom to top of stack
101103
var (
102104
transferStack porttypes.IBCModule = ibctransfer.NewIBCModule(app.TransferKeeper)
105+
transferStackV2 ibcapi.IBCModule = ibctransferv2.NewIBCModule(app.TransferKeeper)
103106
icaControllerStack porttypes.IBCModule = icacontroller.NewIBCMiddleware(app.ICAControllerKeeper)
104107
icaHostStack porttypes.IBCModule = icahost.NewIBCModule(app.ICAHostKeeper)
105108
)
106109

107-
// create static IBC router, add transfer route, then set it on the keeper
110+
// create IBC v1 router, add transfer route, then set it on the keeper
108111
ibcRouter := porttypes.NewRouter().
109112
AddRoute(ibctransfertypes.ModuleName, transferStack).
110113
AddRoute(icacontrollertypes.SubModuleName, icaControllerStack).
111114
AddRoute(icahosttypes.SubModuleName, icaHostStack)
112115

116+
// create IBC v2 router, add transfer route, then set it on the keeper
117+
ibcv2Router := ibcapi.NewRouter().
118+
AddRoute(ibctransfertypes.PortID, transferStackV2)
119+
113120
// this line is used by starport scaffolding # ibc/app/module
114121

115122
app.IBCKeeper.SetRouter(ibcRouter)
123+
app.IBCKeeper.SetRouterV2(ibcv2Router)
116124

117125
clientKeeper := app.IBCKeeper.ClientKeeper
118126
storeProvider := clientKeeper.GetStoreProvider()

app/sim_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func interBlockCacheOpt() func(*baseapp.BaseApp) {
5757
}
5858

5959
// BenchmarkSimulation run the chain simulation
60-
// Running using starport command:
60+
// Running using ignite command:
6161
// `ignite chain simulate -v --numBlocks 200 --blockSize 50`
6262
// Running as go benchmark test:
6363
// `go test -benchmem -run=^$ -bench ^BenchmarkSimulation ./app -NumBlocks=200 -BlockSize 50 -Commit=true -Verbose=true -Enabled=true`

buf.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ deps:
2020
commit: 61b203b9a9164be9a834f58c37be6f62
2121
digest: b5:7811a98b35bd2e4ae5c3ac73c8b3d9ae429f3a790da15de188dc98fc2b77d6bb10e45711f14903af9553fa9821dff256054f2e4b7795789265bc476bec2f088c
2222
- name: buf.build/protocolbuffers/wellknowntypes
23-
commit: 3ddd61d1f53d485abd3d3a2b47a62b8e
24-
digest: b5:09e4405493fa16fef2af6b667fcaea9d2280ec44ed4943eddb96fb5a32daa1e8a353331dd4ef33b7df3783d17e912a703d57b73b236cd749d6a87ce83f60e2c9
23+
commit: a4aee59cf3714106961b09d99b349cd1
24+
digest: b5:0bcf938c1c604919ccc4bee0b72b56ffe049fd043837b80aca7c89a984979e9b4913b4973166fa6e7895995b30da23daab6c83d9ba21d9d16ddc414bf25e3288

config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ accounts:
1212
- 100000000ignt
1313
client:
1414
openapi:
15-
path: docs/static/openapi.yml
15+
path: docs/static/openapi.json
1616
faucet:
1717
name: bob
1818
coins:

docs/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
const (
12-
apiFile = "/static/openapi.yml"
12+
apiFile = "/static/openapi.json"
1313
indexFile = "template/index.tpl"
1414
)
1515

docs/static/openapi.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"id":"github.com/ignite/example","consumes":["application/json"],"produces":["application/json"],"swagger":"2.0","info":{"description":"Chain github.com/ignite/example REST API","title":"HTTP API Console","contact":{"name":"github.com/ignite/example"},"version":"version not set"},"paths":{"/example.example.v1.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubComigniteexampleMsg_UpdateParams","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/example.example.v1.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/example.example.v1.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}}},"definitions":{"example.example.v1.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"params defines the module parameters to update.\n\nNOTE: All parameters must be supplied.","$ref":"#/definitions/example.example.v1.Params"}}},"example.example.v1.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"example.example.v1.Params":{"description":"Params defines the parameters for the module.","type":"object"},"google.protobuf.Any":{"type":"object","properties":{"@type":{"type":"string"}},"additionalProperties":{}},"google.rpc.Status":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"details":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}},"message":{"type":"string"}}}},"tags":[{"name":"Msg"}]}

docs/static/openapi.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/template/index.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<script src="//unpkg.com/swagger-ui-dist@3.40.0/swagger-ui-bundle.js"></script>
1313
<script>
14-
// init Swagger for faucet's openapi.yml.
14+
// init Swagger for faucet's openapi.json.
1515
window.onload = function() {
1616
window.ui = SwaggerUIBundle({
1717
url: {{ .URL }},

0 commit comments

Comments
 (0)