Documentation ¶
Index ¶
- func CreateBaseSDKContext(t *testing.T) sdk.Context
- func CreateBaseSDKContextWithKeys(t *testing.T, storekey storetypes.StoreKey, ...) sdk.Context
- func CreateExtendedCommitInfo(commitInfo []cometabci.ExtendedVoteInfo, codec compression.ExtendedCommitCodec) (cometabci.ExtendedCommitInfo, []byte, error)
- func CreateExtendedVoteInfo(consAddr sdk.ConsAddress, prices map[uint64][]byte, ...) (cometabci.ExtendedVoteInfo, error)
- func CreateTestOracleKeeperWithGenesis(ctx sdk.Context, key *storetypes.KVStoreKey, genesis oracletypes.GenesisState) keeper.Keeper
- func CreateVoteExtension(prices map[uint64][]byte) types.OracleVoteExtension
- func CreateVoteExtensionBytes(prices map[uint64][]byte, codec compression.VoteExtensionCodec) ([]byte, error)
- func UpdateContextWithVEHeight(ctx sdk.Context, height int64) sdk.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBaseSDKContext ¶
CreateBaseSDKContext creates a base sdk context with the default store key and transient key.
func CreateBaseSDKContextWithKeys ¶
func CreateBaseSDKContextWithKeys(t *testing.T, storekey storetypes.StoreKey, transientkey *storetypes.TransientStoreKey) sdk.Context
CreateBaseSDKContextWithKeys creates a base sdk context with the given store key and transient key.
func CreateExtendedCommitInfo ¶
func CreateExtendedCommitInfo(commitInfo []cometabci.ExtendedVoteInfo, codec compression.ExtendedCommitCodec) (cometabci.ExtendedCommitInfo, []byte, error)
CreateExtendedCommitInfo creates an extended commit info with the given commit info.
func CreateExtendedVoteInfo ¶
func CreateExtendedVoteInfo( consAddr sdk.ConsAddress, prices map[uint64][]byte, codec compression.VoteExtensionCodec, ) (cometabci.ExtendedVoteInfo, error)
CreateExtendedVoteInfo creates an extended vote info with the given prices, timestamp and height.
func CreateTestOracleKeeperWithGenesis ¶
func CreateTestOracleKeeperWithGenesis(ctx sdk.Context, key *storetypes.KVStoreKey, genesis oracletypes.GenesisState) keeper.Keeper
CreateTestOracleKeeperWithGenesis creates a test oracle keeper with the given genesis state.
func CreateVoteExtension ¶
func CreateVoteExtension( prices map[uint64][]byte, ) types.OracleVoteExtension
CreateVoteExtension creates a vote extension with the given prices, timestamp and height.
func CreateVoteExtensionBytes ¶
func CreateVoteExtensionBytes( prices map[uint64][]byte, codec compression.VoteExtensionCodec, ) ([]byte, error)
CreateVoteExtensionBytes creates a vote extension bytes with the given prices, timestamp and height.
Types ¶
This section is empty.