ETH Price: $2,740.75 (+5.83%)

Token

SOS Apes (SOSAPE)
 

Overview

Max Total Supply

76 SOSAPE

Holders

22

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
heidi632725.eth
Balance
1 SOSAPE
0x25ea859bf948c1010ca558f16af846de6a03fc29
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:
SOSApes

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : SOSApes.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

/*
   _____ ____  _____    ___                   
  / ___// __ \/ ___/   /   |  ____  ___  _____
  \__ \/ / / /\__ \   / /| | / __ \/ _ \/ ___/
 ___/ / /_/ /___/ /  / ___ |/ /_/ /  __(__  ) 
/____/\____//____/  /_/  |_/ .___/\___/____/  
                          /_/                 
*/

contract SOSApes is ERC721, Ownable {
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIdCounter;

    uint256 public maxTokenSupply;

    uint256 public constant MAX_MINTS_PER_TXN = 15;

    uint256 public mintPrice = 10000000;

    bool public saleIsActive = false;

    string public baseURI;

    IERC20 public sosTokenContractInstance;

    uint256[3] public winnerTokens;

    uint256 currentWinner = 0;

    constructor(string memory name, string memory symbol, uint256 maxSosGameSupply, address sosTokenAddress) ERC721(name, symbol) {
        maxTokenSupply = maxSosGameSupply;

        sosTokenContractInstance = IERC20(sosTokenAddress);
    }

    function setTokenAddress(address sosTokenAddress) public onlyOwner {
        sosTokenContractInstance = IERC20(sosTokenAddress);
    }

    function setMaxTokenSupply(uint256 maxSosGameSupply) public onlyOwner {
        maxTokenSupply = maxSosGameSupply;
    }

    function setMintPrice(uint256 newPrice) public onlyOwner {
        mintPrice = newPrice;
    }

    function withdraw(uint256 tokenAmount) public onlyOwner {
        sosTokenContractInstance.transfer(msg.sender, tokenAmount);
    }

    /*
    * Mint reserved NFTs for giveaways, devs, etc.
    */
    function reserveMint(uint256 reservedAmount, address mintAddress) public onlyOwner {        
        for (uint256 i = 1; i <= reservedAmount; i++) {
            _tokenIdCounter.increment();
            _safeMint(mintAddress, _tokenIdCounter.current());
        }
    }

    function totalSupply() external view returns (uint256) {
        return _tokenIdCounter.current();
    }

    /*
    * Pause sale if active, make active if paused.
    */
    function flipSaleState() public onlyOwner {
        saleIsActive = !saleIsActive;
    }

    function mint(uint256 numberOfTokens) public payable {
        require(saleIsActive, "Sale not live yet");
        require(numberOfTokens <= MAX_MINTS_PER_TXN, "Max 15 mints per txn");
        require(_tokenIdCounter.current() + numberOfTokens <= maxTokenSupply, "Purchase would exceed supply");

        sosTokenContractInstance.transferFrom(msg.sender, address(this), mintPrice * numberOfTokens * 10 ** 18);

        for(uint256 i = 0; i < numberOfTokens; i++) {
            _tokenIdCounter.increment();
            _safeMint(msg.sender, _tokenIdCounter.current());
        }
    }

    function selectWinner(uint256 min, uint256 max) public onlyOwner {
        require(currentWinner < 3, "Winners have already been picked");

        uint256 randomWinner = uint256(keccak256(abi.encodePacked(block.timestamp, block.difficulty)));

        randomWinner = randomWinner % (max - min + 1) + min;

        winnerTokens[currentWinner] = randomWinner;
        currentWinner++;
    }

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

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

File 2 of 13 : 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 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 5 of 13 : 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 6 of 13 : 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 7 of 13 : 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 8 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 13 of 13 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"maxSosGameSupply","type":"uint256"},{"internalType":"address","name":"sosTokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINTS_PER_TXN","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":"flipSaleState","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":"maxTokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"reservedAmount","type":"uint256"},{"internalType":"address","name":"mintAddress","type":"address"}],"name":"reserveMint","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"min","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"name":"selectWinner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSosGameSupply","type":"uint256"}],"name":"setMaxTokenSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sosTokenAddress","type":"address"}],"name":"setTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sosTokenContractInstance","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"winnerTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052629896806009556000600a60006101000a81548160ff02191690831515021790555060006010553480156200003857600080fd5b50604051620044753803806200447583398181016040528101906200005e9190620004c1565b8383816000908051906020019062000078929190620001d4565b50806001908051906020019062000091929190620001d4565b505050620000b4620000a86200010660201b60201c565b6200010e60201b60201c565b8160088190555080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050620005d6565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001e290620005a0565b90600052602060002090601f01602090048101928262000206576000855562000252565b82601f106200022157805160ff191683800117855562000252565b8280016001018555821562000252579182015b828111156200025157825182559160200191906001019062000234565b5b50905062000261919062000265565b5090565b5b808211156200028057600081600090555060010162000266565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620002ed82620002a2565b810181811067ffffffffffffffff821117156200030f576200030e620002b3565b5b80604052505050565b60006200032462000284565b9050620003328282620002e2565b919050565b600067ffffffffffffffff821115620003555762000354620002b3565b5b6200036082620002a2565b9050602081019050919050565b60005b838110156200038d57808201518184015260208101905062000370565b838111156200039d576000848401525b50505050565b6000620003ba620003b48462000337565b62000318565b905082815260208101848484011115620003d957620003d86200029d565b5b620003e68482856200036d565b509392505050565b600082601f83011262000406576200040562000298565b5b815162000418848260208601620003a3565b91505092915050565b6000819050919050565b620004368162000421565b81146200044257600080fd5b50565b60008151905062000456816200042b565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000489826200045c565b9050919050565b6200049b816200047c565b8114620004a757600080fd5b50565b600081519050620004bb8162000490565b92915050565b60008060008060808587031215620004de57620004dd6200028e565b5b600085015167ffffffffffffffff811115620004ff57620004fe62000293565b5b6200050d87828801620003ee565b945050602085015167ffffffffffffffff81111562000531576200053062000293565b5b6200053f87828801620003ee565b9350506040620005528782880162000445565b92505060606200056587828801620004aa565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005b957607f821691505b60208210811415620005d057620005cf62000571565b5b50919050565b613e8f80620005e66000396000f3fe6080604052600436106101ee5760003560e01c80636a00c9a21161010d578063b07ed982116100a0578063e6fa02091161006f578063e6fa0209146106c8578063e985e9c5146106f1578063eb8d24441461072e578063f2fde38b14610759578063f4a0a52814610782576101ee565b8063b07ed9821461060e578063b88d4fde14610637578063c87b56dd14610660578063dfe93fa31461069d576101ee565b80638da5cb5b116100dc5780638da5cb5b1461057357806395d89b411461059e578063a0712d68146105c9578063a22cb465146105e5576101ee565b80636a00c9a2146104c95780636c0360eb146104f457806370a082311461051f578063715018a61461055c576101ee565b80632e1a7d4d1161018557806355f804b31161015457806355f804b31461040f57806360b02f70146104385780636352211e146104615780636817c76c1461049e576101ee565b80632e1a7d4d1461037b57806334918dfd146103a457806342842e0e146103bb57806350f7c204146103e4576101ee565b8063095ea7b3116101c1578063095ea7b3146102d557806318160ddd146102fe57806323b872dd1461032957806326a4e8d214610352576101ee565b8063016c4250146101f357806301ffc9a71461023057806306fdde031461026d578063081812fc14610298575b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190612815565b6107ab565b6040516102279190612851565b60405180910390f35b34801561023c57600080fd5b50610257600480360381019061025291906128c4565b6107c6565b604051610264919061290c565b60405180910390f35b34801561027957600080fd5b506102826108a8565b60405161028f91906129c0565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba9190612815565b61093a565b6040516102cc9190612a23565b60405180910390f35b3480156102e157600080fd5b506102fc60048036038101906102f79190612a6a565b6109bf565b005b34801561030a57600080fd5b50610313610ad7565b6040516103209190612851565b60405180910390f35b34801561033557600080fd5b50610350600480360381019061034b9190612aaa565b610ae8565b005b34801561035e57600080fd5b5061037960048036038101906103749190612afd565b610b48565b005b34801561038757600080fd5b506103a2600480360381019061039d9190612815565b610c08565b005b3480156103b057600080fd5b506103b9610d28565b005b3480156103c757600080fd5b506103e260048036038101906103dd9190612aaa565b610dd0565b005b3480156103f057600080fd5b506103f9610df0565b6040516104069190612851565b60405180910390f35b34801561041b57600080fd5b5061043660048036038101906104319190612c5f565b610df6565b005b34801561044457600080fd5b5061045f600480360381019061045a9190612ca8565b610e8c565b005b34801561046d57600080fd5b5061048860048036038101906104839190612815565b610f4b565b6040516104959190612a23565b60405180910390f35b3480156104aa57600080fd5b506104b3610ffd565b6040516104c09190612851565b60405180910390f35b3480156104d557600080fd5b506104de611003565b6040516104eb9190612d47565b60405180910390f35b34801561050057600080fd5b50610509611029565b60405161051691906129c0565b60405180910390f35b34801561052b57600080fd5b5061054660048036038101906105419190612afd565b6110b7565b6040516105539190612851565b60405180910390f35b34801561056857600080fd5b5061057161116f565b005b34801561057f57600080fd5b506105886111f7565b6040516105959190612a23565b60405180910390f35b3480156105aa57600080fd5b506105b3611221565b6040516105c091906129c0565b60405180910390f35b6105e360048036038101906105de9190612815565b6112b3565b005b3480156105f157600080fd5b5061060c60048036038101906106079190612d8e565b6114a1565b005b34801561061a57600080fd5b5061063560048036038101906106309190612815565b6114b7565b005b34801561064357600080fd5b5061065e60048036038101906106599190612e6f565b61153d565b005b34801561066c57600080fd5b5061068760048036038101906106829190612815565b61159f565b60405161069491906129c0565b60405180910390f35b3480156106a957600080fd5b506106b2611646565b6040516106bf9190612851565b60405180910390f35b3480156106d457600080fd5b506106ef60048036038101906106ea9190612ef2565b61164b565b005b3480156106fd57600080fd5b5061071860048036038101906107139190612f32565b6117a5565b604051610725919061290c565b60405180910390f35b34801561073a57600080fd5b50610743611839565b604051610750919061290c565b60405180910390f35b34801561076557600080fd5b50610780600480360381019061077b9190612afd565b61184c565b005b34801561078e57600080fd5b506107a960048036038101906107a49190612815565b611944565b005b600d81600381106107bb57600080fd5b016000915090505481565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061089157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108a157506108a0826119ca565b5b9050919050565b6060600080546108b790612fa1565b80601f01602080910402602001604051908101604052809291908181526020018280546108e390612fa1565b80156109305780601f1061090557610100808354040283529160200191610930565b820191906000526020600020905b81548152906001019060200180831161091357829003601f168201915b5050505050905090565b600061094582611a34565b610984576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097b90613045565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109ca82610f4b565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a32906130d7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a5a611aa0565b73ffffffffffffffffffffffffffffffffffffffff161480610a895750610a8881610a83611aa0565b6117a5565b5b610ac8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abf90613169565b60405180910390fd5b610ad28383611aa8565b505050565b6000610ae36007611b61565b905090565b610af9610af3611aa0565b82611b6f565b610b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2f906131fb565b60405180910390fd5b610b43838383611c4d565b505050565b610b50611aa0565b73ffffffffffffffffffffffffffffffffffffffff16610b6e6111f7565b73ffffffffffffffffffffffffffffffffffffffff1614610bc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbb90613267565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610c10611aa0565b73ffffffffffffffffffffffffffffffffffffffff16610c2e6111f7565b73ffffffffffffffffffffffffffffffffffffffff1614610c84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7b90613267565b60405180910390fd5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610ce1929190613287565b6020604051808303816000875af1158015610d00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2491906132c5565b5050565b610d30611aa0565b73ffffffffffffffffffffffffffffffffffffffff16610d4e6111f7565b73ffffffffffffffffffffffffffffffffffffffff1614610da4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9b90613267565b60405180910390fd5b600a60009054906101000a900460ff1615600a60006101000a81548160ff021916908315150217905550565b610deb8383836040518060200160405280600081525061153d565b505050565b60085481565b610dfe611aa0565b73ffffffffffffffffffffffffffffffffffffffff16610e1c6111f7565b73ffffffffffffffffffffffffffffffffffffffff1614610e72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6990613267565b60405180910390fd5b80600b9080519060200190610e88929190612728565b5050565b610e94611aa0565b73ffffffffffffffffffffffffffffffffffffffff16610eb26111f7565b73ffffffffffffffffffffffffffffffffffffffff1614610f08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eff90613267565b60405180910390fd5b6000600190505b828111610f4657610f206007611ea9565b610f3382610f2e6007611b61565b611ebf565b8080610f3e90613321565b915050610f0f565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ff4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610feb906133dc565b60405180910390fd5b80915050919050565b60095481565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b805461103690612fa1565b80601f016020809104026020016040519081016040528092919081815260200182805461106290612fa1565b80156110af5780601f10611084576101008083540402835291602001916110af565b820191906000526020600020905b81548152906001019060200180831161109257829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611128576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111f9061346e565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611177611aa0565b73ffffffffffffffffffffffffffffffffffffffff166111956111f7565b73ffffffffffffffffffffffffffffffffffffffff16146111eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e290613267565b60405180910390fd5b6111f56000611edd565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461123090612fa1565b80601f016020809104026020016040519081016040528092919081815260200182805461125c90612fa1565b80156112a95780601f1061127e576101008083540402835291602001916112a9565b820191906000526020600020905b81548152906001019060200180831161128c57829003601f168201915b5050505050905090565b600a60009054906101000a900460ff16611302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f9906134da565b60405180910390fd5b600f811115611346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133d90613546565b60405180910390fd5b600854816113546007611b61565b61135e9190613566565b111561139f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139690613608565b60405180910390fd5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330670de0b6b3a7640000856009546113f69190613628565b6114009190613628565b6040518463ffffffff1660e01b815260040161141e93929190613682565b6020604051808303816000875af115801561143d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146191906132c5565b5060005b8181101561149d576114776007611ea9565b61148a336114856007611b61565b611ebf565b808061149590613321565b915050611465565b5050565b6114b36114ac611aa0565b8383611fa3565b5050565b6114bf611aa0565b73ffffffffffffffffffffffffffffffffffffffff166114dd6111f7565b73ffffffffffffffffffffffffffffffffffffffff1614611533576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152a90613267565b60405180910390fd5b8060088190555050565b61154e611548611aa0565b83611b6f565b61158d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611584906131fb565b60405180910390fd5b61159984848484612110565b50505050565b60606115aa82611a34565b6115e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e09061372b565b60405180910390fd5b60006115f361216c565b90506000815111611613576040518060200160405280600081525061163e565b8061161d846121fe565b60405160200161162e929190613787565b6040516020818303038152906040525b915050919050565b600f81565b611653611aa0565b73ffffffffffffffffffffffffffffffffffffffff166116716111f7565b73ffffffffffffffffffffffffffffffffffffffff16146116c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116be90613267565b60405180910390fd5b60036010541061170c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611703906137f7565b60405180910390fd5b60004244604051602001611721929190613838565b6040516020818303038152906040528051906020012060001c9050826001848461174b9190613864565b6117559190613566565b8261176091906138c7565b61176a9190613566565b905080600d60105460038110611783576117826138f8565b5b01819055506010600081548092919061179b90613321565b9190505550505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600a60009054906101000a900460ff1681565b611854611aa0565b73ffffffffffffffffffffffffffffffffffffffff166118726111f7565b73ffffffffffffffffffffffffffffffffffffffff16146118c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118bf90613267565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611938576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192f90613999565b60405180910390fd5b61194181611edd565b50565b61194c611aa0565b73ffffffffffffffffffffffffffffffffffffffff1661196a6111f7565b73ffffffffffffffffffffffffffffffffffffffff16146119c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b790613267565b60405180910390fd5b8060098190555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611b1b83610f4b565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b6000611b7a82611a34565b611bb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb090613a2b565b60405180910390fd5b6000611bc483610f4b565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611c3357508373ffffffffffffffffffffffffffffffffffffffff16611c1b8461093a565b73ffffffffffffffffffffffffffffffffffffffff16145b80611c445750611c4381856117a5565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611c6d82610f4b565b73ffffffffffffffffffffffffffffffffffffffff1614611cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cba90613abd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2a90613b4f565b60405180910390fd5b611d3e83838361235f565b611d49600082611aa8565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d999190613864565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611df09190613566565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6001816000016000828254019250508190555050565b611ed9828260405180602001604052806000815250612364565b5050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612012576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200990613bbb565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612103919061290c565b60405180910390a3505050565b61211b848484611c4d565b612127848484846123bf565b612166576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215d90613c4d565b60405180910390fd5b50505050565b6060600b805461217b90612fa1565b80601f01602080910402602001604051908101604052809291908181526020018280546121a790612fa1565b80156121f45780601f106121c9576101008083540402835291602001916121f4565b820191906000526020600020905b8154815290600101906020018083116121d757829003601f168201915b5050505050905090565b60606000821415612246576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061235a565b600082905060005b6000821461227857808061226190613321565b915050600a826122719190613c6d565b915061224e565b60008167ffffffffffffffff81111561229457612293612b34565b5b6040519080825280601f01601f1916602001820160405280156122c65781602001600182028036833780820191505090505b5090505b60008514612353576001826122df9190613864565b9150600a856122ee91906138c7565b60306122fa9190613566565b60f81b8183815181106123105761230f6138f8565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561234c9190613c6d565b94506122ca565b8093505050505b919050565b505050565b61236e8383612547565b61237b60008484846123bf565b6123ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b190613c4d565b60405180910390fd5b505050565b60006123e08473ffffffffffffffffffffffffffffffffffffffff16612715565b1561253a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612409611aa0565b8786866040518563ffffffff1660e01b815260040161242b9493929190613cf3565b6020604051808303816000875af192505050801561246757506040513d601f19601f820116820180604052508101906124649190613d54565b60015b6124ea573d8060008114612497576040519150601f19603f3d011682016040523d82523d6000602084013e61249c565b606091505b506000815114156124e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d990613c4d565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061253f565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ae90613dcd565b60405180910390fd5b6125c081611a34565b15612600576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f790613e39565b60405180910390fd5b61260c6000838361235f565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461265c9190613566565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b82805461273490612fa1565b90600052602060002090601f016020900481019282612756576000855561279d565b82601f1061276f57805160ff191683800117855561279d565b8280016001018555821561279d579182015b8281111561279c578251825591602001919060010190612781565b5b5090506127aa91906127ae565b5090565b5b808211156127c75760008160009055506001016127af565b5090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6127f2816127df565b81146127fd57600080fd5b50565b60008135905061280f816127e9565b92915050565b60006020828403121561282b5761282a6127d5565b5b600061283984828501612800565b91505092915050565b61284b816127df565b82525050565b60006020820190506128666000830184612842565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6128a18161286c565b81146128ac57600080fd5b50565b6000813590506128be81612898565b92915050565b6000602082840312156128da576128d96127d5565b5b60006128e8848285016128af565b91505092915050565b60008115159050919050565b612906816128f1565b82525050565b600060208201905061292160008301846128fd565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612961578082015181840152602081019050612946565b83811115612970576000848401525b50505050565b6000601f19601f8301169050919050565b600061299282612927565b61299c8185612932565b93506129ac818560208601612943565b6129b581612976565b840191505092915050565b600060208201905081810360008301526129da8184612987565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612a0d826129e2565b9050919050565b612a1d81612a02565b82525050565b6000602082019050612a386000830184612a14565b92915050565b612a4781612a02565b8114612a5257600080fd5b50565b600081359050612a6481612a3e565b92915050565b60008060408385031215612a8157612a806127d5565b5b6000612a8f85828601612a55565b9250506020612aa085828601612800565b9150509250929050565b600080600060608486031215612ac357612ac26127d5565b5b6000612ad186828701612a55565b9350506020612ae286828701612a55565b9250506040612af386828701612800565b9150509250925092565b600060208284031215612b1357612b126127d5565b5b6000612b2184828501612a55565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612b6c82612976565b810181811067ffffffffffffffff82111715612b8b57612b8a612b34565b5b80604052505050565b6000612b9e6127cb565b9050612baa8282612b63565b919050565b600067ffffffffffffffff821115612bca57612bc9612b34565b5b612bd382612976565b9050602081019050919050565b82818337600083830152505050565b6000612c02612bfd84612baf565b612b94565b905082815260208101848484011115612c1e57612c1d612b2f565b5b612c29848285612be0565b509392505050565b600082601f830112612c4657612c45612b2a565b5b8135612c56848260208601612bef565b91505092915050565b600060208284031215612c7557612c746127d5565b5b600082013567ffffffffffffffff811115612c9357612c926127da565b5b612c9f84828501612c31565b91505092915050565b60008060408385031215612cbf57612cbe6127d5565b5b6000612ccd85828601612800565b9250506020612cde85828601612a55565b9150509250929050565b6000819050919050565b6000612d0d612d08612d03846129e2565b612ce8565b6129e2565b9050919050565b6000612d1f82612cf2565b9050919050565b6000612d3182612d14565b9050919050565b612d4181612d26565b82525050565b6000602082019050612d5c6000830184612d38565b92915050565b612d6b816128f1565b8114612d7657600080fd5b50565b600081359050612d8881612d62565b92915050565b60008060408385031215612da557612da46127d5565b5b6000612db385828601612a55565b9250506020612dc485828601612d79565b9150509250929050565b600067ffffffffffffffff821115612de957612de8612b34565b5b612df282612976565b9050602081019050919050565b6000612e12612e0d84612dce565b612b94565b905082815260208101848484011115612e2e57612e2d612b2f565b5b612e39848285612be0565b509392505050565b600082601f830112612e5657612e55612b2a565b5b8135612e66848260208601612dff565b91505092915050565b60008060008060808587031215612e8957612e886127d5565b5b6000612e9787828801612a55565b9450506020612ea887828801612a55565b9350506040612eb987828801612800565b925050606085013567ffffffffffffffff811115612eda57612ed96127da565b5b612ee687828801612e41565b91505092959194509250565b60008060408385031215612f0957612f086127d5565b5b6000612f1785828601612800565b9250506020612f2885828601612800565b9150509250929050565b60008060408385031215612f4957612f486127d5565b5b6000612f5785828601612a55565b9250506020612f6885828601612a55565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612fb957607f821691505b60208210811415612fcd57612fcc612f72565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061302f602c83612932565b915061303a82612fd3565b604082019050919050565b6000602082019050818103600083015261305e81613022565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006130c1602183612932565b91506130cc82613065565b604082019050919050565b600060208201905081810360008301526130f0816130b4565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000613153603883612932565b915061315e826130f7565b604082019050919050565b6000602082019050818103600083015261318281613146565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006131e5603183612932565b91506131f082613189565b604082019050919050565b60006020820190508181036000830152613214816131d8565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613251602083612932565b915061325c8261321b565b602082019050919050565b6000602082019050818103600083015261328081613244565b9050919050565b600060408201905061329c6000830185612a14565b6132a96020830184612842565b9392505050565b6000815190506132bf81612d62565b92915050565b6000602082840312156132db576132da6127d5565b5b60006132e9848285016132b0565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061332c826127df565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561335f5761335e6132f2565b5b600182019050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b60006133c6602983612932565b91506133d18261336a565b604082019050919050565b600060208201905081810360008301526133f5816133b9565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000613458602a83612932565b9150613463826133fc565b604082019050919050565b600060208201905081810360008301526134878161344b565b9050919050565b7f53616c65206e6f74206c69766520796574000000000000000000000000000000600082015250565b60006134c4601183612932565b91506134cf8261348e565b602082019050919050565b600060208201905081810360008301526134f3816134b7565b9050919050565b7f4d6178203135206d696e7473207065722074786e000000000000000000000000600082015250565b6000613530601483612932565b915061353b826134fa565b602082019050919050565b6000602082019050818103600083015261355f81613523565b9050919050565b6000613571826127df565b915061357c836127df565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156135b1576135b06132f2565b5b828201905092915050565b7f507572636861736520776f756c642065786365656420737570706c7900000000600082015250565b60006135f2601c83612932565b91506135fd826135bc565b602082019050919050565b60006020820190508181036000830152613621816135e5565b9050919050565b6000613633826127df565b915061363e836127df565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613677576136766132f2565b5b828202905092915050565b60006060820190506136976000830186612a14565b6136a46020830185612a14565b6136b16040830184612842565b949350505050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613715602f83612932565b9150613720826136b9565b604082019050919050565b6000602082019050818103600083015261374481613708565b9050919050565b600081905092915050565b600061376182612927565b61376b818561374b565b935061377b818560208601612943565b80840191505092915050565b60006137938285613756565b915061379f8284613756565b91508190509392505050565b7f57696e6e657273206861766520616c7265616479206265656e207069636b6564600082015250565b60006137e1602083612932565b91506137ec826137ab565b602082019050919050565b60006020820190508181036000830152613810816137d4565b9050919050565b6000819050919050565b61383261382d826127df565b613817565b82525050565b60006138448285613821565b6020820191506138548284613821565b6020820191508190509392505050565b600061386f826127df565b915061387a836127df565b92508282101561388d5761388c6132f2565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006138d2826127df565b91506138dd836127df565b9250826138ed576138ec613898565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613983602683612932565b915061398e82613927565b604082019050919050565b600060208201905081810360008301526139b281613976565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613a15602c83612932565b9150613a20826139b9565b604082019050919050565b60006020820190508181036000830152613a4481613a08565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b6000613aa7602983612932565b9150613ab282613a4b565b604082019050919050565b60006020820190508181036000830152613ad681613a9a565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613b39602483612932565b9150613b4482613add565b604082019050919050565b60006020820190508181036000830152613b6881613b2c565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613ba5601983612932565b9150613bb082613b6f565b602082019050919050565b60006020820190508181036000830152613bd481613b98565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613c37603283612932565b9150613c4282613bdb565b604082019050919050565b60006020820190508181036000830152613c6681613c2a565b9050919050565b6000613c78826127df565b9150613c83836127df565b925082613c9357613c92613898565b5b828204905092915050565b600081519050919050565b600082825260208201905092915050565b6000613cc582613c9e565b613ccf8185613ca9565b9350613cdf818560208601612943565b613ce881612976565b840191505092915050565b6000608082019050613d086000830187612a14565b613d156020830186612a14565b613d226040830185612842565b8181036060830152613d348184613cba565b905095945050505050565b600081519050613d4e81612898565b92915050565b600060208284031215613d6a57613d696127d5565b5b6000613d7884828501613d3f565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000613db7602083612932565b9150613dc282613d81565b602082019050919050565b60006020820190508181036000830152613de681613daa565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613e23601c83612932565b9150613e2e82613ded565b602082019050919050565b60006020820190508181036000830152613e5281613e16565b905091905056fea264697066735822122005bad3bdbccae771a511935d3f859b558eae071f3eff225f3eddd5cd2d9b617864736f6c634300080b0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000027100000000000000000000000003b484b82567a09e2588a13d54d032153f0c0aee00000000000000000000000000000000000000000000000000000000000000008534f5320417065730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006534f534150450000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101ee5760003560e01c80636a00c9a21161010d578063b07ed982116100a0578063e6fa02091161006f578063e6fa0209146106c8578063e985e9c5146106f1578063eb8d24441461072e578063f2fde38b14610759578063f4a0a52814610782576101ee565b8063b07ed9821461060e578063b88d4fde14610637578063c87b56dd14610660578063dfe93fa31461069d576101ee565b80638da5cb5b116100dc5780638da5cb5b1461057357806395d89b411461059e578063a0712d68146105c9578063a22cb465146105e5576101ee565b80636a00c9a2146104c95780636c0360eb146104f457806370a082311461051f578063715018a61461055c576101ee565b80632e1a7d4d1161018557806355f804b31161015457806355f804b31461040f57806360b02f70146104385780636352211e146104615780636817c76c1461049e576101ee565b80632e1a7d4d1461037b57806334918dfd146103a457806342842e0e146103bb57806350f7c204146103e4576101ee565b8063095ea7b3116101c1578063095ea7b3146102d557806318160ddd146102fe57806323b872dd1461032957806326a4e8d214610352576101ee565b8063016c4250146101f357806301ffc9a71461023057806306fdde031461026d578063081812fc14610298575b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190612815565b6107ab565b6040516102279190612851565b60405180910390f35b34801561023c57600080fd5b50610257600480360381019061025291906128c4565b6107c6565b604051610264919061290c565b60405180910390f35b34801561027957600080fd5b506102826108a8565b60405161028f91906129c0565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba9190612815565b61093a565b6040516102cc9190612a23565b60405180910390f35b3480156102e157600080fd5b506102fc60048036038101906102f79190612a6a565b6109bf565b005b34801561030a57600080fd5b50610313610ad7565b6040516103209190612851565b60405180910390f35b34801561033557600080fd5b50610350600480360381019061034b9190612aaa565b610ae8565b005b34801561035e57600080fd5b5061037960048036038101906103749190612afd565b610b48565b005b34801561038757600080fd5b506103a2600480360381019061039d9190612815565b610c08565b005b3480156103b057600080fd5b506103b9610d28565b005b3480156103c757600080fd5b506103e260048036038101906103dd9190612aaa565b610dd0565b005b3480156103f057600080fd5b506103f9610df0565b6040516104069190612851565b60405180910390f35b34801561041b57600080fd5b5061043660048036038101906104319190612c5f565b610df6565b005b34801561044457600080fd5b5061045f600480360381019061045a9190612ca8565b610e8c565b005b34801561046d57600080fd5b5061048860048036038101906104839190612815565b610f4b565b6040516104959190612a23565b60405180910390f35b3480156104aa57600080fd5b506104b3610ffd565b6040516104c09190612851565b60405180910390f35b3480156104d557600080fd5b506104de611003565b6040516104eb9190612d47565b60405180910390f35b34801561050057600080fd5b50610509611029565b60405161051691906129c0565b60405180910390f35b34801561052b57600080fd5b5061054660048036038101906105419190612afd565b6110b7565b6040516105539190612851565b60405180910390f35b34801561056857600080fd5b5061057161116f565b005b34801561057f57600080fd5b506105886111f7565b6040516105959190612a23565b60405180910390f35b3480156105aa57600080fd5b506105b3611221565b6040516105c091906129c0565b60405180910390f35b6105e360048036038101906105de9190612815565b6112b3565b005b3480156105f157600080fd5b5061060c60048036038101906106079190612d8e565b6114a1565b005b34801561061a57600080fd5b5061063560048036038101906106309190612815565b6114b7565b005b34801561064357600080fd5b5061065e60048036038101906106599190612e6f565b61153d565b005b34801561066c57600080fd5b5061068760048036038101906106829190612815565b61159f565b60405161069491906129c0565b60405180910390f35b3480156106a957600080fd5b506106b2611646565b6040516106bf9190612851565b60405180910390f35b3480156106d457600080fd5b506106ef60048036038101906106ea9190612ef2565b61164b565b005b3480156106fd57600080fd5b5061071860048036038101906107139190612f32565b6117a5565b604051610725919061290c565b60405180910390f35b34801561073a57600080fd5b50610743611839565b604051610750919061290c565b60405180910390f35b34801561076557600080fd5b50610780600480360381019061077b9190612afd565b61184c565b005b34801561078e57600080fd5b506107a960048036038101906107a49190612815565b611944565b005b600d81600381106107bb57600080fd5b016000915090505481565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061089157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108a157506108a0826119ca565b5b9050919050565b6060600080546108b790612fa1565b80601f01602080910402602001604051908101604052809291908181526020018280546108e390612fa1565b80156109305780601f1061090557610100808354040283529160200191610930565b820191906000526020600020905b81548152906001019060200180831161091357829003601f168201915b5050505050905090565b600061094582611a34565b610984576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097b90613045565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109ca82610f4b565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a32906130d7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a5a611aa0565b73ffffffffffffffffffffffffffffffffffffffff161480610a895750610a8881610a83611aa0565b6117a5565b5b610ac8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abf90613169565b60405180910390fd5b610ad28383611aa8565b505050565b6000610ae36007611b61565b905090565b610af9610af3611aa0565b82611b6f565b610b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2f906131fb565b60405180910390fd5b610b43838383611c4d565b505050565b610b50611aa0565b73ffffffffffffffffffffffffffffffffffffffff16610b6e6111f7565b73ffffffffffffffffffffffffffffffffffffffff1614610bc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbb90613267565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610c10611aa0565b73ffffffffffffffffffffffffffffffffffffffff16610c2e6111f7565b73ffffffffffffffffffffffffffffffffffffffff1614610c84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7b90613267565b60405180910390fd5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610ce1929190613287565b6020604051808303816000875af1158015610d00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2491906132c5565b5050565b610d30611aa0565b73ffffffffffffffffffffffffffffffffffffffff16610d4e6111f7565b73ffffffffffffffffffffffffffffffffffffffff1614610da4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9b90613267565b60405180910390fd5b600a60009054906101000a900460ff1615600a60006101000a81548160ff021916908315150217905550565b610deb8383836040518060200160405280600081525061153d565b505050565b60085481565b610dfe611aa0565b73ffffffffffffffffffffffffffffffffffffffff16610e1c6111f7565b73ffffffffffffffffffffffffffffffffffffffff1614610e72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6990613267565b60405180910390fd5b80600b9080519060200190610e88929190612728565b5050565b610e94611aa0565b73ffffffffffffffffffffffffffffffffffffffff16610eb26111f7565b73ffffffffffffffffffffffffffffffffffffffff1614610f08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eff90613267565b60405180910390fd5b6000600190505b828111610f4657610f206007611ea9565b610f3382610f2e6007611b61565b611ebf565b8080610f3e90613321565b915050610f0f565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ff4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610feb906133dc565b60405180910390fd5b80915050919050565b60095481565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b805461103690612fa1565b80601f016020809104026020016040519081016040528092919081815260200182805461106290612fa1565b80156110af5780601f10611084576101008083540402835291602001916110af565b820191906000526020600020905b81548152906001019060200180831161109257829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611128576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111f9061346e565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611177611aa0565b73ffffffffffffffffffffffffffffffffffffffff166111956111f7565b73ffffffffffffffffffffffffffffffffffffffff16146111eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e290613267565b60405180910390fd5b6111f56000611edd565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461123090612fa1565b80601f016020809104026020016040519081016040528092919081815260200182805461125c90612fa1565b80156112a95780601f1061127e576101008083540402835291602001916112a9565b820191906000526020600020905b81548152906001019060200180831161128c57829003601f168201915b5050505050905090565b600a60009054906101000a900460ff16611302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f9906134da565b60405180910390fd5b600f811115611346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133d90613546565b60405180910390fd5b600854816113546007611b61565b61135e9190613566565b111561139f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139690613608565b60405180910390fd5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330670de0b6b3a7640000856009546113f69190613628565b6114009190613628565b6040518463ffffffff1660e01b815260040161141e93929190613682565b6020604051808303816000875af115801561143d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146191906132c5565b5060005b8181101561149d576114776007611ea9565b61148a336114856007611b61565b611ebf565b808061149590613321565b915050611465565b5050565b6114b36114ac611aa0565b8383611fa3565b5050565b6114bf611aa0565b73ffffffffffffffffffffffffffffffffffffffff166114dd6111f7565b73ffffffffffffffffffffffffffffffffffffffff1614611533576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152a90613267565b60405180910390fd5b8060088190555050565b61154e611548611aa0565b83611b6f565b61158d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611584906131fb565b60405180910390fd5b61159984848484612110565b50505050565b60606115aa82611a34565b6115e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e09061372b565b60405180910390fd5b60006115f361216c565b90506000815111611613576040518060200160405280600081525061163e565b8061161d846121fe565b60405160200161162e929190613787565b6040516020818303038152906040525b915050919050565b600f81565b611653611aa0565b73ffffffffffffffffffffffffffffffffffffffff166116716111f7565b73ffffffffffffffffffffffffffffffffffffffff16146116c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116be90613267565b60405180910390fd5b60036010541061170c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611703906137f7565b60405180910390fd5b60004244604051602001611721929190613838565b6040516020818303038152906040528051906020012060001c9050826001848461174b9190613864565b6117559190613566565b8261176091906138c7565b61176a9190613566565b905080600d60105460038110611783576117826138f8565b5b01819055506010600081548092919061179b90613321565b9190505550505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600a60009054906101000a900460ff1681565b611854611aa0565b73ffffffffffffffffffffffffffffffffffffffff166118726111f7565b73ffffffffffffffffffffffffffffffffffffffff16146118c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118bf90613267565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611938576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192f90613999565b60405180910390fd5b61194181611edd565b50565b61194c611aa0565b73ffffffffffffffffffffffffffffffffffffffff1661196a6111f7565b73ffffffffffffffffffffffffffffffffffffffff16146119c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b790613267565b60405180910390fd5b8060098190555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611b1b83610f4b565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b6000611b7a82611a34565b611bb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb090613a2b565b60405180910390fd5b6000611bc483610f4b565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611c3357508373ffffffffffffffffffffffffffffffffffffffff16611c1b8461093a565b73ffffffffffffffffffffffffffffffffffffffff16145b80611c445750611c4381856117a5565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611c6d82610f4b565b73ffffffffffffffffffffffffffffffffffffffff1614611cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cba90613abd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2a90613b4f565b60405180910390fd5b611d3e83838361235f565b611d49600082611aa8565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d999190613864565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611df09190613566565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6001816000016000828254019250508190555050565b611ed9828260405180602001604052806000815250612364565b5050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612012576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200990613bbb565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612103919061290c565b60405180910390a3505050565b61211b848484611c4d565b612127848484846123bf565b612166576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215d90613c4d565b60405180910390fd5b50505050565b6060600b805461217b90612fa1565b80601f01602080910402602001604051908101604052809291908181526020018280546121a790612fa1565b80156121f45780601f106121c9576101008083540402835291602001916121f4565b820191906000526020600020905b8154815290600101906020018083116121d757829003601f168201915b5050505050905090565b60606000821415612246576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061235a565b600082905060005b6000821461227857808061226190613321565b915050600a826122719190613c6d565b915061224e565b60008167ffffffffffffffff81111561229457612293612b34565b5b6040519080825280601f01601f1916602001820160405280156122c65781602001600182028036833780820191505090505b5090505b60008514612353576001826122df9190613864565b9150600a856122ee91906138c7565b60306122fa9190613566565b60f81b8183815181106123105761230f6138f8565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561234c9190613c6d565b94506122ca565b8093505050505b919050565b505050565b61236e8383612547565b61237b60008484846123bf565b6123ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b190613c4d565b60405180910390fd5b505050565b60006123e08473ffffffffffffffffffffffffffffffffffffffff16612715565b1561253a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612409611aa0565b8786866040518563ffffffff1660e01b815260040161242b9493929190613cf3565b6020604051808303816000875af192505050801561246757506040513d601f19601f820116820180604052508101906124649190613d54565b60015b6124ea573d8060008114612497576040519150601f19603f3d011682016040523d82523d6000602084013e61249c565b606091505b506000815114156124e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d990613c4d565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061253f565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ae90613dcd565b60405180910390fd5b6125c081611a34565b15612600576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f790613e39565b60405180910390fd5b61260c6000838361235f565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461265c9190613566565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b82805461273490612fa1565b90600052602060002090601f016020900481019282612756576000855561279d565b82601f1061276f57805160ff191683800117855561279d565b8280016001018555821561279d579182015b8281111561279c578251825591602001919060010190612781565b5b5090506127aa91906127ae565b5090565b5b808211156127c75760008160009055506001016127af565b5090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6127f2816127df565b81146127fd57600080fd5b50565b60008135905061280f816127e9565b92915050565b60006020828403121561282b5761282a6127d5565b5b600061283984828501612800565b91505092915050565b61284b816127df565b82525050565b60006020820190506128666000830184612842565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6128a18161286c565b81146128ac57600080fd5b50565b6000813590506128be81612898565b92915050565b6000602082840312156128da576128d96127d5565b5b60006128e8848285016128af565b91505092915050565b60008115159050919050565b612906816128f1565b82525050565b600060208201905061292160008301846128fd565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612961578082015181840152602081019050612946565b83811115612970576000848401525b50505050565b6000601f19601f8301169050919050565b600061299282612927565b61299c8185612932565b93506129ac818560208601612943565b6129b581612976565b840191505092915050565b600060208201905081810360008301526129da8184612987565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612a0d826129e2565b9050919050565b612a1d81612a02565b82525050565b6000602082019050612a386000830184612a14565b92915050565b612a4781612a02565b8114612a5257600080fd5b50565b600081359050612a6481612a3e565b92915050565b60008060408385031215612a8157612a806127d5565b5b6000612a8f85828601612a55565b9250506020612aa085828601612800565b9150509250929050565b600080600060608486031215612ac357612ac26127d5565b5b6000612ad186828701612a55565b9350506020612ae286828701612a55565b9250506040612af386828701612800565b9150509250925092565b600060208284031215612b1357612b126127d5565b5b6000612b2184828501612a55565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612b6c82612976565b810181811067ffffffffffffffff82111715612b8b57612b8a612b34565b5b80604052505050565b6000612b9e6127cb565b9050612baa8282612b63565b919050565b600067ffffffffffffffff821115612bca57612bc9612b34565b5b612bd382612976565b9050602081019050919050565b82818337600083830152505050565b6000612c02612bfd84612baf565b612b94565b905082815260208101848484011115612c1e57612c1d612b2f565b5b612c29848285612be0565b509392505050565b600082601f830112612c4657612c45612b2a565b5b8135612c56848260208601612bef565b91505092915050565b600060208284031215612c7557612c746127d5565b5b600082013567ffffffffffffffff811115612c9357612c926127da565b5b612c9f84828501612c31565b91505092915050565b60008060408385031215612cbf57612cbe6127d5565b5b6000612ccd85828601612800565b9250506020612cde85828601612a55565b9150509250929050565b6000819050919050565b6000612d0d612d08612d03846129e2565b612ce8565b6129e2565b9050919050565b6000612d1f82612cf2565b9050919050565b6000612d3182612d14565b9050919050565b612d4181612d26565b82525050565b6000602082019050612d5c6000830184612d38565b92915050565b612d6b816128f1565b8114612d7657600080fd5b50565b600081359050612d8881612d62565b92915050565b60008060408385031215612da557612da46127d5565b5b6000612db385828601612a55565b9250506020612dc485828601612d79565b9150509250929050565b600067ffffffffffffffff821115612de957612de8612b34565b5b612df282612976565b9050602081019050919050565b6000612e12612e0d84612dce565b612b94565b905082815260208101848484011115612e2e57612e2d612b2f565b5b612e39848285612be0565b509392505050565b600082601f830112612e5657612e55612b2a565b5b8135612e66848260208601612dff565b91505092915050565b60008060008060808587031215612e8957612e886127d5565b5b6000612e9787828801612a55565b9450506020612ea887828801612a55565b9350506040612eb987828801612800565b925050606085013567ffffffffffffffff811115612eda57612ed96127da565b5b612ee687828801612e41565b91505092959194509250565b60008060408385031215612f0957612f086127d5565b5b6000612f1785828601612800565b9250506020612f2885828601612800565b9150509250929050565b60008060408385031215612f4957612f486127d5565b5b6000612f5785828601612a55565b9250506020612f6885828601612a55565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612fb957607f821691505b60208210811415612fcd57612fcc612f72565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061302f602c83612932565b915061303a82612fd3565b604082019050919050565b6000602082019050818103600083015261305e81613022565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006130c1602183612932565b91506130cc82613065565b604082019050919050565b600060208201905081810360008301526130f0816130b4565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000613153603883612932565b915061315e826130f7565b604082019050919050565b6000602082019050818103600083015261318281613146565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006131e5603183612932565b91506131f082613189565b604082019050919050565b60006020820190508181036000830152613214816131d8565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613251602083612932565b915061325c8261321b565b602082019050919050565b6000602082019050818103600083015261328081613244565b9050919050565b600060408201905061329c6000830185612a14565b6132a96020830184612842565b9392505050565b6000815190506132bf81612d62565b92915050565b6000602082840312156132db576132da6127d5565b5b60006132e9848285016132b0565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061332c826127df565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561335f5761335e6132f2565b5b600182019050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b60006133c6602983612932565b91506133d18261336a565b604082019050919050565b600060208201905081810360008301526133f5816133b9565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000613458602a83612932565b9150613463826133fc565b604082019050919050565b600060208201905081810360008301526134878161344b565b9050919050565b7f53616c65206e6f74206c69766520796574000000000000000000000000000000600082015250565b60006134c4601183612932565b91506134cf8261348e565b602082019050919050565b600060208201905081810360008301526134f3816134b7565b9050919050565b7f4d6178203135206d696e7473207065722074786e000000000000000000000000600082015250565b6000613530601483612932565b915061353b826134fa565b602082019050919050565b6000602082019050818103600083015261355f81613523565b9050919050565b6000613571826127df565b915061357c836127df565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156135b1576135b06132f2565b5b828201905092915050565b7f507572636861736520776f756c642065786365656420737570706c7900000000600082015250565b60006135f2601c83612932565b91506135fd826135bc565b602082019050919050565b60006020820190508181036000830152613621816135e5565b9050919050565b6000613633826127df565b915061363e836127df565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613677576136766132f2565b5b828202905092915050565b60006060820190506136976000830186612a14565b6136a46020830185612a14565b6136b16040830184612842565b949350505050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613715602f83612932565b9150613720826136b9565b604082019050919050565b6000602082019050818103600083015261374481613708565b9050919050565b600081905092915050565b600061376182612927565b61376b818561374b565b935061377b818560208601612943565b80840191505092915050565b60006137938285613756565b915061379f8284613756565b91508190509392505050565b7f57696e6e657273206861766520616c7265616479206265656e207069636b6564600082015250565b60006137e1602083612932565b91506137ec826137ab565b602082019050919050565b60006020820190508181036000830152613810816137d4565b9050919050565b6000819050919050565b61383261382d826127df565b613817565b82525050565b60006138448285613821565b6020820191506138548284613821565b6020820191508190509392505050565b600061386f826127df565b915061387a836127df565b92508282101561388d5761388c6132f2565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006138d2826127df565b91506138dd836127df565b9250826138ed576138ec613898565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613983602683612932565b915061398e82613927565b604082019050919050565b600060208201905081810360008301526139b281613976565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613a15602c83612932565b9150613a20826139b9565b604082019050919050565b60006020820190508181036000830152613a4481613a08565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b6000613aa7602983612932565b9150613ab282613a4b565b604082019050919050565b60006020820190508181036000830152613ad681613a9a565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613b39602483612932565b9150613b4482613add565b604082019050919050565b60006020820190508181036000830152613b6881613b2c565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613ba5601983612932565b9150613bb082613b6f565b602082019050919050565b60006020820190508181036000830152613bd481613b98565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613c37603283612932565b9150613c4282613bdb565b604082019050919050565b60006020820190508181036000830152613c6681613c2a565b9050919050565b6000613c78826127df565b9150613c83836127df565b925082613c9357613c92613898565b5b828204905092915050565b600081519050919050565b600082825260208201905092915050565b6000613cc582613c9e565b613ccf8185613ca9565b9350613cdf818560208601612943565b613ce881612976565b840191505092915050565b6000608082019050613d086000830187612a14565b613d156020830186612a14565b613d226040830185612842565b8181036060830152613d348184613cba565b905095945050505050565b600081519050613d4e81612898565b92915050565b600060208284031215613d6a57613d696127d5565b5b6000613d7884828501613d3f565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000613db7602083612932565b9150613dc282613d81565b602082019050919050565b60006020820190508181036000830152613de681613daa565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613e23601c83612932565b9150613e2e82613ded565b602082019050919050565b60006020820190508181036000830152613e5281613e16565b905091905056fea264697066735822122005bad3bdbccae771a511935d3f859b558eae071f3eff225f3eddd5cd2d9b617864736f6c634300080b0033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000027100000000000000000000000003b484b82567a09e2588a13d54d032153f0c0aee00000000000000000000000000000000000000000000000000000000000000008534f5320417065730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006534f534150450000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): SOS Apes
Arg [1] : symbol (string): SOSAPE
Arg [2] : maxSosGameSupply (uint256): 10000
Arg [3] : sosTokenAddress (address): 0x3b484b82567a09e2588A13D54D032153f0c0aEe0

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [3] : 0000000000000000000000003b484b82567a09e2588a13d54d032153f0c0aee0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [5] : 534f532041706573000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [7] : 534f534150450000000000000000000000000000000000000000000000000000


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.