-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: wasm module's FIXME in the snapshotter.go file (#649)
* fix: wasm module's FIXME in the snapshotter.go file * fix: change to randomly create temp directory for snapshot for multi-chain test * docs: update CHANGELOG
- Loading branch information
Showing
6 changed files
with
372 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
package simapp | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/line/lbm-sdk/baseapp" | ||
"github.com/line/lbm-sdk/client" | ||
"github.com/line/lbm-sdk/codec" | ||
"github.com/line/lbm-sdk/simapp/params" | ||
bankkeeper "github.com/line/lbm-sdk/x/bank/keeper" | ||
capabilitykeeper "github.com/line/lbm-sdk/x/capability/keeper" | ||
ibctransferkeeper "github.com/line/lbm-sdk/x/ibc/applications/transfer/keeper" | ||
stakingkeeper "github.com/line/lbm-sdk/x/staking/keeper" | ||
"github.com/line/lbm-sdk/x/wasm" | ||
) | ||
|
||
type TestSupport struct { | ||
t testing.TB | ||
app *SimApp | ||
} | ||
|
||
func NewTestSupport(t testing.TB, app *SimApp) *TestSupport { | ||
return &TestSupport{t: t, app: app} | ||
} | ||
|
||
func (s TestSupport) WasmKeeper() wasm.Keeper { | ||
return s.app.WasmKeeper | ||
} | ||
|
||
func (s TestSupport) AppCodec() codec.Codec { | ||
return s.app.appCodec | ||
} | ||
|
||
func (s TestSupport) ScopedWasmIBCKeeper() capabilitykeeper.ScopedKeeper { | ||
return s.app.ScopedWasmKeeper | ||
} | ||
|
||
func (s TestSupport) ScopeIBCKeeper() capabilitykeeper.ScopedKeeper { | ||
return s.app.ScopedIBCKeeper | ||
} | ||
|
||
func (s TestSupport) ScopedTransferKeeper() capabilitykeeper.ScopedKeeper { | ||
return s.app.ScopedTransferKeeper | ||
} | ||
|
||
func (s TestSupport) StakingKeeper() stakingkeeper.Keeper { | ||
return s.app.StakingKeeper | ||
} | ||
|
||
func (s TestSupport) BankKeeper() bankkeeper.Keeper { | ||
return s.app.BankKeeper | ||
} | ||
|
||
func (s TestSupport) TransferKeeper() ibctransferkeeper.Keeper { | ||
return s.app.TransferKeeper | ||
} | ||
|
||
func (s TestSupport) GetBaseApp() *baseapp.BaseApp { | ||
return s.app.BaseApp | ||
} | ||
|
||
func (s TestSupport) GetTxConfig() client.TxConfig { | ||
return params.MakeTestEncodingConfig().TxConfig | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.