Skip to content

Commit a496975

Browse files
authored
Feat(hardhat): Update smart contracts and hardhat scripts (#934)
* feat: updated the contracts * feat: not finished * feat(hardhat): update smart contracts and scripts * refactor: deleted unnecesary file
1 parent dadacb0 commit a496975

25 files changed

+3340
-1494
lines changed

hardhat/contracts/BasicERC20.sol

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity ^0.8.20;
3+
4+
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
5+
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
6+
import { ERC20Burnable } from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
7+
import { ERC20Pausable } from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol";
8+
9+
/**
10+
* This file was generated with Openzeppelin Wizard and later modified.
11+
* GO TO: https://wizard.openzeppelin.com/#erc20
12+
*/
13+
contract BasicERC20 is ERC20, ERC20Burnable, ERC20Pausable, Ownable {
14+
constructor(
15+
string memory name,
16+
string memory symbol,
17+
address initialOwner
18+
) ERC20(name, symbol) Ownable(initialOwner) {}
19+
20+
function pause() external onlyOwner {
21+
_pause();
22+
}
23+
24+
function unpause() external onlyOwner {
25+
_unpause();
26+
}
27+
28+
function mint(address to, uint256 amount) external onlyOwner {
29+
_mint(to, amount);
30+
}
31+
32+
function _update(
33+
address from,
34+
address to,
35+
uint256 value
36+
) internal override(ERC20, ERC20Pausable) {
37+
super._update(from, to, value);
38+
}
39+
}

hardhat/contracts/v2_contracts/Appeals.sol

-225
This file was deleted.

0 commit comments

Comments
 (0)