Skip to content

marsfoundation/spark-gov-relay

Repository files navigation

🏛️⚡️ Spark Gov Relay 🏛️⚡️

This repository contains infrastructure necessary to process cross-chain execution of governance proposals.

The codebase uses Foundry as the development framework. In order to run tests, deploy contracts, or perform other operations, use standard Foundry commands.

⚙️ Components

🚦 Executors

Executors serve as admins of the bridged domain instances of the protocol.
They are responsible for storying the queue of proposals passed from the host domain governance and their execution.
They manage bridged domain protocol instance using standard payload pattern.

✍️ Architecture Diagram

Architecture Diagram

🤝 Contribution Guidelines

In order to add governance relay infrastructure for a new domain, perform the following steps:

  1. Go to XChain Helpers repository and complete the process for adding a new domain.
  2. Add a new test file for your domain to the /test directory. Inherit CrosschainTestBase and add tests specific to your domain to the test suite. All of the tests have to pass. Follow linting and naming convention used in other test files.
  3. Use proper labeling for your open PR (always set adequate priority and status)
  4. Get an approving review from at least one of three designated reviewers - @hexonaut, @lucas-manuel or @barrutko
  5. Enjoy governance messages being passed through the bridge to your domain! 🎉

The IP in this repository was assigned to Mars SPC Limited in respect of the MarsOne SP