MCPcopy Create free account
hub / github.com/clockwork-xyz/examples

github.com/clockwork-xyz/examples @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
289 symbols 495 edges 152 files 30 documented · 10% updated 3y ago★ 704 open issues

Browse by type

Functions 209 Types & classes 80
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Clockwork examples

This repo contains example automated smart-contracts built with the Clockwork SDK. - 0. Quickstart Sol Transfer (Typescript) – Executes an SOL transfer on a user-defined schedule. - 1. SPL Transfer (Typescript) – Executes an SPL token transfer on a user-defined schedule. - 2. Counter – Creates a thread via CPI that increments a counter every 10 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.

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 162
Class 69
Method 47
Interface 9
Enum 2

Languages

Rust91%
TypeScript9%

Modules by API surface

subscriptions/programs/subscriptions/src/lib.rs8 symbols
subscriptions/client/src/utils.rs7 symbols
openbook_dca/client/src/utils.rs7 symbols
2-counter/programs/counter/src/lib.rs7 symbols
utils/lib/index.ts6 symbols
subscriptions/programs/subscriptions/src/state/subscription.rs6 symbols
pyth_stats/client/src/main.rs6 symbols
event_stream/tests/event_stream.ts6 symbols
subscriptions/programs/subscriptions/src/state/subscriber.rs5 symbols
pyth_feed/programs/pyth_feed/src/state/feed.rs5 symbols
pyth_feed/client/src/main.rs5 symbols
payments/programs/payments/src/state/payment.rs5 symbols

For agents

$ claude mcp add examples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page