ETH Price: $3,457.84 (+1.54%)
Gas: 8 Gwei

Token

Humans Of NFT (HUMAN)
 

Overview

Max Total Supply

0 HUMAN

Holders

649

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
mintbeats.eth
Balance
2 HUMAN
0x63f49a9f7d797134f32e16675a1c1e467f1adb9b
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Human

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : HumansERC721.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @author: HodlCaulfield
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol';
import '@openzeppelin/contracts/token/ERC1155/IERC1155.sol';
import './RandomlyAssigned.sol';

/*
  __    __   ____  ____  ___      ___       __      _____  ___    ________  
 /" |  | "\ ("  _||_ " ||"  \    /"  |     /""\    (\"   \|"  \  /"       ) 
(:  (__)  :)|   (  ) : | \   \  //   |    /    \   |.\\   \    |(:   \___/  
 \/      \/ (:  |  | . ) /\\  \/.    |   /' /\  \  |: \.   \\  | \___  \    
 //  __  \\  \\ \__/ // |: \.        |  //  __'  \ |.  \    \. |  __/  \\   
(:  (  )  :) /\\ __ //\ |.  \    /:  | /   /  \\  \|    \    \ | /" \   :)  
 \__|  |__/ (__________)|___|\__/|___|(___/    \___)\___|\____\)(_______/   
                                                                            
               ';;;;;'                                                              
            ~uPPK%ggg%qwz,                                                           
         '7WN%%%gg%%DDbqADX*'                               ,~LDQQQQXj>.             
       =6QQ8%%%%%%%%%%%%%DKKKy;                           rUBQ8%MW#NgDDKy~           
      |QQ#%%%%%%%%%%%g%%%%%DqWK`                         L#QgRNWR%%##%Rb%q!          
      MQQN%%%%%%ggggRDDDRg%%RqgD                         WQQBQ8bR8QQQB8&DQj          
      6QQQN%%%%ggDbKDDDRRDR%%D8D                      ,zQQ@QQQNQ@@QQ@@Q@D~``         
      `Q@QB%NQ8dqkmSmSSPRN%MNQR;                      %RDMQ@@@QWQQQQQQQ@z            
       ,gQQ@Q#BQRDRXgQd%g&@Q8|'                       LdkQ%gQ@QQQBQ@WDS;`            
         ;SQ@QWd6mwUkUUS6QQf~                          `jR8QQQQQQQ@%Xi'              
           ,;x%RUPm6%UmKb7'                              ,RQBdPm%%QDXI_              
              'PBK%QgUn_                                 u%dqQgK%K%DZaQ7             
           ^jXywUwwk6Sz~                                ?%dRP^XNPmSXRbQc             
          zDZPR5I5SSwz{Qx                               ;fKdm|UMXwfjQ#Q7 `````       
         ;DAKdvSPYSmsPdQt                                 ,\6KD8BKjyQgWi,,,:,,'`     
         =yodPrPqfPStNBQt                                    XQQQQu=;D}!L7c*==r!,    
           ,\Dg%DqSu7N%RP~                                  yP7\i*r^~dn^|Li||\7?'    
             .PQdqWq\nN&Qy`                                 qm>^^*|r~di`,;;;^^~.     
              wbZRKkPZQQXNy                                 qB%m;.'wdQi              
             =qdKBuzDwQn;;`                                 qQ@7   DQ@i              
             X%q8| ,q6Q7                                    qQ@7   DQ@o'             
             XWQJ   66#7                                 `''d@@7   `K@@I'`           
             XgQJ   ADNo,                              `adWQQQ@7    q@Q@Qmyi         
             k#QJ   ,UMQJ                              `BQQQBDQ7    q@QQQgQa         
          DQNDKQJ    XQDDQy                             mDKqKkd=    YDKKKUKc       

    ______    _______    				  _____  ___    _______  ___________               
   /    " \  /"     "|   				 (\"   \|"  \  /"     "|("     _   ")              
  // ____  \(: ______)   				 |.\\   \    |(: ______) )__/  \\__/               
 /  /    ) :)\/    |     				 |: \.   \\  | \/    |      \\_ /                  
(: (____/ // // ___)     				 |.  \    \. | // ___)      |.  |                  
 \        / (:  (       				  |    \    \ |(:  (         \:  |                  
  \"_____/   \__/        				  \___|\____\) \__/          \__| 
*/

contract Human is ERC721, ERC1155Holder, Ownable, RandomlyAssigned {
	using Strings for uint256;

	/*
	 * Private Variables
	 */
	uint256 private constant NUMBER_OF_GENESIS_HUMANS = 229; // there are 229 Humans in the Genesis Collection
	uint256 private constant NUMBER_OF_RESERVED_HUMANS = 35;
	uint256 private constant MAX_HUMANS_SUPPLY = 1500; // collection size (including genesis and honoraries)
	uint256 private constant MAX_TEAM_HUMANS = 69; // reserved for the team and marketing
	uint256 private constant MAX_MINTS_PER_ADDRESS = 4; // max total mints (incl. presale, excl. author and genesis claims)
	uint256 private constant MAX_PRESALE_MINTS_PER_ADDRESS = 2; // max mints during presale per address

	struct MintTypes {
		uint256 _numberOfAuthorMintsByAddress;
		uint256 _numberOfMintsByAddress;
	}

	struct Coupon {
		bytes32 r;
		bytes32 s;
		uint8 v;
	}

	enum CouponType {
		Genesis,
		Author,
		Presale
	}

	enum SalePhase {
		Locked,
		PreSale,
		PublicSale
	}

	address private immutable _teamAddress =
		0x5ad0A1eA6d7863c3930a0125bC22770A358Ebee9;

	address private immutable _adminSigner;
	address private immutable _openseaSharedContractAddress;

	string private _defaultUri;

	string private _tokenBaseURI;

	/*
	 * Public Variables
	 */

	bool public claimActive = false;
	bool public metadataIsFrozen = false;

	SalePhase public phase = SalePhase.Locked;

	uint256 public mintPrice = 0.025 ether;
	uint256 public teamTokensMinted;

	mapping(address => MintTypes) public addressToMints;

	/*
	 * Constructor
	 */
	constructor(
		string memory uri,
		address adminSigner,
		address openseaAddress
	)
		ERC721('Humans Of NFT', 'HUMAN')
		RandomlyAssigned(
			MAX_HUMANS_SUPPLY,
			NUMBER_OF_GENESIS_HUMANS + NUMBER_OF_RESERVED_HUMANS
		)
	{
		_defaultUri = uri;
		_adminSigner = adminSigner;
		_openseaSharedContractAddress = openseaAddress;
	}

	// ======================================================== Owner Functions

	/// Set the base URI for the metadata
	/// @dev modifies the state of the `_tokenBaseURI` variable
	/// @param URI the URI to set as the base token URI
	function setBaseURI(string memory URI) external onlyOwner {
		require(!metadataIsFrozen, 'Metadata is permanently frozen');
		_tokenBaseURI = URI;
	}

	/// Freezes the metadata
	/// @dev sets the state of `metadataIsFrozen` to true
	/// @notice permamently freezes the metadata so that no more changes are possible
	function freezeMetadata() external onlyOwner {
		require(!metadataIsFrozen, 'Metadata is already frozen');
		metadataIsFrozen = true;
	}

	/// Adjust the mint price
	/// @dev modifies the state of the `mintPrice` variable
	/// @notice sets the price for minting a token
	/// @param newPrice_ The new price for minting
	function adjustMintPrice(uint256 newPrice_) external onlyOwner {
		mintPrice = newPrice_;
	}

	/// Advance Phase
	/// @dev Advance the sale phase state
	/// @notice Advances sale phase state incrementally
	function enterPhase(SalePhase phase_) external onlyOwner {
		require(uint8(phase_) > uint8(phase), 'can only advance phases');
		phase = phase_;
	}

	/// Activate claiming
	/// @dev set the state of `claimActive` variable to true
	/// @notice Activate the claiming event
	function activateClaiming() external onlyOwner {
		claimActive = true;
	}

	/// Reserve tokens for the team + marketing
	/// @dev Mints the number of tokens passed in as count to the _teamAddress
	/// @param count The number of tokens to mint
	function devReserveTokens(uint256 count)
		external
		onlyOwner
		ensureAvailabilityFor(count)
	{
		require(
			count + teamTokensMinted <= MAX_TEAM_HUMANS,
			'Exceeds the reserved supply of team tokens'
		);
		for (uint256 i = 0; i < count; i++) {
			_mintRandomId(_teamAddress);
		}
		teamTokensMinted += count;
	}

	/// Disburse payments
	/// @dev transfers amounts that correspond to addresses passeed in as args
	/// @param payees_ recipient addresses
	/// @param amounts_ amount to payout to address with corresponding index in the `payees_` array
	function disbursePayments(
		address[] memory payees_,
		uint256[] memory amounts_
	) external onlyOwner {
		require(
			payees_.length == amounts_.length,
			'Payees and amounts length mismatch'
		);
		for (uint256 i; i < payees_.length; i++) {
			makePaymentTo(payees_[i], amounts_[i]);
		}
	}

	/// Make a payment
	/// @dev internal fn called by `disbursePayments` to send Ether to an address
	function makePaymentTo(address address_, uint256 amt_) private {
		(bool success, ) = address_.call{value: amt_}('');
		require(success, 'Transfer failed.');
	}

	// ======================================================== External Functions

	/// Claim Genesis Tokens
	/// @dev mints genesis token IDs using verified coupons signed by an admin address
	/// @notice uses the the coupon supplied to confirm that only the owner of the original ID can claim
	/// @param idxsToClaim the indexes for the IDs array of the tokens claimed in this TX
	/// @param idsOfOwner IDs of genesis tokens belonging to the caller used to verify the coupon
	/// @param coupon coupon for verifying the signer
	function claimReservedTokensByIds(
		address owner_,
		uint256[] calldata idxsToClaim,
		uint256[] calldata idsOfOwner,
		Coupon memory coupon
	) external {
		require(claimActive, 'Claim event is not active');
		bytes32 digest = keccak256(
			abi.encode(CouponType.Genesis, idsOfOwner, owner_)
		);
		require(_isVerifiedCoupon(digest, coupon), 'Invalid coupon');

		for (uint256 i; i < idxsToClaim.length; i++) {
			uint256 tokenId = idsOfOwner[idxsToClaim[i]];
			_claimReservedToken(owner_, tokenId);
		}
	}

	/// Claim Author Tokens
	/// @dev mints the qty of tokens verified using coupons signed by an admin signer
	/// @notice claims free tokens earned by Authors
	/// @param count number of tokens to claim in transaction
	/// @param allotted total number of tokens author is allowed to claim
	/// @param coupon coupon for verifying the signer
	function claimAuthorTokens(
		uint256 count,
		uint256 allotted,
		Coupon memory coupon
	) public ensureAvailabilityFor(count) {
		require(claimActive, 'Claim event is not active');
		bytes32 digest = keccak256(
			abi.encode(CouponType.Author, allotted, msg.sender)
		);
		require(_isVerifiedCoupon(digest, coupon), 'Invalid coupon');
		require(
			count + addressToMints[msg.sender]._numberOfAuthorMintsByAddress <=
				allotted,
			'Exceeds number of earned Tokens'
		);
		addressToMints[msg.sender]._numberOfAuthorMintsByAddress += count;
		for (uint256 i; i < count; i++) {
			_mintRandomId(msg.sender);
		}
	}

	/// Mint during presale
	/// @dev mints by addresses validated using verified coupons signed by an admin signer
	/// @notice mints tokens with randomized token IDs to addresses eligible for presale
	/// @param count number of tokens to mint in transaction
	/// @param coupon coupon signed by an admin coupon
	function mintPresale(uint256 count, Coupon memory coupon)
		external
		payable
		ensureAvailabilityFor(count)
		validateEthPayment(count)
	{
		require(phase == SalePhase.PreSale, 'Presale event is not active');
		require(
			count + addressToMints[msg.sender]._numberOfMintsByAddress <=
				MAX_PRESALE_MINTS_PER_ADDRESS,
			'Exceeds number of presale mints allowed'
		);
		bytes32 digest = keccak256(abi.encode(CouponType.Presale, msg.sender));
		require(_isVerifiedCoupon(digest, coupon), 'Invalid coupon');

		addressToMints[msg.sender]._numberOfMintsByAddress += count;

		for (uint256 i; i < count; i++) {
			_mintRandomId(msg.sender);
		}
	}

	/// Public minting open to all
	/// @dev mints tokens during public sale, limited by `MAX_MINTS_PER_ADDRESS`
	/// @notice mints tokens with randomized IDs to the sender's address
	/// @param count number of tokens to mint in transaction
	function mint(uint256 count)
		external
		payable
		validateEthPayment(count)
		ensureAvailabilityFor(count)
	{
		require(phase == SalePhase.PublicSale, 'Public sale is not active');
		require(
			count + addressToMints[msg.sender]._numberOfMintsByAddress <=
				MAX_MINTS_PER_ADDRESS,
			'Exceeds maximum allowable mints'
		);
		addressToMints[msg.sender]._numberOfMintsByAddress += count;
		for (uint256 i; i < count; i++) {
			_mintRandomId(msg.sender);
		}
	}

	/// override ERC1155Received to mint replacement tokens
	/// @dev receive a verified token and mint its replacement
	/// @param from the account who initiated the transfer and will claim the mint
	/// @param id the opensea token ID
	/// @param data encoded genesis ID and coupon
	function onERC1155Received(
		address,
		address from,
		uint256 id,
		uint256,
		bytes memory data
	) public virtual override returns (bytes4) {
		require(
			msg.sender == _openseaSharedContractAddress,
			'Sender not approved'
		);
		(uint256 genesisId, Coupon memory coupon) = abi.decode(
			data,
			(uint256, Coupon)
		);

		bytes32 digest = keccak256(
			abi.encode(CouponType.Genesis, genesisId, id)
		);
		require(_isVerifiedCoupon(digest, coupon), 'Invalid coupon');
		_claimReservedToken(from, genesisId);
		return this.onERC1155Received.selector;
	}

	/// Override the batch receive
	/// @dev revert as nobody should ever call this and we don't want the contract to receive any other tokens
	function onERC1155BatchReceived(
		address,
		address,
		uint256[] memory,
		uint256[] memory,
		bytes memory
	) public override returns (bytes4) {
		revert('Batch Receiving not allowed.');
	}

	// ======================================================== Overrides

	/// Return the tokenURI for a given ID
	/// @dev overrides ERC721's `tokenURI` function and returns either the `_tokenBaseURI` or a custom URI
	/// @notice reutrns the tokenURI using the `_tokenBase` URI if the token ID hasn't been suppleid with a unique custom URI
	function tokenURI(uint256 tokenId)
		public
		view
		override(ERC721)
		returns (string memory)
	{
		require(_exists(tokenId), 'Cannot query non-existent token');

		return
			bytes(_tokenBaseURI).length > 0
				? string(
					abi.encodePacked(_tokenBaseURI, '/', tokenId.toString())
				)
				: _defaultUri;
	}

	/// override supportsInterface because two base classes define it
	/// @dev See {IERC165-supportsInterface}.
	function supportsInterface(bytes4 interfaceId)
		public
		view
		virtual
		override(ERC721, ERC1155Receiver)
		returns (bool)
	{
		return
			ERC721.supportsInterface(interfaceId) ||
			ERC1155Receiver.supportsInterface(interfaceId);
	}

	// ======================================================== Internal Functions

	/// @dev check that the coupon sent was signed by the admin signer
	function _isVerifiedCoupon(bytes32 digest, Coupon memory coupon)
		internal
		view
		returns (bool)
	{
		// address signer = digest.recover(signature);
		address signer = ecrecover(digest, coupon.v, coupon.r, coupon.s);
		require(signer != address(0), 'ECDSA: invalid signature'); // Added check for zero address
		return signer == _adminSigner;
	}

	/// @dev internal check to ensure a genesis token ID, or ID outside of the collection, doesn't get minted
	function _mintRandomId(address to) private {
		uint256 id = nextToken();
		assert(
			id > NUMBER_OF_GENESIS_HUMANS + NUMBER_OF_RESERVED_HUMANS &&
				id <= MAX_HUMANS_SUPPLY
		);
		_safeMint(to, id);
	}

	/// @dev mints a token with a known ID, must fall within desired range
	function _claimReservedToken(address to, uint256 id) internal {
		assert(id != 0);
		assert(id <= NUMBER_OF_GENESIS_HUMANS + NUMBER_OF_RESERVED_HUMANS);
		if (!_exists(id)) {
			_safeMint(to, id);
		}
	}

	// ======================================================== Modifiers

	/// Modifier to validate Eth payments on payable functions
	/// @dev compares the product of the state variable `_mintPrice` and supplied `count` to msg.value
	/// @param count factor to multiply by
	modifier validateEthPayment(uint256 count) {
		require(
			mintPrice * count <= msg.value,
			'Ether value sent is not correct'
		);
		_;
	}
} // End of Contract

File 2 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT

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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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 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 3 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 5 of 17 : ERC1155Holder.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC1155Receiver.sol";

/**
 * @dev _Available since v3.1._
 */
contract ERC1155Holder is ERC1155Receiver {
    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(
        address,
        address,
        uint256[] memory,
        uint256[] memory,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC1155BatchReceived.selector;
    }
}

File 6 of 17 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 7 of 17 : RandomlyAssigned.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import './WithLimitedSupply.sol';

/// @author Modified version of original code by 1001.digital
/// @title Randomly assign tokenIDs from a given set of tokens.
abstract contract RandomlyAssigned is WithLimitedSupply {
	// Used for random index assignment
	mapping(uint256 => uint256) private tokenMatrix;

	// The initial token ID
	uint256 private immutable startFrom;

	/// Instanciate the contract
	/// @param maxSupply_ how many tokens this collection should hold
	/// @param numReserved_ the number of tokens reserved whose IDs dont come from the randomizer
	constructor(uint256 maxSupply_, uint256 numReserved_)
		WithLimitedSupply(maxSupply_, numReserved_)
	{
		startFrom = numReserved_ + 1;
	}

	/// Get the next token ID
	/// @dev Randomly gets a new token ID and keeps track of the ones that are still available.
	/// @return the next token ID
	function nextToken() internal override returns (uint256) {
		uint256 maxIndex = maxAvailableSupply() - tokenCount();
		uint256 random = uint256(
			keccak256(
				abi.encodePacked(
					msg.sender,
					block.coinbase,
					block.difficulty,
					block.gaslimit,
					block.timestamp
				)
			)
		) % maxIndex;

		uint256 value = 0;
		if (tokenMatrix[random] == 0) {
			// If this matrix position is empty, set the value to the generated random number.
			value = random;
		} else {
			// Otherwise, use the previously stored number from the matrix.
			value = tokenMatrix[random];
		}

		// If the last available tokenID is still unused...
		if (tokenMatrix[maxIndex - 1] == 0) {
			// ...store that ID in the current matrix position.
			tokenMatrix[random] = maxIndex - 1;
		} else {
			// ...otherwise copy over the stored number to the current matrix position.
			tokenMatrix[random] = tokenMatrix[maxIndex - 1];
		}

		// Increment counts (ie. qty minted)
		super.nextToken();

		return value + startFrom;
	}
}

File 8 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT

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 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

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 10 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 11 of 17 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        uint256 size;
        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 12 of 17 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 13 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 14 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 15 of 17 : ERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155Receiver.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev _Available since v3.1._
 */
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);
    }
}

File 16 of 17 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

File 17 of 17 : WithLimitedSupply.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @author Modified version of original code by 1001.digital
/// @title A token tracker that limits the token supply and increments token IDs on each new mint.
abstract contract WithLimitedSupply {
	// Keeps track of how many we have minted
	uint256 private _tokenCount;

	/// @dev The maximum count of tokens this token tracker will issue.
	uint256 private immutable _maxAvailableSupply;

	/// Instanciate the contract
	/// @param maxSupply_ how many tokens this collection should hold
	constructor(uint256 maxSupply_, uint256 reserved_) {
		_maxAvailableSupply = maxSupply_ - reserved_;
	}

	function maxAvailableSupply() public view returns (uint256) {
		return _maxAvailableSupply;
	}

	/// @dev Get the current token count
	/// @return the created token count
	/// TODO: if this is not required externally, does making it `public view` use unneccary gas?
	function tokenCount() public view returns (uint256) {
		return _tokenCount;
	}

	/// @dev Check whether tokens are still available
	/// @return the available token count
	function availableTokenCount() public view returns (uint256) {
		return maxAvailableSupply() - tokenCount();
	}

	/// @dev Increment the token count and fetch the latest count
	/// @return the next token id
	function nextToken() internal virtual ensureAvailability returns (uint256) {
		return _tokenCount++;
	}

	/// @dev Check whether another token is still available
	modifier ensureAvailability() {
		require(availableTokenCount() > 0, 'No more tokens available');
		_;
	}

	/// @param amount Check whether number of tokens are still available
	/// @dev Check whether tokens are still available
	modifier ensureAvailabilityFor(uint256 amount) {
		require(
			availableTokenCount() >= amount,
			'Requested number of tokens not available'
		);
		_;
	}
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"uri","type":"string"},{"internalType":"address","name":"adminSigner","type":"address"},{"internalType":"address","name":"openseaAddress","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":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":[],"name":"activateClaiming","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToMints","outputs":[{"internalType":"uint256","name":"_numberOfAuthorMintsByAddress","type":"uint256"},{"internalType":"uint256","name":"_numberOfMintsByAddress","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice_","type":"uint256"}],"name":"adjustMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"availableTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256","name":"allotted","type":"uint256"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct Human.Coupon","name":"coupon","type":"tuple"}],"name":"claimAuthorTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint256[]","name":"idxsToClaim","type":"uint256[]"},{"internalType":"uint256[]","name":"idsOfOwner","type":"uint256[]"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct Human.Coupon","name":"coupon","type":"tuple"}],"name":"claimReservedTokensByIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"devReserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"payees_","type":"address[]"},{"internalType":"uint256[]","name":"amounts_","type":"uint256[]"}],"name":"disbursePayments","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Human.SalePhase","name":"phase_","type":"uint8"}],"name":"enterPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","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":[],"name":"maxAvailableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataIsFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct Human.Coupon","name":"coupon","type":"tuple"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","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":"phase","outputs":[{"internalType":"enum Human.SalePhase","name":"","type":"uint8"}],"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":[{"internalType":"string","name":"URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamTokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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"}]

6101206040527f5ad0a1ea6d7863c3930a0125bc22770a358ebee900000000000000000000000060c052600b805462ffffff191690556658d15e17628000600c553480156200004d57600080fd5b506040516200381d3803806200381d83398101604081905262000070916200027e565b6105dc62000081602360e56200037b565b604080518082018252600d81526c121d5b585b9cc813d988139195609a1b602080830191825283518085019094526005845264242aa6a0a760d91b90840152815185938593929091620000d791600091620001bb565b508051620000ed906001906020840190620001bb565b5050506200010a620001046200016560201b60201c565b62000169565b62000116818362000396565b608052506200012990508160016200037b565b60a0525050825162000143906009906020860190620001bb565b506001600160601b0319606092831b811660e052911b16610100525062000419565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001c990620003b0565b90600052602060002090601f016020900481019282620001ed576000855562000238565b82601f106200020857805160ff191683800117855562000238565b8280016001018555821562000238579182015b82811115620002385782518255916020019190600101906200021b565b50620002469291506200024a565b5090565b5b808211156200024657600081556001016200024b565b80516001600160a01b03811681146200027957600080fd5b919050565b60008060006060848603121562000293578283fd5b83516001600160401b0380821115620002aa578485fd5b818601915086601f830112620002be578485fd5b815181811115620002d357620002d362000403565b604051601f8201601f19908116603f01168101908382118183101715620002fe57620002fe62000403565b816040528281526020935089848487010111156200031a578788fd5b8791505b828210156200033d57848201840151818301850152908301906200031e565b828211156200034e57878484830101525b96506200036091505086820162000261565b93505050620003726040850162000261565b90509250925092565b60008219821115620003915762000391620003ed565b500190565b600082821015620003ab57620003ab620003ed565b500390565b600181811c90821680620003c557607f821691505b60208210811415620003e757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60805160a05160c05160601c60e05160601c6101005160601c6133a862000475600039600061193701526000611b9601526000611430015260006123a001526000818161030901528181611901015261226301526133a86000f3fe6080604052600436106102245760003560e01c80638da5cb5b11610123578063bc197c81116100ab578063d4a6a2fd1161006f578063d4a6a2fd1461067e578063e14ca35314610698578063e985e9c5146106ad578063f23a6e61146106f6578063f2fde38b1461071657600080fd5b8063bc197c81146105de578063c87b56dd14610617578063cd923b8414610637578063cf880fea1461064a578063d111515d1461066957600080fd5b8063a0712d68116100f2578063a0712d681461053e578063a22cb46514610551578063a253b43f14610571578063b1c9fe6e14610591578063b88d4fde146105be57600080fd5b80638da5cb5b146104d657806391a62261146104f457806395d89b41146105145780639f181b5e1461052957600080fd5b80633123387b116101b157806363820f231161017557806363820f23146104225780636817c76c1461046b57806370a0823114610481578063715018a6146104a157806377fc393e146104b657600080fd5b80633123387b1461038257806342842e0e146103a2578063460b289c146103c257806355f804b3146103e25780636352211e1461040257600080fd5b8063095ea7b3116101f8578063095ea7b3146102da57806315f91c18146102fa57806322cb1ec81461033757806323b872dd1461034d5780632e7e87681461036d57600080fd5b806234d9fe1461022957806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a2575b600080fd5b34801561023557600080fd5b50610249610244366004612ae4565b610736565b005b34801561025757600080fd5b5061026b610266366004612c96565b610863565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b50610295610883565b604051610277919061301c565b3480156102ae57600080fd5b506102c26102bd366004612d33565b610915565b6040516001600160a01b039091168152602001610277565b3480156102e657600080fd5b506102496102f5366004612bac565b6109aa565b34801561030657600080fd5b507f00000000000000000000000000000000000000000000000000000000000000005b604051908152602001610277565b34801561034357600080fd5b50610329600d5481565b34801561035957600080fd5b506102496103683660046129e0565b610ac0565b34801561037957600080fd5b50610249610af1565b34801561038e57600080fd5b5061024961039d366004612cce565b610b2a565b3480156103ae57600080fd5b506102496103bd3660046129e0565b610c2b565b3480156103ce57600080fd5b506102496103dd366004612d33565b610c46565b3480156103ee57600080fd5b506102496103fd366004612ced565b610c75565b34801561040e57600080fd5b506102c261041d366004612d33565b610d0e565b34801561042e57600080fd5b5061045661043d3660046128ee565b600e602052600090815260409020805460019091015482565b60408051928352602083019190915201610277565b34801561047757600080fd5b50610329600c5481565b34801561048d57600080fd5b5061032961049c3660046128ee565b610d85565b3480156104ad57600080fd5b50610249610e0c565b3480156104c257600080fd5b506102496104d1366004612bd5565b610e42565b3480156104e257600080fd5b506006546001600160a01b03166102c2565b34801561050057600080fd5b5061024961050f366004612dce565b610f3e565b34801561052057600080fd5b506102956110c7565b34801561053557600080fd5b50600754610329565b61024961054c366004612d33565b6110d6565b34801561055d57600080fd5b5061024961056c366004612b72565b611298565b34801561057d57600080fd5b5061024961058c366004612d33565b61135d565b34801561059d57600080fd5b50600b546105b19062010000900460ff1681565b6040516102779190613009565b3480156105ca57600080fd5b506102496105d9366004612a1b565b611482565b3480156105ea57600080fd5b506105fe6105f936600461293a565b6114b4565b6040516001600160e01b03199091168152602001610277565b34801561062357600080fd5b50610295610632366004612d33565b6114ff565b610249610645366004612d4b565b61163d565b34801561065657600080fd5b50600b5461026b90610100900460ff1681565b34801561067557600080fd5b5061024961185d565b34801561068a57600080fd5b50600b5461026b9060ff1681565b3480156106a457600080fd5b506103296118f0565b3480156106b957600080fd5b5061026b6106c8366004612908565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561070257600080fd5b506105fe610711366004612a81565b61192a565b34801561072257600080fd5b506102496107313660046128ee565b611a29565b600b5460ff166107895760405162461bcd60e51b8152602060048201526019602482015278436c61696d206576656e74206973206e6f742061637469766560381b60448201526064015b60405180910390fd5b6000808484896040516020016107a29493929190612f63565b6040516020818303038152906040528051906020012090506107c48183611ac4565b6107e05760405162461bcd60e51b815260040161078090613081565b60005b85811015610859576000858589898581811061080f57634e487b7160e01b600052603260045260246000fd5b9050602002013581811061083357634e487b7160e01b600052603260045260246000fd5b9050602002013590506108468982611bd2565b5080610851816132be565b9150506107e3565b5050505050505050565b600061086e82611c3c565b8061087d575061087d82611c8c565b92915050565b60606000805461089290613283565b80601f01602080910402602001604051908101604052809291908181526020018280546108be90613283565b801561090b5780601f106108e05761010080835404028352916020019161090b565b820191906000526020600020905b8154815290600101906020018083116108ee57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661098e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610780565b506000908152600460205260409020546001600160a01b031690565b60006109b582610d0e565b9050806001600160a01b0316836001600160a01b03161415610a235760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610780565b336001600160a01b0382161480610a3f5750610a3f81336106c8565b610ab15760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610780565b610abb8383611cb1565b505050565b610aca3382611d1f565b610ae65760405162461bcd60e51b815260040161078090613126565b610abb838383611e16565b6006546001600160a01b03163314610b1b5760405162461bcd60e51b8152600401610780906130f1565b600b805460ff19166001179055565b6006546001600160a01b03163314610b545760405162461bcd60e51b8152600401610780906130f1565b600b5462010000900460ff166002811115610b7f57634e487b7160e01b600052602160045260246000fd5b60ff16816002811115610ba257634e487b7160e01b600052602160045260246000fd5b60ff1611610bf25760405162461bcd60e51b815260206004820152601760248201527f63616e206f6e6c7920616476616e6365207068617365730000000000000000006044820152606401610780565b600b805482919062ff0000191662010000836002811115610c2357634e487b7160e01b600052602160045260246000fd5b021790555050565b610abb83838360405180602001604052806000815250611482565b6006546001600160a01b03163314610c705760405162461bcd60e51b8152600401610780906130f1565b600c55565b6006546001600160a01b03163314610c9f5760405162461bcd60e51b8152600401610780906130f1565b600b54610100900460ff1615610cf75760405162461bcd60e51b815260206004820152601e60248201527f4d65746164617461206973207065726d616e656e746c792066726f7a656e00006044820152606401610780565b8051610d0a90600a9060208401906126c0565b5050565b6000818152600260205260408120546001600160a01b03168061087d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610780565b60006001600160a01b038216610df05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610780565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610e365760405162461bcd60e51b8152600401610780906130f1565b610e406000611fb6565b565b6006546001600160a01b03163314610e6c5760405162461bcd60e51b8152600401610780906130f1565b8051825114610ec85760405162461bcd60e51b815260206004820152602260248201527f50617965657320616e6420616d6f756e7473206c656e677468206d69736d61746044820152610c6d60f31b6064820152608401610780565b60005b8251811015610abb57610f2c838281518110610ef757634e487b7160e01b600052603260045260246000fd5b6020026020010151838381518110610f1f57634e487b7160e01b600052603260045260246000fd5b6020026020010151612008565b80610f36816132be565b915050610ecb565b8280610f486118f0565b1015610f665760405162461bcd60e51b8152600401610780906130a9565b600b5460ff16610fb45760405162461bcd60e51b8152602060048201526019602482015278436c61696d206576656e74206973206e6f742061637469766560381b6044820152606401610780565b600060018433604051602001610fcc93929190612fbe565b604051602081830303815290604052805190602001209050610fee8184611ac4565b61100a5760405162461bcd60e51b815260040161078090613081565b336000908152600e6020526040902054849061102690876131f5565b11156110745760405162461bcd60e51b815260206004820152601f60248201527f45786365656473206e756d626572206f66206561726e656420546f6b656e73006044820152606401610780565b336000908152600e6020526040812080548792906110939084906131f5565b90915550600090505b858110156110bf576110ad3361209e565b806110b7816132be565b91505061109c565b505050505050565b60606001805461089290613283565b803481600c546110e69190613221565b11156111345760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610780565b818061113e6118f0565b101561115c5760405162461bcd60e51b8152600401610780906130a9565b6002600b5462010000900460ff16600281111561118957634e487b7160e01b600052602160045260246000fd5b146111d65760405162461bcd60e51b815260206004820152601960248201527f5075626c69632073616c65206973206e6f7420616374697665000000000000006044820152606401610780565b336000908152600e60205260409020600101546004906111f690856131f5565b11156112445760405162461bcd60e51b815260206004820152601f60248201527f45786365656473206d6178696d756d20616c6c6f7761626c65206d696e7473006044820152606401610780565b336000908152600e6020526040812060010180548592906112669084906131f5565b90915550600090505b83811015611292576112803361209e565b8061128a816132be565b91505061126f565b50505050565b6001600160a01b0382163314156112f15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610780565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b031633146113875760405162461bcd60e51b8152600401610780906130f1565b80806113916118f0565b10156113af5760405162461bcd60e51b8152600401610780906130a9565b6045600d54836113bf91906131f5565b11156114205760405162461bcd60e51b815260206004820152602a60248201527f457863656564732074686520726573657276656420737570706c79206f66207460448201526965616d20746f6b656e7360b01b6064820152608401610780565b60005b82811015611466576114547f000000000000000000000000000000000000000000000000000000000000000061209e565b8061145e816132be565b915050611423565b5081600d600082825461147991906131f5565b90915550505050565b61148c3383611d1f565b6114a85760405162461bcd60e51b815260040161078090613126565b611292848484846120ea565b60405162461bcd60e51b815260206004820152601c60248201527f426174636820526563656976696e67206e6f7420616c6c6f7765642e000000006044820152600090606401610780565b6000818152600260205260409020546060906001600160a01b03166115665760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e006044820152606401610780565b6000600a805461157590613283565b90501161160c576009805461158990613283565b80601f01602080910402602001604051908101604052809291908181526020018280546115b590613283565b80156116025780601f106115d757610100808354040283529160200191611602565b820191906000526020600020905b8154815290600101906020018083116115e557829003601f168201915b505050505061087d565b600a6116178361211d565b604051602001611628929190612e4b565b60405160208183030381529060405292915050565b81806116476118f0565b10156116655760405162461bcd60e51b8152600401610780906130a9565b823481600c546116759190613221565b11156116c35760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610780565b6001600b5462010000900460ff1660028111156116f057634e487b7160e01b600052602160045260246000fd5b1461173d5760405162461bcd60e51b815260206004820152601b60248201527f50726573616c65206576656e74206973206e6f742061637469766500000000006044820152606401610780565b336000908152600e602052604090206001015460029061175d90866131f5565b11156117bb5760405162461bcd60e51b815260206004820152602760248201527f45786365656473206e756d626572206f662070726573616c65206d696e747320604482015266185b1b1bddd95960ca1b6064820152608401610780565b60006002336040516020016117d1929190612f3e565b6040516020818303038152906040528051906020012090506117f38185611ac4565b61180f5760405162461bcd60e51b815260040161078090613081565b336000908152600e6020526040812060010180548792906118319084906131f5565b90915550600090505b858110156110bf5761184b3361209e565b80611855816132be565b91505061183a565b6006546001600160a01b031633146118875760405162461bcd60e51b8152600401610780906130f1565b600b54610100900460ff16156118df5760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120697320616c72656164792066726f7a656e0000000000006044820152606401610780565b600b805461ff001916610100179055565b60006118fb60075490565b611925907f0000000000000000000000000000000000000000000000000000000000000000613240565b905090565b6000336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461199a5760405162461bcd60e51b815260206004820152601360248201527214d95b99195c881b9bdd08185c1c1c9bdd9959606a1b6044820152606401610780565b600080838060200190518101906119b19190612d6e565b9150915060008083886040516020016119cc93929190612fe8565b6040516020818303038152906040528051906020012090506119ee8183611ac4565b611a0a5760405162461bcd60e51b815260040161078090613081565b611a148884611bd2565b5063f23a6e6160e01b98975050505050505050565b6006546001600160a01b03163314611a535760405162461bcd60e51b8152600401610780906130f1565b6001600160a01b038116611ab85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610780565b611ac181611fb6565b50565b60008060018484604001518560000151866020015160405160008152602001604052604051611b0f949392919093845260ff9290921660208401526040830152606082015260800190565b6020604051602081039080840390855afa158015611b31573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611b945760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610780565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b03161491505092915050565b80611bed57634e487b7160e01b600052600160045260246000fd5b611bf9602360e56131f5565b811115611c1657634e487b7160e01b600052600160045260246000fd5b6000818152600260205260409020546001600160a01b0316610d0a57610d0a8282612237565b60006001600160e01b031982166380ac58cd60e01b1480611c6d57506001600160e01b03198216635b5e139f60e01b145b8061087d57506301ffc9a760e01b6001600160e01b031983161461087d565b60006001600160e01b03198216630271189760e51b148061087d575061087d82611c3c565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ce682610d0e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611d985760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610780565b6000611da383610d0e565b9050806001600160a01b0316846001600160a01b03161480611dde5750836001600160a01b0316611dd384610915565b6001600160a01b0316145b80611e0e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611e2982610d0e565b6001600160a01b031614611e915760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610780565b6001600160a01b038216611ef35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610780565b611efe600082611cb1565b6001600160a01b0383166000908152600360205260408120805460019290611f27908490613240565b90915550506001600160a01b0382166000908152600360205260408120805460019290611f559084906131f5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612055576040519150601f19603f3d011682016040523d82523d6000602084013e61205a565b606091505b5050905080610abb5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610780565b60006120a8612251565b90506120b6602360e56131f5565b811180156120c657506105dc8111155b6120e057634e487b7160e01b600052600160045260246000fd5b610d0a8282612237565b6120f5848484611e16565b612101848484846123cd565b6112925760405162461bcd60e51b81526004016107809061302f565b6060816121415750506040805180820190915260018152600360fc1b602082015290565b8160005b811561216b5780612155816132be565b91506121649050600a8361320d565b9150612145565b60008167ffffffffffffffff81111561219457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121be576020820181803683370190505b5090505b8415611e0e576121d3600183613240565b91506121e0600a866132d9565b6121eb9060306131f5565b60f81b81838151811061220e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612230600a8661320d565b94506121c2565b610d0a8282604051806020016040528060008152506124da565b60008061225d60075490565b612287907f0000000000000000000000000000000000000000000000000000000000000000613240565b6040516bffffffffffffffffffffffff1933606090811b8216602084015241901b166034820152446048820152456068820152426088820152909150600090829060a8016040516020818303038152906040528051906020012060001c6122ee91906132d9565b6000818152600860205260408120549192509061230c57508061231d565b506000818152600860205260409020545b6008600061232c600186613240565b815260200190815260200160002054600014156123625761234e600184613240565b600083815260086020526040902055612392565b60086000612371600186613240565b81526020808201929092526040908101600090812054858252600890935220555b61239a61250d565b506123c57f0000000000000000000000000000000000000000000000000000000000000000826131f5565b935050505090565b60006001600160a01b0384163b156124cf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612411903390899088908890600401612f01565b602060405180830381600087803b15801561242b57600080fd5b505af192505050801561245b575060408051601f3d908101601f1916820190925261245891810190612cb2565b60015b6124b5573d808015612489576040519150601f19603f3d011682016040523d82523d6000602084013e61248e565b606091505b5080516124ad5760405162461bcd60e51b81526004016107809061302f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e0e565b506001949350505050565b6124e4838361257e565b6124f160008484846123cd565b610abb5760405162461bcd60e51b81526004016107809061302f565b6000806125186118f0565b116125655760405162461bcd60e51b815260206004820152601860248201527f4e6f206d6f726520746f6b656e7320617661696c61626c6500000000000000006044820152606401610780565b60078054906000612575836132be565b91905055905090565b6001600160a01b0382166125d45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610780565b6000818152600260205260409020546001600160a01b0316156126395760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610780565b6001600160a01b03821660009081526003602052604081208054600192906126629084906131f5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546126cc90613283565b90600052602060002090601f0160209004810192826126ee5760008555612734565b82601f1061270757805160ff1916838001178555612734565b82800160010185558215612734579182015b82811115612734578251825591602001919060010190612719565b50612740929150612744565b5090565b5b808211156127405760008155600101612745565b600067ffffffffffffffff83111561277357612773613319565b612786601f8401601f19166020016131a0565b905082815283838301111561279a57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146127c857600080fd5b919050565b60008083601f8401126127de578182fd5b50813567ffffffffffffffff8111156127f5578182fd5b6020830191508360208260051b850101111561281057600080fd5b9250929050565b600082601f830112612827578081fd5b8135602061283c612837836131d1565b6131a0565b80838252828201915082860187848660051b890101111561285b578586fd5b855b858110156128795781358452928401929084019060010161285d565b5090979650505050505050565b600082601f830112612896578081fd5b6128a583833560208501612759565b9392505050565b6000606082840312156128bd578081fd5b6128c5613177565b9050813581526020820135602082015260408201356128e381613363565b604082015292915050565b6000602082840312156128ff578081fd5b6128a5826127b1565b6000806040838503121561291a578081fd5b612923836127b1565b9150612931602084016127b1565b90509250929050565b600080600080600060a08688031215612951578081fd5b61295a866127b1565b9450612968602087016127b1565b9350604086013567ffffffffffffffff80821115612984578283fd5b61299089838a01612817565b945060608801359150808211156129a5578283fd5b6129b189838a01612817565b935060808801359150808211156129c6578283fd5b506129d388828901612886565b9150509295509295909350565b6000806000606084860312156129f4578081fd5b6129fd846127b1565b9250612a0b602085016127b1565b9150604084013590509250925092565b60008060008060808587031215612a30578182fd5b612a39856127b1565b9350612a47602086016127b1565b925060408501359150606085013567ffffffffffffffff811115612a69578182fd5b612a7587828801612886565b91505092959194509250565b600080600080600060a08688031215612a98578283fd5b612aa1866127b1565b9450612aaf602087016127b1565b93506040860135925060608601359150608086013567ffffffffffffffff811115612ad8578182fd5b6129d388828901612886565b60008060008060008060c08789031215612afc578384fd5b612b05876127b1565b9550602087013567ffffffffffffffff80821115612b21578586fd5b612b2d8a838b016127cd565b90975095506040890135915080821115612b45578283fd5b50612b5289828a016127cd565b9094509250612b66905088606089016128ac565b90509295509295509295565b60008060408385031215612b84578182fd5b612b8d836127b1565b915060208301358015158114612ba1578182fd5b809150509250929050565b60008060408385031215612bbe578182fd5b612bc7836127b1565b946020939093013593505050565b60008060408385031215612be7578182fd5b823567ffffffffffffffff80821115612bfe578384fd5b818501915085601f830112612c11578384fd5b81356020612c21612837836131d1565b8083825282820191508286018a848660051b8901011115612c40578889fd5b8896505b84871015612c6957612c55816127b1565b835260019690960195918301918301612c44565b5096505086013592505080821115612c7f578283fd5b50612c8c85828601612817565b9150509250929050565b600060208284031215612ca7578081fd5b81356128a58161334d565b600060208284031215612cc3578081fd5b81516128a58161334d565b600060208284031215612cdf578081fd5b8135600381106128a5578182fd5b600060208284031215612cfe578081fd5b813567ffffffffffffffff811115612d14578182fd5b8201601f81018413612d24578182fd5b611e0e84823560208401612759565b600060208284031215612d44578081fd5b5035919050565b60008060808385031215612d5d578182fd5b8235915061293184602085016128ac565b6000808284036080811215612d81578283fd5b835192506060601f1982011215612d96578182fd5b50612d9f613177565b60208401518152604084015160208201526060840151612dbe81613363565b6040820152919491935090915050565b600080600060a08486031215612de2578081fd5b8335925060208401359150612dfa85604086016128ac565b90509250925092565b60008151808452612e1b816020860160208601613257565b601f01601f19169290920160200192915050565b60008151612e41818560208601613257565b9290920192915050565b600080845482600182811c915080831680612e6757607f831692505b6020808410821415612e8757634e487b7160e01b87526022600452602487fd5b818015612e9b5760018114612eac57612ed8565b60ff19861689528489019650612ed8565b60008b815260209020885b86811015612ed05781548b820152908501908301612eb7565b505084890196505b505050505050612ef8612ef282602f60f81b815260010190565b85612e2f565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612f3490830184612e03565b9695505050505050565b60408101612f4b8461332f565b9281526001600160a01b039190911660209091015290565b612f6c8561332f565b848152606060208201819052810183905260006001600160fb1b03841115612f92578081fd5b8360051b8086608085013782016080019081526001600160a01b03929092166040909101529392505050565b60608101612fcb8561332f565b93815260208101929092526001600160a01b031660409091015290565b60608101612ff58561332f565b938152602081019290925260409091015290565b602081016130168361332f565b91905290565b6020815260006128a56020830184612e03565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600e908201526d24b73b30b634b21031b7bab837b760911b604082015260600190565b60208082526028908201527f526571756573746564206e756d626572206f6620746f6b656e73206e6f7420616040820152677661696c61626c6560c01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6040516060810167ffffffffffffffff8111828210171561319a5761319a613319565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156131c9576131c9613319565b604052919050565b600067ffffffffffffffff8211156131eb576131eb613319565b5060051b60200190565b60008219821115613208576132086132ed565b500190565b60008261321c5761321c613303565b500490565b600081600019048311821515161561323b5761323b6132ed565b500290565b600082821015613252576132526132ed565b500390565b60005b8381101561327257818101518382015260200161325a565b838111156112925750506000910152565b600181811c9082168061329757607f821691505b602082108114156132b857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156132d2576132d26132ed565b5060010190565b6000826132e8576132e8613303565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60038110611ac157634e487b7160e01b600052602160045260246000fd5b6001600160e01b031981168114611ac157600080fd5b60ff81168114611ac157600080fdfea2646970667358221220649a0afe1144d90ae496634f1c339e2248b903bba1e0c5baa2c7ad9eabba659c64736f6c634300080400330000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c7eb865d2d4f6033cae0e81248173209a2e6843d000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e000000000000000000000000000000000000000000000000000000000000005668747470733a2f2f68756d616e736f666e66742e6d7970696e6174612e636c6f75642f697066732f516d59646b43714e314b666234695575425631734d506641644279483268486d684e66576a67784447474c5a397300000000000000000000

Deployed Bytecode

0x6080604052600436106102245760003560e01c80638da5cb5b11610123578063bc197c81116100ab578063d4a6a2fd1161006f578063d4a6a2fd1461067e578063e14ca35314610698578063e985e9c5146106ad578063f23a6e61146106f6578063f2fde38b1461071657600080fd5b8063bc197c81146105de578063c87b56dd14610617578063cd923b8414610637578063cf880fea1461064a578063d111515d1461066957600080fd5b8063a0712d68116100f2578063a0712d681461053e578063a22cb46514610551578063a253b43f14610571578063b1c9fe6e14610591578063b88d4fde146105be57600080fd5b80638da5cb5b146104d657806391a62261146104f457806395d89b41146105145780639f181b5e1461052957600080fd5b80633123387b116101b157806363820f231161017557806363820f23146104225780636817c76c1461046b57806370a0823114610481578063715018a6146104a157806377fc393e146104b657600080fd5b80633123387b1461038257806342842e0e146103a2578063460b289c146103c257806355f804b3146103e25780636352211e1461040257600080fd5b8063095ea7b3116101f8578063095ea7b3146102da57806315f91c18146102fa57806322cb1ec81461033757806323b872dd1461034d5780632e7e87681461036d57600080fd5b806234d9fe1461022957806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a2575b600080fd5b34801561023557600080fd5b50610249610244366004612ae4565b610736565b005b34801561025757600080fd5b5061026b610266366004612c96565b610863565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b50610295610883565b604051610277919061301c565b3480156102ae57600080fd5b506102c26102bd366004612d33565b610915565b6040516001600160a01b039091168152602001610277565b3480156102e657600080fd5b506102496102f5366004612bac565b6109aa565b34801561030657600080fd5b507f00000000000000000000000000000000000000000000000000000000000004d45b604051908152602001610277565b34801561034357600080fd5b50610329600d5481565b34801561035957600080fd5b506102496103683660046129e0565b610ac0565b34801561037957600080fd5b50610249610af1565b34801561038e57600080fd5b5061024961039d366004612cce565b610b2a565b3480156103ae57600080fd5b506102496103bd3660046129e0565b610c2b565b3480156103ce57600080fd5b506102496103dd366004612d33565b610c46565b3480156103ee57600080fd5b506102496103fd366004612ced565b610c75565b34801561040e57600080fd5b506102c261041d366004612d33565b610d0e565b34801561042e57600080fd5b5061045661043d3660046128ee565b600e602052600090815260409020805460019091015482565b60408051928352602083019190915201610277565b34801561047757600080fd5b50610329600c5481565b34801561048d57600080fd5b5061032961049c3660046128ee565b610d85565b3480156104ad57600080fd5b50610249610e0c565b3480156104c257600080fd5b506102496104d1366004612bd5565b610e42565b3480156104e257600080fd5b506006546001600160a01b03166102c2565b34801561050057600080fd5b5061024961050f366004612dce565b610f3e565b34801561052057600080fd5b506102956110c7565b34801561053557600080fd5b50600754610329565b61024961054c366004612d33565b6110d6565b34801561055d57600080fd5b5061024961056c366004612b72565b611298565b34801561057d57600080fd5b5061024961058c366004612d33565b61135d565b34801561059d57600080fd5b50600b546105b19062010000900460ff1681565b6040516102779190613009565b3480156105ca57600080fd5b506102496105d9366004612a1b565b611482565b3480156105ea57600080fd5b506105fe6105f936600461293a565b6114b4565b6040516001600160e01b03199091168152602001610277565b34801561062357600080fd5b50610295610632366004612d33565b6114ff565b610249610645366004612d4b565b61163d565b34801561065657600080fd5b50600b5461026b90610100900460ff1681565b34801561067557600080fd5b5061024961185d565b34801561068a57600080fd5b50600b5461026b9060ff1681565b3480156106a457600080fd5b506103296118f0565b3480156106b957600080fd5b5061026b6106c8366004612908565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561070257600080fd5b506105fe610711366004612a81565b61192a565b34801561072257600080fd5b506102496107313660046128ee565b611a29565b600b5460ff166107895760405162461bcd60e51b8152602060048201526019602482015278436c61696d206576656e74206973206e6f742061637469766560381b60448201526064015b60405180910390fd5b6000808484896040516020016107a29493929190612f63565b6040516020818303038152906040528051906020012090506107c48183611ac4565b6107e05760405162461bcd60e51b815260040161078090613081565b60005b85811015610859576000858589898581811061080f57634e487b7160e01b600052603260045260246000fd5b9050602002013581811061083357634e487b7160e01b600052603260045260246000fd5b9050602002013590506108468982611bd2565b5080610851816132be565b9150506107e3565b5050505050505050565b600061086e82611c3c565b8061087d575061087d82611c8c565b92915050565b60606000805461089290613283565b80601f01602080910402602001604051908101604052809291908181526020018280546108be90613283565b801561090b5780601f106108e05761010080835404028352916020019161090b565b820191906000526020600020905b8154815290600101906020018083116108ee57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661098e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610780565b506000908152600460205260409020546001600160a01b031690565b60006109b582610d0e565b9050806001600160a01b0316836001600160a01b03161415610a235760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610780565b336001600160a01b0382161480610a3f5750610a3f81336106c8565b610ab15760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610780565b610abb8383611cb1565b505050565b610aca3382611d1f565b610ae65760405162461bcd60e51b815260040161078090613126565b610abb838383611e16565b6006546001600160a01b03163314610b1b5760405162461bcd60e51b8152600401610780906130f1565b600b805460ff19166001179055565b6006546001600160a01b03163314610b545760405162461bcd60e51b8152600401610780906130f1565b600b5462010000900460ff166002811115610b7f57634e487b7160e01b600052602160045260246000fd5b60ff16816002811115610ba257634e487b7160e01b600052602160045260246000fd5b60ff1611610bf25760405162461bcd60e51b815260206004820152601760248201527f63616e206f6e6c7920616476616e6365207068617365730000000000000000006044820152606401610780565b600b805482919062ff0000191662010000836002811115610c2357634e487b7160e01b600052602160045260246000fd5b021790555050565b610abb83838360405180602001604052806000815250611482565b6006546001600160a01b03163314610c705760405162461bcd60e51b8152600401610780906130f1565b600c55565b6006546001600160a01b03163314610c9f5760405162461bcd60e51b8152600401610780906130f1565b600b54610100900460ff1615610cf75760405162461bcd60e51b815260206004820152601e60248201527f4d65746164617461206973207065726d616e656e746c792066726f7a656e00006044820152606401610780565b8051610d0a90600a9060208401906126c0565b5050565b6000818152600260205260408120546001600160a01b03168061087d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610780565b60006001600160a01b038216610df05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610780565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610e365760405162461bcd60e51b8152600401610780906130f1565b610e406000611fb6565b565b6006546001600160a01b03163314610e6c5760405162461bcd60e51b8152600401610780906130f1565b8051825114610ec85760405162461bcd60e51b815260206004820152602260248201527f50617965657320616e6420616d6f756e7473206c656e677468206d69736d61746044820152610c6d60f31b6064820152608401610780565b60005b8251811015610abb57610f2c838281518110610ef757634e487b7160e01b600052603260045260246000fd5b6020026020010151838381518110610f1f57634e487b7160e01b600052603260045260246000fd5b6020026020010151612008565b80610f36816132be565b915050610ecb565b8280610f486118f0565b1015610f665760405162461bcd60e51b8152600401610780906130a9565b600b5460ff16610fb45760405162461bcd60e51b8152602060048201526019602482015278436c61696d206576656e74206973206e6f742061637469766560381b6044820152606401610780565b600060018433604051602001610fcc93929190612fbe565b604051602081830303815290604052805190602001209050610fee8184611ac4565b61100a5760405162461bcd60e51b815260040161078090613081565b336000908152600e6020526040902054849061102690876131f5565b11156110745760405162461bcd60e51b815260206004820152601f60248201527f45786365656473206e756d626572206f66206561726e656420546f6b656e73006044820152606401610780565b336000908152600e6020526040812080548792906110939084906131f5565b90915550600090505b858110156110bf576110ad3361209e565b806110b7816132be565b91505061109c565b505050505050565b60606001805461089290613283565b803481600c546110e69190613221565b11156111345760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610780565b818061113e6118f0565b101561115c5760405162461bcd60e51b8152600401610780906130a9565b6002600b5462010000900460ff16600281111561118957634e487b7160e01b600052602160045260246000fd5b146111d65760405162461bcd60e51b815260206004820152601960248201527f5075626c69632073616c65206973206e6f7420616374697665000000000000006044820152606401610780565b336000908152600e60205260409020600101546004906111f690856131f5565b11156112445760405162461bcd60e51b815260206004820152601f60248201527f45786365656473206d6178696d756d20616c6c6f7761626c65206d696e7473006044820152606401610780565b336000908152600e6020526040812060010180548592906112669084906131f5565b90915550600090505b83811015611292576112803361209e565b8061128a816132be565b91505061126f565b50505050565b6001600160a01b0382163314156112f15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610780565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b031633146113875760405162461bcd60e51b8152600401610780906130f1565b80806113916118f0565b10156113af5760405162461bcd60e51b8152600401610780906130a9565b6045600d54836113bf91906131f5565b11156114205760405162461bcd60e51b815260206004820152602a60248201527f457863656564732074686520726573657276656420737570706c79206f66207460448201526965616d20746f6b656e7360b01b6064820152608401610780565b60005b82811015611466576114547f0000000000000000000000005ad0a1ea6d7863c3930a0125bc22770a358ebee961209e565b8061145e816132be565b915050611423565b5081600d600082825461147991906131f5565b90915550505050565b61148c3383611d1f565b6114a85760405162461bcd60e51b815260040161078090613126565b611292848484846120ea565b60405162461bcd60e51b815260206004820152601c60248201527f426174636820526563656976696e67206e6f7420616c6c6f7765642e000000006044820152600090606401610780565b6000818152600260205260409020546060906001600160a01b03166115665760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e006044820152606401610780565b6000600a805461157590613283565b90501161160c576009805461158990613283565b80601f01602080910402602001604051908101604052809291908181526020018280546115b590613283565b80156116025780601f106115d757610100808354040283529160200191611602565b820191906000526020600020905b8154815290600101906020018083116115e557829003601f168201915b505050505061087d565b600a6116178361211d565b604051602001611628929190612e4b565b60405160208183030381529060405292915050565b81806116476118f0565b10156116655760405162461bcd60e51b8152600401610780906130a9565b823481600c546116759190613221565b11156116c35760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610780565b6001600b5462010000900460ff1660028111156116f057634e487b7160e01b600052602160045260246000fd5b1461173d5760405162461bcd60e51b815260206004820152601b60248201527f50726573616c65206576656e74206973206e6f742061637469766500000000006044820152606401610780565b336000908152600e602052604090206001015460029061175d90866131f5565b11156117bb5760405162461bcd60e51b815260206004820152602760248201527f45786365656473206e756d626572206f662070726573616c65206d696e747320604482015266185b1b1bddd95960ca1b6064820152608401610780565b60006002336040516020016117d1929190612f3e565b6040516020818303038152906040528051906020012090506117f38185611ac4565b61180f5760405162461bcd60e51b815260040161078090613081565b336000908152600e6020526040812060010180548792906118319084906131f5565b90915550600090505b858110156110bf5761184b3361209e565b80611855816132be565b91505061183a565b6006546001600160a01b031633146118875760405162461bcd60e51b8152600401610780906130f1565b600b54610100900460ff16156118df5760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120697320616c72656164792066726f7a656e0000000000006044820152606401610780565b600b805461ff001916610100179055565b60006118fb60075490565b611925907f00000000000000000000000000000000000000000000000000000000000004d4613240565b905090565b6000336001600160a01b037f000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e161461199a5760405162461bcd60e51b815260206004820152601360248201527214d95b99195c881b9bdd08185c1c1c9bdd9959606a1b6044820152606401610780565b600080838060200190518101906119b19190612d6e565b9150915060008083886040516020016119cc93929190612fe8565b6040516020818303038152906040528051906020012090506119ee8183611ac4565b611a0a5760405162461bcd60e51b815260040161078090613081565b611a148884611bd2565b5063f23a6e6160e01b98975050505050505050565b6006546001600160a01b03163314611a535760405162461bcd60e51b8152600401610780906130f1565b6001600160a01b038116611ab85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610780565b611ac181611fb6565b50565b60008060018484604001518560000151866020015160405160008152602001604052604051611b0f949392919093845260ff9290921660208401526040830152606082015260800190565b6020604051602081039080840390855afa158015611b31573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611b945760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610780565b7f000000000000000000000000c7eb865d2d4f6033cae0e81248173209a2e6843d6001600160a01b0316816001600160a01b03161491505092915050565b80611bed57634e487b7160e01b600052600160045260246000fd5b611bf9602360e56131f5565b811115611c1657634e487b7160e01b600052600160045260246000fd5b6000818152600260205260409020546001600160a01b0316610d0a57610d0a8282612237565b60006001600160e01b031982166380ac58cd60e01b1480611c6d57506001600160e01b03198216635b5e139f60e01b145b8061087d57506301ffc9a760e01b6001600160e01b031983161461087d565b60006001600160e01b03198216630271189760e51b148061087d575061087d82611c3c565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ce682610d0e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611d985760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610780565b6000611da383610d0e565b9050806001600160a01b0316846001600160a01b03161480611dde5750836001600160a01b0316611dd384610915565b6001600160a01b0316145b80611e0e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611e2982610d0e565b6001600160a01b031614611e915760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610780565b6001600160a01b038216611ef35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610780565b611efe600082611cb1565b6001600160a01b0383166000908152600360205260408120805460019290611f27908490613240565b90915550506001600160a01b0382166000908152600360205260408120805460019290611f559084906131f5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612055576040519150601f19603f3d011682016040523d82523d6000602084013e61205a565b606091505b5050905080610abb5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610780565b60006120a8612251565b90506120b6602360e56131f5565b811180156120c657506105dc8111155b6120e057634e487b7160e01b600052600160045260246000fd5b610d0a8282612237565b6120f5848484611e16565b612101848484846123cd565b6112925760405162461bcd60e51b81526004016107809061302f565b6060816121415750506040805180820190915260018152600360fc1b602082015290565b8160005b811561216b5780612155816132be565b91506121649050600a8361320d565b9150612145565b60008167ffffffffffffffff81111561219457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121be576020820181803683370190505b5090505b8415611e0e576121d3600183613240565b91506121e0600a866132d9565b6121eb9060306131f5565b60f81b81838151811061220e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612230600a8661320d565b94506121c2565b610d0a8282604051806020016040528060008152506124da565b60008061225d60075490565b612287907f00000000000000000000000000000000000000000000000000000000000004d4613240565b6040516bffffffffffffffffffffffff1933606090811b8216602084015241901b166034820152446048820152456068820152426088820152909150600090829060a8016040516020818303038152906040528051906020012060001c6122ee91906132d9565b6000818152600860205260408120549192509061230c57508061231d565b506000818152600860205260409020545b6008600061232c600186613240565b815260200190815260200160002054600014156123625761234e600184613240565b600083815260086020526040902055612392565b60086000612371600186613240565b81526020808201929092526040908101600090812054858252600890935220555b61239a61250d565b506123c57f0000000000000000000000000000000000000000000000000000000000000109826131f5565b935050505090565b60006001600160a01b0384163b156124cf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612411903390899088908890600401612f01565b602060405180830381600087803b15801561242b57600080fd5b505af192505050801561245b575060408051601f3d908101601f1916820190925261245891810190612cb2565b60015b6124b5573d808015612489576040519150601f19603f3d011682016040523d82523d6000602084013e61248e565b606091505b5080516124ad5760405162461bcd60e51b81526004016107809061302f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e0e565b506001949350505050565b6124e4838361257e565b6124f160008484846123cd565b610abb5760405162461bcd60e51b81526004016107809061302f565b6000806125186118f0565b116125655760405162461bcd60e51b815260206004820152601860248201527f4e6f206d6f726520746f6b656e7320617661696c61626c6500000000000000006044820152606401610780565b60078054906000612575836132be565b91905055905090565b6001600160a01b0382166125d45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610780565b6000818152600260205260409020546001600160a01b0316156126395760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610780565b6001600160a01b03821660009081526003602052604081208054600192906126629084906131f5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546126cc90613283565b90600052602060002090601f0160209004810192826126ee5760008555612734565b82601f1061270757805160ff1916838001178555612734565b82800160010185558215612734579182015b82811115612734578251825591602001919060010190612719565b50612740929150612744565b5090565b5b808211156127405760008155600101612745565b600067ffffffffffffffff83111561277357612773613319565b612786601f8401601f19166020016131a0565b905082815283838301111561279a57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146127c857600080fd5b919050565b60008083601f8401126127de578182fd5b50813567ffffffffffffffff8111156127f5578182fd5b6020830191508360208260051b850101111561281057600080fd5b9250929050565b600082601f830112612827578081fd5b8135602061283c612837836131d1565b6131a0565b80838252828201915082860187848660051b890101111561285b578586fd5b855b858110156128795781358452928401929084019060010161285d565b5090979650505050505050565b600082601f830112612896578081fd5b6128a583833560208501612759565b9392505050565b6000606082840312156128bd578081fd5b6128c5613177565b9050813581526020820135602082015260408201356128e381613363565b604082015292915050565b6000602082840312156128ff578081fd5b6128a5826127b1565b6000806040838503121561291a578081fd5b612923836127b1565b9150612931602084016127b1565b90509250929050565b600080600080600060a08688031215612951578081fd5b61295a866127b1565b9450612968602087016127b1565b9350604086013567ffffffffffffffff80821115612984578283fd5b61299089838a01612817565b945060608801359150808211156129a5578283fd5b6129b189838a01612817565b935060808801359150808211156129c6578283fd5b506129d388828901612886565b9150509295509295909350565b6000806000606084860312156129f4578081fd5b6129fd846127b1565b9250612a0b602085016127b1565b9150604084013590509250925092565b60008060008060808587031215612a30578182fd5b612a39856127b1565b9350612a47602086016127b1565b925060408501359150606085013567ffffffffffffffff811115612a69578182fd5b612a7587828801612886565b91505092959194509250565b600080600080600060a08688031215612a98578283fd5b612aa1866127b1565b9450612aaf602087016127b1565b93506040860135925060608601359150608086013567ffffffffffffffff811115612ad8578182fd5b6129d388828901612886565b60008060008060008060c08789031215612afc578384fd5b612b05876127b1565b9550602087013567ffffffffffffffff80821115612b21578586fd5b612b2d8a838b016127cd565b90975095506040890135915080821115612b45578283fd5b50612b5289828a016127cd565b9094509250612b66905088606089016128ac565b90509295509295509295565b60008060408385031215612b84578182fd5b612b8d836127b1565b915060208301358015158114612ba1578182fd5b809150509250929050565b60008060408385031215612bbe578182fd5b612bc7836127b1565b946020939093013593505050565b60008060408385031215612be7578182fd5b823567ffffffffffffffff80821115612bfe578384fd5b818501915085601f830112612c11578384fd5b81356020612c21612837836131d1565b8083825282820191508286018a848660051b8901011115612c40578889fd5b8896505b84871015612c6957612c55816127b1565b835260019690960195918301918301612c44565b5096505086013592505080821115612c7f578283fd5b50612c8c85828601612817565b9150509250929050565b600060208284031215612ca7578081fd5b81356128a58161334d565b600060208284031215612cc3578081fd5b81516128a58161334d565b600060208284031215612cdf578081fd5b8135600381106128a5578182fd5b600060208284031215612cfe578081fd5b813567ffffffffffffffff811115612d14578182fd5b8201601f81018413612d24578182fd5b611e0e84823560208401612759565b600060208284031215612d44578081fd5b5035919050565b60008060808385031215612d5d578182fd5b8235915061293184602085016128ac565b6000808284036080811215612d81578283fd5b835192506060601f1982011215612d96578182fd5b50612d9f613177565b60208401518152604084015160208201526060840151612dbe81613363565b6040820152919491935090915050565b600080600060a08486031215612de2578081fd5b8335925060208401359150612dfa85604086016128ac565b90509250925092565b60008151808452612e1b816020860160208601613257565b601f01601f19169290920160200192915050565b60008151612e41818560208601613257565b9290920192915050565b600080845482600182811c915080831680612e6757607f831692505b6020808410821415612e8757634e487b7160e01b87526022600452602487fd5b818015612e9b5760018114612eac57612ed8565b60ff19861689528489019650612ed8565b60008b815260209020885b86811015612ed05781548b820152908501908301612eb7565b505084890196505b505050505050612ef8612ef282602f60f81b815260010190565b85612e2f565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612f3490830184612e03565b9695505050505050565b60408101612f4b8461332f565b9281526001600160a01b039190911660209091015290565b612f6c8561332f565b848152606060208201819052810183905260006001600160fb1b03841115612f92578081fd5b8360051b8086608085013782016080019081526001600160a01b03929092166040909101529392505050565b60608101612fcb8561332f565b93815260208101929092526001600160a01b031660409091015290565b60608101612ff58561332f565b938152602081019290925260409091015290565b602081016130168361332f565b91905290565b6020815260006128a56020830184612e03565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600e908201526d24b73b30b634b21031b7bab837b760911b604082015260600190565b60208082526028908201527f526571756573746564206e756d626572206f6620746f6b656e73206e6f7420616040820152677661696c61626c6560c01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6040516060810167ffffffffffffffff8111828210171561319a5761319a613319565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156131c9576131c9613319565b604052919050565b600067ffffffffffffffff8211156131eb576131eb613319565b5060051b60200190565b60008219821115613208576132086132ed565b500190565b60008261321c5761321c613303565b500490565b600081600019048311821515161561323b5761323b6132ed565b500290565b600082821015613252576132526132ed565b500390565b60005b8381101561327257818101518382015260200161325a565b838111156112925750506000910152565b600181811c9082168061329757607f821691505b602082108114156132b857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156132d2576132d26132ed565b5060010190565b6000826132e8576132e8613303565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60038110611ac157634e487b7160e01b600052602160045260246000fd5b6001600160e01b031981168114611ac157600080fd5b60ff81168114611ac157600080fdfea2646970667358221220649a0afe1144d90ae496634f1c339e2248b903bba1e0c5baa2c7ad9eabba659c64736f6c63430008040033

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

0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c7eb865d2d4f6033cae0e81248173209a2e6843d000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e000000000000000000000000000000000000000000000000000000000000005668747470733a2f2f68756d616e736f666e66742e6d7970696e6174612e636c6f75642f697066732f516d59646b43714e314b666234695575425631734d506641644279483268486d684e66576a67784447474c5a397300000000000000000000

-----Decoded View---------------
Arg [0] : uri (string): https://humansofnft.mypinata.cloud/ipfs/QmYdkCqN1Kfb4iUuBV1sMPfAdByH2hHmhNfWjgxDGGLZ9s
Arg [1] : adminSigner (address): 0xc7EB865d2D4f6033cAe0e81248173209A2E6843d
Arg [2] : openseaAddress (address): 0x495f947276749Ce646f68AC8c248420045cb7b5e

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 000000000000000000000000c7eb865d2d4f6033cae0e81248173209a2e6843d
Arg [2] : 000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000056
Arg [4] : 68747470733a2f2f68756d616e736f666e66742e6d7970696e6174612e636c6f
Arg [5] : 75642f697066732f516d59646b43714e314b666234695575425631734d506641
Arg [6] : 644279483268486d684e66576a67784447474c5a397300000000000000000000


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.