import "@nomiclabs/hardhat-ethers/"; import { BigNumber, BytesLike } from "ethers"; import { HardhatRuntimeEnvironment } from "hardhat/types"; export declare class HardhatChainlink { private env; denominations: Readonly<{ ETH: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"; BTC: "0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"; USD: "0x0000000000000000000000000000000000000348"; GBP: "0x000000000000000000000000000000000000033a"; EUR: "0x00000000000000000000000000000000000003d2"; JPY: "0x0000000000000000000000000000000000000188"; KRW: "0x000000000000000000000000000000000000019a"; CNY: "0x000000000000000000000000000000000000009c"; AUD: "0x0000000000000000000000000000000000000024"; CAD: "0x000000000000000000000000000000000000007c"; CHF: "0x00000000000000000000000000000000000002F4"; ARS: "0x0000000000000000000000000000000000000020"; PHP: "0x0000000000000000000000000000000000000260"; NZD: "0x000000000000000000000000000000000000022A"; SGD: "0x00000000000000000000000000000000000002be"; NGN: "0x0000000000000000000000000000000000000236"; ZAR: "0x00000000000000000000000000000000000002c6"; RUB: "0x0000000000000000000000000000000000000283"; INR: "0x0000000000000000000000000000000000000164"; BRL: "0x00000000000000000000000000000000000003Da"; }>; constructor(env: HardhatRuntimeEnvironment); getLatestPrice(priceFeedAddress: string): Promise; getLatestRoundData(dataFeedAddress: string): Promise<{ roundId: BigNumber; answer: BigNumber; startedAt: BigNumber; updatedAt: BigNumber; answeredInRound: BigNumber; }>; getPriceFeedDecimals(priceFeedAddress: string): Promise; getPriceFeedDescription(priceFeedAddress: string): Promise; getRoundData(priceFeedAddress: string, roundId: BigNumber): Promise<{ roundId: BigNumber; answer: BigNumber; startedAt: BigNumber; updatedAt: BigNumber; answeredInRound: BigNumber; }>; getAggregatorAddress(priceFeedAddress: string): Promise; getAggregatorRoundId(priceFeedAddress: string): Promise; getPhaseId(priceFeedAddress: string): Promise; getHistoricalPrice(priceFeedAddress: string, roundId: BigNumber): Promise; getPriceFeedAggregatorVersion(priceFeedAddress: string): Promise; resolveEnsAggregatorAddress(baseTick: string, quoteTick: string): Promise; resolveEnsAggregatorAddressWithSubdomains(baseTick: string, quoteTick: string): Promise<{ proxy: string; underlyingAggregator: string; proposedAggregator: string; }>; getFeedRegistryDecimals(feedRegistryAddress: string, base: string, quote: string): Promise; getFeedRegistryDescription(feedRegistryAddress: string, base: string, quote: string): Promise; getFeedRegistryRoundData(feedRegistryAddress: string, base: string, quote: string, roundId: BigNumber): Promise<{ roundId: BigNumber; answer: BigNumber; startedAt: BigNumber; updatedAt: BigNumber; answeredInRound: BigNumber; }>; getFeedRegistryLatestRoundData(feedRegistryAddress: string, base: string, quote: string): Promise<{ roundId: BigNumber; answer: BigNumber; startedAt: BigNumber; updatedAt: BigNumber; answeredInRound: BigNumber; }>; getFeedRegistryProxyAggregatorVersion(feedRegistryAddress: string, base: string, quote: string): Promise; getFeed(feedRegistryAddress: string, base: string, quote: string): Promise; getPhaseFeed(feedRegistryAddress: string, base: string, quote: string, phaseId: BigNumber): Promise; isFeedEnabled(feedRegistryAddress: string, aggregatorAddress: string): Promise; getPhase(feedRegistryAddress: string, base: string, quote: string, phaseId: BigNumber): Promise<{ phaseId: number; startingAggregatorRoundId: BigNumber; endingAggregatorRoundId: BigNumber; }>; getRoundFeed(feedRegistryAddress: string, base: string, quote: string, roundId: BigNumber): Promise; getPhaseRange(feedRegistryAddress: string, base: string, quote: string, phaseId: BigNumber): Promise<{ startingRoundId: BigNumber; endingRoundId: BigNumber; }>; getPreviousRoundId(feedRegistryAddress: string, base: string, quote: string, roundId: BigNumber): Promise; getNextRoundId(feedRegistryAddress: string, base: string, quote: string, roundId: BigNumber): Promise; getCurrentPhaseId(feedRegistryAddress: string, base: string, quote: string): Promise; getHistoricalPriceFromAggregator(aggregatorAddress: string, aggregatorRoundId: BigNumber): Promise; getTypeAndVersionOfAggregator(aggregatorAddress: string): Promise; getPhaseIdOfAggregator(aggregatorAddress: string): Promise; isLayer2SequencerUp(sequencerUptimeFeedAddress: string): Promise; getTimeSinceLayer2SequencerIsUp(sequencerUptimeFeedAddress: string, gracePeriodTime?: BigNumber): Promise<{ isSequencerUp: boolean; timeSinceUp: BigNumber; isGracePeriodOver: boolean; }>; createVrfSubscription(vrfCoordinatorAddress: string, waitNumberOfConfirmations?: number): Promise<{ subscriptionId: BigNumber; transactionHash: string; }>; fundVrfSubscription(vrfCoordinatorAddress: string, linkTokenAddress: string, amountInJuels: BigNumber, subscriptionId: BigNumber, waitNumberOfConfirmations?: number): Promise<{ transactionHash: string; }>; addVrfConsumer(vrfCoordinatorAddress: string, consumerAddress: string, subscriptionId: BigNumber, waitNumberOfConfirmations?: number): Promise<{ transactionHash: string; }>; removeVrfConsumer(vrfCoordinatorAddress: string, consumerAddress: string, subscriptionId: BigNumber, waitNumberOfConfirmations?: number): Promise<{ transactionHash: string; }>; cancelVrfSubscription(vrfCoordinatorAddress: string, subscriptionId: BigNumber, receivingWallet: string, waitNumberOfConfirmations?: number): Promise<{ transactionHash: string; }>; getVrfSubscriptionDetails(vrfCoordinatorAddress: string, subscriptionId: BigNumber): Promise<{ balance: BigNumber; reqCount: BigNumber; owner: string; consumers: string[]; }>; pendingVrfRequestExists(vrfCoordinatorAddress: string, subscriptionId: BigNumber): Promise; requestVrfSubscriptionOwnerTransfer(vrfCoordinatorAddress: string, subscriptionId: BigNumber, newOwnerAddress: string, waitNumberOfConfirmations?: number): Promise<{ transactionHash: string; }>; acceptVrfSubscriptionOwnerTransfer(vrfCoordinatorAddress: string, subscriptionId: BigNumber, waitNumberOfConfirmations?: number): Promise<{ transactionHash: string; }>; getMaxVrfConsumers(vrfCoordinatorAddress: string): Promise; getMaxVrfNumberOfWords(vrfCoordinatorAddress: string): Promise; getMaxVrfRequestConfirmations(vrfCoordinatorAddress: string): Promise; getMinVrfRequestConfirmations(vrfCoordinatorAddress: string): Promise; getMaxVrfRequestGasLimit(vrfCoordinatorAddress: string): Promise; getVrfCommitment(vrfCoordinatorAddress: string, requestId: BigNumber): Promise; getVrfCoordinatorConfig(vrfCoordinatorAddress: string): Promise<{ minimumRequestConfirmations: number; maxGasLimit: number; stalenessSeconds: number; gasAfterPaymentCalculation: number; }>; getVrfCoordinatorTypeAndVersion(vrfCoordinatorAddress: string): Promise; registerUpkeep(linkTokenAddress: string, automationRegistrarAddress: string, amountInJuels: BigNumber, name: string, encryptedEmail: BytesLike, upkeepContract: string, gasLimit: number, adminAddress: string, checkData: BytesLike, source: number, sender: string, waitNumberOfConfirmations?: number): Promise<{ transactionHash: string; }>; getAutomationPendingRegistrationRequest(automationRegistrarAddress: string, hash: BytesLike): Promise<{ adminAddress: string; balance: BigNumber; }>; cancelAutomationPendingRegistrationRequest(automationRegistrarAddress: string, hash: BytesLike, waitNumberOfConfirmations?: number): Promise<{ transactionHash: string; }>; getAutomationRegistrarConfig(automationRegistrarAddress: string): Promise<{ autoApproveConfigType: number; autoApproveMaxAllowed: number; approvedCount: number; automationRegistry: string; minLINKJuels: BigNumber; }>; getAutomationRegistrarTypeAndVersion(automationRegistrarAddress: string): Promise; fundUpkeep(automationRegistryAddress: string, id: BigNumber, amountInJuels: BigNumber, waitNumberOfConfirmations?: number): Promise<{ transactionHash: string; }>; checkUpkeep(automationRegistryAddress: string, id: BigNumber, address: string): Promise<{ performData: BytesLike; maxLinkPayment: BigNumber; gasLimit: BigNumber; adjustedGasWei: BigNumber; linkEth: BigNumber; }>; migrateUpkeeps(automationRegistryAddress: string, ids: BigNumber[], destination: string, waitNumberOfConfirmations?: number): Promise<{ transactionHash: string; }>; receiveMigratedUpkeeps(automationRegistryAddress: string, encodedUpkeeps: BytesLike, waitNumberOfConfirmations?: number): Promise<{ transactionHash: string; }>; cancelUpkeep(automationRegistryAddress: string, id: BigNumber, waitNumberOfConfirmations?: number): Promise<{ transactionHash: string; }>; withdrawFundsFromCanceledUpkeep(automationRegistryAddress: string, id: BigNumber, to: string, waitNumberOfConfirmations?: number): Promise<{ transactionHash: string; }>; transferAutomationPayeeship(automationRegistryAddress: string, automationNode: string, proposed: string, waitNumberOfConfirmations?: number): Promise<{ transactionHash: string; }>; acceptAutomationPayeeship(automationRegistryAddress: string, automationNode: string, waitNumberOfConfirmations?: number): Promise<{ transactionHash: string; }>; withdrawAutomationPayment(automationRegistryAddress: string, from: string, to: string, waitNumberOfConfirmations?: number): Promise<{ transactionHash: string; }>; getActiveUpkeepIDs(automationRegistryAddress: string, startIndex: BigNumber, maxCount: BigNumber): Promise; getUpkeep(automationRegistryAddress: string, id: BigNumber): Promise<{ target: string; executeGas: number; checkData: BytesLike; balance: BigNumber; lastAutomationNode: string; admin: string; maxValidBlocknumber: BigNumber; amountSpent: BigNumber; }>; getAutomationNodeInfo(automationRegistryAddress: string, query: string): Promise<{ payee: string; active: boolean; balance: BigNumber; }>; automationGetMaxPaymentForGas(automationRegistryAddress: string, gasLimit: BigNumber): Promise; getMinBalanceForUpkeep(automationRegistryAddress: string, id: BigNumber): Promise; getAutomationRegistryState(automationRegistryAddress: string): Promise<{ nonce: number; ownerLinkBalance: BigNumber; expectedLinkBalance: BigNumber; numUpkeeps: BigNumber; paymentPremiumPPB: number; flatFeeMicroLink: number; blockCountPerTurn: number; checkGasLimit: number; stalenessSeconds: number; gasCeilingMultiplier: number; minUpkeepSpend: BigNumber; maxPerformGas: number; fallbackGasPrice: BigNumber; fallbackLinkPrice: BigNumber; transcoder: string; registrar: string; automationNodes: string[]; }>; isAutomationRegistryPaused(automationRegistryAddress: string): Promise; getAutomationRegistryTypeAndVersion(automationRegistryAddress: string): Promise; getAutomationRegistryUpkeepTranscoderVersion(automationRegistryAddress: string): Promise; } //# sourceMappingURL=HardhatChainlink.d.ts.map