Skip to content

ecohubs-community/ecohubsOS

Repository files navigation

sv

Everything you need to build a Svelte project, powered by sv.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project in the current directory
npx sv create

# create a new project in my-app
npx sv create my-app

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

Safe onboarding roles

This app supports two Safe onboarding modes:

  • Owner (signer): proposes an on-chain addOwner transaction to the configured Safe
  • Proposer: registers the user wallet as a Safe delegate (can propose transactions, cannot confirm/execute)

Configure the default behavior with:

  • SAFE_ONBOARDING_ROLE=owner|proposer
  • SAFE_DELEGATOR_PRIVATE_KEY (recommended): an EOA that can sign delegate registrations

Snapshot voting strategies

Snapshot voting power is determined by the space configuration (strategies + voting validation) and the address that signs the vote.

If you want users who are Safe proposers (not owners) to still vote, ensure your Snapshot space voting power is based on the member wallet (token/NFT/whitelist/etc.), not Safe ownership or “vote as the Safe”.

This repo uses SNAPSHOT_SPACE (default ecohubs.eth) for proposal creation and result reads.

About

Operating System that links all parts of the ecohubs ecosystem for online community collaboration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors