├── package.json ├── LICENSE └── UltimaToken.sol /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "@openzeppelin/contracts": "^4.9.3" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 ultimasb 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /UltimaToken.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: MIT 2 | pragma solidity ^0.8.4; 3 | 4 | import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; 5 | import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; 6 | import "@openzeppelin/contracts/security/Pausable.sol"; 7 | import "@openzeppelin/contracts/access/Ownable.sol"; 8 | 9 | contract UltimaToken is ERC20, ERC20Burnable, Pausable, Ownable { 10 | constructor() ERC20("ULTIMA", "ULTIMA") { 11 | _mint(owner(), 20000000000); 12 | } 13 | 14 | function decimals() public view virtual override returns (uint8) { 15 | return 6; 16 | } 17 | 18 | function pause() public onlyOwner { 19 | _pause(); 20 | } 21 | 22 | function unpause() public onlyOwner { 23 | _unpause(); 24 | } 25 | 26 | function mint(address to, uint256 amount) public onlyOwner { 27 | _mint(to, amount); 28 | } 29 | 30 | function _beforeTokenTransfer(address from, address to, uint256 amount) 31 | internal 32 | whenNotPaused 33 | override 34 | { 35 | super._beforeTokenTransfer(from, to, amount); 36 | } 37 | } 38 | --------------------------------------------------------------------------------