@chainlink/contracts
Version:
Chainlink smart contracts
461 lines (460 loc) • 8.87 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": 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"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "requestId",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes",
"name": "result",
"type": "bytes"
},
{
"indexed": false,
"internalType": "bytes",
"name": "err",
"type": "bytes"
}
],
"name": "ResponseReceived",
"type": "event"
},
{
"inputs": [],
"name": "acceptOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getRouter_HARNESS",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"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": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"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": "",
"type": "bytes32"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
},
{
"internalType": "uint64",
"name": "subscriptionId",
"type": "uint64"
},
{
"internalType": "uint32",
"name": "callbackGasLimit",
"type": "uint32"
},
{
"internalType": "bytes32",
"name": "donId",
"type": "bytes32"
}
],
"name": "sendRequestBytes",
"outputs": [
{
"internalType": "bytes32",
"name": "requestId",
"type": "bytes32"
}
],
"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": "sendRequestToProposed",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "donId",
"type": "bytes32"
},
{
"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": "uint32",
"name": "callbackGasLimit",
"type": "uint32"
}
],
"name": "sendRequestToProposedWithDONHostedSecrets",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "donId",
"type": "bytes32"
},
{
"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": "uint32",
"name": "callbackGasLimit",
"type": "uint32"
}
],
"name": "sendRequestWithDONHostedSecrets",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
},
{
"internalType": "uint64",
"name": "subscriptionId",
"type": "uint64"
},
{
"internalType": "uint32",
"name": "callbackGasLimit",
"type": "uint32"
},
{
"internalType": "bytes32",
"name": "donId",
"type": "bytes32"
}
],
"name": "sendRequest_HARNESS",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]