Skip to content

Commit

Permalink
rftr: send on payments as owner
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Dec 20, 2024
1 parent 4ac8b22 commit ea6fe9b
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions contracts/script/SetUpEigenDA.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,7 @@ contract SetupEigenDA is EigenDADeployer, EigenLayerUtils {
operatorETHAmounts[i] = 5 ether;
}

uint256 clientPrivateKey = 0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcded;

vm.startBroadcast();
_allocate(
IERC20(address(0)),
toArray(vm.addr(clientPrivateKey)),
toArray(5 ether)
);

// Allocate eth to stakers, operators, dispserser clients
_allocate(
IERC20(address(0)),
Expand Down Expand Up @@ -189,14 +181,12 @@ contract SetupEigenDA is EigenDADeployer, EigenLayerUtils {
quorumNumbers: hex"0001",
quorumSplits: hex"3232"
});
address reservedClient = address(0x641691973c98dFe68b07Ee3613E270406285DFE8);
vm.broadcast(msg.sender);
paymentVault.setReservation(reservedClient, reservation);

address clientAddress = address(0x641691973c98dFe68b07Ee3613E270406285DFE8);
vm.startBroadcast(msg.sender);
paymentVault.setReservation(clientAddress, reservation);
// Deposit OnDemand
vm.broadcast(clientPrivateKey);
address ondemandClient = address(uint160(uint256(keccak256(abi.encodePacked(clientPrivateKey)))));
paymentVault.depositOnDemand{value: 0.1 ether}(ondemandClient);
paymentVault.depositOnDemand{value: 0.1 ether}(clientAddress);
vm.stopBroadcast();

// Deposit stakers into EigenLayer and delegate to operators
for (uint256 i = 0; i < stakerPrivateKeys.length; i++) {
Expand Down

0 comments on commit ea6fe9b

Please sign in to comment.