test

package
v1.0.13-beta Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

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