-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathSetOperatorNetworkShares.s.sol
More file actions
34 lines (28 loc) · 1.4 KB
/
SetOperatorNetworkShares.s.sol
File metadata and controls
34 lines (28 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./base/SetOperatorNetworkSharesBase.s.sol";
import {Subnetwork} from "../../src/contracts/libraries/Subnetwork.sol";
// forge script script/actions/SetOperatorNetworkShares.s.sol:SetOperatorNetworkSharesScript --rpc-url=RPC --private-key PRIVATE_KEY --broadcast
// forge script script/actions/SetOperatorNetworkShares.s.sol:SetOperatorNetworkSharesScript --rpc-url=RPC -—sender MULTISIG_ADDRESS —-unlocked
contract SetOperatorNetworkSharesScript is SetOperatorNetworkSharesBaseScript {
using Subnetwork for address;
// Configuration constants - UPDATE THESE BEFORE EXECUTING
// Address of the Vault
address constant VAULT = address(0);
// Address of the Network to set the operator network shares for
address constant NETWORK = address(0);
// Subnetwork Identifier
uint96 constant IDENTIFIER = 0;
// Address of the Operator to set the operator network shares for
address constant OPERATOR = address(0);
// Operator-Network-specific shares
uint256 constant SHARES = 0;
function run() public {
(bytes memory data, address target) = runBase(VAULT, NETWORK.subnetwork(IDENTIFIER), OPERATOR, SHARES);
Logs.log(
string.concat(
"SetOperatorNetworkShares data:", "\n data:", vm.toString(data), "\n target:", vm.toString(target)
)
);
}
}