test-isol-01 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
pragma solidity ^0.8.0;
|
|
3
3
|
|
|
4
4
|
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
|
5
|
-
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
|
|
6
5
|
|
|
7
|
-
abstract contract BasexERC20 is ERC20
|
|
8
|
-
constructor(string memory name, string memory symbol)
|
|
6
|
+
abstract contract BasexERC20 is ERC20 {
|
|
7
|
+
constructor(string memory name, string memory symbol, uint256 initialSupply)
|
|
9
8
|
ERC20(name, symbol)
|
|
10
|
-
{
|
|
9
|
+
{
|
|
10
|
+
_mint(msg.sender, initialSupply * 10 ** decimals());
|
|
11
|
+
}
|
|
11
12
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
pragma solidity ^0.8.0;
|
|
3
|
+
|
|
4
|
+
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
|
5
|
+
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
|
|
6
|
+
import "@openzeppelin/contracts/access/Ownable.sol";
|
|
7
|
+
|
|
8
|
+
abstract contract KitxERC20 is ERC20, ERC20Burnable, Ownable {
|
|
9
|
+
constructor(string memory name, string memory symbol, uint256 initialSupply)
|
|
10
|
+
ERC20(name, symbol)
|
|
11
|
+
Ownable(msg.sender)
|
|
12
|
+
{
|
|
13
|
+
_mint(msg.sender, initialSupply * 10 ** decimals());
|
|
14
|
+
}
|
|
15
|
+
}
|