ETH Price: $2,285.86 (+0.40%)

Token

Juice Box ()
 

Overview

Max Total Supply

0 Juice Box

Holders

7

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
the Plug: Deployer
Balance
0 Juice Box
0x6b8c6e15818c74895c31a1c91390b3d42b336799
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:
JuiceBox

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : JuiceBox.sol
// SPDX-License-Identifier: MIT
/*
 * JuiceBox.sol
 *
 * Created: October 27, 2021
 *
 * Price: FREE
 * Rinkeby: 0x09494437a042494eAdA9801A85eE494cFB27D75b
 * Mainnet:
 *
 * Description: An ERC-721 token that will be claimable by anyone who owns 'the Plug'
 *
 *  - There will be 4 variations, each with a different rarity (based on how likely it is
 *    to receive, i.e. v1:60%, v2:20%, v3:15%, v4:5%)
 *  - Owners with multiple Plugs will benefit through a distribution scheme that shifts 
 *    the probability of minting each variation towards 25%
 */

pragma solidity >=0.5.16 <0.9.0;

import "./Kasbeer721.sol";

//@title Juice Box
//@author Jack Kasbeer (gh:@jcksber, tw:@satoshigoat, ig:overprivilegd)
contract JuiceBox is Kasbeer721 {

	// -------------
	// EVENTS & VARS
	// -------------

	event JuiceBoxMinted(uint256 indexed a);
	event JuiceBoxBurned(uint256 indexed a);

	//@dev This is how we'll keep track of who has already minted a JuiceBox
	mapping (address => bool) internal _boxHolders;

	//@dev Keep track of which token ID is associated with which hash
	mapping (uint256 => string) internal _tokenToHash;

	//@dev Initial production hashes
	string [NUM_ASSETS] boxHashes = ["QmbZH1NZLvUTqeaHXH37fVnb7QHcCFDsn4QKvicM1bmn5j", 
									 "QmVXiZFCwxBiJQJCpiSCKz8TkaWmnEBpT6stmxYqRK4FeY", 
									 "Qmds7Ag48sfeodwmtWmTokFGZoHiGZXYN2YbojtjTR7GhR", 
									 "QmeUPdEvAU5sSEv1Nwixbu1oxkSFCY194m8Drm9u3rtVWg"];
									 //cherry, berry, kiwi, lemon

	//@dev Associated weights of probability for hashes
	uint16 [NUM_ASSETS] boxWeights = [60, 23, 15, 2];//cherry, berry, kiwi, lemon

	//@dev Secret word to prevent etherscan claims
	string private _secret;

	constructor(string memory secret) Kasbeer721("Juice Box", "") {
		_whitelistActive = true;
		_secret = secret;
		_contractUri = "ipfs://QmdafigFsnSjondbSFKWhV2zbCf8qF5xEkgNoCYcnanhD6";
		payoutAddress = 0x6b8C6E15818C74895c31A1C91390b3d42B336799;//logik
	}

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

	modifier boxAvailable()
	{
		require(getCurrentId() < MAX_NUM_TOKENS, "JuiceBox: no JuiceBox's left to mint");
		_;
	}

	modifier tokenExists(uint256 tokenId)
	{
		require(_exists(tokenId), "JuiceBox: nonexistent token");
		_;
	}

	// ---------------
	// JUICE BOX MAGIC 
	// ---------------

	//@dev Override 'tokenURI' to account for asset/hash cycling
	function tokenURI(uint256 tokenId) 
		public view virtual override tokenExists(tokenId) 
		returns (string memory) 
	{	
		return string(abi.encodePacked(_baseURI(), _tokenToHash[tokenId]));
	}

	//@dev Get the secret word
	function _getSecret() private view returns (string memory)
	{
		return _secret;
	}

	//// ----------------------
    //// IPFS HASH MANIPULATION
    //// ----------------------

    //@dev Get the hash stored at `idx` 
	function getHashByIndex(uint8 idx) public view hashIndexInRange(idx)
	  returns (string memory)
	{
		return boxHashes[idx];
	}

	//@dev Allows us to update the IPFS hash values (one at a time)
	// 0:cherry, 1:berry, 2:kiwi, 3:lemon
	function updateHashForIndex(uint8 idx, string memory str) 
		public isSquad hashIndexInRange(idx)
	{
		boxHashes[idx] = str;
	}

    // ------------------
    // MINTING & CLAIMING
    // ------------------

    //@dev Allows owners to mint for free
    function mint(address to) public virtual override isSquad boxAvailable
    	returns (uint256 tid)
    {
    	tid = _mintInternal(to);
    	_assignHash(tid, 1);
    }

    //@dev Mint a specific juice box (owners only)
    function mintWithHash(address to, string memory hash) public isSquad returns (uint256 tid)
    {
    	tid = _mintInternal(to);
    	_tokenToHash[tid] = hash;
    }

    //@dev Claim a JuiceBox if you're a Plug holder
    function claim(address to, uint8 numPlugs, string memory secret) public 
    	boxAvailable whitelistEnabled onlyWhitelist(to) saleActive
    	returns (uint256 tid, string memory hash)
    {
    	require(!_boxHolders[to], "JuiceBox: cannot claim more than 1");
    	require(!_isContract(to), "JuiceBox: silly rabbit :P");
    	require(_stringsEqual(secret, _getSecret()), "JuiceBox: silly rabbit :P");

    	tid = _mintInternal(to);
    	hash = _assignHash(tid, numPlugs);
    }

	//@dev Mints a single Juice Box & updates `_boxHolders` accordingly
	function _mintInternal(address to) internal virtual returns (uint256 newId)
	{
		_incrementTokenId();

		newId = getCurrentId();

		_safeMint(to, newId);
		_markAsClaimed(to);

		emit JuiceBoxMinted(newId);
	}

	//@dev Based on the number of Plugs owned by the sender, randomly select 
	// a JuiceBox hash that will be associated with their token id
	function _assignHash(uint256 tid, uint8 numPlugs) private tokenExists(tid)
		returns (string memory hash)
	{
		uint8[] memory weights = new uint8[](NUM_ASSETS);
		//calculate new weights based on `numPlugs`
		if (numPlugs > 15) numPlugs = 15;
		weights[0] = uint8(boxWeights[0] - 35*((numPlugs-1)/10));//cherry: 60% -> 25%
		weights[1] = uint8(boxWeights[1] +  2*((numPlugs-1)/10));//berry:  23% -> 25%
		weights[2] = uint8(boxWeights[2] + 10*((numPlugs-1)/10));//kiwi:   15% -> 25%
		weights[3] = uint8(boxWeights[3] + 23*((numPlugs-1)/10));//lemon:   2% -> 25%

		uint16 rnd = random() % 100;//should be b/n 0 & 100
		//randomly select a juice box hash
		uint8 i;
		for (i = 0; i < NUM_ASSETS; i++) {
			if (rnd < weights[i]) {
				hash = boxHashes[i];
				break;
			}
			rnd -= weights[i];
		}
		//assign the selected hash to this token id
		_tokenToHash[tid] = hash;
	}

	//@dev Update `_boxHolders` so that `a` cannot claim another juice box
	function _markAsClaimed(address a) private
	{
		_boxHolders[a] = true;
	}

	function getHashForTid(uint256 tid) public view tokenExists(tid) 
		returns (string memory)
	{
		return _tokenToHash[tid];
	}

	//@dev Pseudo-random number generator
	function random() public view returns (uint16 rnd)
	{
		return uint16(uint(keccak256(abi.encodePacked(block.difficulty, block.timestamp, boxWeights))));
	}
}

File 2 of 18 : Kasbeer721.sol
// SPDX-License-Identifier: MIT
/*
 * Kasbeer721.sol
 *
 * Created: October 27, 2021
 *
 * Tuned-up ERC721 that covers a multitude of features that are generally useful
 * so that it can be easily extended for quick customization .
 */

pragma solidity >=0.5.16 <0.9.0;


import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

import "./access/Whitelistable.sol";
import "./access/Pausable.sol";
import "./utils/LibPart.sol";


//@title Kasbeer721 - Beefed up ERC721
//@author Jack Kasbeer (git:@jcksber, tw:@satoshigoat, ig:overprivilegd)
contract Kasbeer721 is ERC721, Whitelistable, Pausable {

	using SafeMath for uint256;
	using Counters for Counters.Counter;

	// -------------
	// EVENTS & VARS
	// -------------

	event Kasbeer721Minted(uint256 indexed tokenId);
	event Kasbeer721Burned(uint256 indexed tokenId);

    //@dev Token incrementing
	Counters.Counter internal _tokenIds;

	//@dev Important numbers
	uint constant NUM_ASSETS = 4;//4 juice box variations
	uint constant MAX_NUM_TOKENS = 111;

	//@dev Properties
	string internal _contractUri;
	address public payoutAddress;

	//@dev These are needed for contract compatability
	uint256 constant public royaltyFeeBps = 1000; // 10%
    bytes4 internal constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
    bytes4 internal constant _INTERFACE_ID_ERC721 = 0x80ac58cd;
    bytes4 internal constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;
    bytes4 internal constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;
    bytes4 internal constant _INTERFACE_ID_EIP2981 = 0x2a55205a;
    bytes4 internal constant _INTERFACE_ID_ROYALTIES = 0xcad96cca;

	constructor(string memory temp_name, string memory temp_symbol) 
		ERC721(temp_name, temp_symbol) {}

	// ---------
	// MODIFIERS
	// ---------

	modifier hashIndexInRange(uint8 idx)
	{
		require(0 <= idx && idx < NUM_ASSETS, "Kasbeer721: index OOB");
		_;
	}
	
	modifier onlyValidTokenId(uint256 tokenId)
	{
		require(1 <= tokenId && tokenId <= MAX_NUM_TOKENS, "Kasbeer721: tokenId OOB");
		_;
	}

	// ----------
	// MAIN LOGIC
	// ----------

	//@dev All of the asset's will be pinned to IPFS
	function _baseURI() 
		internal view virtual override returns (string memory)
	{
		return "ipfs://";
	}

	//@dev This is here as a reminder to override for custom transfer functionality
	function _beforeTokenTransfer(address from, address to, uint256 tokenId) 
		internal virtual override 
	{ 
		super._beforeTokenTransfer(from, to, tokenId);
	}

	//@dev Allows owners to mint for free
    function mint(address to) public virtual isSquad returns (uint256)
    {
    	_tokenIds.increment();

		uint256 newId = _tokenIds.current();
		_safeMint(to, newId);
		emit Kasbeer721Minted(newId);

		return newId;
    }

	//@dev Custom burn function - nothing special
	function burn(uint256 tokenId) public virtual
	{
		require(
			isInSquad(_msgSender()) || 
			_msgSender() == ownerOf(tokenId), 
			"Kasbeer721: not owner or in squad."
		);

		_burn(tokenId);
		emit Kasbeer721Burned(tokenId);
	}

    //// --------
	//// CONTRACT
	//// --------

	//@dev Controls the contract-level metadata to include things like royalties
	function contractURI() public view returns(string memory)
	{
		return _contractUri;
	}

	//@dev Ability to change the contract URI
	function updateContractUri(string memory updatedContractUri) public isSquad
	{
        _contractUri = updatedContractUri;
    }

    //@dev Allows us to withdraw funds collected
	function withdraw(address payable wallet, uint256 amount) public isSquad
	{
		require(amount <= address(this).balance,
			"Kasbeer721: Insufficient funds to withdraw");
		wallet.transfer(amount);
	}

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

    //@dev Returns the current token id (number minted so far)
	function getCurrentId() public view returns (uint256)
	{
		return _tokenIds.current();
	}

	//@dev Increments `_tokenIds` by 1
	function _incrementTokenId() internal 
	{
		_tokenIds.increment();
	}

	//@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)
	{
		uint32 size;
		assembly {
			size := extcodesize(a)
		}
		return size > 0;
	}

	// -----------------
    // SECONDARY MARKETS
	// -----------------

	//@dev Rarible Royalties V2
    function getRaribleV2Royalties(uint256 id) 
    	onlyValidTokenId(id) external view returns (LibPart.Part[] memory) 
    {
        LibPart.Part[] memory royalties = new LibPart.Part[](1);
        royalties[0] = LibPart.Part({
            account: payable(payoutAddress),
            value: uint96(royaltyFeeBps)
        });

        return royalties;
    }

    //@dev EIP-2981
    function royaltyInfo(uint256 tokenId, uint256 salePrice) external view onlyValidTokenId(tokenId) returns (address receiver, uint256 amount) {
        uint256 ourCut = SafeMath.div(SafeMath.mul(salePrice, royaltyFeeBps), 10000);
        return (payoutAddress, ourCut);
    }

    // -----------------
    // INTERFACE SUPPORT
    // -----------------

    //@dev Confirm that this contract is compatible w/ these interfaces
    function supportsInterface(bytes4 interfaceId) 
		public view virtual override returns (bool)
	{
		return interfaceId == _INTERFACE_ID_ERC165
        || interfaceId == _INTERFACE_ID_ROYALTIES
        || interfaceId == _INTERFACE_ID_ERC721
        || interfaceId == _INTERFACE_ID_ERC721_METADATA
        || interfaceId == _INTERFACE_ID_ERC721_ENUMERABLE
        || interfaceId == _INTERFACE_ID_EIP2981
        || super.supportsInterface(interfaceId);
	}
}

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

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 4 of 18 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 5 of 18 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 6 of 18 : Whitelistable.sol
// SPDX-License-Identifier: MIT
/*
 * Whitelistable.sol
 *
 * Created: December 21, 2021
 *
 * Provides functionality for a "whitelist"/"guestlist" for inheriting contracts.
 */

pragma solidity >=0.5.16 <0.9.0;

import "./SquadOwnable.sol";

//@title Whitelistable
//@author Jack Kasbeer (gh:@jcksber, tw:@satoshigoat, ig:overprivilegd)
contract Whitelistable is SquadOwnable {

	// -------------
	// EVENTS & VARS
	// -------------

	event WhitelistActivated(address indexed a);
	event WhitelistDeactivated(address indexed a);

	//@dev Whitelist mapping for client addresses
	mapping (address => bool) internal _whitelist;

	//@dev Whitelist flag for active/inactive states
	bool internal _whitelistActive;

	constructor() {
		_whitelistActive = false;
		//add myself and then logik (client)
		_whitelist[0xB9699469c0b4dD7B1Dda11dA7678Fa4eFD51211b] = true;
		_whitelist[0x6b8C6E15818C74895c31A1C91390b3d42B336799] = true;
	}

	// ---------
	// MODIFIERS
	// ---------

	//@dev Determine if someone is in the whitelsit
	modifier onlyWhitelist(address a)
	{
		require(isWhitelisted(a), "Whitelistable: must be on whitelist");
		_;
	}

	//@dev Prevent non-whitelist minting functions from being used 
	modifier whitelistDisabled()
	{
		require(_whitelistActive == false, "Whitelistable: whitelist still active");
		_;
	}

	//@dev Require that the whitelist is currently enabled
	modifier whitelistEnabled() 
	{
		require(_whitelistActive == true, "Whitelistable: whitelist not active");
		_;
	}

	// ----------
	// MAIN LOGIC
	// ----------

	//@dev Toggle the state of the whitelist (on/off)
	function toggleWhitelist() public isSquad
	{
		_whitelistActive = !_whitelistActive;

		if (_whitelistActive) {
			emit WhitelistActivated(_msgSender());
		} else {
			emit WhitelistDeactivated(_msgSender());
		}
	}

	//@dev Determine if `a` is in the `_whitelist
	function isWhitelisted(address a) public view returns (bool)
	{
		return _whitelist[a];
	}

	//// ----------
	//// ADD/REMOVE
	//// ----------

	//@dev Add a single address to whitelist
	function addToWhitelist(address a) public isSquad
	{
		require(!isWhitelisted(a), "Whitelistable: already whitelisted"); 
		_whitelist[a] = true;
	}

	//@dev Remove a single address from the whitelist
	function removeFromWhitelist(address a) public isSquad
	{
		require(isWhitelisted(a), "Whitelistable: not in whitelist");
		_whitelist[a] = false;
	}

	//@dev Add a list of addresses to the whitelist
	function bulkAddToWhitelist(address[] memory addresses) public isSquad
	{
		uint addrLen = addresses.length;

		require(addrLen > 1, "Whitelistable: use `addToWhitelist` instead");
		require(addrLen < 65536, "Whitelistable: cannot add more than 65535 at once");

		uint16 i;
		for (i = 0; i < addrLen; i++) {
			if (!isWhitelisted(addresses[i])) {
				_whitelist[addresses[i]] = true;
			}
		}
	}
}

File 7 of 18 : Pausable.sol
// SPDX-License-Identifier: MIT
/*
 * Pausable.sol
 *
 * Created: December 21, 2021
 *
 * Provides functionality for pausing and unpausing the sale (or other functionality)
 */

pragma solidity >=0.5.16 <0.9.0;

import "./SquadOwnable.sol";

//@title Pausable
//@author Jack Kasbeer (gh:@jcksber, tw:@satoshigoat, ig:overprivilegd)
contract Pausable is SquadOwnable {

	// -------------
	// EVENTS & VARS
	// -------------

	event Paused(address indexed a);
	event Unpaused(address indexed a);

	bool private _paused;

	constructor() {
		_paused = false;
	}

	// ---------
	// MODIFIERS
	// ---------

	//@dev This will require the sale to be unpaused
	modifier saleActive()
	{
		require(!_paused, "Pausable: sale paused.");
		_;
	}

	// ----------
	// MAIN LOGIC
	// ----------

	//@dev Pause or unpause minting
	function toggleSaleActive() public isSquad
	{
		_paused = !_paused;

		if (_paused) {
			emit Paused(_msgSender());
		} else {
			emit Unpaused(_msgSender());
		}
	}

	//@dev Determine if the sale is currently paused
	function paused() public view virtual returns (bool)
	{
		return _paused;
	}
}

File 8 of 18 : LibPart.sol
// SPDX-License-Identifier: MIT
/*
 * LibPart.sol
 *
 * Author: Jack Kasbeer (taken from 'dot')
 * Created: October 20, 2021
 */

pragma solidity >=0.5.16 <0.9.0;

//@dev We need this libary for Rarible
library LibPart {
    bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)");

    struct Part {
        address payable account;
        uint96 value;
    }

    function hash(Part memory part) internal pure returns (bytes32) {
        return keccak256(abi.encode(TYPE_HASH, part.account, part.value));
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 11 of 18 : 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 12 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 13 of 18 : 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 14 of 18 : 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 15 of 18 : 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 16 of 18 : 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 17 of 18 : 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";

//@title SquadOwnable
//@author Jack Kasbeer (gh:@jcksber, tw:@satoshigoat, ig:overprivilegd)
contract SquadOwnable is Ownable {

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

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

	//@dev Custom modifier for multiple owners
	modifier isSquad()
	{
		require(isInSquad(_msgSender()), "SquadOwnable: Caller not part of squad.");
		_;
	}

	//@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) public onlyOwner
	{
		require(!isInSquad(a), "SquadOwnable: Address already in squad.");
		_squad[a] = true;
	}

	//@dev Remove `a` from the squad
	function removeFromSquad(address a) public onlyOwner
	{
		require(isInSquad(a), "SquadOwnable: Address already not in squad.");
		_squad[a] = false;
	}
}

File 18 of 18 : 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": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"secret","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"a","type":"uint256"}],"name":"JuiceBoxBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"a","type":"uint256"}],"name":"JuiceBoxMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Kasbeer721Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Kasbeer721Minted","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":"a","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"a","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"a","type":"address"}],"name":"WhitelistActivated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"a","type":"address"}],"name":"WhitelistDeactivated","type":"event"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"addToSquad","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"addToWhitelist","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":"address[]","name":"addresses","type":"address[]"}],"name":"bulkAddToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"numPlugs","type":"uint8"},{"internalType":"string","name":"secret","type":"string"}],"name":"claim","outputs":[{"internalType":"uint256","name":"tid","type":"uint256"},{"internalType":"string","name":"hash","type":"string"}],"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":[],"name":"getCurrentId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"idx","type":"uint8"}],"name":"getHashByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tid","type":"uint256"}],"name":"getHashForTid","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"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":[{"internalType":"address","name":"a","type":"address"}],"name":"isWhitelisted","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"}],"name":"mint","outputs":[{"internalType":"uint256","name":"tid","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"hash","type":"string"}],"name":"mintWithHash","outputs":[{"internalType":"uint256","name":"tid","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payoutAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"random","outputs":[{"internalType":"uint16","name":"rnd","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"removeFromSquad","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"removeFromWhitelist","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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"updatedContractUri","type":"string"}],"name":"updateContractUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"idx","type":"uint8"},{"internalType":"string","name":"str","type":"string"}],"name":"updateHashForIndex","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"}]

610160604052602e6101008181526080918291906200381d6101203981526020016040518060600160405280602e81526020016200384b602e913981526020016040518060600160405280602e81526020016200378c602e913981526020016040518060600160405280602e8152602001620037ba602e913990526200008a90600f90600462000316565b5060408051608081018252603c815260176020820152600f9181019190915260026060820152620000c09060139060046200036d565b50348015620000ce57600080fd5b506040516200387938038062003879833981016040819052620000f191620004fc565b60405180604001604052806009815260200168094ead2c6ca4084def60bb1b81525060405180602001604052806000815250818181600090805190602001906200013d92919062000405565b5080516200015390600190602084019062000405565b505050620001706200016a620002c060201b60201c565b620002c4565b50507f1e8641352ea405ab894721c4470ed0840757efa91be5c7139614432b27746d608054600160ff1991821681179092557ff136ceb6f33de17e904630771b9b90c6d5ff132954a37f9160c62186a694860a805482168317905560098054600860209081527f33229407dcf1122ea1a85cd699b612f647606b8c3f4b9294fcb8b9160e8086c28054851686179055736b8c6e15818c74895c31a1c91390b3d42b3367996000527f449635ae2920e9bee2eacf80bf47b812f795c424e8f2da43e094a640589d75958054909416851790935561ffff1916909217909155815162000261916014919084019062000405565b50604051806060016040528060358152602001620037e86035913980516200029291600b9160209091019062000405565b5050600c80546001600160a01b031916736b8c6e15818c74895c31a1c91390b3d42b3367991790556200062b565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82600481019282156200035b579160200282015b828111156200035b57825180516200034a91849160209091019062000405565b50916020019190600101906200032a565b506200036992915062000482565b5090565b600183019183908215620003f75791602002820160005b83821115620003c557835183826101000a81548161ffff021916908360ff160217905550926020019260020160208160010104928301926001030262000384565b8015620003f55782816101000a81549061ffff0219169055600201602081600101049283019260010302620003c5565b505b5062000369929150620004a3565b8280546200041390620005d8565b90600052602060002090601f016020900481019282620004375760008555620003f7565b82601f106200045257805160ff1916838001178555620003f7565b82800160010185558215620003f7579182015b82811115620003f757825182559160200191906001019062000465565b8082111562000369576000620004998282620004ba565b5060010162000482565b5b80821115620003695760008155600101620004a4565b508054620004c890620005d8565b6000825580601f10620004d9575050565b601f016020900490600052602060002090810190620004f99190620004a3565b50565b600060208083850312156200051057600080fd5b82516001600160401b03808211156200052857600080fd5b818501915085601f8301126200053d57600080fd5b81518181111562000552576200055262000615565b604051601f8201601f19908116603f011681019083821181831017156200057d576200057d62000615565b8160405282815288868487010111156200059657600080fd5b600093505b82841015620005ba57848401860151818501870152928501926200059b565b82841115620005cc5760008684830101525b98975050505050505050565b600181811c90821680620005ed57607f821691505b602082108114156200060f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b613151806200063b6000396000f3fe608060405234801561001057600080fd5b50600436106102695760003560e01c80636e3b5c1211610151578063b52f10d7116100c3578063df1ddfa211610087578063df1ddfa214610568578063e43252d714610589578063e8a3d4851461059c578063e985e9c5146105a4578063f2fde38b146105b7578063f3fef3a3146105ca57600080fd5b8063b52f10d7146104fc578063b88d4fde1461050f578063c87b56dd14610522578063cad96cca14610535578063d3ad3c191461055557600080fd5b80637e15144b116101155780637e15144b146104ac5780638ab1d681146104b45780638da5cb5b146104c757806391192765146104d857806395d89b41146104e1578063a22cb465146104e957600080fd5b80636e3b5c121461043f57806370a0823114610452578063715018a61461046557806371f24d4c1461046d5780637c461e181461048057600080fd5b806342842e0e116101ea5780635c975abb116101ae5780635c975abb146103d35780635ec01e4d146103e35780636352211e146103fe5780636a627842146104115780636c143862146104245780636c79af101461042c57600080fd5b806342842e0e1461037457806342966c681461038757806347c8ff5e1461039a5780634dc91393146103ad5780635b8d02d7146103c057600080fd5b806323b872dd1161023157806323b872dd1461030c5780632a55205a1461031f5780633100a535146103515780633af32abf1461035957806341c0e1b51461036c57600080fd5b806301ffc9a71461026e57806306fdde0314610296578063081812fc146102ab578063095ea7b3146102d65780630cf7a288146102eb575b600080fd5b61028161027c366004612a63565b6105dd565b60405190151581526020015b60405180910390f35b61029e61068f565b60405161028d9190612cc4565b6102be6102b9366004612ad2565b610721565b6040516001600160a01b03909116815260200161028d565b6102e96102e43660046127a1565b6107ae565b005b6102fe6102f93660046128fa565b6108c4565b60405190815260200161028d565b6102e961031a366004612806565b61091f565b61033261032d366004612aeb565b610950565b604080516001600160a01b03909316835260208301919091520161028d565b6102e96109dd565b610281610367366004612784565b610a85565b6102e9610aa3565b6102e9610382366004612806565b610ad0565b6102e9610395366004612ad2565b610aeb565b6102e96103a8366004612a9d565b610ba6565b61029e6103bb366004612b0d565b610be2565b600c546102be906001600160a01b031681565b600954610100900460ff16610281565b6103eb610cd9565b60405161ffff909116815260200161028d565b6102be61040c366004612ad2565b610d48565b6102fe61041f366004612784565b610dbf565b6102fe610e23565b6102e961043a3660046129aa565b610e33565b6102e961044d366004612784565b610fd1565b6102fe610460366004612784565b611085565b6102e961110c565b61029e61047b366004612ad2565b611140565b61028161048e366004612784565b6001600160a01b031660009081526007602052604090205460ff1690565b6102e9611181565b6102e96104c2366004612784565b61121b565b6006546001600160a01b03166102be565b6102fe6103e881565b61029e6112b6565b6102e96104f73660046128c7565b6112c5565b6102e961050a366004612b28565b6112d0565b6102e961051d366004612847565b611372565b61029e610530366004612ad2565b6113a4565b610548610543366004612ad2565b61141d565b60405161028d9190612c5e565b6102e9610563366004612784565b6114fe565b61057b61057636600461294a565b6115b2565b60405161028d929190612e71565b6102e9610597366004612784565b611831565b61029e6118db565b6102816105b23660046127cd565b6118ea565b6102e96105c5366004612784565b611918565b6102e96105d83660046127a1565b6119b3565b60006001600160e01b031982166301ffc9a760e01b148061060e57506001600160e01b0319821663656cb66560e11b145b8061062957506001600160e01b031982166380ac58cd60e01b145b8061064457506001600160e01b03198216635b5e139f60e01b145b8061065f57506001600160e01b0319821663780e9d6360e01b145b8061067a57506001600160e01b0319821663152a902d60e11b145b80610689575061068982611a71565b92915050565b60606000805461069e90613000565b80601f01602080910402602001604051908101604052809291908181526020018280546106ca90613000565b80156107175780601f106106ec57610100808354040283529160200191610717565b820191906000526020600020905b8154815290600101906020018083116106fa57829003601f168201915b5050505050905090565b600061072c82611ac1565b6107925760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006107b982610d48565b9050806001600160a01b0316836001600160a01b031614156108275760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610789565b336001600160a01b0382161480610843575061084381336118ea565b6108b55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610789565b6108bf8383611ade565b505050565b60006108cf3361048e565b6108eb5760405162461bcd60e51b815260040161078990612dd9565b6108f483611b4c565b6000818152600e60209081526040909120845192935061091892909185019061265d565b5092915050565b6109293382611bc2565b6109455760405162461bcd60e51b815260040161078990612e20565b6108bf838383611c8c565b60008083806001111580156109665750606f8111155b6109ac5760405162461bcd60e51b815260206004820152601760248201527625b0b9b132b2b91b99189d103a37b5b2b724b21027a7a160491b6044820152606401610789565b60006109c56109bd866103e8611e2c565b612710611e3f565b600c546001600160a01b031697909650945050505050565b6109e63361048e565b610a025760405162461bcd60e51b815260040161078990612dd9565b6009805460ff610100808304821615810261ff0019909316929092179283905591041615610a575760405133907f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890600090a2565b60405133907f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90600090a25b565b6001600160a01b031660009081526008602052604090205460ff1690565b6006546001600160a01b03163314610acd5760405162461bcd60e51b815260040161078990612da4565b33ff5b6108bf83838360405180602001604052806000815250611372565b610af43361048e565b80610b185750610b0381610d48565b6001600160a01b0316336001600160a01b0316145b610b6f5760405162461bcd60e51b815260206004820152602260248201527f4b6173626565723732313a206e6f74206f776e6572206f7220696e2073717561604482015261321760f11b6064820152608401610789565b610b7881611e4b565b60405181907f4caf76a5237dbe633d5ebc0b0b5a15c50e057b099d76b698c74a0d47cc3240ec90600090a250565b610baf3361048e565b610bcb5760405162461bcd60e51b815260040161078990612dd9565b8051610bde90600b90602084019061265d565b5050565b60608160048160ff1610610c305760405162461bcd60e51b815260206004820152601560248201527425b0b9b132b2b91b99189d1034b73232bc1027a7a160591b6044820152606401610789565b600f8360ff1660048110610c4657610c466130c4565b018054610c5290613000565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7e90613000565b8015610ccb5780601f10610ca057610100808354040283529160200191610ccb565b820191906000526020600020905b815481529060010190602001808311610cae57829003601f168201915b505050505091505b50919050565b600044426013604051602001610d2a939291909283526020808401929092525461ffff8082166040850152601082901c811660608501529181901c8216608084015260301c1660a082015260c00190565b6040516020818303038152906040528051906020012060001c905090565b6000818152600260205260408120546001600160a01b0316806106895760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610789565b6000610dca3361048e565b610de65760405162461bcd60e51b815260040161078990612dd9565b606f610df0610e23565b10610e0d5760405162461bcd60e51b815260040161078990612cd7565b610e1682611b4c565b9050610cd3816001611ee6565b6000610e2e600a5490565b905090565b610e3c3361048e565b610e585760405162461bcd60e51b815260040161078990612dd9565b805160018111610ebe5760405162461bcd60e51b815260206004820152602b60248201527f57686974656c69737461626c653a207573652060616464546f57686974656c6960448201526a1cdd18081a5b9cdd19585960aa1b6064820152608401610789565b620100008110610f2a5760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c653a2063616e6e6f7420616464206d6f7265207460448201527068616e203635353335206174206f6e636560781b6064820152608401610789565b60005b818161ffff1610156108bf57610f5f838261ffff1681518110610f5257610f526130c4565b6020026020010151610a85565b610fbf57600160086000858461ffff1681518110610f7f57610f7f6130c4565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055505b80610fc981613035565b915050610f2d565b6006546001600160a01b03163314610ffb5760405162461bcd60e51b815260040161078990612da4565b6110048161048e565b6110645760405162461bcd60e51b815260206004820152602b60248201527f53717561644f776e61626c653a204164647265737320616c7265616479206e6f60448201526a3a1034b71039b8bab0b21760a91b6064820152608401610789565b6001600160a01b03166000908152600760205260409020805460ff19169055565b60006001600160a01b0382166110f05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610789565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146111365760405162461bcd60e51b815260040161078990612da4565b610a83600061222a565b60608161114c81611ac1565b6111685760405162461bcd60e51b815260040161078990612d6d565b6000838152600e602052604090208054610c5290613000565b61118a3361048e565b6111a65760405162461bcd60e51b815260040161078990612dd9565b6009805460ff19811660ff9182161590811790925516156111ee5760405133907fe17ac05ff4095c2a1b270ddc6f70ea762311620bf4be3b1c2b0a9f4d5b16a53390600090a2565b60405133907f5a5fb1bb60b955fafbedf12a782cf1135ba3f37b851d547e79c04e55d1d9a2bb90600090a2565b6112243361048e565b6112405760405162461bcd60e51b815260040161078990612dd9565b61124981610a85565b6112955760405162461bcd60e51b815260206004820152601f60248201527f57686974656c69737461626c653a206e6f7420696e2077686974656c697374006044820152606401610789565b6001600160a01b03166000908152600860205260409020805460ff19169055565b60606001805461069e90613000565b610bde33838361227c565b6112d93361048e565b6112f55760405162461bcd60e51b815260040161078990612dd9565b8160048160ff16106113415760405162461bcd60e51b815260206004820152601560248201527425b0b9b132b2b91b99189d1034b73232bc1027a7a160591b6044820152606401610789565b81600f8460ff1660048110611358576113586130c4565b01908051906020019061136c92919061265d565b50505050565b61137c3383611bc2565b6113985760405162461bcd60e51b815260040161078990612e20565b61136c8484848461234b565b6060816113b081611ac1565b6113cc5760405162461bcd60e51b815260040161078990612d6d565b6040805180820182526007815266697066733a2f2f60c81b6020808301919091526000868152600e82528390209251611406939101612b70565b604051602081830303815290604052915050919050565b606081806001111580156114325750606f8111155b6114785760405162461bcd60e51b815260206004820152601760248201527625b0b9b132b2b91b99189d103a37b5b2b724b21027a7a160491b6044820152606401610789565b604080516001808252818301909252600091816020015b604080518082019091526000808252602082015281526020019060019003908161148f57505060408051808201909152600c546001600160a01b031681526103e8602082015281519192509082906000906114ec576114ec6130c4565b60209081029190910101529392505050565b6006546001600160a01b031633146115285760405162461bcd60e51b815260040161078990612da4565b6115318161048e565b1561158e5760405162461bcd60e51b815260206004820152602760248201527f53717561644f776e61626c653a204164647265737320616c726561647920696e6044820152661039b8bab0b21760c91b6064820152608401610789565b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b60006060606f6115c0610e23565b106115dd5760405162461bcd60e51b815260040161078990612cd7565b60095460ff1615156001146116405760405162461bcd60e51b815260206004820152602360248201527f57686974656c69737461626c653a2077686974656c697374206e6f742061637460448201526269766560e81b6064820152608401610789565b8461164a81610a85565b6116a25760405162461bcd60e51b815260206004820152602360248201527f57686974656c69737461626c653a206d757374206265206f6e2077686974656c6044820152621a5cdd60ea1b6064820152608401610789565b600954610100900460ff16156116f35760405162461bcd60e51b81526020600482015260166024820152752830bab9b0b136329d1039b0b632903830bab9b2b21760511b6044820152606401610789565b6001600160a01b0386166000908152600d602052604090205460ff16156117675760405162461bcd60e51b815260206004820152602260248201527f4a75696365426f783a2063616e6e6f7420636c61696d206d6f7265207468616e604482015261203160f01b6064820152608401610789565b853b63ffffffff16156117b85760405162461bcd60e51b815260206004820152601960248201527804a75696365426f783a2073696c6c7920726162626974203a5603c1b6044820152606401610789565b6117c9846117c461237e565b61238d565b6118115760405162461bcd60e51b815260206004820152601960248201527804a75696365426f783a2073696c6c7920726162626974203a5603c1b6044820152606401610789565b61181a86611b4c565b92506118268386611ee6565b915050935093915050565b61183a3361048e565b6118565760405162461bcd60e51b815260040161078990612dd9565b61185f81610a85565b156118b75760405162461bcd60e51b815260206004820152602260248201527f57686974656c69737461626c653a20616c72656164792077686974656c697374604482015261195960f21b6064820152608401610789565b6001600160a01b03166000908152600860205260409020805460ff19166001179055565b6060600b805461069e90613000565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146119425760405162461bcd60e51b815260040161078990612da4565b6001600160a01b0381166119a75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610789565b6119b08161222a565b50565b6119bc3361048e565b6119d85760405162461bcd60e51b815260040161078990612dd9565b47811115611a3b5760405162461bcd60e51b815260206004820152602a60248201527f4b6173626565723732313a20496e73756666696369656e742066756e647320746044820152696f20776974686472617760b01b6064820152608401610789565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156108bf573d6000803e3d6000fd5b60006001600160e01b031982166380ac58cd60e01b1480611aa257506001600160e01b03198216635b5e139f60e01b145b8061068957506301ffc9a760e01b6001600160e01b0319831614610689565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b1382610d48565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b566123c2565b611b5e610e23565b9050611b6a82826123d0565b611b92826001600160a01b03166000908152600d60205260409020805460ff19166001179055565b60405181907fdde1a3991487ef0f8934a8fe012d98d074badad7df3d2dbb48d872087cf248e890600090a2919050565b6000611bcd82611ac1565b611c2e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610789565b6000611c3983610d48565b9050806001600160a01b0316846001600160a01b03161480611c745750836001600160a01b0316611c6984610721565b6001600160a01b0316145b80611c845750611c8481856118ea565b949350505050565b826001600160a01b0316611c9f82610d48565b6001600160a01b031614611d075760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610789565b6001600160a01b038216611d695760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610789565b611d74600082611ade565b6001600160a01b0383166000908152600360205260408120805460019290611d9d908490612f9a565b90915550506001600160a01b0382166000908152600360205260408120805460019290611dcb908490612ee1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611e388284612f2f565b9392505050565b6000611e388284612ef9565b6000611e5682610d48565b9050611e63600083611ade565b6001600160a01b0381166000908152600360205260408120805460019290611e8c908490612f9a565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606082611ef281611ac1565b611f0e5760405162461bcd60e51b815260040161078990612d6d565b60408051600480825260a0820190925260009160208201608080368337019050509050600f8460ff161115611f4257600f93505b600a611f4f600186612fb1565b611f599190612f0d565b611f64906023612f4e565b601354611f789160ff169061ffff16612f77565b81600081518110611f8b57611f8b6130c4565b60ff90921660209283029190910190910152600a611faa600186612fb1565b611fb49190612f0d565b611fbf906002612f4e565b601354611fd99160ff169062010000900461ffff16612ebb565b81600181518110611fec57611fec6130c4565b60ff90921660209283029190910190910152600a61200b600186612fb1565b6120159190612f0d565b61202090600a612f4e565b60135461203c9160ff1690640100000000900461ffff16612ebb565b8160028151811061204f5761204f6130c4565b60ff90921660209283029190910190910152600a61206e600186612fb1565b6120789190612f0d565b612083906017612f4e565b6013546120a19160ff16906601000000000000900461ffff16612ebb565b816003815181106120b4576120b46130c4565b602002602001019060ff16908160ff1681525050600060646120d4610cd9565b6120de9190613077565b905060005b60048160ff16101561220057828160ff1681518110612104576121046130c4565b602002602001015160ff168261ffff1610156121c157600f8160ff1660048110612130576121306130c4565b01805461213c90613000565b80601f016020809104026020016040519081016040528092919081815260200182805461216890613000565b80156121b55780601f1061218a576101008083540402835291602001916121b5565b820191906000526020600020905b81548152906001019060200180831161219857829003601f168201915b50505050509450612200565b828160ff16815181106121d6576121d66130c4565b602002602001015160ff16826121ec9190612f77565b9150806121f881613057565b9150506120e3565b6000878152600e60209081526040909120865161221f9288019061265d565b505050505092915050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156122de5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610789565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612356848484611c8c565b612362848484846123ea565b61136c5760405162461bcd60e51b815260040161078990612d1b565b60606014805461069e90613000565b8051825160009184918491146123a857600092505050610689565b808051906020012082805190602001201492505050610689565b610a83600a80546001019055565b610bde8282604051806020016040528060008152506124f7565b60006001600160a01b0384163b156124ec57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061242e903390899088908890600401612c21565b602060405180830381600087803b15801561244857600080fd5b505af1925050508015612478575060408051601f3d908101601f1916820190925261247591810190612a80565b60015b6124d2573d8080156124a6576040519150601f19603f3d011682016040523d82523d6000602084013e6124ab565b606091505b5080516124ca5760405162461bcd60e51b815260040161078990612d1b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c84565b506001949350505050565b612501838361252a565b61250e60008484846123ea565b6108bf5760405162461bcd60e51b815260040161078990612d1b565b6001600160a01b0382166125805760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610789565b61258981611ac1565b156125d65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610789565b6001600160a01b03821660009081526003602052604081208054600192906125ff908490612ee1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461266990613000565b90600052602060002090601f01602090048101928261268b57600085556126d1565b82601f106126a457805160ff19168380011785556126d1565b828001600101855582156126d1579182015b828111156126d15782518255916020019190600101906126b6565b506126dd9291506126e1565b5090565b5b808211156126dd57600081556001016126e2565b600067ffffffffffffffff831115612710576127106130da565b612723601f8401601f1916602001612e8a565b905082815283838301111561273757600080fd5b828260208301376000602084830101529392505050565b600082601f83011261275f57600080fd5b611e38838335602085016126f6565b803560ff8116811461277f57600080fd5b919050565b60006020828403121561279657600080fd5b8135611e38816130f0565b600080604083850312156127b457600080fd5b82356127bf816130f0565b946020939093013593505050565b600080604083850312156127e057600080fd5b82356127eb816130f0565b915060208301356127fb816130f0565b809150509250929050565b60008060006060848603121561281b57600080fd5b8335612826816130f0565b92506020840135612836816130f0565b929592945050506040919091013590565b6000806000806080858703121561285d57600080fd5b8435612868816130f0565b93506020850135612878816130f0565b925060408501359150606085013567ffffffffffffffff81111561289b57600080fd5b8501601f810187136128ac57600080fd5b6128bb878235602084016126f6565b91505092959194509250565b600080604083850312156128da57600080fd5b82356128e5816130f0565b9150602083013580151581146127fb57600080fd5b6000806040838503121561290d57600080fd5b8235612918816130f0565b9150602083013567ffffffffffffffff81111561293457600080fd5b6129408582860161274e565b9150509250929050565b60008060006060848603121561295f57600080fd5b833561296a816130f0565b92506129786020850161276e565b9150604084013567ffffffffffffffff81111561299457600080fd5b6129a08682870161274e565b9150509250925092565b600060208083850312156129bd57600080fd5b823567ffffffffffffffff808211156129d557600080fd5b818501915085601f8301126129e957600080fd5b8135818111156129fb576129fb6130da565b8060051b9150612a0c848301612e8a565b8181528481019084860184860187018a1015612a2757600080fd5b600095505b83861015612a565780359450612a41856130f0565b84835260019590950194918601918601612a2c565b5098975050505050505050565b600060208284031215612a7557600080fd5b8135611e3881613105565b600060208284031215612a9257600080fd5b8151611e3881613105565b600060208284031215612aaf57600080fd5b813567ffffffffffffffff811115612ac657600080fd5b611c848482850161274e565b600060208284031215612ae457600080fd5b5035919050565b60008060408385031215612afe57600080fd5b50508035926020909101359150565b600060208284031215612b1f57600080fd5b611e388261276e565b60008060408385031215612b3b57600080fd5b6129188361276e565b60008151808452612b5c816020860160208601612fd4565b601f01601f19169290920160200192915050565b600083516020612b838285838901612fd4565b845491840191600090600181811c9080831680612ba157607f831692505b858310811415612bbf57634e487b7160e01b85526022600452602485fd5b808015612bd35760018114612be457612c11565b60ff19851688528388019550612c11565b60008b81526020902060005b85811015612c095781548a820152908401908801612bf0565b505083880195505b50939a9950505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c5490830184612b44565b9695505050505050565b602080825282518282018190526000919060409081850190868401855b82811015612cb757815180516001600160a01b031685528601516bffffffffffffffffffffffff16868501529284019290850190600101612c7b565b5091979650505050505050565b602081526000611e386020830184612b44565b60208082526024908201527f4a75696365426f783a206e6f204a75696365426f782773206c65667420746f206040820152631b5a5b9d60e21b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601b908201527f4a75696365426f783a206e6f6e6578697374656e7420746f6b656e0000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526027908201527f53717561644f776e61626c653a2043616c6c6572206e6f742070617274206f666040820152661039b8bab0b21760c91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b828152604060208201526000611c846040830184612b44565b604051601f8201601f1916810167ffffffffffffffff81118282101715612eb357612eb36130da565b604052919050565b600061ffff808316818516808303821115612ed857612ed8613098565b01949350505050565b60008219821115612ef457612ef4613098565b500190565b600082612f0857612f086130ae565b500490565b600060ff831680612f2057612f206130ae565b8060ff84160491505092915050565b6000816000190483118215151615612f4957612f49613098565b500290565b600060ff821660ff84168160ff0481118215151615612f6f57612f6f613098565b029392505050565b600061ffff83811690831681811015612f9257612f92613098565b039392505050565b600082821015612fac57612fac613098565b500390565b600060ff821660ff841680821015612fcb57612fcb613098565b90039392505050565b60005b83811015612fef578181015183820152602001612fd7565b8381111561136c5750506000910152565b600181811c9082168061301457607f821691505b60208210811415610cd357634e487b7160e01b600052602260045260246000fd5b600061ffff8083168181141561304d5761304d613098565b6001019392505050565b600060ff821660ff81141561306e5761306e613098565b60010192915050565b600061ffff8084168061308c5761308c6130ae565b92169190910692915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146119b057600080fd5b6001600160e01b0319811681146119b057600080fdfea2646970667358221220d3cc77811200c90d7f6050c01795704779f83a30a9b0ec0dc50d8bfbaf17c0eb64736f6c63430008070033516d647337416734387366656f64776d74576d546f6b46475a6f4869475a58594e3259626f6a746a545237476852516d65555064457641553573534576314e7769786275316f786b534643593139346d3844726d3975337274565767697066733a2f2f516d646166696746736e536a6f6e646253464b576856327a6243663871463578456b674e6f4359636e616e684436516d625a48314e5a4c765554716561485848333766566e6237514863434644736e34514b7669634d31626d6e356a516d5658695a4643777842694a514a43706953434b7a38546b61576d6e454270543673746d785971524b344665590000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000872756d696e617465000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102695760003560e01c80636e3b5c1211610151578063b52f10d7116100c3578063df1ddfa211610087578063df1ddfa214610568578063e43252d714610589578063e8a3d4851461059c578063e985e9c5146105a4578063f2fde38b146105b7578063f3fef3a3146105ca57600080fd5b8063b52f10d7146104fc578063b88d4fde1461050f578063c87b56dd14610522578063cad96cca14610535578063d3ad3c191461055557600080fd5b80637e15144b116101155780637e15144b146104ac5780638ab1d681146104b45780638da5cb5b146104c757806391192765146104d857806395d89b41146104e1578063a22cb465146104e957600080fd5b80636e3b5c121461043f57806370a0823114610452578063715018a61461046557806371f24d4c1461046d5780637c461e181461048057600080fd5b806342842e0e116101ea5780635c975abb116101ae5780635c975abb146103d35780635ec01e4d146103e35780636352211e146103fe5780636a627842146104115780636c143862146104245780636c79af101461042c57600080fd5b806342842e0e1461037457806342966c681461038757806347c8ff5e1461039a5780634dc91393146103ad5780635b8d02d7146103c057600080fd5b806323b872dd1161023157806323b872dd1461030c5780632a55205a1461031f5780633100a535146103515780633af32abf1461035957806341c0e1b51461036c57600080fd5b806301ffc9a71461026e57806306fdde0314610296578063081812fc146102ab578063095ea7b3146102d65780630cf7a288146102eb575b600080fd5b61028161027c366004612a63565b6105dd565b60405190151581526020015b60405180910390f35b61029e61068f565b60405161028d9190612cc4565b6102be6102b9366004612ad2565b610721565b6040516001600160a01b03909116815260200161028d565b6102e96102e43660046127a1565b6107ae565b005b6102fe6102f93660046128fa565b6108c4565b60405190815260200161028d565b6102e961031a366004612806565b61091f565b61033261032d366004612aeb565b610950565b604080516001600160a01b03909316835260208301919091520161028d565b6102e96109dd565b610281610367366004612784565b610a85565b6102e9610aa3565b6102e9610382366004612806565b610ad0565b6102e9610395366004612ad2565b610aeb565b6102e96103a8366004612a9d565b610ba6565b61029e6103bb366004612b0d565b610be2565b600c546102be906001600160a01b031681565b600954610100900460ff16610281565b6103eb610cd9565b60405161ffff909116815260200161028d565b6102be61040c366004612ad2565b610d48565b6102fe61041f366004612784565b610dbf565b6102fe610e23565b6102e961043a3660046129aa565b610e33565b6102e961044d366004612784565b610fd1565b6102fe610460366004612784565b611085565b6102e961110c565b61029e61047b366004612ad2565b611140565b61028161048e366004612784565b6001600160a01b031660009081526007602052604090205460ff1690565b6102e9611181565b6102e96104c2366004612784565b61121b565b6006546001600160a01b03166102be565b6102fe6103e881565b61029e6112b6565b6102e96104f73660046128c7565b6112c5565b6102e961050a366004612b28565b6112d0565b6102e961051d366004612847565b611372565b61029e610530366004612ad2565b6113a4565b610548610543366004612ad2565b61141d565b60405161028d9190612c5e565b6102e9610563366004612784565b6114fe565b61057b61057636600461294a565b6115b2565b60405161028d929190612e71565b6102e9610597366004612784565b611831565b61029e6118db565b6102816105b23660046127cd565b6118ea565b6102e96105c5366004612784565b611918565b6102e96105d83660046127a1565b6119b3565b60006001600160e01b031982166301ffc9a760e01b148061060e57506001600160e01b0319821663656cb66560e11b145b8061062957506001600160e01b031982166380ac58cd60e01b145b8061064457506001600160e01b03198216635b5e139f60e01b145b8061065f57506001600160e01b0319821663780e9d6360e01b145b8061067a57506001600160e01b0319821663152a902d60e11b145b80610689575061068982611a71565b92915050565b60606000805461069e90613000565b80601f01602080910402602001604051908101604052809291908181526020018280546106ca90613000565b80156107175780601f106106ec57610100808354040283529160200191610717565b820191906000526020600020905b8154815290600101906020018083116106fa57829003601f168201915b5050505050905090565b600061072c82611ac1565b6107925760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006107b982610d48565b9050806001600160a01b0316836001600160a01b031614156108275760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610789565b336001600160a01b0382161480610843575061084381336118ea565b6108b55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610789565b6108bf8383611ade565b505050565b60006108cf3361048e565b6108eb5760405162461bcd60e51b815260040161078990612dd9565b6108f483611b4c565b6000818152600e60209081526040909120845192935061091892909185019061265d565b5092915050565b6109293382611bc2565b6109455760405162461bcd60e51b815260040161078990612e20565b6108bf838383611c8c565b60008083806001111580156109665750606f8111155b6109ac5760405162461bcd60e51b815260206004820152601760248201527625b0b9b132b2b91b99189d103a37b5b2b724b21027a7a160491b6044820152606401610789565b60006109c56109bd866103e8611e2c565b612710611e3f565b600c546001600160a01b031697909650945050505050565b6109e63361048e565b610a025760405162461bcd60e51b815260040161078990612dd9565b6009805460ff610100808304821615810261ff0019909316929092179283905591041615610a575760405133907f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890600090a2565b60405133907f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90600090a25b565b6001600160a01b031660009081526008602052604090205460ff1690565b6006546001600160a01b03163314610acd5760405162461bcd60e51b815260040161078990612da4565b33ff5b6108bf83838360405180602001604052806000815250611372565b610af43361048e565b80610b185750610b0381610d48565b6001600160a01b0316336001600160a01b0316145b610b6f5760405162461bcd60e51b815260206004820152602260248201527f4b6173626565723732313a206e6f74206f776e6572206f7220696e2073717561604482015261321760f11b6064820152608401610789565b610b7881611e4b565b60405181907f4caf76a5237dbe633d5ebc0b0b5a15c50e057b099d76b698c74a0d47cc3240ec90600090a250565b610baf3361048e565b610bcb5760405162461bcd60e51b815260040161078990612dd9565b8051610bde90600b90602084019061265d565b5050565b60608160048160ff1610610c305760405162461bcd60e51b815260206004820152601560248201527425b0b9b132b2b91b99189d1034b73232bc1027a7a160591b6044820152606401610789565b600f8360ff1660048110610c4657610c466130c4565b018054610c5290613000565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7e90613000565b8015610ccb5780601f10610ca057610100808354040283529160200191610ccb565b820191906000526020600020905b815481529060010190602001808311610cae57829003601f168201915b505050505091505b50919050565b600044426013604051602001610d2a939291909283526020808401929092525461ffff8082166040850152601082901c811660608501529181901c8216608084015260301c1660a082015260c00190565b6040516020818303038152906040528051906020012060001c905090565b6000818152600260205260408120546001600160a01b0316806106895760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610789565b6000610dca3361048e565b610de65760405162461bcd60e51b815260040161078990612dd9565b606f610df0610e23565b10610e0d5760405162461bcd60e51b815260040161078990612cd7565b610e1682611b4c565b9050610cd3816001611ee6565b6000610e2e600a5490565b905090565b610e3c3361048e565b610e585760405162461bcd60e51b815260040161078990612dd9565b805160018111610ebe5760405162461bcd60e51b815260206004820152602b60248201527f57686974656c69737461626c653a207573652060616464546f57686974656c6960448201526a1cdd18081a5b9cdd19585960aa1b6064820152608401610789565b620100008110610f2a5760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c653a2063616e6e6f7420616464206d6f7265207460448201527068616e203635353335206174206f6e636560781b6064820152608401610789565b60005b818161ffff1610156108bf57610f5f838261ffff1681518110610f5257610f526130c4565b6020026020010151610a85565b610fbf57600160086000858461ffff1681518110610f7f57610f7f6130c4565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055505b80610fc981613035565b915050610f2d565b6006546001600160a01b03163314610ffb5760405162461bcd60e51b815260040161078990612da4565b6110048161048e565b6110645760405162461bcd60e51b815260206004820152602b60248201527f53717561644f776e61626c653a204164647265737320616c7265616479206e6f60448201526a3a1034b71039b8bab0b21760a91b6064820152608401610789565b6001600160a01b03166000908152600760205260409020805460ff19169055565b60006001600160a01b0382166110f05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610789565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146111365760405162461bcd60e51b815260040161078990612da4565b610a83600061222a565b60608161114c81611ac1565b6111685760405162461bcd60e51b815260040161078990612d6d565b6000838152600e602052604090208054610c5290613000565b61118a3361048e565b6111a65760405162461bcd60e51b815260040161078990612dd9565b6009805460ff19811660ff9182161590811790925516156111ee5760405133907fe17ac05ff4095c2a1b270ddc6f70ea762311620bf4be3b1c2b0a9f4d5b16a53390600090a2565b60405133907f5a5fb1bb60b955fafbedf12a782cf1135ba3f37b851d547e79c04e55d1d9a2bb90600090a2565b6112243361048e565b6112405760405162461bcd60e51b815260040161078990612dd9565b61124981610a85565b6112955760405162461bcd60e51b815260206004820152601f60248201527f57686974656c69737461626c653a206e6f7420696e2077686974656c697374006044820152606401610789565b6001600160a01b03166000908152600860205260409020805460ff19169055565b60606001805461069e90613000565b610bde33838361227c565b6112d93361048e565b6112f55760405162461bcd60e51b815260040161078990612dd9565b8160048160ff16106113415760405162461bcd60e51b815260206004820152601560248201527425b0b9b132b2b91b99189d1034b73232bc1027a7a160591b6044820152606401610789565b81600f8460ff1660048110611358576113586130c4565b01908051906020019061136c92919061265d565b50505050565b61137c3383611bc2565b6113985760405162461bcd60e51b815260040161078990612e20565b61136c8484848461234b565b6060816113b081611ac1565b6113cc5760405162461bcd60e51b815260040161078990612d6d565b6040805180820182526007815266697066733a2f2f60c81b6020808301919091526000868152600e82528390209251611406939101612b70565b604051602081830303815290604052915050919050565b606081806001111580156114325750606f8111155b6114785760405162461bcd60e51b815260206004820152601760248201527625b0b9b132b2b91b99189d103a37b5b2b724b21027a7a160491b6044820152606401610789565b604080516001808252818301909252600091816020015b604080518082019091526000808252602082015281526020019060019003908161148f57505060408051808201909152600c546001600160a01b031681526103e8602082015281519192509082906000906114ec576114ec6130c4565b60209081029190910101529392505050565b6006546001600160a01b031633146115285760405162461bcd60e51b815260040161078990612da4565b6115318161048e565b1561158e5760405162461bcd60e51b815260206004820152602760248201527f53717561644f776e61626c653a204164647265737320616c726561647920696e6044820152661039b8bab0b21760c91b6064820152608401610789565b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b60006060606f6115c0610e23565b106115dd5760405162461bcd60e51b815260040161078990612cd7565b60095460ff1615156001146116405760405162461bcd60e51b815260206004820152602360248201527f57686974656c69737461626c653a2077686974656c697374206e6f742061637460448201526269766560e81b6064820152608401610789565b8461164a81610a85565b6116a25760405162461bcd60e51b815260206004820152602360248201527f57686974656c69737461626c653a206d757374206265206f6e2077686974656c6044820152621a5cdd60ea1b6064820152608401610789565b600954610100900460ff16156116f35760405162461bcd60e51b81526020600482015260166024820152752830bab9b0b136329d1039b0b632903830bab9b2b21760511b6044820152606401610789565b6001600160a01b0386166000908152600d602052604090205460ff16156117675760405162461bcd60e51b815260206004820152602260248201527f4a75696365426f783a2063616e6e6f7420636c61696d206d6f7265207468616e604482015261203160f01b6064820152608401610789565b853b63ffffffff16156117b85760405162461bcd60e51b815260206004820152601960248201527804a75696365426f783a2073696c6c7920726162626974203a5603c1b6044820152606401610789565b6117c9846117c461237e565b61238d565b6118115760405162461bcd60e51b815260206004820152601960248201527804a75696365426f783a2073696c6c7920726162626974203a5603c1b6044820152606401610789565b61181a86611b4c565b92506118268386611ee6565b915050935093915050565b61183a3361048e565b6118565760405162461bcd60e51b815260040161078990612dd9565b61185f81610a85565b156118b75760405162461bcd60e51b815260206004820152602260248201527f57686974656c69737461626c653a20616c72656164792077686974656c697374604482015261195960f21b6064820152608401610789565b6001600160a01b03166000908152600860205260409020805460ff19166001179055565b6060600b805461069e90613000565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146119425760405162461bcd60e51b815260040161078990612da4565b6001600160a01b0381166119a75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610789565b6119b08161222a565b50565b6119bc3361048e565b6119d85760405162461bcd60e51b815260040161078990612dd9565b47811115611a3b5760405162461bcd60e51b815260206004820152602a60248201527f4b6173626565723732313a20496e73756666696369656e742066756e647320746044820152696f20776974686472617760b01b6064820152608401610789565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156108bf573d6000803e3d6000fd5b60006001600160e01b031982166380ac58cd60e01b1480611aa257506001600160e01b03198216635b5e139f60e01b145b8061068957506301ffc9a760e01b6001600160e01b0319831614610689565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b1382610d48565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b566123c2565b611b5e610e23565b9050611b6a82826123d0565b611b92826001600160a01b03166000908152600d60205260409020805460ff19166001179055565b60405181907fdde1a3991487ef0f8934a8fe012d98d074badad7df3d2dbb48d872087cf248e890600090a2919050565b6000611bcd82611ac1565b611c2e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610789565b6000611c3983610d48565b9050806001600160a01b0316846001600160a01b03161480611c745750836001600160a01b0316611c6984610721565b6001600160a01b0316145b80611c845750611c8481856118ea565b949350505050565b826001600160a01b0316611c9f82610d48565b6001600160a01b031614611d075760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610789565b6001600160a01b038216611d695760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610789565b611d74600082611ade565b6001600160a01b0383166000908152600360205260408120805460019290611d9d908490612f9a565b90915550506001600160a01b0382166000908152600360205260408120805460019290611dcb908490612ee1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611e388284612f2f565b9392505050565b6000611e388284612ef9565b6000611e5682610d48565b9050611e63600083611ade565b6001600160a01b0381166000908152600360205260408120805460019290611e8c908490612f9a565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606082611ef281611ac1565b611f0e5760405162461bcd60e51b815260040161078990612d6d565b60408051600480825260a0820190925260009160208201608080368337019050509050600f8460ff161115611f4257600f93505b600a611f4f600186612fb1565b611f599190612f0d565b611f64906023612f4e565b601354611f789160ff169061ffff16612f77565b81600081518110611f8b57611f8b6130c4565b60ff90921660209283029190910190910152600a611faa600186612fb1565b611fb49190612f0d565b611fbf906002612f4e565b601354611fd99160ff169062010000900461ffff16612ebb565b81600181518110611fec57611fec6130c4565b60ff90921660209283029190910190910152600a61200b600186612fb1565b6120159190612f0d565b61202090600a612f4e565b60135461203c9160ff1690640100000000900461ffff16612ebb565b8160028151811061204f5761204f6130c4565b60ff90921660209283029190910190910152600a61206e600186612fb1565b6120789190612f0d565b612083906017612f4e565b6013546120a19160ff16906601000000000000900461ffff16612ebb565b816003815181106120b4576120b46130c4565b602002602001019060ff16908160ff1681525050600060646120d4610cd9565b6120de9190613077565b905060005b60048160ff16101561220057828160ff1681518110612104576121046130c4565b602002602001015160ff168261ffff1610156121c157600f8160ff1660048110612130576121306130c4565b01805461213c90613000565b80601f016020809104026020016040519081016040528092919081815260200182805461216890613000565b80156121b55780601f1061218a576101008083540402835291602001916121b5565b820191906000526020600020905b81548152906001019060200180831161219857829003601f168201915b50505050509450612200565b828160ff16815181106121d6576121d66130c4565b602002602001015160ff16826121ec9190612f77565b9150806121f881613057565b9150506120e3565b6000878152600e60209081526040909120865161221f9288019061265d565b505050505092915050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156122de5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610789565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612356848484611c8c565b612362848484846123ea565b61136c5760405162461bcd60e51b815260040161078990612d1b565b60606014805461069e90613000565b8051825160009184918491146123a857600092505050610689565b808051906020012082805190602001201492505050610689565b610a83600a80546001019055565b610bde8282604051806020016040528060008152506124f7565b60006001600160a01b0384163b156124ec57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061242e903390899088908890600401612c21565b602060405180830381600087803b15801561244857600080fd5b505af1925050508015612478575060408051601f3d908101601f1916820190925261247591810190612a80565b60015b6124d2573d8080156124a6576040519150601f19603f3d011682016040523d82523d6000602084013e6124ab565b606091505b5080516124ca5760405162461bcd60e51b815260040161078990612d1b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c84565b506001949350505050565b612501838361252a565b61250e60008484846123ea565b6108bf5760405162461bcd60e51b815260040161078990612d1b565b6001600160a01b0382166125805760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610789565b61258981611ac1565b156125d65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610789565b6001600160a01b03821660009081526003602052604081208054600192906125ff908490612ee1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461266990613000565b90600052602060002090601f01602090048101928261268b57600085556126d1565b82601f106126a457805160ff19168380011785556126d1565b828001600101855582156126d1579182015b828111156126d15782518255916020019190600101906126b6565b506126dd9291506126e1565b5090565b5b808211156126dd57600081556001016126e2565b600067ffffffffffffffff831115612710576127106130da565b612723601f8401601f1916602001612e8a565b905082815283838301111561273757600080fd5b828260208301376000602084830101529392505050565b600082601f83011261275f57600080fd5b611e38838335602085016126f6565b803560ff8116811461277f57600080fd5b919050565b60006020828403121561279657600080fd5b8135611e38816130f0565b600080604083850312156127b457600080fd5b82356127bf816130f0565b946020939093013593505050565b600080604083850312156127e057600080fd5b82356127eb816130f0565b915060208301356127fb816130f0565b809150509250929050565b60008060006060848603121561281b57600080fd5b8335612826816130f0565b92506020840135612836816130f0565b929592945050506040919091013590565b6000806000806080858703121561285d57600080fd5b8435612868816130f0565b93506020850135612878816130f0565b925060408501359150606085013567ffffffffffffffff81111561289b57600080fd5b8501601f810187136128ac57600080fd5b6128bb878235602084016126f6565b91505092959194509250565b600080604083850312156128da57600080fd5b82356128e5816130f0565b9150602083013580151581146127fb57600080fd5b6000806040838503121561290d57600080fd5b8235612918816130f0565b9150602083013567ffffffffffffffff81111561293457600080fd5b6129408582860161274e565b9150509250929050565b60008060006060848603121561295f57600080fd5b833561296a816130f0565b92506129786020850161276e565b9150604084013567ffffffffffffffff81111561299457600080fd5b6129a08682870161274e565b9150509250925092565b600060208083850312156129bd57600080fd5b823567ffffffffffffffff808211156129d557600080fd5b818501915085601f8301126129e957600080fd5b8135818111156129fb576129fb6130da565b8060051b9150612a0c848301612e8a565b8181528481019084860184860187018a1015612a2757600080fd5b600095505b83861015612a565780359450612a41856130f0565b84835260019590950194918601918601612a2c565b5098975050505050505050565b600060208284031215612a7557600080fd5b8135611e3881613105565b600060208284031215612a9257600080fd5b8151611e3881613105565b600060208284031215612aaf57600080fd5b813567ffffffffffffffff811115612ac657600080fd5b611c848482850161274e565b600060208284031215612ae457600080fd5b5035919050565b60008060408385031215612afe57600080fd5b50508035926020909101359150565b600060208284031215612b1f57600080fd5b611e388261276e565b60008060408385031215612b3b57600080fd5b6129188361276e565b60008151808452612b5c816020860160208601612fd4565b601f01601f19169290920160200192915050565b600083516020612b838285838901612fd4565b845491840191600090600181811c9080831680612ba157607f831692505b858310811415612bbf57634e487b7160e01b85526022600452602485fd5b808015612bd35760018114612be457612c11565b60ff19851688528388019550612c11565b60008b81526020902060005b85811015612c095781548a820152908401908801612bf0565b505083880195505b50939a9950505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c5490830184612b44565b9695505050505050565b602080825282518282018190526000919060409081850190868401855b82811015612cb757815180516001600160a01b031685528601516bffffffffffffffffffffffff16868501529284019290850190600101612c7b565b5091979650505050505050565b602081526000611e386020830184612b44565b60208082526024908201527f4a75696365426f783a206e6f204a75696365426f782773206c65667420746f206040820152631b5a5b9d60e21b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601b908201527f4a75696365426f783a206e6f6e6578697374656e7420746f6b656e0000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526027908201527f53717561644f776e61626c653a2043616c6c6572206e6f742070617274206f666040820152661039b8bab0b21760c91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b828152604060208201526000611c846040830184612b44565b604051601f8201601f1916810167ffffffffffffffff81118282101715612eb357612eb36130da565b604052919050565b600061ffff808316818516808303821115612ed857612ed8613098565b01949350505050565b60008219821115612ef457612ef4613098565b500190565b600082612f0857612f086130ae565b500490565b600060ff831680612f2057612f206130ae565b8060ff84160491505092915050565b6000816000190483118215151615612f4957612f49613098565b500290565b600060ff821660ff84168160ff0481118215151615612f6f57612f6f613098565b029392505050565b600061ffff83811690831681811015612f9257612f92613098565b039392505050565b600082821015612fac57612fac613098565b500390565b600060ff821660ff841680821015612fcb57612fcb613098565b90039392505050565b60005b83811015612fef578181015183820152602001612fd7565b8381111561136c5750506000910152565b600181811c9082168061301457607f821691505b60208210811415610cd357634e487b7160e01b600052602260045260246000fd5b600061ffff8083168181141561304d5761304d613098565b6001019392505050565b600060ff821660ff81141561306e5761306e613098565b60010192915050565b600061ffff8084168061308c5761308c6130ae565b92169190910692915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146119b057600080fd5b6001600160e01b0319811681146119b057600080fdfea2646970667358221220d3cc77811200c90d7f6050c01795704779f83a30a9b0ec0dc50d8bfbaf17c0eb64736f6c63430008070033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000872756d696e617465000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : secret (string): ruminate

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [2] : 72756d696e617465000000000000000000000000000000000000000000000000


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.