diff --git a/bolt-contracts/script/holesky/operators/RegisterSymbioticOperator.s.sol b/bolt-contracts/script/holesky/operators/RegisterSymbioticOperator.s.sol index f2728c85b..b5a6d46d8 100644 --- a/bolt-contracts/script/holesky/operators/RegisterSymbioticOperator.s.sol +++ b/bolt-contracts/script/holesky/operators/RegisterSymbioticOperator.s.sol @@ -19,6 +19,7 @@ contract RegisterSymbioticOperator is Script { function S01_registerIntoBolt() public { uint256 operatorSk = vm.envUint("OPERATOR_SK"); + string memory rpc = vm.envString("OPERATOR_RPC"); address operator = vm.addr(operatorSk); @@ -32,10 +33,10 @@ contract RegisterSymbioticOperator is Script { console.log("Registering Symbiotic operator into Bolt"); console.log("Operator address:", operator); - console.log("Operator RPC:", config.rpc); + console.log("Operator RPC:", rpc); vm.startBroadcast(operatorSk); - config.symbioticMiddleware.registerOperator(config.rpc); + config.symbioticMiddleware.registerOperator(rpc); console.log("Successfully registered Symbiotic operator"); vm.stopBroadcast(); diff --git a/testnets/holesky/README.md b/testnets/holesky/README.md index b15e25fc0..154328429 100644 --- a/testnets/holesky/README.md +++ b/testnets/holesky/README.md @@ -519,17 +519,20 @@ The opt-in process requires the following steps: After having deposited collateral into a vault you need to register into Bolt as a Symbiotic operator. We've provided a script to facilitate the -procedure. If you want to use it, please set the operator private key to an -`OPERATOR_SK` environment variable, and then run the following Forge script from -the `bolt-contracts` directory: +procedure. If you want to use it, please follow these steps: -```bash -forge script script/holesky/operators/RegisterSymbioticOperator.s.sol \ - --sig "S01_registerIntoBolt" \ - --rpc-url $HOLESKY_RPC \ - -vvvv \ - --broadcast -``` +1. set the operator private key to the `OPERATOR_SK` environment variable; +2. set the operator RPC URL which supports the Commitments API to the + `OPERATOR_RPC` environment variable; +3. run the following Forge script from the `bolt-contracts` directory: + + ```bash + forge script script/holesky/operators/RegisterSymbioticOperator.s.sol \ + --sig "S01_registerIntoBolt" \ + --rpc-url $HOLESKY_RPC \ + -vvvv \ + --broadcast + ``` To check if your operator is correctly registered, set the operator public key in the `OPERATOR_PK` environment variable and run the following script: