Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.02 KB

README.md

File metadata and controls

23 lines (18 loc) · 1.02 KB

Splitable batch example with gelato

This project shows how to create a job activated by gelato that is able to detect the run will not complete (due to gas consumption) and able to launch subsequent jobs until it is completed.

image

See contracts/GelatoSplitableTimeBatch.sol for a detailed description and technicals informations

Check IGelatoSplitableTimeBatchTarget.sol and TestGelato.sol for trigger/batch functions overview.
Check GelatoSplitableTimeBatch.sol for details 
deploy TestGelato
deploy GelatoSplitableTimeBatch
set access right (AccessControl from openzeppelin)
bind TestGelato to GelatoSplitableTimeBatch
set up job on app.gelato.network with GelatoSplitableTimeBatch (that is the resolver)
  checker() and splitableBatch() functions
use console and setQueueSize to fill manually TestGelato with items to process
  (that should be processed by your job at defined dates)