oraclecontract

package
v0.98.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilteredRequest

func FilteredRequest(url string, filter []byte)

FilteredRequest is similar to Request but allows you to specify JSONPath filter to run against data got from the url specified.

func OracleCallback

func OracleCallback(url string, data interface{}, code int, res []byte)

OracleCallback is called by Oracle native contract when request is finished. It either throws an error (if the result is not successful) or logs the data got as a result.

func Request

func Request(url string)

Request does an oracle request for the URL specified. It adds minimum response fee which should suffice for small requests. The data from this URL is subsequently processed by OracleCallback function. This request has no JSONPath filters or user data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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