etape3testavantdeploementok
This commit is contained in:
17
tokenizerRendu/code/contracts/FGC42Forge.sol
Normal file
17
tokenizerRendu/code/contracts/FGC42Forge.sol
Normal file
@@ -0,0 +1,17 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.34;
|
||||
|
||||
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
||||
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
|
||||
|
||||
/// @title FGC42Forge — jeton fongible pour BNB Smart Chain Testnet
|
||||
/// @notice Standard **BEP-20** (exigé sur BSC) : même interface que l’ERC-20 sur l’EVM.
|
||||
/// On importe OpenZeppelin `ERC20` ; après déploiement sur BSC, BscScan affiche un token BEP-20.
|
||||
/// Phrase soutenance : « BEP-20 sur la chaîne, implémenté via ERC20 OpenZeppelin. »
|
||||
contract FGC42Forge is ERC20, Ownable {
|
||||
uint256 private constant INITIAL_SUPPLY = 1_000_000 * (10 ** 18);
|
||||
|
||||
constructor() ERC20("FGC42Forge", "FG42") Ownable(msg.sender) {
|
||||
_mint(msg.sender, INITIAL_SUPPLY);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user