@chainlink/contracts
Version:
Chainlink smart contracts
376 lines (375 loc) • 7.25 kB
JSON
[
{
"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": false,
"internalType": "bytes32",
"name": "requestId",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes",
"name": "response",
"type": "bytes"
},
{
"indexed": false,
"internalType": "bytes",
"name": "err",
"type": "bytes"
}
],
"name": "FulfillRequestInvoked",
"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"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "requestId",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "string",
"name": "sourceCode",
"type": "string"
},
{
"indexed": false,
"internalType": "uint64",
"name": "subscriptionId",
"type": "uint64"
}
],
"name": "SendRequestInvoked",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "subscriptionId",
"type": "uint64"
}
],
"name": "acceptSubscriptionOwnerTransfer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "acceptor",
"type": "address"
},
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "bytes32",
"name": "r",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "s",
"type": "bytes32"
},
{
"internalType": "uint8",
"name": "v",
"type": "uint8"
}
],
"name": "acceptTermsOfService",
"outputs": [],
"stateMutability": "nonpayable",
"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": [
{
"internalType": "bytes32",
"name": "donId",
"type": "bytes32"
},
{
"internalType": "string",
"name": "source",
"type": "string"
},
{
"internalType": "bytes",
"name": "secrets",
"type": "bytes"
},
{
"internalType": "string[]",
"name": "args",
"type": "string[]"
},
{
"internalType": "bytes[]",
"name": "bytesArgs",
"type": "bytes[]"
},
{
"internalType": "uint64",
"name": "subscriptionId",
"type": "uint64"
},
{
"internalType": "uint32",
"name": "callbackGasLimit",
"type": "uint32"
}
],
"name": "sendRequest",
"outputs": [
{
"internalType": "bytes32",
"name": "requestId",
"type": "bytes32"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "sourceCode",
"type": "string"
},
{
"internalType": "uint64",
"name": "subscriptionId",
"type": "uint64"
},
{
"internalType": "bytes32",
"name": "donId",
"type": "bytes32"
}
],
"name": "sendRequestProposed",
"outputs": [
{
"internalType": "bytes32",
"name": "requestId",
"type": "bytes32"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "sourceCode",
"type": "string"
},
{
"internalType": "uint64",
"name": "subscriptionId",
"type": "uint64"
},
{
"internalType": "bytes32",
"name": "donId",
"type": "bytes32"
},
{
"internalType": "uint32",
"name": "callbackGasLimit",
"type": "uint32"
}
],
"name": "sendSimpleRequestWithJavaScript",
"outputs": [
{
"internalType": "bytes32",
"name": "requestId",
"type": "bytes32"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "on",
"type": "bool"
}
],
"name": "setDoInvalidOperation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "on",
"type": "bool"
},
{
"internalType": "uint64",
"name": "subscriptionId",
"type": "uint64"
}
],
"name": "setDoInvalidReentrantOperation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "on",
"type": "bool"
},
{
"internalType": "uint64",
"name": "subscriptionId",
"type": "uint64"
},
{
"internalType": "bytes32",
"name": "donId",
"type": "bytes32"
}
],
"name": "setDoValidReentrantOperation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "on",
"type": "bool"
}
],
"name": "setRevertFulfillRequest",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "message",
"type": "string"
}
],
"name": "setRevertFulfillRequestMessage",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]