Skip to content

Latest commit

Β 

History

History
48 lines (32 loc) Β· 2.34 KB

README.md

File metadata and controls

48 lines (32 loc) Β· 2.34 KB

πŸŒ• Selene Chain Lunar Sequencer

Selene Chain is an experimental blockchain experience that merges celestial mechanics with onchain infrastructure. Powered by Syndicate’s decentralized sequencing, Selene introduces a novel rule: transactions are validated based on the current phase of the moon.

πŸŒ“ What is Selene Chain?

Selene Chain is a blockchain with a mood.

It features a custom sequencer controlled by lunar phases, enforcing a dynamic, phase-dependent transaction policy. This means the validity of your transaction changes depending on whether the moon is full, new, or somewhere in between.

πŸŒ™ How It Works

Each lunar phase imposes unique constraints on what kinds of transactions are allowed:

Phase Rule Description
πŸŒ‘ New Moon Prefers low calldata size
πŸŒ’ Waxing Crescent Only broadcasts to an allowed contract
πŸŒ“ First Quarter Requires angel number donation (e.g., 111, 333, etc.)
πŸŒ” Waxing Gibbous Only allows function calls to waxingGibbous()
πŸŒ• Full Moon Only allows token interactions (ERC20, ERC721, ERC1155)
πŸŒ– Waning Gibbous Requires high gas limit (β‰₯ 21k)
πŸŒ— Last Quarter Gas limit to calldata size ratio must be β‰₯ 16
🌘 Waning Crescent Only allows low-value transactions (≀ 0.01 ETH)

These rules are enforced onchain by the MoonphasePermissionModule, which reads the moon phase using a timestamp-based algorithm and permits or rejects transactions accordingly.

πŸ”­ Try It Live

selene.demo.syndicate.io

🧠 Tech Stack

  • Next.js + TypeScript – frontend + API
  • Solidity – lunar permission logic
  • Foundry – contract dev/test
  • Syndicate Sequencer – decentralized sequencing
  • PostgreSQL – tx log storage
  • Tailwind CSS – styling

πŸ“ Repo Structure

  • contracts/ β€” Solidity smart contracts
  • app/ β€” Next.js app (routes, layout, styles)
  • components/ - UI components
  • db/ - Drizzle ORM