You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data type hash (256bit) — unique identifier of the data provider
timestamp (unixtime in milliseconds)
receiving contract address
txhash — hash for the transaction that satisfied data request
Method requestData()
should create a Data Update Request for oracles to process.
puts a new DUR into EOS contract table for further procession.
Consumer contract
Private method check_data_age()
should check whether the data is up to date or not.
should throw if data is antique.
data is considered outdated after a specified timeout in seconds or blocks. Oudated data should be updated immediately (in the same transaction).
data is considered antique after a specified timeout in seconds or blocks. Antique data prevents contract from processing any more transactions until it's manually updated.
timeout should be configurable in the contract variable.
Private method request_data()
should request new data from the Master contract.
should be called automatically when the data is outdated (check_data_age() returns truthy value).
Public method request_data_manually()
can be called only if data is outdated or antique (tested by check_data_age()).
calls request_data() internally.
Restricted method update_data()
can be called only by Ducatur Oracle.
updates data in the contract.
The text was updated successfully, but these errors were encountered:
Master contract
requestData()
Consumer contract
check_data_age()
request_data()
check_data_age()
returns truthy value).request_data_manually()
check_data_age()
).request_data()
internally.update_data()
The text was updated successfully, but these errors were encountered: