-
Notifications
You must be signed in to change notification settings - Fork 74
Create scheduled transactions documentation #1468
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?
Conversation
@devbugging is attempting to deploy a commit to the Flow Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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 we please include a :::warning
that this feature is only available on Testnet /emulator with the latest Flow CLI release
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.
Added a few comments to work in. I haven't fully reviewed yet though
access(all) resource interface TransactionHandler { | ||
access(Execute) fun executeTransaction(id: UInt64, data: AnyStruct?) | ||
} |
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 add the metadata views functions here? It would be good to encourage developers to use these too
access(all) event CallbackExecuted(data: String) | ||
access(all) resource Handler: FlowTransactionScheduler.TransactionHandler { | ||
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 add the metadata views functions here like we have in the test contract: https://github.com/onflow/flow-core-contracts/blob/josh/scheduler-utils/contracts/testContracts/TestFlowScheduledTransactionHandler.cdc#L32-L53
``` | ||
|
||
### 2. Scheduling a Transaction | ||
|
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.
We'll need to update this to use the manager resource once that is finished too
Initial documentation for scheduled transactions