Thanks to visit codestin.com
Credit goes to github.com

Skip to content

w3hc/gov-crosschain

Repository files navigation

Cross-chain Gov

A cross-chain DAO framework that allows synchronization across multiple EVM networks.

Overview

Cross-chain Gov enables DAOs to manage operations across multiple blockchains while maintaining consistent governance parameters, membership, and decisions. The system uses a home chain as the source of truth, with cross-chain proofs to synchronize state changes to foreign chains.

Motivation

Provide a coordination tool that fits the needs of regular users.

Features

  • Synchronization of cross-chain governance parameters
  • Non-transferable membership NFTs with voting capabilities
  • DAO manifesto management across chains
  • Secure proof generation and verification for cross-chain operations

Install

bun i

Build

forge build

Test

forge test

Deploy locally

Run the setup-chains.sh script:

chmod +x setup-chains.sh
./setup-chains.sh

Then deploy the factories:

forge script script/DeployFactories.s.sol --rpc-url local_optimism --broadcast

Change the factories contract addresses in script/DeployDAO.s.sol and deploy your DAO:

forge script script/DeployDAO.s.sol --rpc-url local_optimism --broadcast

Propose:

cast send <GOV_CONTRACT_ADDRESS> \
  "propose(address[],uint256[],bytes[],string)" \
  "[<GOV_CONTRACT_ADDRESS>]" \
  "[0]" \
  "[$(cast calldata "setManifesto(string)" "QmNewManifestoCID")]" \
  "New CID" \
  --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \
  --rpc-url local_optimism

Get proposal ID:

cast call <GOV_CONTRACT_ADDRESS> "proposalIds(uint256)" 0 --rpc-url local_optimism

Support

You can reach out to Julien on Farcaster, Element, Status, Telegram, Twitter, Discord, or LinkedIn.

Credits

I want to thank Paul Razvan Berg for his work on the Foundry template we used.

License

GPL-3.0

built-with-ethereum-w3hc

About

Cross-chain DAO framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published