ETH Price: $2,460.83 (-1.62%)

Token

Shattered Eon Imperial Guild ()
 

Overview

Max Total Supply

0

Holders

167

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
wftda.eth
0x6ad1DE943844765a47c029268D6E8fBd4183b646
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

**Shattered Eon is an ever-expanding, ever-unfolding Sci-Fi Space Epic. A 100% on-chain Colonist and Pirate NFT universe full of consequential decision making and p2p interaction.** Inhabitants of the Shattered Eon Universe have the freedom to build a mining team to gather ...

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ImperialGuild

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
No with 2000 runs

Other Settings:
default evmVersion, MIT license
File 1 of 11 : ImperialGuild.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./interfaces/IERC1155TokenReceiver.sol";
import "./interfaces/IImperialGuild.sol";
import "./interfaces/IEON.sol";
import "./interfaces/IRAW.sol";
import "./ERC1155.sol";
import "./EON.sol";

contract ImperialGuild is
    IImperialGuild,
    IERC1155TokenReceiver,
    ERC1155,
    Pausable
{
    using Strings for uint256;

    // struct to store each trait's data for metadata and rendering
    struct Image {
        string name;
        string png;
    }

    struct TypeInfo {
        uint16 mints;
        uint16 burns;
        uint16 maxSupply;
        uint256 eonExAmt;
        uint256 secExAmt;
    }
    struct LastWrite {
        uint64 time;
        uint64 blockNum;
    }

    // hardcoded tax % to the Imperial guild, collected from shard and onosia purchases
    // to be used in game at a later time
    uint256 public constant ImperialGuildTax = 20;

    // multiplier for eon exchange amount

    uint256 public constant multiplier = 10**18;

    // payments for shards and onosia will collect in this contract until
    // an owner withdraws, at which point the tax % above will be sent to the
    // treasury and the remainder will be burnt *see withdraw
    address private ImperialGuildTreasury;

    address public auth;

    // Tracks the last block and timestamp that a caller has written to state.
    // Disallow some access to functions if they occur while a change is being written.
    mapping(address => LastWrite) private lastWrite;

    mapping(uint256 => TypeInfo) private typeInfo;
    // storage of each image data
    mapping(uint256 => Image) public traitData;

    // address => allowedToCallFunctions
    mapping(address => bool) private admins;

    IEON public eon;

    // reference to the raw contract for processing payments in raw eon or other
    // raw materials
    IRAW public raw;

    EON public eonToken;

    constructor() {
        auth = msg.sender;
        admins[msg.sender] = true;
    }

    modifier onlyOwner() {
        require(msg.sender == auth);
        _;
    }

    /** CRITICAL TO SETUP */

    modifier requireContractsSet() {
        require(address(eon) != address(0), "Contracts not set");
        _;
    }

    function setContracts(address _eon, address _raw) external onlyOwner {
        eon = IEON(_eon);
        raw = IRAW(_raw);
        eonToken = EON(_eon);
    }

    /**
     * Mint a token - any payment / game logic should be handled in the DenOfAlgol contract.
     * ATENTION- PaymentId "0" is reserved for EON only!!
     * All other paymentIds point to the RAW contract ID
     */
    function mint(
        uint256 typeId,
        uint256 paymentId,
        uint16 qty,
        address recipient
    ) external override whenNotPaused {
        require(admins[msg.sender], "Only admins can call this");
        require(
            typeInfo[typeId].mints + qty <= typeInfo[typeId].maxSupply,
            "All tokens minted"
        );
        // all payments will be transferred to this contract
        //this allows the hardcoded ImperialGuild tax that will be used in future additions to shatteredEON to be withdrawn. At the time of withdaw the balance of this contract will be burnt - the tax amount.
        if (paymentId == 0) {
            eon.transferFrom(
                tx.origin,
                address(this),
                typeInfo[typeId].eonExAmt * qty
            );
        } else {
            raw.safeTransferFrom(
                tx.origin,
                address(this),
                paymentId,
                typeInfo[typeId].secExAmt * qty,
                ""
            );
        }
        typeInfo[typeId].mints += qty;
        _mint(recipient, typeId, qty, "");
    }

    /**
     * Burn a token - any payment / game logic should be handled in the game contract.
     */
    function burn(
        uint256 typeId,
        uint16 qty,
        address burnFrom
    ) external override whenNotPaused {
        require(admins[msg.sender], "Only admins can call this");

        typeInfo[typeId].burns += qty;
        _burn(burnFrom, typeId, qty);
    }

    function handlePayment(uint256 amount) external override whenNotPaused {
        require(admins[msg.sender], "Only admins can call this");
        eon.transferFrom(tx.origin, address(this), amount);
    }

    // used to create new erc1155 typs from the Imperial guild
    // ATTENTION - Type zero is reserved to not cause conflicts
    function setType(uint256 typeId, uint16 maxSupply) external onlyOwner {
        require(typeInfo[typeId].mints <= maxSupply, "max supply too low");
        typeInfo[typeId].maxSupply = maxSupply;
    }

    // store exchange rates for new erc1155s for both EON and/or
    // any raw resource
    function setExchangeAmt(
        uint256 typeId,
        uint256 exchangeAmt,
        uint256 secExchangeAmt
    ) external onlyOwner {
        require(
            typeInfo[typeId].maxSupply > 0,
            "this type has not been set up"
        );
        typeInfo[typeId].eonExAmt = exchangeAmt;
        typeInfo[typeId].secExAmt = secExchangeAmt;
    }

    /**
     * enables an address to mint / burn
     * @param addr the address to enable
     */
    function addAdmin(address addr) external onlyOwner {
        admins[addr] = true;
    }

    /**
     * disables an address from minting / burning
     * @param addr the address to disbale
     */
    function removeAdmin(address addr) external onlyOwner {
        admins[addr] = false;
    }

    function setPaused(bool _paused) external onlyOwner requireContractsSet {
        if (_paused) _pause();
        else _unpause();
    }

    // owner call to withdraw this contracts EON balance * 20%
    // to the Imperial guild treasury, the remainder is then burned
    function withdrawEonAndBurn() external onlyOwner {
        uint256 guildAmt = eonToken.balanceOf(address(this)) *
            (ImperialGuildTax / 100);
        uint256 amtToBurn = eonToken.balanceOf(address(this)) - guildAmt;
        eonToken.transferFrom(address(this), ImperialGuildTreasury, guildAmt);
        eonToken.burn(address(this), amtToBurn);
    }

    // owner function to withdraw this contracts raw resource balance * 20%
    // to the Imperial guild treasury, the remainder is then burned
    function withdrawRawAndBurn(uint16 id) external onlyOwner {
        uint256 rawBalance = raw.getBalance(address(this), id);
        uint256 guildAmt = rawBalance * (ImperialGuildTax / 100);
        uint256 amtToBurn = rawBalance - guildAmt;
        raw.safeTransferFrom(
            address(this),
            ImperialGuildTreasury,
            id,
            guildAmt,
            ""
        );
        raw.burn(id, amtToBurn, address(this));
    }

    // owner function to set the Imperial guild treasury address
    function setTreasuries(address _treasury) external onlyOwner {
        ImperialGuildTreasury = _treasury;
    }

    // external function to recieve information on a given
    // ERC1155 from the ImperialGuild
    function getInfoForType(uint256 typeId)
        external
        view
        returns (TypeInfo memory)
    {
        require(typeInfo[typeId].maxSupply > 0, "invalid type");
        return typeInfo[typeId];
    }

    // ERC1155 token uri  and renders for the on chain metadata

    function uri(uint256 typeId) public view override returns (string memory) {
        require(typeInfo[typeId].maxSupply > 0, "invalid type");
        Image memory img = traitData[typeId];
        string memory metadata = string(
            abi.encodePacked(
                '{"name": "',
                img.name,
                '", "description": "The Guild Lords of Pytheas are feared for their ruthless cunning and enterprising technological advancements. They alone have harnessed the power of a dying star to power a man made planet that processes EON. Rumor has it that they also dabble in the shadows as a black market dealer of hard to find artifacts and might entertain your offer for the right price, but be sure to tread lightly as they control every aspect of the economy in this star system. You would be a fool to arrive empty handed in any negotiation with them. All the metadata and images are generated and stored 100% on-chain. No IPFS. NO API. Just the Ethereum blockchain.", "image": "data:image/svg+xml;base64,',
                base64(bytes(drawSVG(typeId))),
                '", "attributes": []',
                "}"
            )
        );
        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    base64(bytes(metadata))
                )
            );
    }

    function uploadImage(uint256 typeId, Image calldata image)
        external
        onlyOwner
    {
        traitData[typeId] = Image(image.name, image.png);
    }

    function drawImage(Image memory image)
        internal
        pure
        returns (string memory)
    {
        return
            string(
                abi.encodePacked(
                    '<image x="0" y="0" width="64" height="64" image-rendering="pixelated" preserveAspectRatio="xMidYMid" xlink:href="data:image/png;base64,',
                    image.png,
                    '"/>'
                )
            );
    }

    function drawSVG(uint256 typeId) internal view returns (string memory) {
        string memory svgString = string(
            abi.encodePacked(drawImage(traitData[typeId]))
        );

        return
            string(
                abi.encodePacked(
                    '<svg id="ImperialGuild" width="100%" height="100%" version="1.1" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">',
                    svgString,
                    "</svg>"
                )
            );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override(ERC1155, IImperialGuild) {
        // allow admin contracts to send without approval
        if (!admins[msg.sender]) {
            require(
                msg.sender == from || isApprovedForAll[from][msg.sender],
                "NOT_AUTHORIZED"
            );
        }
        balanceOf[from][id] -= amount;
        balanceOf[to][id] += amount;

        emit TransferSingle(msg.sender, from, to, id, amount);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155Received(
                    msg.sender,
                    from,
                    id,
                    amount,
                    data
                ) == ERC1155TokenReceiver.onERC1155Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override(ERC1155, IImperialGuild) {
        // allow admin contracts to send without approval
        uint256 idsLength = ids.length; // Saves MLOADs.

        require(idsLength == amounts.length, "LENGTH_MISMATCH");

        // allow admin contracts to send without approval
        if (!admins[msg.sender]) {
            require(
                msg.sender == from || isApprovedForAll[from][msg.sender],
                "NOT_AUTHORIZED"
            );
        }

        for (uint256 i = 0; i < idsLength; ) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            balanceOf[from][id] -= amount;
            balanceOf[to][id] += amount;

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                i++;
            }
        }
        emit TransferBatch(msg.sender, from, to, ids, amounts);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155BatchReceived(
                    msg.sender,
                    from,
                    ids,
                    amounts,
                    data
                ) == ERC1155TokenReceiver.onERC1155BatchReceived.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function getBalance(address account, uint256 id)
        public
        view
        returns (uint256)
    {
        return ERC1155(address(this)).balanceOf(account, id);
    }

    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes calldata
    ) external pure override returns (bytes4) {
        return IERC1155TokenReceiver.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(
        address,
        address,
        uint256[] calldata,
        uint256[] calldata,
        bytes calldata
    ) external pure override returns (bytes4) {
        return IERC1155TokenReceiver.onERC1155Received.selector;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        pure
        override
        returns (bool)
    {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0xd9b67a26 || // ERC165 Interface ID for ERC1155
            interfaceId == 0x0e89341c; // ERC165 Interface ID for ERC1155MetadataURI
    }

    /** BASE 64 - Written by Brech Devos */

    string internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    function base64(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return "";

        // load the table into memory
        string memory table = TABLE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {

            } lt(dataPtr, endPtr) {

            } {
                dataPtr := add(dataPtr, 3)

                // read 3 bytes
                let input := mload(dataPtr)

                // write 4 characters
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(input, 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }
        }

        return result;
    }

    // For OpenSeas
    function owner() public view virtual returns (address) {
        return auth;
    }
}

File 2 of 11 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 3 of 11 : Context.sol
// SPDX-License-Identifier: MIT

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;
    }
}

File 4 of 11 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 5 of 11 : EON.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.0;
import "./ERC20.sol";
import "./interfaces/IEON.sol";

contract EON is IEON, ERC20 {
    // Tracks the last block that a caller has written to state.
    // Disallow some access to functions if they occur while a change is being written.
    mapping(address => uint256) private lastWrite;

    // address => allowedToCallFunctions
    mapping(address => bool) private admins;
    //ower
    address public auth;
    // hardcoded max eon supply 5b
    uint256 public constant MAX_EON = 5000000000 ether;

    // amount minted
    uint256 public minted;

    constructor() ERC20("EON", "EON", 18) {
        auth = msg.sender;
    }

    modifier onlyOwner() {
        require(msg.sender == auth);
        _;
    }

    /**
     * enables an address to mint / burn
     * @param addr the address to enable
     */
    function addAdmin(address addr) external onlyOwner {
        admins[addr] = true;
    }

    /**
     * disables an address from minting / burning
     * @param addr the address to disbale
     */
    function removeAdmin(address addr) external onlyOwner {
        admins[addr] = false;
    }

    function transferOwnership(address newOwner) external onlyOwner {
        auth = newOwner;
    }

    /**
     * mints $EON to a recipient
     * @param to the recipient of the $EON
     * @param amount the amount of $EON to mint
     */
    function mint(address to, uint256 amount) external override {
        require(admins[msg.sender], "Only admins can mint");
        minted += amount;
        _mint(to, amount);
    }

    /**
     * burns $EON from a holder
     * @param from the holder of the $EON
     * @param amount the amount of $EON to burn
     */
    function burn(address from, uint256 amount) external override {
        require(admins[msg.sender], "Only admins");
        _burn(from, amount);
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override(ERC20, IEON) returns (bool) {
        // caught yah
        require(
            admins[msg.sender] || lastWrite[sender] < block.number,
            "hmmmm what are you doing?"
        );
        // If the entity invoking this transfer is an admin (i.e. the gameContract)
        // allow the transfer without approval. This saves gas and a transaction.
        // The sender address will still need to actually have the amount being attempted to send.
        if (admins[msg.sender]) {
            // NOTE: This will omit any events from being written. This saves additional gas,
            // and the event emission is not a requirement by the EIP
            // (read this function summary / ERC20 summary for more details)
            emit Transfer(sender, recipient, amount);
            return true;
        }

        // If it's not an admin entity (Shattered EON contract, pytheas, refinery. etc)
        // The entity will need to be given permission to transfer these funds
        // For instance, someone can't just make a contract and siphon $EON from every account
        return super.transferFrom(sender, recipient, amount);
    }
}

File 6 of 11 : ERC1155.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Minimalist and gas efficient standard ERC1155 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC1155.sol)
abstract contract ERC1155 {
    /*///////////////////////////////////////////////////////////////
                                EVENTS
    //////////////////////////////////////////////////////////////*/

    event TransferSingle(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256 id,
        uint256 amount
    );

    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] amounts
    );

    event ApprovalForAll(
        address indexed owner,
        address indexed operator,
        bool approved
    );

    event URI(string value, uint256 indexed id);

    /*///////////////////////////////////////////////////////////////
                            ERC1155 STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(address => mapping(uint256 => uint256)) public balanceOf;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*///////////////////////////////////////////////////////////////
                             METADATA LOGIC
    //////////////////////////////////////////////////////////////*/

    function uri(uint256 id) public view virtual returns (string memory);

    /*///////////////////////////////////////////////////////////////
                             ERC1155 LOGIC
    //////////////////////////////////////////////////////////////*/

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function isApproved(address account, address operator)
        public
        view
        virtual
        returns (bool)
    {
        return isApprovedForAll[account][operator];
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual {
        require(
            msg.sender == from || isApprovedForAll[from][msg.sender],
            "NOT_AUTHORIZED"
        );

        balanceOf[from][id] -= amount;
        balanceOf[to][id] += amount;

        emit TransferSingle(msg.sender, from, to, id, amount);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155Received(
                    msg.sender,
                    from,
                    id,
                    amount,
                    data
                ) == ERC1155TokenReceiver.onERC1155Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual {
        uint256 idsLength = ids.length; // Saves MLOADs.

        require(idsLength == amounts.length, "LENGTH_MISMATCH");

        require(
            msg.sender == from || isApprovedForAll[from][msg.sender],
            "NOT_AUTHORIZED"
        );

        for (uint256 i = 0; i < idsLength; ) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            balanceOf[from][id] -= amount;
            balanceOf[to][id] += amount;

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                i++;
            }
        }

        emit TransferBatch(msg.sender, from, to, ids, amounts);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155BatchReceived(
                    msg.sender,
                    from,
                    ids,
                    amounts,
                    data
                ) == ERC1155TokenReceiver.onERC1155BatchReceived.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function balanceOfBatch(address[] memory owners, uint256[] memory ids)
        public
        view
        virtual
        returns (uint256[] memory balances)
    {
        uint256 ownersLength = owners.length; // Saves MLOADs.

        require(ownersLength == ids.length, "LENGTH_MISMATCH");

        balances = new uint256[](owners.length);

        // Unchecked because the only math done is incrementing
        // the array index counter which cannot possibly overflow.
        unchecked {
            for (uint256 i = 0; i < ownersLength; i++) {
                balances[i] = balanceOf[owners[i]][ids[i]];
            }
        }
    }

    /*///////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId)
        public
        pure
        virtual
        returns (bool)
    {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0xd9b67a26 || // ERC165 Interface ID for ERC1155
            interfaceId == 0x0e89341c; // ERC165 Interface ID for ERC1155MetadataURI
    }

    /*///////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal {
        balanceOf[to][id] += amount;

        emit TransferSingle(msg.sender, address(0), to, id, amount);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155Received(
                    msg.sender,
                    address(0),
                    id,
                    amount,
                    data
                ) == ERC1155TokenReceiver.onERC1155Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _batchMint(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal {
        uint256 idsLength = ids.length; // Saves MLOADs.

        require(idsLength == amounts.length, "LENGTH_MISMATCH");

        for (uint256 i = 0; i < idsLength; ) {
            balanceOf[to][ids[i]] += amounts[i];

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                i++;
            }
        }

        emit TransferBatch(msg.sender, address(0), to, ids, amounts);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155BatchReceived(
                    msg.sender,
                    address(0),
                    ids,
                    amounts,
                    data
                ) == ERC1155TokenReceiver.onERC1155BatchReceived.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _batchBurn(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal {
        uint256 idsLength = ids.length; // Saves MLOADs.

        require(idsLength == amounts.length, "LENGTH_MISMATCH");

        for (uint256 i = 0; i < idsLength; ) {
            balanceOf[from][ids[i]] -= amounts[i];

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                i++;
            }
        }

        emit TransferBatch(msg.sender, from, address(0), ids, amounts);
    }

    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal {
        balanceOf[from][id] -= amount;

        emit TransferSingle(msg.sender, from, address(0), id, amount);
    }
}

/// @notice A generic interface for a contract which properly accepts ERC1155 tokens.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC1155.sol)
interface ERC1155TokenReceiver {
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external returns (bytes4);

    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external returns (bytes4);
}

File 7 of 11 : ERC20.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
    /*///////////////////////////////////////////////////////////////
                                  EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 amount
    );

    /*///////////////////////////////////////////////////////////////
                             METADATA STORAGE
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*///////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    mapping(address => mapping(address => uint256)) public allowance;

    /*///////////////////////////////////////////////////////////////
                             EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    bytes32 public constant PERMIT_TYPEHASH =
        keccak256(
            "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
        );

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

    /*///////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*///////////////////////////////////////////////////////////////
                              ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount)
        public
        virtual
        returns (bool)
    {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount)
        public
        virtual
        returns (bool)
    {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.

        if (allowed != type(uint256).max)
            allowance[from][msg.sender] = allowed - amount;

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*///////////////////////////////////////////////////////////////
                              EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            bytes32 digest = keccak256(
                abi.encodePacked(
                    "\x19\x01",
                    DOMAIN_SEPARATOR(),
                    keccak256(
                        abi.encode(
                            PERMIT_TYPEHASH,
                            owner,
                            spender,
                            value,
                            nonces[owner]++,
                            deadline
                        )
                    )
                )
            );

            address recoveredAddress = ecrecover(digest, v, r, s);

            require(
                recoveredAddress != address(0) && recoveredAddress == owner,
                "INVALID_SIGNER"
            );

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return
            block.chainid == INITIAL_CHAIN_ID
                ? INITIAL_DOMAIN_SEPARATOR
                : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256(
                        "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
                    ),
                    keccak256(bytes(name)),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*///////////////////////////////////////////////////////////////
                       INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}

File 8 of 11 : IEON.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IEON {
    function mint(address to, uint256 amount) external;

    function burn(address from, uint256 amount) external;

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);
}

File 9 of 11 : IERC1155TokenReceiver.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity >=0.8.0;

interface IERC1155TokenReceiver {
   
   function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external returns (bytes4);

    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external returns (bytes4);
   }

File 10 of 11 : IImperialGuild.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.0;

interface IImperialGuild {

    function getBalance(
        address account,
        uint256 id
    ) external returns(uint256);

    function mint(
        uint256 typeId,
        uint256 paymentId,
        uint16 qty,
        address recipient
    ) external;

    function burn(
        uint256 typeId,
        uint16 qty,
        address burnFrom
    ) external;

    function handlePayment(uint256 amount) external;

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) external;

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) external;
}

File 11 of 11 : IRAW.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.0;

interface IRAW {

    function getBalance(
        address account,
        uint256 id
    ) external returns(uint256);

    function mint(
        uint256 typeId,
        uint256 qty,
        address recipient
    ) external;

    function burn(
        uint256 typeId,
        uint256 qty,
        address burnFrom
    ) external;

    function updateMintBurns(
        uint256 typeId,
        uint256 mintQty,
        uint256 burnQty
    ) external;

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) external;

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) external;

}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "details": {
      "constantOptimizer": true,
      "cse": true,
      "deduplicate": true,
      "inliner": true,
      "jumpdestRemover": true,
      "orderLiterals": true,
      "peephole": true,
      "yul": true,
      "yulDetails": {
        "optimizerSteps": "dhfoDgvulfnTUtnIf",
        "stackAllocation": true
      }
    },
    "runs": 2000
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ImperialGuildTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"auth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"balances","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"typeId","type":"uint256"},{"internalType":"uint16","name":"qty","type":"uint16"},{"internalType":"address","name":"burnFrom","type":"address"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eon","outputs":[{"internalType":"contract IEON","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eonToken","outputs":[{"internalType":"contract EON","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"typeId","type":"uint256"}],"name":"getInfoForType","outputs":[{"components":[{"internalType":"uint16","name":"mints","type":"uint16"},{"internalType":"uint16","name":"burns","type":"uint16"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"uint256","name":"eonExAmt","type":"uint256"},{"internalType":"uint256","name":"secExAmt","type":"uint256"}],"internalType":"struct ImperialGuild.TypeInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"handlePayment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApproved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"typeId","type":"uint256"},{"internalType":"uint256","name":"paymentId","type":"uint256"},{"internalType":"uint16","name":"qty","type":"uint16"},{"internalType":"address","name":"recipient","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"multiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raw","outputs":[{"internalType":"contract IRAW","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_eon","type":"address"},{"internalType":"address","name":"_raw","type":"address"}],"name":"setContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"typeId","type":"uint256"},{"internalType":"uint256","name":"exchangeAmt","type":"uint256"},{"internalType":"uint256","name":"secExchangeAmt","type":"uint256"}],"name":"setExchangeAmt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasuries","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"typeId","type":"uint256"},{"internalType":"uint16","name":"maxSupply","type":"uint16"}],"name":"setType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"traitData","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"png","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"typeId","type":"uint256"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"png","type":"string"}],"internalType":"struct ImperialGuild.Image","name":"image","type":"tuple"}],"name":"uploadImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"typeId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawEonAndBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"id","type":"uint16"}],"name":"withdrawRawAndBurn","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506002805460ff19908116909155600380546001600160a01b03191633908117909155600090815260076020526040902080549091166001179055613ba38061005a6000396000f3fe608060405234801561001057600080fd5b50600436106102405760003560e01c806399dad9a011610145578063c8122729116100bd578063e79df0d11161008c578063f23a6e6111610071578063f23a6e6114610558578063f242432a14610578578063f6bb451f1461058b57600080fd5b8063e79df0d114610517578063e985e9c51461052a57600080fd5b8063c8122729146104cb578063d8952a49146104de578063de9375f2146104f1578063e3b47b2c1461050457600080fd5b8063b120f5ed11610114578063bc197c81116100f9578063bc197c8114610481578063bd7b3f54146104b0578063c096a632146104b857600080fd5b8063b120f5ed1461044e578063b4c025d91461046e57600080fd5b806399dad9a0146103cc5780639ca0f29b146103df578063a22cb465146103ff578063a389783e1461041257600080fd5b80632b04e840116101d857806365c550cb116101a75780637d26c78c1161018c5780637d26c78c14610397578063850f98b6146103aa5780638da5cb5b146103b257600080fd5b806365c550cb14610371578063704802751461038457600080fd5b80632b04e840146103205780632eb2c2d6146103335780634e1273f4146103465780635c975abb1461036657600080fd5b8063165a816211610214578063165a8162146102d857806316c38b3c146102eb5780631785f53c146102fe5780631b3ed7221461031157600080fd5b8062fdd58e1461024557806301ffc9a71461028357806306e7b953146102a35780630e89341c146102b8575b600080fd5b61026d610253366004612329565b600060208181529281526040808220909352908152205481565b60405161027a919061236e565b60405180910390f35b610296610291366004612397565b6105ac565b60405161027a91906123c8565b6102b66102b13660046123eb565b610649565b005b6102cb6102c636600461243b565b6106fd565b60405161027a91906124ba565b6102b66102e63660046124cb565b6108de565b6102b66102f9366004612524565b610949565b6102b661030c366004612545565b6109a1565b61026d670de0b6b3a764000081565b61026d61032e366004612329565b6109d9565b6102b6610341366004612702565b610a60565b61035961035436600461283e565b610cff565b60405161027a9190612904565b60025460ff16610296565b6102b661037f36600461243b565b610e0b565b6102b6610392366004612545565b610ef1565b6102b66103a5366004612930565b610f2c565b61026d601481565b6003546001600160a01b03165b60405161027a9190612987565b6102b66103da366004612995565b61101b565b6103f26103ed36600461243b565b6111fd565b60405161027a9190612a18565b6102b661040d366004612a26565b6112bd565b610296610420366004612a59565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b600a54610461906001600160a01b031681565b60405161027a9190612ace565b6102b661047c366004612adc565b61132c565b6104a361048f366004612bdd565b63f23a6e6160e01b98975050505050505050565b60405161027a9190612cc3565b6102b661155e565b600954610461906001600160a01b031681565b6102b66104d9366004612cd1565b6117c9565b6102b66104ec366004612a59565b61185f565b6003546103bf906001600160a01b031681565b6102b6610512366004612545565b6118ce565b600854610461906001600160a01b031681565b610296610538366004612a59565b600160209081526000928352604080842090915290825290205460ff1681565b6104a3610566366004612d04565b63f23a6e6160e01b9695505050505050565b6102b6610586366004612d9a565b611924565b61059e61059936600461243b565b611b18565b60405161027a929190612df4565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316148061060f57507fd9b67a26000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b8061064357507f0e89341c000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60025460ff16156106755760405162461bcd60e51b815260040161066c90612e4b565b60405180910390fd5b3360009081526007602052604090205460ff166106a45760405162461bcd60e51b815260040161066c90612e8d565b600083815260056020526040902080548391906002906106cf90849062010000900461ffff16612eb3565b92506101000a81548161ffff021916908361ffff1602179055506106f881848461ffff16611c44565b505050565b600081815260056020526040902054606090640100000000900461ffff166107375760405162461bcd60e51b815260040161066c90612f0e565b600082815260066020526040808220815180830190925280548290829061075d90612f34565b80601f016020809104026020016040519081016040528092919081815260200182805461078990612f34565b80156107d65780601f106107ab576101008083540402835291602001916107d6565b820191906000526020600020905b8154815290600101906020018083116107b957829003601f168201915b505050505081526020016001820180546107ef90612f34565b80601f016020809104026020016040519081016040528092919081815260200182805461081b90612f34565b80156108685780601f1061083d57610100808354040283529160200191610868565b820191906000526020600020905b81548152906001019060200180831161084b57829003601f168201915b50505050508152505090506000816000015161088b61088686611cc9565b611e60565b60405160200161089c929190612f7d565b60405160208183030381529060405290506108b681611e60565b6040516020016108c69190613361565b60405160208183030381529060405292505050919050565b6003546001600160a01b031633146108f557600080fd5b600083815260056020526040902054640100000000900461ffff1661092c5760405162461bcd60e51b815260040161066c906133c3565b600092835260056020526040909220600181019190915560020155565b6003546001600160a01b0316331461096057600080fd5b6008546001600160a01b03166109885760405162461bcd60e51b815260040161066c90613405565b80156109995761099661201d565b50565b61099661208c565b6003546001600160a01b031633146109b857600080fd5b6001600160a01b03166000908152600760205260409020805460ff19169055565b6040517efdd58e000000000000000000000000000000000000000000000000000000008152600090309062fdd58e90610a189086908690600401613415565b602060405180830381865afa158015610a35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a59919061343b565b9392505050565b825182518114610a825760405162461bcd60e51b815260040161066c9061348e565b3360009081526007602052604090205460ff16610aef57336001600160a01b0387161480610ad357506001600160a01b038616600090815260016020908152604080832033845290915290205460ff165b610aef5760405162461bcd60e51b815260040161066c906134d0565b60005b81811015610bc4576000858281518110610b0e57610b0e6134e0565b602002602001015190506000858381518110610b2c57610b2c6134e0565b60200260200101519050806000808b6001600160a01b03166001600160a01b0316815260200190815260200160002060008481526020019081526020016000206000828254610b7b91906134f6565b90915550506001600160a01b03881660009081526020818152604080832085845290915281208054839290610bb190849061350d565b909155505060019092019150610af29050565b50846001600160a01b0316866001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610c14929190613520565b60405180910390a46001600160a01b0385163b15610cce576040517fbc197c8100000000000000000000000000000000000000000000000000000000808252906001600160a01b0387169063bc197c8190610c7b9033908b908a908a908a90600401613545565b6020604051808303816000875af1158015610c9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cbe91906135b0565b6001600160e01b03191614610cdb565b6001600160a01b03851615155b610cf75760405162461bcd60e51b815260040161066c90613603565b505050505050565b81518151606091908114610d255760405162461bcd60e51b815260040161066c9061348e565b835167ffffffffffffffff811115610d3f57610d3f612566565b604051908082528060200260200182016040528015610d68578160200160208202803683370190505b50915060005b81811015610e0357600080868381518110610d8b57610d8b6134e0565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000858381518110610dc757610dc76134e0565b6020026020010151815260200190815260200160002054838281518110610df057610df06134e0565b6020908102919091010152600101610d6e565b505092915050565b60025460ff1615610e2e5760405162461bcd60e51b815260040161066c90612e4b565b3360009081526007602052604090205460ff16610e5d5760405162461bcd60e51b815260040161066c90612e8d565b6008546040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906323b872dd90610eaa90329030908690600401613613565b6020604051808303816000875af1158015610ec9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eed9190613646565b5050565b6003546001600160a01b03163314610f0857600080fd5b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6003546001600160a01b03163314610f4357600080fd5b6040805180820190915280610f588380613667565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250505090825250602090810190610fa190840184613667565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525093909452505084815260066020908152604090912083518051919350610ffb92849291019061224f565b506020828101518051611014926001850192019061224f565b5050505050565b6003546001600160a01b0316331461103257600080fd5b6009546040517f2b04e8400000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690632b04e8409061107e90309086906004016136f3565b6020604051808303816000875af115801561109d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c1919061343b565b905060006110d160646014613724565b6110db9083613738565b905060006110e982846134f6565b6009546002546040517ff242432a0000000000000000000000000000000000000000000000000000000081529293506001600160a01b039182169263f242432a926111469230926101009091049091169089908890600401613757565b600060405180830381600087803b15801561116057600080fd5b505af1158015611174573d6000803e3d6000fd5b50506009546040517f749388c40000000000000000000000000000000000000000000000000000000081526001600160a01b03909116925063749388c491506111c5908790859030906004016137a6565b600060405180830381600087803b1580156111df57600080fd5b505af11580156111f3573d6000803e3d6000fd5b5050505050505050565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600082815260056020526040902054640100000000900461ffff1661125f5760405162461bcd60e51b815260040161066c90612f0e565b50600090815260056020908152604091829020825160a081018452815461ffff808216835262010000820481169483019490945264010000000090049092169282019290925260018201546060820152600290910154608082015290565b3360008181526001602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906113209085906123c8565b60405180910390a35050565b60025460ff161561134f5760405162461bcd60e51b815260040161066c90612e4b565b3360009081526007602052604090205460ff1661137e5760405162461bcd60e51b815260040161066c90612e8d565b60008481526005602052604090205461ffff64010000000082048116916113a791859116612eb3565b61ffff1611156113c95760405162461bcd60e51b815260040161066c90613800565b8261146f576008546000858152600560205260409020600101546001600160a01b03909116906323b872dd90329030906114089061ffff881690613738565b6040518463ffffffff1660e01b815260040161142693929190613613565b6020604051808303816000875af1158015611445573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114699190613646565b506114fd565b6009546000858152600560205260409020600201546001600160a01b039091169063f242432a903290309087906114ab9061ffff891690613738565b6040518563ffffffff1660e01b81526004016114ca9493929190613810565b600060405180830381600087803b1580156114e457600080fd5b505af11580156114f8573d6000803e3d6000fd5b505050505b6000848152600560205260408120805484929061151f90849061ffff16612eb3565b92506101000a81548161ffff021916908361ffff16021790555061155881858461ffff16604051806020016040528060008152506120df565b50505050565b6003546001600160a01b0316331461157557600080fd5b600061158360646014613724565b600a546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906370a08231906115cc903090600401612987565b602060405180830381865afa1580156115e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160d919061343b565b6116179190613738565b600a546040517f70a0823100000000000000000000000000000000000000000000000000000000815291925060009183916001600160a01b0316906370a0823190611666903090600401612987565b602060405180830381865afa158015611683573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a7919061343b565b6116b191906134f6565b600a546002546040517f23b872dd0000000000000000000000000000000000000000000000000000000081529293506001600160a01b03918216926323b872dd9261170c923092610100909104909116908790600401613613565b6020604051808303816000875af115801561172b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174f9190613646565b50600a546040517f9dc29fac0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690639dc29fac9061179b9030908590600401613415565b600060405180830381600087803b1580156117b557600080fd5b505af1158015610cf7573d6000803e3d6000fd5b6003546001600160a01b031633146117e057600080fd5b60008281526005602052604090205461ffff808316911611156118155760405162461bcd60e51b815260040161066c9061386a565b600091825260056020526040909120805461ffff909216640100000000027fffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffffffff909216919091179055565b6003546001600160a01b0316331461187657600080fd5b600880546001600160a01b039384167fffffffffffffffffffffffff00000000000000000000000000000000000000009182168117909255600980549390941692811692909217909255600a80549091169091179055565b6003546001600160a01b031633146118e557600080fd5b600280546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b3360009081526007602052604090205460ff1661199157336001600160a01b038616148061197557506001600160a01b038516600090815260016020908152604080832033845290915290205460ff165b6119915760405162461bcd60e51b815260040161066c906134d0565b6001600160a01b038516600090815260208181526040808320868452909152812080548492906119c29084906134f6565b90915550506001600160a01b038416600090815260208181526040808320868452909152812080548492906119f890849061350d565b92505081905550836001600160a01b0316856001600160a01b0316336001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628686604051611a4e92919061387a565b60405180910390a46001600160a01b0384163b15611aef5760405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e6190611a9c9033908a90899089908990600401613888565b6020604051808303816000875af1158015611abb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611adf91906135b0565b6001600160e01b03191614611afc565b6001600160a01b03841615155b6110145760405162461bcd60e51b815260040161066c90613603565b600660205260009081526040902080548190611b3390612f34565b80601f0160208091040260200160405190810160405280929190818152602001828054611b5f90612f34565b8015611bac5780601f10611b8157610100808354040283529160200191611bac565b820191906000526020600020905b815481529060010190602001808311611b8f57829003601f168201915b505050505090806001018054611bc190612f34565b80601f0160208091040260200160405190810160405280929190818152602001828054611bed90612f34565b8015611c3a5780601f10611c0f57610100808354040283529160200191611c3a565b820191906000526020600020905b815481529060010190602001808311611c1d57829003601f168201915b5050505050905082565b6001600160a01b03831660009081526020818152604080832085845290915281208054839290611c759084906134f6565b90915550506040516000906001600160a01b0385169033907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6290611cbc908790879061387a565b60405180910390a4505050565b60606000611e1760066000858152602001908152602001600020604051806040016040529081600082018054611cfe90612f34565b80601f0160208091040260200160405190810160405280929190818152602001828054611d2a90612f34565b8015611d775780601f10611d4c57610100808354040283529160200191611d77565b820191906000526020600020905b815481529060010190602001808311611d5a57829003601f168201915b50505050508152602001600182018054611d9090612f34565b80601f0160208091040260200160405190810160405280929190818152602001828054611dbc90612f34565b8015611e095780601f10611dde57610100808354040283529160200191611e09565b820191906000526020600020905b815481529060010190602001808311611dec57829003601f168201915b505050505081525050612222565b604051602001611e2791906138cf565b604051602081830303815290604052905080604051602001611e4991906138d9565b604051602081830303815290604052915050919050565b6060815160001415611e8057505060408051602081019091526000815290565b6000604051806060016040528060408152602001613b2e6040913990506000600384516002611eaf919061350d565b611eb99190613724565b611ec4906004613738565b90506000611ed382602061350d565b67ffffffffffffffff811115611eeb57611eeb612566565b6040519080825280601f01601f191660200182016040528015611f15576020820181803683370190505b509050818152600183018586518101602084015b81831015611f835760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401611f29565b600389510660018114611f9d5760028114611fe75761200f565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe83015261200f565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b509398975050505050505050565b60025460ff16156120405760405162461bcd60e51b815260040161066c90612e4b565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120753390565b6040516120829190612987565b60405180910390a1565b60025460ff166120ae5760405162461bcd60e51b815260040161066c90613a27565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612075565b6001600160a01b0384166000908152602081815260408083208684529091528120805484929061211090849061350d565b90915550506040516001600160a01b0385169060009033907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6290612157908890889061387a565b60405180910390a46001600160a01b0384163b156121f95760405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e61906121a6903390600090899089908990600401613888565b6020604051808303816000875af11580156121c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e991906135b0565b6001600160e01b03191614612206565b6001600160a01b03841615155b6115585760405162461bcd60e51b815260040161066c90613603565b606081602001516040516020016122399190613a37565b6040516020818303038152906040529050919050565b82805461225b90612f34565b90600052602060002090601f01602090048101928261227d57600085556122c3565b82601f1061229657805160ff19168380011785556122c3565b828001600101855582156122c3579182015b828111156122c35782518255916020019190600101906122a8565b506122cf9291506122d3565b5090565b5b808211156122cf57600081556001016122d4565b60006001600160a01b038216610643565b612302816122e8565b811461099657600080fd5b8035610643816122f9565b80612302565b803561064381612318565b6000806040838503121561233f5761233f600080fd5b600061234b858561230d565b925050602061235c8582860161231e565b9150509250929050565b805b82525050565b602081016106438284612366565b6001600160e01b03198116612302565b80356106438161237c565b6000602082840312156123ac576123ac600080fd5b60006123b8848461238c565b949350505050565b801515612368565b6020810161064382846123c0565b61ffff8116612302565b8035610643816123d6565b60008060006060848603121561240357612403600080fd5b600061240f868661231e565b9350506020612420868287016123e0565b92505060406124318682870161230d565b9150509250925092565b60006020828403121561245057612450600080fd5b60006123b8848461231e565b60005b8381101561247757818101518382015260200161245f565b838111156115585750506000910152565b6000612492825190565b8084526020840193506124a981856020860161245c565b601f01601f19169290920192915050565b60208082528101610a598184612488565b6000806000606084860312156124e3576124e3600080fd5b60006124ef868661231e565b93505060206125008682870161231e565b92505060406124318682870161231e565b801515612302565b803561064381612511565b60006020828403121561253957612539600080fd5b60006123b88484612519565b60006020828403121561255a5761255a600080fd5b60006123b8848461230d565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff821117156125a2576125a2612566565b6040525050565b60006125b460405190565b90506125c0828261257c565b919050565b600067ffffffffffffffff8211156125df576125df612566565b5060209081020190565b60006125fc6125f7846125c5565b6125a9565b8381529050602080820190840283018581111561261b5761261b600080fd5b835b8181101561263d5761262f878261231e565b83526020928301920161261d565b5050509392505050565b600082601f83011261265b5761265b600080fd5b81356123b88482602086016125e9565b600067ffffffffffffffff82111561268557612685612566565b601f19601f83011660200192915050565b82818337506000910152565b60006126b06125f78461266b565b9050828152602081018484840111156126cb576126cb600080fd5b6126d6848285612696565b509392505050565b600082601f8301126126f2576126f2600080fd5b81356123b88482602086016126a2565b600080600080600060a0868803121561271d5761271d600080fd5b6000612729888861230d565b955050602061273a8882890161230d565b945050604086013567ffffffffffffffff81111561275a5761275a600080fd5b61276688828901612647565b935050606086013567ffffffffffffffff81111561278657612786600080fd5b61279288828901612647565b925050608086013567ffffffffffffffff8111156127b2576127b2600080fd5b6127be888289016126de565b9150509295509295909350565b60006127d96125f7846125c5565b838152905060208082019084028301858111156127f8576127f8600080fd5b835b8181101561263d5761280c878261230d565b8352602092830192016127fa565b600082601f83011261282e5761282e600080fd5b81356123b88482602086016127cb565b6000806040838503121561285457612854600080fd5b823567ffffffffffffffff81111561286e5761286e600080fd5b61287a8582860161281a565b925050602083013567ffffffffffffffff81111561289a5761289a600080fd5b61235c85828601612647565b6128b08282612366565b5060200190565b60200190565b60006128c7825190565b808452602093840193830160005b828110156128fa5781516128e987826128a6565b9650506020820191506001016128d5565b5093949350505050565b60208082528101610a5981846128bd565b60006040828403121561292a5761292a600080fd5b50919050565b6000806040838503121561294657612946600080fd5b6000612952858561231e565b925050602083013567ffffffffffffffff81111561297257612972600080fd5b61235c85828601612915565b612368816122e8565b60208101610643828461297e565b6000602082840312156129aa576129aa600080fd5b60006123b884846123e0565b61ffff8116612368565b80516129cc83826129b6565b5060208101516129df60208401826129b6565b5060408101516129f260408401826129b6565b506060810151612a056060840182612366565b5060808101516106f86080840182612366565b60a0810161064382846129c0565b60008060408385031215612a3c57612a3c600080fd5b6000612a48858561230d565b925050602061235c85828601612519565b60008060408385031215612a6f57612a6f600080fd5b6000612a7b858561230d565b925050602061235c8582860161230d565b60006106436001600160a01b038316612aa3565b90565b6001600160a01b031690565b600061064382612a8c565b600061064382612aaf565b61236881612aba565b602081016106438284612ac5565b60008060008060808587031215612af557612af5600080fd5b6000612b01878761231e565b9450506020612b128782880161231e565b9350506040612b23878288016123e0565b9250506060612b348782880161230d565b91505092959194509250565b60008083601f840112612b5557612b55600080fd5b50813567ffffffffffffffff811115612b7057612b70600080fd5b602083019150836020820283011115612b8b57612b8b600080fd5b9250929050565b60008083601f840112612ba757612ba7600080fd5b50813567ffffffffffffffff811115612bc257612bc2600080fd5b602083019150836001820283011115612b8b57612b8b600080fd5b60008060008060008060008060a0898b031215612bfc57612bfc600080fd5b6000612c088b8b61230d565b9850506020612c198b828c0161230d565b975050604089013567ffffffffffffffff811115612c3957612c39600080fd5b612c458b828c01612b40565b9650965050606089013567ffffffffffffffff811115612c6757612c67600080fd5b612c738b828c01612b40565b9450945050608089013567ffffffffffffffff811115612c9557612c95600080fd5b612ca18b828c01612b92565b92509250509295985092959890939650565b6001600160e01b03198116612368565b602081016106438284612cb3565b60008060408385031215612ce757612ce7600080fd5b6000612cf3858561231e565b925050602061235c858286016123e0565b60008060008060008060a08789031215612d2057612d20600080fd5b6000612d2c898961230d565b9650506020612d3d89828a0161230d565b9550506040612d4e89828a0161231e565b9450506060612d5f89828a0161231e565b935050608087013567ffffffffffffffff811115612d7f57612d7f600080fd5b612d8b89828a01612b92565b92509250509295509295509295565b600080600080600060a08688031215612db557612db5600080fd5b6000612dc1888861230d565b9550506020612dd28882890161230d565b9450506040612de38882890161231e565b93505060606127928882890161231e565b60408082528101612e058185612488565b905081810360208301526123b88184612488565b60108152602081017f5061757361626c653a2070617573656400000000000000000000000000000000815290506128b7565b6020808252810161064381612e19565b60198152602081017f4f6e6c792061646d696e732063616e2063616c6c207468697300000000000000815290506128b7565b6020808252810161064381612e5b565b634e487b7160e01b600052601160045260246000fd5b61ffff8116905061ffff8216915060008261ffff03821115612ed757612ed7612e9d565b500190565b600c8152602081017f696e76616c696420747970650000000000000000000000000000000000000000815290506128b7565b6020808252810161064381612edc565b634e487b7160e01b600052602260045260246000fd5b600281046001821680612f4857607f821691505b6020821081141561292a5761292a612f1e565b6000612f65825190565b612f7381856020860161245c565b9290920192915050565b7f7b226e616d65223a2022000000000000000000000000000000000000000000008152600a01612fad8184612f5b565b7f222c20226465736372697074696f6e223a2022546865204775696c64204c6f7281527f6473206f662050797468656173206172652066656172656420666f722074686560208201527f697220727574686c6573732063756e6e696e6720616e6420656e74657270726960408201527f73696e6720746563686e6f6c6f676963616c20616476616e63656d656e74732e60608201527f205468657920616c6f6e652068617665206861726e657373656420746865207060808201527f6f776572206f662061206479696e67207374617220746f20706f77657220612060a08201527f6d616e206d61646520706c616e657420746861742070726f636573736573204560c08201527f4f4e2e2052756d6f72206861732069742074686174207468657920616c736f2060e08201527f646162626c6520696e2074686520736861646f7773206173206120626c61636b6101008201527f206d61726b6574206465616c6572206f66206861726420746f2066696e6420616101208201527f727469666163747320616e64206d6967687420656e7465727461696e20796f756101408201527f72206f6666657220666f72207468652072696768742070726963652c206275746101608201527f206265207375726520746f207472656164206c696768746c79206173207468656101808201527f7920636f6e74726f6c20657665727920617370656374206f66207468652065636101a08201527f6f6e6f6d7920696e207468697320737461722073797374656d2e20596f7520776101c08201527f6f756c64206265206120666f6f6c20746f2061727269766520656d70747920686101e08201527f616e64656420696e20616e79206e65676f74696174696f6e20776974682074686102008201527f656d2e20416c6c20746865206d6574616461746120616e6420696d61676573206102208201527f6172652067656e65726174656420616e642073746f7265642031303025206f6e6102408201527f2d636861696e2e204e6f20495046532e204e4f204150492e204a7573742074686102608201527f6520457468657265756d20626c6f636b636861696e2e222c2022696d616765226102808201527f3a2022646174613a696d6167652f7376672b786d6c3b6261736536342c0000006102a08201526102bd01905061330c8183612f5b565b7f222c202261747472696275746573223a205b5d0000000000000000000000000081527f7d00000000000000000000000000000000000000000000000000000000000000601382019081529150601401610a59565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d016106438183612f5b565b601d8152602081017f74686973207479706520686173206e6f74206265656e20736574207570000000815290506128b7565b6020808252810161064381613391565b60118152602081017f436f6e747261637473206e6f7420736574000000000000000000000000000000815290506128b7565b60208082528101610643816133d3565b60408101613423828561297e565b610a596020830184612366565b805161064381612318565b60006020828403121561345057613450600080fd5b60006123b88484613430565b600f8152602081017f4c454e4754485f4d49534d415443480000000000000000000000000000000000815290506128b7565b602080825281016106438161345c565b600e8152602081017f4e4f545f415554484f52495a4544000000000000000000000000000000000000815290506128b7565b602080825281016106438161349e565b634e487b7160e01b600052603260045260246000fd5b60008282101561350857613508612e9d565b500390565b60008219821115612ed757612ed7612e9d565b6040808252810161353181856128bd565b905081810360208301526123b881846128bd565b60a08101613553828861297e565b613560602083018761297e565b818103604083015261357281866128bd565b9050818103606083015261358681856128bd565b9050818103608083015261359a8184612488565b979650505050505050565b80516106438161237c565b6000602082840312156135c5576135c5600080fd5b60006123b884846135a5565b60108152602081017f554e534146455f524543495049454e5400000000000000000000000000000000815290506128b7565b60208082528101610643816135d1565b60608101613621828661297e565b61362e602083018561297e565b6123b86040830184612366565b805161064381612511565b60006020828403121561365b5761365b600080fd5b60006123b8848461363b565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1368590030181126136a0576136a0600080fd5b8301915050803567ffffffffffffffff8111156136bf576136bf600080fd5b602082019150600181023603821315612b8b57612b8b600080fd5b6000610643612aa061ffff841681565b612368816136da565b60408101613701828561297e565b610a5960208301846136ea565b634e487b7160e01b600052601260045260246000fd5b6000826137335761373361370e565b500490565b600081600019048311821515161561375257613752612e9d565b500290565b60a08101613765828761297e565b613772602083018661297e565b61377f60408301856136ea565b61378c6060830184612366565b818103608083015260008152602081019695505050505050565b606081016137b482866136ea565b6137c16020830185612366565b6123b8604083018461297e565b60118152602081017f416c6c20746f6b656e73206d696e746564000000000000000000000000000000815290506128b7565b60208082528101610643816137ce565b60a0810161381e828761297e565b61382b602083018661297e565b61377f6040830185612366565b60128152602081017f6d617820737570706c7920746f6f206c6f770000000000000000000000000000815290506128b7565b6020808252810161064381613838565b604081016134238285612366565b60a08101613896828861297e565b6138a3602083018761297e565b6138b06040830186612366565b6138bd6060830185612366565b818103608083015261359a8184612488565b6106438183612f5b565b7f3c7376672069643d22496d70657269616c4775696c64222077696474683d223181527f30302522206865696768743d2231303025222076657273696f6e3d22312e312260208201527f2076696577426f783d223020302036342036342220786d6c6e733d226874747060408201527f3a2f2f7777772e77332e6f72672f323030302f7376672220786d6c6e733a786c60608201527f696e6b3d22687474703a2f2f7777772e77332e6f72672f313939392f786c696e60808201527f6b223e000000000000000000000000000000000000000000000000000000000060a082015260a3016139c78183612f5b565b7f3c2f7376673e00000000000000000000000000000000000000000000000000008152905060068101610643565b60148152602081017f5061757361626c653a206e6f7420706175736564000000000000000000000000815290506128b7565b60208082528101610643816139f5565b7f3c696d61676520783d22302220793d2230222077696474683d2236342220686581527f696768743d2236342220696d6167652d72656e646572696e673d22706978656c60208201527f6174656422207072657365727665417370656374526174696f3d22784d69645960408201527f4d69642220786c696e6b3a687265663d22646174613a696d6167652f706e673b60608201527f6261736536342c000000000000000000000000000000000000000000000000006080820152608701613aff8183612f5b565b7f222f3e0000000000000000000000000000000000000000000000000000000000815290506003810161064356fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220c9005492339bfd53cbe433e002a12eb30e90df18bb5f822523981fe44b050fd264736f6c634300080b0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102405760003560e01c806399dad9a011610145578063c8122729116100bd578063e79df0d11161008c578063f23a6e6111610071578063f23a6e6114610558578063f242432a14610578578063f6bb451f1461058b57600080fd5b8063e79df0d114610517578063e985e9c51461052a57600080fd5b8063c8122729146104cb578063d8952a49146104de578063de9375f2146104f1578063e3b47b2c1461050457600080fd5b8063b120f5ed11610114578063bc197c81116100f9578063bc197c8114610481578063bd7b3f54146104b0578063c096a632146104b857600080fd5b8063b120f5ed1461044e578063b4c025d91461046e57600080fd5b806399dad9a0146103cc5780639ca0f29b146103df578063a22cb465146103ff578063a389783e1461041257600080fd5b80632b04e840116101d857806365c550cb116101a75780637d26c78c1161018c5780637d26c78c14610397578063850f98b6146103aa5780638da5cb5b146103b257600080fd5b806365c550cb14610371578063704802751461038457600080fd5b80632b04e840146103205780632eb2c2d6146103335780634e1273f4146103465780635c975abb1461036657600080fd5b8063165a816211610214578063165a8162146102d857806316c38b3c146102eb5780631785f53c146102fe5780631b3ed7221461031157600080fd5b8062fdd58e1461024557806301ffc9a71461028357806306e7b953146102a35780630e89341c146102b8575b600080fd5b61026d610253366004612329565b600060208181529281526040808220909352908152205481565b60405161027a919061236e565b60405180910390f35b610296610291366004612397565b6105ac565b60405161027a91906123c8565b6102b66102b13660046123eb565b610649565b005b6102cb6102c636600461243b565b6106fd565b60405161027a91906124ba565b6102b66102e63660046124cb565b6108de565b6102b66102f9366004612524565b610949565b6102b661030c366004612545565b6109a1565b61026d670de0b6b3a764000081565b61026d61032e366004612329565b6109d9565b6102b6610341366004612702565b610a60565b61035961035436600461283e565b610cff565b60405161027a9190612904565b60025460ff16610296565b6102b661037f36600461243b565b610e0b565b6102b6610392366004612545565b610ef1565b6102b66103a5366004612930565b610f2c565b61026d601481565b6003546001600160a01b03165b60405161027a9190612987565b6102b66103da366004612995565b61101b565b6103f26103ed36600461243b565b6111fd565b60405161027a9190612a18565b6102b661040d366004612a26565b6112bd565b610296610420366004612a59565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b600a54610461906001600160a01b031681565b60405161027a9190612ace565b6102b661047c366004612adc565b61132c565b6104a361048f366004612bdd565b63f23a6e6160e01b98975050505050505050565b60405161027a9190612cc3565b6102b661155e565b600954610461906001600160a01b031681565b6102b66104d9366004612cd1565b6117c9565b6102b66104ec366004612a59565b61185f565b6003546103bf906001600160a01b031681565b6102b6610512366004612545565b6118ce565b600854610461906001600160a01b031681565b610296610538366004612a59565b600160209081526000928352604080842090915290825290205460ff1681565b6104a3610566366004612d04565b63f23a6e6160e01b9695505050505050565b6102b6610586366004612d9a565b611924565b61059e61059936600461243b565b611b18565b60405161027a929190612df4565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316148061060f57507fd9b67a26000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b8061064357507f0e89341c000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60025460ff16156106755760405162461bcd60e51b815260040161066c90612e4b565b60405180910390fd5b3360009081526007602052604090205460ff166106a45760405162461bcd60e51b815260040161066c90612e8d565b600083815260056020526040902080548391906002906106cf90849062010000900461ffff16612eb3565b92506101000a81548161ffff021916908361ffff1602179055506106f881848461ffff16611c44565b505050565b600081815260056020526040902054606090640100000000900461ffff166107375760405162461bcd60e51b815260040161066c90612f0e565b600082815260066020526040808220815180830190925280548290829061075d90612f34565b80601f016020809104026020016040519081016040528092919081815260200182805461078990612f34565b80156107d65780601f106107ab576101008083540402835291602001916107d6565b820191906000526020600020905b8154815290600101906020018083116107b957829003601f168201915b505050505081526020016001820180546107ef90612f34565b80601f016020809104026020016040519081016040528092919081815260200182805461081b90612f34565b80156108685780601f1061083d57610100808354040283529160200191610868565b820191906000526020600020905b81548152906001019060200180831161084b57829003601f168201915b50505050508152505090506000816000015161088b61088686611cc9565b611e60565b60405160200161089c929190612f7d565b60405160208183030381529060405290506108b681611e60565b6040516020016108c69190613361565b60405160208183030381529060405292505050919050565b6003546001600160a01b031633146108f557600080fd5b600083815260056020526040902054640100000000900461ffff1661092c5760405162461bcd60e51b815260040161066c906133c3565b600092835260056020526040909220600181019190915560020155565b6003546001600160a01b0316331461096057600080fd5b6008546001600160a01b03166109885760405162461bcd60e51b815260040161066c90613405565b80156109995761099661201d565b50565b61099661208c565b6003546001600160a01b031633146109b857600080fd5b6001600160a01b03166000908152600760205260409020805460ff19169055565b6040517efdd58e000000000000000000000000000000000000000000000000000000008152600090309062fdd58e90610a189086908690600401613415565b602060405180830381865afa158015610a35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a59919061343b565b9392505050565b825182518114610a825760405162461bcd60e51b815260040161066c9061348e565b3360009081526007602052604090205460ff16610aef57336001600160a01b0387161480610ad357506001600160a01b038616600090815260016020908152604080832033845290915290205460ff165b610aef5760405162461bcd60e51b815260040161066c906134d0565b60005b81811015610bc4576000858281518110610b0e57610b0e6134e0565b602002602001015190506000858381518110610b2c57610b2c6134e0565b60200260200101519050806000808b6001600160a01b03166001600160a01b0316815260200190815260200160002060008481526020019081526020016000206000828254610b7b91906134f6565b90915550506001600160a01b03881660009081526020818152604080832085845290915281208054839290610bb190849061350d565b909155505060019092019150610af29050565b50846001600160a01b0316866001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610c14929190613520565b60405180910390a46001600160a01b0385163b15610cce576040517fbc197c8100000000000000000000000000000000000000000000000000000000808252906001600160a01b0387169063bc197c8190610c7b9033908b908a908a908a90600401613545565b6020604051808303816000875af1158015610c9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cbe91906135b0565b6001600160e01b03191614610cdb565b6001600160a01b03851615155b610cf75760405162461bcd60e51b815260040161066c90613603565b505050505050565b81518151606091908114610d255760405162461bcd60e51b815260040161066c9061348e565b835167ffffffffffffffff811115610d3f57610d3f612566565b604051908082528060200260200182016040528015610d68578160200160208202803683370190505b50915060005b81811015610e0357600080868381518110610d8b57610d8b6134e0565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000858381518110610dc757610dc76134e0565b6020026020010151815260200190815260200160002054838281518110610df057610df06134e0565b6020908102919091010152600101610d6e565b505092915050565b60025460ff1615610e2e5760405162461bcd60e51b815260040161066c90612e4b565b3360009081526007602052604090205460ff16610e5d5760405162461bcd60e51b815260040161066c90612e8d565b6008546040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906323b872dd90610eaa90329030908690600401613613565b6020604051808303816000875af1158015610ec9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eed9190613646565b5050565b6003546001600160a01b03163314610f0857600080fd5b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6003546001600160a01b03163314610f4357600080fd5b6040805180820190915280610f588380613667565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250505090825250602090810190610fa190840184613667565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525093909452505084815260066020908152604090912083518051919350610ffb92849291019061224f565b506020828101518051611014926001850192019061224f565b5050505050565b6003546001600160a01b0316331461103257600080fd5b6009546040517f2b04e8400000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690632b04e8409061107e90309086906004016136f3565b6020604051808303816000875af115801561109d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c1919061343b565b905060006110d160646014613724565b6110db9083613738565b905060006110e982846134f6565b6009546002546040517ff242432a0000000000000000000000000000000000000000000000000000000081529293506001600160a01b039182169263f242432a926111469230926101009091049091169089908890600401613757565b600060405180830381600087803b15801561116057600080fd5b505af1158015611174573d6000803e3d6000fd5b50506009546040517f749388c40000000000000000000000000000000000000000000000000000000081526001600160a01b03909116925063749388c491506111c5908790859030906004016137a6565b600060405180830381600087803b1580156111df57600080fd5b505af11580156111f3573d6000803e3d6000fd5b5050505050505050565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600082815260056020526040902054640100000000900461ffff1661125f5760405162461bcd60e51b815260040161066c90612f0e565b50600090815260056020908152604091829020825160a081018452815461ffff808216835262010000820481169483019490945264010000000090049092169282019290925260018201546060820152600290910154608082015290565b3360008181526001602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906113209085906123c8565b60405180910390a35050565b60025460ff161561134f5760405162461bcd60e51b815260040161066c90612e4b565b3360009081526007602052604090205460ff1661137e5760405162461bcd60e51b815260040161066c90612e8d565b60008481526005602052604090205461ffff64010000000082048116916113a791859116612eb3565b61ffff1611156113c95760405162461bcd60e51b815260040161066c90613800565b8261146f576008546000858152600560205260409020600101546001600160a01b03909116906323b872dd90329030906114089061ffff881690613738565b6040518463ffffffff1660e01b815260040161142693929190613613565b6020604051808303816000875af1158015611445573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114699190613646565b506114fd565b6009546000858152600560205260409020600201546001600160a01b039091169063f242432a903290309087906114ab9061ffff891690613738565b6040518563ffffffff1660e01b81526004016114ca9493929190613810565b600060405180830381600087803b1580156114e457600080fd5b505af11580156114f8573d6000803e3d6000fd5b505050505b6000848152600560205260408120805484929061151f90849061ffff16612eb3565b92506101000a81548161ffff021916908361ffff16021790555061155881858461ffff16604051806020016040528060008152506120df565b50505050565b6003546001600160a01b0316331461157557600080fd5b600061158360646014613724565b600a546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906370a08231906115cc903090600401612987565b602060405180830381865afa1580156115e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160d919061343b565b6116179190613738565b600a546040517f70a0823100000000000000000000000000000000000000000000000000000000815291925060009183916001600160a01b0316906370a0823190611666903090600401612987565b602060405180830381865afa158015611683573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a7919061343b565b6116b191906134f6565b600a546002546040517f23b872dd0000000000000000000000000000000000000000000000000000000081529293506001600160a01b03918216926323b872dd9261170c923092610100909104909116908790600401613613565b6020604051808303816000875af115801561172b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174f9190613646565b50600a546040517f9dc29fac0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690639dc29fac9061179b9030908590600401613415565b600060405180830381600087803b1580156117b557600080fd5b505af1158015610cf7573d6000803e3d6000fd5b6003546001600160a01b031633146117e057600080fd5b60008281526005602052604090205461ffff808316911611156118155760405162461bcd60e51b815260040161066c9061386a565b600091825260056020526040909120805461ffff909216640100000000027fffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffffffff909216919091179055565b6003546001600160a01b0316331461187657600080fd5b600880546001600160a01b039384167fffffffffffffffffffffffff00000000000000000000000000000000000000009182168117909255600980549390941692811692909217909255600a80549091169091179055565b6003546001600160a01b031633146118e557600080fd5b600280546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b3360009081526007602052604090205460ff1661199157336001600160a01b038616148061197557506001600160a01b038516600090815260016020908152604080832033845290915290205460ff165b6119915760405162461bcd60e51b815260040161066c906134d0565b6001600160a01b038516600090815260208181526040808320868452909152812080548492906119c29084906134f6565b90915550506001600160a01b038416600090815260208181526040808320868452909152812080548492906119f890849061350d565b92505081905550836001600160a01b0316856001600160a01b0316336001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628686604051611a4e92919061387a565b60405180910390a46001600160a01b0384163b15611aef5760405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e6190611a9c9033908a90899089908990600401613888565b6020604051808303816000875af1158015611abb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611adf91906135b0565b6001600160e01b03191614611afc565b6001600160a01b03841615155b6110145760405162461bcd60e51b815260040161066c90613603565b600660205260009081526040902080548190611b3390612f34565b80601f0160208091040260200160405190810160405280929190818152602001828054611b5f90612f34565b8015611bac5780601f10611b8157610100808354040283529160200191611bac565b820191906000526020600020905b815481529060010190602001808311611b8f57829003601f168201915b505050505090806001018054611bc190612f34565b80601f0160208091040260200160405190810160405280929190818152602001828054611bed90612f34565b8015611c3a5780601f10611c0f57610100808354040283529160200191611c3a565b820191906000526020600020905b815481529060010190602001808311611c1d57829003601f168201915b5050505050905082565b6001600160a01b03831660009081526020818152604080832085845290915281208054839290611c759084906134f6565b90915550506040516000906001600160a01b0385169033907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6290611cbc908790879061387a565b60405180910390a4505050565b60606000611e1760066000858152602001908152602001600020604051806040016040529081600082018054611cfe90612f34565b80601f0160208091040260200160405190810160405280929190818152602001828054611d2a90612f34565b8015611d775780601f10611d4c57610100808354040283529160200191611d77565b820191906000526020600020905b815481529060010190602001808311611d5a57829003601f168201915b50505050508152602001600182018054611d9090612f34565b80601f0160208091040260200160405190810160405280929190818152602001828054611dbc90612f34565b8015611e095780601f10611dde57610100808354040283529160200191611e09565b820191906000526020600020905b815481529060010190602001808311611dec57829003601f168201915b505050505081525050612222565b604051602001611e2791906138cf565b604051602081830303815290604052905080604051602001611e4991906138d9565b604051602081830303815290604052915050919050565b6060815160001415611e8057505060408051602081019091526000815290565b6000604051806060016040528060408152602001613b2e6040913990506000600384516002611eaf919061350d565b611eb99190613724565b611ec4906004613738565b90506000611ed382602061350d565b67ffffffffffffffff811115611eeb57611eeb612566565b6040519080825280601f01601f191660200182016040528015611f15576020820181803683370190505b509050818152600183018586518101602084015b81831015611f835760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401611f29565b600389510660018114611f9d5760028114611fe75761200f565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe83015261200f565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b509398975050505050505050565b60025460ff16156120405760405162461bcd60e51b815260040161066c90612e4b565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120753390565b6040516120829190612987565b60405180910390a1565b60025460ff166120ae5760405162461bcd60e51b815260040161066c90613a27565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612075565b6001600160a01b0384166000908152602081815260408083208684529091528120805484929061211090849061350d565b90915550506040516001600160a01b0385169060009033907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6290612157908890889061387a565b60405180910390a46001600160a01b0384163b156121f95760405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e61906121a6903390600090899089908990600401613888565b6020604051808303816000875af11580156121c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e991906135b0565b6001600160e01b03191614612206565b6001600160a01b03841615155b6115585760405162461bcd60e51b815260040161066c90613603565b606081602001516040516020016122399190613a37565b6040516020818303038152906040529050919050565b82805461225b90612f34565b90600052602060002090601f01602090048101928261227d57600085556122c3565b82601f1061229657805160ff19168380011785556122c3565b828001600101855582156122c3579182015b828111156122c35782518255916020019190600101906122a8565b506122cf9291506122d3565b5090565b5b808211156122cf57600081556001016122d4565b60006001600160a01b038216610643565b612302816122e8565b811461099657600080fd5b8035610643816122f9565b80612302565b803561064381612318565b6000806040838503121561233f5761233f600080fd5b600061234b858561230d565b925050602061235c8582860161231e565b9150509250929050565b805b82525050565b602081016106438284612366565b6001600160e01b03198116612302565b80356106438161237c565b6000602082840312156123ac576123ac600080fd5b60006123b8848461238c565b949350505050565b801515612368565b6020810161064382846123c0565b61ffff8116612302565b8035610643816123d6565b60008060006060848603121561240357612403600080fd5b600061240f868661231e565b9350506020612420868287016123e0565b92505060406124318682870161230d565b9150509250925092565b60006020828403121561245057612450600080fd5b60006123b8848461231e565b60005b8381101561247757818101518382015260200161245f565b838111156115585750506000910152565b6000612492825190565b8084526020840193506124a981856020860161245c565b601f01601f19169290920192915050565b60208082528101610a598184612488565b6000806000606084860312156124e3576124e3600080fd5b60006124ef868661231e565b93505060206125008682870161231e565b92505060406124318682870161231e565b801515612302565b803561064381612511565b60006020828403121561253957612539600080fd5b60006123b88484612519565b60006020828403121561255a5761255a600080fd5b60006123b8848461230d565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff821117156125a2576125a2612566565b6040525050565b60006125b460405190565b90506125c0828261257c565b919050565b600067ffffffffffffffff8211156125df576125df612566565b5060209081020190565b60006125fc6125f7846125c5565b6125a9565b8381529050602080820190840283018581111561261b5761261b600080fd5b835b8181101561263d5761262f878261231e565b83526020928301920161261d565b5050509392505050565b600082601f83011261265b5761265b600080fd5b81356123b88482602086016125e9565b600067ffffffffffffffff82111561268557612685612566565b601f19601f83011660200192915050565b82818337506000910152565b60006126b06125f78461266b565b9050828152602081018484840111156126cb576126cb600080fd5b6126d6848285612696565b509392505050565b600082601f8301126126f2576126f2600080fd5b81356123b88482602086016126a2565b600080600080600060a0868803121561271d5761271d600080fd5b6000612729888861230d565b955050602061273a8882890161230d565b945050604086013567ffffffffffffffff81111561275a5761275a600080fd5b61276688828901612647565b935050606086013567ffffffffffffffff81111561278657612786600080fd5b61279288828901612647565b925050608086013567ffffffffffffffff8111156127b2576127b2600080fd5b6127be888289016126de565b9150509295509295909350565b60006127d96125f7846125c5565b838152905060208082019084028301858111156127f8576127f8600080fd5b835b8181101561263d5761280c878261230d565b8352602092830192016127fa565b600082601f83011261282e5761282e600080fd5b81356123b88482602086016127cb565b6000806040838503121561285457612854600080fd5b823567ffffffffffffffff81111561286e5761286e600080fd5b61287a8582860161281a565b925050602083013567ffffffffffffffff81111561289a5761289a600080fd5b61235c85828601612647565b6128b08282612366565b5060200190565b60200190565b60006128c7825190565b808452602093840193830160005b828110156128fa5781516128e987826128a6565b9650506020820191506001016128d5565b5093949350505050565b60208082528101610a5981846128bd565b60006040828403121561292a5761292a600080fd5b50919050565b6000806040838503121561294657612946600080fd5b6000612952858561231e565b925050602083013567ffffffffffffffff81111561297257612972600080fd5b61235c85828601612915565b612368816122e8565b60208101610643828461297e565b6000602082840312156129aa576129aa600080fd5b60006123b884846123e0565b61ffff8116612368565b80516129cc83826129b6565b5060208101516129df60208401826129b6565b5060408101516129f260408401826129b6565b506060810151612a056060840182612366565b5060808101516106f86080840182612366565b60a0810161064382846129c0565b60008060408385031215612a3c57612a3c600080fd5b6000612a48858561230d565b925050602061235c85828601612519565b60008060408385031215612a6f57612a6f600080fd5b6000612a7b858561230d565b925050602061235c8582860161230d565b60006106436001600160a01b038316612aa3565b90565b6001600160a01b031690565b600061064382612a8c565b600061064382612aaf565b61236881612aba565b602081016106438284612ac5565b60008060008060808587031215612af557612af5600080fd5b6000612b01878761231e565b9450506020612b128782880161231e565b9350506040612b23878288016123e0565b9250506060612b348782880161230d565b91505092959194509250565b60008083601f840112612b5557612b55600080fd5b50813567ffffffffffffffff811115612b7057612b70600080fd5b602083019150836020820283011115612b8b57612b8b600080fd5b9250929050565b60008083601f840112612ba757612ba7600080fd5b50813567ffffffffffffffff811115612bc257612bc2600080fd5b602083019150836001820283011115612b8b57612b8b600080fd5b60008060008060008060008060a0898b031215612bfc57612bfc600080fd5b6000612c088b8b61230d565b9850506020612c198b828c0161230d565b975050604089013567ffffffffffffffff811115612c3957612c39600080fd5b612c458b828c01612b40565b9650965050606089013567ffffffffffffffff811115612c6757612c67600080fd5b612c738b828c01612b40565b9450945050608089013567ffffffffffffffff811115612c9557612c95600080fd5b612ca18b828c01612b92565b92509250509295985092959890939650565b6001600160e01b03198116612368565b602081016106438284612cb3565b60008060408385031215612ce757612ce7600080fd5b6000612cf3858561231e565b925050602061235c858286016123e0565b60008060008060008060a08789031215612d2057612d20600080fd5b6000612d2c898961230d565b9650506020612d3d89828a0161230d565b9550506040612d4e89828a0161231e565b9450506060612d5f89828a0161231e565b935050608087013567ffffffffffffffff811115612d7f57612d7f600080fd5b612d8b89828a01612b92565b92509250509295509295509295565b600080600080600060a08688031215612db557612db5600080fd5b6000612dc1888861230d565b9550506020612dd28882890161230d565b9450506040612de38882890161231e565b93505060606127928882890161231e565b60408082528101612e058185612488565b905081810360208301526123b88184612488565b60108152602081017f5061757361626c653a2070617573656400000000000000000000000000000000815290506128b7565b6020808252810161064381612e19565b60198152602081017f4f6e6c792061646d696e732063616e2063616c6c207468697300000000000000815290506128b7565b6020808252810161064381612e5b565b634e487b7160e01b600052601160045260246000fd5b61ffff8116905061ffff8216915060008261ffff03821115612ed757612ed7612e9d565b500190565b600c8152602081017f696e76616c696420747970650000000000000000000000000000000000000000815290506128b7565b6020808252810161064381612edc565b634e487b7160e01b600052602260045260246000fd5b600281046001821680612f4857607f821691505b6020821081141561292a5761292a612f1e565b6000612f65825190565b612f7381856020860161245c565b9290920192915050565b7f7b226e616d65223a2022000000000000000000000000000000000000000000008152600a01612fad8184612f5b565b7f222c20226465736372697074696f6e223a2022546865204775696c64204c6f7281527f6473206f662050797468656173206172652066656172656420666f722074686560208201527f697220727574686c6573732063756e6e696e6720616e6420656e74657270726960408201527f73696e6720746563686e6f6c6f676963616c20616476616e63656d656e74732e60608201527f205468657920616c6f6e652068617665206861726e657373656420746865207060808201527f6f776572206f662061206479696e67207374617220746f20706f77657220612060a08201527f6d616e206d61646520706c616e657420746861742070726f636573736573204560c08201527f4f4e2e2052756d6f72206861732069742074686174207468657920616c736f2060e08201527f646162626c6520696e2074686520736861646f7773206173206120626c61636b6101008201527f206d61726b6574206465616c6572206f66206861726420746f2066696e6420616101208201527f727469666163747320616e64206d6967687420656e7465727461696e20796f756101408201527f72206f6666657220666f72207468652072696768742070726963652c206275746101608201527f206265207375726520746f207472656164206c696768746c79206173207468656101808201527f7920636f6e74726f6c20657665727920617370656374206f66207468652065636101a08201527f6f6e6f6d7920696e207468697320737461722073797374656d2e20596f7520776101c08201527f6f756c64206265206120666f6f6c20746f2061727269766520656d70747920686101e08201527f616e64656420696e20616e79206e65676f74696174696f6e20776974682074686102008201527f656d2e20416c6c20746865206d6574616461746120616e6420696d61676573206102208201527f6172652067656e65726174656420616e642073746f7265642031303025206f6e6102408201527f2d636861696e2e204e6f20495046532e204e4f204150492e204a7573742074686102608201527f6520457468657265756d20626c6f636b636861696e2e222c2022696d616765226102808201527f3a2022646174613a696d6167652f7376672b786d6c3b6261736536342c0000006102a08201526102bd01905061330c8183612f5b565b7f222c202261747472696275746573223a205b5d0000000000000000000000000081527f7d00000000000000000000000000000000000000000000000000000000000000601382019081529150601401610a59565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d016106438183612f5b565b601d8152602081017f74686973207479706520686173206e6f74206265656e20736574207570000000815290506128b7565b6020808252810161064381613391565b60118152602081017f436f6e747261637473206e6f7420736574000000000000000000000000000000815290506128b7565b60208082528101610643816133d3565b60408101613423828561297e565b610a596020830184612366565b805161064381612318565b60006020828403121561345057613450600080fd5b60006123b88484613430565b600f8152602081017f4c454e4754485f4d49534d415443480000000000000000000000000000000000815290506128b7565b602080825281016106438161345c565b600e8152602081017f4e4f545f415554484f52495a4544000000000000000000000000000000000000815290506128b7565b602080825281016106438161349e565b634e487b7160e01b600052603260045260246000fd5b60008282101561350857613508612e9d565b500390565b60008219821115612ed757612ed7612e9d565b6040808252810161353181856128bd565b905081810360208301526123b881846128bd565b60a08101613553828861297e565b613560602083018761297e565b818103604083015261357281866128bd565b9050818103606083015261358681856128bd565b9050818103608083015261359a8184612488565b979650505050505050565b80516106438161237c565b6000602082840312156135c5576135c5600080fd5b60006123b884846135a5565b60108152602081017f554e534146455f524543495049454e5400000000000000000000000000000000815290506128b7565b60208082528101610643816135d1565b60608101613621828661297e565b61362e602083018561297e565b6123b86040830184612366565b805161064381612511565b60006020828403121561365b5761365b600080fd5b60006123b8848461363b565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1368590030181126136a0576136a0600080fd5b8301915050803567ffffffffffffffff8111156136bf576136bf600080fd5b602082019150600181023603821315612b8b57612b8b600080fd5b6000610643612aa061ffff841681565b612368816136da565b60408101613701828561297e565b610a5960208301846136ea565b634e487b7160e01b600052601260045260246000fd5b6000826137335761373361370e565b500490565b600081600019048311821515161561375257613752612e9d565b500290565b60a08101613765828761297e565b613772602083018661297e565b61377f60408301856136ea565b61378c6060830184612366565b818103608083015260008152602081019695505050505050565b606081016137b482866136ea565b6137c16020830185612366565b6123b8604083018461297e565b60118152602081017f416c6c20746f6b656e73206d696e746564000000000000000000000000000000815290506128b7565b60208082528101610643816137ce565b60a0810161381e828761297e565b61382b602083018661297e565b61377f6040830185612366565b60128152602081017f6d617820737570706c7920746f6f206c6f770000000000000000000000000000815290506128b7565b6020808252810161064381613838565b604081016134238285612366565b60a08101613896828861297e565b6138a3602083018761297e565b6138b06040830186612366565b6138bd6060830185612366565b818103608083015261359a8184612488565b6106438183612f5b565b7f3c7376672069643d22496d70657269616c4775696c64222077696474683d223181527f30302522206865696768743d2231303025222076657273696f6e3d22312e312260208201527f2076696577426f783d223020302036342036342220786d6c6e733d226874747060408201527f3a2f2f7777772e77332e6f72672f323030302f7376672220786d6c6e733a786c60608201527f696e6b3d22687474703a2f2f7777772e77332e6f72672f313939392f786c696e60808201527f6b223e000000000000000000000000000000000000000000000000000000000060a082015260a3016139c78183612f5b565b7f3c2f7376673e00000000000000000000000000000000000000000000000000008152905060068101610643565b60148152602081017f5061757361626c653a206e6f7420706175736564000000000000000000000000815290506128b7565b60208082528101610643816139f5565b7f3c696d61676520783d22302220793d2230222077696474683d2236342220686581527f696768743d2236342220696d6167652d72656e646572696e673d22706978656c60208201527f6174656422207072657365727665417370656374526174696f3d22784d69645960408201527f4d69642220786c696e6b3a687265663d22646174613a696d6167652f706e673b60608201527f6261736536342c000000000000000000000000000000000000000000000000006080820152608701613aff8183612f5b565b7f222f3e0000000000000000000000000000000000000000000000000000000000815290506003810161064356fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220c9005492339bfd53cbe433e002a12eb30e90df18bb5f822523981fe44b050fd264736f6c634300080b0033

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.