UNPKG

@chainlink/contracts

Version:

Chainlink smart contracts

464 lines (463 loc) 9.82 kB
[ { "inputs": [ { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" } ], "name": "acceptSubscriptionOwnerTransfer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" }, { "internalType": "address", "name": "consumer", "type": "address" } ], "name": "addConsumer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" }, { "internalType": "address", "name": "to", "type": "address" } ], "name": "cancelSubscription", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "createSubscription", "outputs": [ { "internalType": "uint64", "name": "", "type": "uint64" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "consumer", "type": "address" } ], "name": "createSubscriptionWithConsumer", "outputs": [ { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "client", "type": "address" }, { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" } ], "name": "getConsumer", "outputs": [ { "components": [ { "internalType": "bool", "name": "allowed", "type": "bool" }, { "internalType": "uint64", "name": "initiatedRequests", "type": "uint64" }, { "internalType": "uint64", "name": "completedRequests", "type": "uint64" } ], "internalType": "struct IFunctionsSubscriptions.Consumer", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" } ], "name": "getFlags", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" } ], "name": "getSubscription", "outputs": [ { "components": [ { "internalType": "uint96", "name": "balance", "type": "uint96" }, { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint96", "name": "blockedBalance", "type": "uint96" }, { "internalType": "address", "name": "proposedOwner", "type": "address" }, { "internalType": "address[]", "name": "consumers", "type": "address[]" }, { "internalType": "bytes32", "name": "flags", "type": "bytes32" } ], "internalType": "struct IFunctionsSubscriptions.Subscription", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getSubscriptionCount", "outputs": [ { "internalType": "uint64", "name": "", "type": "uint64" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "subscriptionIdStart", "type": "uint64" }, { "internalType": "uint64", "name": "subscriptionIdEnd", "type": "uint64" } ], "name": "getSubscriptionsInRange", "outputs": [ { "components": [ { "internalType": "uint96", "name": "balance", "type": "uint96" }, { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint96", "name": "blockedBalance", "type": "uint96" }, { "internalType": "address", "name": "proposedOwner", "type": "address" }, { "internalType": "address[]", "name": "consumers", "type": "address[]" }, { "internalType": "bytes32", "name": "flags", "type": "bytes32" } ], "internalType": "struct IFunctionsSubscriptions.Subscription[]", "name": "", "type": "tuple[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTotalBalance", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "oracleWithdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" } ], "name": "ownerCancelSubscription", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" } ], "name": "pendingRequestExists", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" }, { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "proposeSubscriptionOwnerTransfer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" } ], "name": "recoverFunds", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" }, { "internalType": "address", "name": "consumer", "type": "address" } ], "name": "removeConsumer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" }, { "internalType": "bytes32", "name": "flags", "type": "bytes32" } ], "name": "setFlags", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "bytes32", "name": "requestId", "type": "bytes32" }, { "internalType": "address", "name": "coordinator", "type": "address" }, { "internalType": "uint96", "name": "estimatedTotalCostJuels", "type": "uint96" }, { "internalType": "address", "name": "client", "type": "address" }, { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" }, { "internalType": "uint32", "name": "callbackGasLimit", "type": "uint32" }, { "internalType": "uint72", "name": "adminFee", "type": "uint72" }, { "internalType": "uint72", "name": "donFee", "type": "uint72" }, { "internalType": "uint40", "name": "gasOverheadBeforeCallback", "type": "uint40" }, { "internalType": "uint40", "name": "gasOverheadAfterCallback", "type": "uint40" }, { "internalType": "uint32", "name": "timeoutTimestamp", "type": "uint32" } ], "internalType": "struct FunctionsResponse.Commitment[]", "name": "requestsToTimeoutByCommitment", "type": "tuple[]" } ], "name": "timeoutRequests", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]