flow-go icon indicating copy to clipboard operation
flow-go copied to clipboard

[FVM] Implement scheduled callback blueprints and transaction scripts

Open devbugging opened this issue 4 months ago • 1 comments

Summary

Implement the core scheduled callback processing functionality including blueprint transactions and Cadence scripts for callback execution on Flow blockchain.

Changes

New Files

  • fvm/blueprints/scheduled_callback.go - Core callback processing logic
  • fvm/blueprints/scheduled_callback_test.go - Comprehensive test suite
  • fvm/blueprints/scripts/processScheduledCallbacksTransaction.cdc - Cadence script for processing callbacks
  • fvm/blueprints/scripts/executeScheduledCallbackTransaction.cdc - Cadence script for executing individual callbacks

Key Features

  • ProcessCallbacksTransaction() - Creates transaction to identify ready callbacks
  • ExecuteCallbacksTransactions() - Generates execution transactions from callback events
  • Event-driven callback discovery and execution
  • Proper error handling and validation
  • Support for callback execution effort tracking

Dependencies

  • PR https://github.com/onflow/flow-go/pull/7492
  • Adding callback scheduler contract to core-contracts

devbugging avatar Jun 10 '25 10:06 devbugging