Shipyard

Contract Templates

Start from a working example. Click "Use" to load a template into the deploy flow.

Hello World

beginner

The simplest possible Intelligent Contract. Stores and retrieves a greeting string.

starterstringreadwrite

Simple Counter

beginner

Increment, decrement, and reset a counter. The most minimal stateful contract with no LLM.

starterstatecounterno-llm

Key-Value Store

beginner

A simple on-chain key-value store. Set and get arbitrary string values by key.

storagemapno-llmutility

Wizard of Coin

intermediate

An LLM-powered wizard who guards a magical coin and decides whether to give it away based on how you ask.

llmgl.nondetdecisiongameofficial-example

Content Oracle

intermediate

Fetches a webpage and uses LLM inference to answer a question about its content. Consensus enforced via strict equality.

llmgl.nondetweb-fetchoracleeq_principle

Prediction Market

advanced

A prediction market that uses LLM inference and web data to resolve YES/NO outcomes.

llmpredictionmarketdefigl.nondeteq_principle

Simple DAO

intermediate

A minimal DAO where members vote FOR or AGAINST a proposal. No LLM — pure on-chain governance logic.

daogovernancevotingno-llm

Escrow with AI Arbiter

advanced

A three-party escrow (buyer, seller, arbiter). If there is a dispute, an LLM reads the resolution URL and decides who gets the funds.

escrowdefidisputellmgl.nondeteq_principle

Web Data Aggregator

intermediate

Aggregates data from two URLs and synthesizes a summary on a given topic using LLM.

llmgl.nondetweb-fetchaggregatoreq_principle

Token Price Tracker

intermediate

Fetches the current price of a token from a public webpage and stores it on-chain with consensus.

oraclepricegl.nondetweb-fetcheq_principledefi

AI Fact Checker

advanced

Submit a claim and a source URL. The LLM reads the source and verifies whether the claim is TRUE, FALSE, or UNVERIFIABLE.

llmgl.nondetfact-checkoracleeq_principleverification

Crowdfunding

intermediate

A simple on-chain crowdfunding campaign with a goal, deadline, and contributor tracking. No LLM — pure state logic.

crowdfundingdefino-llmcontributionsstate

Sports Bet Resolver

advanced

Place bets on sports match outcomes. The LLM reads a results page to resolve bets and award points. Inspired by the official GenLayer football bets example.

llmgl.nondetsportsbettingeq_principleofficial-example

GitHub Profile Vault

intermediate

Fetches and stores AI-generated summaries of GitHub profiles on-chain using dual equivalence principles. Based on official GenLayer example.

llmgl.nondetgithubprofileseq_principleofficial-example

Evolving Story

advanced

A living narrative contract. Each write call uses LLM to add a new chapter that builds on all previous chapters. The story grows and evolves with every interaction — like a literary organism.

llmgl.nondetliving-contractevolvingeq_principlecreative

Digital Pet

intermediate

A living creature on-chain. Feed it, play with it, and let it rest. Its mood and personality evolve with each interaction via LLM responses. Neglect it and it gets grumpy.

llmgl.nondetliving-contractevolvinggameeq_principlepet

Self-Updating Knowledge Base

advanced

A living knowledge contract that ingests web pages, summarises them with LLM, and merges the knowledge into a growing on-chain summary. Each update regenerates its own understanding — like a learning organism.

llmgl.nondetliving-contractevolvingknowledgeeq_principleself-updating

Adaptive Persona

advanced

A contract with a living AI personality that evolves through conversations. Its character traits, opinions, and memories grow with each interaction — a digital being that changes over time.

llmgl.nondetliving-contractevolvingpersonaeq_principleai-character

On-Chain Debate Arena

advanced

Two sides debate a topic. The LLM generates arguments for each side and then judges the debate, declaring a winner based on argument quality.

llmgl.nondetdebategovernanceeq_principlecreative

Living Constitution

advanced

A governance contract whose rules evolve over time. Members propose amendments, the LLM evaluates their merit against existing rules, and approved amendments are woven into the constitution — a document that grows and adapts like a living organism.

llmgl.nondetliving-contractevolvinggovernanceeq_principleconstitutionself-amending
GenLayerPowered by GenLayer