@chainlink/contracts
Version:
Chainlink smart contracts
1,764 lines (1,763 loc) • 34.9 kB
JSON
[
{
"inputs": [
{
"internalType": "address",
"name": "blockhashStore",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "internalBalance",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "externalBalance",
"type": "uint256"
}
],
"name": "BalanceInvariantViolated",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "blockNum",
"type": "uint256"
}
],
"name": "BlockhashNotInStore",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "coordinatorAddress",
"type": "address"
}
],
"name": "CoordinatorAlreadyRegistered",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "coordinatorAddress",
"type": "address"
}
],
"name": "CoordinatorNotRegistered",
"type": "error"
},
{
"inputs": [],
"name": "FailedToSendNative",
"type": "error"
},
{
"inputs": [],
"name": "FailedToTransferLink",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "have",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "want",
"type": "uint32"
}
],
"name": "GasLimitTooBig",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "gasPrice",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxGas",
"type": "uint256"
}
],
"name": "GasPriceExceeded",
"type": "error"
},
{
"inputs": [],
"name": "IncorrectCommitment",
"type": "error"
},
{
"inputs": [],
"name": "IndexOutOfRange",
"type": "error"
},
{
"inputs": [],
"name": "InsufficientBalance",
"type": "error"
},
{
"inputs": [],
"name": "InvalidCalldata",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "subId",
"type": "uint256"
},
{
"internalType": "address",
"name": "consumer",
"type": "address"
}
],
"name": "InvalidConsumer",
"type": "error"
},
{
"inputs": [],
"name": "InvalidExtraArgsTag",
"type": "error"
},
{
"inputs": [
{
"internalType": "int256",
"name": "linkWei",
"type": "int256"
}
],
"name": "InvalidLinkWeiPrice",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "premiumPercentage",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "max",
"type": "uint8"
}
],
"name": "InvalidPremiumPercentage",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "have",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "min",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "max",
"type": "uint16"
}
],
"name": "InvalidRequestConfirmations",
"type": "error"
},
{
"inputs": [],
"name": "InvalidSubscription",
"type": "error"
},
{
"inputs": [],
"name": "LinkAlreadySet",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "flatFeeLinkDiscountPPM",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "flatFeeNativePPM",
"type": "uint32"
}
],
"name": "LinkDiscountTooHigh",
"type": "error"
},
{
"inputs": [],
"name": "LinkNotSet",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "have",
"type": "uint256"
},
{
"internalType": "uint32",
"name": "max",
"type": "uint32"
}
],
"name": "MsgDataTooBig",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "proposedOwner",
"type": "address"
}
],
"name": "MustBeRequestedOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "MustBeSubOwner",
"type": "error"
},
{
"inputs": [],
"name": "NoCorrespondingRequest",
"type": "error"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "keyHash",
"type": "bytes32"
}
],
"name": "NoSuchProvingKey",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "have",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "want",
"type": "uint32"
}
],
"name": "NumWordsTooBig",
"type": "error"
},
{
"inputs": [],
"name": "OnlyCallableFromLink",
"type": "error"
},
{
"inputs": [],
"name": "PaymentTooLarge",
"type": "error"
},
{
"inputs": [],
"name": "PendingRequestExists",
"type": "error"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "keyHash",
"type": "bytes32"
}
],
"name": "ProvingKeyAlreadyRegistered",
"type": "error"
},
{
"inputs": [],
"name": "Reentrant",
"type": "error"
},
{
"inputs": [],
"name": "TooManyConsumers",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint16",
"name": "minimumRequestConfirmations",
"type": "uint16"
},
{
"indexed": false,
"internalType": "uint32",
"name": "maxGasLimit",
"type": "uint32"
},
{
"indexed": false,
"internalType": "uint32",
"name": "stalenessSeconds",
"type": "uint32"
},
{
"indexed": false,
"internalType": "uint32",
"name": "gasAfterPaymentCalculation",
"type": "uint32"
},
{
"indexed": false,
"internalType": "int256",
"name": "fallbackWeiPerUnitLink",
"type": "int256"
},
{
"indexed": false,
"internalType": "uint32",
"name": "fulfillmentFlatFeeNativePPM",
"type": "uint32"
},
{
"indexed": false,
"internalType": "uint32",
"name": "fulfillmentFlatFeeLinkDiscountPPM",
"type": "uint32"
},
{
"indexed": false,
"internalType": "uint8",
"name": "nativePremiumPercentage",
"type": "uint8"
},
{
"indexed": false,
"internalType": "uint8",
"name": "linkPremiumPercentage",
"type": "uint8"
}
],
"name": "ConfigSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "coordinatorAddress",
"type": "address"
}
],
"name": "CoordinatorDeregistered",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "coordinatorAddress",
"type": "address"
}
],
"name": "CoordinatorRegistered",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "int256",
"name": "fallbackWeiPerUnitLink",
"type": "int256"
}
],
"name": "FallbackWeiPerUnitLinkUsed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "FundsRecovered",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "fee",
"type": "uint256"
}
],
"name": "L1GasFee",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "newCoordinator",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "subId",
"type": "uint256"
}
],
"name": "MigrationCompleted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "NativeFundsRecovered",
"type": "event"
},
{
"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": false,
"internalType": "bytes32",
"name": "keyHash",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint64",
"name": "maxGas",
"type": "uint64"
}
],
"name": "ProvingKeyDeregistered",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "keyHash",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint64",
"name": "maxGas",
"type": "uint64"
}
],
"name": "ProvingKeyRegistered",
"type": "event"
},
{
"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": "nativePayment",
"type": "bool"
},
{
"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"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "subId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amountLink",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amountNative",
"type": "uint256"
}
],
"name": "SubscriptionCanceled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "subId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "consumer",
"type": "address"
}
],
"name": "SubscriptionConsumerAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "subId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "consumer",
"type": "address"
}
],
"name": "SubscriptionConsumerRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "subId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "SubscriptionCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "subId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "oldBalance",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newBalance",
"type": "uint256"
}
],
"name": "SubscriptionFunded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "subId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "oldNativeBalance",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newNativeBalance",
"type": "uint256"
}
],
"name": "SubscriptionFundedWithNative",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "subId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "SubscriptionOwnerTransferRequested",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "subId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "SubscriptionOwnerTransferred",
"type": "event"
},
{
"inputs": [],
"name": "BLOCKHASH_STORE",
"outputs": [
{
"internalType": "contract BlockhashStoreInterface",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "LINK",
"outputs": [
{
"internalType": "contract LinkTokenInterface",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "LINK_NATIVE_FEED",
"outputs": [
{
"internalType": "contract AggregatorV3Interface",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_CONSUMERS",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_NUM_WORDS",
"outputs": [
{
"internalType": "uint32",
"name": "",
"type": "uint32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_REQUEST_CONFIRMATIONS",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "acceptOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"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": [
{
"internalType": "address",
"name": "target",
"type": "address"
}
],
"name": "deregisterMigratableCoordinator",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[2]",
"name": "publicProvingKey",
"type": "uint256[2]"
}
],
"name": "deregisterProvingKey",
"outputs": [],
"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 VRF.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 VRFTypes.RequestCommitmentV2Plus",
"name": "rc",
"type": "tuple"
},
{
"internalType": "bool",
"name": "onlyPremium",
"type": "bool"
}
],
"name": "fulfillRandomWords",
"outputs": [
{
"internalType": "uint96",
"name": "payment",
"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": "ids",
"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": "subOwner",
"type": "address"
},
{
"internalType": "address[]",
"name": "consumers",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[2]",
"name": "publicKey",
"type": "uint256[2]"
}
],
"name": "hashOfKey",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "subId",
"type": "uint256"
},
{
"internalType": "address",
"name": "newCoordinator",
"type": "address"
}
],
"name": "migrate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "onTokenTransfer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "subId",
"type": "uint256"
}
],
"name": "ownerCancelSubscription",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "subId",
"type": "uint256"
}
],
"name": "pendingRequestExists",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "recoverFunds",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address payable",
"name": "to",
"type": "address"
}
],
"name": "recoverNativeFunds",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
}
],
"name": "registerMigratableCoordinator",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[2]",
"name": "publicProvingKey",
"type": "uint256[2]"
},
{
"internalType": "uint64",
"name": "maxGas",
"type": "uint64"
}
],
"name": "registerProvingKey",
"outputs": [],
"stateMutability": "nonpayable",
"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": [],
"name": "s_config",
"outputs": [
{
"internalType": "uint16",
"name": "minimumRequestConfirmations",
"type": "uint16"
},
{
"internalType": "uint32",
"name": "maxGasLimit",
"type": "uint32"
},
{
"internalType": "bool",
"name": "reentrancyLock",
"type": "bool"
},
{
"internalType": "uint32",
"name": "stalenessSeconds",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "gasAfterPaymentCalculation",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "fulfillmentFlatFeeNativePPM",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "fulfillmentFlatFeeLinkDiscountPPM",
"type": "uint32"
},
{
"internalType": "uint8",
"name": "nativePremiumPercentage",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "linkPremiumPercentage",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "s_currentSubNonce",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "s_fallbackWeiPerUnitLink",
"outputs": [
{
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "s_provingKeyHashes",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"name": "s_provingKeys",
"outputs": [
{
"internalType": "bool",
"name": "exists",
"type": "bool"
},
{
"internalType": "uint64",
"name": "maxGas",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "s_requestCommitments",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "s_totalBalance",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "s_totalNativeBalance",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "minimumRequestConfirmations",
"type": "uint16"
},
{
"internalType": "uint32",
"name": "maxGasLimit",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "stalenessSeconds",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "gasAfterPaymentCalculation",
"type": "uint32"
},
{
"internalType": "int256",
"name": "fallbackWeiPerUnitLink",
"type": "int256"
},
{
"internalType": "uint32",
"name": "fulfillmentFlatFeeNativePPM",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "fulfillmentFlatFeeLinkDiscountPPM",
"type": "uint32"
},
{
"internalType": "uint8",
"name": "nativePremiumPercentage",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "linkPremiumPercentage",
"type": "uint8"
}
],
"name": "setConfig",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "link",
"type": "address"
},
{
"internalType": "address",
"name": "linkNativeFeed",
"type": "address"
}
],
"name": "setLINKAndLINKNativeFeed",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient",
"type": "address"
}
],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address payable",
"name": "recipient",
"type": "address"
}
],
"name": "withdrawNative",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]