Skip to content

Commit

Permalink
Merge pull request #58 from makerdao/managed_gem_join
Browse files Browse the repository at this point in the history
Add managed GemJoin abstract
  • Loading branch information
talbaneth authored Nov 14, 2021
2 parents 2ed3a57 + ee9e7ef commit 24a692b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Interfaces.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ import { FlipAbstract } from "./dss/FlipAbstract.sol";
import { FlipperMomAbstract } from "./dss/FlipperMomAbstract.sol";
import { FlopAbstract } from "./dss/FlopAbstract.sol";
import { GemJoinAbstract } from "./dss/GemJoinAbstract.sol";
import { GemJoinImplementationAbstract } from "./dss/GemJoinImplementationAbstract.sol";
import { GemJoinManagedAbstract } from "./dss/GemJoinManagedAbstract.sol";
import { GetCdpsAbstract } from "./dss/GetCdpsAbstract.sol";
import { IlkRegistryAbstract } from "./dss/IlkRegistryAbstract.sol";
import { JugAbstract } from "./dss/JugAbstract.sol";
Expand Down
17 changes: 17 additions & 0 deletions src/dss/GemJoinManagedAbstract.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity >=0.5.12;

// https://github.com/makerdao/dss-gem-joins/blob/master/src/join-managed.sol
interface GemJoinManagedAbstract {
function wards(address) external view returns (uint256);
function rely(address) external;
function deny(address) external;
function vat() external view returns (address);
function ilk() external view returns (bytes32);
function gem() external view returns (address);
function dec() external view returns (uint256);
function live() external view returns (uint256);
function cage() external;
function join(address, uint256) external;
function exit(address, address, uint256) external;
}
4 changes: 2 additions & 2 deletions src/dss/PotHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ contract PotHelper {

PotAbstract pa;

constructor(address pot) public {
pa = PotAbstract(pot);
constructor(address _pot) public {
pa = PotAbstract(_pot);
}

// https://github.com/makerdao/dss/blob/master/src/pot.sol#L79
Expand Down

0 comments on commit 24a692b

Please sign in to comment.