integration

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

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

	STAKER_0       = "kyve1htgfatqevuvfzvl0sxp97ywteqhg5leha9emf4"
	VALADDRESS_0_A = "kyve1qnf86dkvvtpdukx30r3vajav7rdq8snktm90hm"
	VALADDRESS_0_B = "kyve10t8gnqjnem7tsu09erzswj3zm8599lsnex79rz"
	VALADDRESS_0_C = "kyve13ztkcm2pket6mrmxj8rrmwc6supw7aqakg3uu3"

	STAKER_1       = "kyve1gnr35rwn8rmflnlzs6nn5hhkmzzkxg9ap8xepw"
	VALADDRESS_1_A = "kyve1hpjgzljglmv00nstk3jvcw0zzq94nu0cuxv5ga"
	VALADDRESS_1_B = "kyve14runw9qkltpz2mcx3gsfmlqyyvdzkt3rq3w6fm"
	VALADDRESS_1_C = "kyve15w9m7zpq9ctsxsveqaqkp4uuvw98z5vct6s9g9"

	STAKER_2       = "kyve1xsemlxghgvusumhqzm2ztjw7dz9krvu3de54e2"
	VALADDRESS_2_A = "kyve1u0870dkae6ql63hxvy9y7g65c0y8csfh8allzl"
	VALADDRESS_2_B = "kyve16g3utghkvvlz53jk0fq96zwrhxmqfu36ue965q"
	VALADDRESS_2_C = "kyve18gjtzsn6jme3qsczj9q7wefymlkfu7ngyq5f9c"

	STAKER_3       = "kyve1ca7rzyrxfpdm7j8jgccq4rduuf4sxpq0dhmwm4"
	VALADDRESS_3_A = "kyve1d2clkfrw0r99ctgmkjvluzn6xm98yls06mnxv8"
	VALADDRESS_3_B = "kyve1f36cvde6jnygcrz2yas4acp0akn9cw7vp5ze0w"
	VALADDRESS_3_C = "kyve1gcnd8gya2ysfur6d6z4wpl9z54zadg7qzk8uyc"

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

Variables

View Source
var (
	DUMMY    []string
	VALDUMMY []string
)
View Source
var (
	KYVE_DENOM = globalTypes.Denom
	A_DENOM    = "acoin"
	B_DENOM    = "bcoin"
	C_DENOM    = "ccoin"
)

Functions

func ACoin added in v1.5.0

func ACoin(amount int64) sdk.Coin

func ACoins added in v1.5.0

func ACoins(amount int64) sdk.Coins

func BCoin added in v1.5.0

func BCoin(amount int64) sdk.Coin

func BCoins added in v1.5.0

func BCoins(amount int64) sdk.Coins

func CCoin added in v1.5.0

func CCoin(amount int64) sdk.Coin

func CCoins added in v1.5.0

func CCoins(amount int64) sdk.Coins

func KYVECoin added in v1.5.0

func KYVECoin(amount int64) sdk.Coin

func KYVECoins added in v1.5.0

func KYVECoins(amount int64) sdk.Coins

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) GetBalanceFromPool added in v1.3.0

func (suite *KeeperTestSuite) GetBalanceFromPool(poolId uint64) uint64

func (*KeeperTestSuite) GetCoinsFromAddress added in v1.5.0

func (suite *KeeperTestSuite) GetCoinsFromAddress(address string) sdk.Coins

func (*KeeperTestSuite) GetCoinsFromCommunityPool added in v1.5.0

func (suite *KeeperTestSuite) GetCoinsFromCommunityPool() sdk.Coins

func (*KeeperTestSuite) GetCoinsFromModule added in v1.5.0

func (suite *KeeperTestSuite) GetCoinsFromModule(moduleName string) sdk.Coins

func (*KeeperTestSuite) GetNextUploader

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

func (*KeeperTestSuite) MintCoin added in v1.5.0

func (suite *KeeperTestSuite) MintCoin(address string, coin sdk.Coin) error

func (*KeeperTestSuite) MintCoins added in v1.5.0

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

func (*KeeperTestSuite) MintDenomToModule added in v1.5.0

func (suite *KeeperTestSuite) MintDenomToModule(moduleAddress string, amount uint64, denom string) error

func (*KeeperTestSuite) MustNewIntFromStr added in v1.5.0

func (suite *KeeperTestSuite) MustNewIntFromStr(amount string) math.Int

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) RunTxFundersError added in v1.4.0

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

func (*KeeperTestSuite) RunTxFundersSuccess added in v1.4.0

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

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) VerifyFundersGenesisImportExport added in v1.4.0

func (suite *KeeperTestSuite) VerifyFundersGenesisImportExport()

func (*KeeperTestSuite) VerifyFundersModuleAssetsIntegrity added in v1.4.0

func (suite *KeeperTestSuite) VerifyFundersModuleAssetsIntegrity()

func (*KeeperTestSuite) VerifyFundersModuleIntegrity added in v1.4.0

func (suite *KeeperTestSuite) VerifyFundersModuleIntegrity()

func (*KeeperTestSuite) VerifyPoolGenesisImportExport

func (suite *KeeperTestSuite) VerifyPoolGenesisImportExport()

func (*KeeperTestSuite) VerifyPoolModuleFundingStates added in v1.4.0

func (suite *KeeperTestSuite) VerifyPoolModuleFundingStates()

func (*KeeperTestSuite) VerifyPoolQueries

func (suite *KeeperTestSuite) VerifyPoolQueries()

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

func (*KeeperTestSuite) Wait added in v1.5.0

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

func (*KeeperTestSuite) WaitSeconds added in v1.5.0

func (suite *KeeperTestSuite) WaitSeconds(seconds uint64)

Jump to

Keyboard shortcuts

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