oracle

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleScanRequests

func HandleScanRequests(
	oracles core.OracleStore,
	assetz core.AssetService,
	system *core.System,
) http.HandlerFunc

Types

type PriceRequest

type PriceRequest struct {
	AssetID   string   `json:"asset_id"`
	Symbol    string   `json:"symbol"`
	TraceID   string   `json:"trace_id,omitempty"`
	Receiver  Receiver `json:"receiver,omitempty"`
	Signers   []Signer `json:"signers,omitempty"`
	Threshold int64    `json:"threshold"`
}

type Receiver

type Receiver struct {
	Members   []string `json:"members,omitempty"`
	Threshold uint8    `json:"threshold"`
}

type Signer

type Signer struct {
	Index     int    `json:"index,omitempty"`
	VerifyKey string `json:"verify_key,omitempty"`
}

Jump to

Keyboard shortcuts

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