ETH Price: $3,433.61 (+2.51%)

Token

Shields (SHIELDS)
 

Overview

Max Total Supply

5,000 SHIELDS

Holders

1,396

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 SHIELDS
0x19e95da754e77cb643534fd070b172da74a465ee
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Shields is an on-chain heraldic design system developed by Area Technology. Each Shield is composed and built by the holder of a Shield Badge. All components are stored as SVG code on Ethereum. This project is released as CC0 under the public domain. Anyone may use Shields, or the individual elem...

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Shields

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 21 : Shields.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;

import './interfaces/ICategories.sol';
import './interfaces/IShields.sol';
import './interfaces/IEmblemWeaver.sol';
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/Strings.sol';

contract Shields is ERC721, IShields, Ownable {
    event ShieldBuilt(
        uint256 tokenId,
        uint16 field,
        uint16 hardware,
        uint16 frame,
        uint24[4] colors,
        ShieldBadge shieldBadge
    );

    IEmblemWeaver public immutable emblemWeaver;

    uint256 constant makerBadgeThreshold = 5;

    uint256 constant makerPremintThreshold = 100;
    uint256 constant granteePremintThreshold = 500;
    uint256 constant standardMintMax = 5000;
    uint256 constant individualMintMax = 5;

    uint256 constant makerReservedHardware = 120;

    uint256 public constant mythicFee = 0.02 ether;
    uint256 public constant specialFee = 0.08 ether;

    bool public publicMintActive = false;
    uint256 public publicMintPrice;

    uint256 internal _nextId;

    mapping(uint256 => Shield) private _shields;
    // transient variable that's immediately cleared after checking for duplicate colors
    mapping(uint24 => bool) private _checkDuplicateColors;
    // record shieldHashes so that duplicate shields cannot be built
    mapping(bytes32 => bool) public shieldHashes;


    modifier publicMintPriceSet() {
        require(publicMintPrice > 0, 'Shields: public mint price not yet set');
        _;
    }

    modifier publicMintIsActive() {
        require(publicMintActive, 'Shields: public mint not active yet');
        _;
    }

    modifier publicMintIsNotActive() {
        require(!publicMintActive, 'Shields: public mint is already active');
        _;
    }

    modifier validMintCount(uint8 count) {
        require(_nextId + count <= standardMintMax + 1, 'Shields: public mint max exceeded');
        require(count <= individualMintMax, 'Shields: can only mint up to 5 per transaction');
        _;
    }

    modifier publicMintPaid(uint8 count) {
        require(msg.value == publicMintPrice * count, 'Shields: invalid mint fee');
        _;
    }

    modifier onlyTokenOwner(uint256 tokenId) {
        require(msg.sender == ERC721.ownerOf(tokenId), 'Shields: only owner can build Shield');
        _;
    }

    modifier shieldNotBuilt(uint256 tokenId) {
        require(!_shields[tokenId].built, 'Shields: Shield already built');
        _;
    }

    modifier validHardware(uint256 tokenId, uint16 hardware) {
        if (hardware == makerReservedHardware) {
            require(tokenId <= makerBadgeThreshold, 'Shields: Three Shields hardware reserved for Maker Badge');
        }
        _;
    }

    modifier validColors(uint16 field, uint24[4] memory colors) {
        validateColors(colors, field);
        _;
    }

    constructor(
        string memory name_,
        string memory symbol_,
        IEmblemWeaver _emblemWeaver,
        address makerBadgeRecipient,
        address granteeBadgeRecipient
    ) ERC721(name_, symbol_) Ownable() {
        emblemWeaver = _emblemWeaver;

        for (uint256 i = 1; i <= makerPremintThreshold; i++) {
            _mint(makerBadgeRecipient, i);
        }

        for (uint256 j = makerPremintThreshold + 1; j <= granteePremintThreshold; j++) {
            _mint(granteeBadgeRecipient, j);
        }

        _nextId = granteePremintThreshold + 1;
    }

    // ============ OWNER INTERFACE ============

    function collectFees() external onlyOwner {
        (bool success, ) = payable(msg.sender).call{value: address(this).balance}(new bytes(0));
        require(success, 'Shields: ether transfer failed');
    }

    function setPublicMintActive() external onlyOwner publicMintPriceSet {
        publicMintActive = true;
    }

    function setPublicMintPrice(uint256 _publicMintPrice) external onlyOwner publicMintIsNotActive {
      publicMintPrice = _publicMintPrice;
    }

    // ============ PUBLIC INTERFACE ============

    function mint(address to, uint8 count)
        external
        payable
        publicMintIsActive
        validMintCount(count)
        publicMintPaid(count)
    {
        for (uint8 i = 0; i < count; i++) {
            _mint(to, _nextId++);
        }
    }

    function build(
        uint16 field,
        uint16 hardware,
        uint16 frame,
        uint24[4] memory colors,
        uint256 tokenId
    )
        external
        payable
        override
        onlyTokenOwner(tokenId)
        shieldNotBuilt(tokenId)
        validHardware(tokenId, hardware)
        validColors(field, colors)
    {
        // shield must be unique
        bytes32 shieldHash = keccak256(abi.encode(field, hardware, colors));
        require(!shieldHashes[shieldHash], 'Shields: unique Shield already built');
        shieldHashes[shieldHash] = true;

        // Construct Shield
        Shield memory shield = Shield({
            built: true,
            field: field,
            hardware: hardware,
            frame: frame,
            colors: colors,
            shieldBadge: calculateShieldBadge(tokenId)
        });
        _shields[tokenId] = shield;

        // Calculate Fee
        {
            uint256 fee;
            ICategories.FieldCategories fieldType = emblemWeaver
                .fieldGenerator()
                .generateField(shield.field, shield.colors)
                .fieldType;
            ICategories.HardwareCategories hardwareType = emblemWeaver
                .hardwareGenerator()
                .generateHardware(shield.hardware)
                .hardwareType;
            uint256 frameFee = emblemWeaver.frameGenerator().generateFrame(shield.frame).fee;
            if (fieldType == ICategories.FieldCategories.MYTHIC) {
                fee += mythicFee;
            }
            if (hardwareType == ICategories.HardwareCategories.SPECIAL) {
                fee += specialFee;
            }
            fee += frameFee;
            require(msg.value == fee, 'Shields: invalid building fee');
        }

        emit ShieldBuilt(tokenId, field, hardware, frame, colors, calculateShieldBadge(tokenId));
    }

    // ============ PUBLIC VIEW FUNCTIONS ============

    function totalSupply() public view returns (uint256) {
        return _nextId - 1;
    }

    function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) {
        require(_exists(tokenId), 'Shields: URI query for nonexistent token');
        Shield memory shield = _shields[tokenId];

        if (!shield.built) {
            return emblemWeaver.generateShieldBadgeURI(calculateShieldBadge(tokenId));
        } else {
            return emblemWeaver.generateShieldURI(shield);
        }
    }

    function shields(uint256 tokenId)
        external
        view
        override
        returns (
            uint16 field,
            uint16 hardware,
            uint16 frame,
            uint24 color1,
            uint24 color2,
            uint24 color3,
            uint24 color4,
            ShieldBadge shieldBadge
        )
    {
        require(_exists(tokenId), 'Shield: tokenID does not exist');
        Shield memory shield = _shields[tokenId];
        return (
            shield.field,
            shield.hardware,
            shield.frame,
            shield.colors[0],
            shield.colors[1],
            shield.colors[2],
            shield.colors[3],
            shield.shieldBadge
        );
    }

    // ============ INTERNAL INTERFACE ============

    function calculateShieldBadge(uint256 tokenId) internal pure returns (ShieldBadge) {
        if (tokenId <= makerBadgeThreshold) {
            return ShieldBadge.MAKER;
        } else {
            return ShieldBadge.STANDARD;
        }
    }

    function validateColors(uint24[4] memory colors, uint16 field) internal {
        if (field == 0) {
            checkExistsDupsMax(colors, 1);
        } else if (field <= 242) {
            checkExistsDupsMax(colors, 2);
        } else if (field <= 293) {
            checkExistsDupsMax(colors, 3);
        } else {
            checkExistsDupsMax(colors, 4);
        }
    }

    function checkExistsDupsMax(uint24[4] memory colors, uint8 nColors) private {
        for (uint8 i = 0; i < nColors; i++) {
            require(_checkDuplicateColors[colors[i]] == false, 'Shields: all colors must be unique');
            require(emblemWeaver.fieldGenerator().colorExists(colors[i]), 'Shields: color does not exist');
            _checkDuplicateColors[colors[i]] = true;
        }
        for (uint8 i = 0; i < nColors; i++) {
            _checkDuplicateColors[colors[i]] = false;
        }
        for (uint8 i = nColors; i < 4; i++) {
            require(colors[i] == 0, 'Shields: max colors exceeded for field');
        }
    }
}

File 2 of 21 : ICategories.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;

interface ICategories {
    enum FieldCategories {
        MYTHIC,
        HERALDIC
    }

    enum HardwareCategories {
        STANDARD,
        SPECIAL
    }
}

File 3 of 21 : IShields.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/Strings.sol';

/// @dev Build Customizable Shields for an NFT
interface IShields is IERC721 {
    enum ShieldBadge {
        MAKER,
        STANDARD
    }

    struct Shield {
        bool built;
        uint16 field;
        uint16 hardware;
        uint16 frame;
        ShieldBadge shieldBadge;
        uint24[4] colors;
    }

    function build(
        uint16 field,
        uint16 hardware,
        uint16 frame,
        uint24[4] memory colors,
        uint256 tokenId
    ) external payable;

    function shields(uint256 tokenId)
        external
        view
        returns (
            uint16 field,
            uint16 hardware,
            uint16 frame,
            uint24 color1,
            uint24 color2,
            uint24 color3,
            uint24 color4,
            ShieldBadge shieldBadge
        );
}

File 4 of 21 : IEmblemWeaver.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;

import './IShields.sol';
import './IFrameGenerator.sol';
import './IFieldGenerator.sol';
import './IHardwareGenerator.sol';

/// @dev Generate Customizable Shields
interface IEmblemWeaver {
    function fieldGenerator() external returns (IFieldGenerator);

    function hardwareGenerator() external returns (IHardwareGenerator);

    function frameGenerator() external returns (IFrameGenerator);

    function generateShieldURI(IShields.Shield memory shield) external view returns (string memory);

    function generateShieldBadgeURI(IShields.ShieldBadge shieldBadge) external view returns (string memory);
}

File 5 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.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 ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 6 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

File 7 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

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 10 of 21 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 11 of 21 : IFrameGenerator.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;

import './IFrameSVGs.sol';

/// @dev Generate Frame SVG
interface IFrameGenerator {
    struct FrameSVGs {
        IFrameSVGs frameSVGs1;
        IFrameSVGs frameSVGs2;
    }

    /// @param Frame uint representing Frame selection
    /// @return FrameData containing svg snippet and Frame title and Frame type
    function generateFrame(uint16 Frame) external view returns (IFrameSVGs.FrameData memory);
}

File 12 of 21 : IFieldGenerator.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;

import './IFieldSVGs.sol';
import './IColors.sol';

/// @dev Generate Field SVG
interface IFieldGenerator {
    /// @param field uint representing field selection
    /// @param colors to be rendered in the field svg
    /// @return FieldData containing svg snippet and field title
    function generateField(uint16 field, uint24[4] memory colors) external view returns (IFieldSVGs.FieldData memory);

    event ColorAdded(uint24 color, string title);

    struct Color {
        string title;
        bool exists;
    }

    /// @notice Returns true if color exists in contract, else false.
    /// @param color 3-byte uint representing color
    /// @return true or false
    function colorExists(uint24 color) external view returns (bool);

    /// @notice Returns the title string corresponding to the 3-byte color
    /// @param color 3-byte uint representing color
    /// @return true or false
    function colorTitle(uint24 color) external view returns (string memory);

    struct FieldSVGs {
        IFieldSVGs fieldSVGs1;
        IFieldSVGs fieldSVGs2;
        IFieldSVGs fieldSVGs3;
        IFieldSVGs fieldSVGs4;
        IFieldSVGs fieldSVGs5;
        IFieldSVGs fieldSVGs6;
        IFieldSVGs fieldSVGs7;
        IFieldSVGs fieldSVGs8;
        IFieldSVGs fieldSVGs9;
        IFieldSVGs fieldSVGs10;
        IFieldSVGs fieldSVGs11;
        IFieldSVGs fieldSVGs12;
        IFieldSVGs fieldSVGs13;
        IFieldSVGs fieldSVGs14;
        IFieldSVGs fieldSVGs15;
        IFieldSVGs fieldSVGs16;
        IFieldSVGs fieldSVGs17;
        IFieldSVGs fieldSVGs18;
        IFieldSVGs fieldSVGs19;
        IFieldSVGs fieldSVGs20;
        IFieldSVGs fieldSVGs21;
        IFieldSVGs fieldSVGs22;
        IFieldSVGs fieldSVGs23;
        IFieldSVGs fieldSVGs24;
    }
}

File 13 of 21 : IHardwareGenerator.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;

import './IHardwareSVGs.sol';

/// @dev Generate Hardware SVG
interface IHardwareGenerator {

    /// @param hardware uint representing hardware selection
    /// @return HardwareData containing svg snippet and hardware title and hardware type
    function generateHardware(uint16 hardware) external view returns (IHardwareSVGs.HardwareData memory);

    struct HardwareSVGs {
        IHardwareSVGs hardwareSVGs1;
        IHardwareSVGs hardwareSVGs2;
        IHardwareSVGs hardwareSVGs3;
        IHardwareSVGs hardwareSVGs4;
        IHardwareSVGs hardwareSVGs5;
        IHardwareSVGs hardwareSVGs6;
        IHardwareSVGs hardwareSVGs7;
        IHardwareSVGs hardwareSVGs8;
        IHardwareSVGs hardwareSVGs9;
        IHardwareSVGs hardwareSVGs10;
        IHardwareSVGs hardwareSVGs11;
        IHardwareSVGs hardwareSVGs12;
        IHardwareSVGs hardwareSVGs13;
        IHardwareSVGs hardwareSVGs14;
        IHardwareSVGs hardwareSVGs15;
        IHardwareSVGs hardwareSVGs16;
        IHardwareSVGs hardwareSVGs17;
        IHardwareSVGs hardwareSVGs18;
        IHardwareSVGs hardwareSVGs19;
        IHardwareSVGs hardwareSVGs20;
        IHardwareSVGs hardwareSVGs21;
        IHardwareSVGs hardwareSVGs22;
        IHardwareSVGs hardwareSVGs23;
        IHardwareSVGs hardwareSVGs24;
        IHardwareSVGs hardwareSVGs25;
        IHardwareSVGs hardwareSVGs26;
        IHardwareSVGs hardwareSVGs27;
        IHardwareSVGs hardwareSVGs28;
        IHardwareSVGs hardwareSVGs29;
        IHardwareSVGs hardwareSVGs30;
        IHardwareSVGs hardwareSVGs31;
        IHardwareSVGs hardwareSVGs32;
        IHardwareSVGs hardwareSVGs33;
        IHardwareSVGs hardwareSVGs34;
        IHardwareSVGs hardwareSVGs35;
        IHardwareSVGs hardwareSVGs36;
        IHardwareSVGs hardwareSVGs37;
        IHardwareSVGs hardwareSVGs38;
    }
}

File 14 of 21 : IFrameSVGs.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;

interface IFrameSVGs {
    struct FrameData {
        string title;
        uint256 fee;
        string svgString;
    }
}

File 15 of 21 : IFieldSVGs.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;

import './ICategories.sol';

interface IFieldSVGs {
    struct FieldData {
        string title;
        ICategories.FieldCategories fieldType;
        string svgString;
    }
}

File 16 of 21 : IColors.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;

interface IColors {
    event ColorAdded(uint24 color, string title);

    struct Color {
        string title;
        bool exists;
    }

    /// @notice Returns true if color exists in contract, else false.
    /// @param color 3-byte uint representing color
    /// @return true or false
    function colorExists(uint24 color) external view returns (bool);

    /// @notice Returns the title string corresponding to the 3-byte color
    /// @param color 3-byte uint representing color
    /// @return true or false
    function colorTitle(uint24 color) external view returns (string memory);
}

File 17 of 21 : IHardwareSVGs.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;

import './ICategories.sol';

interface IHardwareSVGs {
    struct HardwareData {
        string title;
        ICategories.HardwareCategories hardwareType;
        string svgString;
    }
}

File 18 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 19 of 21 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

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

File 20 of 21 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

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;
        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");

        (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");

        (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");

        (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");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 21 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "metadata": {
    "bytecodeHash": "none"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"contract IEmblemWeaver","name":"_emblemWeaver","type":"address"},{"internalType":"address","name":"makerBadgeRecipient","type":"address"},{"internalType":"address","name":"granteeBadgeRecipient","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"field","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"hardware","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"frame","type":"uint16"},{"indexed":false,"internalType":"uint24[4]","name":"colors","type":"uint24[4]"},{"indexed":false,"internalType":"enum IShields.ShieldBadge","name":"shieldBadge","type":"uint8"}],"name":"ShieldBuilt","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"field","type":"uint16"},{"internalType":"uint16","name":"hardware","type":"uint16"},{"internalType":"uint16","name":"frame","type":"uint16"},{"internalType":"uint24[4]","name":"colors","type":"uint24[4]"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"build","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"collectFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emblemWeaver","outputs":[{"internalType":"contract IEmblemWeaver","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"count","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mythicFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":[],"name":"setPublicMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicMintPrice","type":"uint256"}],"name":"setPublicMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"shieldHashes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"shields","outputs":[{"internalType":"uint16","name":"field","type":"uint16"},{"internalType":"uint16","name":"hardware","type":"uint16"},{"internalType":"uint16","name":"frame","type":"uint16"},{"internalType":"uint24","name":"color1","type":"uint24"},{"internalType":"uint24","name":"color2","type":"uint24"},{"internalType":"uint24","name":"color3","type":"uint24"},{"internalType":"uint24","name":"color4","type":"uint24"},{"internalType":"enum IShields.ShieldBadge","name":"shieldBadge","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"specialFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040526006805460ff60a01b191690553480156200001e57600080fd5b50604051620044ad380380620044ad833981016040819052620000419162000453565b8451859085906200005a906000906020850190620002c7565b50805162000070906001906020840190620002c7565b5050506200008d620000876200012560201b60201c565b62000129565b6001600160a01b03831660805260015b60648111620000c757620000b283826200017b565b80620000be8162000515565b9150506200009d565b506000620000d86064600162000533565b90505b6101f481116200010657620000f182826200017b565b80620000fd8162000515565b915050620000db565b50620001166101f4600162000533565b600855506200058b9350505050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001d75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064015b60405180910390fd5b6000818152600260205260409020546001600160a01b0316156200023e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620001ce565b6001600160a01b03821660009081526003602052604081208054600192906200026990849062000533565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054620002d5906200054e565b90600052602060002090601f016020900481019282620002f9576000855562000344565b82601f106200031457805160ff191683800117855562000344565b8280016001018555821562000344579182015b828111156200034457825182559160200191906001019062000327565b506200035292915062000356565b5090565b5b8082111562000352576000815560010162000357565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200039557600080fd5b81516001600160401b0380821115620003b257620003b26200036d565b604051601f8301601f19908116603f01168101908282118183101715620003dd57620003dd6200036d565b81604052838152602092508683858801011115620003fa57600080fd5b600091505b838210156200041e5785820183015181830184015290820190620003ff565b83821115620004305760008385830101525b9695505050505050565b6001600160a01b03811681146200045057600080fd5b50565b600080600080600060a086880312156200046c57600080fd5b85516001600160401b03808211156200048457600080fd5b6200049289838a0162000383565b96506020880151915080821115620004a957600080fd5b50620004b88882890162000383565b9450506040860151620004cb816200043a565b6060870151909350620004de816200043a565b6080870151909250620004f1816200043a565b809150509295509295909350565b634e487b7160e01b600052601160045260246000fd5b60006000198214156200052c576200052c620004ff565b5060010190565b60008219821115620005495762000549620004ff565b500190565b600181811c908216806200056357607f821691505b602082108114156200058557634e487b7160e01b600052602260045260246000fd5b50919050565b608051613edc620005d1600039600081816101ec01528181610a8301528181610bdf01528181610d5201528181611e8001528181611f950152612e1c0152613edc6000f3fe6080604052600436106101c05760003560e01c80638da5cb5b116100f7578063c879657211610095578063e985e9c511610064578063e985e9c514610519578063f2fde38b1461056f578063f862ab1b1461058f578063fbe41874146105c357600080fd5b8063c8796572146104b3578063c87b56dd146104c8578063dc53fd92146104e8578063df1100c6146104fe57600080fd5b8063b51d2512116100d1578063b51d251214610415578063b67c25a314610445578063b88d4fde14610477578063bd66cd531461049757600080fd5b80638da5cb5b146103b557806395d89b41146103e0578063a22cb465146103f557600080fd5b806323b872dd116101645780636352211e1161013e5780636352211e1461034d578063691562a01461036d57806370a0823114610380578063715018a6146103a057600080fd5b806323b872dd146102ed57806342842e0e1461030d5780635d82cf6e1461032d57600080fd5b806306fdde03116101a057806306fdde0314610268578063081812fc1461028a578063095ea7b3146102aa57806318160ddd146102ca57600080fd5b806272e9c7146101c5578062813dd5146101da57806301ffc9a714610238575b600080fd5b6101d86101d3366004613536565b6105d8565b005b3480156101e657600080fd5b5061020e7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561024457600080fd5b50610258610253366004613610565b610fef565b604051901515815260200161022f565b34801561027457600080fd5b5061027d6110d4565b60405161022f91906136a3565b34801561029657600080fd5b5061020e6102a53660046136b6565b611166565b3480156102b657600080fd5b506101d86102c53660046136f1565b611240565b3480156102d657600080fd5b506102df6113f8565b60405190815260200161022f565b3480156102f957600080fd5b506101d861030836600461371d565b61140e565b34801561031957600080fd5b506101d861032836600461371d565b6114af565b34801561033957600080fd5b506101d86103483660046136b6565b6114ca565b34801561035957600080fd5b5061020e6103683660046136b6565b6115fb565b6101d861037b36600461375e565b6116ad565b34801561038c57600080fd5b506102df61039b36600461379d565b61195b565b3480156103ac57600080fd5b506101d8611a29565b3480156103c157600080fd5b5060065473ffffffffffffffffffffffffffffffffffffffff1661020e565b3480156103ec57600080fd5b5061027d611ab6565b34801561040157600080fd5b506101d86104103660046137c8565b611ac5565b34801561042157600080fd5b506102586104303660046136b6565b600b6020526000908152604090205460ff1681565b34801561045157600080fd5b506006546102589074010000000000000000000000000000000000000000900460ff1681565b34801561048357600080fd5b506101d861049236600461383c565b611ad4565b3480156104a357600080fd5b506102df67011c37937e08000081565b3480156104bf57600080fd5b506101d8611b7c565b3480156104d457600080fd5b5061027d6104e33660046136b6565b611cce565b3480156104f457600080fd5b506102df60075481565b34801561050a57600080fd5b506102df66470de4df82000081565b34801561052557600080fd5b506102586105343660046138eb565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561057b57600080fd5b506101d861058a36600461379d565b611fd0565b34801561059b57600080fd5b506105af6105aa3660046136b6565b6120fd565b60405161022f989796959493929190613983565b3480156105cf57600080fd5b506101d8612300565b806105e2816115fb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f536869656c64733a206f6e6c79206f776e65722063616e206275696c6420536860448201527f69656c640000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b600082815260096020526040902054829060ff161561071b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f536869656c64733a20536869656c6420616c7265616479206275696c740000006044820152606401610697565b828660788161ffff1614156107bb5760058211156107bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f536869656c64733a20546872656520536869656c64732068617264776172652060448201527f726573657276656420666f72204d616b657220426164676500000000000000006064820152608401610697565b88866107c78183612454565b60008b8b8a6040516020016107de93929190613a04565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291815281516020928301206000818152600b90935291205490915060ff16156108b3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f536869656c64733a20756e6971756520536869656c6420616c7265616479206260448201527f75696c74000000000000000000000000000000000000000000000000000000006064820152608401610697565b6001600b600083815260200190815260200160002060006101000a81548160ff02191690831515021790555060006040518060c001604052806001151581526020018e61ffff1681526020018d61ffff1681526020018c61ffff16815260200161091c8b6124a2565b600181111561092d5761092d613919565b815260209081018c905260008b81526009825260409081902083518154938501519285015160608601517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000009095169115157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ff169190911761010061ffff94851602177fffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffff166301000000918416919091027fffffffffffffffffffffffffffffffffffffffffffffffffff0000ffffffffff161765010000000000929093169190910291909117808255608083015192935083929082907fffffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffff16670100000000000000836001811115610a6057610a60613919565b021790555060a0820151610a7a90600183019060046133ac565b509050506000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631b740a336040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610ae957600080fd5b505af1158015610afd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b219190613a24565b73ffffffffffffffffffffffffffffffffffffffff1663ccf27bea84602001518560a001516040518363ffffffff1660e01b8152600401610b63929190613a41565b60006040518083038186803b158015610b7b57600080fd5b505afa158015610b8f573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610bd59190810190613aab565b60200151905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663291c881d6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610c4557600080fd5b505af1158015610c59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7d9190613a24565b60408086015190517fe6e2e97c00000000000000000000000000000000000000000000000000000000815261ffff909116600482015273ffffffffffffffffffffffffffffffffffffffff919091169063e6e2e97c9060240160006040518083038186803b158015610cee57600080fd5b505afa158015610d02573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610d489190810190613aab565b60200151905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632900a9aa6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610db857600080fd5b505af1158015610dcc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df09190613a24565b60608601516040517fd0b7314f00000000000000000000000000000000000000000000000000000000815261ffff909116600482015273ffffffffffffffffffffffffffffffffffffffff919091169063d0b7314f9060240160006040518083038186803b158015610e6157600080fd5b505afa158015610e75573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610ebb9190810190613b4f565b6020015190506000836001811115610ed557610ed5613919565b1415610eef57610eec66470de4df82000085613bfe565b93505b6001826001811115610f0357610f03613919565b1415610f1e57610f1b67011c37937e08000085613bfe565b93505b610f288185613bfe565b9350833414610f93576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f536869656c64733a20696e76616c6964206275696c64696e67206665650000006044820152606401610697565b505050507f10dee8726629fad96af1a24a83560cb19b9a4f436ecdd488ebc59ad81c623459898e8e8e8e610fc68f6124a2565b604051610fd896959493929190613c16565b60405180910390a150505050505050505050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061108257507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806110ce57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600080546110e390613c5e565b80601f016020809104026020016040519081016040528092919081815260200182805461110f90613c5e565b801561115c5780601f106111315761010080835404028352916020019161115c565b820191906000526020600020905b81548152906001019060200180831161113f57829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16611217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610697565b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b600061124b826115fb565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611309576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610697565b3373ffffffffffffffffffffffffffffffffffffffff8216148061135d575073ffffffffffffffffffffffffffffffffffffffff8116600090815260056020908152604080832033845290915290205460ff165b6113e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610697565b6113f383836124c1565b505050565b600060016008546114099190613cac565b905090565b6114183382612561565b6114a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610697565b6113f38383836126d1565b6113f383838360405180602001604052806000815250611ad4565b60065473ffffffffffffffffffffffffffffffffffffffff16331461154b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610697565b60065474010000000000000000000000000000000000000000900460ff16156115f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f536869656c64733a207075626c6963206d696e7420697320616c72656164792060448201527f61637469766500000000000000000000000000000000000000000000000000006064820152608401610697565b600755565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16806110ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610697565b60065474010000000000000000000000000000000000000000900460ff16611757576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f536869656c64733a207075626c6963206d696e74206e6f74206163746976652060448201527f79657400000000000000000000000000000000000000000000000000000000006064820152608401610697565b806117656113886001613bfe565b8160ff166008546117769190613bfe565b1115611804576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f536869656c64733a207075626c6963206d696e74206d6178206578636565646560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610697565b60058160ff161115611898576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f536869656c64733a2063616e206f6e6c79206d696e7420757020746f2035207060448201527f6572207472616e73616374696f6e0000000000000000000000000000000000006064820152608401610697565b818060ff166007546118aa9190613cc3565b3414611912576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f536869656c64733a20696e76616c6964206d696e7420666565000000000000006044820152606401610697565b60005b8360ff168160ff161015611954576008805461194291879190600061193983613d00565b91905055612938565b8061194c81613d39565b915050611915565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff8216611a00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610697565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b60065473ffffffffffffffffffffffffffffffffffffffff163314611aaa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610697565b611ab46000612afa565b565b6060600180546110e390613c5e565b611ad0338383612b71565b5050565b611ade3383612561565b611b6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610697565b611b7684848484612c9f565b50505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314611bfd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610697565b6040805160008082526020820190925233904790604051611c1e9190613d59565b60006040518083038185875af1925050503d8060008114611c5b576040519150601f19603f3d011682016040523d82523d6000602084013e611c60565b606091505b5050905080611ccb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536869656c64733a206574686572207472616e73666572206661696c656400006044820152606401610697565b50565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16611d82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f536869656c64733a2055524920717565727920666f72206e6f6e65786973746560448201527f6e7420746f6b656e0000000000000000000000000000000000000000000000006064820152608401610697565b6000828152600960209081526040808320815160c081018352815460ff8082161515835261ffff610100830481169684019690965263010000008204861694830194909452650100000000008104909416606082015292909160808401916701000000000000009004166001811115611dfd57611dfd613919565b6001811115611e0e57611e0e613919565b8152604080516080810191829052602090920191906001840190600490826000855b82829054906101000a900462ffffff1662ffffff1681526020019060030190602082600201049283019260010382029150808411611e3057905050505050508152505090508060000151611f58577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663120ea84c611ec3856124a2565b6040518263ffffffff1660e01b8152600401611edf9190613d75565b60006040518083038186803b158015611ef757600080fd5b505afa158015611f0b573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052611f519190810190613d83565b9392505050565b6040517f8ee1d84c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690638ee1d84c90611edf908490600401613db8565b50919050565b60065473ffffffffffffffffffffffffffffffffffffffff163314612051576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610697565b73ffffffffffffffffffffffffffffffffffffffff81166120f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610697565b611ccb81612afa565b6000806000806000806000806121378960009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16151590565b61219d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536869656c643a20746f6b656e494420646f6573206e6f7420657869737400006044820152606401610697565b6000898152600960209081526040808320815160c081018352815460ff8082161515835261ffff61010083048116968401969096526301000000820486169483019490945265010000000000810490941660608201529290916080840191670100000000000000900416600181111561221857612218613919565b600181111561222957612229613919565b8152604080516080810191829052602090920191906001840190600490826000855b82829054906101000a900462ffffff1662ffffff168152602001906003019060208260020104928301926001038202915080841161224b57905050505050508152505090508060200151816040015182606001518360a001516000600481106122b6576122b6613e1d565b602002015160a08501516001602002015160a08601516002602002015160a08701516003602002015187608001519850985098509850985098509850985050919395975091939597565b60065473ffffffffffffffffffffffffffffffffffffffff163314612381576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610697565b600060075411612413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f536869656c64733a207075626c6963206d696e74207072696365206e6f74207960448201527f65742073657400000000000000000000000000000000000000000000000000006064820152608401610697565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b61ffff811661246857611ad0826001612d42565b60f28161ffff161161247f57611ad0826002612d42565b6101258161ffff161161249757611ad0826003612d42565b611ad0826004612d42565b6000600582116124b457506000919050565b506001919050565b919050565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061251b826115fb565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16612612576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610697565b600061261d836115fb565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061268c57508373ffffffffffffffffffffffffffffffffffffffff1661267484611166565b73ffffffffffffffffffffffffffffffffffffffff16145b806126c9575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff166126f1826115fb565b73ffffffffffffffffffffffffffffffffffffffff1614612794576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610697565b73ffffffffffffffffffffffffffffffffffffffff8216612836576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610697565b6128416000826124c1565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260408120805460019290612877908490613cac565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906128b2908490613bfe565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b73ffffffffffffffffffffffffffffffffffffffff82166129b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610697565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615612a41576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610697565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290612a77908490613bfe565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6006805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612c07576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610697565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612caa8484846126d1565b612cb6848484846131ad565b611b76576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610697565b60005b8160ff168160ff16101561305757600a6000848360ff1660048110612d6c57612d6c613e1d565b6020908102919091015162ffffff1682528101919091526040016000205460ff1615612e1a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f536869656c64733a20616c6c20636f6c6f7273206d75737420626520756e697160448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610697565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631b740a336040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612e8257600080fd5b505af1158015612e96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eba9190613a24565b73ffffffffffffffffffffffffffffffffffffffff166339b24bd2848360ff1660048110612eea57612eea613e1d565b60200201516040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815262ffffff909116600482015260240160206040518083038186803b158015612f4257600080fd5b505afa158015612f56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f7a9190613e4c565b612fe0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f536869656c64733a20636f6c6f7220646f6573206e6f742065786973740000006044820152606401610697565b6001600a6000858460ff1660048110612ffb57612ffb613e1d565b6020908102919091015162ffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790558061304f81613d39565b915050612d45565b5060005b8160ff168160ff1610156130e0576000600a6000858460ff166004811061308457613084613e1d565b6020908102919091015162ffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055806130d881613d39565b91505061305b565b50805b60048160ff1610156113f357828160ff166004811061310457613104613e1d565b602002015162ffffff161561319b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f536869656c64733a206d617820636f6c6f727320657863656564656420666f7260448201527f206669656c6400000000000000000000000000000000000000000000000000006064820152608401610697565b806131a581613d39565b9150506130e3565b600073ffffffffffffffffffffffffffffffffffffffff84163b156133a1576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613224903390899088908890600401613e69565b602060405180830381600087803b15801561323e57600080fd5b505af192505050801561328c575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261328991810190613eb2565b60015b613356573d8080156132ba576040519150601f19603f3d011682016040523d82523d6000602084013e6132bf565b606091505b50805161334e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610697565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506126c9565b506001949350505050565b6001830191839082156134355791602002820160005b8382111561340457835183826101000a81548162ffffff021916908362ffffff16021790555092602001926003016020816002010492830192600103026133c2565b80156134335782816101000a81549062ffffff0219169055600301602081600201049283019260010302613404565b505b50613441929150613445565b5090565b5b808211156134415760008155600101613446565b803561ffff811681146124bc57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040516080810167ffffffffffffffff811182821017156134be576134be61346c565b60405290565b6040516060810167ffffffffffffffff811182821017156134be576134be61346c565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561352e5761352e61346c565b604052919050565b6000806000806000610100868803121561354f57600080fd5b6135588661345a565b9450602061356781880161345a565b94506135756040880161345a565b935087607f88011261358657600080fd5b61358e61349b565b8060e089018a8111156135a057600080fd5b60608a015b818110156135ce57803562ffffff811681146135c15760008081fd5b84529284019284016135a5565b50979a969950949750939535949350505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611ccb57600080fd5b60006020828403121561362257600080fd5b8135611f51816135e2565b60005b83811015613648578181015183820152602001613630565b83811115611b765750506000910152565b6000815180845261367181602086016020860161362d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611f516020830184613659565b6000602082840312156136c857600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff81168114611ccb57600080fd5b6000806040838503121561370457600080fd5b823561370f816136cf565b946020939093013593505050565b60008060006060848603121561373257600080fd5b833561373d816136cf565b9250602084013561374d816136cf565b929592945050506040919091013590565b6000806040838503121561377157600080fd5b823561377c816136cf565b9150602083013560ff8116811461379257600080fd5b809150509250929050565b6000602082840312156137af57600080fd5b8135611f51816136cf565b8015158114611ccb57600080fd5b600080604083850312156137db57600080fd5b82356137e6816136cf565b91506020830135613792816137ba565b600067ffffffffffffffff8211156138105761381061346c565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b6000806000806080858703121561385257600080fd5b843561385d816136cf565b9350602085013561386d816136cf565b925060408501359150606085013567ffffffffffffffff81111561389057600080fd5b8501601f810187136138a157600080fd5b80356138b46138af826137f6565b6134e7565b8181528860208385010111156138c957600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600080604083850312156138fe57600080fd5b8235613909816136cf565b91506020830135613792816136cf565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811061397f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9052565b61ffff898116825288811660208301528716604082015262ffffff8681166060830152858116608083015284811660a0830152831660c082015261010081016139cf60e0830184613948565b9998505050505050505050565b8060005b6004811015611b7657815162ffffff168452602093840193909101906001016139e0565b61ffff84811682528316602082015260c081016126c960408301846139dc565b600060208284031215613a3657600080fd5b8151611f51816136cf565b61ffff8316815260a08101611f5160208301846139dc565b600082601f830112613a6a57600080fd5b8151613a786138af826137f6565b818152846020838601011115613a8d57600080fd5b6126c982602083016020870161362d565b60028110611ccb57600080fd5b600060208284031215613abd57600080fd5b815167ffffffffffffffff80821115613ad557600080fd5b9083019060608286031215613ae957600080fd5b613af16134c4565b825182811115613b0057600080fd5b613b0c87828601613a59565b8252506020830151613b1d81613a9e565b6020820152604083015182811115613b3457600080fd5b613b4087828601613a59565b60408301525095945050505050565b600060208284031215613b6157600080fd5b815167ffffffffffffffff80821115613b7957600080fd5b9083019060608286031215613b8d57600080fd5b613b956134c4565b825182811115613ba457600080fd5b613bb087828601613a59565b82525060208301516020820152604083015182811115613b3457600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008219821115613c1157613c11613bcf565b500190565b86815261ffff86811660208301528581166040830152841660608201526101208101613c4560808301856139dc565b613c53610100830184613948565b979650505050505050565b600181811c90821680613c7257607f821691505b60208210811415611fca577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600082821015613cbe57613cbe613bcf565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613cfb57613cfb613bcf565b500290565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613d3257613d32613bcf565b5060010190565b600060ff821660ff811415613d5057613d50613bcf565b60010192915050565b60008251613d6b81846020870161362d565b9190910192915050565b602081016110ce8284613948565b600060208284031215613d9557600080fd5b815167ffffffffffffffff811115613dac57600080fd5b6126c984828501613a59565b600061012082019050825115158252602083015161ffff808216602085015280604086015116604085015280606086015116606085015250506080830151613e036080840182613948565b5060a0830151613e1660a08401826139dc565b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215613e5e57600080fd5b8151611f51816137ba565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152613ea86080830184613659565b9695505050505050565b600060208284031215613ec457600080fd5b8151611f51816135e256fea164736f6c6343000809000a00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000003e2063199f7b98b8188b7649d95bd0c82f4b000100000000000000000000000042aaeee1201ec5d1f3a3dccc23ab8c01391d182d0000000000000000000000005e14ed9dcee22ba758e8de482301028b261c4a140000000000000000000000000000000000000000000000000000000000000007536869656c6473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007534849454c445300000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101c05760003560e01c80638da5cb5b116100f7578063c879657211610095578063e985e9c511610064578063e985e9c514610519578063f2fde38b1461056f578063f862ab1b1461058f578063fbe41874146105c357600080fd5b8063c8796572146104b3578063c87b56dd146104c8578063dc53fd92146104e8578063df1100c6146104fe57600080fd5b8063b51d2512116100d1578063b51d251214610415578063b67c25a314610445578063b88d4fde14610477578063bd66cd531461049757600080fd5b80638da5cb5b146103b557806395d89b41146103e0578063a22cb465146103f557600080fd5b806323b872dd116101645780636352211e1161013e5780636352211e1461034d578063691562a01461036d57806370a0823114610380578063715018a6146103a057600080fd5b806323b872dd146102ed57806342842e0e1461030d5780635d82cf6e1461032d57600080fd5b806306fdde03116101a057806306fdde0314610268578063081812fc1461028a578063095ea7b3146102aa57806318160ddd146102ca57600080fd5b806272e9c7146101c5578062813dd5146101da57806301ffc9a714610238575b600080fd5b6101d86101d3366004613536565b6105d8565b005b3480156101e657600080fd5b5061020e7f0000000000000000000000003e2063199f7b98b8188b7649d95bd0c82f4b000181565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561024457600080fd5b50610258610253366004613610565b610fef565b604051901515815260200161022f565b34801561027457600080fd5b5061027d6110d4565b60405161022f91906136a3565b34801561029657600080fd5b5061020e6102a53660046136b6565b611166565b3480156102b657600080fd5b506101d86102c53660046136f1565b611240565b3480156102d657600080fd5b506102df6113f8565b60405190815260200161022f565b3480156102f957600080fd5b506101d861030836600461371d565b61140e565b34801561031957600080fd5b506101d861032836600461371d565b6114af565b34801561033957600080fd5b506101d86103483660046136b6565b6114ca565b34801561035957600080fd5b5061020e6103683660046136b6565b6115fb565b6101d861037b36600461375e565b6116ad565b34801561038c57600080fd5b506102df61039b36600461379d565b61195b565b3480156103ac57600080fd5b506101d8611a29565b3480156103c157600080fd5b5060065473ffffffffffffffffffffffffffffffffffffffff1661020e565b3480156103ec57600080fd5b5061027d611ab6565b34801561040157600080fd5b506101d86104103660046137c8565b611ac5565b34801561042157600080fd5b506102586104303660046136b6565b600b6020526000908152604090205460ff1681565b34801561045157600080fd5b506006546102589074010000000000000000000000000000000000000000900460ff1681565b34801561048357600080fd5b506101d861049236600461383c565b611ad4565b3480156104a357600080fd5b506102df67011c37937e08000081565b3480156104bf57600080fd5b506101d8611b7c565b3480156104d457600080fd5b5061027d6104e33660046136b6565b611cce565b3480156104f457600080fd5b506102df60075481565b34801561050a57600080fd5b506102df66470de4df82000081565b34801561052557600080fd5b506102586105343660046138eb565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561057b57600080fd5b506101d861058a36600461379d565b611fd0565b34801561059b57600080fd5b506105af6105aa3660046136b6565b6120fd565b60405161022f989796959493929190613983565b3480156105cf57600080fd5b506101d8612300565b806105e2816115fb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f536869656c64733a206f6e6c79206f776e65722063616e206275696c6420536860448201527f69656c640000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b600082815260096020526040902054829060ff161561071b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f536869656c64733a20536869656c6420616c7265616479206275696c740000006044820152606401610697565b828660788161ffff1614156107bb5760058211156107bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f536869656c64733a20546872656520536869656c64732068617264776172652060448201527f726573657276656420666f72204d616b657220426164676500000000000000006064820152608401610697565b88866107c78183612454565b60008b8b8a6040516020016107de93929190613a04565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291815281516020928301206000818152600b90935291205490915060ff16156108b3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f536869656c64733a20756e6971756520536869656c6420616c7265616479206260448201527f75696c74000000000000000000000000000000000000000000000000000000006064820152608401610697565b6001600b600083815260200190815260200160002060006101000a81548160ff02191690831515021790555060006040518060c001604052806001151581526020018e61ffff1681526020018d61ffff1681526020018c61ffff16815260200161091c8b6124a2565b600181111561092d5761092d613919565b815260209081018c905260008b81526009825260409081902083518154938501519285015160608601517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000009095169115157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ff169190911761010061ffff94851602177fffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffff166301000000918416919091027fffffffffffffffffffffffffffffffffffffffffffffffffff0000ffffffffff161765010000000000929093169190910291909117808255608083015192935083929082907fffffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffff16670100000000000000836001811115610a6057610a60613919565b021790555060a0820151610a7a90600183019060046133ac565b509050506000807f0000000000000000000000003e2063199f7b98b8188b7649d95bd0c82f4b000173ffffffffffffffffffffffffffffffffffffffff16631b740a336040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610ae957600080fd5b505af1158015610afd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b219190613a24565b73ffffffffffffffffffffffffffffffffffffffff1663ccf27bea84602001518560a001516040518363ffffffff1660e01b8152600401610b63929190613a41565b60006040518083038186803b158015610b7b57600080fd5b505afa158015610b8f573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610bd59190810190613aab565b60200151905060007f0000000000000000000000003e2063199f7b98b8188b7649d95bd0c82f4b000173ffffffffffffffffffffffffffffffffffffffff1663291c881d6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610c4557600080fd5b505af1158015610c59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7d9190613a24565b60408086015190517fe6e2e97c00000000000000000000000000000000000000000000000000000000815261ffff909116600482015273ffffffffffffffffffffffffffffffffffffffff919091169063e6e2e97c9060240160006040518083038186803b158015610cee57600080fd5b505afa158015610d02573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610d489190810190613aab565b60200151905060007f0000000000000000000000003e2063199f7b98b8188b7649d95bd0c82f4b000173ffffffffffffffffffffffffffffffffffffffff16632900a9aa6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610db857600080fd5b505af1158015610dcc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df09190613a24565b60608601516040517fd0b7314f00000000000000000000000000000000000000000000000000000000815261ffff909116600482015273ffffffffffffffffffffffffffffffffffffffff919091169063d0b7314f9060240160006040518083038186803b158015610e6157600080fd5b505afa158015610e75573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610ebb9190810190613b4f565b6020015190506000836001811115610ed557610ed5613919565b1415610eef57610eec66470de4df82000085613bfe565b93505b6001826001811115610f0357610f03613919565b1415610f1e57610f1b67011c37937e08000085613bfe565b93505b610f288185613bfe565b9350833414610f93576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f536869656c64733a20696e76616c6964206275696c64696e67206665650000006044820152606401610697565b505050507f10dee8726629fad96af1a24a83560cb19b9a4f436ecdd488ebc59ad81c623459898e8e8e8e610fc68f6124a2565b604051610fd896959493929190613c16565b60405180910390a150505050505050505050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061108257507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806110ce57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600080546110e390613c5e565b80601f016020809104026020016040519081016040528092919081815260200182805461110f90613c5e565b801561115c5780601f106111315761010080835404028352916020019161115c565b820191906000526020600020905b81548152906001019060200180831161113f57829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16611217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610697565b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b600061124b826115fb565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611309576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610697565b3373ffffffffffffffffffffffffffffffffffffffff8216148061135d575073ffffffffffffffffffffffffffffffffffffffff8116600090815260056020908152604080832033845290915290205460ff165b6113e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610697565b6113f383836124c1565b505050565b600060016008546114099190613cac565b905090565b6114183382612561565b6114a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610697565b6113f38383836126d1565b6113f383838360405180602001604052806000815250611ad4565b60065473ffffffffffffffffffffffffffffffffffffffff16331461154b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610697565b60065474010000000000000000000000000000000000000000900460ff16156115f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f536869656c64733a207075626c6963206d696e7420697320616c72656164792060448201527f61637469766500000000000000000000000000000000000000000000000000006064820152608401610697565b600755565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16806110ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610697565b60065474010000000000000000000000000000000000000000900460ff16611757576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f536869656c64733a207075626c6963206d696e74206e6f74206163746976652060448201527f79657400000000000000000000000000000000000000000000000000000000006064820152608401610697565b806117656113886001613bfe565b8160ff166008546117769190613bfe565b1115611804576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f536869656c64733a207075626c6963206d696e74206d6178206578636565646560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610697565b60058160ff161115611898576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f536869656c64733a2063616e206f6e6c79206d696e7420757020746f2035207060448201527f6572207472616e73616374696f6e0000000000000000000000000000000000006064820152608401610697565b818060ff166007546118aa9190613cc3565b3414611912576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f536869656c64733a20696e76616c6964206d696e7420666565000000000000006044820152606401610697565b60005b8360ff168160ff161015611954576008805461194291879190600061193983613d00565b91905055612938565b8061194c81613d39565b915050611915565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff8216611a00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610697565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b60065473ffffffffffffffffffffffffffffffffffffffff163314611aaa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610697565b611ab46000612afa565b565b6060600180546110e390613c5e565b611ad0338383612b71565b5050565b611ade3383612561565b611b6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610697565b611b7684848484612c9f565b50505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314611bfd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610697565b6040805160008082526020820190925233904790604051611c1e9190613d59565b60006040518083038185875af1925050503d8060008114611c5b576040519150601f19603f3d011682016040523d82523d6000602084013e611c60565b606091505b5050905080611ccb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536869656c64733a206574686572207472616e73666572206661696c656400006044820152606401610697565b50565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16611d82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f536869656c64733a2055524920717565727920666f72206e6f6e65786973746560448201527f6e7420746f6b656e0000000000000000000000000000000000000000000000006064820152608401610697565b6000828152600960209081526040808320815160c081018352815460ff8082161515835261ffff610100830481169684019690965263010000008204861694830194909452650100000000008104909416606082015292909160808401916701000000000000009004166001811115611dfd57611dfd613919565b6001811115611e0e57611e0e613919565b8152604080516080810191829052602090920191906001840190600490826000855b82829054906101000a900462ffffff1662ffffff1681526020019060030190602082600201049283019260010382029150808411611e3057905050505050508152505090508060000151611f58577f0000000000000000000000003e2063199f7b98b8188b7649d95bd0c82f4b000173ffffffffffffffffffffffffffffffffffffffff1663120ea84c611ec3856124a2565b6040518263ffffffff1660e01b8152600401611edf9190613d75565b60006040518083038186803b158015611ef757600080fd5b505afa158015611f0b573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052611f519190810190613d83565b9392505050565b6040517f8ee1d84c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000003e2063199f7b98b8188b7649d95bd0c82f4b00011690638ee1d84c90611edf908490600401613db8565b50919050565b60065473ffffffffffffffffffffffffffffffffffffffff163314612051576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610697565b73ffffffffffffffffffffffffffffffffffffffff81166120f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610697565b611ccb81612afa565b6000806000806000806000806121378960009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16151590565b61219d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536869656c643a20746f6b656e494420646f6573206e6f7420657869737400006044820152606401610697565b6000898152600960209081526040808320815160c081018352815460ff8082161515835261ffff61010083048116968401969096526301000000820486169483019490945265010000000000810490941660608201529290916080840191670100000000000000900416600181111561221857612218613919565b600181111561222957612229613919565b8152604080516080810191829052602090920191906001840190600490826000855b82829054906101000a900462ffffff1662ffffff168152602001906003019060208260020104928301926001038202915080841161224b57905050505050508152505090508060200151816040015182606001518360a001516000600481106122b6576122b6613e1d565b602002015160a08501516001602002015160a08601516002602002015160a08701516003602002015187608001519850985098509850985098509850985050919395975091939597565b60065473ffffffffffffffffffffffffffffffffffffffff163314612381576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610697565b600060075411612413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f536869656c64733a207075626c6963206d696e74207072696365206e6f74207960448201527f65742073657400000000000000000000000000000000000000000000000000006064820152608401610697565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b61ffff811661246857611ad0826001612d42565b60f28161ffff161161247f57611ad0826002612d42565b6101258161ffff161161249757611ad0826003612d42565b611ad0826004612d42565b6000600582116124b457506000919050565b506001919050565b919050565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061251b826115fb565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16612612576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610697565b600061261d836115fb565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061268c57508373ffffffffffffffffffffffffffffffffffffffff1661267484611166565b73ffffffffffffffffffffffffffffffffffffffff16145b806126c9575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff166126f1826115fb565b73ffffffffffffffffffffffffffffffffffffffff1614612794576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610697565b73ffffffffffffffffffffffffffffffffffffffff8216612836576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610697565b6128416000826124c1565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260408120805460019290612877908490613cac565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906128b2908490613bfe565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b73ffffffffffffffffffffffffffffffffffffffff82166129b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610697565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615612a41576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610697565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290612a77908490613bfe565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6006805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612c07576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610697565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612caa8484846126d1565b612cb6848484846131ad565b611b76576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610697565b60005b8160ff168160ff16101561305757600a6000848360ff1660048110612d6c57612d6c613e1d565b6020908102919091015162ffffff1682528101919091526040016000205460ff1615612e1a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f536869656c64733a20616c6c20636f6c6f7273206d75737420626520756e697160448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610697565b7f0000000000000000000000003e2063199f7b98b8188b7649d95bd0c82f4b000173ffffffffffffffffffffffffffffffffffffffff16631b740a336040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612e8257600080fd5b505af1158015612e96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eba9190613a24565b73ffffffffffffffffffffffffffffffffffffffff166339b24bd2848360ff1660048110612eea57612eea613e1d565b60200201516040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815262ffffff909116600482015260240160206040518083038186803b158015612f4257600080fd5b505afa158015612f56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f7a9190613e4c565b612fe0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f536869656c64733a20636f6c6f7220646f6573206e6f742065786973740000006044820152606401610697565b6001600a6000858460ff1660048110612ffb57612ffb613e1d565b6020908102919091015162ffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790558061304f81613d39565b915050612d45565b5060005b8160ff168160ff1610156130e0576000600a6000858460ff166004811061308457613084613e1d565b6020908102919091015162ffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055806130d881613d39565b91505061305b565b50805b60048160ff1610156113f357828160ff166004811061310457613104613e1d565b602002015162ffffff161561319b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f536869656c64733a206d617820636f6c6f727320657863656564656420666f7260448201527f206669656c6400000000000000000000000000000000000000000000000000006064820152608401610697565b806131a581613d39565b9150506130e3565b600073ffffffffffffffffffffffffffffffffffffffff84163b156133a1576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613224903390899088908890600401613e69565b602060405180830381600087803b15801561323e57600080fd5b505af192505050801561328c575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261328991810190613eb2565b60015b613356573d8080156132ba576040519150601f19603f3d011682016040523d82523d6000602084013e6132bf565b606091505b50805161334e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610697565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506126c9565b506001949350505050565b6001830191839082156134355791602002820160005b8382111561340457835183826101000a81548162ffffff021916908362ffffff16021790555092602001926003016020816002010492830192600103026133c2565b80156134335782816101000a81549062ffffff0219169055600301602081600201049283019260010302613404565b505b50613441929150613445565b5090565b5b808211156134415760008155600101613446565b803561ffff811681146124bc57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040516080810167ffffffffffffffff811182821017156134be576134be61346c565b60405290565b6040516060810167ffffffffffffffff811182821017156134be576134be61346c565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561352e5761352e61346c565b604052919050565b6000806000806000610100868803121561354f57600080fd5b6135588661345a565b9450602061356781880161345a565b94506135756040880161345a565b935087607f88011261358657600080fd5b61358e61349b565b8060e089018a8111156135a057600080fd5b60608a015b818110156135ce57803562ffffff811681146135c15760008081fd5b84529284019284016135a5565b50979a969950949750939535949350505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611ccb57600080fd5b60006020828403121561362257600080fd5b8135611f51816135e2565b60005b83811015613648578181015183820152602001613630565b83811115611b765750506000910152565b6000815180845261367181602086016020860161362d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611f516020830184613659565b6000602082840312156136c857600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff81168114611ccb57600080fd5b6000806040838503121561370457600080fd5b823561370f816136cf565b946020939093013593505050565b60008060006060848603121561373257600080fd5b833561373d816136cf565b9250602084013561374d816136cf565b929592945050506040919091013590565b6000806040838503121561377157600080fd5b823561377c816136cf565b9150602083013560ff8116811461379257600080fd5b809150509250929050565b6000602082840312156137af57600080fd5b8135611f51816136cf565b8015158114611ccb57600080fd5b600080604083850312156137db57600080fd5b82356137e6816136cf565b91506020830135613792816137ba565b600067ffffffffffffffff8211156138105761381061346c565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b6000806000806080858703121561385257600080fd5b843561385d816136cf565b9350602085013561386d816136cf565b925060408501359150606085013567ffffffffffffffff81111561389057600080fd5b8501601f810187136138a157600080fd5b80356138b46138af826137f6565b6134e7565b8181528860208385010111156138c957600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600080604083850312156138fe57600080fd5b8235613909816136cf565b91506020830135613792816136cf565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811061397f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9052565b61ffff898116825288811660208301528716604082015262ffffff8681166060830152858116608083015284811660a0830152831660c082015261010081016139cf60e0830184613948565b9998505050505050505050565b8060005b6004811015611b7657815162ffffff168452602093840193909101906001016139e0565b61ffff84811682528316602082015260c081016126c960408301846139dc565b600060208284031215613a3657600080fd5b8151611f51816136cf565b61ffff8316815260a08101611f5160208301846139dc565b600082601f830112613a6a57600080fd5b8151613a786138af826137f6565b818152846020838601011115613a8d57600080fd5b6126c982602083016020870161362d565b60028110611ccb57600080fd5b600060208284031215613abd57600080fd5b815167ffffffffffffffff80821115613ad557600080fd5b9083019060608286031215613ae957600080fd5b613af16134c4565b825182811115613b0057600080fd5b613b0c87828601613a59565b8252506020830151613b1d81613a9e565b6020820152604083015182811115613b3457600080fd5b613b4087828601613a59565b60408301525095945050505050565b600060208284031215613b6157600080fd5b815167ffffffffffffffff80821115613b7957600080fd5b9083019060608286031215613b8d57600080fd5b613b956134c4565b825182811115613ba457600080fd5b613bb087828601613a59565b82525060208301516020820152604083015182811115613b3457600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008219821115613c1157613c11613bcf565b500190565b86815261ffff86811660208301528581166040830152841660608201526101208101613c4560808301856139dc565b613c53610100830184613948565b979650505050505050565b600181811c90821680613c7257607f821691505b60208210811415611fca577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600082821015613cbe57613cbe613bcf565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613cfb57613cfb613bcf565b500290565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613d3257613d32613bcf565b5060010190565b600060ff821660ff811415613d5057613d50613bcf565b60010192915050565b60008251613d6b81846020870161362d565b9190910192915050565b602081016110ce8284613948565b600060208284031215613d9557600080fd5b815167ffffffffffffffff811115613dac57600080fd5b6126c984828501613a59565b600061012082019050825115158252602083015161ffff808216602085015280604086015116604085015280606086015116606085015250506080830151613e036080840182613948565b5060a0830151613e1660a08401826139dc565b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215613e5e57600080fd5b8151611f51816137ba565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152613ea86080830184613659565b9695505050505050565b600060208284031215613ec457600080fd5b8151611f51816135e256fea164736f6c6343000809000a

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000003e2063199f7b98b8188b7649d95bd0c82f4b000100000000000000000000000042aaeee1201ec5d1f3a3dccc23ab8c01391d182d0000000000000000000000005e14ed9dcee22ba758e8de482301028b261c4a140000000000000000000000000000000000000000000000000000000000000007536869656c6473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007534849454c445300000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Shields
Arg [1] : symbol_ (string): SHIELDS
Arg [2] : _emblemWeaver (address): 0x3E2063199F7b98b8188B7649d95bd0C82f4B0001
Arg [3] : makerBadgeRecipient (address): 0x42aaEEe1201EC5D1f3a3DCcc23AB8c01391d182d
Arg [4] : granteeBadgeRecipient (address): 0x5e14ed9dCeE22ba758E8de482301028b261c4a14

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000003e2063199f7b98b8188b7649d95bd0c82f4b0001
Arg [3] : 00000000000000000000000042aaeee1201ec5d1f3a3dccc23ab8c01391d182d
Arg [4] : 0000000000000000000000005e14ed9dcee22ba758e8de482301028b261c4a14
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [6] : 536869656c647300000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [8] : 534849454c445300000000000000000000000000000000000000000000000000


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.