UNPKG

@chainlink/contracts

Version:

Chainlink smart contracts

491 lines (490 loc) 10.3 kB
[ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "requestId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "outputSeed", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "subId", "type": "uint256" }, { "indexed": false, "internalType": "uint96", "name": "payment", "type": "uint96" }, { "indexed": false, "internalType": "bool", "name": "success", "type": "bool" }, { "indexed": false, "internalType": "bool", "name": "onlyPremium", "type": "bool" } ], "name": "RandomWordsFulfilled", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "keyHash", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "requestId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "preSeed", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "subId", "type": "uint256" }, { "indexed": false, "internalType": "uint16", "name": "minimumRequestConfirmations", "type": "uint16" }, { "indexed": false, "internalType": "uint32", "name": "callbackGasLimit", "type": "uint32" }, { "indexed": false, "internalType": "uint32", "name": "numWords", "type": "uint32" }, { "indexed": false, "internalType": "bytes", "name": "extraArgs", "type": "bytes" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "RandomWordsRequested", "type": "event" }, { "inputs": [], "name": "LINK_NATIVE_FEED", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "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": [ { "components": [ { "internalType": "uint256[2]", "name": "pk", "type": "uint256[2]" }, { "internalType": "uint256[2]", "name": "gamma", "type": "uint256[2]" }, { "internalType": "uint256", "name": "c", "type": "uint256" }, { "internalType": "uint256", "name": "s", "type": "uint256" }, { "internalType": "uint256", "name": "seed", "type": "uint256" }, { "internalType": "address", "name": "uWitness", "type": "address" }, { "internalType": "uint256[2]", "name": "cGammaWitness", "type": "uint256[2]" }, { "internalType": "uint256[2]", "name": "sHashWitness", "type": "uint256[2]" }, { "internalType": "uint256", "name": "zInv", "type": "uint256" } ], "internalType": "struct IVRFCoordinatorV2PlusInternal.Proof", "name": "proof", "type": "tuple" }, { "components": [ { "internalType": "uint64", "name": "blockNum", "type": "uint64" }, { "internalType": "uint256", "name": "subId", "type": "uint256" }, { "internalType": "uint32", "name": "callbackGasLimit", "type": "uint32" }, { "internalType": "uint32", "name": "numWords", "type": "uint32" }, { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "bytes", "name": "extraArgs", "type": "bytes" } ], "internalType": "struct IVRFCoordinatorV2PlusInternal.RequestCommitment", "name": "rc", "type": "tuple" }, { "internalType": "bool", "name": "onlyPremium", "type": "bool" } ], "name": "fulfillRandomWords", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "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" }, { "inputs": [ { "internalType": "uint256", "name": "requestID", "type": "uint256" } ], "name": "s_requestCommitments", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" } ]