Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQuerierImpl(keeper Keeper) types.QueryServer
- type Keeper
- func (k Keeper) GetAllOraclePrograms(ctx sdk.Context) []types.OracleProgram
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetCoreContractAddr(ctx context.Context) (sdk.AccAddress, error)
- func (k Keeper) GetOracleProgram(ctx context.Context, hash string) (types.OracleProgram, error)
- func (k Keeper) GetParams(ctx sdk.Context) (types.Params, error)
- func (k Keeper) IterateOraclePrograms(ctx sdk.Context, callback func(program types.OracleProgram) (stop bool)) error
- func (k Keeper) ListOraclePrograms(ctx sdk.Context) []string
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- type Querier
- func (q Querier) CoreContractRegistry(c context.Context, _ *types.QueryCoreContractRegistryRequest) (*types.QueryCoreContractRegistryResponse, error)
- func (q Querier) OracleProgram(c context.Context, req *types.QueryOracleProgramRequest) (*types.QueryOracleProgramResponse, error)
- func (q Querier) OraclePrograms(c context.Context, req *types.QueryOracleProgramsRequest) (*types.QueryOracleProgramsResponse, error)
- func (q Querier) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewQuerierImpl ¶
func NewQuerierImpl(keeper Keeper) types.QueryServer
Types ¶
type Keeper ¶
type Keeper struct { Schema collections.Schema OracleProgram collections.Map[[]byte, types.OracleProgram] CoreContractRegistry collections.Item[string] Params collections.Item[types.Params] // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeService storetypes.KVStoreService, authority string, bk types.BankKeeper, sk types.StakingKeeper, wk wasmtypes.ContractOpsKeeper, ) *Keeper
func (Keeper) GetAllOraclePrograms ¶
func (k Keeper) GetAllOraclePrograms(ctx sdk.Context) []types.OracleProgram
func (Keeper) GetAuthority ¶ added in v0.0.6
GetAuthority returns the module's authority.
func (Keeper) GetCoreContractAddr ¶
GetCoreContractAddr retrieves the core contract address.
func (Keeper) GetOracleProgram ¶
GetOracleProgram retrieves the oracle program from the store given its hex-encoded hash.
func (Keeper) IterateOraclePrograms ¶
func (k Keeper) IterateOraclePrograms(ctx sdk.Context, callback func(program types.OracleProgram) (stop bool)) error
IterateOraclePrograms iterates over the oracle programs and performs a given callback function.
func (Keeper) ListOraclePrograms ¶
ListOraclePrograms returns hashes of all oracle programs in the store.
type Querier ¶
type Querier struct {
Keeper
}
func (Querier) CoreContractRegistry ¶
func (q Querier) CoreContractRegistry(c context.Context, _ *types.QueryCoreContractRegistryRequest) (*types.QueryCoreContractRegistryResponse, error)
func (Querier) OracleProgram ¶
func (q Querier) OracleProgram(c context.Context, req *types.QueryOracleProgramRequest) (*types.QueryOracleProgramResponse, error)
func (Querier) OraclePrograms ¶
func (q Querier) OraclePrograms(c context.Context, req *types.QueryOracleProgramsRequest) (*types.QueryOracleProgramsResponse, error)
func (Querier) Params ¶
func (q Querier) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Click to show internal directories.
Click to hide internal directories.