ETH Price: $2,408.53 (-2.57%)
 

Overview

Max Total Supply

333 SBM

Holders

163

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
3 SBM
0x81b5cb106641ea052ca71b33cf5c6706b233233b
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:
SplashbyMichael

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : SplashbyMichael.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/access/Ownable.sol";
import "tiny-erc721/contracts/TinyERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

contract SplashbyMichael is TinyERC721, Ownable {

    string public baseURI;

    address public proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
    address public lead;

    bool public publicPaused = true;
    
    uint256 public cost = 0.005 ether;
    uint256 public maxSupply = 333;
    uint256 public maxPerWalletPublic = 2;
    uint256 public maxPerWalletFree = 0;
    uint256 public maxPerTxPublic = 2;
    uint256 public maxPerTxFree = 0;
    address public contractV1;
    uint256 supply = totalSupply();

    mapping(address => uint) public addressMintedBalance;
    mapping(address => uint) public addressMintedBalanceFree;
    

 constructor(
    string memory _baseURI,
    address _lead,
    address _contractV1
  )TinyERC721("Splash by Micheal", "SBM", 0) {
    baseURI = _baseURI;
    lead = _lead;
    contractV1 = _contractV1;
  }

  modifier publicnotPaused() {
    require(!publicPaused, "Contract is Paused");
     _;
  }

  modifier callerIsUser() {
    require(tx.origin == msg.sender, 'The caller is another contract.');
    _;
  }


  function setContractV1Address(address _contractV1) public onlyOwner {
    contractV1 =_contractV1;
  }

  function tokenURI(uint256 _tokenId) public view override returns (string memory) {
    require(_exists(_tokenId), "Token does not exist.");
    return string(abi.encodePacked(baseURI, Strings.toString(_tokenId),".json"));
  }

  function setProxyRegistryAddress(address _proxyRegistryAddress) external onlyOwner {
    proxyRegistryAddress = _proxyRegistryAddress;
  }

  function togglePublic(bool _state) external onlyOwner {
    publicPaused = _state;
  }

  function reserveTokens(uint256 _quanitity) public onlyOwner {        
    uint256 supply = totalSupply();
    require(_quanitity + supply <= maxSupply);
    _safeMint(msg.sender, _quanitity);
  }

  function setBaseURI(string memory _baseURI) public onlyOwner {
    baseURI = _baseURI;
  }

  function publicMint(uint256 _quantity)
    public 
    payable 
    publicnotPaused() 
    callerIsUser() 
  {
    uint256 supply = totalSupply();
    require(msg.value >= cost * _quantity, "Not Enough Ether");
    require(_quantity <= maxPerTxPublic, "Over Tx Limit");
    require(_quantity + supply <= maxSupply, "SoldOut");
    require(addressMintedBalance[msg.sender] < maxPerWalletPublic, "Over MaxPerWallet");
    addressMintedBalance[msg.sender] += _quantity;
    
    _safeMint(msg.sender, _quantity);
  }

  function freeMint(uint256 _quantitty)
    public  
    publicnotPaused() 
    callerIsUser() 
  {
    uint256 supply = totalSupply();
    require(_quantitty <= maxPerTxFree, "Over Tx Limit");
    require(_quantitty + supply <= maxSupply, "SoldOut");
    require(addressMintedBalanceFree[msg.sender] < maxPerWalletFree, "Over MaxPerWallet");
    addressMintedBalanceFree[msg.sender] += _quantitty;
    
    _safeMint(msg.sender, _quantitty);
  }

  function isApprovedForAll(address _owner, address operator) public view override returns (bool) {
    OpenSeaProxyRegistry proxyRegistry = OpenSeaProxyRegistry(proxyRegistryAddress);
    if (address(proxyRegistry.proxies(_owner)) == operator) return true;
    return super.isApprovedForAll(_owner, operator);
  }
    
  function withdraw() public onlyOwner {
    (bool success, ) = lead.call{value: address(this).balance}("");
    require(success, "Failed to send to lead.");
  }

}

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 11 : 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 4 of 11 : 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 5 of 11 : 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 6 of 11 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 11 : 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 8 of 11 : 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 9 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 10 of 11 : 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 11 of 11 : TinyERC721.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

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

contract TinyERC721 is Context, ERC165, IERC721, IERC721Metadata {
  using Address for address;
  using Strings for uint256;

  struct TokenData {
    address owner;
    bytes12 aux;
  }

  uint256 private immutable _maxBatchSize;

  mapping(uint256 => TokenData) private _tokens;
  uint256 private _mintCounter;

  string private _name;
  string private _symbol;

  mapping(uint256 => address) private _tokenApprovals;
  mapping(address => mapping(address => bool)) private _operatorApprovals;

  constructor(
    string memory name_,
    string memory symbol_,
    uint256 maxBatchSize_
  ) {
    _name = name_;
    _symbol = symbol_;
    _maxBatchSize = maxBatchSize_;
  }

  function totalSupply() public view virtual returns (uint256) {
    return _mintCounter;
  }

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

  function name() public view virtual override returns (string memory) {
    return _name;
  }

  function symbol() public view virtual override returns (string memory) {
    return _symbol;
  }

  function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
    if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

  function _baseURI() internal view virtual returns (string memory) {
    return '';
  }

  function balanceOf(address owner) public view virtual override returns (uint256) {
    if (owner == address(0)) revert BalanceQueryForZeroAddress();

    uint256 total = totalSupply();
    uint256 count;
    address lastOwner;
    for (uint256 i; i < total; ++i) {
      address tokenOwner = _tokens[i].owner;
      if (tokenOwner != address(0)) lastOwner = tokenOwner;
      if (lastOwner == owner) ++count;
    }

    return count;
  }

  function _tokenData(uint256 tokenId) internal view returns (TokenData storage) {
    if (!_exists(tokenId)) revert TokenDataQueryForNonexistentToken();

    TokenData storage token = _tokens[tokenId];
    uint256 currentIndex = tokenId;
    while (token.owner == address(0)) {
      unchecked {
        --currentIndex;
      }
      token = _tokens[currentIndex];
    }

    return token;
  }

  function ownerOf(uint256 tokenId) public view virtual override returns (address) {
    if (!_exists(tokenId)) revert OwnerQueryForNonexistentToken();
    return _tokenData(tokenId).owner;
  }

  function approve(address to, uint256 tokenId) public virtual override {
    TokenData memory token = _tokenData(tokenId);
    address owner = token.owner;
    if (to == owner) revert ApprovalToCurrentOwner();

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

    _approve(to, tokenId, token);
  }

  function getApproved(uint256 tokenId) public view virtual override returns (address) {
    if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

    return _tokenApprovals[tokenId];
  }

  function setApprovalForAll(address operator, bool approved) public virtual override {
    if (operator == _msgSender()) revert ApproveToCaller();

    _operatorApprovals[_msgSender()][operator] = approved;
    emit ApprovalForAll(_msgSender(), operator, approved);
  }

  function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
    return _operatorApprovals[owner][operator];
  }

  function transferFrom(
    address from,
    address to,
    uint256 tokenId
  ) public virtual override {
    TokenData memory token = _tokenData(tokenId);
    if (!_isApprovedOrOwner(_msgSender(), tokenId, token)) revert TransferCallerNotOwnerNorApproved();

    _transfer(from, to, tokenId, token);
  }

  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId
  ) public virtual override {
    safeTransferFrom(from, to, tokenId, '');
  }

  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId,
    bytes memory _data
  ) public virtual override {
    TokenData memory token = _tokenData(tokenId);
    if (!_isApprovedOrOwner(_msgSender(), tokenId, token)) revert TransferCallerNotOwnerNorApproved();

    _safeTransfer(from, to, tokenId, token, _data);
  }

  function _safeTransfer(
    address from,
    address to,
    uint256 tokenId,
    TokenData memory token,
    bytes memory _data
  ) internal virtual {
    _transfer(from, to, tokenId, token);

    if (to.isContract() && !_checkOnERC721Received(from, to, tokenId, _data))
      revert TransferToNonERC721ReceiverImplementer();
  }

  function _exists(uint256 tokenId) internal view virtual returns (bool) {
    return tokenId < _mintCounter;
  }

  function _isApprovedOrOwner(
    address spender,
    uint256 tokenId,
    TokenData memory token
  ) internal view virtual returns (bool) {
    address owner = token.owner;
    return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
  }

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

  function _safeMint(
    address to,
    uint256 quantity,
    bytes memory _data
  ) internal virtual {
    uint256 startTokenId = _mintCounter;
    _mint(to, quantity);

    if (to.isContract()) {
      unchecked {
        for (uint256 i; i < quantity; ++i) {
          if (!_checkOnERC721Received(address(0), to, startTokenId + i, _data))
            revert TransferToNonERC721ReceiverImplementer();
        }
      }
    }
  }

  function _mint(address to, uint256 quantity) internal virtual {
    if (to == address(0)) revert MintToZeroAddress();
    if (quantity == 0) revert MintZeroQuantity();

    uint256 startTokenId = _mintCounter;
    _beforeTokenTransfers(address(0), to, startTokenId, quantity);

    unchecked {
      for (uint256 i; i < quantity; ++i) {
        if (_maxBatchSize == 0 ? i == 0 : i % _maxBatchSize == 0) {
          TokenData storage token = _tokens[startTokenId + i];
          token.owner = to;
          token.aux = _calculateAux(address(0), to, startTokenId + i, 0);
        }

        emit Transfer(address(0), to, startTokenId + i);
      }
      _mintCounter += quantity;
    }

    _afterTokenTransfers(address(0), to, startTokenId, quantity);
  }

  function _transfer(
    address from,
    address to,
    uint256 tokenId,
    TokenData memory token
  ) internal virtual {
    if (token.owner != from) revert TransferFromIncorrectOwner();
    if (to == address(0)) revert TransferToZeroAddress();

    _beforeTokenTransfers(from, to, tokenId, 1);

    _approve(address(0), tokenId, token);

    unchecked {
      uint256 nextTokenId = tokenId + 1;
      if (_exists(nextTokenId)) {
        TokenData storage nextToken = _tokens[nextTokenId];
        if (nextToken.owner == address(0)) {
          nextToken.owner = token.owner;
          nextToken.aux = token.aux;
        }
      }
    }

    TokenData storage newToken = _tokens[tokenId];
    newToken.owner = to;
    newToken.aux = _calculateAux(from, to, tokenId, token.aux);

    emit Transfer(from, to, tokenId);

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

  function _calculateAux(
    address from,
    address to,
    uint256 tokenId,
    bytes12 current
  ) internal view virtual returns (bytes12) {}

  function _approve(
    address to,
    uint256 tokenId,
    TokenData memory token
  ) internal virtual {
    _tokenApprovals[tokenId] = to;
    emit Approval(token.owner, to, tokenId);
  }

  function _checkOnERC721Received(
    address from,
    address to,
    uint256 tokenId,
    bytes memory _data
  ) private returns (bool) {
    try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
      return retval == IERC721Receiver.onERC721Received.selector;
    } catch (bytes memory reason) {
      if (reason.length == 0) {
        revert TransferToNonERC721ReceiverImplementer();
      } else {
        assembly {
          revert(add(32, reason), mload(reason))
        }
      }
    }
  }

  function _beforeTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}

  function _afterTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"address","name":"_lead","type":"address"},{"internalType":"address","name":"_contractV1","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenDataQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalanceFree","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractV1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantitty","type":"uint256"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lead","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTxFree","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTxPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWalletFree","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWalletPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quanitity","type":"uint256"}],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractV1","type":"address"}],"name":"setContractV1Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"togglePublic","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405273a5409ec958c83c3f309868babaca7c86dcb077c1600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600960146101000a81548160ff0219169083151502179055506611c37937e08000600a5561014d600b556002600c556000600d556002600e556000600f55620000a96200024e60201b60201c565b601155348015620000b957600080fd5b5060405162004652380380620046528339818101604052810190620000df91906200046b565b6040518060400160405280601181526020017f53706c617368206279204d69636865616c0000000000000000000000000000008152506040518060400160405280600381526020017f53424d0000000000000000000000000000000000000000000000000000000000815250600082600290805190602001906200016592919062000326565b5081600390805190602001906200017e92919062000326565b508060808181525050505050620001aa6200019e6200025860201b60201c565b6200026060201b60201c565b8260079080519060200190620001c292919062000326565b5081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050620006b8565b6000600154905090565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200033490620005af565b90600052602060002090601f016020900481019282620003585760008555620003a4565b82601f106200037357805160ff1916838001178555620003a4565b82800160010185558215620003a4579182015b82811115620003a357825182559160200191906001019062000386565b5b509050620003b39190620003b7565b5090565b5b80821115620003d2576000816000905550600101620003b8565b5090565b6000620003ed620003e7846200050f565b620004e6565b9050828152602081018484840111156200040c576200040b6200067e565b5b6200041984828562000579565b509392505050565b60008151905062000432816200069e565b92915050565b600082601f83011262000450576200044f62000679565b5b815162000462848260208601620003d6565b91505092915050565b60008060006060848603121562000487576200048662000688565b5b600084015167ffffffffffffffff811115620004a857620004a762000683565b5b620004b68682870162000438565b9350506020620004c98682870162000421565b9250506040620004dc8682870162000421565b9150509250925092565b6000620004f262000505565b9050620005008282620005e5565b919050565b6000604051905090565b600067ffffffffffffffff8211156200052d576200052c6200064a565b5b62000538826200068d565b9050602081019050919050565b6000620005528262000559565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b83811015620005995780820151818401526020810190506200057c565b83811115620005a9576000848401525b50505050565b60006002820490506001821680620005c857607f821691505b60208210811415620005df57620005de6200061b565b5b50919050565b620005f0826200068d565b810181811067ffffffffffffffff821117156200061257620006116200064a565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620006a98162000545565b8114620006b557600080fd5b50565b608051613f77620006db60003960008181612c800152612ca80152613f776000f3fe6080604052600436106102255760003560e01c8063715018a611610123578063b029a514116100ab578063d031370b1161006f578063d031370b146107ea578063d26ea6c014610813578063d5abeb011461083c578063e985e9c514610867578063f2fde38b146108a457610225565b8063b029a51414610705578063b88d4fde14610730578063c4d4ec9414610759578063c87b56dd14610782578063cd7c0326146107bf57610225565b80638da5cb5b116100f25780638da5cb5b1461063057806395d89b411461065b578063980a70d2146106865780639943770d146106b1578063a22cb465146106dc57610225565b8063715018a61461059a5780637885ce39146105b15780637c928fe9146105dc5780637f5f5a451461060557610225565b806323b872dd116101b157806346bb0a161161017557806346bb0a16146104a157806355f804b3146104cc5780636352211e146104f55780636c0360eb1461053257806370a082311461055d57610225565b806323b872dd146103df5780632db11544146104085780633ccfd60b1461042457806342842e0e1461043b57806345801a0e1461046457610225565b80630bb12bb8116101f85780630bb12bb8146102f85780630e21f59f1461032357806313faede61461034c57806318160ddd1461037757806318cae269146103a257610225565b806301ffc9a71461022a57806306fdde0314610267578063081812fc14610292578063095ea7b3146102cf575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906131fb565b6108cd565b60405161025e9190613696565b60405180910390f35b34801561027357600080fd5b5061027c6109af565b60405161028991906136b1565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b491906132cb565b610a41565b6040516102c6919061362f565b60405180910390f35b3480156102db57600080fd5b506102f660048036038101906102f1919061318e565b610abd565b005b34801561030457600080fd5b5061030d610c78565b60405161031a9190613696565b60405180910390f35b34801561032f57600080fd5b5061034a600480360381019061034591906131ce565b610c8b565b005b34801561035857600080fd5b50610361610d24565b60405161036e9190613813565b60405180910390f35b34801561038357600080fd5b5061038c610d2a565b6040516103999190613813565b60405180910390f35b3480156103ae57600080fd5b506103c960048036038101906103c4919061300b565b610d34565b6040516103d69190613813565b60405180910390f35b3480156103eb57600080fd5b5061040660048036038101906104019190613078565b610d4c565b005b610422600480360381019061041d91906132cb565b610e59565b005b34801561043057600080fd5b506104396110ef565b005b34801561044757600080fd5b50610462600480360381019061045d9190613078565b61123c565b005b34801561047057600080fd5b5061048b6004803603810190610486919061300b565b61125c565b6040516104989190613813565b60405180910390f35b3480156104ad57600080fd5b506104b6611274565b6040516104c3919061362f565b60405180910390f35b3480156104d857600080fd5b506104f360048036038101906104ee9190613282565b61129a565b005b34801561050157600080fd5b5061051c600480360381019061051791906132cb565b611330565b604051610529919061362f565b60405180910390f35b34801561053e57600080fd5b506105476113a5565b60405161055491906136b1565b60405180910390f35b34801561056957600080fd5b50610584600480360381019061057f919061300b565b611433565b6040516105919190613813565b60405180910390f35b3480156105a657600080fd5b506105af611586565b005b3480156105bd57600080fd5b506105c661160e565b6040516105d3919061362f565b60405180910390f35b3480156105e857600080fd5b5061060360048036038101906105fe91906132cb565b611634565b005b34801561061157600080fd5b5061061a61187a565b6040516106279190613813565b60405180910390f35b34801561063c57600080fd5b50610645611880565b604051610652919061362f565b60405180910390f35b34801561066757600080fd5b506106706118aa565b60405161067d91906136b1565b60405180910390f35b34801561069257600080fd5b5061069b61193c565b6040516106a89190613813565b60405180910390f35b3480156106bd57600080fd5b506106c6611942565b6040516106d39190613813565b60405180910390f35b3480156106e857600080fd5b5061070360048036038101906106fe919061314e565b611948565b005b34801561071157600080fd5b5061071a611ac0565b6040516107279190613813565b60405180910390f35b34801561073c57600080fd5b50610757600480360381019061075291906130cb565b611ac6565b005b34801561076557600080fd5b50610780600480360381019061077b919061300b565b611bd5565b005b34801561078e57600080fd5b506107a960048036038101906107a491906132cb565b611c95565b6040516107b691906136b1565b60405180910390f35b3480156107cb57600080fd5b506107d4611d11565b6040516107e1919061362f565b60405180910390f35b3480156107f657600080fd5b50610811600480360381019061080c91906132cb565b611d37565b005b34801561081f57600080fd5b5061083a6004803603810190610835919061300b565b611de7565b005b34801561084857600080fd5b50610851611ea7565b60405161085e9190613813565b60405180910390f35b34801561087357600080fd5b5061088e60048036038101906108899190613038565b611ead565b60405161089b9190613696565b60405180910390f35b3480156108b057600080fd5b506108cb60048036038101906108c6919061300b565b611faf565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109a857506109a7826120a7565b5b9050919050565b6060600280546109be90613af5565b80601f01602080910402602001604051908101604052809291908181526020018280546109ea90613af5565b8015610a375780601f10610a0c57610100808354040283529160200191610a37565b820191906000526020600020905b815481529060010190602001808311610a1a57829003601f168201915b5050505050905090565b6000610a4c82612111565b610a82576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ac88261211f565b6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900460a01b73ffffffffffffffffffffffffffffffffffffffff191673ffffffffffffffffffffffffffffffffffffffff19168152505090506000816000015190508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610bdf576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bfe6121ff565b73ffffffffffffffffffffffffffffffffffffffff1614158015610c305750610c2e81610c296121ff565b611ead565b155b15610c67576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c72848484612207565b50505050565b600960149054906101000a900460ff1681565b610c936121ff565b73ffffffffffffffffffffffffffffffffffffffff16610cb1611880565b73ffffffffffffffffffffffffffffffffffffffff1614610d07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfe906137b3565b60405180910390fd5b80600960146101000a81548160ff02191690831515021790555050565b600a5481565b6000600154905090565b60126020528060005260406000206000915090505481565b6000610d578261211f565b6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900460a01b73ffffffffffffffffffffffffffffffffffffffff191673ffffffffffffffffffffffffffffffffffffffff1916815250509050610e11610e0a6121ff565b83836122bd565b610e47576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e538484848461234f565b50505050565b600960149054906101000a900460ff1615610ea9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea0906137d3565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0e90613753565b60405180910390fd5b6000610f21610d2a565b905081600a54610f31919061399f565b341015610f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6a90613713565b60405180910390fd5b600e54821115610fb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610faf906137f3565b60405180910390fd5b600b548183610fc79190613918565b1115611008576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fff90613733565b60405180910390fd5b600c54601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541061108b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611082906136f3565b60405180910390fd5b81601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110da9190613918565b925050819055506110eb3383612633565b5050565b6110f76121ff565b73ffffffffffffffffffffffffffffffffffffffff16611115611880565b73ffffffffffffffffffffffffffffffffffffffff161461116b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611162906137b3565b60405180910390fd5b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516111b39061361a565b60006040518083038185875af1925050503d80600081146111f0576040519150601f19603f3d011682016040523d82523d6000602084013e6111f5565b606091505b5050905080611239576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611230906136d3565b60405180910390fd5b50565b61125783838360405180602001604052806000815250611ac6565b505050565b60136020528060005260406000206000915090505481565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6112a26121ff565b73ffffffffffffffffffffffffffffffffffffffff166112c0611880565b73ffffffffffffffffffffffffffffffffffffffff1614611316576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130d906137b3565b60405180910390fd5b806007908051906020019061132c929190612e0a565b5050565b600061133b82612111565b611371576040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61137a8261211f565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600780546113b290613af5565b80601f01602080910402602001604051908101604052809291908181526020018280546113de90613af5565b801561142b5780601f106114005761010080835404028352916020019161142b565b820191906000526020600020905b81548152906001019060200180831161140e57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561149b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006114a5610d2a565b905060008060005b8381101561157a57600080600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611527578092505b8673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611568578361156590613b58565b93505b508061157390613b58565b90506114ad565b50819350505050919050565b61158e6121ff565b73ffffffffffffffffffffffffffffffffffffffff166115ac611880565b73ffffffffffffffffffffffffffffffffffffffff1614611602576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f9906137b3565b60405180910390fd5b61160c6000612651565b565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960149054906101000a900460ff1615611684576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167b906137d3565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146116f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e990613753565b60405180910390fd5b60006116fc610d2a565b9050600f54821115611743576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173a906137f3565b60405180910390fd5b600b5481836117529190613918565b1115611793576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178a90613733565b60405180910390fd5b600d54601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410611816576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180d906136f3565b60405180910390fd5b81601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118659190613918565b925050819055506118763383612633565b5050565b600d5481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546118b990613af5565b80601f01602080910402602001604051908101604052809291908181526020018280546118e590613af5565b80156119325780601f1061190757610100808354040283529160200191611932565b820191906000526020600020905b81548152906001019060200180831161191557829003601f168201915b5050505050905090565b600f5481565b600e5481565b6119506121ff565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119b5576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600560006119c26121ff565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a6f6121ff565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ab49190613696565b60405180910390a35050565b600c5481565b6000611ad18361211f565b6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900460a01b73ffffffffffffffffffffffffffffffffffffffff191673ffffffffffffffffffffffffffffffffffffffff1916815250509050611b8b611b846121ff565b84836122bd565b611bc1576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611bce8585858486612717565b5050505050565b611bdd6121ff565b73ffffffffffffffffffffffffffffffffffffffff16611bfb611880565b73ffffffffffffffffffffffffffffffffffffffff1614611c51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c48906137b3565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060611ca082612111565b611cdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd690613793565b60405180910390fd5b6007611cea83612795565b604051602001611cfb9291906135eb565b6040516020818303038152906040529050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611d3f6121ff565b73ffffffffffffffffffffffffffffffffffffffff16611d5d611880565b73ffffffffffffffffffffffffffffffffffffffff1614611db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611daa906137b3565b60405180910390fd5b6000611dbd610d2a565b9050600b548183611dce9190613918565b1115611dd957600080fd5b611de33383612633565b5050565b611def6121ff565b73ffffffffffffffffffffffffffffffffffffffff16611e0d611880565b73ffffffffffffffffffffffffffffffffffffffff1614611e63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5a906137b3565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b5481565b600080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401611f25919061362f565b60206040518083038186803b158015611f3d57600080fd5b505afa158015611f51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f759190613255565b73ffffffffffffffffffffffffffffffffffffffff161415611f9b576001915050611fa9565b611fa584846128f6565b9150505b92915050565b611fb76121ff565b73ffffffffffffffffffffffffffffffffffffffff16611fd5611880565b73ffffffffffffffffffffffffffffffffffffffff161461202b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612022906137b3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561209b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209290613773565b60405180910390fd5b6120a481612651565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482109050919050565b600061212a82612111565b612160576040517f3210dcc600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806000848152602001908152602001600020905060008390505b600073ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156121f55780600190039050600080828152602001908152602001600020915061217c565b8192505050919050565b600033905090565b826004600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600080826000015190508073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061230757506123068186611ead565b5b8061234557508473ffffffffffffffffffffffffffffffffffffffff1661232d85610a41565b73ffffffffffffffffffffffffffffffffffffffff16145b9150509392505050565b8373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146123b8576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561241f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61242c848484600161298a565b61243860008383612207565b600060018301905061244981612111565b156125335760008060008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156125315782600001518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001518160000160146101000a8154816bffffffffffffffffffffffff021916908360a01c02179055505b505b5060008060008481526020019081526020016000209050838160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061259d8585858560200151612990565b8160000160146101000a8154816bffffffffffffffffffffffff021916908360a01c0217905550828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461262c858585600161299a565b5050505050565b61264d8282604051806020016040528060008152506129a0565b5050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6127238585858561234f565b6127428473ffffffffffffffffffffffffffffffffffffffff16612a38565b8015612757575061275585858584612a5b565b155b1561278e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b606060008214156127dd576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506128f1565b600082905060005b6000821461280f5780806127f890613b58565b915050600a82612808919061396e565b91506127e5565b60008167ffffffffffffffff81111561282b5761282a613c8e565b5b6040519080825280601f01601f19166020018201604052801561285d5781602001600182028036833780820191505090505b5090505b600085146128ea5760018261287691906139f9565b9150600a856128859190613ba1565b60306128919190613918565b60f81b8183815181106128a7576128a6613c5f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856128e3919061396e565b9450612861565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b50505050565b6000949350505050565b50505050565b600060015490506129b18484612bbb565b6129d08473ffffffffffffffffffffffffffffffffffffffff16612a38565b15612a325760005b83811015612a30576129ef60008683850186612a5b565b612a25576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060010190506129d8565b505b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a816121ff565b8786866040518563ffffffff1660e01b8152600401612aa3949392919061364a565b602060405180830381600087803b158015612abd57600080fd5b505af1925050508015612aee57506040513d601f19601f82011682018060405250810190612aeb9190613228565b60015b612b68573d8060008114612b1e576040519150601f19603f3d011682016040523d82523d6000602084013e612b23565b606091505b50600081511415612b60576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c22576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000811415612c5d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006001549050612c71600084838561298a565b60005b82811015612de75760007f000000000000000000000000000000000000000000000000000000000000000014612cdd5760007f00000000000000000000000000000000000000000000000000000000000000008281612cd657612cd5613c01565b5b0614612ce2565b600081145b15612d7e57600080600083850181526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612d55600086848601600060a01b612990565b8160000160146101000a8154816bffffffffffffffffffffffff021916908360a01c0217905550505b8082018473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4806001019050612c74565b5081600160008282540192505081905550612e05600084838561299a565b505050565b828054612e1690613af5565b90600052602060002090601f016020900481019282612e385760008555612e7f565b82601f10612e5157805160ff1916838001178555612e7f565b82800160010185558215612e7f579182015b82811115612e7e578251825591602001919060010190612e63565b5b509050612e8c9190612e90565b5090565b5b80821115612ea9576000816000905550600101612e91565b5090565b6000612ec0612ebb84613853565b61382e565b905082815260208101848484011115612edc57612edb613cc2565b5b612ee7848285613ab3565b509392505050565b6000612f02612efd84613884565b61382e565b905082815260208101848484011115612f1e57612f1d613cc2565b5b612f29848285613ab3565b509392505050565b600081359050612f4081613ece565b92915050565b600081359050612f5581613ee5565b92915050565b600081359050612f6a81613efc565b92915050565b600081519050612f7f81613efc565b92915050565b600082601f830112612f9a57612f99613cbd565b5b8135612faa848260208601612ead565b91505092915050565b600081519050612fc281613f13565b92915050565b600082601f830112612fdd57612fdc613cbd565b5b8135612fed848260208601612eef565b91505092915050565b60008135905061300581613f2a565b92915050565b60006020828403121561302157613020613ccc565b5b600061302f84828501612f31565b91505092915050565b6000806040838503121561304f5761304e613ccc565b5b600061305d85828601612f31565b925050602061306e85828601612f31565b9150509250929050565b60008060006060848603121561309157613090613ccc565b5b600061309f86828701612f31565b93505060206130b086828701612f31565b92505060406130c186828701612ff6565b9150509250925092565b600080600080608085870312156130e5576130e4613ccc565b5b60006130f387828801612f31565b945050602061310487828801612f31565b935050604061311587828801612ff6565b925050606085013567ffffffffffffffff81111561313657613135613cc7565b5b61314287828801612f85565b91505092959194509250565b6000806040838503121561316557613164613ccc565b5b600061317385828601612f31565b925050602061318485828601612f46565b9150509250929050565b600080604083850312156131a5576131a4613ccc565b5b60006131b385828601612f31565b92505060206131c485828601612ff6565b9150509250929050565b6000602082840312156131e4576131e3613ccc565b5b60006131f284828501612f46565b91505092915050565b60006020828403121561321157613210613ccc565b5b600061321f84828501612f5b565b91505092915050565b60006020828403121561323e5761323d613ccc565b5b600061324c84828501612f70565b91505092915050565b60006020828403121561326b5761326a613ccc565b5b600061327984828501612fb3565b91505092915050565b60006020828403121561329857613297613ccc565b5b600082013567ffffffffffffffff8111156132b6576132b5613cc7565b5b6132c284828501612fc8565b91505092915050565b6000602082840312156132e1576132e0613ccc565b5b60006132ef84828501612ff6565b91505092915050565b61330181613a2d565b82525050565b61331081613a3f565b82525050565b6000613321826138ca565b61332b81856138e0565b935061333b818560208601613ac2565b61334481613cd1565b840191505092915050565b600061335a826138d5565b61336481856138fc565b9350613374818560208601613ac2565b61337d81613cd1565b840191505092915050565b6000613393826138d5565b61339d818561390d565b93506133ad818560208601613ac2565b80840191505092915050565b600081546133c681613af5565b6133d0818661390d565b945060018216600081146133eb57600181146133fc5761342f565b60ff1983168652818601935061342f565b613405856138b5565b60005b8381101561342757815481890152600182019150602081019050613408565b838801955050505b50505092915050565b60006134456017836138fc565b915061345082613ce2565b602082019050919050565b60006134686011836138fc565b915061347382613d0b565b602082019050919050565b600061348b6010836138fc565b915061349682613d34565b602082019050919050565b60006134ae6007836138fc565b91506134b982613d5d565b602082019050919050565b60006134d1601f836138fc565b91506134dc82613d86565b602082019050919050565b60006134f46026836138fc565b91506134ff82613daf565b604082019050919050565b60006135176015836138fc565b915061352282613dfe565b602082019050919050565b600061353a60058361390d565b915061354582613e27565b600582019050919050565b600061355d6020836138fc565b915061356882613e50565b602082019050919050565b60006135806012836138fc565b915061358b82613e79565b602082019050919050565b60006135a36000836138f1565b91506135ae82613ea2565b600082019050919050565b60006135c6600d836138fc565b91506135d182613ea5565b602082019050919050565b6135e581613aa9565b82525050565b60006135f782856133b9565b91506136038284613388565b915061360e8261352d565b91508190509392505050565b600061362582613596565b9150819050919050565b600060208201905061364460008301846132f8565b92915050565b600060808201905061365f60008301876132f8565b61366c60208301866132f8565b61367960408301856135dc565b818103606083015261368b8184613316565b905095945050505050565b60006020820190506136ab6000830184613307565b92915050565b600060208201905081810360008301526136cb818461334f565b905092915050565b600060208201905081810360008301526136ec81613438565b9050919050565b6000602082019050818103600083015261370c8161345b565b9050919050565b6000602082019050818103600083015261372c8161347e565b9050919050565b6000602082019050818103600083015261374c816134a1565b9050919050565b6000602082019050818103600083015261376c816134c4565b9050919050565b6000602082019050818103600083015261378c816134e7565b9050919050565b600060208201905081810360008301526137ac8161350a565b9050919050565b600060208201905081810360008301526137cc81613550565b9050919050565b600060208201905081810360008301526137ec81613573565b9050919050565b6000602082019050818103600083015261380c816135b9565b9050919050565b600060208201905061382860008301846135dc565b92915050565b6000613838613849565b90506138448282613b27565b919050565b6000604051905090565b600067ffffffffffffffff82111561386e5761386d613c8e565b5b61387782613cd1565b9050602081019050919050565b600067ffffffffffffffff82111561389f5761389e613c8e565b5b6138a882613cd1565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061392382613aa9565b915061392e83613aa9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561396357613962613bd2565b5b828201905092915050565b600061397982613aa9565b915061398483613aa9565b92508261399457613993613c01565b5b828204905092915050565b60006139aa82613aa9565b91506139b583613aa9565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156139ee576139ed613bd2565b5b828202905092915050565b6000613a0482613aa9565b9150613a0f83613aa9565b925082821015613a2257613a21613bd2565b5b828203905092915050565b6000613a3882613a89565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000613a8282613a2d565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613ae0578082015181840152602081019050613ac5565b83811115613aef576000848401525b50505050565b60006002820490506001821680613b0d57607f821691505b60208210811415613b2157613b20613c30565b5b50919050565b613b3082613cd1565b810181811067ffffffffffffffff82111715613b4f57613b4e613c8e565b5b80604052505050565b6000613b6382613aa9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613b9657613b95613bd2565b5b600182019050919050565b6000613bac82613aa9565b9150613bb783613aa9565b925082613bc757613bc6613c01565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4661696c656420746f2073656e6420746f206c6561642e000000000000000000600082015250565b7f4f766572204d617850657257616c6c6574000000000000000000000000000000600082015250565b7f4e6f7420456e6f75676820457468657200000000000000000000000000000000600082015250565b7f536f6c644f757400000000000000000000000000000000000000000000000000600082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f546f6b656e20646f6573206e6f742065786973742e0000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f436f6e7472616374206973205061757365640000000000000000000000000000600082015250565b50565b7f4f766572205478204c696d697400000000000000000000000000000000000000600082015250565b613ed781613a2d565b8114613ee257600080fd5b50565b613eee81613a3f565b8114613ef957600080fd5b50565b613f0581613a4b565b8114613f1057600080fd5b50565b613f1c81613a77565b8114613f2757600080fd5b50565b613f3381613aa9565b8114613f3e57600080fd5b5056fea2646970667358221220f06e01e309a762bb5754be4183dbe2f01fa5f159499f5dd43bd26675ee5e731764736f6c634300080700330000000000000000000000000000000000000000000000000000000000000060000000000000000000000000b3fcd3a610a3cbbc2e3a7066da7b3a67a2191ad7000000000000000000000000b3fcd3a610a3cbbc2e3a7066da7b3a67a2191ad70000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656964766362376567713434613661337134787a626f766373706267676865663733726969346f6e626b773475696b747479787962792f0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102255760003560e01c8063715018a611610123578063b029a514116100ab578063d031370b1161006f578063d031370b146107ea578063d26ea6c014610813578063d5abeb011461083c578063e985e9c514610867578063f2fde38b146108a457610225565b8063b029a51414610705578063b88d4fde14610730578063c4d4ec9414610759578063c87b56dd14610782578063cd7c0326146107bf57610225565b80638da5cb5b116100f25780638da5cb5b1461063057806395d89b411461065b578063980a70d2146106865780639943770d146106b1578063a22cb465146106dc57610225565b8063715018a61461059a5780637885ce39146105b15780637c928fe9146105dc5780637f5f5a451461060557610225565b806323b872dd116101b157806346bb0a161161017557806346bb0a16146104a157806355f804b3146104cc5780636352211e146104f55780636c0360eb1461053257806370a082311461055d57610225565b806323b872dd146103df5780632db11544146104085780633ccfd60b1461042457806342842e0e1461043b57806345801a0e1461046457610225565b80630bb12bb8116101f85780630bb12bb8146102f85780630e21f59f1461032357806313faede61461034c57806318160ddd1461037757806318cae269146103a257610225565b806301ffc9a71461022a57806306fdde0314610267578063081812fc14610292578063095ea7b3146102cf575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906131fb565b6108cd565b60405161025e9190613696565b60405180910390f35b34801561027357600080fd5b5061027c6109af565b60405161028991906136b1565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b491906132cb565b610a41565b6040516102c6919061362f565b60405180910390f35b3480156102db57600080fd5b506102f660048036038101906102f1919061318e565b610abd565b005b34801561030457600080fd5b5061030d610c78565b60405161031a9190613696565b60405180910390f35b34801561032f57600080fd5b5061034a600480360381019061034591906131ce565b610c8b565b005b34801561035857600080fd5b50610361610d24565b60405161036e9190613813565b60405180910390f35b34801561038357600080fd5b5061038c610d2a565b6040516103999190613813565b60405180910390f35b3480156103ae57600080fd5b506103c960048036038101906103c4919061300b565b610d34565b6040516103d69190613813565b60405180910390f35b3480156103eb57600080fd5b5061040660048036038101906104019190613078565b610d4c565b005b610422600480360381019061041d91906132cb565b610e59565b005b34801561043057600080fd5b506104396110ef565b005b34801561044757600080fd5b50610462600480360381019061045d9190613078565b61123c565b005b34801561047057600080fd5b5061048b6004803603810190610486919061300b565b61125c565b6040516104989190613813565b60405180910390f35b3480156104ad57600080fd5b506104b6611274565b6040516104c3919061362f565b60405180910390f35b3480156104d857600080fd5b506104f360048036038101906104ee9190613282565b61129a565b005b34801561050157600080fd5b5061051c600480360381019061051791906132cb565b611330565b604051610529919061362f565b60405180910390f35b34801561053e57600080fd5b506105476113a5565b60405161055491906136b1565b60405180910390f35b34801561056957600080fd5b50610584600480360381019061057f919061300b565b611433565b6040516105919190613813565b60405180910390f35b3480156105a657600080fd5b506105af611586565b005b3480156105bd57600080fd5b506105c661160e565b6040516105d3919061362f565b60405180910390f35b3480156105e857600080fd5b5061060360048036038101906105fe91906132cb565b611634565b005b34801561061157600080fd5b5061061a61187a565b6040516106279190613813565b60405180910390f35b34801561063c57600080fd5b50610645611880565b604051610652919061362f565b60405180910390f35b34801561066757600080fd5b506106706118aa565b60405161067d91906136b1565b60405180910390f35b34801561069257600080fd5b5061069b61193c565b6040516106a89190613813565b60405180910390f35b3480156106bd57600080fd5b506106c6611942565b6040516106d39190613813565b60405180910390f35b3480156106e857600080fd5b5061070360048036038101906106fe919061314e565b611948565b005b34801561071157600080fd5b5061071a611ac0565b6040516107279190613813565b60405180910390f35b34801561073c57600080fd5b50610757600480360381019061075291906130cb565b611ac6565b005b34801561076557600080fd5b50610780600480360381019061077b919061300b565b611bd5565b005b34801561078e57600080fd5b506107a960048036038101906107a491906132cb565b611c95565b6040516107b691906136b1565b60405180910390f35b3480156107cb57600080fd5b506107d4611d11565b6040516107e1919061362f565b60405180910390f35b3480156107f657600080fd5b50610811600480360381019061080c91906132cb565b611d37565b005b34801561081f57600080fd5b5061083a6004803603810190610835919061300b565b611de7565b005b34801561084857600080fd5b50610851611ea7565b60405161085e9190613813565b60405180910390f35b34801561087357600080fd5b5061088e60048036038101906108899190613038565b611ead565b60405161089b9190613696565b60405180910390f35b3480156108b057600080fd5b506108cb60048036038101906108c6919061300b565b611faf565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109a857506109a7826120a7565b5b9050919050565b6060600280546109be90613af5565b80601f01602080910402602001604051908101604052809291908181526020018280546109ea90613af5565b8015610a375780601f10610a0c57610100808354040283529160200191610a37565b820191906000526020600020905b815481529060010190602001808311610a1a57829003601f168201915b5050505050905090565b6000610a4c82612111565b610a82576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ac88261211f565b6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900460a01b73ffffffffffffffffffffffffffffffffffffffff191673ffffffffffffffffffffffffffffffffffffffff19168152505090506000816000015190508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610bdf576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bfe6121ff565b73ffffffffffffffffffffffffffffffffffffffff1614158015610c305750610c2e81610c296121ff565b611ead565b155b15610c67576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c72848484612207565b50505050565b600960149054906101000a900460ff1681565b610c936121ff565b73ffffffffffffffffffffffffffffffffffffffff16610cb1611880565b73ffffffffffffffffffffffffffffffffffffffff1614610d07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfe906137b3565b60405180910390fd5b80600960146101000a81548160ff02191690831515021790555050565b600a5481565b6000600154905090565b60126020528060005260406000206000915090505481565b6000610d578261211f565b6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900460a01b73ffffffffffffffffffffffffffffffffffffffff191673ffffffffffffffffffffffffffffffffffffffff1916815250509050610e11610e0a6121ff565b83836122bd565b610e47576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e538484848461234f565b50505050565b600960149054906101000a900460ff1615610ea9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea0906137d3565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0e90613753565b60405180910390fd5b6000610f21610d2a565b905081600a54610f31919061399f565b341015610f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6a90613713565b60405180910390fd5b600e54821115610fb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610faf906137f3565b60405180910390fd5b600b548183610fc79190613918565b1115611008576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fff90613733565b60405180910390fd5b600c54601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541061108b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611082906136f3565b60405180910390fd5b81601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110da9190613918565b925050819055506110eb3383612633565b5050565b6110f76121ff565b73ffffffffffffffffffffffffffffffffffffffff16611115611880565b73ffffffffffffffffffffffffffffffffffffffff161461116b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611162906137b3565b60405180910390fd5b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516111b39061361a565b60006040518083038185875af1925050503d80600081146111f0576040519150601f19603f3d011682016040523d82523d6000602084013e6111f5565b606091505b5050905080611239576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611230906136d3565b60405180910390fd5b50565b61125783838360405180602001604052806000815250611ac6565b505050565b60136020528060005260406000206000915090505481565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6112a26121ff565b73ffffffffffffffffffffffffffffffffffffffff166112c0611880565b73ffffffffffffffffffffffffffffffffffffffff1614611316576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130d906137b3565b60405180910390fd5b806007908051906020019061132c929190612e0a565b5050565b600061133b82612111565b611371576040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61137a8261211f565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600780546113b290613af5565b80601f01602080910402602001604051908101604052809291908181526020018280546113de90613af5565b801561142b5780601f106114005761010080835404028352916020019161142b565b820191906000526020600020905b81548152906001019060200180831161140e57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561149b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006114a5610d2a565b905060008060005b8381101561157a57600080600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611527578092505b8673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611568578361156590613b58565b93505b508061157390613b58565b90506114ad565b50819350505050919050565b61158e6121ff565b73ffffffffffffffffffffffffffffffffffffffff166115ac611880565b73ffffffffffffffffffffffffffffffffffffffff1614611602576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f9906137b3565b60405180910390fd5b61160c6000612651565b565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960149054906101000a900460ff1615611684576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167b906137d3565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146116f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e990613753565b60405180910390fd5b60006116fc610d2a565b9050600f54821115611743576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173a906137f3565b60405180910390fd5b600b5481836117529190613918565b1115611793576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178a90613733565b60405180910390fd5b600d54601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410611816576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180d906136f3565b60405180910390fd5b81601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118659190613918565b925050819055506118763383612633565b5050565b600d5481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546118b990613af5565b80601f01602080910402602001604051908101604052809291908181526020018280546118e590613af5565b80156119325780601f1061190757610100808354040283529160200191611932565b820191906000526020600020905b81548152906001019060200180831161191557829003601f168201915b5050505050905090565b600f5481565b600e5481565b6119506121ff565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119b5576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600560006119c26121ff565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a6f6121ff565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ab49190613696565b60405180910390a35050565b600c5481565b6000611ad18361211f565b6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900460a01b73ffffffffffffffffffffffffffffffffffffffff191673ffffffffffffffffffffffffffffffffffffffff1916815250509050611b8b611b846121ff565b84836122bd565b611bc1576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611bce8585858486612717565b5050505050565b611bdd6121ff565b73ffffffffffffffffffffffffffffffffffffffff16611bfb611880565b73ffffffffffffffffffffffffffffffffffffffff1614611c51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c48906137b3565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060611ca082612111565b611cdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd690613793565b60405180910390fd5b6007611cea83612795565b604051602001611cfb9291906135eb565b6040516020818303038152906040529050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611d3f6121ff565b73ffffffffffffffffffffffffffffffffffffffff16611d5d611880565b73ffffffffffffffffffffffffffffffffffffffff1614611db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611daa906137b3565b60405180910390fd5b6000611dbd610d2a565b9050600b548183611dce9190613918565b1115611dd957600080fd5b611de33383612633565b5050565b611def6121ff565b73ffffffffffffffffffffffffffffffffffffffff16611e0d611880565b73ffffffffffffffffffffffffffffffffffffffff1614611e63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5a906137b3565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b5481565b600080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401611f25919061362f565b60206040518083038186803b158015611f3d57600080fd5b505afa158015611f51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f759190613255565b73ffffffffffffffffffffffffffffffffffffffff161415611f9b576001915050611fa9565b611fa584846128f6565b9150505b92915050565b611fb76121ff565b73ffffffffffffffffffffffffffffffffffffffff16611fd5611880565b73ffffffffffffffffffffffffffffffffffffffff161461202b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612022906137b3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561209b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209290613773565b60405180910390fd5b6120a481612651565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482109050919050565b600061212a82612111565b612160576040517f3210dcc600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806000848152602001908152602001600020905060008390505b600073ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156121f55780600190039050600080828152602001908152602001600020915061217c565b8192505050919050565b600033905090565b826004600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600080826000015190508073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061230757506123068186611ead565b5b8061234557508473ffffffffffffffffffffffffffffffffffffffff1661232d85610a41565b73ffffffffffffffffffffffffffffffffffffffff16145b9150509392505050565b8373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146123b8576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561241f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61242c848484600161298a565b61243860008383612207565b600060018301905061244981612111565b156125335760008060008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156125315782600001518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001518160000160146101000a8154816bffffffffffffffffffffffff021916908360a01c02179055505b505b5060008060008481526020019081526020016000209050838160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061259d8585858560200151612990565b8160000160146101000a8154816bffffffffffffffffffffffff021916908360a01c0217905550828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461262c858585600161299a565b5050505050565b61264d8282604051806020016040528060008152506129a0565b5050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6127238585858561234f565b6127428473ffffffffffffffffffffffffffffffffffffffff16612a38565b8015612757575061275585858584612a5b565b155b1561278e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b606060008214156127dd576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506128f1565b600082905060005b6000821461280f5780806127f890613b58565b915050600a82612808919061396e565b91506127e5565b60008167ffffffffffffffff81111561282b5761282a613c8e565b5b6040519080825280601f01601f19166020018201604052801561285d5781602001600182028036833780820191505090505b5090505b600085146128ea5760018261287691906139f9565b9150600a856128859190613ba1565b60306128919190613918565b60f81b8183815181106128a7576128a6613c5f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856128e3919061396e565b9450612861565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b50505050565b6000949350505050565b50505050565b600060015490506129b18484612bbb565b6129d08473ffffffffffffffffffffffffffffffffffffffff16612a38565b15612a325760005b83811015612a30576129ef60008683850186612a5b565b612a25576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060010190506129d8565b505b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a816121ff565b8786866040518563ffffffff1660e01b8152600401612aa3949392919061364a565b602060405180830381600087803b158015612abd57600080fd5b505af1925050508015612aee57506040513d601f19601f82011682018060405250810190612aeb9190613228565b60015b612b68573d8060008114612b1e576040519150601f19603f3d011682016040523d82523d6000602084013e612b23565b606091505b50600081511415612b60576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c22576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000811415612c5d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006001549050612c71600084838561298a565b60005b82811015612de75760007f000000000000000000000000000000000000000000000000000000000000000014612cdd5760007f00000000000000000000000000000000000000000000000000000000000000008281612cd657612cd5613c01565b5b0614612ce2565b600081145b15612d7e57600080600083850181526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612d55600086848601600060a01b612990565b8160000160146101000a8154816bffffffffffffffffffffffff021916908360a01c0217905550505b8082018473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4806001019050612c74565b5081600160008282540192505081905550612e05600084838561299a565b505050565b828054612e1690613af5565b90600052602060002090601f016020900481019282612e385760008555612e7f565b82601f10612e5157805160ff1916838001178555612e7f565b82800160010185558215612e7f579182015b82811115612e7e578251825591602001919060010190612e63565b5b509050612e8c9190612e90565b5090565b5b80821115612ea9576000816000905550600101612e91565b5090565b6000612ec0612ebb84613853565b61382e565b905082815260208101848484011115612edc57612edb613cc2565b5b612ee7848285613ab3565b509392505050565b6000612f02612efd84613884565b61382e565b905082815260208101848484011115612f1e57612f1d613cc2565b5b612f29848285613ab3565b509392505050565b600081359050612f4081613ece565b92915050565b600081359050612f5581613ee5565b92915050565b600081359050612f6a81613efc565b92915050565b600081519050612f7f81613efc565b92915050565b600082601f830112612f9a57612f99613cbd565b5b8135612faa848260208601612ead565b91505092915050565b600081519050612fc281613f13565b92915050565b600082601f830112612fdd57612fdc613cbd565b5b8135612fed848260208601612eef565b91505092915050565b60008135905061300581613f2a565b92915050565b60006020828403121561302157613020613ccc565b5b600061302f84828501612f31565b91505092915050565b6000806040838503121561304f5761304e613ccc565b5b600061305d85828601612f31565b925050602061306e85828601612f31565b9150509250929050565b60008060006060848603121561309157613090613ccc565b5b600061309f86828701612f31565b93505060206130b086828701612f31565b92505060406130c186828701612ff6565b9150509250925092565b600080600080608085870312156130e5576130e4613ccc565b5b60006130f387828801612f31565b945050602061310487828801612f31565b935050604061311587828801612ff6565b925050606085013567ffffffffffffffff81111561313657613135613cc7565b5b61314287828801612f85565b91505092959194509250565b6000806040838503121561316557613164613ccc565b5b600061317385828601612f31565b925050602061318485828601612f46565b9150509250929050565b600080604083850312156131a5576131a4613ccc565b5b60006131b385828601612f31565b92505060206131c485828601612ff6565b9150509250929050565b6000602082840312156131e4576131e3613ccc565b5b60006131f284828501612f46565b91505092915050565b60006020828403121561321157613210613ccc565b5b600061321f84828501612f5b565b91505092915050565b60006020828403121561323e5761323d613ccc565b5b600061324c84828501612f70565b91505092915050565b60006020828403121561326b5761326a613ccc565b5b600061327984828501612fb3565b91505092915050565b60006020828403121561329857613297613ccc565b5b600082013567ffffffffffffffff8111156132b6576132b5613cc7565b5b6132c284828501612fc8565b91505092915050565b6000602082840312156132e1576132e0613ccc565b5b60006132ef84828501612ff6565b91505092915050565b61330181613a2d565b82525050565b61331081613a3f565b82525050565b6000613321826138ca565b61332b81856138e0565b935061333b818560208601613ac2565b61334481613cd1565b840191505092915050565b600061335a826138d5565b61336481856138fc565b9350613374818560208601613ac2565b61337d81613cd1565b840191505092915050565b6000613393826138d5565b61339d818561390d565b93506133ad818560208601613ac2565b80840191505092915050565b600081546133c681613af5565b6133d0818661390d565b945060018216600081146133eb57600181146133fc5761342f565b60ff1983168652818601935061342f565b613405856138b5565b60005b8381101561342757815481890152600182019150602081019050613408565b838801955050505b50505092915050565b60006134456017836138fc565b915061345082613ce2565b602082019050919050565b60006134686011836138fc565b915061347382613d0b565b602082019050919050565b600061348b6010836138fc565b915061349682613d34565b602082019050919050565b60006134ae6007836138fc565b91506134b982613d5d565b602082019050919050565b60006134d1601f836138fc565b91506134dc82613d86565b602082019050919050565b60006134f46026836138fc565b91506134ff82613daf565b604082019050919050565b60006135176015836138fc565b915061352282613dfe565b602082019050919050565b600061353a60058361390d565b915061354582613e27565b600582019050919050565b600061355d6020836138fc565b915061356882613e50565b602082019050919050565b60006135806012836138fc565b915061358b82613e79565b602082019050919050565b60006135a36000836138f1565b91506135ae82613ea2565b600082019050919050565b60006135c6600d836138fc565b91506135d182613ea5565b602082019050919050565b6135e581613aa9565b82525050565b60006135f782856133b9565b91506136038284613388565b915061360e8261352d565b91508190509392505050565b600061362582613596565b9150819050919050565b600060208201905061364460008301846132f8565b92915050565b600060808201905061365f60008301876132f8565b61366c60208301866132f8565b61367960408301856135dc565b818103606083015261368b8184613316565b905095945050505050565b60006020820190506136ab6000830184613307565b92915050565b600060208201905081810360008301526136cb818461334f565b905092915050565b600060208201905081810360008301526136ec81613438565b9050919050565b6000602082019050818103600083015261370c8161345b565b9050919050565b6000602082019050818103600083015261372c8161347e565b9050919050565b6000602082019050818103600083015261374c816134a1565b9050919050565b6000602082019050818103600083015261376c816134c4565b9050919050565b6000602082019050818103600083015261378c816134e7565b9050919050565b600060208201905081810360008301526137ac8161350a565b9050919050565b600060208201905081810360008301526137cc81613550565b9050919050565b600060208201905081810360008301526137ec81613573565b9050919050565b6000602082019050818103600083015261380c816135b9565b9050919050565b600060208201905061382860008301846135dc565b92915050565b6000613838613849565b90506138448282613b27565b919050565b6000604051905090565b600067ffffffffffffffff82111561386e5761386d613c8e565b5b61387782613cd1565b9050602081019050919050565b600067ffffffffffffffff82111561389f5761389e613c8e565b5b6138a882613cd1565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061392382613aa9565b915061392e83613aa9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561396357613962613bd2565b5b828201905092915050565b600061397982613aa9565b915061398483613aa9565b92508261399457613993613c01565b5b828204905092915050565b60006139aa82613aa9565b91506139b583613aa9565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156139ee576139ed613bd2565b5b828202905092915050565b6000613a0482613aa9565b9150613a0f83613aa9565b925082821015613a2257613a21613bd2565b5b828203905092915050565b6000613a3882613a89565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000613a8282613a2d565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613ae0578082015181840152602081019050613ac5565b83811115613aef576000848401525b50505050565b60006002820490506001821680613b0d57607f821691505b60208210811415613b2157613b20613c30565b5b50919050565b613b3082613cd1565b810181811067ffffffffffffffff82111715613b4f57613b4e613c8e565b5b80604052505050565b6000613b6382613aa9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613b9657613b95613bd2565b5b600182019050919050565b6000613bac82613aa9565b9150613bb783613aa9565b925082613bc757613bc6613c01565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4661696c656420746f2073656e6420746f206c6561642e000000000000000000600082015250565b7f4f766572204d617850657257616c6c6574000000000000000000000000000000600082015250565b7f4e6f7420456e6f75676820457468657200000000000000000000000000000000600082015250565b7f536f6c644f757400000000000000000000000000000000000000000000000000600082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f546f6b656e20646f6573206e6f742065786973742e0000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f436f6e7472616374206973205061757365640000000000000000000000000000600082015250565b50565b7f4f766572205478204c696d697400000000000000000000000000000000000000600082015250565b613ed781613a2d565b8114613ee257600080fd5b50565b613eee81613a3f565b8114613ef957600080fd5b50565b613f0581613a4b565b8114613f1057600080fd5b50565b613f1c81613a77565b8114613f2757600080fd5b50565b613f3381613aa9565b8114613f3e57600080fd5b5056fea2646970667358221220f06e01e309a762bb5754be4183dbe2f01fa5f159499f5dd43bd26675ee5e731764736f6c63430008070033

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

0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000b3fcd3a610a3cbbc2e3a7066da7b3a67a2191ad7000000000000000000000000b3fcd3a610a3cbbc2e3a7066da7b3a67a2191ad70000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656964766362376567713434613661337134787a626f766373706267676865663733726969346f6e626b773475696b747479787962792f0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _baseURI (string): ipfs://bafybeidvcb7egq44a6a3q4xzbovcspbgghef73rii4onbkw4uikttyxyby/
Arg [1] : _lead (address): 0xb3fcD3a610A3cbBc2E3a7066da7b3a67a2191aD7
Arg [2] : _contractV1 (address): 0xb3fcD3a610A3cbBc2E3a7066da7b3a67a2191aD7

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 000000000000000000000000b3fcd3a610a3cbbc2e3a7066da7b3a67a2191ad7
Arg [2] : 000000000000000000000000b3fcd3a610a3cbbc2e3a7066da7b3a67a2191ad7
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [4] : 697066733a2f2f6261667962656964766362376567713434613661337134787a
Arg [5] : 626f766373706267676865663733726969346f6e626b773475696b7474797879
Arg [6] : 62792f0000000000000000000000000000000000000000000000000000000000


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.