test

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 32 Imported by: ? 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

View Source
const (
	TestID                     = "oracleID"
	AlternateTestID            = "altOracleID"
	TestString                 = "{value: 5}"
	AlternateTestString        = "{value: 7}"
	AnotherAlternateTestString = "{value: 9}"
	TestCethReceiverAddress    = "cosmos1gn8409qq9hnrxde37kuxwx5hrxpfpv8426szuv"
)
View Source
const (
	AddressKey1 = "A58856F0FD53BF058B4909A21AEC019107BA6"
)

Variables

This section is empty.

Functions

func CreateTestAddrs

func CreateTestAddrs(numAddrs int) ([]sdk.AccAddress, []sdk.ValAddress)

nolint: unparam

func CreateTestApp

func CreateTestApp(isCheckTx bool) (*app.SifchainApp, sdk.Context)

// returns context and app with params set on account keeper

func CreateTestAppEthBridge

func CreateTestAppEthBridge(isCheckTx bool) (sdk.Context, keeper.Keeper)

func CreateTestKeepers

func CreateTestKeepers(t *testing.T, consensusNeeded float64, validatorAmounts []int64, extraMaccPerm string) (sdk.Context, keeper.Keeper, bankkeeper.Keeper, authkeeper.AccountKeeper, oraclekeeper.Keeper, simappparams.EncodingConfig, []sdk.ValAddress)

CreateTestKeepers greates an Mock App, OracleKeeper, bankKeeper and ValidatorAddresses to be used for test input

func CreateTestPubKeys

func CreateTestPubKeys(numPubKeys int) []cryptotypes.PubKey

nolint: unparam

func GenerateAddress

func GenerateAddress(key string) sdk.AccAddress

func GenerateRandomTokens

func GenerateRandomTokens(numberOfTokens int) []string

func MakeTestEncodingConfig

func MakeTestEncodingConfig() simappparams.EncodingConfig

create a codec used only for testing

func NewPubKey

func NewPubKey(pk string) (res cryptotypes.PubKey)

Types

This section is empty.

Jump to

Keyboard shortcuts

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