VerifySSLCertificate allows users to link their domain name to their crypto address and create a data feed. It also stores the following accessor functions: domainToFeed and domainstringToFeed. Both of these take a domain and return the address of the Feed contract linked to the domain.
The Feed contract stores the latest value of the data feed and exposes functions that allow the domain owner (who created the Feed) to update the latest value. There are three variables in which the latest value can be stored:
uint256 public mostRecentUInt;
int256 public mostRecentInt;
string public mostRecentStr;
The Feed owner should use the same data type(s) for the lifetime of their feed. Changing the primary data type(s) of a feed could cause breaking changes in dependent apps.
The mostRecent values can be accessed on-chain or off-chain.
On-Chain Access of mostRecent Value
This is solidity code showing how to access the mostRecent value. It will always be of type int256, uint256, or string. If the feed is reliable, It should never change types.
only one ofmostRecentInt, mostRecentUInt, or mostRecentStrwill be used for any contract. Feeds should not change their data type, or they risk consumers of their feed mishandling their data. In future Noracle versions, this type restriction will be enforced, but now it is just strongly encouraged.