Skip to content

Commit

Permalink
fix: inherit from Validator interface (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJabberwock authored Sep 2, 2024
1 parent e52f8cc commit ef0def0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"package.json": "sort-package-json"
},
"dependencies": {
"@defi-wonderland/prophet-core": "0.0.0-2e39539b",
"@defi-wonderland/prophet-core": "0.0.0-0954a47f",
"@openzeppelin/contracts": "4.9.5",
"solmate": "https://github.com/transmissions11/solmate.git#bfc9c25865a274a7827fea5abf6e4fb64fc64e6c"
},
Expand Down
3 changes: 1 addition & 2 deletions solidity/contracts/extensions/AccountingExtension.sol
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import {Validator} from '@defi-wonderland/prophet-core/solidity/contracts/Validator.sol';
import {IOracle} from '@defi-wonderland/prophet-core/solidity/interfaces/IOracle.sol';
import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import {SafeERC20} from '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import {EnumerableSet} from '@openzeppelin/contracts/utils/structs/EnumerableSet.sol';

import {Validator} from '@defi-wonderland/prophet-core/solidity/contracts/Validator.sol';

import {IAccountingExtension} from '../../interfaces/extensions/IAccountingExtension.sol';

contract AccountingExtension is Validator, IAccountingExtension {
Expand Down
3 changes: 2 additions & 1 deletion solidity/interfaces/extensions/IAccountingExtension.sol
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import {IValidator} from '@defi-wonderland/prophet-core/solidity/interfaces/IValidator.sol';
import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol';

/*
* @title AccountingExtension
* @notice Extension allowing users to deposit and bond funds
* to be used for payments and disputes.
*/
interface IAccountingExtension {
interface IAccountingExtension is IValidator {
/*///////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////*/
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@
dependencies:
"@jridgewell/trace-mapping" "0.3.9"

"@defi-wonderland/[email protected]2e39539b":
version "0.0.0-2e39539b"
resolved "https://registry.yarnpkg.com/@defi-wonderland/prophet-core/-/prophet-core-0.0.0-2e39539b.tgz#dbf01ed05a9af302841123c77e84bc0b3b4a6176"
integrity sha512-EdYpDEO1XeO08uQikhOQ6NzG0LWYxANFk272j4vCyLSJ8kRyJNMv69JJCLcq5kV0B9IzXybmqjreemkZ05z3kQ==
"@defi-wonderland/[email protected]0954a47f":
version "0.0.0-0954a47f"
resolved "https://registry.yarnpkg.com/@defi-wonderland/prophet-core/-/prophet-core-0.0.0-0954a47f.tgz#83124e103738a1d1d33b555ea774acbb90c0c153"
integrity sha512-MFJt7IQAkZys0wsJtFR4kt1x7zB1PMLr+jd40s14tLshlWm/7zrog8pfxUQ4EzYjVGkLKJm8jR8WcrEhCla39Q==

"@defi-wonderland/[email protected]":
version "0.0.0-3e9c8e8b"
Expand Down

0 comments on commit ef0def0

Please sign in to comment.