Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/layr-labs/zeus-templates
Smart contract template scripts for Zeus, the deploy & upgrade management CLI
https://github.com/layr-labs/zeus-templates
Last synced: 9 days ago
JSON representation
Smart contract template scripts for Zeus, the deploy & upgrade management CLI
- Host: GitHub
- URL: https://github.com/layr-labs/zeus-templates
- Owner: Layr-Labs
- Created: 2024-10-10T20:21:54.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2024-11-04T21:16:42.000Z (10 days ago)
- Last Synced: 2024-11-04T22:23:38.157Z (10 days ago)
- Language: Solidity
- Size: 147 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Zeus Templates
This repo sets up template contracts for [Zeus](https://github.com/Layr-Labs/zeus), the staged web3 deployer + metadata management CLI.
## Usage
The `templates` directory contains all relevant abstract contracts for scripts to inherit.
An example import is `import {EOADeployer} from "zeus-templates/templates/EOADeployer.sol";`
### EOADeployer
A generic script with a `deploy(string memory)` entry function for setting up any number of consecutive deploys.
### MultisigBuilder
A generic script with an `execute(string memory)` entry function for setting up any number of arbitrary calls from a multisig. Uses the `MultiSendCallOnly` contract for batching multiple calls into one transaction.
### OpsTimelockBuilder
A specialized script for the Operations Multisig, allowing for calls to be written for queueing into the Timelock before being sent to the Executor Multisig. See [the multisig governance documentation](https://docs.eigenlayer.xyz/eigenlayer/security/multisig-governance) for more details on EigenLayer's onchain role structure.
## Install via Foundry
```shell
forge install Layr-labs/zeus-templates
```Run `forge install` inside a relevant repo that Zeus is using as a $ZEUS_CONTRACTS repo (e.g. [eigenlayer-contracts](https://github.com/Layr-Labs/eigenlayer-contracts)).