-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace external adapters with chainlink functions #6
Comments
@yogesh0509 i would like to work on this issue... |
Hey, @EthixLucifer , can you share your approach for this issue? |
My approach is to review the current implementation of external adapters located in the server/external_adapter directory. Create Chainlink Functions that replicate the behavior of the existing external adapters. These functions should fetch the same data and return it in the required format. this is the rough overview of how the function will look like....
but due to lack of documentation setting up the node is facing issues.... can you share how to setup the chainlink node for this specific project.. |
I followed this documentation to run my own chainlink node. However this might not be very crucial to your task as before new contracts are deployed, current external adapters are not going to work as they are configured for mumbai testnet which was deprecated long before. You can test your chainlink functions here |
You will also need to make some changes in the smart contract to replace the existing API calls with chainlink functions. Can you also share a brief approach for it? |
the changes in the smart contract would be as follows, so we will make the smart contract make the call directly to the chainlink function instead of external adapter and remove the dependency on external adapters. This is the simple contract where I've used Amoy testnet to deploy the contract
you can load this contract at address: once loaded execute the execute this function in the chainlink functions playground
|
this is just to test the contract fetches the rank, in prod environment dependencies on external contracts, i.e
will be taken care of.. |
@EthixLucifer This looks really good. I am assigning this issue to you. Make changes in a separate branch and raise the PR. |
@EthixLucifer Any updates?? |
Replace external adapters with chainlink functions to fetch live data.
The text was updated successfully, but these errors were encountered: