ETH Price: $2,748.07 (+2.96%)

Token

Tokyo Mongz Hills Club (TMHC)
 

Overview

Max Total Supply

10,000 TMHC

Holders

671

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0xd33046093ff4fb5e98f2fc80f463ac49b52edee3
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

This project is operated by HASHLINK, a wholly owned subsidiary of Commseed corporation, a Japanese game company and listed company.

# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
Proxy

Compiler Version
v0.8.1+commit.df193b15

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 3 : Proxy.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/3dac7bbed7b4c0dbf504180c33e8ed8e350b93eb/contracts/access/Ownable.sol";

contract ProxyStorage is Ownable {
    address public implementation;
}

contract Proxy is ProxyStorage {

    constructor(address _implementation) {
        setImplementation(_implementation);
    }

    function setImplementation(address _implementation) public onlyOwner() {
        implementation = _implementation;
    }

    fallback () external {
        assembly {
            let ptr := mload(0x40)
            calldatacopy(ptr, 0, calldatasize())

            let result := delegatecall (
                gas(),
                sload(implementation.slot),
                ptr,
                calldatasize(),
                0,
                0
            )

            let size := returndatasize()
            returndatacopy(ptr, 0, size)

            switch result
            case 0 {
                revert(ptr, size)
            }
            default {
                return(ptr, size)
            }
        }       
    }
}

File 2 of 3 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 3 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_implementation","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_implementation","type":"address"}],"name":"setImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506040516108bd3803806108bd83398181016040528101906100329190610249565b61004e61004361006360201b60201c565b61006b60201b60201c565b61005d8161012f60201b60201c565b50610338565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61013d61018160201b60201c565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61018f61006360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166101b361020b60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614610209576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161020090610295565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008151905061024381610321565b92915050565b60006020828403121561025b57600080fd5b600061026984828501610234565b91505092915050565b600061027f6020836102b5565b915061028a826102f8565b602082019050919050565b600060208201905081810360008301526102ae81610272565b9050919050565b600082825260208201905092915050565b60006102d1826102d8565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b61032a816102c6565b811461033557600080fd5b50565b610576806103476000396000f3fe608060405234801561001057600080fd5b506004361061005b5760003560e01c80635c60da1b14610085578063715018a6146100a35780638da5cb5b146100ad578063d784d426146100cb578063f2fde38b146100e75761005c565b5b604051366000823760008036836001545af43d806000843e8160008114610081578184f35b8184fd5b61008d610103565b60405161009a9190610413565b60405180910390f35b6100ab610129565b005b6100b561013d565b6040516100c29190610413565b60405180910390f35b6100e560048036038101906100e09190610395565b610166565b005b61010160048036038101906100fc9190610395565b6101b2565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610131610236565b61013b60006102b4565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61016e610236565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6101ba610236565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561022a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102219061042e565b60405180910390fd5b610233816102b4565b50565b61023e610378565b73ffffffffffffffffffffffffffffffffffffffff1661025c61013d565b73ffffffffffffffffffffffffffffffffffffffff16146102b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a99061044e565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b60008135905061038f81610529565b92915050565b6000602082840312156103a757600080fd5b60006103b584828501610380565b91505092915050565b6103c78161047f565b82525050565b60006103da60268361046e565b91506103e5826104b1565b604082019050919050565b60006103fd60208361046e565b915061040882610500565b602082019050919050565b600060208201905061042860008301846103be565b92915050565b60006020820190508181036000830152610447816103cd565b9050919050565b60006020820190508181036000830152610467816103f0565b9050919050565b600082825260208201905092915050565b600061048a82610491565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6105328161047f565b811461053d57600080fd5b5056fea26469706673582212200a8fe56adc3e52adad6e5d9189c1f166951def083186266833bc0c57dd41b41264736f6c634300080100330000000000000000000000000a6f53a160305a43c909daf5b922d1400cbc0f1a

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061005b5760003560e01c80635c60da1b14610085578063715018a6146100a35780638da5cb5b146100ad578063d784d426146100cb578063f2fde38b146100e75761005c565b5b604051366000823760008036836001545af43d806000843e8160008114610081578184f35b8184fd5b61008d610103565b60405161009a9190610413565b60405180910390f35b6100ab610129565b005b6100b561013d565b6040516100c29190610413565b60405180910390f35b6100e560048036038101906100e09190610395565b610166565b005b61010160048036038101906100fc9190610395565b6101b2565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610131610236565b61013b60006102b4565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61016e610236565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6101ba610236565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561022a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102219061042e565b60405180910390fd5b610233816102b4565b50565b61023e610378565b73ffffffffffffffffffffffffffffffffffffffff1661025c61013d565b73ffffffffffffffffffffffffffffffffffffffff16146102b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a99061044e565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b60008135905061038f81610529565b92915050565b6000602082840312156103a757600080fd5b60006103b584828501610380565b91505092915050565b6103c78161047f565b82525050565b60006103da60268361046e565b91506103e5826104b1565b604082019050919050565b60006103fd60208361046e565b915061040882610500565b602082019050919050565b600060208201905061042860008301846103be565b92915050565b60006020820190508181036000830152610447816103cd565b9050919050565b60006020820190508181036000830152610467816103f0565b9050919050565b600082825260208201905092915050565b600061048a82610491565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6105328161047f565b811461053d57600080fd5b5056fea26469706673582212200a8fe56adc3e52adad6e5d9189c1f166951def083186266833bc0c57dd41b41264736f6c63430008010033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000a6f53a160305a43c909daf5b922d1400cbc0f1a

-----Decoded View---------------
Arg [0] : _implementation (address): 0x0A6f53a160305a43c909DAF5b922D1400cBC0f1A

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000a6f53a160305a43c909daf5b922d1400cbc0f1a


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.