<<Interface>>
ChainlinkRequestInterface
External:
oracleRequest(sender: address, payment: uint256, id: bytes32, callbackAddress: address, callbackFunctionId: bytes4, nonce: uint256, version: uint256, data: bytes)
cancelOracleRequest(requestId: bytes32, payment: uint256, callbackFunctionId: bytes4, expiration: uint256)
<<Library>>
Buffer
Private:
resize(buf: buffer, capacity: uint)
max(a: uint, b: uint): uint
write(buf: buffer, off: uint, data: bytes32, len: uint): buffer
writeInt(buf: buffer, off: uint, data: uint, len: uint): buffer
Internal:
writeUint8(buf: buffer, off: uint, data: uint8): buffer
init(buf: buffer, capacity: uint): buffer
truncate(buf: buffer): buffer
write(buf: buffer, off: uint, data: bytes, len: uint): buffer
append(buf: buffer, data: bytes, len: uint): buffer
append(buf: buffer, data: bytes): buffer
fromBytes(b: bytes): buffer
appendUint8(buf: buffer, data: uint8): buffer
writeBytes20(buf: buffer, off: uint, data: bytes20): buffer
appendBytes20(buf: buffer, data: bytes20): buffer
appendBytes32(buf: buffer, data: bytes32): buffer
appendInt(buf: buffer, data: uint, len: uint): buffer
<<struct>>
buffer
buf: bytes
capacity: uint
<<Library>>
Chainlink
Internal:
defaultBufferSize: uint256
Internal:
initialize(self: Request, _id: bytes32, _callbackAddress: address, _callbackFunction: bytes4): Chainlink.Request
setBuffer(self: Request, _data: bytes)
add(self: Request, _key: string, _value: string)
addBytes(self: Request, _key: string, _value: bytes)
addInt(self: Request, _key: string, _value: int256)
addUint(self: Request, _key: string, _value: uint256)
addStringArray(self: Request, _key: string, _values: string[])
<<Library>>
CBOR
Private:
MAJOR_TYPE_INT: uint8
MAJOR_TYPE_NEGATIVE_INT: uint8
MAJOR_TYPE_BYTES: uint8
MAJOR_TYPE_STRING: uint8
MAJOR_TYPE_ARRAY: uint8
MAJOR_TYPE_MAP: uint8
MAJOR_TYPE_CONTENT_FREE: uint8
Private:
encodeType(buf: Buffer.buffer, major: uint8, value: uint)
encodeIndefiniteLengthType(buf: Buffer.buffer, major: uint8)
Internal:
encodeUInt(buf: Buffer.buffer, value: uint)
encodeInt(buf: Buffer.buffer, value: int)
encodeBytes(buf: Buffer.buffer, value: bytes)
encodeString(buf: Buffer.buffer, value: string)
startArray(buf: Buffer.buffer)
startMap(buf: Buffer.buffer)
endSequence(buf: Buffer.buffer)
<<struct>>
Request
id: bytes32
callbackAddress: address
callbackFunctionId: bytes4
nonce: uint256
buf: Buffer.buffer
<<Abstract>>
ENSResolver
Public:
<<abstract>> addr(node: bytes32): address
<<Interface>>
ENSInterface
External:
setSubnodeOwner(node: bytes32, label: bytes32, owner: address)
setResolver(node: bytes32, resolver: address)
setOwner(node: bytes32, owner: address)
setTTL(node: bytes32, ttl: uint64)
owner(node: bytes32): address
resolver(node: bytes32): address
ttl(node: bytes32): uint64
Public:
<<event>> NewOwner(node: bytes32, label: bytes32, owner: address)
<<event>> Transfer(node: bytes32, owner: address)
<<event>> NewResolver(node: bytes32, resolver: address)
<<event>> NewTTL(node: bytes32, ttl: uint64)
<<Interface>>
LinkTokenInterface
External:
name(): (tokenName: string)
allowance(owner: address, spender: address): (success: bool)
balanceOf(owner: address): (balance: uint256)
decimals(): (decimalPlaces: uint8)
decreaseApproval(spender: address, addedValue: uint256): (success: bool)
increaseApproval(spender: address, subtractedValue: uint256)
approve(spender: address, value: uint256): (success: bool)
symbol(): (tokenSymbol: string)
totalSupply(): (totalTokensIssued: uint256)
transfer(to: address, value: uint256): (success: bool)
transferAndCall(to: address, value: uint256, data: bytes): (success: bool)
transferFrom(from: address, to: address, value: uint256): (success: bool)
<<Interface>>
ChainlinkRegistryInterface
External:
getChainlinkTokenAddress(): address
<<Library>>
SafeMath
Internal:
mul(_a: uint256, _b: uint256): (c: uint256)
div(_a: uint256, _b: uint256): uint256
sub(_a: uint256, _b: uint256): uint256
add(_a: uint256, _b: uint256): (c: uint256)
ChainlinkClient
Private:
AMOUNT_OVERRIDE: uint256
SENDER_OVERRIDE: address
ARGS_VERSION: uint256
ENS_TOKEN_SUBNAME: bytes32
ENS_ORACLE_SUBNAME: bytes32
CHAINLINK_REGISTRY: address
ens: ENSInterface
ensNode: bytes32
link: LinkTokenInterface
oracle: ChainlinkRequestInterface
requests: uint256
pendingRequests: mapping(bytes32=>address)
Internal:
LINK: uint256
Private:
encodeRequest(_req: Chainlink.Request): bytes
Internal:
chainlinkTokenAddress(): address
buildChainlinkRequest(_specId: bytes32, _callbackAddress: address, _callbackFunctionSignature: bytes4): Chainlink.Request
sendChainlinkRequestTo(_oracle: address, _req: Chainlink.Request, _payment: uint256): (requestId: bytes32)
cancelChainlinkRequest(_requestId: bytes32, _payment: uint256, _callbackFunc: bytes4, _expiration: uint256)
setChainlinkOracle(_oracle: address)
setChainlinkToken(_link: address)
sendChainlinkRequest(_req: Chainlink.Request, _payment: uint256): bytes32
chainlinkOracleAddress(): address
addChainlinkExternalRequest(_oracle: address, _requestId: bytes32)
useChainlinkWithENS(_ens: address, _node: bytes32)
updateChainlinkOracleWithENS()
setPublicChainlinkToken()
validateChainlinkCallback(_requestId: bytes32)
Public:
<<event>> ChainlinkRequested(id: bytes32)
<<event>> ChainlinkFulfilled(id: bytes32)
<<event>> ChainlinkCancelled(id: bytes32)
<<modifier>> recordChainlinkFulfillment(_requestId: bytes32)
<<modifier>> notPendingRequest(_requestId: bytes32)
Ownable
Public:
owner: address
Internal:
_transferOwnership(_newOwner: address)
Public:
<<event>> OwnershipRenounced(previousOwner: address)
<<event>> OwnershipTransferred(previousOwner: address, newOwner: address)
<<modifier>> onlyOwner()
constructor()
renounceOwnership()
transferOwnership(_newOwner: address)
ATestnetConsumer
Private:
ORACLE_PAYMENT: uint256
RESPONSE_TIME: uint256
EXPECTED_RESPONSES: uint256
prices: uint256[]
receipts: mapping(bytes32=>uint256)
Private:
stringToBytes32(source: string): (result: bytes32)
Public:
<<event>> AveragePrice(price: uint256)
constructor()
requestEthereumPrice(_oracle: address, _jobId: string)
fulfillEthereumPrice(_requestId: bytes32, _price: uint256)
getChainlinkToken(): address
withdrawLink()