Skip to content

Conversation

@Kay-Zee
Copy link
Member

@Kay-Zee Kay-Zee commented Dec 9, 2025

Description

Adds admin function for scheduling recurring schedule, plus allow setting a predefined estimate, to skip estimation during transaction execution.


For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the standards mentioned here.
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

@Kay-Zee Kay-Zee requested a review from a team as a code owner December 9, 2025 03:58
/// Capability to withdraw FLOW for Supervisor's own scheduling fees
access(self) let feesCap: Capability<auth(FungibleToken.Withdraw) &FlowToken.Vault>
access(self) var _scheduledTransaction: @FlowTransactionScheduler.ScheduledTransaction?
access(contract) var selfSchedulingFeeEstimate: UFix64
Copy link
Contributor

Choose a reason for hiding this comment

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

This will be a non-upgradeable change. If we want to add it, we'll need to redeploy, add another versioned contract, or version the supervisor.

Comment on lines +346 to +347
self.DEFAULT_PRIORITY = FlowTransactionScheduler.Priority.Low.rawValue
self.DEFAULT_EXECUTION_EFFORT = 400
Copy link
Contributor

@sisyphusSmiling sisyphusSmiling Dec 11, 2025

Choose a reason for hiding this comment

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

FYI the contract won't initialize on updating. If we want to set these on the existing deployment, we'll need to add setters. I've included these changes in my WIP PR #109

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.

4 participants