ETH Price: $1,965.70 (+0.82%)
Gas: 0.06 Gwei
 

Overview

Max Total Supply

716,007,124.093309147693547995 WTGXX

Holders

29

Transfers

-
0

Market

Onchain Market Cap

-

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Proxy

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import "../tokens/interfaces/IBeacon.sol";
import "../common/libraries/StorageSlot.sol";

/**
 * @title Proxy
 * @dev Implementation of the Proxy contract to delegate calls to implementation contracts.
 */
contract Proxy {
    using StorageSlot for StorageSlot.AddressSlot;

    bytes32 internal constant _BEACON_SLOT = keccak256("proxy.beacon");
    bytes32 internal constant _INIT_OWNER_SLOT = keccak256("proxy.initializationOwnerAddress");
    
    event BeaconChanged(address indexed previousBeacon, address indexed newBeacon);

    constructor(
        address beacon_,
        bytes memory initData
    ) {
        require(beacon_ != address(0), "Proxy: new beacon is the zero address");
        StorageSlot.getAddressSlot(_BEACON_SLOT).value = beacon_;
        emit BeaconChanged(address(0), beacon_);

        StorageSlot.getAddressSlot(_INIT_OWNER_SLOT).value = msg.sender;

        address implementationAddress = _implementation();
        (bool success, ) = implementationAddress.delegatecall(
            initData
            );
        require(success, "Proxy: Initialization failed");
    }

    function _implementation() internal view returns (address) {
        return IBeacon(StorageSlot.getAddressSlot(_BEACON_SLOT).value).implementation();
    }

    function getImplementation() external view returns (address) {
        return _implementation();
    }

    fallback() external payable {
        address impl = _implementation();
        require(impl != address(0), "Proxy: implementation is the zero address");

        assembly {
            let ptr := mload(0x40)
            calldatacopy(ptr, 0, calldatasize())
            let result := delegatecall(gas(), impl, ptr, calldatasize(), 0, 0)
            let size := returndatasize()
            returndatacopy(ptr, 0, size)
            switch result
            case 0 { revert(ptr, size) }
            default { return(ptr, size) }
        }
    }

    receive() external payable {
        revert("Does not accept Ether deposits");
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

interface IBeacon {
    function implementation() external view returns (address);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.19;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC-1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }
    
    // New struct for Uint8Slot
    struct Uint8Slot {
        uint8 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `Uint8Slot` with member `value` located at `slot`.
     */
    function getUint8Slot(bytes32 slot) internal pure returns (Uint8Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

Settings
{
  "remappings": [
    "forge-std/=lib/forge-std/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"beacon_","type":"address"},{"internalType":"bytes","name":"initData","type":"bytes"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousBeacon","type":"address"},{"indexed":true,"internalType":"address","name":"newBeacon","type":"address"}],"name":"BeaconChanged","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"getImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b5060405161062238038061062283398101604081905261002f916102b5565b6001600160a01b0382166100985760405162461bcd60e51b815260206004820152602560248201527f50726f78793a206e657720626561636f6e20697320746865207a65726f206164604482015264647265737360d81b60648201526084015b60405180910390fd5b60008051602061060283398151915280546001600160a01b0319166001600160a01b0384169081179091556040516000907fbe0ef9e6d5d3d5709366e217891363222543e107a017b4fd3191d99ea69ec66e908290a37f8e876d3d0a9353aed97eec92a2216994db039809a1460215a0dc869dd618259d80546001600160a01b0319163317905560006101296101df565b90506000816001600160a01b0316836040516101459190610375565b600060405180830381855af49150503d8060008114610180576040519150601f19603f3d011682016040523d82523d6000602084013e610185565b606091505b50509050806101d65760405162461bcd60e51b815260206004820152601c60248201527f50726f78793a20496e697469616c697a6174696f6e206661696c656400000000604482015260640161008f565b505050506103b3565b6000805160206106028339815191525460408051635c60da1b60e01b815290516000926001600160a01b031691635c60da1b9160048083019260209291908290030181865afa158015610236573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025a9190610391565b905090565b80516001600160a01b038116811461027657600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156102ac578181015183820152602001610294565b50506000910152565b600080604083850312156102c857600080fd5b6102d18361025f565b60208401519092506001600160401b03808211156102ee57600080fd5b818501915085601f83011261030257600080fd5b8151818111156103145761031461027b565b604051601f8201601f19908116603f0116810190838211818310171561033c5761033c61027b565b8160405282815288602084870101111561035557600080fd5b610366836020830160208801610291565b80955050505050509250929050565b60008251610387818460208701610291565b9190910192915050565b6000602082840312156103a357600080fd5b6103ac8261025f565b9392505050565b610240806103c26000396000f3fe6080604052600436106100225760003560e01c8063aaf10f421461010d57610074565b366100745760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420616363657074204574686572206465706f73697473000060448201526064015b60405180910390fd5b600061007e61013e565b90506001600160a01b0381166100e85760405162461bcd60e51b815260206004820152602960248201527f50726f78793a20696d706c656d656e746174696f6e20697320746865207a65726044820152686f206164647265737360b81b606482015260840161006b565b60405136600082376000803683855af43d806000843e818015610109578184f35b8184fd5b34801561011957600080fd5b506101226101d0565b6040516001600160a01b03909116815260200160405180910390f35b7fe776daafc4820f23714ae13a96bd4aa162bffacfe02911a8027c0de390f831555460408051635c60da1b60e01b815290516000926001600160a01b031691635c60da1b9160048083019260209291908290030181865afa1580156101a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101cb91906101da565b905090565b60006101cb61013e565b6000602082840312156101ec57600080fd5b81516001600160a01b038116811461020357600080fd5b939250505056fea26469706673582212205aa1bbb1c10d1bc6933afd05a27bd352865037fee9db307f78ef24c77695812d64736f6c63430008130033e776daafc4820f23714ae13a96bd4aa162bffacfe02911a8027c0de390f83155000000000000000000000000c2f490d5ab8e918686ad4bb795b1bd7f60dbf7b1000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001a41306287c0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000726d3b3e18e301719b383fde4f99a5d31b9438e50000000000000000000000006257759edd99f677052727f7ef3a055029dfa58a000000000000000000000000726d3b3e18e301719b383fde4f99a5d31b9438e5000000000000000000000000726d3b3e18e301719b383fde4f99a5d31b9438e5000000000000000000000000000000000000000000000000000000000000002f576973646f6d5472656520476f7665726e6d656e74204d6f6e6579204d61726b6574204469676974616c2046756e6400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005575447585800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106100225760003560e01c8063aaf10f421461010d57610074565b366100745760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420616363657074204574686572206465706f73697473000060448201526064015b60405180910390fd5b600061007e61013e565b90506001600160a01b0381166100e85760405162461bcd60e51b815260206004820152602960248201527f50726f78793a20696d706c656d656e746174696f6e20697320746865207a65726044820152686f206164647265737360b81b606482015260840161006b565b60405136600082376000803683855af43d806000843e818015610109578184f35b8184fd5b34801561011957600080fd5b506101226101d0565b6040516001600160a01b03909116815260200160405180910390f35b7fe776daafc4820f23714ae13a96bd4aa162bffacfe02911a8027c0de390f831555460408051635c60da1b60e01b815290516000926001600160a01b031691635c60da1b9160048083019260209291908290030181865afa1580156101a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101cb91906101da565b905090565b60006101cb61013e565b6000602082840312156101ec57600080fd5b81516001600160a01b038116811461020357600080fd5b939250505056fea26469706673582212205aa1bbb1c10d1bc6933afd05a27bd352865037fee9db307f78ef24c77695812d64736f6c63430008130033

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

000000000000000000000000c2f490d5ab8e918686ad4bb795b1bd7f60dbf7b1000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001a41306287c0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000726d3b3e18e301719b383fde4f99a5d31b9438e50000000000000000000000006257759edd99f677052727f7ef3a055029dfa58a000000000000000000000000726d3b3e18e301719b383fde4f99a5d31b9438e5000000000000000000000000726d3b3e18e301719b383fde4f99a5d31b9438e5000000000000000000000000000000000000000000000000000000000000002f576973646f6d5472656520476f7665726e6d656e74204d6f6e6579204d61726b6574204469676974616c2046756e6400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005575447585800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : beacon_ (address): 0xC2F490D5aB8E918686Ad4bB795b1BD7F60dBf7b1
Arg [1] : initData (bytes): 0x1306287c0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000726d3b3e18e301719b383fde4f99a5d31b9438e50000000000000000000000006257759edd99f677052727f7ef3a055029dfa58a000000000000000000000000726d3b3e18e301719b383fde4f99a5d31b9438e5000000000000000000000000726d3b3e18e301719b383fde4f99a5d31b9438e5000000000000000000000000000000000000000000000000000000000000002f576973646f6d5472656520476f7665726e6d656e74204d6f6e6579204d61726b6574204469676974616c2046756e64000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055754475858000000000000000000000000000000000000000000000000000000

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 000000000000000000000000c2f490d5ab8e918686ad4bb795b1bd7f60dbf7b1
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a4
Arg [3] : 1306287c00000000000000000000000000000000000000000000000000000000
Arg [4] : 0000010000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000016000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000001200000000000000000000000000000000000000000000000000000000
Arg [7] : 00000000000000000000000000000000726d3b3e18e301719b383fde4f99a5d3
Arg [8] : 1b9438e50000000000000000000000006257759edd99f677052727f7ef3a0550
Arg [9] : 29dfa58a000000000000000000000000726d3b3e18e301719b383fde4f99a5d3
Arg [10] : 1b9438e5000000000000000000000000726d3b3e18e301719b383fde4f99a5d3
Arg [11] : 1b9438e500000000000000000000000000000000000000000000000000000000
Arg [12] : 0000002f576973646f6d5472656520476f7665726e6d656e74204d6f6e657920
Arg [13] : 4d61726b6574204469676974616c2046756e6400000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [15] : 0000000557544758580000000000000000000000000000000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000000


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.