Skip to content

Commit

Permalink
chore: update dependencies (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
xorsal authored Nov 18, 2024
1 parent 3534df6 commit 64ecc28
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 46 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"package.json": "sort-package-json"
},
"dependencies": {
"@defi-wonderland/prophet-core": "0.0.0-8bb062e0",
"@defi-wonderland/prophet-modules": "0.0.0-86078350"
"@defi-wonderland/prophet-core": "0.0.0-819e5fe9",
"@defi-wonderland/prophet-modules": "0.0.0-022dfec8"
},
"devDependencies": {
"@commitlint/cli": "19.3.0",
Expand Down
5 changes: 2 additions & 3 deletions src/contracts/CouncilArbitrator.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.26;

import {IAccessController} from '@defi-wonderland/prophet-core/solidity/interfaces/IAccessController.sol';
import {IAccessController} from '@defi-wonderland/prophet-core/solidity/interfaces/access/IAccessController.sol';
import {ValidatorLib} from '@defi-wonderland/prophet-core/solidity/libraries/ValidatorLib.sol';
import {IArbitrator} from '@defi-wonderland/prophet-modules/solidity/interfaces/IArbitrator.sol';

Expand Down Expand Up @@ -49,8 +49,7 @@ contract CouncilArbitrator is ICouncilArbitrator {
function resolve(
IOracle.Request calldata _request,
IOracle.Response calldata _response,
IOracle.Dispute calldata _dispute,
IAccessController.AccessControl calldata _accessControl
IOracle.Dispute calldata _dispute
) external onlyArbitratorModule returns (bytes memory /* _data */ ) {
bytes32 _disputeId = _dispute._getId();

Expand Down
2 changes: 1 addition & 1 deletion src/contracts/EBOAccessModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ contract EBOAccessModule is IEBOAccessModule, Module {
_setHorizonAccountingExtension(_horizonAccountingExtension);
}

/// @inheritdoc IEBOAccessModule
/// @inheritdoc IAccessModule
function decodeAccessControlParameters(bytes calldata _data)
public
pure
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/EBOFinalityModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity 0.8.26;

import {IModule, Module} from '@defi-wonderland/prophet-core/solidity/contracts/Module.sol';
import {ModuleAccessController} from
'@defi-wonderland/prophet-modules/solidity/contracts/modules/access/ModuleAccessController.sol';
'@defi-wonderland/prophet-core/solidity/contracts/access/ModuleAccessController.sol';

import {EnumerableSet} from '@openzeppelin/contracts/utils/structs/EnumerableSet.sol';

Expand Down
2 changes: 1 addition & 1 deletion src/contracts/EBORequestCreator.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.26;

import {IAccessController} from '@defi-wonderland/prophet-core/solidity/interfaces/IAccessController.sol';
import {IAccessController} from '@defi-wonderland/prophet-core/solidity/interfaces/access/IAccessController.sol';
import {EnumerableSet} from '@openzeppelin/contracts/utils/structs/EnumerableSet.sol';

import {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/EBORequestModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity 0.8.26;

import {IModule, Module} from '@defi-wonderland/prophet-core/solidity/contracts/Module.sol';
import {ModuleAccessController} from
'@defi-wonderland/prophet-modules/solidity/contracts/modules/access/ModuleAccessController.sol';
'@defi-wonderland/prophet-core/solidity/contracts/access/ModuleAccessController.sol';
import {EnumerableSet} from '@openzeppelin/contracts/utils/structs/EnumerableSet.sol';

import {IArbitrable, IEBORequestCreator, IEBORequestModule, IOracle} from 'interfaces/IEBORequestModule.sol';
Expand Down
8 changes: 4 additions & 4 deletions test/integration/arbitrum/BondEscalation.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ contract IntegrationBondEscalation is IntegrationBase {
_pledgeForDispute(_requestId, _disputeId);

// Do not pass the dispute deadline nor the tying buffer
vm.warp(_disputeCreatedAt + disputeDeadline);
vm.warp(_disputeCreatedAt + disputeDeadline - 1);

// Thaw some tokens
uint256 _tokensToThaw = disputeBondSize * (maxNumberOfEscalations - 1) + 1;
Expand Down Expand Up @@ -101,7 +101,7 @@ contract IntegrationBondEscalation is IntegrationBase {
_pledgeAgainstDispute(_requestId, _disputeId);

// Do not pass the dispute deadline nor the tying buffer
vm.warp(_disputeCreatedAt + disputeDeadline);
vm.warp(_disputeCreatedAt + disputeDeadline - 1);

// Thaw some tokens
uint256 _tokensToThaw = disputeBondSize * (maxNumberOfEscalations - 1) + 1;
Expand Down Expand Up @@ -226,7 +226,7 @@ contract IntegrationBondEscalation is IntegrationBase {
_settleBondEscalation(_requestId, _responseId, _disputeId);

// Do not pass the dispute deadline nor the tying buffer
vm.warp(_disputeCreatedAt + disputeDeadline);
vm.warp(_disputeCreatedAt + disputeDeadline - 1);

// Pledge against the dispute
_pledgeAgainstDispute(_requestId, _disputeId);
Expand Down Expand Up @@ -291,7 +291,7 @@ contract IntegrationBondEscalation is IntegrationBase {
_settleBondEscalation(_requestId, _responseId, _disputeId);

// Do not pass the dispute deadline nor the tying buffer
vm.warp(_disputeCreatedAt + disputeDeadline);
vm.warp(_disputeCreatedAt + disputeDeadline - 1);

// Pledge for the dispute
_pledgeForDispute(_requestId, _disputeId);
Expand Down
2 changes: 1 addition & 1 deletion test/integration/arbitrum/DisputeResponse.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ contract IntegrationDisputeResponse is IntegrationBase {
_disputeResponse(_requestId, _responseId);

// Do not pass the dispute window
vm.warp(_responseCreation + disputeDisputeWindow);
vm.warp(_responseCreation + disputeDisputeWindow - 1);

// Thaw some tokens
_thaw(_disputer, 1);
Expand Down
2 changes: 1 addition & 1 deletion test/integration/arbitrum/IntegrationBase.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.26;

import {IAccessController} from '@defi-wonderland/prophet-core/solidity/interfaces/IAccessController.sol';
import {IAccessController} from '@defi-wonderland/prophet-core/solidity/interfaces/access/IAccessController.sol';
import {ValidatorLib} from '@defi-wonderland/prophet-core/solidity/libraries/ValidatorLib.sol';

import {_ARBITRUM_SEPOLIA_GOVERNOR} from 'script/Constants.sol';
Expand Down
8 changes: 4 additions & 4 deletions test/unit/CouncilArbitrator.t.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.26;

import {IAccessController} from '@defi-wonderland/prophet-core/solidity/interfaces/IAccessController.sol';
import {IValidator} from '@defi-wonderland/prophet-core/solidity/interfaces/IValidator.sol';
import {IAccessController} from '@defi-wonderland/prophet-core/solidity/interfaces/access/IAccessController.sol';

import {Helpers} from 'test/utils/Helpers.sol';

Expand Down Expand Up @@ -118,11 +118,11 @@ contract CouncilArbitrator_Unit_Resolve is CouncilArbitrator_Unit_BaseTest {
changePrank(_caller);

vm.expectRevert(ICouncilArbitrator.CouncilArbitrator_OnlyArbitratorModule.selector);
councilArbitrator.resolve(_params.request, _params.response, _params.dispute, _createAccessControl());
councilArbitrator.resolve(_params.request, _params.response, _params.dispute);
}

function test_setResolutions(ICouncilArbitrator.ResolutionParameters calldata _params) public happyPath {
councilArbitrator.resolve(_params.request, _params.response, _params.dispute, _createAccessControl());
councilArbitrator.resolve(_params.request, _params.response, _params.dispute);

bytes32 _disputeId = _params.dispute._getId();
(IOracle.Request memory _request, IOracle.Response memory _response, IOracle.Dispute memory _dispute) =
Expand All @@ -138,7 +138,7 @@ contract CouncilArbitrator_Unit_Resolve is CouncilArbitrator_Unit_BaseTest {

vm.expectEmit();
emit ResolutionStarted(_disputeId, _params.request, _params.response, _params.dispute);
councilArbitrator.resolve(_params.request, _params.response, _params.dispute, _createAccessControl());
councilArbitrator.resolve(_params.request, _params.response, _params.dispute);
}
}

Expand Down
16 changes: 8 additions & 8 deletions test/unit/HorizonAccountingExtension.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -830,10 +830,10 @@ contract HorizonAccountingExtension_Unit_ClaimEscalationReward is HorizonAccount
vm.assume(_slashedUser != _notSlashedUser);

// bound input parameters
_pledgesForDispute = bound(_pledgesForDispute, 1, type(uint64).max);
_pledgesAgainstDispute = bound(_pledgesAgainstDispute, 1, type(uint64).max);
_amount = bound(_amount, type(uint16).max, type(uint64).max);
_bondSize = bound(_bondSize, 1, type(uint16).max);
_pledgesForDispute = bound(_pledgesForDispute, 1, type(uint64).max - 1);
_pledgesAgainstDispute = bound(_pledgesAgainstDispute, 1, type(uint64).max - 1);
_amount = bound(_amount, type(uint16).max, type(uint64).max - 1);
_bondSize = bound(_bondSize, 1, type(uint16).max - 1);

_setUpHappyPath(_pledgesForDispute, _pledgesAgainstDispute, _bondSize, _amount);

Expand Down Expand Up @@ -908,10 +908,10 @@ contract HorizonAccountingExtension_Unit_ClaimEscalationReward is HorizonAccount
vm.assume(_pledger != _slashedUser);
vm.assume(_slashedUser != _notSlashedUser);
// bound input parameters
_pledgesForDispute = bound(_pledgesForDispute, 1, type(uint64).max);
_pledgesAgainstDispute = bound(_pledgesAgainstDispute, 1, type(uint64).max);
_amount = bound(_amount, type(uint16).max, type(uint64).max);
_bondSize = bound(_bondSize, 1, type(uint16).max);
_pledgesForDispute = bound(_pledgesForDispute, 1, type(uint64).max - 1);
_pledgesAgainstDispute = bound(_pledgesAgainstDispute, 1, type(uint64).max - 1);
_amount = bound(_amount, type(uint16).max, type(uint64).max - 1);
_bondSize = bound(_bondSize, 1, type(uint16).max - 1);

_setUpHappyPath(_pledgesForDispute, _pledgesAgainstDispute, _bondSize, _amount);

Expand Down
2 changes: 1 addition & 1 deletion test/utils/Helpers.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.19;

import {IAccessController} from '@defi-wonderland/prophet-core/solidity/interfaces/IAccessController.sol';
import {IOracle} from '@defi-wonderland/prophet-core/solidity/interfaces/IOracle.sol';
import {IAccessController} from '@defi-wonderland/prophet-core/solidity/interfaces/access/IAccessController.sol';

import 'forge-std/Test.sol';

Expand Down
36 changes: 18 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -180,22 +180,22 @@
solc-typed-ast "18.1.2"
yargs "17.7.2"

"@defi-wonderland/[email protected]823459fc":
version "0.0.0-823459fc"
resolved "https://registry.yarnpkg.com/@defi-wonderland/prophet-core/-/prophet-core-0.0.0-823459fc.tgz#a48f7b35899968468f37f5c9eb2c67a1c8a823ff"
integrity sha512-lqTFlKFUwt4yjBGnSUJf9PwNQE6MP4KJHUSCov2+yxJCkKHKzFlYQ7M25dAdebiwa6Hfd+XHQfLx1bzff6mM6Q==

"@defi-wonderland/[email protected]8bb062e0":
version "0.0.0-8bb062e0"
resolved "https://registry.yarnpkg.com/@defi-wonderland/prophet-core/-/prophet-core-0.0.0-8bb062e0.tgz#6678171885de8ddd484b7f51a8a8d6dca6ab9ab3"
integrity sha512-jjMly9ZjPHxxiBEpU6+OGNhyII+eDYYTVifTttX59uZTdmDsPSue818pkjr29YJJ62zGc0XEEe5Yzrwuirs5Tw==

"@defi-wonderland/[email protected]86078350":
version "0.0.0-86078350"
resolved "https://registry.yarnpkg.com/@defi-wonderland/prophet-modules/-/prophet-modules-0.0.0-86078350.tgz#902877ef3f6585cd1a61066f0989ed05ce2e5b89"
integrity sha512-vAooZ+EXiounXQ3fiTya9yslFk7THerCxnQGQFEtJCIJU3hadbr8AzZOr+uRyMljs5f2/62YBeZC64RAxj9S1w==
dependencies:
"@defi-wonderland/prophet-core" "0.0.0-823459fc"
"@defi-wonderland/[email protected]819e5fe9":
version "0.0.0-819e5fe9"
resolved "https://registry.yarnpkg.com/@defi-wonderland/prophet-core/-/prophet-core-0.0.0-819e5fe9.tgz#bd165f5cec99ae23bfd8c7f2f2cc3fa018abc676"
integrity sha512-K+zc0woc2mbZ6kqtO7ix/TJp7Y4YuCyz+l1XJL0VumsQkw7nJ5pLXOaV8Ss4wOyxu+P6vQ4aJpfY2yMHjQ+Hsw==

"@defi-wonderland/[email protected]c80cc1e9":
version "0.0.0-c80cc1e9"
resolved "https://registry.yarnpkg.com/@defi-wonderland/prophet-core/-/prophet-core-0.0.0-c80cc1e9.tgz#3586b8bcde26bd670384155f187888745af1e000"
integrity sha512-CU/IRGdOPoHDBiNv3XdimdJqx8Tl/4o3JrkYBKVfx+VW58k9e5i9XquAk+NqDiGZx18TMFZwskkt6fA5cMAQHQ==

"@defi-wonderland/[email protected]022dfec8":
version "0.0.0-022dfec8"
resolved "https://registry.yarnpkg.com/@defi-wonderland/prophet-modules/-/prophet-modules-0.0.0-022dfec8.tgz#eade840c8b66689912f7effe1854add6c59113b8"
integrity sha512-TAsvkfkCyrk94jJ8YcV3HQtXX0jqiu/ufTq79PyUIpYWxTP09b//H4QPs5iE3xKcawSN2wUbmscNzJsH4/t/kw==
dependencies:
"@defi-wonderland/prophet-core" "0.0.0-c80cc1e9"
"@openzeppelin/contracts" "4.9.5"
solmate "https://github.com/transmissions11/solmate.git#bfc9c25865a274a7827fea5abf6e4fb64fc64e6c"

Expand Down Expand Up @@ -1684,9 +1684,9 @@ [email protected]:
optionalDependencies:
prettier "^2.8.3"

"solmate@https://github.com/transmissions11/solmate.git#bfc9c25865a274a7827fea5abf6e4fb64fc64e6c":
"solmate@git+https://github.com/transmissions11/solmate.git#bfc9c25865a274a7827fea5abf6e4fb64fc64e6c":
version "6.1.0"
resolved "https://github.com/transmissions11/solmate.git#bfc9c25865a274a7827fea5abf6e4fb64fc64e6c"
resolved "git+https://github.com/transmissions11/solmate.git#bfc9c25865a274a7827fea5abf6e4fb64fc64e6c"

sort-object-keys@^1.1.3:
version "1.1.3"
Expand Down

0 comments on commit 64ecc28

Please sign in to comment.