From 571bcefea418633f30644f7722b81e195748c14d Mon Sep 17 00:00:00 2001 From: Kevin Yang <5478483+k-yang@users.noreply.github.com> Date: Tue, 31 Oct 2023 17:18:38 -0500 Subject: [PATCH] fix(wasm): remove unnecessary wasm file --- wasmbinding/wasm.go | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 wasmbinding/wasm.go diff --git a/wasmbinding/wasm.go b/wasmbinding/wasm.go deleted file mode 100644 index 31bf77137..000000000 --- a/wasmbinding/wasm.go +++ /dev/null @@ -1,37 +0,0 @@ -package wasmbinding - -import ( - "github.com/CosmWasm/wasmd/x/wasm" - wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec" - - "github.com/NibiruChain/nibiru/x/sudo/keeper" - - oraclekeeper "github.com/NibiruChain/nibiru/x/oracle/keeper" -) - -// NibiruWasmOptions: Wasm Options are extension points to instantiate the Wasm -// keeper with non-default values -func NibiruWasmOptions( - grpcQueryRouter *baseapp.GRPCQueryRouter, - appCodec codec.Codec, - sudoKeeper keeper.Keeper, - oracleKeeper oraclekeeper.Keeper, -) []wasm.Option { - wasmQueryPlugin := NewQueryPlugin(oracleKeeper) - wasmQueryOption := wasmkeeper.WithQueryPlugins(&wasmkeeper.QueryPlugins{ - Custom: CustomQuerier(wasmQueryPlugin), - Stargate: wasmkeeper.AcceptListStargateQuerier( - WasmAcceptedStargateQueries(), - grpcQueryRouter, - appCodec, - ), - }) - - wasmExecuteOption := wasmkeeper.WithMessageHandlerDecorator( - CustomMessageDecorator(sudoKeeper, oracleKeeper), - ) - - return []wasm.Option{wasmQueryOption, wasmExecuteOption} -}