-
Notifications
You must be signed in to change notification settings - Fork 45
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
Admin routes for contract tasks #267
Comments
Hello @Marchand-Nicolas |
Hi @Luluameh! |
hello @dmirgaleev i am a frontend dev and blockchain developer |
Hi @martinvibes! |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI am a passionate and results-driven web developer, currently deepening my knowledge in web3 technologies, Cairo, and open-source development through Dojo Coding. My skill set includes expertise in JavaScript, React, HTML, CSS, and C# with .NET Entity Framework, among others. I also have experience with tools like Git, GitHub, SQL Server, and Postman. My focus has been on building solid web applications, from task lists to full-fledged CRUD systems, with front-end, back-end, and database integration. I have already made a contribution to Starknet Quest, and I am eager to take on more opportunities How I plan on tackling this issueTo implement the admin routes for creating and editing contract tasks, I first create the src/endpoints/admin folder and within it, the create_contract.js and update_contract.js files. In create_contract.js, I define a POST route that receives an object with the calls field and uses it to create a new QuestTaskDocument, ensuring the calls field is included as a vector of Call. The Call type is defined in src/models.rs, with the fields contract, call_data, entry_point, and regex. Then, in update_contract.js, I set up a PUT route that updates an existing document, allowing the modification of fields, including calls. Finally, I perform tests to verify that the create and update operations work correctly and that the documents are stored properly in the database. |
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 ecosystem. How I plan on tackling this issueI will implement the admin routes for contract tasks by following these steps: Create Contract Folder and Routes: Handle Calls Field in Routes: Update QuestTaskDocument Type: Store the New Document: I'll thoroughly test both create_contract and update_contract routes to verify they handle the calls data correctly and store it in the database without issues. ETA - 3 days |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI am a Experience Cairo smart contract developer with experience working on projects such as Just Art Peace, Dojo, Kart, TBA, and Shinigami. Before transitioning to Cairo development, I was a backend developer specializing in Rust. My recent work with cairo starknet
My recent work with rust
How I plan on tackling this issueI have read the description This issue, am going to create two endpoints
ETA : 16HRS |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedWith over 3 years of experience in blockchain and backend development, I have worked across multiple blockchain ecosystems. My expertise spans the entire development lifecycle—from project conceptualization and smart contract design to managing on-chain interactions, seamless protocol integration, and implementing strong security practices. This enables me to handle both on-chain and off-chain infrastructure, ensuring the development of reliable, scalable blockchain applications. How I plan on tackling this issueStudy the codebase to ensure design consitency, then implement the assigned tasks. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedi'm a solidity and cairo smart contract developer with over 2 years experience and belive i have the skill set for the task |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI am a Software Engineer with experience in building backend using Rust, I am quite good with Rust and other programming languages including JavaScript, TypeScript, Cairo and NodeJS. I am also an open source contributor and made my first contribution in the ODHack #7.0 which was successfully merged. How I plan on tackling this issueFirst is to look at how the existing routes are been structured, that would give me an idea on how to structure my code, next I will look closely at what is to be implemented by following the PROPOSED TODO, as I build I will keep testing to make sure it's working the way it is supposed to. |
The maintainer Marchand-Nicolas has assigned JoE11-y to this issue via OnlyDust Platform. |
Description
Implement the necessary admin routes to create and edit a new
contract
task type.PROPOSED TODO
contract
folder insrc\endpoints\admin
containing acreate_contract
and anupdate_contract
route (such as insrc\endpoints\admin\balance
), which are dedicated to creating & updating contract tasks.calls
(Array ofCall
) field as an argument in the body (among the other default fields such as the task name), and store it in the task document in the db (as we are doing for other task types, such as insrc\endpoints\admin\balance
.).Each
Call
is an object with the following fieldscontract
(string),call_data
(string array),entry_point
(string),regex
(string).calls
optional field to theQuestTaskDocument
type insrc\models.rs
if it is not already present. If it doesn't already exist, I suggest you to create aCall
type that you can then use to type theCalls
field.The text was updated successfully, but these errors were encountered: