Skip to content

goldandrew/nebgov

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

529 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NebGov

Permissionless on-chain governance for every Soroban protocol.

NebGov is the canonical governance framework for the Stellar ecosystem — a modular, auditable, and composable set of smart contracts that any Soroban protocol can plug into to add on-chain governance.

License: MIT CI codecov Security Policy


What It Does

Feature Description
Proposal lifecycle Create, vote, queue, and execute on-chain proposals
Timelock execution Mandatory delay between passing and execution
Token-weighted voting Snapshot voting power from any SEP-41 token
Delegation Delegate voting power to any address
Multi-sig treasury DAO-controlled treasury with configurable threshold
Permissionless factory Deploy your own governance instance in one call

Packages

Package Description
contracts/governor Core governance contract (Rust/Soroban)
contracts/timelock Delayed execution controller (Rust/Soroban)
contracts/token-votes Voting power with checkpointing (Rust/Soroban)
contracts/governor-factory Permissionless governor deployer (Rust/Soroban)
contracts/treasury Multi-sig treasury (Rust/Soroban)
sdk/ TypeScript SDK (@nebgov/sdk)
app/ Next.js governance dashboard

Quick Start

Get started by deploying your first NebGov DAO to the Stellar testnet in under 10 minutes:

👉 Deploy your first DAO on Stellar with NebGov

Local development stack (Docker)

Bring up Postgres + indexer + backend + app with one command:

cp .env.example .env
# Set GOVENOR_ADDRESS in .env (required)
docker compose up --build

Then open:

  • App: http://localhost:3000
  • Backend health: http://localhost:3001/health
  • Indexer health: http://localhost:3002/health

For full setup instructions and contribution guidelines, see CONTRIBUTING.md.

For a step-by-step local development guide, see docs/local-development.md.


Architecture

See docs/architecture.md for the full design overview.

Production Deployment Guides

propose() → Governor → [voting period] → queue() → Timelock → execute()
                ↓
          Token Votes (snapshot voting power)

Contributing

See CONTRIBUTING.md to get started.

Issues are labeled by complexity:

  • complexity: trivial
  • complexity: medium
  • complexity: high

Ecosystem Integrations


License

MIT

Security

If you discover a vulnerability, please review SECURITY.md and report it privately instead of opening a public issue.

About

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 55.0%
  • Rust 32.5%
  • HTML 9.2%
  • JavaScript 1.8%
  • Shell 0.7%
  • Dockerfile 0.4%
  • CSS 0.4%