Skip to main content
_Chainlink client refactored into library and all unused functions removed Uses price aggregator facet of multi collat diamond for storage. Copy of https://github.com/smartcontractkit/chainlink/blob/contracts-v0.5.1/contracts/src/v0.8/ChainlinkClient.sol with only requestCount changed to unset so as to be inherited by a proxy implementation._

ChainlinkRequested

ChainlinkFulfilled

_getSlot

Returns storage slot to use when fetching storage relevant to library

_getStorage

Returns storage pointer for storage struct in diamond contract, at defined slot

buildChainlinkRequest

Creates a request that can hold additional parameters

Parameters

Return Values

sendChainlinkRequestTo

Creates a Chainlink request to the specified oracle address Generates and stores a request ID, increments the local nonce, and uses transferAndCall to send LINK which creates a request on the target oracle contract. Emits ChainlinkRequested event.

Parameters

Return Values

setChainlinkToken

Sets the LINK token address

Parameters

validateChainlinkCallback

Ensures that the fulfillment is valid for this contract Use if the contract developer prefers methods instead of modifiers for validation

Parameters

recordChainlinkFulfillment

Reverts if the sender is not the oracle of the request. Emits ChainlinkFulfilled event.

Parameters