TD oracle requirements
It is recommended that your TD accepts the actions as byte arrays (maybe encoded). And it is mandatory that your TD outputs the data signed with the key which public counterpart is registered in the corresponding TD Quote.
The output from your oracle must contain OracleMessage
and signature over this ABI-encoded structure. Since it affects the delivery routine and signature verification, the OracleMessage
is specified as a Solidity structure:
Here actionId
is the action Id assigned to the action by your pool. Note, that it is the responsibility of you as the TD provider to make sure that the actionId
under signature corresponds to the actual action being performed. The action Id must correspond to the one defined in your oracle pool. DataItem
struct member is specified as
timestamp
is the timestamp of the data retrieval. error
is the error code (zero if no error occured), value
is the actual data. We recommend value
to be ABI-encoded struct convenient for the further use by your data consumers.
The signature over the OracleMessage
is the struct representing usual Ethereum signature
Last updated