Activation
To activate the SL Oracle the user needs to include the following event in their smart contract
RequestSL(uint nonce)
The nonce should be a unique number that is tracked inside the dapp to ensure that if, for any reason a response was sent out of sequence it could be ignored.
The user also needs to include the following function in their contract
function SetSL(uint number, uint nonce) onlySLAgent {
// user processes the price data as required here...
...
}
where onlySLAgent is a modifier that restricts the access to only the SL Oracle.
We need to be provided with the address of the contract (of course)