Documentation ¶
Overview ¶
Package oracle defines oracle-operator
Index ¶
- func CompleteAndBroadcastTx(cliCtx context.CLIContext, txBldr authtypes.TxBuilder, msgs []sdk.Msg) (sdk.TxResponse, error)
- func Listen(ctx types.Context, ctkMsgChan chan<- interface{}, fatalError chan<- error)
- func Push(ctx types.Context, ctkMsgChan <-chan interface{}, errorChan chan<- error)
- func PushMsgTaskResponse(ctx types.Context, msg oracle.MsgTaskResponse)
- func ServeCommand(cdc *codec.Codec) *cobra.Command
- type Aggregation
- type LinearCombination
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompleteAndBroadcastTx ¶
func CompleteAndBroadcastTx(cliCtx context.CLIContext, txBldr authtypes.TxBuilder, msgs []sdk.Msg) (sdk.TxResponse, error)
CompleteAndBroadcastTx is adopted from auth.CompleteAndBroadcastTxCLI. The original function prints out response.
func PushMsgTaskResponse ¶
func PushMsgTaskResponse(ctx types.Context, msg oracle.MsgTaskResponse)
PushMsgTaskResponse pushes MsgTaskResponse message to CertiK Chain.
Types ¶
type Aggregation ¶
type Aggregation interface {
Aggregate(scores <-chan types.PrimitiveScore) (uint8, error)
}
Aggregation for scores.
func NewAggregation ¶
func NewAggregation(strategy types.Strategy) (Aggregation, error)
NewAggregation returns the strategy implementation based on configured type.
type LinearCombination ¶
type LinearCombination struct {
Aggregation
}
LinearCombination of scores.
func (LinearCombination) Aggregate ¶
func (LinearCombination) Aggregate(scores <-chan types.PrimitiveScore) (uint8, error)
Aggregate performs linear combination of the primitive scores.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.