ETH Price: $3,024.51 (+2.20%)
Gas: 3 Gwei

Token

Amulets (AMULET)
 

Overview

Max Total Supply

1,547 AMULET

Holders

357

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
ASTROCRYPTIDS: Deployer
0xf75341b90b8beb9f93c50facb92bc552f20797bb
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Amulet

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 9 : Amulet.sol
// SPDX-License-Identifier: MIT
// Derived from OpenZeppelin's ERC721 implementation, with changes for gas-efficiency.

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./IAmulet.sol";
import "./ProxyRegistryWhitelist.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract Amulet is IAmulet, ERC165, ProxyRegistryWhitelist {
    using Address for address;

    // Mapping from token ID to token data
    // Values are packed in the form:
    // [score (32 bits)][blockRevealed (64 bits)][owner (160 bits)]
    // This is equivalent to the following Solidity structure,
    // but saves us about 4200 gas on mint, 3600 gas on reveal,
    // and 140 gas on transfer.
    // struct Token {
    //   uint32 score;
    //   uint64 blockRevealed;
    //   address owner;
    // }
    mapping (uint256 => uint256) private _tokens;

    // Mapping from owner to operator approvals
    mapping (address => mapping (address => bool)) private _operatorApprovals;

    constructor (address proxyRegistryAddress, MintData[] memory premineMints, MintAndRevealData[] memory premineReveals) ProxyRegistryWhitelist(proxyRegistryAddress) {
        mintAll(premineMints);
        mintAndRevealAll(premineReveals);
    }

    /**************************************************************************
     * Opensea-specific methods
     *************************************************************************/

    function contractURI() external pure returns (string memory) {
        return "https://at.amulet.garden/contract.json";
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual returns (string memory) {
        return "Amulets";
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual returns (string memory) {
        return "AMULET";
    }

    /**************************************************************************
     * ERC721 methods
     *************************************************************************/

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IERC1155).interfaceId
            || interfaceId == type(IERC1155MetadataURI).interfaceId
            || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC1155Metadata-uri}.
     */
    function uri(uint256 /*tokenId*/) public view virtual override returns (string memory) {
        return "https://at.amulet.garden/token/{id}.json";
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        (address owner,,) = getData(id);
        if(owner == account) {
            return 1;
        }
        return 0;
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] memory accounts,
        uint256[] memory ids
    )
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(msg.sender != operator, "ERC1155: setting approval status for self");

        _operatorApprovals[msg.sender][operator] = approved;
        emit ApprovalForAll(msg.sender, operator, approved);
    }

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[account][operator] || isProxyForOwner(account, operator);
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    )
        public
        virtual
        override
    {
        require(to != address(0), "ERC1155: transfer to the zero address");
        require(
            from == msg.sender || isApprovedForAll(from, msg.sender),
            "ERC1155: caller is not owner nor approved"
        );

        (address oldOwner, uint64 blockRevealed, uint32 score) = getData(id);
        require(amount == 1 && oldOwner == from, "ERC1155: Insufficient balance for transfer");
        setData(id, to, blockRevealed, score);

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

        _doSafeTransferAcceptanceCheck(msg.sender, from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    )
        public
        virtual
        override
    {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");
        require(
            from == msg.sender || isApprovedForAll(from, msg.sender),
            "ERC1155: transfer caller is not owner nor approved"
        );

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

            (address oldOwner, uint64 blockRevealed, uint32 score) = getData(id);
            require(amount == 1 && oldOwner == from, "ERC1155: insufficient balance for transfer");
            setData(id, to, blockRevealed, score);
        }

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

        _doSafeBatchTransferAcceptanceCheck(msg.sender, from, to, ids, amounts, data);
    }

    /**************************************************************************
     * Amulet-specific methods
     *************************************************************************/

    /**
     * @dev Returns the owner of the token with id `id`.
     */
    function ownerOf(uint256 id) external override view returns(address) {
        (address owner,,) = getData(id);
        return owner;
    }


    /**
     * @dev Returns the score of an amulet.
     *      0-3: Not an amulet
     *      4: common
     *      5: uncommon
     *      6: rare
     *      7: epic
     *      8: legendary
     *      9: mythic
     *      10+: beyond mythic
     */
    function getScore(string memory amulet) public override pure returns(uint32) {
        uint256 hash = uint256(sha256(bytes(amulet)));
        uint maxlen = 0;
        uint len = 0;
        for(;hash > 0; hash >>= 4) {
            if(hash & 0xF == 8) {
                len += 1;
                if(len > maxlen) {
                    maxlen = len;
                }
            } else {
                len = 0;
            }
        }
        return uint32(maxlen);        
    }

    /**
     * @dev Returns true if an amulet has been revealed.
     *      If this returns false, we cannot be sure the amulet even exists! Don't accept an amulet from someone
     *      if it's not revealed and they won't show you the text of the amulet.
     */
    function isRevealed(uint256 tokenId) external override view returns(bool) {
        (address owner, uint64 blockRevealed,) = getData(tokenId);
        require(owner != address(0), "ERC721: isRevealed query for nonexistent token");
        return blockRevealed > 0;
    }

    /**
     * @dev Mint a new amulet.
     * @param data The ID and owner for the new token.
     */
    function mint(MintData memory data) public override {
        require(data.owner != address(0), "ERC1155: mint to the zero address");
        require(_tokens[data.tokenId] == 0, "ERC1155: mint of existing token");

        _tokens[data.tokenId] = uint256(uint160(data.owner));
        emit TransferSingle(msg.sender, address(0), data.owner, data.tokenId, 1);

        _doSafeTransferAcceptanceCheck(msg.sender, address(0), data.owner, data.tokenId, 1, "");
    }

    /**
     * @dev Mint new amulets.
     * @param data The IDs and amulets for the new tokens.
     */
    function mintAll(MintData[] memory data) public override {
        for(uint i = 0; i < data.length; i++) {
            mint(data[i]);
        }
    }

    /**
     * @dev Reveals an amulet.
     * @param data The title, text, and offset URL for the amulet.
     */
    function reveal(RevealData calldata data) public override {
        require(bytes(data.amulet).length <= 64, "Amulet: Too long");
        uint256 tokenId = uint256(keccak256(bytes(data.amulet)));
        (address owner, uint64 blockRevealed, uint32 score) = getData(tokenId);
        require(
            owner == msg.sender || isApprovedForAll(owner, msg.sender),
            "Amulet: reveal caller is not owner nor approved"
        );
        require(blockRevealed == 0, "Amulet: Already revealed");

        score = getScore(data.amulet);
        require(score >= 4, "Amulet: Score too low");

        setData(tokenId, owner, uint64(block.number), score);
        emit AmuletRevealed(tokenId, msg.sender, data.title, data.amulet, data.offsetURL);
    }

    /**
     * @dev Reveals multiple amulets
     * @param data The titles, texts, and offset URLs for the amulets.
     */
    function revealAll(RevealData[] calldata data) external override {
        for(uint i = 0; i < data.length; i++) {
            reveal(data[i]);
        }
    }

    /**
     * @dev Mint and reveal an amulet.
     * @param data The title, text, offset URL, and owner for the new amulet.
     */
    function mintAndReveal(MintAndRevealData memory data) public override {
        require(bytes(data.amulet).length <= 64, "Amulet: Too long");
        uint256 tokenId = uint256(keccak256(bytes(data.amulet)));
        (address owner,,) = getData(tokenId);
        require(owner == address(0), "ERC1155: mint of existing token");
        require(data.owner != address(0), "ERC1155: mint to the zero address");

        uint32 score = getScore(data.amulet);
        require(score >= 4, "Amulet: Score too low");

        setData(tokenId, data.owner, uint64(block.number), score);
        emit TransferSingle(msg.sender, address(0), data.owner, tokenId, 1);
        emit AmuletRevealed(tokenId, msg.sender, data.title, data.amulet, data.offsetURL);
    }

    /**
     * @dev Mint and reveal amulets.
     * @param data The titles, texts, offset URLs, and owners for the new amulets.
     */
    function mintAndRevealAll(MintAndRevealData[] memory data) public override {
        for(uint i = 0; i < data.length; i++) {
            mintAndReveal(data[i]);
        }
    }

    /**
     * @dev Returns the Amulet's owner address, the block it was revealed in, and its score.
     */
    function getData(uint256 tokenId) public override view returns(address owner, uint64 blockRevealed, uint32 score) {
        uint256 t = _tokens[tokenId];
        owner = address(uint160(t));
        blockRevealed = uint64(t >> 160);
        score = uint32(t >> 224);
    }

    /**
     * @dev Sets the amulet's owner address, reveal block, and score.
     */
    function setData(uint256 tokenId, address owner, uint64 blockRevealed, uint32 score) internal {
        _tokens[tokenId] = uint256(uint160(owner)) | (uint256(blockRevealed) << 160) | (uint256(score) << 224);
    }

    /**************************************************************************
     * Internal/private methods
     *************************************************************************/

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    )
        private
    {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver(to).onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    )
        private
    {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (bytes4 response) {
                if (response != IERC1155Receiver(to).onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }
}

File 2 of 9 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {

    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    )
        external
        returns(bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    )
        external
        returns(bytes4);
}

File 3 of 9 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 4 of 9 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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 5 of 9 : IAmulet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol";

interface IAmulet is IERC1155, IERC1155MetadataURI {
    event AmuletRevealed(uint256 indexed tokenId, address revealedBy, string title, string amulet, string offsetUrl);

    struct MintData {
        address owner;
        uint256 tokenId;
    }

    struct RevealData {
        string title;
        string amulet;
        string offsetURL;
    }

    struct MintAndRevealData {
        string title;
        string amulet;
        string offsetURL;
        address owner;
    }

    /**
     * @dev Returns the owner of the token with id `id`.
     */
    function ownerOf(uint256 id) external view returns(address);

    /**
     * @dev Returns the score of an amulet.
     *      0-3: Not an amulet
     *      4: common
     *      5: uncommon
     *      6: rare
     *      7: epic
     *      8: legendary
     *      9: mythic
     *      10+: beyond mythic
     */
    function getScore(string calldata amulet) external pure returns(uint32);

    /**
     * @dev Returns true if an amulet has been revealed.
     *      If this returns false, we cannot be sure the amulet even exists! Don't accept an amulet from someone
     *      if it's not revealed and they won't show you the text of the amulet.
     */
    function isRevealed(uint256 tokenId) external view returns(bool);

    /**
     * @dev Mint a new amulet.
     * @param data The ID and owner for the new token.
     */
    function mint(MintData calldata data) external;

    /**
     * @dev Mint new amulets.
     * @param data The IDs and amulets for the new tokens.
     */
    function mintAll(MintData[] calldata data) external;

    /**
     * @dev Reveals an amulet.
     * @param data The title, text, and offset URL for the amulet.
     */
    function reveal(RevealData calldata data) external;

    /**
     * @dev Reveals multiple amulets
     * @param data The titles, texts, and offset URLs for the amulets.
     */
    function revealAll(RevealData[] calldata data) external;

    /**
     * @dev Mint and reveal an amulet.
     * @param data The title, text, offset URL, and owner for the new amulet.
     */
    function mintAndReveal(MintAndRevealData calldata data) external;

    /**
     * @dev Mint and reveal amulets.
     * @param data The titles, texts, offset URLs, and owners for the new amulets.
     */
    function mintAndRevealAll(MintAndRevealData[] calldata data) external;

    /**
     * @dev Returns the Amulet's owner address, the block it was revealed in, and its score.
     */
    function getData(uint256 tokenId) external view returns(address owner, uint64 blockRevealed, uint32 score);
}

File 6 of 9 : ProxyRegistryWhitelist.sol
// SPDX-License-Identifier: MIT
// Derived from OpenZeppelin's ERC721 implementation, with changes for gas-efficiency.

pragma solidity ^0.8.0;

contract ProxyRegistry {
    mapping(address => address) public proxies;
}

contract ProxyRegistryWhitelist {
    ProxyRegistry public proxyRegistry;

    constructor(address proxyRegistryAddress) {
        proxyRegistry = ProxyRegistry(proxyRegistryAddress);
    }

    function isProxyForOwner(address owner, address caller) internal view returns(bool) {
        if(address(proxyRegistry) == address(0)) {
            return false;
        }
        return proxyRegistry.proxies(owner) == caller;
    }
}

File 7 of 9 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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 8 of 9 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values);

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;
}

File 9 of 9 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"proxyRegistryAddress","type":"address"},{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"internalType":"struct IAmulet.MintData[]","name":"premineMints","type":"tuple[]"},{"components":[{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"amulet","type":"string"},{"internalType":"string","name":"offsetURL","type":"string"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct IAmulet.MintAndRevealData[]","name":"premineReveals","type":"tuple[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"revealedBy","type":"address"},{"indexed":false,"internalType":"string","name":"title","type":"string"},{"indexed":false,"internalType":"string","name":"amulet","type":"string"},{"indexed":false,"internalType":"string","name":"offsetUrl","type":"string"}],"name":"AmuletRevealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getData","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint64","name":"blockRevealed","type":"uint64"},{"internalType":"uint32","name":"score","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"amulet","type":"string"}],"name":"getScore","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"internalType":"struct IAmulet.MintData","name":"data","type":"tuple"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"internalType":"struct IAmulet.MintData[]","name":"data","type":"tuple[]"}],"name":"mintAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"amulet","type":"string"},{"internalType":"string","name":"offsetURL","type":"string"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct IAmulet.MintAndRevealData","name":"data","type":"tuple"}],"name":"mintAndReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"amulet","type":"string"},{"internalType":"string","name":"offsetURL","type":"string"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct IAmulet.MintAndRevealData[]","name":"data","type":"tuple[]"}],"name":"mintAndRevealAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistry","outputs":[{"internalType":"contract ProxyRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"amulet","type":"string"},{"internalType":"string","name":"offsetURL","type":"string"}],"internalType":"struct IAmulet.RevealData","name":"data","type":"tuple"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"amulet","type":"string"},{"internalType":"string","name":"offsetURL","type":"string"}],"internalType":"struct IAmulet.RevealData[]","name":"data","type":"tuple[]"}],"name":"revealAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162003a4038038062003a40833981016040819052620000349162000936565b600080546001600160a01b0319166001600160a01b0385161790556200005a826200006e565b6200006581620000cd565b50505062000d3d565b60005b8151811015620000c957620000b4828281518110620000a057634e487b7160e01b600052603260045260246000fd5b60200260200101516200012860201b60201c565b80620000c08162000c3f565b91505062000071565b5050565b60005b8151811015620000c95762000113828281518110620000ff57634e487b7160e01b600052603260045260246000fd5b60200260200101516200026b60201b60201c565b806200011f8162000c3f565b915050620000d0565b80516001600160a01b03166200017e5760405162461bcd60e51b8152602060048201526021602482015260008051602062003a208339815191526044820152607360f81b60648201526084015b60405180910390fd5b60208082015160009081526001909152604090205415620001e25760405162461bcd60e51b815260206004820152601f60248201527f455243313135353a206d696e74206f66206578697374696e6720746f6b656e00604482015260640162000175565b8051602080830180516000908152600180845260408083206001600160a01b03968716905586519351815190815294850191909152919093169291339160008051602062003a00833981519152910160405180910390a46200026833600083600001518460200151600160405180602001604052806000815250620004af60201b60201c565b50565b60408160200151511115620002b65760405162461bcd60e51b815260206004820152601060248201526f416d756c65743a20546f6f206c6f6e6760801b604482015260640162000175565b60208082015180519101206000620002e6826000908152600160205260409020549060a082901c9060e083901c90565b50909150506001600160a01b03811615620003445760405162461bcd60e51b815260206004820152601f60248201527f455243313135353a206d696e74206f66206578697374696e6720746f6b656e00604482015260640162000175565b60608301516001600160a01b0316620003995760405162461bcd60e51b8152602060048201526021602482015260008051602062003a208339815191526044820152607360f81b606482015260840162000175565b6000620003b084602001516200069660201b60201c565b905060048163ffffffff1610156200040b5760405162461bcd60e51b815260206004820152601560248201527f416d756c65743a2053636f726520746f6f206c6f770000000000000000000000604482015260640162000175565b6200042383856060015143846200074560201b60201c565b606084015160408051858152600160208201526001600160a01b0390921691600091339160008051602062003a00833981519152910160405180910390a483516020850151604080870151905186937f869a54a5423109cd8469dd6939fd68faae75a4771942c0530877f8ee23ab558793620004a193339362000b28565b60405180910390a250505050565b620004ce846001600160a01b03166200078760201b62001ade1760201c565b156200068e5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906200050a908990899088908890889060040162000ae1565b602060405180830381600087803b1580156200052557600080fd5b505af192505050801562000558575060408051601f3d908101601f19168201909252620005559181019062000a64565b60015b62000619576200056762000c89565b806308c379a01415620005a857506200057f62000ca2565b806200058c5750620005aa565b8060405162461bcd60e51b815260040162000175919062000b78565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e746572000000000000000000000000606482015260840162000175565b6001600160e01b0319811663f23a6e6160e01b146200068c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840162000175565b505b505050505050565b600080600283604051620006ab919062000ac3565b602060405180830381855afa158015620006c9573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190620006ee919062000a4b565b90506000805b82156200073b5782600f16600814156200072a576200071560018262000bc2565b90508181111562000724578091505b6200072e565b5060005b600483901c9250620006f4565b509150505b919050565b60e08163ffffffff16901b60a0836001600160401b0316901b846001600160a01b03161717600160008681526020019081526020016000208190555050505050565b3b151590565b80516001600160a01b03811681146200074057600080fd5b600082601f830112620007b6578081fd5b81516020620007c58262000b9c565b604051620007d4828262000c10565b8381528281019150858301855b85811015620008b35781518801608080601f19838d0301121562000803578889fd5b6200080e8162000b8d565b828801516001600160401b038082111562000827578b8cfd5b620008378e8b84880101620008c0565b835260408501519150808211156200084d578b8cfd5b6200085d8e8b84880101620008c0565b8a84015260609150818501518181111562000876578c8dfd5b620008868f8c83890101620008c0565b604085015250506200089a8385016200078d565b90820152865250509284019290840190600101620007e1565b5090979650505050505050565b600082601f830112620008d1578081fd5b81516001600160401b03811115620008ed57620008ed62000c73565b60405162000906601f8301601f19166020018262000c10565b8181528460208386010111156200091b578283fd5b6200092e82602083016020870162000bdd565b949350505050565b6000806000606084860312156200094b578283fd5b62000956846200078d565b602085810151919450906001600160401b038082111562000975578485fd5b818701915087601f83011262000989578485fd5b8151620009968162000b9c565b60408051620009a6838262000c10565b8381528681019250858701828502870188018d1015620009c457898afd5b8996505b8487101562000a185782818e031215620009e057898afd5b8251620009ee848262000c10565b620009f9826200078d565b81528189015189820152845260019690960195928701928201620009c8565b50908a0151909750945050508083111562000a31578384fd5b505062000a4186828701620007a5565b9150509250925092565b60006020828403121562000a5d578081fd5b5051919050565b60006020828403121562000a76578081fd5b81516001600160e01b03198116811462000a8e578182fd5b9392505050565b6000815180845262000aaf81602086016020860162000bdd565b601f01601f19169290920160200192915050565b6000825162000ad781846020870162000bdd565b9190910192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009062000b1d9083018462000a95565b979650505050505050565b6001600160a01b038516815260806020820181905260009062000b4e9083018662000a95565b828103604084015262000b62818662000a95565b9050828103606084015262000b1d818562000a95565b60006020825262000a8e602083018462000a95565b60405162000740828262000c10565b60006001600160401b0382111562000bb85762000bb862000c73565b5060209081020190565b6000821982111562000bd85762000bd862000c5d565b500190565b60005b8381101562000bfa57818101518382015260200162000be0565b8381111562000c0a576000848401525b50505050565b601f8201601f191681016001600160401b038111828210171562000c385762000c3862000c73565b6040525050565b600060001982141562000c565762000c5662000c5d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111562000c9f57600481823e5160e01c5b90565b600060443d101562000cb45762000c9f565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171562000ce757505050505062000c9f565b828501915081518181111562000d035750505050505062000c9f565b843d870101602082850101111562000d215750505050505062000c9f565b62000d326020828601018762000c10565b509094505050505090565b612cb38062000d4d6000396000f3fe608060405234801561001057600080fd5b50600436106101815760003560e01c80636352211e116100d8578063ad193e101161008c578063e8a3d48511610066578063e8a3d485146103f7578063e985e9c5146103ff578063f242432a1461041257610181565b8063ad193e10146103b1578063b50cbd9f146103c4578063cd544b83146103e457610181565b80637e5509a8116100bd5780637e5509a81461035257806395d89b4114610365578063a22cb4651461039e57610181565b80636352211e146102fa5780637c870e4c1461033f57610181565b8063160202731161013a5780635055fbc3116101145780635055fbc3146102c15780635d510015146102d45780635faf6966146102e757610181565b806316020273146102645780632eb2c2d61461028c5780634e1273f4146102a157610181565b806301ffc9a71161016b57806301ffc9a71461021957806306fdde031461023c5780630e89341c1461025157610181565b8062fdd58e146101865780630178fe3f146101ac575b600080fd5b6101996101943660046122f1565b610425565b6040519081526020015b60405180910390f35b6101d86101ba3660046126a0565b6000908152600160205260409020549060a082901c9060e083901c90565b6040805173ffffffffffffffffffffffffffffffffffffffff909416845267ffffffffffffffff909216602084015263ffffffff16908201526060016101a3565b61022c6102273660046125a7565b6104fb565b60405190151581526020016101a3565b6102446105e2565b6040516101a3919061292b565b61024461025f3660046126a0565b61061a565b6102776102723660046125df565b61063b565b60405163ffffffff90911681526020016101a3565b61029f61029a3660046121af565b6106dc565b005b6102b46102af36600461231c565b610b04565b6040516101a391906128ea565b61022c6102cf3660046126a0565b610cd6565b61029f6102e236600461247b565b610d86565b61029f6102f5366004612668565b610df1565b61031a6103083660046126a0565b60009081526001602052604090205490565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101a3565b61029f61034d366004612520565b611116565b61029f6103603660046123e7565b611186565b60408051808201909152600681527f414d554c455400000000000000000000000000000000000000000000000000006020820152610244565b61029f6103ac3660046122c0565b6111ed565b61029f6103bf36600461264d565b611310565b60005461031a9073ffffffffffffffffffffffffffffffffffffffff1681565b61029f6103f236600461261a565b61149b565b61024461179e565b61022c61040d366004612177565b6117be565b61029f610420366004612259565b61180d565b600073ffffffffffffffffffffffffffffffffffffffff83166104b55760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b60008281526001602052604090205473ffffffffffffffffffffffffffffffffffffffff80821690851614156104ef5760019150506104f5565b60009150505b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a2600000000000000000000000000000000000000000000000000000000148061058e57507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b806105da57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b90505b919050565b60408051808201909152600781527f416d756c6574730000000000000000000000000000000000000000000000000060208201525b90565b6060604051806060016040528060288152602001612c566028913992915050565b60008060028360405161064e9190612758565b602060405180830381855afa15801561066b573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061068e919061258f565b90506000805b82156106d45782600f16600814156106c4576106b1600182612a0c565b9050818111156106bf578091505b6106c8565b5060005b600483901c9250610694565b509392505050565b81518351146107535760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016104ac565b73ffffffffffffffffffffffffffffffffffffffff84166107dc5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016104ac565b73ffffffffffffffffffffffffffffffffffffffff8516331480610805575061080585336117be565b6108775760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016104ac565b60005b8351811015610a705760008482815181106108be577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000848381518110610903577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000806000610934856000908152600160205260409020549060a082901c9060e083901c90565b92509250925083600114801561097557508a73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b6109e75760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e736665720000000000000000000000000000000000000000000060648201526084016104ac565b600085815260016020526040902073ffffffffffffffffffffffffffffffffffffffff8b167bffffffffffffffff000000000000000000000000000000000000000060a085901b16177fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16179055505050505080610a6990612a81565b905061087a565b508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051610ae79291906128fd565b60405180910390a4610afd338686868686611ae4565b5050505050565b60608151835114610b7d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016104ac565b6000835167ffffffffffffffff811115610bc0577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610be9578160200160208202803683370190505b50905060005b84518110156106d457610c82858281518110610c34577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151858381518110610c75577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151610425565b828281518110610cbb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010152610ccf81612a81565b9050610bef565b60008181526001602052604081205460a081901c73ffffffffffffffffffffffffffffffffffffffff8216610d735760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a20697352657665616c656420717565727920666f72206e6f6e60448201527f6578697374656e7420746f6b656e00000000000000000000000000000000000060648201526084016104ac565b67ffffffffffffffff1615159392505050565b60005b8151811015610ded57610ddb828281518110610dce577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611310565b80610de581612a81565b915050610d89565b5050565b6040610e00602083018361293e565b90501115610e505760405162461bcd60e51b815260206004820152601060248201527f416d756c65743a20546f6f206c6f6e670000000000000000000000000000000060448201526064016104ac565b6000610e5f602083018361293e565b604051610e6d929190612748565b604051908190039020905060008080610e9e846000908152600160205260409020549060a082901c9060e083901c90565b9194509250905073ffffffffffffffffffffffffffffffffffffffff8316331480610ece5750610ece83336117be565b610f405760405162461bcd60e51b815260206004820152602f60248201527f416d756c65743a2072657665616c2063616c6c6572206973206e6f74206f776e60448201527f6572206e6f7220617070726f766564000000000000000000000000000000000060648201526084016104ac565b67ffffffffffffffff821615610f985760405162461bcd60e51b815260206004820152601860248201527f416d756c65743a20416c72656164792072657665616c6564000000000000000060448201526064016104ac565b610fe2610fa8602087018761293e565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061063b92505050565b905060048163ffffffff16101561103b5760405162461bcd60e51b815260206004820152601560248201527f416d756c65743a2053636f726520746f6f206c6f77000000000000000000000060448201526064016104ac565b600084815260016020526040902073ffffffffffffffffffffffffffffffffffffffff84167bffffffffffffffff00000000000000000000000000000000000000004360a01b16177fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16179055837f869a54a5423109cd8469dd6939fd68faae75a4771942c0530877f8ee23ab5587336110da888061293e565b6110e760208b018b61293e565b6110f460408d018d61293e565b604051611107979695949392919061282f565b60405180910390a25050505050565b60005b818110156111815761116f83838381811061115d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020028101906102f591906129a8565b8061117981612a81565b915050611119565b505050565b60005b8151811015610ded576111db8282815181106111ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015161149b565b806111e581612a81565b915050611189565b3373ffffffffffffffffffffffffffffffffffffffff831614156112795760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016104ac565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b805173ffffffffffffffffffffffffffffffffffffffff1661139a5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016104ac565b602080820151600090815260019091526040902054156113fc5760405162461bcd60e51b815260206004820152601f60248201527f455243313135353a206d696e74206f66206578697374696e6720746f6b656e0060448201526064016104ac565b80516020808301805160009081526001808452604080832073ffffffffffffffffffffffffffffffffffffffff96871690558651935181519081529485019190915291909316929133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461149833600083600001518460200151600160405180602001604052806000815250611d1c565b50565b604081602001515111156114f15760405162461bcd60e51b815260206004820152601060248201527f416d756c65743a20546f6f206c6f6e670000000000000000000000000000000060448201526064016104ac565b60208082015180519101206000611520826000908152600160205260409020549060a082901c9060e083901c90565b509091505073ffffffffffffffffffffffffffffffffffffffff8116156115895760405162461bcd60e51b815260206004820152601f60248201527f455243313135353a206d696e74206f66206578697374696e6720746f6b656e0060448201526064016104ac565b606083015173ffffffffffffffffffffffffffffffffffffffff166116165760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016104ac565b6000611625846020015161063b565b905060048163ffffffff16101561167e5760405162461bcd60e51b815260206004820152601560248201527f416d756c65743a2053636f726520746f6f206c6f77000000000000000000000060448201526064016104ac565b6060840151600084815260016020526040902073ffffffffffffffffffffffffffffffffffffffff9091167bffffffffffffffff00000000000000000000000000000000000000004360a01b16177fffffffff0000000000000000000000000000000000000000000000000000000060e084901b161790556060840151604080518581526001602082015273ffffffffffffffffffffffffffffffffffffffff9092169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a483516020850151604080870151905186937f869a54a5423109cd8469dd6939fd68faae75a4771942c0530877f8ee23ab558793611790933393612895565b60405180910390a250505050565b6060604051806060016040528060268152602001612c3060269139905090565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260026020908152604080832093851683529290529081205460ff168061180657506118068383611ea0565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff84166118965760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016104ac565b73ffffffffffffffffffffffffffffffffffffffff85163314806118bf57506118bf85336117be565b6119315760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016104ac565b6000838152600160208190526040909120549060a082901c9060e083901c908514801561198957508773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b6119fb5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20496e73756666696369656e742062616c616e636520666f60448201527f72207472616e736665720000000000000000000000000000000000000000000060648201526084016104ac565b600086815260016020526040902073ffffffffffffffffffffffffffffffffffffffff88167bffffffffffffffff000000000000000000000000000000000000000060a085901b16177fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16179055604080518781526020810187905273ffffffffffffffffffffffffffffffffffffffff808a1692908b169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611ad4338989898989611d1c565b5050505050505050565b3b151590565b73ffffffffffffffffffffffffffffffffffffffff84163b15611d14576040517fbc197c8100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063bc197c8190611b5b9089908990889088908890600401612774565b602060405180830381600087803b158015611b7557600080fd5b505af1925050508015611ba5575060408051601f3d908101601f19168201909252611ba2918101906125c3565b60015b611c5b57611bb1612b18565b806308c379a01415611beb5750611bc6612b2f565b80611bd15750611bed565b8060405162461bcd60e51b81526004016104ac919061292b565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016104ac565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c810000000000000000000000000000000000000000000000000000000014611d125760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e7300000000000000000000000000000000000000000000000060648201526084016104ac565b505b505050505050565b73ffffffffffffffffffffffffffffffffffffffff84163b15611d14576040517ff23a6e6100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063f23a6e6190611d9390899089908890889088906004016127df565b602060405180830381600087803b158015611dad57600080fd5b505af1925050508015611ddd575060408051601f3d908101601f19168201909252611dda918101906125c3565b60015b611de957611bb1612b18565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e610000000000000000000000000000000000000000000000000000000014611d125760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e7300000000000000000000000000000000000000000000000060648201526084016104ac565b6000805473ffffffffffffffffffffffffffffffffffffffff16611ec6575060006104f5565b6000546040517fc455279100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015284811692169063c45527919060240160206040518083038186803b158015611f3357600080fd5b505afa158015611f47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6b919061215b565b73ffffffffffffffffffffffffffffffffffffffff16149392505050565b80356105dd81612bdf565b600082601f830112611fa4578081fd5b81356020611fb1826129e8565b604051611fbe8282612a54565b838152828101915085830183850287018401881015611fdb578586fd5b855b85811015611ff957813584529284019290840190600101611fdd565b5090979650505050505050565b600082601f830112612016578081fd5b813567ffffffffffffffff81111561203057612030612ae9565b6040516120476020601f19601f8501160182612a54565b81815284602083860101111561205b578283fd5b816020850160208301379081016020019190915292915050565b600060808284031215612086578081fd5b61209060806129db565b9050813567ffffffffffffffff808211156120aa57600080fd5b6120b685838601612006565b835260208401359150808211156120cc57600080fd5b6120d885838601612006565b602084015260408401359150808211156120f157600080fd5b506120fe84828501612006565b60408301525061211060608301611f89565b606082015292915050565b60006040828403121561212c578081fd5b60405161213a604082612a54565b809150823561214881612bdf565b8152602092830135920191909152919050565b60006020828403121561216c578081fd5b815161180681612bdf565b60008060408385031215612189578081fd5b823561219481612bdf565b915060208301356121a481612bdf565b809150509250929050565b600080600080600060a086880312156121c6578081fd5b85356121d181612bdf565b945060208601356121e181612bdf565b9350604086013567ffffffffffffffff808211156121fd578283fd5b61220989838a01611f94565b9450606088013591508082111561221e578283fd5b61222a89838a01611f94565b9350608088013591508082111561223f578283fd5b5061224c88828901612006565b9150509295509295909350565b600080600080600060a08688031215612270578283fd5b853561227b81612bdf565b9450602086013561228b81612bdf565b93506040860135925060608601359150608086013567ffffffffffffffff8111156122b4578182fd5b61224c88828901612006565b600080604083850312156122d2578182fd5b82356122dd81612bdf565b9150602083013580151581146121a4578182fd5b60008060408385031215612303578182fd5b823561230e81612bdf565b946020939093013593505050565b6000806040838503121561232e578182fd5b823567ffffffffffffffff80821115612345578384fd5b818501915085601f830112612358578384fd5b81356020612365826129e8565b6040516123728282612a54565b8381528281019150858301838502870184018b101561238f578889fd5b8896505b848710156123ba5780356123a681612bdf565b835260019690960195918301918301612393565b50965050860135925050808211156123d0578283fd5b506123dd85828601611f94565b9150509250929050565b600060208083850312156123f9578182fd5b823567ffffffffffffffff81111561240f578283fd5b8301601f8101851361241f578283fd5b803561242a816129e8565b6040516124378282612a54565b8281528481019150838501865b8481101561246d5761245b8a888435890101612075565b84529286019290860190600101612444565b509098975050505050505050565b6000602080838503121561248d578182fd5b823567ffffffffffffffff8111156124a3578283fd5b8301601f810185136124b3578283fd5b80356124be816129e8565b604080516124cc8382612a54565b8381528581019250848601828502860187018a10156124e9578788fd5b8795505b84861015612513576124ff8a8261211b565b8452600195909501949286019282016124ed565b5098975050505050505050565b60008060208385031215612532578182fd5b823567ffffffffffffffff80821115612549578384fd5b818501915085601f83011261255c578384fd5b81358181111561256a578485fd5b866020808302850101111561257d578485fd5b60209290920196919550909350505050565b6000602082840312156125a0578081fd5b5051919050565b6000602082840312156125b8578081fd5b813561180681612c01565b6000602082840312156125d4578081fd5b815161180681612c01565b6000602082840312156125f0578081fd5b813567ffffffffffffffff811115612606578182fd5b61261284828501612006565b949350505050565b60006020828403121561262b578081fd5b813567ffffffffffffffff811115612641578182fd5b61261284828501612075565b60006040828403121561265e578081fd5b611806838361211b565b600060208284031215612679578081fd5b813567ffffffffffffffff81111561268f578182fd5b820160608185031215611806578182fd5b6000602082840312156126b1578081fd5b5035919050565b6000815180845260208085019450808401835b838110156126e7578151875295820195908201906001016126cb565b509495945050505050565b6000815180845261270a816020860160208601612a24565b601f01601f19169290920160200192915050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b6000828483379101908152919050565b6000825161276a818460208701612a24565b9190910192915050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525060a060408301526127ad60a08301866126b8565b82810360608401526127bf81866126b8565b905082810360808401526127d381856126f2565b98975050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a0608083015261282460a08301846126f2565b979650505050505050565b600073ffffffffffffffffffffffffffffffffffffffff891682526080602083015261285f60808301888a61271e565b828103604084015261287281878961271e565b9050828103606084015261288781858761271e565b9a9950505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff86168252608060208301526128c460808301866126f2565b82810360408401526128d681866126f2565b9050828103606084015261282481856126f2565b60006020825261180660208301846126b8565b60006040825261291060408301856126b8565b828103602084015261292281856126b8565b95945050505050565b60006020825261180660208301846126f2565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112612972578283fd5b83018035915067ffffffffffffffff82111561298c578283fd5b6020019150368190038213156129a157600080fd5b9250929050565b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa183360301811261276a578182fd5b6040516105dd8282612a54565b600067ffffffffffffffff821115612a0257612a02612ae9565b5060209081020190565b60008219821115612a1f57612a1f612aba565b500190565b60005b83811015612a3f578181015183820152602001612a27565b83811115612a4e576000848401525b50505050565b601f19601f830116810181811067ffffffffffffffff82111715612a7a57612a7a612ae9565b6040525050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612ab357612ab3612aba565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d111561061757600481823e5160e01c90565b600060443d1015612b3f57610617565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff8160248401118184111715612b8f575050505050610617565b8285019150815181811115612ba957505050505050610617565b843d8701016020828501011115612bc557505050505050610617565b612bd460208286010187612a54565b509094505050505090565b73ffffffffffffffffffffffffffffffffffffffff8116811461149857600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461149857600080fdfe68747470733a2f2f61742e616d756c65742e67617264656e2f636f6e74726163742e6a736f6e68747470733a2f2f61742e616d756c65742e67617264656e2f746f6b656e2f7b69647d2e6a736f6ea26469706673582212203a4f8a6a5d22cc66b9823e9ff7064c0deef53729c04615dc8e161aab1bf6920f64736f6c63430008020033c3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62455243313135353a206d696e7420746f20746865207a65726f20616464726573000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101815760003560e01c80636352211e116100d8578063ad193e101161008c578063e8a3d48511610066578063e8a3d485146103f7578063e985e9c5146103ff578063f242432a1461041257610181565b8063ad193e10146103b1578063b50cbd9f146103c4578063cd544b83146103e457610181565b80637e5509a8116100bd5780637e5509a81461035257806395d89b4114610365578063a22cb4651461039e57610181565b80636352211e146102fa5780637c870e4c1461033f57610181565b8063160202731161013a5780635055fbc3116101145780635055fbc3146102c15780635d510015146102d45780635faf6966146102e757610181565b806316020273146102645780632eb2c2d61461028c5780634e1273f4146102a157610181565b806301ffc9a71161016b57806301ffc9a71461021957806306fdde031461023c5780630e89341c1461025157610181565b8062fdd58e146101865780630178fe3f146101ac575b600080fd5b6101996101943660046122f1565b610425565b6040519081526020015b60405180910390f35b6101d86101ba3660046126a0565b6000908152600160205260409020549060a082901c9060e083901c90565b6040805173ffffffffffffffffffffffffffffffffffffffff909416845267ffffffffffffffff909216602084015263ffffffff16908201526060016101a3565b61022c6102273660046125a7565b6104fb565b60405190151581526020016101a3565b6102446105e2565b6040516101a3919061292b565b61024461025f3660046126a0565b61061a565b6102776102723660046125df565b61063b565b60405163ffffffff90911681526020016101a3565b61029f61029a3660046121af565b6106dc565b005b6102b46102af36600461231c565b610b04565b6040516101a391906128ea565b61022c6102cf3660046126a0565b610cd6565b61029f6102e236600461247b565b610d86565b61029f6102f5366004612668565b610df1565b61031a6103083660046126a0565b60009081526001602052604090205490565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101a3565b61029f61034d366004612520565b611116565b61029f6103603660046123e7565b611186565b60408051808201909152600681527f414d554c455400000000000000000000000000000000000000000000000000006020820152610244565b61029f6103ac3660046122c0565b6111ed565b61029f6103bf36600461264d565b611310565b60005461031a9073ffffffffffffffffffffffffffffffffffffffff1681565b61029f6103f236600461261a565b61149b565b61024461179e565b61022c61040d366004612177565b6117be565b61029f610420366004612259565b61180d565b600073ffffffffffffffffffffffffffffffffffffffff83166104b55760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b60008281526001602052604090205473ffffffffffffffffffffffffffffffffffffffff80821690851614156104ef5760019150506104f5565b60009150505b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a2600000000000000000000000000000000000000000000000000000000148061058e57507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b806105da57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b90505b919050565b60408051808201909152600781527f416d756c6574730000000000000000000000000000000000000000000000000060208201525b90565b6060604051806060016040528060288152602001612c566028913992915050565b60008060028360405161064e9190612758565b602060405180830381855afa15801561066b573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061068e919061258f565b90506000805b82156106d45782600f16600814156106c4576106b1600182612a0c565b9050818111156106bf578091505b6106c8565b5060005b600483901c9250610694565b509392505050565b81518351146107535760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016104ac565b73ffffffffffffffffffffffffffffffffffffffff84166107dc5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016104ac565b73ffffffffffffffffffffffffffffffffffffffff8516331480610805575061080585336117be565b6108775760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016104ac565b60005b8351811015610a705760008482815181106108be577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000848381518110610903577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000806000610934856000908152600160205260409020549060a082901c9060e083901c90565b92509250925083600114801561097557508a73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b6109e75760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e736665720000000000000000000000000000000000000000000060648201526084016104ac565b600085815260016020526040902073ffffffffffffffffffffffffffffffffffffffff8b167bffffffffffffffff000000000000000000000000000000000000000060a085901b16177fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16179055505050505080610a6990612a81565b905061087a565b508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051610ae79291906128fd565b60405180910390a4610afd338686868686611ae4565b5050505050565b60608151835114610b7d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016104ac565b6000835167ffffffffffffffff811115610bc0577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610be9578160200160208202803683370190505b50905060005b84518110156106d457610c82858281518110610c34577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151858381518110610c75577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151610425565b828281518110610cbb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010152610ccf81612a81565b9050610bef565b60008181526001602052604081205460a081901c73ffffffffffffffffffffffffffffffffffffffff8216610d735760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a20697352657665616c656420717565727920666f72206e6f6e60448201527f6578697374656e7420746f6b656e00000000000000000000000000000000000060648201526084016104ac565b67ffffffffffffffff1615159392505050565b60005b8151811015610ded57610ddb828281518110610dce577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611310565b80610de581612a81565b915050610d89565b5050565b6040610e00602083018361293e565b90501115610e505760405162461bcd60e51b815260206004820152601060248201527f416d756c65743a20546f6f206c6f6e670000000000000000000000000000000060448201526064016104ac565b6000610e5f602083018361293e565b604051610e6d929190612748565b604051908190039020905060008080610e9e846000908152600160205260409020549060a082901c9060e083901c90565b9194509250905073ffffffffffffffffffffffffffffffffffffffff8316331480610ece5750610ece83336117be565b610f405760405162461bcd60e51b815260206004820152602f60248201527f416d756c65743a2072657665616c2063616c6c6572206973206e6f74206f776e60448201527f6572206e6f7220617070726f766564000000000000000000000000000000000060648201526084016104ac565b67ffffffffffffffff821615610f985760405162461bcd60e51b815260206004820152601860248201527f416d756c65743a20416c72656164792072657665616c6564000000000000000060448201526064016104ac565b610fe2610fa8602087018761293e565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061063b92505050565b905060048163ffffffff16101561103b5760405162461bcd60e51b815260206004820152601560248201527f416d756c65743a2053636f726520746f6f206c6f77000000000000000000000060448201526064016104ac565b600084815260016020526040902073ffffffffffffffffffffffffffffffffffffffff84167bffffffffffffffff00000000000000000000000000000000000000004360a01b16177fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16179055837f869a54a5423109cd8469dd6939fd68faae75a4771942c0530877f8ee23ab5587336110da888061293e565b6110e760208b018b61293e565b6110f460408d018d61293e565b604051611107979695949392919061282f565b60405180910390a25050505050565b60005b818110156111815761116f83838381811061115d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020028101906102f591906129a8565b8061117981612a81565b915050611119565b505050565b60005b8151811015610ded576111db8282815181106111ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015161149b565b806111e581612a81565b915050611189565b3373ffffffffffffffffffffffffffffffffffffffff831614156112795760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016104ac565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b805173ffffffffffffffffffffffffffffffffffffffff1661139a5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016104ac565b602080820151600090815260019091526040902054156113fc5760405162461bcd60e51b815260206004820152601f60248201527f455243313135353a206d696e74206f66206578697374696e6720746f6b656e0060448201526064016104ac565b80516020808301805160009081526001808452604080832073ffffffffffffffffffffffffffffffffffffffff96871690558651935181519081529485019190915291909316929133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461149833600083600001518460200151600160405180602001604052806000815250611d1c565b50565b604081602001515111156114f15760405162461bcd60e51b815260206004820152601060248201527f416d756c65743a20546f6f206c6f6e670000000000000000000000000000000060448201526064016104ac565b60208082015180519101206000611520826000908152600160205260409020549060a082901c9060e083901c90565b509091505073ffffffffffffffffffffffffffffffffffffffff8116156115895760405162461bcd60e51b815260206004820152601f60248201527f455243313135353a206d696e74206f66206578697374696e6720746f6b656e0060448201526064016104ac565b606083015173ffffffffffffffffffffffffffffffffffffffff166116165760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016104ac565b6000611625846020015161063b565b905060048163ffffffff16101561167e5760405162461bcd60e51b815260206004820152601560248201527f416d756c65743a2053636f726520746f6f206c6f77000000000000000000000060448201526064016104ac565b6060840151600084815260016020526040902073ffffffffffffffffffffffffffffffffffffffff9091167bffffffffffffffff00000000000000000000000000000000000000004360a01b16177fffffffff0000000000000000000000000000000000000000000000000000000060e084901b161790556060840151604080518581526001602082015273ffffffffffffffffffffffffffffffffffffffff9092169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a483516020850151604080870151905186937f869a54a5423109cd8469dd6939fd68faae75a4771942c0530877f8ee23ab558793611790933393612895565b60405180910390a250505050565b6060604051806060016040528060268152602001612c3060269139905090565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260026020908152604080832093851683529290529081205460ff168061180657506118068383611ea0565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff84166118965760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016104ac565b73ffffffffffffffffffffffffffffffffffffffff85163314806118bf57506118bf85336117be565b6119315760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016104ac565b6000838152600160208190526040909120549060a082901c9060e083901c908514801561198957508773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b6119fb5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20496e73756666696369656e742062616c616e636520666f60448201527f72207472616e736665720000000000000000000000000000000000000000000060648201526084016104ac565b600086815260016020526040902073ffffffffffffffffffffffffffffffffffffffff88167bffffffffffffffff000000000000000000000000000000000000000060a085901b16177fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16179055604080518781526020810187905273ffffffffffffffffffffffffffffffffffffffff808a1692908b169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611ad4338989898989611d1c565b5050505050505050565b3b151590565b73ffffffffffffffffffffffffffffffffffffffff84163b15611d14576040517fbc197c8100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063bc197c8190611b5b9089908990889088908890600401612774565b602060405180830381600087803b158015611b7557600080fd5b505af1925050508015611ba5575060408051601f3d908101601f19168201909252611ba2918101906125c3565b60015b611c5b57611bb1612b18565b806308c379a01415611beb5750611bc6612b2f565b80611bd15750611bed565b8060405162461bcd60e51b81526004016104ac919061292b565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016104ac565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c810000000000000000000000000000000000000000000000000000000014611d125760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e7300000000000000000000000000000000000000000000000060648201526084016104ac565b505b505050505050565b73ffffffffffffffffffffffffffffffffffffffff84163b15611d14576040517ff23a6e6100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063f23a6e6190611d9390899089908890889088906004016127df565b602060405180830381600087803b158015611dad57600080fd5b505af1925050508015611ddd575060408051601f3d908101601f19168201909252611dda918101906125c3565b60015b611de957611bb1612b18565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e610000000000000000000000000000000000000000000000000000000014611d125760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e7300000000000000000000000000000000000000000000000060648201526084016104ac565b6000805473ffffffffffffffffffffffffffffffffffffffff16611ec6575060006104f5565b6000546040517fc455279100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015284811692169063c45527919060240160206040518083038186803b158015611f3357600080fd5b505afa158015611f47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6b919061215b565b73ffffffffffffffffffffffffffffffffffffffff16149392505050565b80356105dd81612bdf565b600082601f830112611fa4578081fd5b81356020611fb1826129e8565b604051611fbe8282612a54565b838152828101915085830183850287018401881015611fdb578586fd5b855b85811015611ff957813584529284019290840190600101611fdd565b5090979650505050505050565b600082601f830112612016578081fd5b813567ffffffffffffffff81111561203057612030612ae9565b6040516120476020601f19601f8501160182612a54565b81815284602083860101111561205b578283fd5b816020850160208301379081016020019190915292915050565b600060808284031215612086578081fd5b61209060806129db565b9050813567ffffffffffffffff808211156120aa57600080fd5b6120b685838601612006565b835260208401359150808211156120cc57600080fd5b6120d885838601612006565b602084015260408401359150808211156120f157600080fd5b506120fe84828501612006565b60408301525061211060608301611f89565b606082015292915050565b60006040828403121561212c578081fd5b60405161213a604082612a54565b809150823561214881612bdf565b8152602092830135920191909152919050565b60006020828403121561216c578081fd5b815161180681612bdf565b60008060408385031215612189578081fd5b823561219481612bdf565b915060208301356121a481612bdf565b809150509250929050565b600080600080600060a086880312156121c6578081fd5b85356121d181612bdf565b945060208601356121e181612bdf565b9350604086013567ffffffffffffffff808211156121fd578283fd5b61220989838a01611f94565b9450606088013591508082111561221e578283fd5b61222a89838a01611f94565b9350608088013591508082111561223f578283fd5b5061224c88828901612006565b9150509295509295909350565b600080600080600060a08688031215612270578283fd5b853561227b81612bdf565b9450602086013561228b81612bdf565b93506040860135925060608601359150608086013567ffffffffffffffff8111156122b4578182fd5b61224c88828901612006565b600080604083850312156122d2578182fd5b82356122dd81612bdf565b9150602083013580151581146121a4578182fd5b60008060408385031215612303578182fd5b823561230e81612bdf565b946020939093013593505050565b6000806040838503121561232e578182fd5b823567ffffffffffffffff80821115612345578384fd5b818501915085601f830112612358578384fd5b81356020612365826129e8565b6040516123728282612a54565b8381528281019150858301838502870184018b101561238f578889fd5b8896505b848710156123ba5780356123a681612bdf565b835260019690960195918301918301612393565b50965050860135925050808211156123d0578283fd5b506123dd85828601611f94565b9150509250929050565b600060208083850312156123f9578182fd5b823567ffffffffffffffff81111561240f578283fd5b8301601f8101851361241f578283fd5b803561242a816129e8565b6040516124378282612a54565b8281528481019150838501865b8481101561246d5761245b8a888435890101612075565b84529286019290860190600101612444565b509098975050505050505050565b6000602080838503121561248d578182fd5b823567ffffffffffffffff8111156124a3578283fd5b8301601f810185136124b3578283fd5b80356124be816129e8565b604080516124cc8382612a54565b8381528581019250848601828502860187018a10156124e9578788fd5b8795505b84861015612513576124ff8a8261211b565b8452600195909501949286019282016124ed565b5098975050505050505050565b60008060208385031215612532578182fd5b823567ffffffffffffffff80821115612549578384fd5b818501915085601f83011261255c578384fd5b81358181111561256a578485fd5b866020808302850101111561257d578485fd5b60209290920196919550909350505050565b6000602082840312156125a0578081fd5b5051919050565b6000602082840312156125b8578081fd5b813561180681612c01565b6000602082840312156125d4578081fd5b815161180681612c01565b6000602082840312156125f0578081fd5b813567ffffffffffffffff811115612606578182fd5b61261284828501612006565b949350505050565b60006020828403121561262b578081fd5b813567ffffffffffffffff811115612641578182fd5b61261284828501612075565b60006040828403121561265e578081fd5b611806838361211b565b600060208284031215612679578081fd5b813567ffffffffffffffff81111561268f578182fd5b820160608185031215611806578182fd5b6000602082840312156126b1578081fd5b5035919050565b6000815180845260208085019450808401835b838110156126e7578151875295820195908201906001016126cb565b509495945050505050565b6000815180845261270a816020860160208601612a24565b601f01601f19169290920160200192915050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b6000828483379101908152919050565b6000825161276a818460208701612a24565b9190910192915050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525060a060408301526127ad60a08301866126b8565b82810360608401526127bf81866126b8565b905082810360808401526127d381856126f2565b98975050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a0608083015261282460a08301846126f2565b979650505050505050565b600073ffffffffffffffffffffffffffffffffffffffff891682526080602083015261285f60808301888a61271e565b828103604084015261287281878961271e565b9050828103606084015261288781858761271e565b9a9950505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff86168252608060208301526128c460808301866126f2565b82810360408401526128d681866126f2565b9050828103606084015261282481856126f2565b60006020825261180660208301846126b8565b60006040825261291060408301856126b8565b828103602084015261292281856126b8565b95945050505050565b60006020825261180660208301846126f2565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112612972578283fd5b83018035915067ffffffffffffffff82111561298c578283fd5b6020019150368190038213156129a157600080fd5b9250929050565b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa183360301811261276a578182fd5b6040516105dd8282612a54565b600067ffffffffffffffff821115612a0257612a02612ae9565b5060209081020190565b60008219821115612a1f57612a1f612aba565b500190565b60005b83811015612a3f578181015183820152602001612a27565b83811115612a4e576000848401525b50505050565b601f19601f830116810181811067ffffffffffffffff82111715612a7a57612a7a612ae9565b6040525050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612ab357612ab3612aba565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d111561061757600481823e5160e01c90565b600060443d1015612b3f57610617565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff8160248401118184111715612b8f575050505050610617565b8285019150815181811115612ba957505050505050610617565b843d8701016020828501011115612bc557505050505050610617565b612bd460208286010187612a54565b509094505050505090565b73ffffffffffffffffffffffffffffffffffffffff8116811461149857600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461149857600080fdfe68747470733a2f2f61742e616d756c65742e67617264656e2f636f6e74726163742e6a736f6e68747470733a2f2f61742e616d756c65742e67617264656e2f746f6b656e2f7b69647d2e6a736f6ea26469706673582212203a4f8a6a5d22cc66b9823e9ff7064c0deef53729c04615dc8e161aab1bf6920f64736f6c63430008020033

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

000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000


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

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