-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
112 additions
and
172 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
{ | ||
"symbiotic": { | ||
"network": "0xAdFC41729fF447974cE27DdFa358A0f2096c3F39", | ||
"network": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", | ||
"operatorRegistry": "0xAdFC41729fF447974cE27DdFa358A0f2096c3F39", | ||
"networkOptInService": "0xF5AFc9FA3Ca63a07E529DDbB6eae55C665cCa83E", | ||
"vaultFactory": "0x5035c15F3cb4364CF2cF35ca53E3d6FC45FC8899", | ||
"networkRegistry": "0xac5acD8A105C8305fb980734a5AD920b5920106A", | ||
"networkMiddlewareService": "0x683F470440964E353b389391CdDDf8df381C282f", | ||
"networkMiddleware": "" | ||
"networkMiddleware": "0x61B626A562d39439Ab60fCbF19678Dac036D1209" | ||
}, | ||
"eigenLayer": { | ||
"avsDirectory": "0x055733000064333CaDDbC92763c58BF0192fFeBf", | ||
"delegationManager": "0xA44151489861Fe9e3055d95adC98FbD462B948e7", | ||
"strategyManager": "0xdfB5f6CE42aAA7830E94ECFCcAd411beF4d4D5b6" | ||
"strategyManager": "0xdfB5f6CE42aAA7830E94ECFCcAd411beF4d4D5b6", | ||
"networkMiddleware": "0x2575d6D30767149c99589cce743656fA3866ca2e" | ||
} | ||
} |
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,7 @@ | ||
{ | ||
"name": "Bolt Protocol", | ||
"website": "https://boltprotocol.xyz", | ||
"description": "Bolt Protocol enables proposers to make credible commitments about their blocks.", | ||
"logo": "http://boltprotocol.xyz/wp-content/uploads/2024/07/Bolt-Logo.png", | ||
"twitter": "https://twitter.com/boltprotocol_" | ||
} |
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 was deleted.
Oops, something went wrong.
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,31 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.25; | ||
|
||
import {Script, console} from "forge-std/Script.sol"; | ||
|
||
import {BoltEigenLayerMiddlewareV1} from "../../../src/contracts/BoltEigenLayerMiddlewareV1.sol"; | ||
|
||
contract RegisterAVS is Script { | ||
function run() public { | ||
address admin = msg.sender; | ||
console.log("Running with admin address:", admin); | ||
|
||
BoltEigenLayerMiddlewareV1 middleware = BoltEigenLayerMiddlewareV1(readMiddleware()); | ||
|
||
string memory avsURI = "https://boltprotocol.xyz/avs.json"; | ||
console.log("Setting AVS metadata URI to:", avsURI); | ||
|
||
vm.startBroadcast(admin); | ||
|
||
middleware.updateAVSMetadataURI(avsURI); | ||
vm.stopBroadcast(); | ||
} | ||
|
||
function readMiddleware() public view returns (address) { | ||
string memory root = vm.projectRoot(); | ||
string memory path = string.concat(root, "/config/holesky/deployments.json"); | ||
string memory json = vm.readFile(path); | ||
|
||
return vm.parseJsonAddress(json, ".eigenLayer.networkMiddleware"); | ||
} | ||
} |
Oops, something went wrong.