-
Notifications
You must be signed in to change notification settings - Fork 78
Added FlowCron docs #1642
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
base: main
Are you sure you want to change the base?
Added FlowCron docs #1642
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
chasefleming
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good, but overall it needs more context on what each step is doing. Try to imagine whoever is reading it doesn't have as much context on tooling, scripts, etc as you.
| } | ||
| ``` | ||
|
|
||
| Deploy this and save a handler instance to storage. See [CounterTransactionHandler.cdc] for a working example. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to explain how to deploy here, but that may be too much information, so we can link to a deploy docs page
|
|
||
| ### 1. Create Your Handler | ||
|
|
||
| Create a contract that implements the `TransactionHandler` interface: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain what a handler is here please and link to ST docs for more info
| } | ||
| ``` | ||
|
|
||
| See [CreateCronHandler.cdc] for the full transaction. Run it with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explain that this is using the CLI
|
|
||
| ### 4. Check Status | ||
|
|
||
| Query your cron job's metadata with [GetCronInfo.cdc]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explain this is a script and link to docs
Co-authored-by: Chase Fleming <[email protected]>
Co-authored-by: Chase Fleming <[email protected]>
Co-authored-by: Chase Fleming <[email protected]>
Co-authored-by: Chase Fleming <[email protected]>
Co-authored-by: Chase Fleming <[email protected]>
Co-authored-by: Chase Fleming <[email protected]>
No description provided.