-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/The-Poolz/BNBPartyFactory …
…into issue-10
- Loading branch information
Showing
10 changed files
with
39 additions
and
55 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
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
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
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 |
---|---|---|
@@ -1,22 +1,21 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | ||
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; | ||
|
||
/// @title ERC20Token | ||
/// @notice This contract is a basic ERC20 token with burnable capabilities, used in the BNB Party system. | ||
contract ERC20Token is ERC20, ERC20Burnable { | ||
/// @notice Constructs the ERC20 token with a name, symbol, and initial supply. | ||
/// @param name The name of the token | ||
/// @param symbol The symbol of the token | ||
/// @param tokenName The name of the token | ||
/// @param tokenSymbol The symbol of the token | ||
/// @param initialAmount The initial amount of tokens to mint to the deployer's address | ||
/// @dev The token name ends with " Party" | ||
constructor( | ||
string memory name, | ||
string memory symbol, | ||
string memory tokenName, | ||
string memory tokenSymbol, | ||
uint256 initialAmount | ||
) ERC20(string(abi.encodePacked(name, " Party")), symbol) { | ||
) ERC20(string(abi.encodePacked(tokenName, " Party")), tokenSymbol) { | ||
_mint(msg.sender, initialAmount); // Mint the initial supply to the deployer's address | ||
} | ||
} |
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,5 +1,5 @@ | ||
{ | ||
"detectors_to_exclude": "solc-version,similar-names", | ||
"filter_paths": "node_modules/@bnb-party,contracts/mock/,contracts/mocks,node_modules/@ironblocks/firewall-consumer/contracts/,node_modules/@poolzfinance/poolz-helper-v2", | ||
"filter_paths": "node_modules/@bnb-party,contracts/mock/,contracts/mocks,node_modules/@ironblocks/firewall-consumer/contracts/,node_modules/@poolzfinance/poolz-helper-v2,node_modules/@openzeppelin/", | ||
"compile_force_framework": "hardhat" | ||
} |