UNPKG

@chainlink/contracts

Version:

Chainlink smart contracts

330 lines (329 loc) 6.37 kB
[ { "inputs": [ { "internalType": "address", "name": "link", "type": "address" }, { "internalType": "address", "name": "prevCoordinator", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "internalType": "uint256", "name": "transferredValue", "type": "uint256" }, { "internalType": "uint96", "name": "expectedValue", "type": "uint96" } ], "name": "InvalidNativeBalance", "type": "error" }, { "inputs": [], "name": "InvalidSubscription", "type": "error" }, { "inputs": [ { "internalType": "uint8", "name": "requestVersion", "type": "uint8" }, { "internalType": "uint8", "name": "expectedVersion", "type": "uint8" } ], "name": "InvalidVersion", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "address", "name": "previousCoordinator", "type": "address" } ], "name": "MustBePreviousCoordinator", "type": "error" }, { "inputs": [], "name": "SubscriptionIDCollisionFound", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "requestId", "type": "uint256" } ], "name": "fulfillRandomWords", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "requestID", "type": "uint256" } ], "name": "generateFakeRandomness", "outputs": [ { "internalType": "uint256[]", "name": "", "type": "uint256[]" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "subId", "type": "uint256" } ], "name": "getSubscription", "outputs": [ { "internalType": "uint96", "name": "linkBalance", "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": "bytes", "name": "encodedData", "type": "bytes" } ], "name": "onMigration", "outputs": [], "stateMutability": "payable", "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": [], "name": "s_link", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "s_prevCoordinator", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "s_requestConsumerMapping", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "s_requestId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "s_subscriptions", "outputs": [ { "internalType": "uint96", "name": "linkBalance", "type": "uint96" }, { "internalType": "uint96", "name": "nativeBalance", "type": "uint96" }, { "internalType": "uint64", "name": "reqCount", "type": "uint64" }, { "internalType": "address", "name": "owner", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "s_totalLinkBalance", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "s_totalNativeBalance", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" } ]