Skip to content

Commit

Permalink
Use Lib- prefix for lib.sol:DSNote to prevent conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmcmichael authored and gbalabasquer committed Nov 1, 2019
1 parent 9b5d1ac commit 17be7db
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/cat.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ contract VowLike {
function fess(uint) external;
}

contract Cat is DSNote {
contract Cat is LibNote {
// --- Auth ---
mapping (address => uint) public wards;
function rely(address usr) external note auth { wards[usr] = 1; }
Expand Down
2 changes: 1 addition & 1 deletion src/dai.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pragma solidity 0.5.11;

import "./lib.sol";

contract Dai is DSNote {
contract Dai is LibNote {
// --- Auth ---
mapping (address => uint) public wards;
function rely(address guy) external note auth { wards[guy] = 1; }
Expand Down
2 changes: 1 addition & 1 deletion src/end.sol
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ contract Spotty {
- the number of gems is limited by how big your bag is
*/

contract End is DSNote {
contract End is LibNote {
// --- Auth ---
mapping (address => uint) public wards;
function rely(address guy) external note auth { wards[guy] = 1; }
Expand Down
2 changes: 1 addition & 1 deletion src/flap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ contract GemLike {
- `end` max auction duration
*/

contract Flapper is DSNote {
contract Flapper is LibNote {
// --- Auth ---
mapping (address => uint) public wards;
function rely(address usr) external note auth { wards[usr] = 1; }
Expand Down
2 changes: 1 addition & 1 deletion src/flip.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ contract VatLike {
- `end` max auction duration
*/

contract Flipper is DSNote {
contract Flipper is LibNote {
// --- Auth ---
mapping (address => uint) public wards;
function rely(address usr) external note auth { wards[usr] = 1; }
Expand Down
2 changes: 1 addition & 1 deletion src/flop.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ contract GemLike {
- `end` max auction duration
*/

contract Flopper is DSNote {
contract Flopper is LibNote {
// --- Auth ---
mapping (address => uint) public wards;
function rely(address usr) external note auth { wards[usr] = 1; }
Expand Down
6 changes: 3 additions & 3 deletions src/join.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ contract VatLike {
*/

contract GemJoin is DSNote {
contract GemJoin is LibNote {
// --- Auth ---
mapping (address => uint) public wards;
function rely(address usr) external note auth { wards[usr] = 1; }
Expand Down Expand Up @@ -96,7 +96,7 @@ contract GemJoin is DSNote {
}
}

contract ETHJoin is DSNote {
contract ETHJoin is LibNote {
// --- Auth ---
mapping (address => uint) public wards;
function rely(address usr) external note auth { wards[usr] = 1; }
Expand Down Expand Up @@ -128,7 +128,7 @@ contract ETHJoin is DSNote {
}
}

contract DaiJoin is DSNote {
contract DaiJoin is LibNote {
// --- Auth ---
mapping (address => uint) public wards;
function rely(address usr) external note auth { wards[usr] = 1; }
Expand Down
2 changes: 1 addition & 1 deletion src/jug.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ contract VatLike {
function fold(bytes32,address,int) external;
}

contract Jug is DSNote {
contract Jug is LibNote {
// --- Auth ---
mapping (address => uint) public wards;
function rely(address usr) external note auth { wards[usr] = 1; }
Expand Down
2 changes: 1 addition & 1 deletion src/lib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

pragma solidity 0.5.11;

contract DSNote {
contract LibNote {
event LogNote(
bytes4 indexed sig,
address indexed usr,
Expand Down
2 changes: 1 addition & 1 deletion src/pot.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ contract VatLike {
function suck(address,address,uint256) external;
}

contract Pot is DSNote {
contract Pot is LibNote {
// --- Auth ---
mapping (address => uint) public wards;
function rely(address guy) external note auth { wards[guy] = 1; }
Expand Down
2 changes: 1 addition & 1 deletion src/spot.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ contract PipLike {
function peek() external returns (bytes32, bool);
}

contract Spotter is DSNote {
contract Spotter is LibNote {
// --- Auth ---
mapping (address => uint) public wards;
function rely(address guy) external note auth { wards[guy] = 1; }
Expand Down
2 changes: 1 addition & 1 deletion src/vow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ contract VatLike {
function hope(address) external;
}

contract Vow is DSNote {
contract Vow is LibNote {
// --- Auth ---
mapping (address => uint) public wards;
function rely(address usr) external note auth { require(live == 1); wards[usr] = 1; }
Expand Down

0 comments on commit 17be7db

Please sign in to comment.