common

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2020 License: GPL-3.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostProcessQueryResponse

func PostProcessQueryResponse(w http.ResponseWriter, cliCtx context.CLIContext, bz []byte)

func QueryMultiSearchLatestRequest

func QueryMultiSearchLatestRequest(
	route string, cliCtx context.CLIContext, oid, calldata, askCount, minCount string, limit int,
) ([]byte, int64, error)

func QuerySearchLatestRequest

func QuerySearchLatestRequest(
	route string, cliCtx context.CLIContext, oid, calldata, askCount, minCount string,
) ([]byte, int64, error)

func VerifyRequest

func VerifyRequest(
	route string, cliCtx context.CLIContext, chainID string, requestID types.RequestID,
	externalID types.ExternalID, validator sdk.ValAddress, reporterPubkey crypto.PubKey, signature []byte,
) ([]byte, int64, error)

Types

type VerificationMessage

type VerificationMessage struct {
	ChainID    string           `json:"chain_id"`
	Validator  sdk.ValAddress   `json:"validator"`
	RequestID  types.RequestID  `json:"request_id"`
	ExternalID types.ExternalID `json:"external_id"`
}

TODO: Refactor this code with yoda

func NewVerificationMessage

func NewVerificationMessage(
	chainID string, validator sdk.ValAddress, requestID types.RequestID, externalID types.ExternalID,
) VerificationMessage

func (VerificationMessage) GetSignBytes

func (msg VerificationMessage) GetSignBytes() []byte

type VerificationResult

type VerificationResult struct {
	ChainID      string             `json:"chain_id"`
	Validator    sdk.ValAddress     `json:"validator"`
	RequestID    types.RequestID    `json:"request_id,string"`
	ExternalID   types.ExternalID   `json:"external_id,string"`
	DataSourceID types.DataSourceID `json:"data_source_id,string"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL