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
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
Click to show internal directories.
Click to hide internal directories.