Questions tagged [chainlink-keepers]

36 questions
3
votes
1 answer

How do I configure the perform upkeep to know which function to call in chainlink keepers?

I want the Chainlink Keeper to call a function based on some paramters, so my checkUpkeep function is as follows: function checkUpkeep( bytes calldata checkData ) external view override returns ( bool upkeepNeeded, bytes memory…
Japarjam
  • 31
  • 1
3
votes
2 answers

Change the state of a variable of a contract B from a Keeper

The purpose is to use this variable from the B contract Im trying with delegate call but doesnt work,only works with event ContractB.sol // SPDX-License-Identifier: MIT pragma solidity >0.8.0; contract ContractB { uint256 public tokenName…
Irwing Tello
  • 179
  • 1
  • 8
2
votes
0 answers

Chainlink Automation programmatic upkeep registration not showing on https://automation.chain.link/mumbai

i have managed call the register() function and the events are now properly formated also on polygonscan. https://mumbai.polygonscan.com/tx/0x3aa72ddf8b93248bad0b86354f2f690b2c04704961fdb63154c42189269cac3f#eventlog The transaction emits a…
akerbabber
  • 23
  • 2
2
votes
1 answer

What is the use of Check gas limit in Chainlink Keepers?

In chainlink keepers document here. There is a conf called checkGasLimit with 6,500,000 as the default value. Since the computation in checkUpKeep is expected to be outsourced off-chain, why there is a configuration called checkGasLimit where…
Frank Kong
  • 1,010
  • 1
  • 20
  • 32
1
vote
0 answers

How to Implement off chain Keepers for Decentralize Perpetual Exchanges like GMX.io?

I'm attempting to clone gmx.io. I understand most of the on-chain and Dex concepts, but I'm stumped on how to establish an off-chain. Keepers they did not opensource the code for that, so could you kindly assist me in determining what the specific…
1
vote
1 answer

Change checkUpkeep function returns arguments

Can I modify the returns statement to include a bool [] memory instead of just bool ?
Ibra
  • 912
  • 1
  • 12
  • 31
1
vote
2 answers

TypeError: Cannot read properties of undefined (checkUpkeep, chainlink keepers)

I'm getting this error while testing my smart contract using hardhat TypeError: Cannot read properties of undefined (reading 'checkUpkeep') code for the test describe("checkUpkeep", () => { it("returns false if people haven't sent…
1
vote
1 answer

VRFCoordinatorV2Mock is not defined?

Can anyone tell me why i might be getting the error "VRFCoordinatorV2Mock is not defined" when running hardhat deploy? It appears the error is in one of the two deploy scripts i am running. Both deploy scripts for this project pasted below. Probs…
1
vote
1 answer

How to test blokchain lottery using Chainlink VRFv2 and Chainlink Keeper?

Thanks to Patrick and after reading the Chainlink's blog on how to build blockchain lottery, I am eager to build a similar "version". It will be using the latest Chainlink's version of VRFv2 and Keeper. However, the supported test networks for VRFv2…
0x75aaa
  • 45
  • 6
1
vote
0 answers

Chainlink Keeper: The execution failed due to an exception

Submit Registration request The execution failed due to an exception. Trying to register my keeper contracts and getting this error. Has anyone navigated it? or should I just wait?
henrybbosa
  • 1,139
  • 13
  • 28
1
vote
1 answer

Can we change the admin after creating the Keeper?

Is it possible to give the authority of cancel and withdraw functions to another address after creating the Keeper in the interface? (Admin address) Or is it possible to create a keeper from the contract by giving the desired admin address?
Dilara
  • 11
  • 2
0
votes
2 answers

Can chainlink function read local data?

I try to use chainlink function to retrieve local data, but got an error of "Error: Import of module node-dht-sensor not allowed" . I'd like to know whether Chainlink Function can be used to get local live data. const sensor =…
james
  • 3
  • 2
0
votes
1 answer

What is causing gas estimation error when calling KeeperRegistry2.0 with contract?

I use a contract to call the KeeperRegitry2.0 to manage the upKeep state. There is a sample Contract : interface IKeeperRegistry { function pauseUpkeep(uint256 id) external; } contract KeeperManager{ IKeeperRegistry immutable public…
0
votes
0 answers

Chainlink's KeeperRegistry2.0 does not work with Typechain's newest version

I am working on a hardhat project by creating it from the CLI and using Typechain for the TS support. When running npx hardhat typechain it crashes at…
0
votes
2 answers

About the link token required for Chainlink VRF random number return is too high

I require a random parameter on the BSC test network, which costs about 0.1 ~ 0.15 link tokens each time. But when I transferred to the BSC mainnet, the cost soared to 113 link tokens. This caught me a bit off guard, where I think the code is…
1
2 3