/examples

Automated smart-contracts built with the Clockwork SDK

Primary LanguageRust

Clockwork examples

This repo contains example automated smart-contracts built with the Clockwork SDK.

  • Hello Clockwork – Prints "Hello world" and the current timestamp every 60 seconds
  • Recurring payments – Executes an SPL token transfer on a user-defined schedule.
  • Token distributor – Mints a new token and sends it to a target user every 60 seconds.
  • Dollar cost averaging – Executes a swap on Serum on a user-defined schedule.
  • Serum crank – Indefinitely processes open orders on a permissioned Serum market.
  • Subscriptions – Allow users to subscribe to subscriptions by paying on a recurrent schedule.