oracle

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const BootstrappedOracleService = "BootstrappedOracleService"

BootstrappedOracleService is the key to Oracle Service in bootstrap context.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bootstrapper

type Bootstrapper struct{}

Bootstrapper implements bootstrap.Bootstrapper.

func (Bootstrapper) Bootstrap

func (Bootstrapper) Bootstrap(ctx map[string]interface{}) error

Bootstrap initializes the invoice unpaid contract

type PushAttributeToOracleRequest

type PushAttributeToOracleRequest struct {
	TokenID       nft.TokenID       `json:"token_id" swaggertype:"primitive,string"`       // hex value of the NFT token
	AttributeKey  documents.AttrKey `json:"attribute_key" swaggertype:"primitive,string"`  // hex value of the Attribute key
	OracleAddress common.Address    `json:"oracle_address" swaggertype:"primitive,string"` // hex value of the Oracle address
}

PushAttributeToOracleRequest request holds the required data to push value to oracle

type PushToOracleJob added in v1.3.0

type PushToOracleJob struct {
	jobs.Base
	// contains filtered or unexported fields
}

PushToOracleJob pushes nft value to oracle args are as follows did, oracleAddr, tokenID, fingerprint, value

func (*PushToOracleJob) New added in v1.3.0

func (p *PushToOracleJob) New() gocelery.Runner

New returns a new PushToOracleJob instance

type PushToOracleResponse

type PushToOracleResponse struct {
	JobID string `json:"job_id"`
	PushAttributeToOracleRequest
}

PushToOracleResponse holds the job ID along with original request.

type Service

type Service interface {
	// PushAttributeToOracle pushes a given
	PushAttributeToOracle(ctx context.Context, docID []byte, request PushAttributeToOracleRequest) (*PushToOracleResponse, error)
}

Service defines the functions to Oracle

Jump to

Keyboard shortcuts

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