-
Notifications
You must be signed in to change notification settings - Fork 56
Advanced custom api task type: custom_api
#263
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
Comments
Can I do this? |
Hi @Oshioke-Salaki! |
Hello @Marchand-Nicolas I would love to work on this |
Hi @martinvibes! |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI'm Poulav Bhowmick, a software engineer at Invisible Studios with a robust background in TypeScript, Rust, Solidity Cairo, fullstack development and blockchain technology. My experience includes building robust applications, optimizing functionalities and blockchain integration. I have actively participated in events and open source contributions, enhancing my capability to tackle real-world tech challenges. My projects can be viewed on my GitHub Profile and OnlyDust Profile. Plus I´m active member of Starknet, Ethereum exosystem. I have also previously contributed to Starknet Quest How I plan on tackling this issueI will address this issue by implementing the following steps: Update QuestTaskDocument Type: I'll start by adding the api_url (string) and regex (string) as optional fields to the QuestTaskDocument type in src/models.rs if they aren't already present. Next, I'll create the new route verify_custom_api.rs under src/endpoints/quests. After calling the API, I'll extract and check the response against the provided regex. To maintain consistency and efficiency, I'll reuse parts of the verify_balance route code for API calls and response handling, adapting them as needed for this custom verification process. ETA-2 days |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedHello, i am Dprof-in-tech, an experienced Full Stack Blockchain Developer and I am excited to contribute my skills to this project in this ODHACK 8. With a strong background in Next.js, TypeScript, JavaScript, React, Node.js, Rust and Cairo, I've honed my technical skills across the blockchain development landscape. How I plan on tackling this issue
I will begin by reviewing the existing codebase, particularly the verify_balance route located in the src/endpoints/quests/verify_balance.rs. This will give me insight into the current validation mechanism used and how it can be reused for the new verify_custom_api route. I will examine how the QuestTaskDocument type is defined in src/models.rs, and determine if it already has the necessary fields for this task, specifically api_url and regex.
I will add two optional fields to the QuestTaskDocument type: These fields will be marked as optional (Option), allowing for flexibility when creating quest tasks. These will be crucial for customizing API-based tasks.
I will create a new route named verify_custom_api.rs under the src/endpoints/quests directory. This route will handle custom API-based quest tasks. This route will:
I will implement a function that: If the API call is successful, it retrieves the response as text. If the API response passes the regex check, I will mark the quest task as completed by updating the task state.
If the regex validation fails, I will throw a meaningful error stating that the API response did not meet the expected format.
Successful cases: Where the API returns valid responses that pass the regex check.
|
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedWith over four years in blockchain and backend development, I’ve worked across different ecosystems, handling everything from smart contract design to on-chain interactions and protocol integration. I focus on building secure, scalable, and reliable blockchain applications, managing both on-chain and off-chain infrastructure. How I plan on tackling this issueBegin by studying the codebase to ensure design consistency, then proceed to work on the task. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI’m Benjamin, a Full Stack JavaScript developer with four years of experience, mainly in backend development using Next.js and TypeScript. I’ve made 18 contributions on the OnlyDust platform, and you can check my work here: https://app.onlydust.com/u/Benjtalkshow. I enjoy solving problems and delivering good solutions, especially when under pressure. How I plan on tackling this issue
|
The maintainer Marchand-Nicolas has assigned Dprof-in-tech to this issue via OnlyDust Platform. |
Description
Advanced custom api task type:
custom_api
: the aim of this PR is to add a newverify_custom_api
route insrc\endpoints\quests
.PROPOSED TODO
api_url
(string) andregex
(string) optional fields to theQuestTaskDocument
type insrc\models.rs
if they are not already present.verify_custom_api.rs
, you should call the specified API (e.g. api.carmine.finance)regex
, mark the task as completed. Else, throw an error.verify_balance
routeThe text was updated successfully, but these errors were encountered: