-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathSetNetworkLimit.s.sol
More file actions
32 lines (26 loc) · 1.25 KB
/
SetNetworkLimit.s.sol
File metadata and controls
32 lines (26 loc) · 1.25 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
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./base/SetNetworkLimitBase.s.sol";
import {Subnetwork} from "../../src/contracts/libraries/Subnetwork.sol";
// forge script script/actions/SetNetworkLimit.s.sol:SetNetworkLimitScript --rpc-url=RPC --private-key PRIVATE_KEY --broadcast
// forge script script/actions/SetNetworkLimit.s.sol:SetNetworkLimitScript --rpc-url=RPC -—sender MULTISIG_ADDRESS —-unlocked
contract SetNetworkLimitScript is SetNetworkLimitBaseScript {
using Subnetwork for address;
// Configuration constants - UPDATE THESE BEFORE EXECUTING
// Address of the Vault
address constant VAULT = 0x450a90fdEa8B87a6448Ca1C87c88Ff65676aC45b;
// Address of the Network to set the network limit for
address constant NETWORK = 0x759D4335cb712aa188935C2bD3Aa6D205aC61305;
// Subnetwork Identifier
uint96 constant IDENTIFIER = 0;
// Network limit value to set
uint256 constant LIMIT = 0;
function run() public {
(bytes memory data, address target) = runBase(VAULT, NETWORK.subnetwork(IDENTIFIER), LIMIT);
Logs.log(
string.concat(
"SetNetworkLimit data:", "\n data:", vm.toString(data), "\n target:", vm.toString(target)
)
);
}
}