state

package
v2.2.0-a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 30 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

func SetupTestSuite(t testing.TB) *TestSuite

SetupTestSuite provides toolkit for accessing stores and keepers for complex data interactions.

func SetupTestSuiteWithKeepers

func SetupTestSuiteWithKeepers(t testing.TB, keepers Keepers) *TestSuite

func (*TestSuite) App

func (ts *TestSuite) App() *app.AkashApp

func (*TestSuite) AuditKeeper

func (ts *TestSuite) AuditKeeper() akeeper.IKeeper

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) BmeKeeper

func (ts *TestSuite) BmeKeeper() bmekeeper.Keeper

BmeKeeper key store

func (*TestSuite) Context

func (ts *TestSuite) Context() sdk.Context

Context of the current mempool

func (*TestSuite) DeploymentKeeper

func (ts *TestSuite) DeploymentKeeper() dkeeper.IKeeper

DeploymentKeeper key store

func (*TestSuite) EscrowKeeper

func (ts *TestSuite) EscrowKeeper() ekeeper.Keeper

EscrowKeeper key store

func (*TestSuite) MarketKeeper

func (ts *TestSuite) MarketKeeper() mkeeper.IKeeper

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 (ts *TestSuite) PrepareMocks(fn func(ts *TestSuite))

func (*TestSuite) PriceFeeder

func (ts *TestSuite) PriceFeeder() *oracletestutil.PriceFeeder

PriceFeeder returns the oracle price feeder for testing

func (*TestSuite) ProviderKeeper

func (ts *TestSuite) ProviderKeeper() pkeeper.IKeeper

ProviderKeeper key store

func (*TestSuite) SetBlockHeight

func (ts *TestSuite) SetBlockHeight(height int64)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL