Documentation ¶
Index ¶
- Constants
- func CreateTestAddrs(numAddrs int) ([]sdk.AccAddress, []sdk.ValAddress)
- func CreateTestApp(isCheckTx bool) (*app.SifchainApp, sdk.Context)
- func CreateTestAppEthBridge(isCheckTx bool) (sdk.Context, keeper.Keeper)
- func CreateTestKeepers(t *testing.T, consensusNeeded float64, validatorAmounts []int64, ...) (sdk.Context, keeper.Keeper, bankkeeper.Keeper, authkeeper.AccountKeeper, ...)
- func CreateTestPubKeys(numPubKeys int) []cryptotypes.PubKey
- func GenerateAddress(key string) sdk.AccAddress
- func GenerateRandomTokens(numberOfTokens int) []string
- func MakeTestEncodingConfig() simappparams.EncodingConfig
- func NewPubKey(pk string) (res cryptotypes.PubKey)
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 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 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.
Click to show internal directories.
Click to hide internal directories.