From 27391b5f57a79ab89d014a831a8d4e077780bb28 Mon Sep 17 00:00:00 2001 From: Khanh Hoa Date: Thu, 28 Mar 2024 22:42:06 +0700 Subject: [PATCH] feat: add 08-wasm --- app/keepers/keepers.go | 8 +++++++- go.mod | 2 ++ go.sum | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/keepers/keepers.go b/app/keepers/keepers.go index 81f646eb..992204bc 100644 --- a/app/keepers/keepers.go +++ b/app/keepers/keepers.go @@ -429,7 +429,13 @@ func (appKeepers *AppKeepers) InitNormalKeepers( ) // use same VM for wasm - appKeepers.Wasm08Keeper = wasm08Keeper.NewKeeperWithVM(appCodec, runtime.NewKVStoreService(appKeepers.keys[wasm08types.StoreKey]), appKeepers.IBCKeeper.ClientKeeper, govModAddress, wasmer, bApp.GRPCQueryRouter()) + appKeepers.Wasm08Keeper = wasm08Keeper.NewKeeper( + appCodec, + runtime.NewKVStoreService(appKeepers.keys[wasm08types.StoreKey]), + govModAddress, + wasmDir, + &appKeepers.IBCKeeper.ClientKeeper, + bApp.GRPCQueryRouter()) appKeepers.Ics20WasmHooks.ContractKeeper = &appKeepers.WasmKeeper diff --git a/go.mod b/go.mod index 5d64c0fe..7878f96e 100644 --- a/go.mod +++ b/go.mod @@ -364,6 +364,8 @@ replace ( github.com/cosmos/cosmos-sdk => github.com/cosmos/cosmos-sdk v0.50.5 + github.com/cosmos/ibc-go/modules/light-clients/08-wasm => github.com/notional-labs/ibc-go/modules/light-clients/08-wasm v0.0.0-20240328152744-0f9d4a916102 + // use cosmos-compatible protobufs github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 diff --git a/go.sum b/go.sum index a3ad1bbd..d9fbcd11 100644 --- a/go.sum +++ b/go.sum @@ -836,8 +836,6 @@ github.com/cosmos/ibc-apps/modules/async-icq/v8 v8.0.0 h1:nKP2+Rzlz2iyvTosY5mvP+ github.com/cosmos/ibc-apps/modules/async-icq/v8 v8.0.0/go.mod h1:D3Q380FpWRFtmUQWLosPxachi6w24Og2t5u/Tww5wtY= github.com/cosmos/ibc-go/modules/capability v1.0.0 h1:r/l++byFtn7jHYa09zlAdSeevo8ci1mVZNO9+V0xsLE= github.com/cosmos/ibc-go/modules/capability v1.0.0/go.mod h1:D81ZxzjZAe0ZO5ambnvn1qedsFQ8lOwtqicG6liLBco= -github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.1.1-0.20231213092650-57fcdb9a9a9d h1:F4mhR61RZU4KJ38n5CeZrnNINU/KxMfP1sKfk5fTlHA= -github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.1.1-0.20231213092650-57fcdb9a9a9d/go.mod h1:u2FXNcSxzzn5IwjWBA51HKMwiYMRK6/G35VmSJULhP0= github.com/cosmos/ibc-go/v8 v8.0.0 h1:QKipnr/NGwc+9L7NZipURvmSIu+nw9jOIWTJuDBqOhg= github.com/cosmos/ibc-go/v8 v8.0.0/go.mod h1:C6IiJom0F3cIQCD5fKwVPDrDK9j/xTu563AWuOmXois= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= @@ -1403,6 +1401,8 @@ github.com/nishanths/exhaustive v0.9.5 h1:TzssWan6orBiLYVqewCG8faud9qlFntJE30ACp github.com/nishanths/exhaustive v0.9.5/go.mod h1:IbwrGdVMizvDcIxPYGVdQn5BqWJaOwpCvg4RGb8r/TA= github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk= github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c= +github.com/notional-labs/ibc-go/modules/light-clients/08-wasm v0.0.0-20240328152744-0f9d4a916102 h1:XKnqm3lM0mj7VYUpRrdbu4Pf01oz8spFr5rKEZIt4lk= +github.com/notional-labs/ibc-go/modules/light-clients/08-wasm v0.0.0-20240328152744-0f9d4a916102/go.mod h1:u2FXNcSxzzn5IwjWBA51HKMwiYMRK6/G35VmSJULhP0= github.com/nunnatsa/ginkgolinter v0.9.0 h1:Sm0zX5QfjJzkeCjEp+t6d3Ha0jwvoDjleP9XCsrEzOA= github.com/nunnatsa/ginkgolinter v0.9.0/go.mod h1:FHaMLURXP7qImeH6bvxWJUpyH+2tuqe5j4rW1gxJRmI= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=