-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
414c1c0
commit 17653aa
Showing
4 changed files
with
38 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
import "@openzeppelin/contracts/access/AccessControl.sol"; | ||
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | ||
import "@openzeppelin/contracts/access/Ownable.sol"; | ||
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol"; | ||
|
||
contract HBRToken is ERC20, AccessControl { | ||
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); // can use mint / burn methods | ||
contract HBRToken is ERC20Pausable, Ownable { | ||
|
||
constructor(address admin) ERC20("Harbor", "HBR") { | ||
_grantRole(DEFAULT_ADMIN_ROLE, admin); | ||
constructor(address admin) ERC20("Harbor", "HBR") Ownable() { | ||
_transferOwnership(admin); | ||
} | ||
|
||
function mint(address account, uint256 amount) external onlyRole(MINTER_ROLE) { | ||
function mint(address account, uint256 amount) external onlyOwner { | ||
_mint(account, amount); | ||
} | ||
|
||
function burn(address account, uint256 amount) external onlyRole(MINTER_ROLE) { | ||
function burn(address account, uint256 amount) external onlyOwner { | ||
_burn(account, amount); | ||
} | ||
|
||
function pause() external onlyOwner { | ||
_pause(); | ||
} | ||
|
||
function unpause() external onlyOwner { | ||
_unpause(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { ethers } from "hardhat"; | ||
import { ContractNames } from "../../../src"; | ||
import { deployMultisig } from "../../utils/deployMultisig"; | ||
|
||
async function main() { | ||
const [deployer] = await ethers.getSigners(); | ||
|
||
const multisig = await deployMultisig(ContractNames.Ecosystem_LimitedTokenPoolsManagerMultisig, deployer, "eco"); | ||
|
||
} | ||
|
||
if (require.main === module) { | ||
main().catch((error) => { | ||
console.error(error); | ||
process.exitCode = 1; | ||
}); | ||
} | ||
|