rest

package
v0.0.0-...-21ace4c Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, storeName string)

Types

type ReportDetail

type ReportDetail struct {
	Reporter sdk.ValAddress              `json:"reporter"`
	Value    []types.RawDataReportWithID `json:"value"`
	Tx       TxDetail                    `json:"tx,omitempty"`
}

type RequestRESTInfo

type RequestRESTInfo struct {
	ID                       types.RequestID                      `json:"id"`
	OracleScriptID           types.OracleScriptID                 `json:"oracleScriptID"`
	Calldata                 []byte                               `json:"calldata"`
	RequestedValidators      []sdk.ValAddress                     `json:"requestedValidators"`
	SufficientValidatorCount int64                                `json:"sufficientValidatorCount"`
	ExpirationHeight         int64                                `json:"expirationHeight"`
	ResolveStatus            types.ResolveStatus                  `json:"resolveStatus"`
	Requester                sdk.AccAddress                       `json:"requester"`
	RequestTx                TxDetail                             `json:"requestTx,omitempty"`
	RawDataRequests          []types.RawDataRequestWithExternalID `json:"rawDataRequests"`
	Reports                  []ReportDetail                       `json:"reports"`
	Result                   types.Result                         `json:"result"`
}

type TxDetail

type TxDetail struct {
	Hash      string `json:"hash"`
	Height    int64  `json:"height"`
	Timestamp string `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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