Skip to content
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

feat: add admin routes for contract tasks #276

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

JoE11-y
Copy link
Contributor

@JoE11-y JoE11-y commented Sep 29, 2024

Closes #267

  • Create a contract folder in src\endpoints\admin containing a create_contract and an update_contract route (such as in src\endpoints\admin\balance), which are dedicated to creating & updating contract tasks.
  • It should take a calls (Array of Call) 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 in src\endpoints\admin\balance.).

Copy link
Collaborator

@Marchand-Nicolas Marchand-Nicolas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working perfectly! Lgtrm!

@Marchand-Nicolas Marchand-Nicolas merged commit 4518b11 into lfglabs-dev:testnet Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Admin routes for contract tasks
2 participants