Lux Proposals
← All proposals
LP-0040Draft

LP-040: White-Label DAO Deployment Pattern

Abstract

White-label brands deploying a DAO on Lux infrastructure consume the

audited contracts from @luxfi/standard via Foundry remappings. They

do not fork the DAO + Safe + Quasar-signer source tree. This LP

documents the canonical wrapper pattern, exemplified by @zooai/safe

+ @zooai/vote.

Specification

Contract source — single tree

luxfi/standard is the only authoritative tree for:

Brands MUST NOT copy these files. The previous duplication between

luxfi/standard and luxfi/dao was the bug this LP closes.

Brand wrapper layout

A brand wrapper (zooai/safe, hanzoai/safe, parsdao/safe, …) is a

*pure-config + remappings* package:


<brand>/safe/
├── package.json          # declares @luxfi/standard as peer-dependency
├── foundry.toml          # remappings only — no src
├── remappings.txt        # same remappings outside [profile]
├── contracts/<Brand>Safe.sol  # re-export barrel; no logic
├── config/<brand>.json   # brand colors, RPCs, addresses
└── test/                 # tests via the re-export barrel

The <Brand>Safe.sol barrel exists so downstream apps depend on the

brand wrapper rather than reaching into @luxfi/standard directly.

Reads are decoupled from writes: contract source is one address (in the

luxfi org); brand identity is another (in the brand org).

Frontend wrapper layout

A brand frontend wrapper (zooai/vote, hanzoai/vote, …) consumes the

brand's contract wrapper:


<brand>/vote/
├── package.json          # depends on @<brand>/safe
├── config/<brand>.json   # network → deployed addresses
├── config/index.ts       # resolveAddresses({ chainId })
├── src/                  # branded UI
└── functions/            # Cloudflare Pages functions

Deployment script

Brand deploys reuse luxfi/standard/script/DeployLuxDAO.s.sol directly

or wrap it minimally. There is no DeployZooDAO.s.sol that copies the

logic — the same Foundry script targets a different RPC / chain ID.

Verification gates

Rationale

Reference deployments

Security considerations