UNPKG

@chainlink/contracts

Version:

Chainlink smart contracts

422 lines (421 loc) 7.84 kB
[ { "inputs": [ { "internalType": "address", "name": "router", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "EmptyArgs", "type": "error" }, { "inputs": [], "name": "EmptySecrets", "type": "error" }, { "inputs": [], "name": "EmptySource", "type": "error" }, { "inputs": [], "name": "NoInlineSecrets", "type": "error" }, { "inputs": [], "name": "OnlyRouterCanFulfill", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" } ], "name": "OwnershipTransferRequested", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "id", "type": "bytes32" } ], "name": "RequestFulfilled", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "id", "type": "bytes32" } ], "name": "RequestSent", "type": "event" }, { "inputs": [], "name": "MAX_CALLBACK_GAS", "outputs": [ { "internalType": "uint32", "name": "", "type": "uint32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getStats", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" }, { "internalType": "bytes", "name": "", "type": "bytes" }, { "internalType": "bytes", "name": "", "type": "bytes" }, { "internalType": "uint32", "name": "", "type": "uint32" }, { "internalType": "uint32", "name": "", "type": "uint32" }, { "internalType": "uint32", "name": "", "type": "uint32" }, { "internalType": "uint32", "name": "", "type": "uint32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "requestId", "type": "bytes32" }, { "internalType": "bytes", "name": "response", "type": "bytes" }, { "internalType": "bytes", "name": "err", "type": "bytes" } ], "name": "handleOracleFulfillment", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "lastError", "outputs": [ { "internalType": "bytes", "name": "", "type": "bytes" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "lastRequestID", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "lastResponse", "outputs": [ { "internalType": "bytes", "name": "", "type": "bytes" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "resetStats", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint32", "name": "times", "type": "uint32" }, { "internalType": "bytes", "name": "cborEncodedRequest", "type": "bytes" }, { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" }, { "internalType": "bytes32", "name": "donId", "type": "bytes32" } ], "name": "sendEncodedRequest", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint32", "name": "times", "type": "uint32" }, { "internalType": "string", "name": "source", "type": "string" }, { "internalType": "bytes", "name": "encryptedSecretsReferences", "type": "bytes" }, { "internalType": "string[]", "name": "args", "type": "string[]" }, { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" }, { "internalType": "bytes32", "name": "donId", "type": "bytes32" } ], "name": "sendRequest", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint32", "name": "times", "type": "uint32" }, { "internalType": "string", "name": "source", "type": "string" }, { "internalType": "uint8", "name": "slotId", "type": "uint8" }, { "internalType": "uint64", "name": "slotVersion", "type": "uint64" }, { "internalType": "string[]", "name": "args", "type": "string[]" }, { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" }, { "internalType": "bytes32", "name": "donId", "type": "bytes32" } ], "name": "sendRequestWithDONHostedSecrets", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "totalEmptyResponses", "outputs": [ { "internalType": "uint32", "name": "", "type": "uint32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalFailedResponses", "outputs": [ { "internalType": "uint32", "name": "", "type": "uint32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalRequests", "outputs": [ { "internalType": "uint32", "name": "", "type": "uint32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSucceededResponses", "outputs": [ { "internalType": "uint32", "name": "", "type": "uint32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]