Collection of Move examples for the Cedra ecosystem. Each subproject focuses on a specific on-chain pattern (DEX, fungible assets, NFTs, fee splitting, referrals, and more), complete with Move modules, tests, and optional TypeScript clients.
- Full Cedra docs: docs.cedra.network
-
DEX — constant-product AMM with slippage protection, price impact analysis, and multi-hop routing
- Source:
dex/ - Guide:
dex/README.md - Docs: Build a DEX on Cedra
- Source:
-
Fungible Asset (FA) example — minimal fungible asset module + TS client
- Source:
fa-example/contract - Guide:
fa-example/README.md - Docs: Fungible Asset (FA) End-to-End Guide
- Source:
-
NFT example — collection + mint/transfer flows with TS client
- Source:
nft-example/contract - Guide:
nft-example/README.md - Docs: NFT Contract - Full Code Walkthrough
- Source:
-
Fee Splitter — proportional distribution of payments to recipients
- Source:
fee-splitter/contract - Guide:
fee-splitter/README.md - Docs: Build a Fee Splitter Contract
- Source:
-
First Transaction — minimal TS script to create, sign, and submit a transaction
- Source:
first-tx/ - Guide:
first-tx/README.md - Docs: Your First Transaction
- Source:
-
Referral system — on-chain referral tracking with a Next.js client
- Source:
referral/contract - Guide:
referral/README.md
- Source:
-
FA Lock — simple asset locking primitives (Move + tests)
- Source:
fa-lock/ - Docs: Escrow / Token Vesting Guide
- Source:
-
Faucets — example assets and a simple minting utility
- Source:
faucets/
- Source:
-
Randomness Example — on-chain random selection using Cedra's secure randomness
- Source:
randomness-example/ - Guide:
randomness-example/README.md
- Source:
Contracts can be compiled, tested, and published with the Cedra CLI:
# inside a project folder (e.g., dex/)
cedra move test
cedra move compile --named-addresses my_addr=default
cedra move publish --named-addresses my_addr=defaultRefer to each subproject’s README for exact commands and configuration.