-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove Adminable logic from this repo refactor: remove Batch logic from this repo refactor: remove NoDelegateCall logic from this repo refactor: use BaseScript from evm-utils build: update evm utils test: use evm utils common tests test: remove mocks refactor: remove no longer needed errors
- Loading branch information
1 parent
7725fde
commit 21aaee2
Showing
50 changed files
with
124 additions
and
1,020 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
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,5 +1,6 @@ | ||
@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/ | ||
@prb/math/=node_modules/@prb/math/ | ||
@sablier/evm-utils/=node_modules/evm-utils/ | ||
forge-std/=node_modules/forge-std/ | ||
solady/=node_modules/solady/ | ||
solarray/=node_modules/solarray/ |
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
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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// solhint-disable no-console | ||
pragma solidity >=0.8.22 <0.9.0; | ||
|
||
import { BaseScript } from "@sablier/evm-utils/script/Base.s.sol"; | ||
|
||
abstract contract MaxCountScript is BaseScript { | ||
/// @dev The default value for `maxCountMap`. | ||
uint256 internal constant DEFAULT_MAX_COUNT = 500; | ||
|
||
/// @dev Maximum count for segments and tranches mapped by the chain Id. | ||
mapping(uint256 chainId => uint256 count) internal maxCountMap; | ||
|
||
/// @dev Updates max values for segments and tranches. Values can be updated using the `update-counts.sh` script. | ||
function populateMaxCountMap() internal { | ||
// forgefmt: disable-start | ||
|
||
// Arbitrum chain ID | ||
maxCountMap[42161] = 1090; | ||
|
||
// Avalanche chain ID. | ||
maxCountMap[43114] = 490; | ||
|
||
// Base chain ID. | ||
maxCountMap[8453] = 2030; | ||
|
||
// Blast chain ID. | ||
maxCountMap[81457] = 1020; | ||
|
||
// BNB chain ID. | ||
maxCountMap[56] = 4460; | ||
|
||
// Ethereum chain ID. | ||
maxCountMap[1] = 1020; | ||
|
||
// Gnosis chain ID. | ||
maxCountMap[100] = 560; | ||
|
||
// Optimism chain ID. | ||
maxCountMap[10] = 1020; | ||
|
||
// Polygon chain ID. | ||
maxCountMap[137] = 1020; | ||
|
||
// Scroll chain ID. | ||
maxCountMap[534352] = 320; | ||
|
||
// Sepolia chain ID. | ||
maxCountMap[11155111] = 1020; | ||
|
||
// forgefmt: disable-end | ||
} | ||
} |
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
Oops, something went wrong.