ETH Price: $3,317.97 (-1.64%)
Gas: 2 Gwei

Token

Mandala Tokens (MANDALA)
 

Overview

Max Total Supply

294 MANDALA

Holders

176

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
2 MANDALA
0x99e2e69f98b164c399cc12d8382a82135eea6364
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

There are millions of millions ... of Mandalas, all UNIQUE and fully generated on-chain. Pick the one you like :)

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MandalaToken

Compiler Version
v0.7.1+commit.f4a555be

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion, MIT license
File 1 of 10 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Check the signature length
        if (signature.length != 65) {
            revert("ECDSA: invalid signature length");
        }

        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // ecrecover takes the signature parameters, and the only way to get them
        // currently is to use assembly.
        // solhint-disable-next-line no-inline-assembly
        assembly {
            r := mload(add(signature, 0x20))
            s := mload(add(signature, 0x40))
            v := byte(0, mload(add(signature, 0x60)))
        }

        return recover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover-bytes32-bytes-} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value");
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * replicates the behavior of the
     * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]
     * JSON-RPC method.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }
}

File 2 of 10 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 3 of 10 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "../../introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
      * @dev Safely transfers `tokenId` token from `from` to `to`.
      *
      * Requirements:
      *
      * - `from` cannot be the zero address.
      * - `to` cannot be the zero address.
      * - `tokenId` token must exist and be owned by `from`.
      * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
      * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
      *
      * Emits a {Transfer} event.
      */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}

File 4 of 10 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "./IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 5 of 10 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);
}

File 6 of 10 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 7 of 10 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

File 8 of 10 : Proxied.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;

abstract contract Proxied {
    /// @notice to be used by initialisation / postUpgrade function so that only the owner can execute them
    /// It also allows these functions to be called inside a contructor when the contract
    /// is meant to be used without proxy
    modifier proxied() {
        address ownerAddress = _owner();
        // With hardhat-deploy proxies
        // the ownerAddress is zero only for the implementation contract
        // if the implementation contract want to be used as standalone
        // it simply has to execute the `proxied` function
        // This ensure the ownerAddress is never zero post deployment
        if (ownerAddress == address(0)) {
            // ensure can not be called twice when used outside of proxy : no admin
            // solhint-disable-next-line security/no-inline-assembly
            assembly {
                sstore(
                    0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103,
                    0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
                )
            }
        } else {
            require(msg.sender == ownerAddress);
        }
        _;
    }

    modifier onlyOwner() {
        require(msg.sender == _owner(), "NOT_AUTHORIZED");
        _;
    }

    function _owner() internal view returns (address ownerAddress) {
        // solhint-disable-next-line security/no-inline-assembly
        assembly {
            ownerAddress := sload(0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103)
        }
    }
}

File 9 of 10 : ERC721Base.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.7.1;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
// import "@openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol"; // only partially implemented for efficiency and simplicity
import "@openzeppelin/contracts/introspection/IERC165.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";

abstract contract ERC721Base is IERC165, IERC721 {
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;

    bytes4 internal constant ERC721_RECEIVED = 0x150b7a02;
    bytes4 internal constant ERC165ID = 0x01ffc9a7;

    uint256 internal constant OPERATOR_FLAG = (2**255);
    uint256 internal constant BURN_FLAG = (2**254);

    uint256 internal _supply;
    mapping (uint256 => uint256) internal _owners;
    mapping (address => EnumerableSet.UintSet) internal _holderTokens;
    mapping(address => mapping(address => bool)) internal _operatorsForAll;
    mapping(uint256 => address) internal _operators;


    /// @notice Approve an operator to spend tokens on the senders behalf.
    /// @param operator The address receiving the approval.
    /// @param id The id of the token.
    function approve(address operator, uint256 id) external override {
        address owner = _ownerOf(id);
        require(owner != address(0), "NONEXISTENT_TOKEN");
        require(owner == msg.sender || _operatorsForAll[owner][msg.sender], "UNAUTHORIZED_APPROVAL");
        _approveFor(owner, operator, id);
    }

    /// @notice Transfer a token between 2 addresses.
    /// @param from The sender of the token.
    /// @param to The recipient of the token.
    /// @param id The id of the token.
    function transferFrom(
        address from,
        address to,
        uint256 id
    ) external override {
        (address owner, bool operatorEnabled) = _ownerAndOperatorEnabledOf(id);
        require(owner != address(0), "NONEXISTENT_TOKEN");
        require(owner == from, "NOT_OWNER");
        require(to != address(0), "NOT_TO_ZEROADDRESS");
        if (msg.sender != from) {
            require(
                _operatorsForAll[from][msg.sender] || (operatorEnabled && _operators[id] == msg.sender),
                "UNAUTHORIZED_TRANSFER"
            );
        }
        _transferFrom(from, to, id);
    }

    /// @notice Transfer a token between 2 addresses letting the receiver know of the transfer.
    /// @param from The send of the token.
    /// @param to The recipient of the token.
    /// @param id The id of the token.
    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) external override {
        safeTransferFrom(from, to, id, "");
    }

    /// @notice Set the approval for an operator to manage all the tokens of the sender.
    /// @param operator The address receiving the approval.
    /// @param approved The determination of the approval.
    function setApprovalForAll(address operator, bool approved) external override {
        _setApprovalForAll(msg.sender, operator, approved);
    }

    /// @notice Get the number of tokens owned by an address.
    /// @param owner The address to look for.
    /// @return balance The number of tokens owned by the address.
    function balanceOf(address owner) external view override returns (uint256 balance) {
        require(owner != address(0), "ZERO_ADDRESS_OWNER");
        balance = _holderTokens[owner].length();
    }

    /// @notice Get the owner of a token.
    /// @param id The id of the token.
    /// @return owner The address of the token owner.
    function ownerOf(uint256 id) external view override returns (address owner) {
        owner = _ownerOf(id);
        require(owner != address(0), "NONEXISTANT_TOKEN");
    }

    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256) {
        return _holderTokens[owner].at(index);
    }

    function totalSupply() external view returns (uint256) {
        return _supply;
    }

    /// @notice Get the approved operator for a specific token.
    /// @param id The id of the token.
    /// @return The address of the operator.
    function getApproved(uint256 id) external view override returns (address) {
        (address owner, bool operatorEnabled) = _ownerAndOperatorEnabledOf(id);
        require(owner != address(0), "NONEXISTENT_TOKEN");
        if (operatorEnabled) {
            return _operators[id];
        } else {
            return address(0);
        }
    }

    /// @notice Check if the sender approved the operator.
    /// @param owner The address of the owner.
    /// @param operator The address of the operator.
    /// @return isOperator The status of the approval.
    function isApprovedForAll(address owner, address operator) external view override returns (bool isOperator) {
        return _operatorsForAll[owner][operator];
    }

    /// @notice Transfer a token between 2 addresses letting the receiver knows of the transfer.
    /// @param from The sender of the token.
    /// @param to The recipient of the token.
    /// @param id The id of the token.
    /// @param data Additional data.
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes memory data
    ) public override {
        (address owner, bool operatorEnabled) = _ownerAndOperatorEnabledOf(id);
        require(owner != address(0), "NONEXISTENT_TOKEN");
        require(owner == from, "NOT_OWNER");
        require(to != address(0), "NOT_TO_ZEROADDRESS");
        if (msg.sender != from) {
            require(
                _operatorsForAll[from][msg.sender] || (operatorEnabled && _operators[id] == msg.sender),
                "UNAUTHORIZED_TRANSFER"
            );
        }
        _transferFrom(from, to, id);
        if (to.isContract()) {
            require(_checkOnERC721Received(msg.sender, from, to, id, data), "ERC721_TRANSFER_REJECTED");
        }
    }

    /// @notice Check if the contract supports an interface.
    /// 0x01ffc9a7 is ERC165.
    /// 0x80ac58cd is ERC721
    /// 0x780e9d63 is for ERC721 enumerable
    /// @param id The id of the interface.
    /// @return Whether the interface is supported.
    function supportsInterface(bytes4 id) public pure virtual override returns (bool) {
        return id == 0x01ffc9a7 || id == 0x80ac58cd || id == 0x780e9d63;
    }

    function _transferFrom(
        address from,
        address to,
        uint256 id
    ) internal {
        _holderTokens[from].remove(id);
        _holderTokens[to].add(id);
        _owners[id] = uint256(to);
        emit Transfer(from, to, id);
    }

    /// @dev See approve.
    function _approveFor(
        address owner,
        address operator,
        uint256 id
    ) internal {
        if (operator == address(0)) {
            _owners[id] =  uint256(owner);
        } else {
            _owners[id] = OPERATOR_FLAG | uint256(owner);
            _operators[id] = operator;
        }
        emit Approval(owner, operator, id);
    }

    /// @dev See setApprovalForAll.
    function _setApprovalForAll(
        address sender,
        address operator,
        bool approved
    ) internal {
        _operatorsForAll[sender][operator] = approved;

        emit ApprovalForAll(sender, operator, approved);
    }

    /// @dev Check if receiving contract accepts erc721 transfers.
    /// @param operator The address of the operator.
    /// @param from The from address, may be different from msg.sender.
    /// @param to The adddress we want to transfer to.
    /// @param id The id of the token we would like to transfer.
    /// @param data Any additional data to send with the transfer.
    /// @return Whether the expected value of 0x150b7a02 is returned.
    function _checkOnERC721Received(
        address operator,
        address from,
        address to,
        uint256 id,
        bytes memory data
    ) internal returns (bool) {
        bytes4 retval = IERC721Receiver(to).onERC721Received(operator, from, id, data);
        return (retval == ERC721_RECEIVED);
    }

    /// @dev See ownerOf
    function _ownerOf(uint256 id) internal view returns (address owner) {
        owner = address(_owners[id]);
        require(owner != address(0), "NOT_EXIST");
    }

    /// @dev Get the owner and operatorEnabled status of a token.
    /// @param id The token to query.
    /// @return owner The owner of the token.
    /// @return operatorEnabled Whether or not operators are enabled for this token.
    function _ownerAndOperatorEnabledOf(uint256 id) internal view returns (address owner, bool operatorEnabled) {
        uint256 data = _owners[id];
        owner = address(data);
        operatorEnabled = (data & OPERATOR_FLAG) == OPERATOR_FLAG;
    }

    function _mint(uint256 id, address to) internal {
        require(to != address(0), "NOT_TO_ZEROADDRESS");
        uint256 data = _owners[id];
        require(data == 0, "ALREADY_MINTED");
        _holderTokens[to].add(id);
        _owners[id] = uint256(to);
        _supply ++;
        emit Transfer(address(0), to, id);
    }

    function _burn(uint256 id) internal {
        uint256 data = _owners[id];
        require(data != 0, "NOT_EXIST");
        require(data & BURN_FLAG == 0, "ALREADY_BURNT");
        address owner = address(data);
        require(msg.sender == owner, "NOT_OWNER");
        _holderTokens[owner].remove(id);
        _owners[id] = BURN_FLAG;
        _supply --;
        emit Transfer(msg.sender, address(0), id);
    }
}

File 10 of 10 : MandalaToken.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.7.1;
pragma experimental ABIEncoderV2;

// solhint-disable quotes

import "./ERC721Base.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Metadata.sol";
import "@openzeppelin/contracts/cryptography/ECDSA.sol";
import "hardhat-deploy/solc_0.7/proxy/Proxied.sol";

contract MandalaToken is ERC721Base, IERC721Metadata, Proxied {
    using EnumerableSet for EnumerableSet.UintSet;
    using ECDSA for bytes32;


    // solhint-disable-next-line quotes
    bytes internal constant TEMPLATE = 'data:text/plain,{"name":"Mandala 0x0000000000000000000000000000000000000000","description":"A Unique Mandala","image":"data:image/svg+xml,<svg xmlns=\'http://www.w3.org/2000/svg\' shape-rendering=\'crispEdges\' width=\'512\' height=\'512\'><g transform=\'scale(64)\'><image width=\'8\' height=\'8\' style=\'image-rendering: pixelated;\' href=\'data:image/gif;base64,R0lGODdhEwATAMQAAAAAAPb+Y/7EJfN3NNARQUUKLG0bMsR1SujKqW7wQwe/dQBcmQeEqjDR0UgXo4A0vrlq2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkKAAAALAAAAAATABMAAAdNgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABNgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABNgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABNgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA6gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGBADs=\'/></g></svg>"}';
    uint256 internal constant IMAGE_DATA_POS = 521;
    uint256 internal constant ADDRESS_NAME_POS = 74;

    uint256 internal constant WIDTH = 19;
    uint256 internal constant HEIGHT = 19;
    uint256 internal constant ROW_PER_BLOCK = 4;
    bytes32 constant internal xs = 0x8934893467893456789456789567896789789899000000000000000000000000;
    bytes32 constant internal ys = 0x0011112222223333333444444555556666777889000000000000000000000000;

    event Minted(uint256 indexed id, uint256 indexed pricePaid);
    event Burned(uint256 indexed id, uint256 indexed priceReceived);
    event CreatorshipTransferred(address indexed previousCreator, address indexed newCreator);

    uint256 public immutable linearCoefficient;
    uint256 public immutable initialPrice;
    uint256 public immutable creatorCutPer10000th;
    address payable public creator;

    constructor(address payable _creator, uint256 _initialPrice, uint256 _creatorCutPer10000th, uint256 _linearCoefficient) {
        require(_creatorCutPer10000th < 2000, "CREATOR_CUT_ROO_HIGHT");
        initialPrice = _initialPrice;
        creatorCutPer10000th = _creatorCutPer10000th;
        linearCoefficient = _linearCoefficient;
        postUpgrade(_creator, _initialPrice, _creatorCutPer10000th, _linearCoefficient);
    }

    // solhint-disable-next-line no-unused-vars
    function postUpgrade(address payable _creator, uint256 _initialPrice, uint256 _creatorCutPer10000th, uint256 _linearCoefficient) public proxied {
        // immutables are set in the constructor:
        // initialPrice = _initialPrice;
        // creatorCutPer10000th = _creatorCutPer10000th;
        // linearCoefficient = _linearCoefficient;
        creator = _creator;
        emit CreatorshipTransferred(address(0), creator);
    }


    function transferCreatorship(address payable newCreatorAddress) external {
        address oldCreator = creator;
        require(oldCreator == msg.sender, "NOT_AUTHORIZED");
        creator = newCreatorAddress;
        emit CreatorshipTransferred(oldCreator, newCreatorAddress);
    }

    /// @notice A descriptive name for a collection of NFTs in this contract
    function name() external pure override returns (string memory) {
        return "Mandala Tokens";
    }

    /// @notice An abbreviated name for NFTs in this contract
    function symbol() external pure override returns (string memory) {
        return "MANDALA";
    }

    function tokenURI(uint256 id) public view virtual override returns (string memory) {
        address owner = _ownerOf(id);
        require(owner != address(0), "NOT_EXISTS");
        return _tokenURI(id);
    }

    /// @notice Check if the contract supports an interface.
    /// 0x01ffc9a7 is ERC165.
    /// 0x80ac58cd is ERC721
    /// 0x5b5e139f is for ERC721 metadata
    /// 0x780e9d63 is for ERC721 enumerable
    /// @param id The id of the interface.
    /// @return Whether the interface is supported.
    function supportsInterface(bytes4 id) public pure virtual override(ERC721Base, IERC165) returns (bool) {
        return ERC721Base.supportsInterface(id) || id == 0x5b5e139f;
    }

    struct TokenData {
        uint256 id;
        string tokenURI;
    }

    function getTokenDataOfOwner(
        address owner,
        uint256 start,
        uint256 num
    ) external view returns (TokenData[] memory tokens) {
        EnumerableSet.UintSet storage allTokens = _holderTokens[owner];
        uint256 balance = allTokens.length();
        require(balance >= start + num, "TOO_MANY_TOKEN_REQUESTED");
        tokens = new TokenData[](num);
        uint256 i = 0;
        while (i < num) {
            uint256 id = allTokens.at(start + i);
            tokens[i] = TokenData(id, _tokenURI(id));
            i++;
        }
    }

    function mint(address to, bytes memory signature) external payable returns (uint256) {
        uint256 mintPrice = _curve(_supply);
        require(msg.value >= mintPrice, "NOT_ENOUGH_ETH");


        // -------------------------- MINTING ---------------------------------------------------------
        bytes32 hashedData = keccak256(abi.encodePacked("Mandala", to));
        address signer = hashedData.toEthSignedMessageHash().recover(signature);
        _mint(uint256(signer), to);
        // -------------------------- MINTING ---------------------------------------------------------

        uint256 forCreator = mintPrice - _forReserve(mintPrice);

        // responsibility of the creator to ensure it can receive the fund
        bool success = true;
        if (forCreator > 0) {
            // solhint-disable-next-line check-send-result
            success = creator.send(forCreator);
        }

        if(!success || msg.value > mintPrice) {
            msg.sender.transfer(msg.value - mintPrice + (!success ? forCreator : 0));
        }

        emit Minted(uint256(signer), mintPrice);
        return uint256(signer);
    }


    function burn(uint256 id) external {
        uint256 burnPrice = _forReserve(_curve(_supply - 1));

        _burn(id);

        msg.sender.transfer(burnPrice);
        emit Burned(id, burnPrice);
    }

    function currentPrice() external view returns (uint256) {
        return _curve(_supply);
    }

    function _curve(uint256 supply) internal view returns (uint256) {
        return initialPrice + supply * linearCoefficient;
    }

    function _forReserve(uint256 mintPrice) internal view returns (uint256) {
        return mintPrice * (10000-creatorCutPer10000th) / 10000;
    }


    // solhint-disable-next-line code-complexity
    function _tokenURI(uint256 id) internal pure returns (string memory) {
        bytes memory metadata = TEMPLATE;
        writeUintAsHex(metadata, ADDRESS_NAME_POS, id);

        for (uint256 i = 0; i < 40; i++) {
            uint8 value = uint8((id >> (40-(i+1))*4) % 16);
            if (value == 0) {
                value = 16; // use black as oposed to transparent
            }
            uint256 x = extract(xs, i);
            uint256 y = extract(ys, i);
            setCharacter(metadata, IMAGE_DATA_POS, y*WIDTH + x + (y /ROW_PER_BLOCK) * 2 + 1, value);

            if (x != y) {
                setCharacter(metadata, IMAGE_DATA_POS, x*WIDTH + y + (x /ROW_PER_BLOCK) * 2 + 1, value);
                if (y != HEIGHT / 2) {
                    setCharacter(metadata, IMAGE_DATA_POS, x*WIDTH + (WIDTH -y -1) + (x /ROW_PER_BLOCK) * 2 + 1, value); // x mirror
                }

                if (x != WIDTH / 2) {
                    setCharacter(metadata, IMAGE_DATA_POS, (HEIGHT-x-1)*WIDTH + y + ((HEIGHT-x-1) /ROW_PER_BLOCK) * 2 + 1, value); // y mirror
                }

                if (x != WIDTH / 2 && y != HEIGHT / 2) {
                    setCharacter(metadata, IMAGE_DATA_POS, (HEIGHT-x-1)*WIDTH + (WIDTH-y-1) + ((HEIGHT-x-1) /ROW_PER_BLOCK) * 2 + 1, value); // x,y mirror
                }
            }

            if (x != WIDTH / 2) {
                setCharacter(metadata, IMAGE_DATA_POS, y*WIDTH + (WIDTH -x -1) + (y /ROW_PER_BLOCK) * 2 + 1, value); // x mirror
            }
            if (y != HEIGHT / 2) {
                setCharacter(metadata, IMAGE_DATA_POS, (HEIGHT-y-1)*WIDTH + x + ((HEIGHT-y-1) /ROW_PER_BLOCK) * 2 + 1, value); // y mirror
            }

            if (x != WIDTH / 2 && y != HEIGHT / 2) {
                setCharacter(metadata, IMAGE_DATA_POS, (HEIGHT-y-1)*WIDTH + (WIDTH-x-1) + ((HEIGHT-y-1) /ROW_PER_BLOCK) * 2 + 1, value); // x,y mirror
            }
        }
        return string(metadata);
    }


    function setCharacter(bytes memory metadata, uint256 base, uint256 pos, uint8 value) internal pure {
        uint256 base64Slot = base + (pos * 8) / 6;
        uint8 bit = uint8((pos * 8) % 6);
        uint8 existingValue = base64ToUint8(metadata[base64Slot]);
        if (bit == 0) {
            metadata[base64Slot] = uint8ToBase64(value >> 2);
            uint8 extraValue = base64ToUint8(metadata[base64Slot + 1]);
            metadata[base64Slot + 1] = uint8ToBase64(((value % 4) << 4) | (0x0F & extraValue));
        } else if (bit == 2) {
            metadata[base64Slot] = uint8ToBase64((value >> 4) | (0x30 & existingValue));
            uint8 extraValue = base64ToUint8(metadata[base64Slot + 1]);
            metadata[base64Slot + 1] = uint8ToBase64(((value % 16) << 2) | (0x03 & extraValue));
        } else { // bit == 4)
            // metadata[base64Slot] = uint8ToBase64((value >> 6) | (0x3C & existingValue)); // skip as value are never as big
            metadata[base64Slot + 1] = uint8ToBase64(value % 64);
        }
    }

    function extract(bytes32 arr, uint256 i) internal pure returns (uint256) {
        return (uint256(arr) >> (256 - (i+1) * 4)) % 16;
    }

    bytes32 constant internal base64Alphabet_1 = 0x4142434445464748494A4B4C4D4E4F505152535455565758595A616263646566;
    bytes32 constant internal base64Alphabet_2 = 0x6768696A6B6C6D6E6F707172737475767778797A303132333435363738392B2F;

    function base64ToUint8(bytes1 s) internal pure returns (uint8 v) {
        if (uint8(s) == 0x2B) {
            return 62;
        }
        if (uint8(s) == 0x2F) {
            return 63;
        }
        if (uint8(s) >= 0x30 && uint8(s) <= 0x39) {
            return uint8(s) - 0x30 + 52;
        }
        if (uint8(s) >= 0x41 && uint8(s) <= 0x5A) {
            return uint8(s) - 0x41;
        }
        if (uint8(s) >= 0x5A && uint8(s) <= 0x7A) {
            return uint8(s) - 0x5A + 26;
        }
        return 0;
    }

    function uint8ToBase64(uint24 v) internal pure returns (bytes1 s) {
        if (v >= 32) {
            return base64Alphabet_2[v - 32];
        }
        return base64Alphabet_1[v];
    }

    bytes constant internal hexAlphabet = "0123456789abcdef";

    function writeUintAsHex(bytes memory data, uint256 endPos, uint256 num) internal pure {
        while (num != 0) {
            data[endPos--] = bytes1(hexAlphabet[num % 16]);
            num /= 16;
        }
    }

}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"_creator","type":"address"},{"internalType":"uint256","name":"_initialPrice","type":"uint256"},{"internalType":"uint256","name":"_creatorCutPer10000th","type":"uint256"},{"internalType":"uint256","name":"_linearCoefficient","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"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":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"priceReceived","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousCreator","type":"address"},{"indexed":true,"internalType":"address","name":"newCreator","type":"address"}],"name":"CreatorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"pricePaid","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"creator","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creatorCutPer10000th","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"num","type":"uint256"}],"name":"getTokenDataOfOwner","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"tokenURI","type":"string"}],"internalType":"struct MandalaToken.TokenData[]","name":"tokens","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"linearCoefficient","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_creator","type":"address"},{"internalType":"uint256","name":"_initialPrice","type":"uint256"},{"internalType":"uint256","name":"_creatorCutPer10000th","type":"uint256"},{"internalType":"uint256","name":"_linearCoefficient","type":"uint256"}],"name":"postUpgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","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":"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":"bytes4","name":"id","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"newCreatorAddress","type":"address"}],"name":"transferCreatorship","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b5060405162002f7238038062002f72833981016040819052620000349162000144565b6107d08210620000615760405162461bcd60e51b815260040162000058906200018f565b60405180910390fd5b60a083905260c082905260808190526200007e8484848462000088565b50505050620001c6565b60006200009462000130565b90506001600160a01b038116620000c4576001600160a01b0360008051602062002f5283398151915255620000da565b336001600160a01b03821614620000da57600080fd5b600580546001600160a01b0319166001600160a01b0387811691909117918290556040519116906000907ff25c6226b06a6bf4b2c2391bb66962bb4290c323cf8b5814efb185aba3f42d5f908290a35050505050565b60008051602062002f528339815191525490565b600080600080608085870312156200015a578384fd5b84516001600160a01b038116811462000171578485fd5b60208601516040870151606090970151919890975090945092505050565b60208082526015908201527f43524541544f525f4355545f524f4f5f48494748540000000000000000000000604082015260600190565b60805160a05160c051612d506200020260003980610a8a528061148a52508061065b528061146252508061079b52806114405250612d506000f3fe6080604052600436106101965760003560e01c806342966c68116100e15780639d1b464a1161008a578063b510391f11610064578063b510391f1461042f578063b88d4fde14610442578063c87b56dd14610462578063e985e9c51461048257610196565b80639d1b464a146103da5780639ec663d2146103ef578063a22cb4651461040f57610196565b806370a08231116100bb57806370a08231146103905780637e7e2d48146103b057806395d89b41146103c557610196565b806342966c68146103305780636352211e146103505780636d2e4b1b1461037057610196565b80631d0806ae116101435780632f745c591161011d5780632f745c59146102c35780633a5110db146102e357806342842e0e1461031057610196565b80631d0806ae1461027957806323b872dd1461028e5780632e22dc6b146102ae57610196565b8063081812fc11610174578063081812fc14610215578063095ea7b31461023557806318160ddd1461025757610196565b806301ffc9a71461019b57806302d05d3f146101d157806306fdde03146101f3575b600080fd5b3480156101a757600080fd5b506101bb6101b63660046121ec565b6104a2565b6040516101c891906123c5565b60405180910390f35b3480156101dd57600080fd5b506101e6610501565b6040516101c8919061230e565b3480156101ff57600080fd5b50610208610510565b6040516101c891906123ee565b34801561022157600080fd5b506101e6610230366004612224565b610547565b34801561024157600080fd5b5061025561025036600461218d565b6105ba565b005b34801561026357600080fd5b5061026c610653565b6040516101c891906128bf565b34801561028557600080fd5b5061026c610659565b34801561029a57600080fd5b506102556102a9366004612064565b61067d565b3480156102ba57600080fd5b5061026c610799565b3480156102cf57600080fd5b5061026c6102de36600461218d565b6107bd565b3480156102ef57600080fd5b506103036102fe3660046121b8565b6107e8565b6040516101c89190612354565b34801561031c57600080fd5b5061025561032b366004612064565b6108e6565b34801561033c57600080fd5b5061025561034b366004612224565b610901565b34801561035c57600080fd5b506101e661036b366004612224565b610983565b34801561037c57600080fd5b5061025561038b366004611fd6565b6109b6565b34801561039c57600080fd5b5061026c6103ab366004611fd6565b610a3f565b3480156103bc57600080fd5b5061026c610a88565b3480156103d157600080fd5b50610208610aac565b3480156103e657600080fd5b5061026c610ae3565b3480156103fb57600080fd5b5061025561040a366004611ff2565b610af5565b34801561041b57600080fd5b5061025561042a36600461210e565b610bb6565b61026c61043d36600461213f565b610bc5565b34801561044e57600080fd5b5061025561045d3660046120a4565b610d2b565b34801561046e57600080fd5b5061020861047d366004612224565b610e88565b34801561048e57600080fd5b506101bb61049d36600461202c565b610ecd565b60006104ad82610efb565b806104f957507f5b5e139f000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b90505b919050565b6005546001600160a01b031681565b60408051808201909152600e81527f4d616e64616c6120546f6b656e73000000000000000000000000000000000000602082015290565b600080600061055584610fdc565b90925090506001600160a01b0382166105895760405162461bcd60e51b815260040161058090612605565b60405180910390fd5b80156105af575050506000818152600460205260409020546001600160a01b03166104fc565b6000925050506104fc565b60006105c582611014565b90506001600160a01b0381166105ed5760405162461bcd60e51b815260040161058090612605565b6001600160a01b03811633148061062757506001600160a01b038116600090815260036020908152604080832033845290915290205460ff165b6106435760405162461bcd60e51b8152600401610580906126d0565b61064e818484611049565b505050565b60005490565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008061068983610fdc565b90925090506001600160a01b0382166106b45760405162461bcd60e51b815260040161058090612605565b846001600160a01b0316826001600160a01b0316146106e55760405162461bcd60e51b8152600401610580906127ac565b6001600160a01b03841661070b5760405162461bcd60e51b815260040161058090612707565b336001600160a01b03861614610787576001600160a01b038516600090815260036020908152604080832033845290915290205460ff168061076b575080801561076b57506000838152600460205260409020546001600160a01b031633145b6107875760405162461bcd60e51b8152600401610580906127e3565b610792858585611128565b5050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001600160a01b03821660009081526002602052604081206107df90836111bd565b90505b92915050565b6001600160a01b038316600090815260026020526040812060609161080c826111c9565b90508385018110156108305760405162461bcd60e51b815260040161058090612571565b8367ffffffffffffffff8111801561084757600080fd5b5060405190808252806020026020018201604052801561088157816020015b61086e611f3e565b8152602001906001900390816108665790505b50925060005b848110156108dc57600061089d848884016111bd565b905060405180604001604052808281526020016108b9836111d4565b8152508583815181106108c857fe5b602090810291909101015250600101610887565b5050509392505050565b61064e83838360405180602001604052806000815250610d2b565b600061091961091460016000540361143e565b611485565b9050610924826114b3565b604051339082156108fc029083906000818181858888f19350505050158015610951573d6000803e3d6000fd5b50604051819083907fcec1bae6e024d929f2929f3478ce70f55f9c636c8ef7b5073a61d7c3a432451b90600090a35050565b600061098e82611014565b90506001600160a01b0381166104fc5760405162461bcd60e51b815260040161058090612503565b6005546001600160a01b03163381146109e15760405162461bcd60e51b815260040161058090612851565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384811691821790925560405190918316907ff25c6226b06a6bf4b2c2391bb66962bb4290c323cf8b5814efb185aba3f42d5f90600090a35050565b60006001600160a01b038216610a675760405162461bcd60e51b815260040161058090612775565b6001600160a01b03821660009081526002602052604090206104f9906111c9565b7f000000000000000000000000000000000000000000000000000000000000000081565b60408051808201909152600781527f4d414e44414c4100000000000000000000000000000000000000000000000000602082015290565b6000610af060005461143e565b905090565b6000610aff6115d5565b90506001600160a01b038116610b3e576001600160a01b037fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355610b53565b336001600160a01b03821614610b5357600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691909117918290556040519116906000907ff25c6226b06a6bf4b2c2391bb66962bb4290c323cf8b5814efb185aba3f42d5f908290a35050505050565b610bc13383836115fa565b5050565b600080610bd360005461143e565b905080341015610bf55760405162461bcd60e51b81526004016105809061253a565b600084604051602001610c0891906122b8565b6040516020818303038152906040528051906020012090506000610c3585610c2f84611689565b906116b9565b9050610c4a816001600160a01b031687611704565b6000610c5584611485565b8403905060018115610c8c576005546040516001600160a01b039091169083156108fc029084906000818181858888f19450505050505b801580610c9857508434115b15610ce157336108fc8215610cae576000610cb0565b835b873403019081150290604051600060405180830381858888f19350505050158015610cdf573d6000803e3d6000fd5b505b60405185906001600160a01b038516907f8a9dcf4e150b1153011b29fec302d5be0c13e84fa8f56ab78587f778a32a90dd90600090a350506001600160a01b031695945050505050565b600080610d3784610fdc565b90925090506001600160a01b038216610d625760405162461bcd60e51b815260040161058090612605565b856001600160a01b0316826001600160a01b031614610d935760405162461bcd60e51b8152600401610580906127ac565b6001600160a01b038516610db95760405162461bcd60e51b815260040161058090612707565b336001600160a01b03871614610e35576001600160a01b038616600090815260036020908152604080832033845290915290205460ff1680610e195750808015610e1957506000848152600460205260409020546001600160a01b031633145b610e355760405162461bcd60e51b8152600401610580906127e3565b610e40868686611128565b610e52856001600160a01b03166117ce565b15610e8057610e6433878787876117d4565b610e805760405162461bcd60e51b81526004016105809061263c565b505050505050565b60606000610e9583611014565b90506001600160a01b038116610ebd5760405162461bcd60e51b815260040161058090612888565b610ec6836111d4565b9392505050565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161480610f8e57507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806104f95750507fffffffff00000000000000000000000000000000000000000000000000000000167f780e9d63000000000000000000000000000000000000000000000000000000001490565b600090815260016020526040902054907f80000000000000000000000000000000000000000000000000000000000000008083161490565b6000818152600160205260409020546001600160a01b0381166104fc5760405162461bcd60e51b81526004016105809061273e565b6001600160a01b0382166110765760008181526001602052604090206001600160a01b03841690556110e2565b60008181526001602090815260408083206001600160a01b038781167f8000000000000000000000000000000000000000000000000000000000000000179091556004909252909120805473ffffffffffffffffffffffffffffffffffffffff19169184169190911790555b80826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6001600160a01b038316600090815260026020526040902061114a90826118ab565b506001600160a01b038216600090815260026020526040902061116d90826118b7565b506000818152600160205260408082206001600160a01b03808616918290559151849391928716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006107df83836118c3565b60006104f982611908565b60608060405180610440016040528061040c815260200161290f61040c9139905061120181604a8561190c565b60005b602881101561143757600060108260010160280360040286901c8161122557fe5b06905060ff8116611234575060105b60006112607f8934893467893456789456789567896789789899000000000000000000000000846119c7565b9050600061128d7e11112222223333333444444555556666777889000000000000000000000000856119c7565b90506112ad856102096004840460020285601386020101600101866119db565b80821461137f576112d2856102096004850460020284601387020101600101866119db565b600981146112f8576112f8856102096004850460020260138581039087020101866119db565b6009821461133157611331856102096004600186601303038161131757fe5b0460020284601360018860130303020101600101866119db565b60098214801590611343575060098114155b1561137f5761137f856102096004600186601303038161135f57fe5b0460020260018560130303601360018860130303020101600101866119db565b600982146113a5576113a5856102096004840460020260138681039086020101866119db565b600981146113de576113de85610209600460018560130303816113c457fe5b0460020285601360018760130303020101600101866119db565b600982148015906113f0575060098114155b1561142c5761142c856102096004600185601303038161140c57fe5b0460020260018660130303601360018760130303020101600101866119db565b505050600101611204565b5092915050565b7f0000000000000000000000000000000000000000000000000000000000000000027f00000000000000000000000000000000000000000000000000000000000000000190565b6127107f00000000000000000000000000000000000000000000000000000000000000008103919091020490565b600081815260016020526040902054806114df5760405162461bcd60e51b81526004016105809061273e565b7f400000000000000000000000000000000000000000000000000000000000000081161561151f5760405162461bcd60e51b815260040161058090612438565b80336001600160a01b038216146115485760405162461bcd60e51b8152600401610580906127ac565b6001600160a01b038116600090815260026020526040902061156a90846118ab565b506000838152600160205260408082207f4000000000000000000000000000000000000000000000000000000000000000905581546000190182555184919033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505050565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b6001600160a01b038381166000818152600360209081526040808320948716808452949091529081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061167c9085906123c5565b60405180910390a3505050565b60008160405160200161169c9190612287565b604051602081830303815290604052805190602001209050919050565b600081516041146116dc5760405162461bcd60e51b8152600401610580906124cc565b60208201516040830151606084015160001a6116fa86828585611bda565b9695505050505050565b6001600160a01b03811661172a5760405162461bcd60e51b815260040161058090612707565b60008281526001602052604090205480156117575760405162461bcd60e51b81526004016105809061281a565b6001600160a01b038216600090815260026020526040902061177990846118b7565b5060008381526001602081905260408083206001600160a01b0386169081905583549092018355518592907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4505050565b3b151590565b600080846001600160a01b031663150b7a02888887876040518563ffffffff1660e01b81526004016118099493929190612322565b602060405180830381600087803b15801561182357600080fd5b505af1158015611837573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185b9190612208565b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001491505095945050505050565b60006107df8383611cd0565b60006107df8383611d96565b815460009082106118e65760405162461bcd60e51b81526004016105809061246f565b8260000182815481106118f557fe5b9060005260206000200154905092915050565b5490565b801561064e576040805180820190915260108082527f3031323334353637383961626364656600000000000000000000000000000000602083015282068151811061195357fe5b016020015183516000198401937fff00000000000000000000000000000000000000000000000000000000000000909216918591811061198f57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506010900461190c565b600460019190910102610100031c600f1690565b6000600660088402048401905060006006600885020690506000611a30878481518110611a0457fe5b01602001517fff0000000000000000000000000000000000000000000000000000000000000016611de0565b905060ff8216611afd57611a4a603f600286901c16611e9c565b878481518110611a5657fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000611a99888560010181518110611a0457fe5b9050611ab9600f821660048060ff89165b0660ff16901b1760ff16611e9c565b888560010181518110611ac857fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535050611bd1565b8160ff1660021415611b8657611b218160301660048660ff16901c1760ff16611e9c565b878481518110611b2d57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000611b70888560010181518110611a0457fe5b9050611ab9600382166002601060ff8916611aaa565b611b92603f8516611e9c565b878460010181518110611ba157fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b50505050505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115611c1c5760405162461bcd60e51b8152600401610580906125a8565b8360ff16601b1480611c3157508360ff16601c145b611c4d5760405162461bcd60e51b815260040161058090612673565b600060018686868660405160008152602001604052604051611c7294939291906123d0565b6020604051602081039080840390855afa158015611c94573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611cc75760405162461bcd60e51b815260040161058090612401565b95945050505050565b60008181526001830160205260408120548015611d8c5783546000198083019190810190600090879083908110611d0357fe5b9060005260206000200154905080876000018481548110611d2057fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611d5057fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506107e2565b60009150506107e2565b6000611da28383611f26565b611dd8575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107e2565b5060006107e2565b6000602b60f883901c1415611df75750603e6104fc565b602f60f883901c1415611e0c5750603f6104fc565b603060f883901c10801590611e265750603960f883901c11155b15611e395750600460f882901c016104fc565b604160f883901c10801590611e535750605a60f883901c11155b15611e665760418260f81c0390506104fc565b605a60f883901c10801590611e805750607a60f883901c11155b15611e945750603f1960f882901c016104fc565b506000919050565b600060208262ffffff1610611eeb577f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f62ffffff601f1984011660208110611ee057fe5b1a60f81b90506104fc565b7f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656662ffffff831660208110611f1c57fe5b1a60f81b92915050565b60009081526001919091016020526040902054151590565b604051806040016040528060008152602001606081525090565b600082601f830112611f68578081fd5b813567ffffffffffffffff80821115611f7f578283fd5b6040516020601f19601f8501168201018181108382111715611f9f578485fd5b604052828152925082848301602001861015611fba57600080fd5b8260208601602083013760006020848301015250505092915050565b600060208284031215611fe7578081fd5b8135610ec6816128c8565b60008060008060808587031215612007578283fd5b8435612012816128c8565b966020860135965060408601359560600135945092505050565b6000806040838503121561203e578182fd5b8235612049816128c8565b91506020830135612059816128c8565b809150509250929050565b600080600060608486031215612078578283fd5b8335612083816128c8565b92506020840135612093816128c8565b929592945050506040919091013590565b600080600080608085870312156120b9578384fd5b84356120c4816128c8565b935060208501356120d4816128c8565b925060408501359150606085013567ffffffffffffffff8111156120f6578182fd5b61210287828801611f58565b91505092959194509250565b60008060408385031215612120578182fd5b823561212b816128c8565b915060208301358015158114612059578182fd5b60008060408385031215612151578182fd5b823561215c816128c8565b9150602083013567ffffffffffffffff811115612177578182fd5b61218385828601611f58565b9150509250929050565b6000806040838503121561219f578182fd5b82356121aa816128c8565b946020939093013593505050565b6000806000606084860312156121cc578283fd5b83356121d7816128c8565b95602085013595506040909401359392505050565b6000602082840312156121fd578081fd5b8135610ec6816128e0565b600060208284031215612219578081fd5b8151610ec6816128e0565b600060208284031215612235578081fd5b5035919050565b60008151808452815b8181101561226157602081850181015186830182015201612245565b818111156122725782602083870101525b50601f01601f19169290920160200192915050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b7f4d616e64616c6100000000000000000000000000000000000000000000000000815260609190911b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166007820152601b0190565b6001600160a01b0391909116815260200190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526116fa608083018461223c565b60208082528251828201819052600091906040908185019080840286018301878501865b838110156123b757888303603f190185528151805184528701518784018790526123a48785018261223c565b9588019593505090860190600101612378565b509098975050505050505050565b901515815260200190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526107df602083018461223c565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b6020808252600d908201527f414c52454144595f4255524e5400000000000000000000000000000000000000604082015260600190565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60408201527f6473000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526011908201527f4e4f4e4558495354414e545f544f4b454e000000000000000000000000000000604082015260600190565b6020808252600e908201527f4e4f545f454e4f5547485f455448000000000000000000000000000000000000604082015260600190565b60208082526018908201527f544f4f5f4d414e595f544f4b454e5f5245515545535445440000000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60408201527f7565000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f4e4f4e4558495354454e545f544f4b454e000000000000000000000000000000604082015260600190565b60208082526018908201527f4552433732315f5452414e534645525f52454a45435445440000000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60408201527f7565000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526015908201527f554e415554484f52495a45445f415050524f56414c0000000000000000000000604082015260600190565b60208082526012908201527f4e4f545f544f5f5a45524f414444524553530000000000000000000000000000604082015260600190565b60208082526009908201527f4e4f545f45584953540000000000000000000000000000000000000000000000604082015260600190565b60208082526012908201527f5a45524f5f414444524553535f4f574e45520000000000000000000000000000604082015260600190565b60208082526009908201527f4e4f545f4f574e45520000000000000000000000000000000000000000000000604082015260600190565b60208082526015908201527f554e415554484f52495a45445f5452414e534645520000000000000000000000604082015260600190565b6020808252600e908201527f414c52454144595f4d494e544544000000000000000000000000000000000000604082015260600190565b6020808252600e908201527f4e4f545f415554484f52495a4544000000000000000000000000000000000000604082015260600190565b6020808252600a908201527f4e4f545f45584953545300000000000000000000000000000000000000000000604082015260600190565b90815260200190565b6001600160a01b03811681146128dd57600080fd5b50565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146128dd57600080fdfe646174613a746578742f706c61696e2c7b226e616d65223a224d616e64616c6120307830303030303030303030303030303030303030303030303030303030303030303030303030303030222c226465736372697074696f6e223a224120556e69717565204d616e64616c61222c22696d616765223a22646174613a696d6167652f7376672b786d6c2c3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f737667272073686170652d72656e646572696e673d2763726973704564676573272077696474683d2735313227206865696768743d27353132273e3c67207472616e73666f726d3d277363616c6528363429273e3c696d6167652077696474683d273827206865696768743d273827207374796c653d27696d6167652d72656e646572696e673a20706978656c617465643b2720687265663d27646174613a696d6167652f6769663b6261736536342c52306c474f44646845774154414d5141414141414150622b592f37454a664e334e4e41525155554b4c4730624d73523153756a4b715737775177652f645142636d516545716a4452305567586f34413076726c713241414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414143483542416b4b414141414c4141414141415441424d414141644e674141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141424e674141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141424e674141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141424e674141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141413667414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414147424144733d272f3e3c2f673e3c2f7376673e227da2646970667358221220d2c1f1f752db1370178684558780571c324d5ea502a79466d3dfc5516512b00b64736f6c63430007010033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61030000000000000000000000008350c9989ef11325b36ce6f7549004d418dbcee700000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000001c6bf52634000

Deployed Bytecode

0x6080604052600436106101965760003560e01c806342966c68116100e15780639d1b464a1161008a578063b510391f11610064578063b510391f1461042f578063b88d4fde14610442578063c87b56dd14610462578063e985e9c51461048257610196565b80639d1b464a146103da5780639ec663d2146103ef578063a22cb4651461040f57610196565b806370a08231116100bb57806370a08231146103905780637e7e2d48146103b057806395d89b41146103c557610196565b806342966c68146103305780636352211e146103505780636d2e4b1b1461037057610196565b80631d0806ae116101435780632f745c591161011d5780632f745c59146102c35780633a5110db146102e357806342842e0e1461031057610196565b80631d0806ae1461027957806323b872dd1461028e5780632e22dc6b146102ae57610196565b8063081812fc11610174578063081812fc14610215578063095ea7b31461023557806318160ddd1461025757610196565b806301ffc9a71461019b57806302d05d3f146101d157806306fdde03146101f3575b600080fd5b3480156101a757600080fd5b506101bb6101b63660046121ec565b6104a2565b6040516101c891906123c5565b60405180910390f35b3480156101dd57600080fd5b506101e6610501565b6040516101c8919061230e565b3480156101ff57600080fd5b50610208610510565b6040516101c891906123ee565b34801561022157600080fd5b506101e6610230366004612224565b610547565b34801561024157600080fd5b5061025561025036600461218d565b6105ba565b005b34801561026357600080fd5b5061026c610653565b6040516101c891906128bf565b34801561028557600080fd5b5061026c610659565b34801561029a57600080fd5b506102556102a9366004612064565b61067d565b3480156102ba57600080fd5b5061026c610799565b3480156102cf57600080fd5b5061026c6102de36600461218d565b6107bd565b3480156102ef57600080fd5b506103036102fe3660046121b8565b6107e8565b6040516101c89190612354565b34801561031c57600080fd5b5061025561032b366004612064565b6108e6565b34801561033c57600080fd5b5061025561034b366004612224565b610901565b34801561035c57600080fd5b506101e661036b366004612224565b610983565b34801561037c57600080fd5b5061025561038b366004611fd6565b6109b6565b34801561039c57600080fd5b5061026c6103ab366004611fd6565b610a3f565b3480156103bc57600080fd5b5061026c610a88565b3480156103d157600080fd5b50610208610aac565b3480156103e657600080fd5b5061026c610ae3565b3480156103fb57600080fd5b5061025561040a366004611ff2565b610af5565b34801561041b57600080fd5b5061025561042a36600461210e565b610bb6565b61026c61043d36600461213f565b610bc5565b34801561044e57600080fd5b5061025561045d3660046120a4565b610d2b565b34801561046e57600080fd5b5061020861047d366004612224565b610e88565b34801561048e57600080fd5b506101bb61049d36600461202c565b610ecd565b60006104ad82610efb565b806104f957507f5b5e139f000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b90505b919050565b6005546001600160a01b031681565b60408051808201909152600e81527f4d616e64616c6120546f6b656e73000000000000000000000000000000000000602082015290565b600080600061055584610fdc565b90925090506001600160a01b0382166105895760405162461bcd60e51b815260040161058090612605565b60405180910390fd5b80156105af575050506000818152600460205260409020546001600160a01b03166104fc565b6000925050506104fc565b60006105c582611014565b90506001600160a01b0381166105ed5760405162461bcd60e51b815260040161058090612605565b6001600160a01b03811633148061062757506001600160a01b038116600090815260036020908152604080832033845290915290205460ff165b6106435760405162461bcd60e51b8152600401610580906126d0565b61064e818484611049565b505050565b60005490565b7f00000000000000000000000000000000000000000000000000038d7ea4c6800081565b60008061068983610fdc565b90925090506001600160a01b0382166106b45760405162461bcd60e51b815260040161058090612605565b846001600160a01b0316826001600160a01b0316146106e55760405162461bcd60e51b8152600401610580906127ac565b6001600160a01b03841661070b5760405162461bcd60e51b815260040161058090612707565b336001600160a01b03861614610787576001600160a01b038516600090815260036020908152604080832033845290915290205460ff168061076b575080801561076b57506000838152600460205260409020546001600160a01b031633145b6107875760405162461bcd60e51b8152600401610580906127e3565b610792858585611128565b5050505050565b7f0000000000000000000000000000000000000000000000000001c6bf5263400081565b6001600160a01b03821660009081526002602052604081206107df90836111bd565b90505b92915050565b6001600160a01b038316600090815260026020526040812060609161080c826111c9565b90508385018110156108305760405162461bcd60e51b815260040161058090612571565b8367ffffffffffffffff8111801561084757600080fd5b5060405190808252806020026020018201604052801561088157816020015b61086e611f3e565b8152602001906001900390816108665790505b50925060005b848110156108dc57600061089d848884016111bd565b905060405180604001604052808281526020016108b9836111d4565b8152508583815181106108c857fe5b602090810291909101015250600101610887565b5050509392505050565b61064e83838360405180602001604052806000815250610d2b565b600061091961091460016000540361143e565b611485565b9050610924826114b3565b604051339082156108fc029083906000818181858888f19350505050158015610951573d6000803e3d6000fd5b50604051819083907fcec1bae6e024d929f2929f3478ce70f55f9c636c8ef7b5073a61d7c3a432451b90600090a35050565b600061098e82611014565b90506001600160a01b0381166104fc5760405162461bcd60e51b815260040161058090612503565b6005546001600160a01b03163381146109e15760405162461bcd60e51b815260040161058090612851565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384811691821790925560405190918316907ff25c6226b06a6bf4b2c2391bb66962bb4290c323cf8b5814efb185aba3f42d5f90600090a35050565b60006001600160a01b038216610a675760405162461bcd60e51b815260040161058090612775565b6001600160a01b03821660009081526002602052604090206104f9906111c9565b7f00000000000000000000000000000000000000000000000000000000000001f481565b60408051808201909152600781527f4d414e44414c4100000000000000000000000000000000000000000000000000602082015290565b6000610af060005461143e565b905090565b6000610aff6115d5565b90506001600160a01b038116610b3e576001600160a01b037fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355610b53565b336001600160a01b03821614610b5357600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691909117918290556040519116906000907ff25c6226b06a6bf4b2c2391bb66962bb4290c323cf8b5814efb185aba3f42d5f908290a35050505050565b610bc13383836115fa565b5050565b600080610bd360005461143e565b905080341015610bf55760405162461bcd60e51b81526004016105809061253a565b600084604051602001610c0891906122b8565b6040516020818303038152906040528051906020012090506000610c3585610c2f84611689565b906116b9565b9050610c4a816001600160a01b031687611704565b6000610c5584611485565b8403905060018115610c8c576005546040516001600160a01b039091169083156108fc029084906000818181858888f19450505050505b801580610c9857508434115b15610ce157336108fc8215610cae576000610cb0565b835b873403019081150290604051600060405180830381858888f19350505050158015610cdf573d6000803e3d6000fd5b505b60405185906001600160a01b038516907f8a9dcf4e150b1153011b29fec302d5be0c13e84fa8f56ab78587f778a32a90dd90600090a350506001600160a01b031695945050505050565b600080610d3784610fdc565b90925090506001600160a01b038216610d625760405162461bcd60e51b815260040161058090612605565b856001600160a01b0316826001600160a01b031614610d935760405162461bcd60e51b8152600401610580906127ac565b6001600160a01b038516610db95760405162461bcd60e51b815260040161058090612707565b336001600160a01b03871614610e35576001600160a01b038616600090815260036020908152604080832033845290915290205460ff1680610e195750808015610e1957506000848152600460205260409020546001600160a01b031633145b610e355760405162461bcd60e51b8152600401610580906127e3565b610e40868686611128565b610e52856001600160a01b03166117ce565b15610e8057610e6433878787876117d4565b610e805760405162461bcd60e51b81526004016105809061263c565b505050505050565b60606000610e9583611014565b90506001600160a01b038116610ebd5760405162461bcd60e51b815260040161058090612888565b610ec6836111d4565b9392505050565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161480610f8e57507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806104f95750507fffffffff00000000000000000000000000000000000000000000000000000000167f780e9d63000000000000000000000000000000000000000000000000000000001490565b600090815260016020526040902054907f80000000000000000000000000000000000000000000000000000000000000008083161490565b6000818152600160205260409020546001600160a01b0381166104fc5760405162461bcd60e51b81526004016105809061273e565b6001600160a01b0382166110765760008181526001602052604090206001600160a01b03841690556110e2565b60008181526001602090815260408083206001600160a01b038781167f8000000000000000000000000000000000000000000000000000000000000000179091556004909252909120805473ffffffffffffffffffffffffffffffffffffffff19169184169190911790555b80826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6001600160a01b038316600090815260026020526040902061114a90826118ab565b506001600160a01b038216600090815260026020526040902061116d90826118b7565b506000818152600160205260408082206001600160a01b03808616918290559151849391928716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006107df83836118c3565b60006104f982611908565b60608060405180610440016040528061040c815260200161290f61040c9139905061120181604a8561190c565b60005b602881101561143757600060108260010160280360040286901c8161122557fe5b06905060ff8116611234575060105b60006112607f8934893467893456789456789567896789789899000000000000000000000000846119c7565b9050600061128d7e11112222223333333444444555556666777889000000000000000000000000856119c7565b90506112ad856102096004840460020285601386020101600101866119db565b80821461137f576112d2856102096004850460020284601387020101600101866119db565b600981146112f8576112f8856102096004850460020260138581039087020101866119db565b6009821461133157611331856102096004600186601303038161131757fe5b0460020284601360018860130303020101600101866119db565b60098214801590611343575060098114155b1561137f5761137f856102096004600186601303038161135f57fe5b0460020260018560130303601360018860130303020101600101866119db565b600982146113a5576113a5856102096004840460020260138681039086020101866119db565b600981146113de576113de85610209600460018560130303816113c457fe5b0460020285601360018760130303020101600101866119db565b600982148015906113f0575060098114155b1561142c5761142c856102096004600185601303038161140c57fe5b0460020260018660130303601360018760130303020101600101866119db565b505050600101611204565b5092915050565b7f0000000000000000000000000000000000000000000000000001c6bf52634000027f00000000000000000000000000000000000000000000000000038d7ea4c680000190565b6127107f00000000000000000000000000000000000000000000000000000000000001f48103919091020490565b600081815260016020526040902054806114df5760405162461bcd60e51b81526004016105809061273e565b7f400000000000000000000000000000000000000000000000000000000000000081161561151f5760405162461bcd60e51b815260040161058090612438565b80336001600160a01b038216146115485760405162461bcd60e51b8152600401610580906127ac565b6001600160a01b038116600090815260026020526040902061156a90846118ab565b506000838152600160205260408082207f4000000000000000000000000000000000000000000000000000000000000000905581546000190182555184919033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505050565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b6001600160a01b038381166000818152600360209081526040808320948716808452949091529081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061167c9085906123c5565b60405180910390a3505050565b60008160405160200161169c9190612287565b604051602081830303815290604052805190602001209050919050565b600081516041146116dc5760405162461bcd60e51b8152600401610580906124cc565b60208201516040830151606084015160001a6116fa86828585611bda565b9695505050505050565b6001600160a01b03811661172a5760405162461bcd60e51b815260040161058090612707565b60008281526001602052604090205480156117575760405162461bcd60e51b81526004016105809061281a565b6001600160a01b038216600090815260026020526040902061177990846118b7565b5060008381526001602081905260408083206001600160a01b0386169081905583549092018355518592907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4505050565b3b151590565b600080846001600160a01b031663150b7a02888887876040518563ffffffff1660e01b81526004016118099493929190612322565b602060405180830381600087803b15801561182357600080fd5b505af1158015611837573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185b9190612208565b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001491505095945050505050565b60006107df8383611cd0565b60006107df8383611d96565b815460009082106118e65760405162461bcd60e51b81526004016105809061246f565b8260000182815481106118f557fe5b9060005260206000200154905092915050565b5490565b801561064e576040805180820190915260108082527f3031323334353637383961626364656600000000000000000000000000000000602083015282068151811061195357fe5b016020015183516000198401937fff00000000000000000000000000000000000000000000000000000000000000909216918591811061198f57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506010900461190c565b600460019190910102610100031c600f1690565b6000600660088402048401905060006006600885020690506000611a30878481518110611a0457fe5b01602001517fff0000000000000000000000000000000000000000000000000000000000000016611de0565b905060ff8216611afd57611a4a603f600286901c16611e9c565b878481518110611a5657fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000611a99888560010181518110611a0457fe5b9050611ab9600f821660048060ff89165b0660ff16901b1760ff16611e9c565b888560010181518110611ac857fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535050611bd1565b8160ff1660021415611b8657611b218160301660048660ff16901c1760ff16611e9c565b878481518110611b2d57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000611b70888560010181518110611a0457fe5b9050611ab9600382166002601060ff8916611aaa565b611b92603f8516611e9c565b878460010181518110611ba157fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b50505050505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115611c1c5760405162461bcd60e51b8152600401610580906125a8565b8360ff16601b1480611c3157508360ff16601c145b611c4d5760405162461bcd60e51b815260040161058090612673565b600060018686868660405160008152602001604052604051611c7294939291906123d0565b6020604051602081039080840390855afa158015611c94573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611cc75760405162461bcd60e51b815260040161058090612401565b95945050505050565b60008181526001830160205260408120548015611d8c5783546000198083019190810190600090879083908110611d0357fe5b9060005260206000200154905080876000018481548110611d2057fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611d5057fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506107e2565b60009150506107e2565b6000611da28383611f26565b611dd8575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107e2565b5060006107e2565b6000602b60f883901c1415611df75750603e6104fc565b602f60f883901c1415611e0c5750603f6104fc565b603060f883901c10801590611e265750603960f883901c11155b15611e395750600460f882901c016104fc565b604160f883901c10801590611e535750605a60f883901c11155b15611e665760418260f81c0390506104fc565b605a60f883901c10801590611e805750607a60f883901c11155b15611e945750603f1960f882901c016104fc565b506000919050565b600060208262ffffff1610611eeb577f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f62ffffff601f1984011660208110611ee057fe5b1a60f81b90506104fc565b7f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656662ffffff831660208110611f1c57fe5b1a60f81b92915050565b60009081526001919091016020526040902054151590565b604051806040016040528060008152602001606081525090565b600082601f830112611f68578081fd5b813567ffffffffffffffff80821115611f7f578283fd5b6040516020601f19601f8501168201018181108382111715611f9f578485fd5b604052828152925082848301602001861015611fba57600080fd5b8260208601602083013760006020848301015250505092915050565b600060208284031215611fe7578081fd5b8135610ec6816128c8565b60008060008060808587031215612007578283fd5b8435612012816128c8565b966020860135965060408601359560600135945092505050565b6000806040838503121561203e578182fd5b8235612049816128c8565b91506020830135612059816128c8565b809150509250929050565b600080600060608486031215612078578283fd5b8335612083816128c8565b92506020840135612093816128c8565b929592945050506040919091013590565b600080600080608085870312156120b9578384fd5b84356120c4816128c8565b935060208501356120d4816128c8565b925060408501359150606085013567ffffffffffffffff8111156120f6578182fd5b61210287828801611f58565b91505092959194509250565b60008060408385031215612120578182fd5b823561212b816128c8565b915060208301358015158114612059578182fd5b60008060408385031215612151578182fd5b823561215c816128c8565b9150602083013567ffffffffffffffff811115612177578182fd5b61218385828601611f58565b9150509250929050565b6000806040838503121561219f578182fd5b82356121aa816128c8565b946020939093013593505050565b6000806000606084860312156121cc578283fd5b83356121d7816128c8565b95602085013595506040909401359392505050565b6000602082840312156121fd578081fd5b8135610ec6816128e0565b600060208284031215612219578081fd5b8151610ec6816128e0565b600060208284031215612235578081fd5b5035919050565b60008151808452815b8181101561226157602081850181015186830182015201612245565b818111156122725782602083870101525b50601f01601f19169290920160200192915050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b7f4d616e64616c6100000000000000000000000000000000000000000000000000815260609190911b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166007820152601b0190565b6001600160a01b0391909116815260200190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526116fa608083018461223c565b60208082528251828201819052600091906040908185019080840286018301878501865b838110156123b757888303603f190185528151805184528701518784018790526123a48785018261223c565b9588019593505090860190600101612378565b509098975050505050505050565b901515815260200190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526107df602083018461223c565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b6020808252600d908201527f414c52454144595f4255524e5400000000000000000000000000000000000000604082015260600190565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60408201527f6473000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526011908201527f4e4f4e4558495354414e545f544f4b454e000000000000000000000000000000604082015260600190565b6020808252600e908201527f4e4f545f454e4f5547485f455448000000000000000000000000000000000000604082015260600190565b60208082526018908201527f544f4f5f4d414e595f544f4b454e5f5245515545535445440000000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60408201527f7565000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f4e4f4e4558495354454e545f544f4b454e000000000000000000000000000000604082015260600190565b60208082526018908201527f4552433732315f5452414e534645525f52454a45435445440000000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60408201527f7565000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526015908201527f554e415554484f52495a45445f415050524f56414c0000000000000000000000604082015260600190565b60208082526012908201527f4e4f545f544f5f5a45524f414444524553530000000000000000000000000000604082015260600190565b60208082526009908201527f4e4f545f45584953540000000000000000000000000000000000000000000000604082015260600190565b60208082526012908201527f5a45524f5f414444524553535f4f574e45520000000000000000000000000000604082015260600190565b60208082526009908201527f4e4f545f4f574e45520000000000000000000000000000000000000000000000604082015260600190565b60208082526015908201527f554e415554484f52495a45445f5452414e534645520000000000000000000000604082015260600190565b6020808252600e908201527f414c52454144595f4d494e544544000000000000000000000000000000000000604082015260600190565b6020808252600e908201527f4e4f545f415554484f52495a4544000000000000000000000000000000000000604082015260600190565b6020808252600a908201527f4e4f545f45584953545300000000000000000000000000000000000000000000604082015260600190565b90815260200190565b6001600160a01b03811681146128dd57600080fd5b50565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146128dd57600080fdfe646174613a746578742f706c61696e2c7b226e616d65223a224d616e64616c6120307830303030303030303030303030303030303030303030303030303030303030303030303030303030222c226465736372697074696f6e223a224120556e69717565204d616e64616c61222c22696d616765223a22646174613a696d6167652f7376672b786d6c2c3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f737667272073686170652d72656e646572696e673d2763726973704564676573272077696474683d2735313227206865696768743d27353132273e3c67207472616e73666f726d3d277363616c6528363429273e3c696d6167652077696474683d273827206865696768743d273827207374796c653d27696d6167652d72656e646572696e673a20706978656c617465643b2720687265663d27646174613a696d6167652f6769663b6261736536342c52306c474f44646845774154414d5141414141414150622b592f37454a664e334e4e41525155554b4c4730624d73523153756a4b715737775177652f645142636d516545716a4452305567586f34413076726c713241414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414143483542416b4b414141414c4141414141415441424d414141644e674141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141424e674141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141424e674141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141424e674141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141413667414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414147424144733d272f3e3c2f673e3c2f7376673e227da2646970667358221220d2c1f1f752db1370178684558780571c324d5ea502a79466d3dfc5516512b00b64736f6c63430007010033

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

0000000000000000000000008350c9989ef11325b36ce6f7549004d418dbcee700000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000001c6bf52634000

-----Decoded View---------------
Arg [0] : _creator (address): 0x8350C9989EF11325b36Ce6f7549004D418dbcEE7
Arg [1] : _initialPrice (uint256): 1000000000000000
Arg [2] : _creatorCutPer10000th (uint256): 500
Arg [3] : _linearCoefficient (uint256): 500000000000000

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000008350c9989ef11325b36ce6f7549004d418dbcee7
Arg [1] : 00000000000000000000000000000000000000000000000000038d7ea4c68000
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [3] : 0000000000000000000000000000000000000000000000000001c6bf52634000


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.