Skip to content

Commit

Permalink
feat: add remapping
Browse files Browse the repository at this point in the history
  • Loading branch information
SloWayyy committed Jul 18, 2023
1 parent cfbf070 commit 21d01d4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion dao/remappings.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ds-test/=lib/forge-std/lib/ds-test/src/
forge-std/=lib/forge-std/src/
@openzeppelin/=lib/openzeppelin-contracts/
@superfluid-finance/=lib/superfluid-protocol-monorepo/
@superfluid-finance/=lib/superfluid-protocol-monorepo/packages
@custom-supertokens/=custom-supertokens/
13 changes: 7 additions & 6 deletions dao/src/SuperfluidDaoToken.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: AGPLv3
pragma solidity ^0.8.0;

import {SuperTokenBase} from "../custom-supertokens/contracts/base/SuperTokenBase.sol";
import {SuperTokenBase} from "@custom-supertokens/contracts/base/SuperTokenBase.sol";

address constant SUPER_TOKEN_FACTORY = 0x0422689cc4087b6B7280e0a7e7F655200ec86Ae1;
address constant SUPER_TOKEN_FACTORY = 0x94f26B4c8AD12B18c12f38E878618f7664bdcCE2;

contract SuperfluidAdmin {
address private _admin;
Expand All @@ -22,17 +22,18 @@ contract SuperfluidAdmin {
}
}

contract SuperfluidDaoToken is SuperfluidAdmin {
contract SuperfluidDaoToken is SuperTokenBase, SuperfluidAdmin {

constructor() {
_initialize(SUPER_TOKEN_FACTORY, "SuperfluidDaoToken", "SDT");

// _initialize(SUPER_TOKEN_FACTORY, "SuperfluidDaoToken", "SDT");
}

function mint(address to, uint256 amount) public onlyAdmin {
_mint(to, amount);
_mint(to, amount, "");
}

function burn(address to, uint256 amount) public onlyAdmin {
_burn(to, amount);
_burn(to, amount, "");
}
}
2 changes: 1 addition & 1 deletion dao/test/SuperfluidDao.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ contract SuperfluidDaoTest is Test {
Dao.postProposal("Donnez moins d'argent a Isma", 1);
Dao.vote(0, true);
ISuperfluidDao.Proposal memory proposal = Dao.getProposal(0);
vm.warp(proposal.dueDate + 1);
vm.warp(proposal.dueDate + 1);
Dao.executeProposal(0);
vm.stopPrank();
}
Expand Down

0 comments on commit 21d01d4

Please sign in to comment.