-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #296 from chainbound/lore/feat/holesky-launch
Holesky Launch
- Loading branch information
Showing
127 changed files
with
13,148 additions
and
1,558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Stage 1: Base compiler image with necessary dependencies | ||
FROM rust:1.81.0-slim-bullseye AS base | ||
|
||
# Install cargo-chef for dependency caching | ||
RUN cargo install cargo-chef | ||
|
||
# Set the working directory to /app | ||
WORKDIR /app | ||
|
||
# Stage 2: Planner (generating the recipe) | ||
FROM base AS planner | ||
|
||
# Copy only Cargo files to cache dependencies | ||
COPY Cargo.toml Cargo.lock ./ | ||
|
||
# Copy the main.rs file to allow cargo do detect a binary | ||
COPY src/main.rs ./src/main.rs | ||
|
||
# Prepare the recipe for caching dependencies (Cargo.toml/Cargo.lock) | ||
RUN cargo chef prepare --recipe-path recipe.json | ||
|
||
# Stage 3: Builder with necessary dependencies for OpenSSL | ||
FROM base AS builder | ||
|
||
# Install required dependencies for building Rust projects (OpenSSL, pkg-config) | ||
RUN apt-get update && apt-get install -y \ | ||
pkg-config \ | ||
libssl-dev \ | ||
build-essential \ | ||
protobuf-compiler | ||
|
||
# Copy the generated recipe from the planner stage | ||
COPY --from=planner /app/recipe.json recipe.json | ||
|
||
# Cache the dependencies using the cargo-chef recipe | ||
RUN cargo chef cook --release --recipe-path recipe.json | ||
|
||
# Copy the source code and build the project | ||
COPY . . | ||
RUN cargo build --release | ||
|
||
# Stage 4: Final runtime image (lean image) | ||
FROM debian:bullseye-slim AS runtime | ||
|
||
# Set the working directory for the final container | ||
WORKDIR /usr/local/bin | ||
|
||
# Install necessary runtime dependencies (OpenSSL and CA certificates) | ||
RUN apt-get update && apt-get install -y \ | ||
libssl-dev \ | ||
ca-certificates \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy the compiled binary from the builder stage | ||
COPY --from=builder /app/target/release/bolt /usr/local/bin/bolt | ||
|
||
# Define the entrypoint for the container | ||
ENTRYPOINT ["/usr/local/bin/bolt"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[toolchain] | ||
channel = "1.81.0" | ||
profile = "default" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ The values of these parameters can also be found in [`parameters.json`](./config | |
|
||
## Validator Registration: `BoltValidators` | ||
|
||
The [`BoltValidators`](./src/contracts/BoltValidatorsV1.sol) contract is the only point of entry for | ||
The [`BoltValidators`](./src/contracts/BoltValidatorsV2.sol) contract is the only point of entry for | ||
validators to signal their intent to participate in Bolt Protocol and authenticate with their BLS private key. | ||
|
||
The registration process includes the following steps: | ||
|
@@ -76,7 +76,7 @@ will allow us to test the registration flow in a controlled environment. | |
|
||
## Bolt Network Entrypoint: `BoltManager` | ||
|
||
The [`BoltManager`](./src/contracts/BoltManagerV1.sol) contract is a crucial component of Bolt that | ||
The [`BoltManager`](./src/contracts/BoltManagerV2.sol) contract is a crucial component of Bolt that | ||
integrates with restaking ecosystems Symbiotic and Eigenlayer. It manages the registration and | ||
coordination of validators, operators, and vaults within the Bolt network. | ||
|
||
|
@@ -156,10 +156,10 @@ request is valid according to Bolt Protocol rules. --> | |
| Name | Address | Notes | | ||
| ---------------------- | -------------------- | ----------------------- | | ||
| [`BoltParametersV1`](./src/contracts/BoltParametersV1.sol) | [0x20d1cf3A5BD5928dB3118b2CfEF54FDF9fda5c12](https://holesky.etherscan.io/address/0x20d1cf3A5BD5928dB3118b2CfEF54FDF9fda5c12) | Proxy: [`[email protected]`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v5.0/contracts/proxy/ERC1967/ERC1967Proxy.sol) | | ||
| [`BoltValidatorsV1`](./src/contracts/BoltValidatorsV1.sol) | [0x47D2DC1DE1eFEFA5e6944402f2eda3981D36a9c8](https://holesky.etherscan.io/address/0x47D2DC1DE1eFEFA5e6944402f2eda3981D36a9c8) | Proxy: [`[email protected]`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v5.0/contracts/proxy/ERC1967/ERC1967Proxy.sol) | | ||
| [`BoltManagerV1`](./src/contracts/BoltManagerV1.sol) | [0x440202829b493F9FF43E730EB5e8379EEa3678CF](https://holesky.etherscan.io/address/0x440202829b493F9FF43E730EB5e8379EEa3678CF) | Proxy: [`[email protected]`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v5.0/contracts/proxy/ERC1967/ERC1967Proxy.sol) | | ||
| [`BoltEigenLayerMiddlewareV1`](./src/contracts/BoltEigenLayerMiddlewareV1.sol) | [0xa632a3e652110Bb2901D5cE390685E6a9838Ca04](https://holesky.etherscan.io/address/0xa632a3e652110Bb2901D5cE390685E6a9838Ca04) | Proxy: [`[email protected]`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v5.0/contracts/proxy/ERC1967/ERC1967Proxy.sol) | | ||
| [`BoltSymbioticMiddlewareV1`](./src/contracts/BoltSymbioticMiddlewareV1.sol) | [0x04f40d9CaE475E5BaA462acE53E5c58A0DD8D8e8](https://holesky.etherscan.io/address/0x04f40d9CaE475E5BaA462acE53E5c58A0DD8D8e8) | Proxy: [`[email protected]`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v5.0/contracts/proxy/ERC1967/ERC1967Proxy.sol) | | ||
| [`BoltValidatorsV2`](./src/contracts/BoltValidatorsV2.sol) | [0x47D2DC1DE1eFEFA5e6944402f2eda3981D36a9c8](https://holesky.etherscan.io/address/0x47D2DC1DE1eFEFA5e6944402f2eda3981D36a9c8) | Proxy: [`[email protected]`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v5.0/contracts/proxy/ERC1967/ERC1967Proxy.sol) | | ||
| [`BoltManagerV2`](./src/contracts/BoltManagerV2.sol) | [0x440202829b493F9FF43E730EB5e8379EEa3678CF](https://holesky.etherscan.io/address/0x440202829b493F9FF43E730EB5e8379EEa3678CF) | Proxy: [`[email protected]`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v5.0/contracts/proxy/ERC1967/ERC1967Proxy.sol) | | ||
| [`BoltEigenLayerMiddlewareV2`](./src/contracts/BoltEigenLayerMiddlewareV2.sol) | [0xa632a3e652110Bb2901D5cE390685E6a9838Ca04](https://holesky.etherscan.io/address/0xa632a3e652110Bb2901D5cE390685E6a9838Ca04) | Proxy: [`[email protected]`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v5.0/contracts/proxy/ERC1967/ERC1967Proxy.sol) | | ||
| [`BoltSymbioticMiddlewareV2`](./src/contracts/BoltSymbioticMiddlewareV2.sol) | [0x04f40d9CaE475E5BaA462acE53E5c58A0DD8D8e8](https://holesky.etherscan.io/address/0x04f40d9CaE475E5BaA462acE53E5c58A0DD8D8e8) | Proxy: [`[email protected]`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v5.0/contracts/proxy/ERC1967/ERC1967Proxy.sol) | | ||
|
||
## Testing | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
{ | ||
"bolt": { | ||
"validators": "0x47D2DC1DE1eFEFA5e6944402f2eda3981D36a9c8", | ||
"parameters": "0x20d1cf3A5BD5928dB3118b2CfEF54FDF9fda5c12", | ||
"manager": "0x440202829b493F9FF43E730EB5e8379EEa3678CF" | ||
}, | ||
"symbiotic": { | ||
"network": "0xb017002D8024d8c8870A5CECeFCc63887650D2a4", | ||
"operatorRegistry": "0x6F75a4ffF97326A00e52662d82EA4FdE86a2C548", | ||
"networkOptInService": "0x58973d16FFA900D11fC22e5e2B6840d9f7e13401", | ||
"vaultFactory": "0x407A039D94948484D356eFB765b3c74382A050B4", | ||
"vaultConfigurator": "0xD2191FE92987171691d552C219b8caEf186eb9cA", | ||
"networkRegistry": "0x7d03b7343BF8d5cEC7C0C27ecE084a20113D15C9", | ||
"networkMiddlewareService": "0x62a1ddfD86b4c1636759d9286D3A0EC722D086e3", | ||
"middleware": "0x04f40d9CaE475E5BaA462acE53E5c58A0DD8D8e8", | ||
"supportedVaults": [ | ||
"0xc79c533a77691641d52ebD5e87E51dCbCaeb0D78", | ||
"0xe5708788c90e971f73D928b7c5A8FD09137010e0", | ||
"0x11c5b9A9cd8269580aDDbeE38857eE451c1CFacd", | ||
"0xC56Ba584929c6f381744fA2d7a028fA927817f2b", | ||
"0xcDdeFfcD2bA579B8801af1d603812fF64c301462", | ||
"0x91e84e12Bb65576C0a6614c5E6EbbB2eA595E10f" | ||
] | ||
}, | ||
"eigenLayer": { | ||
"avsDirectory": "0x055733000064333CaDDbC92763c58BF0192fFeBf", | ||
"delegationManager": "0xA44151489861Fe9e3055d95adC98FbD462B948e7", | ||
"strategyManager": "0xdfB5f6CE42aAA7830E94ECFCcAd411beF4d4D5b6", | ||
"middleware": "0xa632a3e652110Bb2901D5cE390685E6a9838Ca04", | ||
"supportedStrategies": [ | ||
"0x7D704507b76571a51d9caE8AdDAbBFd0ba0e63d3", | ||
"0x3A8fBdf9e77DFc25d09741f51d3E181b25d0c4E0", | ||
"0x80528D6e9A2BAbFc766965E0E26d5aB08D9CFaF9", | ||
"0x70EB4D3c164a6B4A5f908D4FBb5a9cAfFb66bAB6", | ||
"0xaccc5A86732BE85b5012e8614AF237801636F8e5" | ||
] | ||
} | ||
} | ||
"bolt": { | ||
"validators": "0x47D2DC1DE1eFEFA5e6944402f2eda3981D36a9c8", | ||
"parameters": "0x20d1cf3A5BD5928dB3118b2CfEF54FDF9fda5c12", | ||
"manager": "0x440202829b493F9FF43E730EB5e8379EEa3678CF" | ||
}, | ||
"symbiotic": { | ||
"network": "0xb017002D8024d8c8870A5CECeFCc63887650D2a4", | ||
"operatorRegistry": "0x6F75a4ffF97326A00e52662d82EA4FdE86a2C548", | ||
"networkOptInService": "0x58973d16FFA900D11fC22e5e2B6840d9f7e13401", | ||
"vaultFactory": "0x407A039D94948484D356eFB765b3c74382A050B4", | ||
"vaultConfigurator": "0xD2191FE92987171691d552C219b8caEf186eb9cA", | ||
"networkRegistry": "0x7d03b7343BF8d5cEC7C0C27ecE084a20113D15C9", | ||
"networkMiddlewareService": "0x62a1ddfD86b4c1636759d9286D3A0EC722D086e3", | ||
"middleware": "0x04f40d9CaE475E5BaA462acE53E5c58A0DD8D8e8", | ||
"supportedVaults": [ | ||
"0xc79c533a77691641d52ebD5e87E51dCbCaeb0D78", | ||
"0xe5708788c90e971f73D928b7c5A8FD09137010e0", | ||
"0x11c5b9A9cd8269580aDDbeE38857eE451c1CFacd", | ||
"0xC56Ba584929c6f381744fA2d7a028fA927817f2b", | ||
"0xcDdeFfcD2bA579B8801af1d603812fF64c301462", | ||
"0x91e84e12Bb65576C0a6614c5E6EbbB2eA595E10f" | ||
] | ||
}, | ||
"eigenLayer": { | ||
"avsDirectory": "0x055733000064333CaDDbC92763c58BF0192fFeBf", | ||
"delegationManager": "0xA44151489861Fe9e3055d95adC98FbD462B948e7", | ||
"strategyManager": "0xdfB5f6CE42aAA7830E94ECFCcAd411beF4d4D5b6", | ||
"middleware": "0xa632a3e652110Bb2901D5cE390685E6a9838Ca04", | ||
"supportedStrategies": [ | ||
"0x7D704507b76571a51d9caE8AdDAbBFd0ba0e63d3", | ||
"0x3A8fBdf9e77DFc25d09741f51d3E181b25d0c4E0", | ||
"0x80528D6e9A2BAbFc766965E0E26d5aB08D9CFaF9", | ||
"0x70EB4D3c164a6B4A5f908D4FBb5a9cAfFb66bAB6", | ||
"0xaccc5A86732BE85b5012e8614AF237801636F8e5" | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
bolt-contracts/config/holesky/operators/eigenlayer/depositIntoStrategy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"strategy": "", | ||
"token": "", | ||
"amount": 0 | ||
} |
5 changes: 5 additions & 0 deletions
5
bolt-contracts/config/holesky/operators/eigenlayer/registerIntoBoltAVS.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"rpc": "<scheme>://<host>:<port>", | ||
"salt": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"expiry": "0x1000000000000000000000000000000000000000000000000000000000000000" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.