Documentation ¶
Index ¶
Constants ¶
View Source
const ( TestID = "oracleID" AlternateTestID = "altOracleID" TestString = "{value: 5}" AlternateTestString = "{value: 7}" AnotherAlternateTestString = "{value: 9}" )
Variables ¶
This section is empty.
Functions ¶
func CreateTestAddrs ¶
func CreateTestAddrs(numAddrs int) ([]sdk.AccAddress, []sdk.ValAddress)
nolint: unparam
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine
func CreateTestKeepers ¶
func CreateTestKeepers(t *testing.T, consensusNeeded float64, validatorAmounts []int64, extraMaccPerm string) ( sdk.Context, Keeper, bank.Keeper, supply.Keeper, auth.AccountKeeper, []sdk.ValAddress)
CreateTestKeepers greates an Mock App, OracleKeeper, BankKeeper and ValidatorAddresses to be used for test input
func NewKeeper ¶
func NewKeeper( cdc *codec.Codec, storeKey sdk.StoreKey, stakeKeeper types.StakingKeeper, consensusNeeded float64, ) Keeper
NewKeeper creates new instances of the oracle Keeper
func (Keeper) GetProphecy ¶
GetProphecy gets the entire prophecy data struct for a given id
Click to show internal directories.
Click to hide internal directories.