integration

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALICE   = "kyve1jq304cthpx0lwhpqzrdjrcza559ukyy3zsl2vd"
	BOB     = "kyve1hvg7zsnrj6h29q9ss577mhrxa04rn94h7zjugq"
	CHARLIE = "kyve1ay22rr3kz659fupu0tcswlagq4ql6rwm4nuv0s"

	STAKER_0     = "kyve1htgfatqevuvfzvl0sxp97ywteqhg5leha9emf4"
	VALADDRESS_0 = "kyve1qnf86dkvvtpdukx30r3vajav7rdq8snktm90hm"

	STAKER_1     = "kyve1gnr35rwn8rmflnlzs6nn5hhkmzzkxg9ap8xepw"
	VALADDRESS_1 = "kyve1hpjgzljglmv00nstk3jvcw0zzq94nu0cuxv5ga"

	STAKER_2     = "kyve1xsemlxghgvusumhqzm2ztjw7dz9krvu3de54e2"
	VALADDRESS_2 = "kyve1u0870dkae6ql63hxvy9y7g65c0y8csfh8allzl"

	// To avoid giving burner permissions to a module for the tests
	BURNER = "kyve1ld23ktfwc9zstaq8aanwkkj8cf0ru6adtz59y5"
)
View Source
const (
	KYVE  = uint64(1_000_000_000)
	TKYVE = uint64(1)
)

Variables

View Source
var (
	DUMMY    []string
	VALDUMMY []string
)
View Source
var KYVE_DENOM = globalTypes.Denom

Functions

This section is empty.

Types

type KeeperTestSuite

type KeeperTestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

func NewCleanChain

func NewCleanChain() *KeeperTestSuite

func NewCleanChainAtTime

func NewCleanChainAtTime(startTime int64) *KeeperTestSuite

func (*KeeperTestSuite) App

func (suite *KeeperTestSuite) App() *app.App

func (*KeeperTestSuite) Commit

func (suite *KeeperTestSuite) Commit()

func (*KeeperTestSuite) CommitAfter

func (suite *KeeperTestSuite) CommitAfter(t time.Duration)

func (*KeeperTestSuite) CommitAfterSeconds

func (suite *KeeperTestSuite) CommitAfterSeconds(seconds uint64)

func (*KeeperTestSuite) Ctx

func (suite *KeeperTestSuite) Ctx() sdk.Context

func (*KeeperTestSuite) GetBalanceFromAddress

func (suite *KeeperTestSuite) GetBalanceFromAddress(address string) uint64

func (*KeeperTestSuite) GetBalanceFromModule

func (suite *KeeperTestSuite) GetBalanceFromModule(moduleName string) uint64

func (*KeeperTestSuite) GetNextUploader

func (suite *KeeperTestSuite) GetNextUploader() (nextStaker string, nextValaddress string)

func (*KeeperTestSuite) Mint

func (suite *KeeperTestSuite) Mint(address string, amount uint64) error

func (*KeeperTestSuite) PerformValidityChecks

func (suite *KeeperTestSuite) PerformValidityChecks()

func (*KeeperTestSuite) RunTx

func (suite *KeeperTestSuite) RunTx(msg sdk.Msg) (*sdk.Result, error)

func (*KeeperTestSuite) RunTxBundlesError

func (suite *KeeperTestSuite) RunTxBundlesError(msg sdk.Msg)

func (*KeeperTestSuite) RunTxBundlesSuccess

func (suite *KeeperTestSuite) RunTxBundlesSuccess(msg sdk.Msg)

func (*KeeperTestSuite) RunTxDelegatorError

func (suite *KeeperTestSuite) RunTxDelegatorError(msg sdk.Msg)

func (*KeeperTestSuite) RunTxDelegatorSuccess

func (suite *KeeperTestSuite) RunTxDelegatorSuccess(msg sdk.Msg)

func (*KeeperTestSuite) RunTxError added in v1.1.0

func (suite *KeeperTestSuite) RunTxError(msg sdk.Msg) error

func (*KeeperTestSuite) RunTxGovError

func (suite *KeeperTestSuite) RunTxGovError(msg sdk.Msg)

func (*KeeperTestSuite) RunTxGovSuccess

func (suite *KeeperTestSuite) RunTxGovSuccess(msg sdk.Msg)

func (*KeeperTestSuite) RunTxPoolError

func (suite *KeeperTestSuite) RunTxPoolError(msg sdk.Msg)

func (*KeeperTestSuite) RunTxPoolSuccess

func (suite *KeeperTestSuite) RunTxPoolSuccess(msg sdk.Msg)

func (*KeeperTestSuite) RunTxStakersError

func (suite *KeeperTestSuite) RunTxStakersError(msg sdk.Msg)

func (*KeeperTestSuite) RunTxStakersSuccess

func (suite *KeeperTestSuite) RunTxStakersSuccess(msg sdk.Msg)

func (*KeeperTestSuite) RunTxSuccess

func (suite *KeeperTestSuite) RunTxSuccess(msg sdk.Msg) *sdk.Result

func (*KeeperTestSuite) RunTxTeamError

func (suite *KeeperTestSuite) RunTxTeamError(msg sdk.Msg)

func (*KeeperTestSuite) RunTxTeamSuccess

func (suite *KeeperTestSuite) RunTxTeamSuccess(msg sdk.Msg)

func (*KeeperTestSuite) SetCtx

func (suite *KeeperTestSuite) SetCtx(ctx sdk.Context)

func (*KeeperTestSuite) SetupApp

func (suite *KeeperTestSuite) SetupApp(startTime int64)

func (*KeeperTestSuite) SetupTest

func (suite *KeeperTestSuite) SetupTest(startTime int64)

func (*KeeperTestSuite) VerifyActiveStakers

func (suite *KeeperTestSuite) VerifyActiveStakers()

func (*KeeperTestSuite) VerifyBundlesGenesisImportExport

func (suite *KeeperTestSuite) VerifyBundlesGenesisImportExport()

func (*KeeperTestSuite) VerifyBundlesQueries

func (suite *KeeperTestSuite) VerifyBundlesQueries()

func (*KeeperTestSuite) VerifyDelegationGenesisImportExport

func (suite *KeeperTestSuite) VerifyDelegationGenesisImportExport()

func (*KeeperTestSuite) VerifyDelegationModuleIntegrity

func (suite *KeeperTestSuite) VerifyDelegationModuleIntegrity()

func (*KeeperTestSuite) VerifyDelegationQueries

func (suite *KeeperTestSuite) VerifyDelegationQueries()

func (*KeeperTestSuite) VerifyPoolGenesisImportExport

func (suite *KeeperTestSuite) VerifyPoolGenesisImportExport()

func (*KeeperTestSuite) VerifyPoolModuleAssetsIntegrity

func (suite *KeeperTestSuite) VerifyPoolModuleAssetsIntegrity()

func (*KeeperTestSuite) VerifyPoolQueries

func (suite *KeeperTestSuite) VerifyPoolQueries()

func (*KeeperTestSuite) VerifyPoolTotalFunds

func (suite *KeeperTestSuite) VerifyPoolTotalFunds()

func (*KeeperTestSuite) VerifyPoolTotalStake

func (suite *KeeperTestSuite) VerifyPoolTotalStake()

func (*KeeperTestSuite) VerifyStakersGenesisImportExport

func (suite *KeeperTestSuite) VerifyStakersGenesisImportExport()

func (*KeeperTestSuite) VerifyStakersModuleAssetsIntegrity

func (suite *KeeperTestSuite) VerifyStakersModuleAssetsIntegrity()

func (*KeeperTestSuite) VerifyStakersQueries

func (suite *KeeperTestSuite) VerifyStakersQueries()

func (*KeeperTestSuite) VerifyTeamGenesisImportExport

func (suite *KeeperTestSuite) VerifyTeamGenesisImportExport()

type QueryClients

type QueryClients struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳