creation_sourcecode: {{
    "language": "Solidity",
    "sources": {
      "contracts/MultiTokens/SimpleToken.sol": {
        "content": "// SPDX-License-Identifier: MIT\r\n\r\n/**\r\n * SimpleToken is a simple token contract without cheating\r\n * This contract contains the minimum functions required for the token to operate.\r\n * Read Contract: _decimals, decimals, _name, name, _symbol, symbol, allowance, balanceOf, getOwner, totalSupply, owner.\r\n * Write Contract: transfer, transferFrom, approve, decreaseAllowance, increaseAllowance.\r\n * Write Contract, only for owner: renounceOwnership, transferOwnership.\r\n * Token created using DAppCrypto https://dappcrypto.github.io/\r\n */\r\n\r\n /**\r\n * Important! Always check liquidity lock before investing\r\n * Important! Always check if the token address is available in DAppCrypto https://dappcrypto.github.io/\r\n */\r\n\r\npragma solidity >=0.8.0;\r\n\r\nimport \"./IERC20.sol\";\r\nimport \"./SafeMath.sol\";\r\nimport \"./Ownable.sol\";\r\n\r\ncontract SimpleToken is Ownable, IERC20 {\r\n    using SafeMath for uint256;\r\n    bool private initializeToken = false;\r\n\r\n    mapping(address => uint256) private _balances;\r\n    mapping(address => mapping(address => uint256)) private _allowances;\r\n\r\n    uint256 private _totalSupply;\r\n    uint8 public _decimals;\r\n    string public _symbol;\r\n    string public _name;\r\n\r\n    constructor() {}\r\n\r\n    // Token initialization is only available once\r\n    function initToken(string memory t_name, string memory t_symbol, uint8 t_decimals, uint256 t_totalSupply, address addressOwner) public onlyOwner returns (bool) {\r\n        require(initializeToken == false, \"The token is already initialized\");\r\n        initializeToken = true;\r\n\r\n        _name = t_name;\r\n        _symbol = t_symbol;\r\n        _decimals = t_decimals;\r\n        _totalSupply = t_totalSupply;\r\n        _balances[addressOwner] = _totalSupply;\r\n\r\n        transferOwnership(addressOwner);\r\n\r\n        emit Transfer(address(0), addressOwner, _totalSupply);\r\n\r\n        return true;\r\n    }\r\n\r\n    function owner() external view returns (address) {\r\n        return getOwner();\r\n    }\r\n\r\n    function decimals() external view returns (uint8) {\r\n        return _decimals;\r\n    }\r\n\r\n    function symbol() external view returns (string memory) {\r\n        return _symbol;\r\n    }\r\n\r\n    function name() external view returns (string memory) {\r\n        return _name;\r\n    }\r\n\r\n    function totalSupply() external view returns (uint256) {\r\n        return _totalSupply;\r\n    }\r\n\r\n    function balanceOf(address account) external view returns (uint256) {\r\n        return _balances[account];\r\n    }\r\n\r\n    function transfer(address recipient, uint256 amount) external returns (bool) {\r\n        _transfer(msg.sender, recipient, amount);\r\n        return true;\r\n    }\r\n\r\n    function allowance(address addressOwner, address spender) external view returns (uint256) {\r\n        return _allowances[addressOwner][spender];\r\n    }\r\n\r\n    function approve(address spender, uint256 amount) external returns (bool) {\r\n        _approve(msg.sender, spender, amount);\r\n        return true;\r\n    }\r\n\r\n    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) {\r\n        _transfer(sender, recipient, amount);\r\n        _approve(sender, msg.sender, _allowances[sender][msg.sender].sub(amount, \"Transfer amount exceeds allowance\"));\r\n        return true;\r\n    }\r\n\r\n    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {\r\n        _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue));\r\n        return true;\r\n    }\r\n\r\n    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {\r\n        _approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue, \"Decreased allowance below zero\"));\r\n        return true;\r\n    }\r\n\r\n    function _transfer(address sender, address recipient, uint256 amount) internal {\r\n        require(sender != address(0), \"Transfer from the zero address\");\r\n        require(recipient != address(0), \"Transfer to the zero address\");\r\n        require(amount <= _balances[sender], \"Transfer amount exceeds balance\");\r\n\r\n        _balances[sender] = _balances[sender].sub(amount);\r\n        _balances[recipient] = _balances[recipient].add(amount);\r\n        emit Transfer(sender, recipient, amount);\r\n    }\r\n\r\n    function _approve(address addressOwner, address spender, uint256 amount) internal {\r\n        require(addressOwner != address(0), \"Approve from the zero address\");\r\n        require(spender != address(0), \"Approve to the zero address\");\r\n\r\n        _allowances[addressOwner][spender] = amount;\r\n        emit Approval(addressOwner, spender, amount);\r\n    }\r\n}"
      },
      "contracts/MultiTokens/Ownable.sol": {
        "content": "// SPDX-License-Identifier: MIT\r\n\r\n/**\r\n * contract Ownable\r\n */\r\n\r\npragma solidity >=0.8.0;\r\n\r\nimport \"./Context.sol\";\r\n\r\ncontract Ownable is Context {\r\n    address private _owner;\r\n\r\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\r\n\r\n    constructor () {\r\n        address msgSender = _msgSender();\r\n        _owner = msgSender;\r\n        emit OwnershipTransferred(address(0), msgSender);\r\n    }\r\n\r\n    function getOwner() public view returns (address) {\r\n        return _owner;\r\n    }\r\n\r\n    modifier onlyOwner() {\r\n        require(_owner == _msgSender(), \"onlyOwner\");\r\n        _;\r\n    }\r\n\r\n    function renounceOwnership() public onlyOwner {\r\n        emit OwnershipTransferred(_owner, address(0));\r\n        _owner = address(0);\r\n    }\r\n\r\n    function transferOwnership(address newOwner) public onlyOwner {\r\n        _transferOwnership(newOwner);\r\n    }\r\n\r\n    function _transferOwnership(address newOwner) internal {\r\n        require(newOwner != address(0), \"Ownable: new owner is the zero address\");\r\n        emit OwnershipTransferred(_owner, newOwner);\r\n        _owner = newOwner;\r\n    }\r\n}"
      },
      "contracts/MultiTokens/SafeMath.sol": {
        "content": "// SPDX-License-Identifier: MIT\r\n\r\n/**\r\n * Library for mathematical operations\r\n */\r\n\r\npragma solidity >=0.8.0;\r\n\r\n// @dev Wrappers over Solidity's arithmetic operations with added overflow * checks.\r\nlibrary SafeMath {\r\n    // Counterpart to Solidity's `+` operator.\r\n    function add(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        uint256 c = a + b;\r\n        require(c >= a, \"SafeMath: addition overflow\");\r\n        return c;\r\n    }\r\n\r\n    // Counterpart to Solidity's `-` operator.\r\n    function sub(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        return sub(a, b, \"SafeMath: subtraction overflow\");\r\n    }\r\n\r\n    // Counterpart to Solidity's `-` operator.\r\n    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\r\n        require(b <= a, errorMessage);\r\n        uint256 c = a - b;\r\n        return c;\r\n    }\r\n\r\n    // Counterpart to Solidity's `*` operator.\r\n    function mul(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        if (a == 0) {\r\n            return 0;\r\n        }\r\n        uint256 c = a * b;\r\n        require(c / a == b, \"SafeMath: multiplication overflow\");\r\n        return c;\r\n    }\r\n\r\n    // Counterpart to Solidity's `/` operator.\r\n    function div(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        return div(a, b, \"SafeMath: division by zero\");\r\n    }\r\n\r\n    // Counterpart to Solidity's `/` operator.\r\n    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\r\n        require(b > 0, errorMessage);\r\n        uint256 c = a / b;\r\n        return c;\r\n    }\r\n\r\n    // Counterpart to Solidity's `%` operator.\r\n    function mod(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        return mod(a, b, \"SafeMath: modulo by zero\");\r\n    }\r\n\r\n    // Counterpart to Solidity's `%` operator.\r\n    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\r\n        require(b != 0, errorMessage);\r\n        return a % b;\r\n    }\r\n}"
      },
      "contracts/MultiTokens/IERC20.sol": {
        "content": "// SPDX-License-Identifier: MIT\r\n\r\n/**\r\n * interface IERC20\r\n */\r\n\r\npragma solidity >=0.8.0;\r\n\r\ninterface IERC20 {\r\n    function name() external view returns (string memory);\r\n    function symbol() external view returns (string memory);\r\n    function decimals() external view returns (uint8);\r\n    function totalSupply() external view returns (uint256);\r\n    function owner() external view returns (address);\r\n    function balanceOf(address account) external view returns (uint256);\r\n    function allowance(address owner, address spender) external view returns (uint256);\r\n    function transfer(address recipient, uint256 amount) external returns (bool);\r\n    function approve(address spender, uint256 amount) external returns (bool);\r\n    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\r\n\r\n    event Transfer(address indexed from, address indexed to, uint256 value);\r\n    event Approval(address indexed owner, address indexed spender, uint256 value);\r\n}"
      },
      "contracts/MultiTokens/Context.sol": {
        "content": "// SPDX-License-Identifier: MIT\r\n\r\n/**\r\n * abstract contract Context\r\n */\r\n\r\npragma solidity >=0.8.0;\r\n\r\nabstract contract Context {\r\n    // Empty internal constructor, to prevent people from mistakenly deploying\r\n    // an instance of this contract, which should be used via inheritance.\r\n    //constructor () { }\r\n\r\n    function _msgSender() internal view returns (address payable) {\r\n        return payable(msg.sender);\r\n    }\r\n\r\n    function _msgData() internal view returns (bytes memory) {\r\n        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\r\n        return msg.data;\r\n    }\r\n}"
      }
    },
    "settings": {
      "optimizer": {
        "enabled": true,
        "runs": 200
      },
      "outputSelection": {
        "*": {
          "*": [
            "evm.bytecode",
            "evm.deployedBytecode",
            "abi"
          ]
        }
      },
      "remappings": []
    }
  }}