Skip to content

Commit 4c44609

Browse files
authored
chore: update Horizon configuration file for phase 4 (#1264)
2 parents f3a47ca + eb08fc5 commit 4c44609

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

packages/horizon/ignition/configs/migrate.arbitrumOne.json5

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
"subgraphServiceAddress": "0xb2Bb92d0DE618878E438b55D5846cfecD9301105",
2828

2929
// Must be set for step 4 of the migration
30-
"horizonStakingImplementationAddress": "",
31-
"curationImplementationAddress": "",
32-
"rewardsManagerImplementationAddress": "",
33-
"disputeManagerAddress": "",
30+
"horizonStakingImplementationAddress": "0xaA3359434B534dE9964d4e72bE2782b076a1Eb5A",
31+
"curationImplementationAddress": "0xc4Ce508c8fda35C597CC78e3604261110fc4c957",
32+
"rewardsManagerImplementationAddress": "0xBcD7a231eAB1f4667AAbFdb482026f244bfBf101",
33+
"disputeManagerAddress": "0x2FE023a575449AcB698648eD21276293Fa176f96",
3434

3535
// Global parameters
3636
"maxThawingPeriod": 2419200

packages/horizon/test/unit/escrow/getters.t.sol

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,24 @@ contract GraphEscrowGettersTest is GraphEscrowTest {
3434
uint256 amountDeposit,
3535
uint256 amountThawing,
3636
uint256 amountCollected
37-
) public useGateway useDeposit(amountDeposit) {
38-
vm.assume(amountThawing > 0);
39-
vm.assume(amountDeposit > 0);
40-
vm.assume(amountDeposit >= amountThawing);
41-
vm.assume(amountDeposit >= amountCollected);
42-
vm.assume(amountDeposit - amountCollected < amountThawing);
37+
) public useGateway {
38+
amountThawing = bound(amountThawing, 1, MAX_STAKING_TOKENS);
39+
amountCollected = bound(amountCollected, 1, MAX_STAKING_TOKENS);
40+
41+
// amountDeposit must be:
42+
// - >= amountThawing (so we can thaw that amount)
43+
// - >= amountCollected (so we can collect that amount)
44+
// - < amountThawing + amountCollected (so that after collecting, balance < thawing)
45+
// - <= MAX_STAKING_TOKENS (consistent with other tests)
46+
uint256 minDeposit = amountThawing > amountCollected ? amountThawing : amountCollected;
47+
uint256 maxDeposit = amountThawing + amountCollected - 1;
48+
if (maxDeposit > MAX_STAKING_TOKENS) {
49+
maxDeposit = MAX_STAKING_TOKENS;
50+
}
51+
vm.assume(minDeposit <= maxDeposit);
52+
amountDeposit = bound(amountDeposit, minDeposit, maxDeposit);
53+
54+
_depositTokens(users.verifier, users.indexer, amountDeposit);
4355

4456
// thaw some funds
4557
_thawEscrow(users.verifier, users.indexer, amountThawing);

0 commit comments

Comments
 (0)