ETH Price: $3,608.28 (-2.09%)

Token

Sugoi NFT NYC 2022 ()
 

Overview

Max Total Supply

801 Sugoi NFT NYC 2022

Holders

463

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
2 Sugoi NFT NYC 2022
0x6e0b6f43215c83b57f18f7eb49b492a3ae923278
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:
SugoiKey

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 500 runs

Other Settings:
default evmVersion
File 1 of 14 : SugoiKey.sol
// SPDX-License-Identifier: MIT
/*
 * SugoiKey.sol
 *
 * Created: May 30, 2022
 */

pragma solidity ^0.8.4;

import "./Satoshigoat.sol";

abstract contract Plug {
	function balanceOf(address a) public view virtual returns (uint);
	function ownerOf(uint256 tid) public view virtual returns (address);
	function tokenURI(uint256 tid) public view virtual returns (string memory);
}

//@title Sugoi NYC 2022 Event Ticket
//@author Satoshigoat (gh:@jcksber)
contract SugoiKey is Satoshigoat {

	Plug constant public thePlug = Plug(0x2Bb501A0374ff3Af41f2009509E9D6a36D56A6c0);//mainnet

	uint256 constant VANGUARD_LAST_ID = 887;//first 888 are vanguard

	mapping(uint256 => string) internal _tokens;//tid -> ipfs hash

	string [3] _hashes = ["QmeRLXAm3p8sQuWpJ99944iPJwqXNwvMZJR3PYtAKchb85",
						  "QmZ5cybBXyhvmEYVmc3bcNRqVWmyGCsgbPi4VT4WSYoKCz",
						  "QmVz3uxZC6EcrgPhdxHq5CT2qwRABTcr9z19cVaDZf1zfg"];
	string [3] _vanguardHashes = ["QmZNFmkUzMKU8pdx2Lqhy6k4A2k9X5nyV2wgmXsYvdqpkn",
						  		  "Qmbb8pNMPAhvBVqgdV2hP8X5zGSeHssa7Zo4b3YELqxkCz",
						  		  "QmZjSQ9GpjwRDZQXz5xCgnhSbV5QWQK1gUvxojmckQEkig"];
	string [3] _hustlers = ["ipfs://QmQ47S4WESzCBp2vUh4AVKmkejVmrbSW6YcrjiLtfnBtAM",
							"ipfs://QmYicdR5xgQbiwdMvhokPrqQYc6Znejnx2oJZeosMujoq5",
							"ipfs://QmSsLuP2VayEgVL1iLDnkHF5Hp8pdqeMeDRm6dzKMY1h1Y"];

	bool private _public = false;

	// -----
	// Core
	// -----

	modifier claimArgsOK(address to, uint256 qty, uint256 plugTid) {

		// Cannot mint to a contract
		if (_isContract(to))
			revert DataError("silly rabbit :P");

		// The owner of `plugTid` must be the receiving/minting address
		if (thePlug.ownerOf(plugTid) != to)
			revert DataError("address `to` must own `plugTid`");

		uint numPlugs = thePlug.balanceOf(to);
		// Must be a Plug holder
		if (numPlugs == 0)
			revert DataError("not plug holder");

		uint64 numClaimed = _getAux(to);
		// The `qty` can only be greater than 5 if more than 5 plugs are owned,
		// and can only go up to the number of plugs owned
		if (qty + numClaimed > 5 && qty + numClaimed > numPlugs)
			revert DataError("attempting to claim too many keys");
		_;
	}

	modifier publicClaimArgsOK(address to) {

		// If sale is private you cannot use this function
		if (!_public) revert 
			DataError("sale is private rn");

		// Contracts cannot be minted to
		if (_isContract(to)) 
			revert DataError("silly rabbit :P");

		// Can only claim one as non-Plug holder
		if (_getAux(to) > 0) 
			revert DataError("attempting to claim too many keys");
		_;
	}

	constructor() Satoshigoat("Sugoi NFT NYC 2022", "", "ipfs://") 
	{
		payoutAddress = address(0x6b8C6E15818C74895c31A1C91390b3d42B336799);
	}
	
	//@dev See {ERC721A-tokenURI}
	function tokenURI(uint256 tid) public view virtual override 
		returns (string memory) 
	{	
		if (!_exists(tid))
			revert URIQueryForNonexistentToken();
		return string(abi.encodePacked(_baseURI(), _tokens[tid]));
	}

	//@dev Allows owners to mint for free (all 'frens' tickets)
	function mint(address to, uint256 qty) external isSquad enoughSupply(qty)
	{
		unchecked {
			uint currentIdx = _totalMinted();
			uint nextIdx = currentIdx + qty;

			_safeMint(to, qty);

			uint i;
			for (i = currentIdx; i < nextIdx; i++) {
				if (i <= VANGUARD_LAST_ID)
					_tokens[i] = _vanguardHashes[0];
				else
					_tokens[i] = _hashes[0];//frens ticket
			}
		}
	}

	//@dev Plug holders can claim 5 tickets, unless they have more than 5 plugs, then
	// they can claim up to the same number of tickets as owned Plugs
	function claim(
		address to, 
		uint256 qty, 
		uint256 plugTid
	) 
		external 
		nonReentrant
		enoughSupply(qty)
		claimArgsOK(to, qty, plugTid)
	{
		uint64 numClaimed = _getAux(to);
		unchecked {
			string memory uri = thePlug.tokenURI(plugTid);
			uint currentIdx = _totalMinted();
			uint nextIdx = currentIdx + qty;

			_safeMint(to, qty);

			// First-time claimers get a special first key
			if (numClaimed == 0) {
				// Depending on level of hodler, create first key
				if (_stringsEqual(uri, _hustlers[0]) || 
					_stringsEqual(uri, _hustlers[1]) || 
					_stringsEqual(uri, _hustlers[2])) 
				{
					// hustlers get a rare version
					if (currentIdx <= VANGUARD_LAST_ID) 
						_tokens[currentIdx] = _vanguardHashes[2];//early-bird hustlers key
					else 
						_tokens[currentIdx] = _hashes[2];//hustler key
				} else {
					// other plug holders get the normal version
					if (currentIdx <= VANGUARD_LAST_ID)
						_tokens[currentIdx] = _vanguardHashes[1];//early-bird plug key
					else
						_tokens[currentIdx] = _hashes[1];//plug key
				}
				currentIdx++;//move pointer along
			}

			// Create frens keys
			uint i;
			for (i = currentIdx; i < nextIdx; i++) {
				if (i <= VANGUARD_LAST_ID)
					_tokens[i] = _vanguardHashes[0];//early-bird frens key
				else
					_tokens[i] = _hashes[0];//frens key
			}
		}

		// Record number of keys claimed
		_setAux(to, numClaimed + uint64(qty));
	}

	//@dev Public claim - one per person
	function publicClaim(address to) 
		external 
		nonReentrant 
		enoughSupply(1)
		publicClaimArgsOK(to)
	{	
		uint currentIdx = _totalMinted();
		
		_safeMint(to, 1);

		if (currentIdx <= VANGUARD_LAST_ID)
			_tokens[currentIdx] = _vanguardHashes[0];//early-bird frens key
		else
			_tokens[currentIdx] = _hashes[0];//frens key

		// Record number of keys claimed
		_setAux(to, 1);
	}
	
	//@dev Allow squad to burn - completely a backup function
	function burn(uint256 tid) external isSquad
	{
		_burn(tid);
	}

	//@dev Destroy contract and reclaim leftover funds
	function kill() external onlyOwner 
	{
		selfdestruct(payable(_msgSender()));
	}

	//@dev See `kill`; protects against being unable to delete a collection on OpenSea
	function safe_kill() external onlyOwner
	{
		if (balanceOf(_msgSender()) != totalSupply())
			revert DataError("potential error - not all tokens owned");
		selfdestruct(payable(_msgSender()));
	}

	//@dev Toggle public sale
	function togglePublicSale() external isSquad {
		_public = _public ? false : true;
	}

	//@dev Ability to change the ipfs hashes
	function setHash(uint8 idx, string calldata newHash) 
		external isSquad notEqual(_hashes[idx], newHash) { _hashes[idx] = newHash; }

	//@dev Ability to change the ipfs hashes
	function setVanguardHash(uint8 idx, string calldata newHash) 
		external isSquad notEqual(_vanguardHashes[idx], newHash) { _vanguardHashes[idx] = newHash; }

	//@dev Ability to change the Hustler hashes (no reason to ever)
	function setHustlerURI(uint8 idx, string calldata newHash) 
		external isSquad notEqual(_hustlers[idx], newHash) { _hustlers[idx] = newHash; }
}

File 2 of 14 : Satoshigoat.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "./ERC721A.sol";
import "./utils/ReentrancyGuard.sol";
import "./access/SquadOwnable.sol";

error DataError(string msg);

contract Satoshigoat is ERC721A, SquadOwnable, ReentrancyGuard {
	
	//@dev Sale Data
	uint256 public constant MAX_NUM_TOKENS = 3500;//=> ~700 in the vault
	uint256 constant public royaltyFeeBps = 1000;//10%

	//@dev Properties
	string internal _contractURI;
	string internal _baseTokenURI;
	address public payoutAddress;//*set in parent
	address public _owner;

	// -----------
	// RESTRICTORS
	// -----------

	modifier onlyValidTokenId(uint256 tid) {
		if (tid < 0 || tid >= MAX_NUM_TOKENS)
			revert DataError("tid OOB");
		_;
	}

	modifier notEqual(string memory str1, string memory str2) {
		if(_stringsEqual(str1, str2))
			revert DataError("strings must be different");
		_;
	}

	modifier enoughSupply(uint256 qty) {
		if (totalSupply() + qty > MAX_NUM_TOKENS)
			revert DataError("not enough left");
		_;
	}

	// ----
	// CORE
	// ----
	
    constructor(
    	string memory name_,
    	string memory symbol_,
    	string memory baseTokenURI
    ) 
    	ERC721A(name_, symbol_)
    {
    	_baseTokenURI = baseTokenURI;
    	_contractURI = "ipfs://QmZJfzkcLpi74Nzs5jSczvBzBFZsKDQgC8qFkEzEWH43GC";
    	_owner = address(0x6b8C6E15818C74895c31A1C91390b3d42B336799);
    }

    //@dev See {ERC721A-_baseURI}
	function _baseURI() internal view virtual override returns (string memory)
	{
		return _baseTokenURI;
	}

	//@dev Controls the contract-level metadata
	function contractURI() external view returns (string memory)
	{
		return _contractURI;
	}

    //@dev Allows us to withdraw funds collected
    function withdraw(address payable wallet, uint256 amount) 
        external isSquad nonReentrant
    {
        if (amount > address(this).balance)
            revert DataError("insufficient funds to withdraw");
        wallet.transfer(amount);
    }

    //@dev Ability to change _baseTokenURI
	function setBaseTokenURI(string calldata newBaseURI) 
		external isSquad notEqual(_baseTokenURI, newBaseURI) { _baseTokenURI = newBaseURI; }

	//@dev Ability to change the contract URI
	function setContractURI(string calldata newContractURI) 
		external isSquad notEqual(_contractURI, newContractURI) { _contractURI = newContractURI; }

	// -------
	// HELPERS
	// -------

	//@dev Gives us access to the otw internal function `_numberMinted`
	function numberMinted(address owner) public view returns (uint256) 
	{
		return _numberMinted(owner);
	}

	//@dev Determine if two strings are equal using the length + hash method
	function _stringsEqual(string memory a, string memory b) 
		internal pure returns (bool)
	{
		bytes memory A = bytes(a);
		bytes memory B = bytes(b);

		if (A.length != B.length) {
			return false;
		} else {
			return keccak256(A) == keccak256(B);
		}
	}

	//@dev Determine if an address is a smart contract 
	function _isContract(address a) 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.
		uint32 size;
		assembly {
			size := extcodesize(a)
		}
		return size > 0;
	}
}

File 3 of 14 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';


error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        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 override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

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

        _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 {
        _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 {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex &&
            !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 4 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 14 : SquadOwnable.sol
// SPDX-License-Identifier: MIT
/*
 * SquadOwnable.sol
 *
 * Created: December 21, 2021
 *
 * An extension of `Ownable.sol` to accomodate for a potential list of owners.
 * NOTE: this will need to be the last inherited contract to give all parents
 *       access to the modifiers it provides
 */

pragma solidity >=0.5.16 <0.9.0;

import "@openzeppelin/contracts/access/Ownable.sol";

error NotInSquad();
error AlreadyInSquad();

//@title SquadOwnable
//@author Satoshigoat (gh:@jcksber)
contract SquadOwnable is Ownable {

	//@dev Ownership - list of squad members (owners)
	mapping (address => bool) internal _squad;

	constructor() {
		//add myself and then logik
		_squad[0xB9699469c0b4dD7B1Dda11dA7678Fa4eFD51211b] = true;
		_squad[0x6b8C6E15818C74895c31A1C91390b3d42B336799] = true;
	}

	//@dev Custom modifier for multiple owners
	modifier isSquad()
	{
		if (!isInSquad(_msgSender()))
			revert NotInSquad();
		_;
	}

	//@dev Determine if address `a` is an approved owner
	function isInSquad(address a) public view returns (bool) 
	{
		return _squad[a];
	}

	//@dev Add `a` to the squad
	function addToSquad(address a) external onlyOwner
	{
		if (isInSquad(a))
			revert AlreadyInSquad();
		_squad[a] = true;
	}

	//@dev Remove `a` from the squad
	function removeFromSquad(address a) external onlyOwner
	{
		if (!isInSquad(a))
			revert NotInSquad();
		_squad[a] = false;
	}
}

File 6 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);
}

File 7 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyInSquad","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"string","name":"msg","type":"string"}],"name":"DataError","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotInSquad","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"MAX_NUM_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"addToSquad","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tid","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"qty","type":"uint256"},{"internalType":"uint256","name":"plugTid","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"isInSquad","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payoutAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"publicClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"removeFromSquad","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":[],"name":"safe_kill","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":"newBaseURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"idx","type":"uint8"},{"internalType":"string","name":"newHash","type":"string"}],"name":"setHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"idx","type":"uint8"},{"internalType":"string","name":"newHash","type":"string"}],"name":"setHustlerURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"idx","type":"uint8"},{"internalType":"string","name":"newHash","type":"string"}],"name":"setVanguardHash","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":"thePlug","outputs":[{"internalType":"contract Plug","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tid","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"wallet","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610140604052602e60e0818152608091829190620036dc6101003981526020016040518060600160405280602e8152602001620035b3602e913981526020016040518060600160405280602e815260200162003585602e913990526200006a90601090600362000354565b506040805160c08101909152602e6060820181815282916200364b608084013981526020016040518060600160405280602e81526020016200373f602e913981526020016040518060600160405280602e8152602001620036ae602e91399052620000da90601390600362000354565b506040805160c081019091526035606082018181528291620035e1608084013981526020016040518060600160405280603581526020016200370a603591398152602001604051806060016040528060358152602001620036796035913990526200014a90601690600362000354565b506019805460ff191690553480156200016257600080fd5b506040518060400160405280601281526020017129bab3b7b49027232a10272ca1901918191960711b8152506040518060200160405280600081525060405180604001604052806007815260200166697066733a2f2f60c81b81525082828160029080519060200190620001d8929190620003ab565b508051620001ee906003906020840190620003ab565b50506000805550620002003362000302565b600960209081527f1f2f542279960d4e922e627ea353408d4a48ecbf0b08a4446f579e303af01b878054600160ff199182168117909255736b8c6e15818c74895c31a1c91390b3d42b3367996000527fab7631a07f04bc824e4fb4f61e08254310143c6c2b37c4d5cbcd6ea041a6d10e805490911682179055600a5581516200029091600c9190840190620003ab565b5060405180606001604052806035815260200162003616603591398051620002c191600b91602090910190620003ab565b5050600e8054736b8c6e15818c74895c31a1c91390b3d42b3367996001600160a01b03199182168117909255600d8054909116909117905550620004ed9050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b826003810192821562000399579160200282015b8281111562000399578251805162000388918491602090910190620003ab565b509160200191906001019062000368565b50620003a792915062000436565b5090565b828054620003b990620004b0565b90600052602060002090601f016020900481019282620003dd576000855562000428565b82601f10620003f857805160ff191683800117855562000428565b8280016001018555821562000428579182015b82811115620004285782518255916020019190600101906200040b565b50620003a792915062000457565b80821115620003a75760006200044d82826200046e565b5060010162000436565b5b80821115620003a7576000815560010162000458565b5080546200047c90620004b0565b6000825580601f106200048d575050565b601f016020900490600052602060002090810190620004ad919062000457565b50565b600181811c90821680620004c557607f821691505b60208210811415620004e757634e487b7160e01b600052602260045260246000fd5b50919050565b61308880620004fd6000396000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c80637c461e181161013b578063c87b56dd116100b8578063e8a3d4851161007c578063e8a3d485146104ee578063e985e9c5146104f6578063eaff65f314610532578063f2fde38b14610545578063f3fef3a31461055857600080fd5b8063c87b56dd146104a5578063d3ad3c19146104b8578063dc33e681146104cb578063de216f6a146104de578063e222c7f9146104e657600080fd5b806395d89b41116100ff57806395d89b4114610451578063a22cb46514610459578063a87ca7df1461046c578063b2bdfa7b1461047f578063b88d4fde1461049257600080fd5b80637c461e18146103e5578063832d676b146104115780638da5cb5b146104245780639119276514610435578063938e3d7b1461043e57600080fd5b806342842e0e116101c95780636b41f46c1161018d5780636b41f46c146103935780636e3b5c12146103ae57806370a08231146103c1578063715018a6146103d4578063718e6adb146103dc57600080fd5b806342842e0e1461033457806342966c68146103475780634920d31d1461035a5780635b8d02d71461036d5780636352211e1461038057600080fd5b806323b872dd1161021057806323b872dd146102e05780632bc43fd9146102f357806330176e131461030657806340c10f191461031957806341c0e1b51461032c57600080fd5b806301ffc9a71461024d57806306fdde0314610275578063081812fc1461028a578063095ea7b3146102b557806318160ddd146102ca575b600080fd5b61026061025b366004612c35565b61056b565b60405190151581526020015b60405180910390f35b61027d6105bd565b60405161026c9190612ece565b61029d610298366004612d28565b61064f565b6040516001600160a01b03909116815260200161026c565b6102c86102c3366004612a78565b610693565b005b600154600054035b60405190815260200161026c565b6102c86102ee366004612add565b61073e565b6102c8610301366004612c00565b610749565b6102c8610314366004612c6f565b610dc2565b6102c8610327366004612a78565b610f12565b6102c861101b565b6102c8610342366004612add565b611078565b6102c8610355366004612d28565b611093565b6102c8610368366004612d5a565b6110c5565b600d5461029d906001600160a01b031681565b61029d61038e366004612d28565b61123b565b61029d732bb501a0374ff3af41f2009509e9d6a36d56a6c081565b6102c86103bc366004612a37565b61124d565b6102d26103cf366004612a37565b611301565b6102c8611350565b6102d2610dac81565b6102606103f3366004612a37565b6001600160a01b031660009081526009602052604090205460ff1690565b6102c861041f366004612a37565b6113b6565b6008546001600160a01b031661029d565b6102d26103e881565b6102c861044c366004612c6f565b611628565b61027d611771565b6102c8610467366004612bcd565b611780565b6102c861047a366004612d5a565b611816565b600e5461029d906001600160a01b031681565b6102c86104a0366004612b1e565b611980565b61027d6104b3366004612d28565b6119d1565b6102c86104c6366004612a37565b611a37565b6102d26104d9366004612a37565b611aef565b6102c8611b23565b6102c8611be9565b61027d611c36565b610260610504366004612aa4565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102c8610540366004612d5a565b611c45565b6102c8610553366004612a37565b611daf565b6102c8610566366004612a78565b611e77565b60006001600160e01b031982166380ac58cd60e01b148061059c57506001600160e01b03198216635b5e139f60e01b145b806105b757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546105cc90612faa565b80601f01602080910402602001604051908101604052809291908181526020018280546105f890612faa565b80156106455780601f1061061a57610100808354040283529160200191610645565b820191906000526020600020905b81548152906001019060200180831161062857829003601f168201915b5050505050905090565b600061065a82611f85565b610677576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061069e8261123b565b9050806001600160a01b0316836001600160a01b031614156106d35760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061071057506001600160a01b038116600090815260076020908152604080832033845290915290205460ff16155b1561072e576040516367d9dca160e11b815260040160405180910390fd5b610739838383611fb0565b505050565b610739838383612019565b6002600a5414156107a15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600a5581610dac816107b86001546000540390565b6107c29190612f3a565b11156108025760405162df319960e51b815260206004820152600f60248201526e1b9bdd08195b9bdd59da081b19599d608a1b6044820152606401610798565b838383823b63ffffffff161561084c5760405162df319960e51b815260206004820152600f60248201526e073696c6c7920726162626974203a5608c1b6044820152606401610798565b6040516331a9108f60e11b8152600481018290526001600160a01b03841690732bb501a0374ff3af41f2009509e9d6a36d56a6c090636352211e9060240160206040518083038186803b1580156108a257600080fd5b505afa1580156108b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108da9190612a5b565b6001600160a01b0316146109305760405162df319960e51b815260206004820152601f60248201527f616464726573732060746f60206d757374206f776e2060706c756754696460006044820152606401610798565b6040516370a0823160e01b81526001600160a01b0384166004820152600090732bb501a0374ff3af41f2009509e9d6a36d56a6c0906370a082319060240160206040518083038186803b15801561098657600080fd5b505afa15801561099a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109be9190612d41565b905080610a0d5760405162df319960e51b815260206004820152600f60248201527f6e6f7420706c756720686f6c64657200000000000000000000000000000000006044820152606401610798565b6001600160a01b038416600090815260056020526040812054600160c01b900467ffffffffffffffff1690506005610a4f67ffffffffffffffff831686612f3a565b118015610a6e575081610a6c67ffffffffffffffff831686612f3a565b115b15610ac55760405162df319960e51b815260206004820152602160248201527f617474656d7074696e6720746f20636c61696d20746f6f206d616e79206b65796044820152607360f81b6064820152608401610798565b6001600160a01b038916600090815260056020526040812054600160c01b900467ffffffffffffffff1660405163c87b56dd60e01b8152600481018a9052909150600090732bb501a0374ff3af41f2009509e9d6a36d56a6c09063c87b56dd9060240160006040518083038186803b158015610b4057600080fd5b505afa158015610b54573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b7c9190810190612cb1565b90506000610b8960005490565b90508a8101610b988d8d612224565b67ffffffffffffffff8416610cee57610c3f83601660005b018054610bbc90612faa565b80601f0160208091040260200160405190810160405280929190818152602001828054610be890612faa565b8015610c355780601f10610c0a57610100808354040283529160200191610c35565b820191906000526020600020905b815481529060010190602001808311610c1857829003601f168201915b5050505050612242565b80610c525750610c528360166001610bb0565b80610c655750610c658360166002610bb0565b15610cad576103778211610ca457601360025b6000848152600f6020526040902091018054610c9390612faa565b610c9e9291906128da565b50610ce7565b60106002610c78565b6103778211610cbf5760136001610c78565b6000828152600f6020526040902060118054610cda90612faa565b610ce59291906128da565b505b6001909101905b815b81811015610d5d576103778111610d2d576000818152600f6020526040902060138054610d1c90612faa565b610d279291906128da565b50610d55565b6000818152600f6020526040902060108054610d4890612faa565b610d539291906128da565b505b600101610cf0565b50505050610db18a8a83610d719190612f52565b6001600160a01b039091166000908152600560205260409020805467ffffffffffffffff909216600160c01b026001600160c01b03909216919091179055565b50506001600a555050505050505050565b610dcb336103f3565b610de85760405163093b290f60e01b815260040160405180910390fd5b600c8054610df590612faa565b80601f0160208091040260200160405190810160405280929190818152602001828054610e2190612faa565b8015610e6e5780601f10610e4357610100808354040283529160200191610e6e565b820191906000526020600020905b815481529060010190602001808311610e5157829003601f168201915b505050505082828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610eb69250849150839050612242565b15610eff5760405162df319960e51b81526020600482015260196024820152781cdd1c9a5b99dcc81b5d5cdd08189948191a5999995c995b9d603a1b6044820152606401610798565b610f0b600c8585612965565b5050505050565b610f1b336103f3565b610f385760405163093b290f60e01b815260040160405180910390fd5b80610dac81610f4a6001546000540390565b610f549190612f3a565b1115610f945760405162df319960e51b815260206004820152600f60248201526e1b9bdd08195b9bdd59da081b19599d608a1b6044820152606401610798565b600054828101610fa48585612224565b815b81811015611013576103778111610fe3576000818152600f6020526040902060138054610fd290612faa565b610fdd9291906128da565b5061100b565b6000818152600f6020526040902060108054610ffe90612faa565b6110099291906128da565b505b600101610fa6565b505050505050565b6008546001600160a01b031633146110755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610798565b33ff5b61073983838360405180602001604052806000815250611980565b61109c336103f3565b6110b95760405163093b290f60e01b815260040160405180910390fd5b6110c281612277565b50565b6110ce336103f3565b6110eb5760405163093b290f60e01b815260040160405180910390fd5b60108360ff166003811061110157611101612ffb565b01805461110d90612faa565b80601f016020809104026020016040519081016040528092919081815260200182805461113990612faa565b80156111865780601f1061115b57610100808354040283529160200191611186565b820191906000526020600020905b81548152906001019060200180831161116957829003601f168201915b505050505082828080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506111ce9250849150839050612242565b156112175760405162df319960e51b81526020600482015260196024820152781cdd1c9a5b99dcc81b5d5cdd08189948191a5999995c995b9d603a1b6044820152606401610798565b838360108760ff166003811061122f5761122f612ffb565b61101393910191612965565b600061124682612282565b5192915050565b6008546001600160a01b031633146112a75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610798565b6001600160a01b03811660009081526009602052604090205460ff166112e05760405163093b290f60e01b815260040160405180910390fd5b6001600160a01b03166000908152600960205260409020805460ff19169055565b60006001600160a01b03821661132a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146113aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610798565b6113b4600061239e565b565b6002600a5414156114095760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610798565b6002600a556001610dac816114216001546000540390565b61142b9190612f3a565b111561146b5760405162df319960e51b815260206004820152600f60248201526e1b9bdd08195b9bdd59da081b19599d608a1b6044820152606401610798565b601954829060ff166114bf5760405162df319960e51b815260206004820152601260248201527f73616c65206973207072697661746520726e00000000000000000000000000006044820152606401610798565b803b63ffffffff16156115065760405162df319960e51b815260206004820152600f60248201526e073696c6c7920726162626974203a5608c1b6044820152606401610798565b6001600160a01b038116600090815260056020526040902054600160c01b900467ffffffffffffffff16156115875760405162df319960e51b815260206004820152602160248201527f617474656d7074696e6720746f20636c61696d20746f6f206d616e79206b65796044820152607360f81b6064820152608401610798565b600054611595846001612224565b61037781116115ca576000818152600f60205260409020601380546115b990612faa565b6115c49291906128da565b506115f2565b6000818152600f60205260409020601080546115e590612faa565b6115f09291906128da565b505b6001600160a01b038416600090815260056020526040902080546001600160c01b0316600160c01b17905550506001600a555050565b611631336103f3565b61164e5760405163093b290f60e01b815260040160405180910390fd5b600b805461165b90612faa565b80601f016020809104026020016040519081016040528092919081815260200182805461168790612faa565b80156116d45780601f106116a9576101008083540402835291602001916116d4565b820191906000526020600020905b8154815290600101906020018083116116b757829003601f168201915b505050505082828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061171c9250849150839050612242565b156117655760405162df319960e51b81526020600482015260196024820152781cdd1c9a5b99dcc81b5d5cdd08189948191a5999995c995b9d603a1b6044820152606401610798565b610f0b600b8585612965565b6060600380546105cc90612faa565b6001600160a01b0382163314156117aa5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61181f336103f3565b61183c5760405163093b290f60e01b815260040160405180910390fd5b60138360ff166003811061185257611852612ffb565b01805461185e90612faa565b80601f016020809104026020016040519081016040528092919081815260200182805461188a90612faa565b80156118d75780601f106118ac576101008083540402835291602001916118d7565b820191906000526020600020905b8154815290600101906020018083116118ba57829003601f168201915b505050505082828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061191f9250849150839050612242565b156119685760405162df319960e51b81526020600482015260196024820152781cdd1c9a5b99dcc81b5d5cdd08189948191a5999995c995b9d603a1b6044820152606401610798565b838360138760ff166003811061122f5761122f612ffb565b61198b848484612019565b6001600160a01b0383163b151580156119ad57506119ab848484846123fd565b155b156119cb576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606119dc82611f85565b6119f957604051630a14c4b560e41b815260040160405180910390fd5b611a016124f4565b6000838152600f60209081526040918290209151611a2193929101612de1565b6040516020818303038152906040529050919050565b6008546001600160a01b03163314611a915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610798565b6001600160a01b03811660009081526009602052604090205460ff1615611acb57604051630db2516960e41b815260040160405180910390fd5b6001600160a01b03166000908152600960205260409020805460ff19166001179055565b6001600160a01b03811660009081526005602052604081205468010000000000000000900467ffffffffffffffff166105b7565b6008546001600160a01b03163314611b7d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610798565b60015460005403611b8d33611301565b146110755760405162df319960e51b815260206004820152602660248201527f706f74656e7469616c206572726f72202d206e6f7420616c6c20746f6b656e73604482015265081bdddb995960d21b6064820152608401610798565b611bf2336103f3565b611c0f5760405163093b290f60e01b815260040160405180910390fd5b60195460ff16611c20576001611c23565b60005b6019805460ff1916911515919091179055565b6060600b80546105cc90612faa565b611c4e336103f3565b611c6b5760405163093b290f60e01b815260040160405180910390fd5b60168360ff1660038110611c8157611c81612ffb565b018054611c8d90612faa565b80601f0160208091040260200160405190810160405280929190818152602001828054611cb990612faa565b8015611d065780601f10611cdb57610100808354040283529160200191611d06565b820191906000526020600020905b815481529060010190602001808311611ce957829003601f168201915b505050505082828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d4e9250849150839050612242565b15611d975760405162df319960e51b81526020600482015260196024820152781cdd1c9a5b99dcc81b5d5cdd08189948191a5999995c995b9d603a1b6044820152606401610798565b838360168760ff166003811061122f5761122f612ffb565b6008546001600160a01b03163314611e095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610798565b6001600160a01b038116611e6e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610798565b6110c28161239e565b611e80336103f3565b611e9d5760405163093b290f60e01b815260040160405180910390fd5b6002600a541415611ef05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610798565b6002600a5547811115611f455760405162df319960e51b815260206004820152601e60248201527f696e73756666696369656e742066756e647320746f20776974686472617700006044820152606401610798565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015611f7b573d6000803e3d6000fd5b50506001600a5550565b60008054821080156105b7575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061202482612282565b9050836001600160a01b031681600001516001600160a01b03161461205b5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061209757506001600160a01b038516600090815260076020908152604080832033845290915290205460ff165b806120b25750336120a78461064f565b6001600160a01b0316145b9050806120d257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166120f957604051633a954ecd60e21b815260040160405180910390fd5b61210560008487611fb0565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166121db5760005482146121db578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610f0b565b61223e828260405180602001604052806000815250612503565b5050565b80518251600091849184911461225d576000925050506105b7565b8080519060200120828051906020012014925050506105b7565b6110c2816000612510565b60408051606081018252600080825260208201819052918101919091528160005481101561238557600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906123835780516001600160a01b031615612319579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff161515928101929092521561237e579392505050565b612319565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612432903390899088908890600401612e92565b602060405180830381600087803b15801561244c57600080fd5b505af192505050801561247c575060408051601f3d908101601f1916820190925261247991810190612c52565b60015b6124d7573d8080156124aa576040519150601f19603f3d011682016040523d82523d6000602084013e6124af565b606091505b5080516124cf576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600c80546105cc90612faa565b6107398383836001612709565b600061251b83612282565b8051909150821561259f576000336001600160a01b038316148061256257506001600160a01b038216600090815260076020908152604080832033845290915290205460ff165b8061257d5750336125728661064f565b6001600160a01b0316145b90508061259d57604051632ce44b5f60e11b815260040160405180910390fd5b505b6125ab60008583611fb0565b6001600160a01b038082166000818152600560209081526040808320805470010000000000000000000000000000000060001967ffffffffffffffff80841691909101811667ffffffffffffffff19841681178390048216600190810183169093027fffffffffffffffff0000000000000000ffffffffffffffff0000000000000000909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b1785559189018084529220805491949091166126bf5760005482146126bf578054602087015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b6000546001600160a01b03851661273257604051622e076360e81b815260040160405180910390fd5b836127505760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561280257506001600160a01b0387163b15155b1561288b575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461285360008884806001019550886123fd565b612870576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561280857826000541461288657600080fd5b6128d1565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561288c575b50600055610f0b565b8280546128e690612faa565b90600052602060002090601f0160209004810192826129085760008555612955565b82601f106129195780548555612955565b8280016001018555821561295557600052602060002091601f016020900482015b8281111561295557825482559160010191906001019061293a565b506129619291506129d9565b5090565b82805461297190612faa565b90600052602060002090601f0160209004810192826129935760008555612955565b82601f106129ac5782800160ff19823516178555612955565b82800160010185558215612955579182015b828111156129555782358255916020019190600101906129be565b5b8082111561296157600081556001016129da565b60008083601f840112612a0057600080fd5b50813567ffffffffffffffff811115612a1857600080fd5b602083019150836020828501011115612a3057600080fd5b9250929050565b600060208284031215612a4957600080fd5b8135612a5481613027565b9392505050565b600060208284031215612a6d57600080fd5b8151612a5481613027565b60008060408385031215612a8b57600080fd5b8235612a9681613027565b946020939093013593505050565b60008060408385031215612ab757600080fd5b8235612ac281613027565b91506020830135612ad281613027565b809150509250929050565b600080600060608486031215612af257600080fd5b8335612afd81613027565b92506020840135612b0d81613027565b929592945050506040919091013590565b60008060008060808587031215612b3457600080fd5b8435612b3f81613027565b93506020850135612b4f81613027565b925060408501359150606085013567ffffffffffffffff811115612b7257600080fd5b8501601f81018713612b8357600080fd5b8035612b96612b9182612f12565b612ee1565b818152886020838501011115612bab57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060408385031215612be057600080fd5b8235612beb81613027565b915060208301358015158114612ad257600080fd5b600080600060608486031215612c1557600080fd5b8335612c2081613027565b95602085013595506040909401359392505050565b600060208284031215612c4757600080fd5b8135612a548161303c565b600060208284031215612c6457600080fd5b8151612a548161303c565b60008060208385031215612c8257600080fd5b823567ffffffffffffffff811115612c9957600080fd5b612ca5858286016129ee565b90969095509350505050565b600060208284031215612cc357600080fd5b815167ffffffffffffffff811115612cda57600080fd5b8201601f81018413612ceb57600080fd5b8051612cf9612b9182612f12565b818152856020838501011115612d0e57600080fd5b612d1f826020830160208601612f7e565b95945050505050565b600060208284031215612d3a57600080fd5b5035919050565b600060208284031215612d5357600080fd5b5051919050565b600080600060408486031215612d6f57600080fd5b833560ff81168114612d8057600080fd5b9250602084013567ffffffffffffffff811115612d9c57600080fd5b612da8868287016129ee565b9497909650939450505050565b60008151808452612dcd816020860160208601612f7e565b601f01601f19169290920160200192915050565b600083516020612df48285838901612f7e565b845491840191600090600181811c9080831680612e1257607f831692505b858310811415612e3057634e487b7160e01b85526022600452602485fd5b808015612e445760018114612e5557612e82565b60ff19851688528388019550612e82565b60008b81526020902060005b85811015612e7a5781548a820152908401908801612e61565b505083880195505b50939a9950505050505050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612ec46080830184612db5565b9695505050505050565b602081526000612a546020830184612db5565b604051601f8201601f1916810167ffffffffffffffff81118282101715612f0a57612f0a613011565b604052919050565b600067ffffffffffffffff821115612f2c57612f2c613011565b50601f01601f191660200190565b60008219821115612f4d57612f4d612fe5565b500190565b600067ffffffffffffffff808316818516808303821115612f7557612f75612fe5565b01949350505050565b60005b83811015612f99578181015183820152602001612f81565b838111156119cb5750506000910152565b600181811c90821680612fbe57607f821691505b60208210811415612fdf57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146110c257600080fd5b6001600160e01b0319811681146110c257600080fdfea2646970667358221220da3fa10032c255a18131fa16f23689796c48e8301cb177b7c7c7821e56da213764736f6c63430008070033516d567a3375785a433645637267506864784871354354327177524142546372397a3139635661445a66317a6667516d5a3563796242587968766d4559566d633362634e527156576d7947437367625069345654345753596f4b437a697066733a2f2f516d51343753345745537a434270327655683441564b6d6b656a566d72625357365963726a694c74666e4274414d697066733a2f2f516d5a4a667a6b634c706937344e7a73356a53637a76427a42465a734b445167433871466b457a45574834334743516d5a4e466d6b557a4d4b5538706478324c716879366b3441326b3958356e79563277676d587359766471706b6e697066733a2f2f516d53734c7550325661794567564c31694c446e6b484635487038706471654d6544526d36647a4b4d5931683159516d5a6a53513947706a7752445a51587a357843676e68536256355157514b31675576786f6a6d636b51456b6967516d65524c58416d33703873517557704a393939343469504a7771584e77764d5a4a5233505974414b6368623835697066733a2f2f516d596963645235786751626977644d76686f6b507271515963365a6e656a6e78326f4a5a656f734d756a6f7135516d626238704e4d504168764256716764563268503858357a47536548737361375a6f34623359454c71786b437a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102485760003560e01c80637c461e181161013b578063c87b56dd116100b8578063e8a3d4851161007c578063e8a3d485146104ee578063e985e9c5146104f6578063eaff65f314610532578063f2fde38b14610545578063f3fef3a31461055857600080fd5b8063c87b56dd146104a5578063d3ad3c19146104b8578063dc33e681146104cb578063de216f6a146104de578063e222c7f9146104e657600080fd5b806395d89b41116100ff57806395d89b4114610451578063a22cb46514610459578063a87ca7df1461046c578063b2bdfa7b1461047f578063b88d4fde1461049257600080fd5b80637c461e18146103e5578063832d676b146104115780638da5cb5b146104245780639119276514610435578063938e3d7b1461043e57600080fd5b806342842e0e116101c95780636b41f46c1161018d5780636b41f46c146103935780636e3b5c12146103ae57806370a08231146103c1578063715018a6146103d4578063718e6adb146103dc57600080fd5b806342842e0e1461033457806342966c68146103475780634920d31d1461035a5780635b8d02d71461036d5780636352211e1461038057600080fd5b806323b872dd1161021057806323b872dd146102e05780632bc43fd9146102f357806330176e131461030657806340c10f191461031957806341c0e1b51461032c57600080fd5b806301ffc9a71461024d57806306fdde0314610275578063081812fc1461028a578063095ea7b3146102b557806318160ddd146102ca575b600080fd5b61026061025b366004612c35565b61056b565b60405190151581526020015b60405180910390f35b61027d6105bd565b60405161026c9190612ece565b61029d610298366004612d28565b61064f565b6040516001600160a01b03909116815260200161026c565b6102c86102c3366004612a78565b610693565b005b600154600054035b60405190815260200161026c565b6102c86102ee366004612add565b61073e565b6102c8610301366004612c00565b610749565b6102c8610314366004612c6f565b610dc2565b6102c8610327366004612a78565b610f12565b6102c861101b565b6102c8610342366004612add565b611078565b6102c8610355366004612d28565b611093565b6102c8610368366004612d5a565b6110c5565b600d5461029d906001600160a01b031681565b61029d61038e366004612d28565b61123b565b61029d732bb501a0374ff3af41f2009509e9d6a36d56a6c081565b6102c86103bc366004612a37565b61124d565b6102d26103cf366004612a37565b611301565b6102c8611350565b6102d2610dac81565b6102606103f3366004612a37565b6001600160a01b031660009081526009602052604090205460ff1690565b6102c861041f366004612a37565b6113b6565b6008546001600160a01b031661029d565b6102d26103e881565b6102c861044c366004612c6f565b611628565b61027d611771565b6102c8610467366004612bcd565b611780565b6102c861047a366004612d5a565b611816565b600e5461029d906001600160a01b031681565b6102c86104a0366004612b1e565b611980565b61027d6104b3366004612d28565b6119d1565b6102c86104c6366004612a37565b611a37565b6102d26104d9366004612a37565b611aef565b6102c8611b23565b6102c8611be9565b61027d611c36565b610260610504366004612aa4565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102c8610540366004612d5a565b611c45565b6102c8610553366004612a37565b611daf565b6102c8610566366004612a78565b611e77565b60006001600160e01b031982166380ac58cd60e01b148061059c57506001600160e01b03198216635b5e139f60e01b145b806105b757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546105cc90612faa565b80601f01602080910402602001604051908101604052809291908181526020018280546105f890612faa565b80156106455780601f1061061a57610100808354040283529160200191610645565b820191906000526020600020905b81548152906001019060200180831161062857829003601f168201915b5050505050905090565b600061065a82611f85565b610677576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061069e8261123b565b9050806001600160a01b0316836001600160a01b031614156106d35760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061071057506001600160a01b038116600090815260076020908152604080832033845290915290205460ff16155b1561072e576040516367d9dca160e11b815260040160405180910390fd5b610739838383611fb0565b505050565b610739838383612019565b6002600a5414156107a15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600a5581610dac816107b86001546000540390565b6107c29190612f3a565b11156108025760405162df319960e51b815260206004820152600f60248201526e1b9bdd08195b9bdd59da081b19599d608a1b6044820152606401610798565b838383823b63ffffffff161561084c5760405162df319960e51b815260206004820152600f60248201526e073696c6c7920726162626974203a5608c1b6044820152606401610798565b6040516331a9108f60e11b8152600481018290526001600160a01b03841690732bb501a0374ff3af41f2009509e9d6a36d56a6c090636352211e9060240160206040518083038186803b1580156108a257600080fd5b505afa1580156108b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108da9190612a5b565b6001600160a01b0316146109305760405162df319960e51b815260206004820152601f60248201527f616464726573732060746f60206d757374206f776e2060706c756754696460006044820152606401610798565b6040516370a0823160e01b81526001600160a01b0384166004820152600090732bb501a0374ff3af41f2009509e9d6a36d56a6c0906370a082319060240160206040518083038186803b15801561098657600080fd5b505afa15801561099a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109be9190612d41565b905080610a0d5760405162df319960e51b815260206004820152600f60248201527f6e6f7420706c756720686f6c64657200000000000000000000000000000000006044820152606401610798565b6001600160a01b038416600090815260056020526040812054600160c01b900467ffffffffffffffff1690506005610a4f67ffffffffffffffff831686612f3a565b118015610a6e575081610a6c67ffffffffffffffff831686612f3a565b115b15610ac55760405162df319960e51b815260206004820152602160248201527f617474656d7074696e6720746f20636c61696d20746f6f206d616e79206b65796044820152607360f81b6064820152608401610798565b6001600160a01b038916600090815260056020526040812054600160c01b900467ffffffffffffffff1660405163c87b56dd60e01b8152600481018a9052909150600090732bb501a0374ff3af41f2009509e9d6a36d56a6c09063c87b56dd9060240160006040518083038186803b158015610b4057600080fd5b505afa158015610b54573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b7c9190810190612cb1565b90506000610b8960005490565b90508a8101610b988d8d612224565b67ffffffffffffffff8416610cee57610c3f83601660005b018054610bbc90612faa565b80601f0160208091040260200160405190810160405280929190818152602001828054610be890612faa565b8015610c355780601f10610c0a57610100808354040283529160200191610c35565b820191906000526020600020905b815481529060010190602001808311610c1857829003601f168201915b5050505050612242565b80610c525750610c528360166001610bb0565b80610c655750610c658360166002610bb0565b15610cad576103778211610ca457601360025b6000848152600f6020526040902091018054610c9390612faa565b610c9e9291906128da565b50610ce7565b60106002610c78565b6103778211610cbf5760136001610c78565b6000828152600f6020526040902060118054610cda90612faa565b610ce59291906128da565b505b6001909101905b815b81811015610d5d576103778111610d2d576000818152600f6020526040902060138054610d1c90612faa565b610d279291906128da565b50610d55565b6000818152600f6020526040902060108054610d4890612faa565b610d539291906128da565b505b600101610cf0565b50505050610db18a8a83610d719190612f52565b6001600160a01b039091166000908152600560205260409020805467ffffffffffffffff909216600160c01b026001600160c01b03909216919091179055565b50506001600a555050505050505050565b610dcb336103f3565b610de85760405163093b290f60e01b815260040160405180910390fd5b600c8054610df590612faa565b80601f0160208091040260200160405190810160405280929190818152602001828054610e2190612faa565b8015610e6e5780601f10610e4357610100808354040283529160200191610e6e565b820191906000526020600020905b815481529060010190602001808311610e5157829003601f168201915b505050505082828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610eb69250849150839050612242565b15610eff5760405162df319960e51b81526020600482015260196024820152781cdd1c9a5b99dcc81b5d5cdd08189948191a5999995c995b9d603a1b6044820152606401610798565b610f0b600c8585612965565b5050505050565b610f1b336103f3565b610f385760405163093b290f60e01b815260040160405180910390fd5b80610dac81610f4a6001546000540390565b610f549190612f3a565b1115610f945760405162df319960e51b815260206004820152600f60248201526e1b9bdd08195b9bdd59da081b19599d608a1b6044820152606401610798565b600054828101610fa48585612224565b815b81811015611013576103778111610fe3576000818152600f6020526040902060138054610fd290612faa565b610fdd9291906128da565b5061100b565b6000818152600f6020526040902060108054610ffe90612faa565b6110099291906128da565b505b600101610fa6565b505050505050565b6008546001600160a01b031633146110755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610798565b33ff5b61073983838360405180602001604052806000815250611980565b61109c336103f3565b6110b95760405163093b290f60e01b815260040160405180910390fd5b6110c281612277565b50565b6110ce336103f3565b6110eb5760405163093b290f60e01b815260040160405180910390fd5b60108360ff166003811061110157611101612ffb565b01805461110d90612faa565b80601f016020809104026020016040519081016040528092919081815260200182805461113990612faa565b80156111865780601f1061115b57610100808354040283529160200191611186565b820191906000526020600020905b81548152906001019060200180831161116957829003601f168201915b505050505082828080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506111ce9250849150839050612242565b156112175760405162df319960e51b81526020600482015260196024820152781cdd1c9a5b99dcc81b5d5cdd08189948191a5999995c995b9d603a1b6044820152606401610798565b838360108760ff166003811061122f5761122f612ffb565b61101393910191612965565b600061124682612282565b5192915050565b6008546001600160a01b031633146112a75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610798565b6001600160a01b03811660009081526009602052604090205460ff166112e05760405163093b290f60e01b815260040160405180910390fd5b6001600160a01b03166000908152600960205260409020805460ff19169055565b60006001600160a01b03821661132a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146113aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610798565b6113b4600061239e565b565b6002600a5414156114095760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610798565b6002600a556001610dac816114216001546000540390565b61142b9190612f3a565b111561146b5760405162df319960e51b815260206004820152600f60248201526e1b9bdd08195b9bdd59da081b19599d608a1b6044820152606401610798565b601954829060ff166114bf5760405162df319960e51b815260206004820152601260248201527f73616c65206973207072697661746520726e00000000000000000000000000006044820152606401610798565b803b63ffffffff16156115065760405162df319960e51b815260206004820152600f60248201526e073696c6c7920726162626974203a5608c1b6044820152606401610798565b6001600160a01b038116600090815260056020526040902054600160c01b900467ffffffffffffffff16156115875760405162df319960e51b815260206004820152602160248201527f617474656d7074696e6720746f20636c61696d20746f6f206d616e79206b65796044820152607360f81b6064820152608401610798565b600054611595846001612224565b61037781116115ca576000818152600f60205260409020601380546115b990612faa565b6115c49291906128da565b506115f2565b6000818152600f60205260409020601080546115e590612faa565b6115f09291906128da565b505b6001600160a01b038416600090815260056020526040902080546001600160c01b0316600160c01b17905550506001600a555050565b611631336103f3565b61164e5760405163093b290f60e01b815260040160405180910390fd5b600b805461165b90612faa565b80601f016020809104026020016040519081016040528092919081815260200182805461168790612faa565b80156116d45780601f106116a9576101008083540402835291602001916116d4565b820191906000526020600020905b8154815290600101906020018083116116b757829003601f168201915b505050505082828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061171c9250849150839050612242565b156117655760405162df319960e51b81526020600482015260196024820152781cdd1c9a5b99dcc81b5d5cdd08189948191a5999995c995b9d603a1b6044820152606401610798565b610f0b600b8585612965565b6060600380546105cc90612faa565b6001600160a01b0382163314156117aa5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61181f336103f3565b61183c5760405163093b290f60e01b815260040160405180910390fd5b60138360ff166003811061185257611852612ffb565b01805461185e90612faa565b80601f016020809104026020016040519081016040528092919081815260200182805461188a90612faa565b80156118d75780601f106118ac576101008083540402835291602001916118d7565b820191906000526020600020905b8154815290600101906020018083116118ba57829003601f168201915b505050505082828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061191f9250849150839050612242565b156119685760405162df319960e51b81526020600482015260196024820152781cdd1c9a5b99dcc81b5d5cdd08189948191a5999995c995b9d603a1b6044820152606401610798565b838360138760ff166003811061122f5761122f612ffb565b61198b848484612019565b6001600160a01b0383163b151580156119ad57506119ab848484846123fd565b155b156119cb576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606119dc82611f85565b6119f957604051630a14c4b560e41b815260040160405180910390fd5b611a016124f4565b6000838152600f60209081526040918290209151611a2193929101612de1565b6040516020818303038152906040529050919050565b6008546001600160a01b03163314611a915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610798565b6001600160a01b03811660009081526009602052604090205460ff1615611acb57604051630db2516960e41b815260040160405180910390fd5b6001600160a01b03166000908152600960205260409020805460ff19166001179055565b6001600160a01b03811660009081526005602052604081205468010000000000000000900467ffffffffffffffff166105b7565b6008546001600160a01b03163314611b7d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610798565b60015460005403611b8d33611301565b146110755760405162df319960e51b815260206004820152602660248201527f706f74656e7469616c206572726f72202d206e6f7420616c6c20746f6b656e73604482015265081bdddb995960d21b6064820152608401610798565b611bf2336103f3565b611c0f5760405163093b290f60e01b815260040160405180910390fd5b60195460ff16611c20576001611c23565b60005b6019805460ff1916911515919091179055565b6060600b80546105cc90612faa565b611c4e336103f3565b611c6b5760405163093b290f60e01b815260040160405180910390fd5b60168360ff1660038110611c8157611c81612ffb565b018054611c8d90612faa565b80601f0160208091040260200160405190810160405280929190818152602001828054611cb990612faa565b8015611d065780601f10611cdb57610100808354040283529160200191611d06565b820191906000526020600020905b815481529060010190602001808311611ce957829003601f168201915b505050505082828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d4e9250849150839050612242565b15611d975760405162df319960e51b81526020600482015260196024820152781cdd1c9a5b99dcc81b5d5cdd08189948191a5999995c995b9d603a1b6044820152606401610798565b838360168760ff166003811061122f5761122f612ffb565b6008546001600160a01b03163314611e095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610798565b6001600160a01b038116611e6e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610798565b6110c28161239e565b611e80336103f3565b611e9d5760405163093b290f60e01b815260040160405180910390fd5b6002600a541415611ef05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610798565b6002600a5547811115611f455760405162df319960e51b815260206004820152601e60248201527f696e73756666696369656e742066756e647320746f20776974686472617700006044820152606401610798565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015611f7b573d6000803e3d6000fd5b50506001600a5550565b60008054821080156105b7575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061202482612282565b9050836001600160a01b031681600001516001600160a01b03161461205b5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061209757506001600160a01b038516600090815260076020908152604080832033845290915290205460ff165b806120b25750336120a78461064f565b6001600160a01b0316145b9050806120d257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166120f957604051633a954ecd60e21b815260040160405180910390fd5b61210560008487611fb0565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166121db5760005482146121db578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610f0b565b61223e828260405180602001604052806000815250612503565b5050565b80518251600091849184911461225d576000925050506105b7565b8080519060200120828051906020012014925050506105b7565b6110c2816000612510565b60408051606081018252600080825260208201819052918101919091528160005481101561238557600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906123835780516001600160a01b031615612319579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff161515928101929092521561237e579392505050565b612319565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612432903390899088908890600401612e92565b602060405180830381600087803b15801561244c57600080fd5b505af192505050801561247c575060408051601f3d908101601f1916820190925261247991810190612c52565b60015b6124d7573d8080156124aa576040519150601f19603f3d011682016040523d82523d6000602084013e6124af565b606091505b5080516124cf576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600c80546105cc90612faa565b6107398383836001612709565b600061251b83612282565b8051909150821561259f576000336001600160a01b038316148061256257506001600160a01b038216600090815260076020908152604080832033845290915290205460ff165b8061257d5750336125728661064f565b6001600160a01b0316145b90508061259d57604051632ce44b5f60e11b815260040160405180910390fd5b505b6125ab60008583611fb0565b6001600160a01b038082166000818152600560209081526040808320805470010000000000000000000000000000000060001967ffffffffffffffff80841691909101811667ffffffffffffffff19841681178390048216600190810183169093027fffffffffffffffff0000000000000000ffffffffffffffff0000000000000000909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b1785559189018084529220805491949091166126bf5760005482146126bf578054602087015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b6000546001600160a01b03851661273257604051622e076360e81b815260040160405180910390fd5b836127505760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561280257506001600160a01b0387163b15155b1561288b575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461285360008884806001019550886123fd565b612870576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561280857826000541461288657600080fd5b6128d1565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561288c575b50600055610f0b565b8280546128e690612faa565b90600052602060002090601f0160209004810192826129085760008555612955565b82601f106129195780548555612955565b8280016001018555821561295557600052602060002091601f016020900482015b8281111561295557825482559160010191906001019061293a565b506129619291506129d9565b5090565b82805461297190612faa565b90600052602060002090601f0160209004810192826129935760008555612955565b82601f106129ac5782800160ff19823516178555612955565b82800160010185558215612955579182015b828111156129555782358255916020019190600101906129be565b5b8082111561296157600081556001016129da565b60008083601f840112612a0057600080fd5b50813567ffffffffffffffff811115612a1857600080fd5b602083019150836020828501011115612a3057600080fd5b9250929050565b600060208284031215612a4957600080fd5b8135612a5481613027565b9392505050565b600060208284031215612a6d57600080fd5b8151612a5481613027565b60008060408385031215612a8b57600080fd5b8235612a9681613027565b946020939093013593505050565b60008060408385031215612ab757600080fd5b8235612ac281613027565b91506020830135612ad281613027565b809150509250929050565b600080600060608486031215612af257600080fd5b8335612afd81613027565b92506020840135612b0d81613027565b929592945050506040919091013590565b60008060008060808587031215612b3457600080fd5b8435612b3f81613027565b93506020850135612b4f81613027565b925060408501359150606085013567ffffffffffffffff811115612b7257600080fd5b8501601f81018713612b8357600080fd5b8035612b96612b9182612f12565b612ee1565b818152886020838501011115612bab57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060408385031215612be057600080fd5b8235612beb81613027565b915060208301358015158114612ad257600080fd5b600080600060608486031215612c1557600080fd5b8335612c2081613027565b95602085013595506040909401359392505050565b600060208284031215612c4757600080fd5b8135612a548161303c565b600060208284031215612c6457600080fd5b8151612a548161303c565b60008060208385031215612c8257600080fd5b823567ffffffffffffffff811115612c9957600080fd5b612ca5858286016129ee565b90969095509350505050565b600060208284031215612cc357600080fd5b815167ffffffffffffffff811115612cda57600080fd5b8201601f81018413612ceb57600080fd5b8051612cf9612b9182612f12565b818152856020838501011115612d0e57600080fd5b612d1f826020830160208601612f7e565b95945050505050565b600060208284031215612d3a57600080fd5b5035919050565b600060208284031215612d5357600080fd5b5051919050565b600080600060408486031215612d6f57600080fd5b833560ff81168114612d8057600080fd5b9250602084013567ffffffffffffffff811115612d9c57600080fd5b612da8868287016129ee565b9497909650939450505050565b60008151808452612dcd816020860160208601612f7e565b601f01601f19169290920160200192915050565b600083516020612df48285838901612f7e565b845491840191600090600181811c9080831680612e1257607f831692505b858310811415612e3057634e487b7160e01b85526022600452602485fd5b808015612e445760018114612e5557612e82565b60ff19851688528388019550612e82565b60008b81526020902060005b85811015612e7a5781548a820152908401908801612e61565b505083880195505b50939a9950505050505050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612ec46080830184612db5565b9695505050505050565b602081526000612a546020830184612db5565b604051601f8201601f1916810167ffffffffffffffff81118282101715612f0a57612f0a613011565b604052919050565b600067ffffffffffffffff821115612f2c57612f2c613011565b50601f01601f191660200190565b60008219821115612f4d57612f4d612fe5565b500190565b600067ffffffffffffffff808316818516808303821115612f7557612f75612fe5565b01949350505050565b60005b83811015612f99578181015183820152602001612f81565b838111156119cb5750506000910152565b600181811c90821680612fbe57607f821691505b60208210811415612fdf57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146110c257600080fd5b6001600160e01b0319811681146110c257600080fdfea2646970667358221220da3fa10032c255a18131fa16f23689796c48e8301cb177b7c7c7821e56da213764736f6c63430008070033

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

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