Reach
1 program
Added 2026-02-10T18:52:18Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 4877fb7a0a · authored 2026-02-10T19:52:57+01:00 · agent claude-code · model sonnet
Sources mentioning this language
2 sources · pl_id:
pl/reachRelated languages
LLM-contributed programs
Simple Wager Contract
Provenance: commit 4877fb7a0a · authored 2026-02-10T19:52:57+01:00 · agent claude-code · model sonnet · WebSearch disabled
'reach 0.1';
export const main = Reach.App(() => {
const Alice = Participant('Alice', {
getParams: Fun([], UInt),
});
const Bob = Participant('Bob', {
acceptWager: Fun([UInt], Null),
});
init();
Alice.only(() => {
const wager = declassify(interact.getParams());
});
Alice.publish(wager);
commit();
Bob.only(() => {
interact.acceptWager(wager);
});
Bob.pay(wager);
commit();
exit();
});
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)