oracle

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 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