@chainlink/contracts
Version:
Chainlink smart contracts
247 lines (246 loc) • 4.93 kB
JSON
[
{
"inputs": [
{
"internalType": "uint256",
"name": "subId",
"type": "uint256"
}
],
"name": "acceptSubscriptionOwnerTransfer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "subId",
"type": "uint256"
},
{
"internalType": "address",
"name": "consumer",
"type": "address"
}
],
"name": "addConsumer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "subId",
"type": "uint256"
},
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "cancelSubscription",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "createSubscription",
"outputs": [
{
"internalType": "uint256",
"name": "subId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "subId",
"type": "uint256"
}
],
"name": "fundSubscriptionWithNative",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "startIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxCount",
"type": "uint256"
}
],
"name": "getActiveSubscriptionIds",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "subId",
"type": "uint256"
}
],
"name": "getSubscription",
"outputs": [
{
"internalType": "uint96",
"name": "balance",
"type": "uint96"
},
{
"internalType": "uint96",
"name": "nativeBalance",
"type": "uint96"
},
{
"internalType": "uint64",
"name": "reqCount",
"type": "uint64"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address[]",
"name": "consumers",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "subId",
"type": "uint256"
}
],
"name": "pendingRequestExists",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "subId",
"type": "uint256"
},
{
"internalType": "address",
"name": "consumer",
"type": "address"
}
],
"name": "removeConsumer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "bytes32",
"name": "keyHash",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "subId",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "requestConfirmations",
"type": "uint16"
},
{
"internalType": "uint32",
"name": "callbackGasLimit",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "numWords",
"type": "uint32"
},
{
"internalType": "bytes",
"name": "extraArgs",
"type": "bytes"
}
],
"internalType": "struct VRFV2PlusClient.RandomWordsRequest",
"name": "req",
"type": "tuple"
}
],
"name": "requestRandomWords",
"outputs": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "subId",
"type": "uint256"
},
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "requestSubscriptionOwnerTransfer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]