Skip to content

Feature idea: periodic forge scripts #34

Description

@naps62

Why

this gives us a powerful ability of simulating outside events on a private testnet (e.g.: simulating yield being generated over time)

How

Additional ops for a stack:

{
  "forge_script": {
    "script: "<code>",
    "cron": "0/1 0 0 0 0" # cron-style info of when to run it 
  }
}

if a script exists, a new task is spawned for this stack that compiles & runs the script with the given cron schedule (must be compiled everytime since it may change over time)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions