Documentation
¶
Index ¶
- type Keepers
- type TestSuite
- func (ts *TestSuite) App() *app.AkashApp
- func (ts *TestSuite) AuditKeeper() akeeper.IKeeper
- func (ts *TestSuite) AuthzKeeper() *emocks.AuthzKeeper
- func (ts *TestSuite) BankKeeper() *emocks.BankKeeper
- func (ts *TestSuite) BmeKeeper() bmekeeper.Keeper
- func (ts *TestSuite) Context() sdk.Context
- func (ts *TestSuite) DeploymentKeeper() dkeeper.IKeeper
- func (ts *TestSuite) EscrowKeeper() ekeeper.Keeper
- func (ts *TestSuite) MarketKeeper() mkeeper.IKeeper
- func (ts *TestSuite) MockBMEForDeposit(from sdk.AccAddress, depositCoin sdk.Coin)
- func (ts *TestSuite) OracleKeeper() oraclekeeper.Keeper
- func (ts *TestSuite) PrepareMocks(fn func(ts *TestSuite))
- func (ts *TestSuite) PriceFeeder() *oracletestutil.PriceFeeder
- func (ts *TestSuite) ProviderKeeper() pkeeper.IKeeper
- func (ts *TestSuite) SetBlockHeight(height int64)
- func (ts *TestSuite) Store() store.CommitMultiStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keepers ¶
type Keepers struct {
Account *emocks.AccountKeeper
Audit akeeper.IKeeper
Authz *emocks.AuthzKeeper
Bank *emocks.BankKeeper
BME bmekeeper.Keeper
Deployment dkeeper.IKeeper
Escrow ekeeper.Keeper
Market mkeeper.IKeeper
Oracle oraclekeeper.Keeper
Provider pkeeper.IKeeper
}
type TestSuite ¶
type TestSuite struct {
// contains filtered or unexported fields
}
TestSuite encapsulates a functional Akash nodes data stores for ephemeral testing.
func SetupTestSuite ¶
SetupTestSuite provides toolkit for accessing stores and keepers for complex data interactions.
func (*TestSuite) AuditKeeper ¶
AuditKeeper key store
func (*TestSuite) AuthzKeeper ¶
func (ts *TestSuite) AuthzKeeper() *emocks.AuthzKeeper
AuthzKeeper key store
func (*TestSuite) BankKeeper ¶
func (ts *TestSuite) BankKeeper() *emocks.BankKeeper
BankKeeper key store
func (*TestSuite) DeploymentKeeper ¶
DeploymentKeeper key store
func (*TestSuite) EscrowKeeper ¶
EscrowKeeper key store
func (*TestSuite) MarketKeeper ¶
MarketKeeper key store
func (*TestSuite) MockBMEForDeposit ¶
func (ts *TestSuite) MockBMEForDeposit(from sdk.AccAddress, depositCoin sdk.Coin)
MockBMEForDeposit mocks bank operations for depositing funds into escrow. Deposits go directly to the escrow module account via SendCoinsFromAccountToModule.
func (*TestSuite) OracleKeeper ¶
func (ts *TestSuite) OracleKeeper() oraclekeeper.Keeper
OracleKeeper key store
func (*TestSuite) PrepareMocks ¶
func (*TestSuite) PriceFeeder ¶
func (ts *TestSuite) PriceFeeder() *oracletestutil.PriceFeeder
PriceFeeder returns the oracle price feeder for testing
func (*TestSuite) ProviderKeeper ¶
ProviderKeeper key store
func (*TestSuite) SetBlockHeight ¶
SetBlockHeight provides arbitrarily setting the chain's block height.
func (*TestSuite) Store ¶
func (ts *TestSuite) Store() store.CommitMultiStore
Store provides access to the underlying KVStore