ETH Price: $2,718.76 (+9.37%)
 

Overview

Max Total Supply

60 VALT

Holders

40

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 VALT
0x2f082c3abe4745d93087339ee7c4df159f5a0cfa
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:
BWPNFT

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : BWPNFT.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC721Tradable.sol";

/**
 * @title Creature
 * Creature - a contract for my non-fungible creatures.
 */
contract BWPNFT is ERC721Tradable {
  string private _baseTokenURI;

  event PermanentURI(string _value, uint256 indexed _id);

  constructor(address _proxyRegistryAddress)
    ERC721Tradable("RFOX VALT", "VALT", _proxyRegistryAddress)
  {}

	/**
   * Set new base token uri
   *
   * @param _uri base token uri
  */
  function setBaseTokenURI(string memory _uri) external onlyOwner {
    _baseTokenURI = _uri;
  }

  /**
   * Return base token uri
   *
   * @return base token uri
  */
  function baseTokenURI() override public view returns (string memory) {
    return _baseTokenURI;
    // return "https://creatures-api.opensea.io/api/creature/";
  }

	/**
   * Return contract uri
   *
   * @return contract uri
  */
  function contractURI() external pure returns (string memory) {
    return "https://rfoxvalt.com";
  }

	/**
   * Freeze a token
   *
   * @param _value string of metadata of a token
	 * @param _id token id to freeze
  */
  function freeze(string memory _value, uint256 _id) external {
    require(ownerOf(_id) == msg.sender, 'BWPNFT: INSUFFICIENT PERMISSION');
    emit PermanentURI(_value, _id);
  }
}

File 2 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 4 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 6 of 19 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 7 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 8 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 19 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 19 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 11 of 19 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 12 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 13 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 14 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 19 : ERC721Tradable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol";
import "openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "openzeppelin-solidity/contracts/access/Ownable.sol";
import "openzeppelin-solidity/contracts/utils/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/utils/Strings.sol";

import "./common/meta-transactions/ContentMixin.sol";
import "./common/meta-transactions/NativeMetaTransaction.sol";

contract OwnableDelegateProxy {}

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

/**
 * @title ERC721Tradable
 * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
 */
abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable {
  using SafeMath for uint256;

  address proxyRegistryAddress;
  uint256 private _currentTokenId = 0;

  constructor(
    string memory _name,
    string memory _symbol,
    address _proxyRegistryAddress
  ) ERC721(_name, _symbol) {
    proxyRegistryAddress = _proxyRegistryAddress;
    _initializeEIP712(_name);
  }

  /**
   * @dev Mints a token to an address with a tokenURI.
   * @param _to address of the future owner of the token
   */
  function mintTo(address _to) public onlyOwner {
    uint256 newTokenId = _getNextTokenId();
    _mint(_to, newTokenId);
    _incrementTokenId();
  }

  /**
   * @dev calculates the next token ID based on value of _currentTokenId
   * @return uint256 for the next token ID
   */
  function _getNextTokenId() private view returns (uint256) {
    return _currentTokenId.add(1);
  }

  /**
   * @dev increments the value of _currentTokenId
   */
  function _incrementTokenId() private {
    _currentTokenId++;
  }

  function baseTokenURI() virtual public view returns (string memory);

  function tokenURI(uint256 _tokenId) override public view returns (string memory) {
    return string(abi.encodePacked(baseTokenURI(), Strings.toString(_tokenId)));
  }

  /**
   * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
   */
  function isApprovedForAll(address owner, address operator)
    override
    public
    view
    returns (bool)
  {
    // Whitelist OpenSea proxy contract for easy trading.
    ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
    if (address(proxyRegistry.proxies(owner)) == operator) {
      return true;
    }

    return super.isApprovedForAll(owner, operator);
  }

  /**
   * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
   */
  function _msgSender()
    internal
    override
    view
    returns (address sender)
  {
    return ContextMixin.msgSender();
  }
}

File 16 of 19 : ContentMixin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

abstract contract ContextMixin {
	function msgSender()
		internal
		view
		returns (address payable sender)
	{
		if (msg.sender == address(this)) {
			bytes memory array = msg.data;
			uint256 index = msg.data.length;
			assembly {
				// Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
				sender := and(
					mload(add(array, index)),
					0xffffffffffffffffffffffffffffffffffffffff
				)
			}
		} else {
			sender = payable(msg.sender);
		}
		return sender;
	}
}

File 17 of 19 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {Initializable} from "./Initializable.sol";

contract EIP712Base is Initializable {
  struct EIP712Domain {
    string name;
    string version;
    address verifyingContract;
    bytes32 salt;
  }

  string constant public ERC712_VERSION = "1";

  bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
    bytes(
      "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
    )
  );
  bytes32 internal domainSeperator;

  // supposed to be called once while initializing.
  // one of the contracts that inherits this contract follows proxy pattern
  // so it is not possible to do this in a constructor
  function _initializeEIP712(
    string memory name
  )
    internal
    initializer
  {
    _setDomainSeperator(name);
  }

  function _setDomainSeperator(string memory name) internal {
    domainSeperator = keccak256(
      abi.encode(
        EIP712_DOMAIN_TYPEHASH,
        keccak256(bytes(name)),
        keccak256(bytes(ERC712_VERSION)),
        address(this),
        bytes32(getChainId())
      )
    );
  }

  function getDomainSeperator() public view returns (bytes32) {
    return domainSeperator;
  }

  function getChainId() public view returns (uint256) {
    uint256 id;
    assembly {
      id := chainid()
    }
    return id;
  }

  /**
   * Accept message hash and returns hash message in EIP712 compatible form
   * So that it can be used to recover signer from signature signed using EIP712 formatted data
   * https://eips.ethereum.org/EIPS/eip-712
   * "\\x19" makes the encoding deterministic
   * "\\x01" is the version byte to make it compatible to EIP-191
   */
  function toTypedMessageHash(bytes32 messageHash)
    internal
    view
    returns (bytes32)
  {
    return
      keccak256(
        abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
      );
  }
}

File 18 of 19 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract Initializable {
  bool inited = false;

  modifier initializer() {
    require(!inited, "already inited");
    _;
    inited = true;
  }
}

File 19 of 19 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {SafeMath} from  "openzeppelin-solidity/contracts/utils/math/SafeMath.sol";
import {EIP712Base} from "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
  using SafeMath for uint256;
  bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
    bytes(
      "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
    )
  );
  event MetaTransactionExecuted(
    address userAddress,
    address payable relayerAddress,
    bytes functionSignature
  );
  mapping(address => uint256) nonces;

  /*
   * Meta transaction structure.
   * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
   * He should call the desired function directly in that case.
   */
  struct MetaTransaction {
    uint256 nonce;
    address from;
    bytes functionSignature;
  }

  function executeMetaTransaction(
    address userAddress,
    bytes memory functionSignature,
    bytes32 sigR,
    bytes32 sigS,
    uint8 sigV
  ) public payable returns (bytes memory) {
    MetaTransaction memory metaTx = MetaTransaction({
      nonce: nonces[userAddress],
      from: userAddress,
      functionSignature: functionSignature
    });

    require(
      verify(userAddress, metaTx, sigR, sigS, sigV),
      "Signer and signature do not match"
    );

    // increase nonce for user (to avoid re-use)
    nonces[userAddress] = nonces[userAddress].add(1);

    emit MetaTransactionExecuted(
      userAddress,
      payable(msg.sender),
      functionSignature
    );

    // Append userAddress and relayer address at the end to extract it from calling context
    (bool success, bytes memory returnData) = address(this).call(
      abi.encodePacked(functionSignature, userAddress)
    );
    require(success, "Function call not successful");

    return returnData;
  }

  function hashMetaTransaction(MetaTransaction memory metaTx)
    internal
    pure
    returns (bytes32)
  {
    return
      keccak256(
        abi.encode(
          META_TRANSACTION_TYPEHASH,
          metaTx.nonce,
          metaTx.from,
          keccak256(metaTx.functionSignature)
        )
      );
  }

  function getNonce(address user) public view returns (uint256 nonce) {
    nonce = nonces[user];
  }

  function verify(
    address signer,
    MetaTransaction memory metaTx,
    bytes32 sigR,
    bytes32 sigS,
    uint8 sigV
  ) internal view returns (bool) {
    require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
    return
      signer ==
      ecrecover(
        toTypedMessageHash(hashMetaTransaction(metaTx)),
        sigV,
        sigR,
        sigS
      );
  }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","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":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","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":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"_value","type":"string"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"freeze","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":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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"}]

60806040526000600a60006101000a81548160ff0219169083151502179055506000600f553480156200003157600080fd5b5060405162004d5938038062004d59833981810160405281019062000057919062000510565b6040518060400160405280600981526020017f52464f582056414c5400000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f56414c54000000000000000000000000000000000000000000000000000000008152508282828160009080519060200190620000de92919062000449565b508060019080519060200190620000f792919062000449565b5050506200011a6200010e6200017660201b60201c565b6200019260201b60201c565b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200016c836200025860201b60201c565b5050505062000706565b60006200018d620002da60201b620017f81760201c565b905090565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600a60009054906101000a900460ff1615620002ab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002a290620005e8565b60405180910390fd5b620002bc816200038d60201b60201c565b6001600a60006101000a81548160ff02191690831515021790555050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156200038657600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff8183015116925050506200038a565b3390505b90565b6040518060800160405280604f815260200162004d0a604f91398051906020012081805190602001206040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152508051906020012030620004046200043c60201b60201c565b60001b6040516020016200041d9594939291906200058b565b60405160208183030381529060405280519060200120600b8190555050565b6000804690508091505090565b828054620004579062000659565b90600052602060002090601f0160209004810192826200047b5760008555620004c7565b82601f106200049657805160ff1916838001178555620004c7565b82800160010185558215620004c7579182015b82811115620004c6578251825591602001919060010190620004a9565b5b509050620004d69190620004da565b5090565b5b80821115620004f5576000816000905550600101620004db565b5090565b6000815190506200050a81620006ec565b92915050565b600060208284031215620005295762000528620006be565b5b60006200053984828501620004f9565b91505092915050565b6200054d816200061b565b82525050565b6200055e816200062f565b82525050565b600062000573600e836200060a565b91506200058082620006c3565b602082019050919050565b600060a082019050620005a2600083018862000553565b620005b1602083018762000553565b620005c0604083018662000553565b620005cf606083018562000542565b620005de608083018462000553565b9695505050505050565b60006020820190508181036000830152620006038162000564565b9050919050565b600082825260208201905092915050565b6000620006288262000639565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600060028204905060018216806200067257607f821691505b602082108114156200068957620006886200068f565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b7f616c726561647920696e69746564000000000000000000000000000000000000600082015250565b620006f7816200061b565b81146200070357600080fd5b50565b6145f480620007166000396000f3fe6080604052600436106101c25760003560e01c806342842e0e116100f757806395d89b4111610095578063d547cfb711610064578063d547cfb71461066b578063e8a3d48514610696578063e985e9c5146106c1578063f2fde38b146106fe576101c2565b806395d89b41146105b1578063a22cb465146105dc578063b88d4fde14610605578063c87b56dd1461062e576101c2565b806370a08231116100d157806370a0823114610509578063715018a614610546578063755edd171461055d5780638da5cb5b14610586576101c2565b806342842e0e146104665780634f6ccce71461048f5780636352211e146104cc576101c2565b806318160ddd116101645780632d0335ab1161013e5780632d0335ab146103985780632f745c59146103d557806330176e13146104125780633408e4701461043b576101c2565b806318160ddd1461031957806320379ee51461034457806323b872dd1461036f576101c2565b8063081812fc116101a0578063081812fc14610258578063095ea7b3146102955780630c53c51c146102be5780630f7e5970146102ee576101c2565b806301920b2c146101c757806301ffc9a7146101f057806306fdde031461022d575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e9919061305d565b610727565b005b3480156101fc57600080fd5b5061021760048036038101906102129190612f8d565b6107d9565b6040516102249190613683565b60405180910390f35b34801561023957600080fd5b50610242610853565b60405161024f9190613765565b60405180910390f35b34801561026457600080fd5b5061027f600480360381019061027a91906130b9565b6108e5565b60405161028c91906135de565b60405180910390f35b3480156102a157600080fd5b506102bc60048036038101906102b79190612f4d565b61096a565b005b6102d860048036038101906102d39190612eb6565b610a82565b6040516102e59190613743565b60405180910390f35b3480156102fa57600080fd5b50610303610cf4565b6040516103109190613765565b60405180910390f35b34801561032557600080fd5b5061032e610d2d565b60405161033b9190613a27565b60405180910390f35b34801561035057600080fd5b50610359610d3a565b604051610366919061369e565b60405180910390f35b34801561037b57600080fd5b5061039660048036038101906103919190612da0565b610d44565b005b3480156103a457600080fd5b506103bf60048036038101906103ba9190612d33565b610da4565b6040516103cc9190613a27565b60405180910390f35b3480156103e157600080fd5b506103fc60048036038101906103f79190612f4d565b610ded565b6040516104099190613a27565b60405180910390f35b34801561041e57600080fd5b5061043960048036038101906104349190613014565b610e92565b005b34801561044757600080fd5b50610450610f28565b60405161045d9190613a27565b60405180910390f35b34801561047257600080fd5b5061048d60048036038101906104889190612da0565b610f35565b005b34801561049b57600080fd5b506104b660048036038101906104b191906130b9565b610f55565b6040516104c39190613a27565b60405180910390f35b3480156104d857600080fd5b506104f360048036038101906104ee91906130b9565b610fc6565b60405161050091906135de565b60405180910390f35b34801561051557600080fd5b50610530600480360381019061052b9190612d33565b611078565b60405161053d9190613a27565b60405180910390f35b34801561055257600080fd5b5061055b611130565b005b34801561056957600080fd5b50610584600480360381019061057f9190612d33565b6111b8565b005b34801561059257600080fd5b5061059b611256565b6040516105a891906135de565b60405180910390f35b3480156105bd57600080fd5b506105c6611280565b6040516105d39190613765565b60405180910390f35b3480156105e857600080fd5b5061060360048036038101906105fe9190612e76565b611312565b005b34801561061157600080fd5b5061062c60048036038101906106279190612df3565b611493565b005b34801561063a57600080fd5b50610655600480360381019061065091906130b9565b6114f5565b6040516106629190613765565b60405180910390f35b34801561067757600080fd5b5061068061152f565b60405161068d9190613765565b60405180910390f35b3480156106a257600080fd5b506106ab6115c1565b6040516106b89190613765565b60405180910390f35b3480156106cd57600080fd5b506106e860048036038101906106e39190612d60565b6115fe565b6040516106f59190613683565b60405180910390f35b34801561070a57600080fd5b5061072560048036038101906107209190612d33565b611700565b005b3373ffffffffffffffffffffffffffffffffffffffff1661074782610fc6565b73ffffffffffffffffffffffffffffffffffffffff161461079d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079490613927565b60405180910390fd5b807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207836040516107cd9190613765565b60405180910390a25050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061084c575061084b826118a9565b5b9050919050565b60606000805461086290613cc3565b80601f016020809104026020016040519081016040528092919081815260200182805461088e90613cc3565b80156108db5780601f106108b0576101008083540402835291602001916108db565b820191906000526020600020905b8154815290600101906020018083116108be57829003601f168201915b5050505050905090565b60006108f08261198b565b61092f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092690613947565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061097582610fc6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109dd906139c7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a056119f7565b73ffffffffffffffffffffffffffffffffffffffff161480610a345750610a3381610a2e6119f7565b6115fe565b5b610a73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6a906138a7565b60405180910390fd5b610a7d8383611a06565b505050565b606060006040518060600160405280600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610b058782878787611abf565b610b44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3b906139a7565b60405180910390fd5b610b976001600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bc890919063ffffffff16565b600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610c0d939291906135f9565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610c4292919061355b565b604051602081830303815290604052604051610c5e9190613544565b6000604051808303816000865af19150503d8060008114610c9b576040519150601f19603f3d011682016040523d82523d6000602084013e610ca0565b606091505b509150915081610ce5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cdc906137e7565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b6000600880549050905090565b6000600b54905090565b610d55610d4f6119f7565b82611bde565b610d94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8b906139e7565b60405180910390fd5b610d9f838383611cbc565b505050565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610df883611078565b8210610e39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3090613787565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610e9a6119f7565b73ffffffffffffffffffffffffffffffffffffffff16610eb8611256565b73ffffffffffffffffffffffffffffffffffffffff1614610f0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0590613967565b60405180910390fd5b8060109080519060200190610f24929190612b08565b5050565b6000804690508091505090565b610f5083838360405180602001604052806000815250611493565b505050565b6000610f5f610d2d565b8210610fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9790613a07565b60405180910390fd5b60088281548110610fb457610fb3613e8a565b5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561106f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611066906138e7565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e0906138c7565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111386119f7565b73ffffffffffffffffffffffffffffffffffffffff16611156611256565b73ffffffffffffffffffffffffffffffffffffffff16146111ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a390613967565b60405180910390fd5b6111b66000611f18565b565b6111c06119f7565b73ffffffffffffffffffffffffffffffffffffffff166111de611256565b73ffffffffffffffffffffffffffffffffffffffff1614611234576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122b90613967565b60405180910390fd5b600061123e611fde565b905061124a8282611ffb565b6112526121c9565b5050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461128f90613cc3565b80601f01602080910402602001604051908101604052809291908181526020018280546112bb90613cc3565b80156113085780601f106112dd57610100808354040283529160200191611308565b820191906000526020600020905b8154815290600101906020018083116112eb57829003601f168201915b5050505050905090565b61131a6119f7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611388576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137f90613847565b60405180910390fd5b80600560006113956119f7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166114426119f7565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516114879190613683565b60405180910390a35050565b6114a461149e6119f7565b83611bde565b6114e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114da906139e7565b60405180910390fd5b6114ef848484846121e3565b50505050565b60606114ff61152f565b6115088361223f565b604051602001611519929190613583565b6040516020818303038152906040529050919050565b60606010805461153e90613cc3565b80601f016020809104026020016040519081016040528092919081815260200182805461156a90613cc3565b80156115b75780601f1061158c576101008083540402835291602001916115b7565b820191906000526020600020905b81548152906001019060200180831161159a57829003601f168201915b5050505050905090565b60606040518060400160405280601481526020017f68747470733a2f2f72666f7876616c742e636f6d000000000000000000000000815250905090565b600080600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161167691906135de565b60206040518083038186803b15801561168e57600080fd5b505afa1580156116a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c69190612fe7565b73ffffffffffffffffffffffffffffffffffffffff1614156116ec5760019150506116fa565b6116f684846123a0565b9150505b92915050565b6117086119f7565b73ffffffffffffffffffffffffffffffffffffffff16611726611256565b73ffffffffffffffffffffffffffffffffffffffff161461177c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177390613967565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156117ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e3906137c7565b60405180910390fd5b6117f581611f18565b50565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156118a257600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff8183015116925050506118a6565b3390505b90565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061197457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611984575061198382612434565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000611a016117f8565b905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611a7983610fc6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415611b30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2790613887565b60405180910390fd5b6001611b43611b3e8761249e565b612506565b83868660405160008152602001604052604051611b6394939291906136fe565b6020604051602081039080840390855afa158015611b85573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b60008183611bd69190613b17565b905092915050565b6000611be98261198b565b611c28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1f90613867565b60405180910390fd5b6000611c3383610fc6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611ca257508373ffffffffffffffffffffffffffffffffffffffff16611c8a846108e5565b73ffffffffffffffffffffffffffffffffffffffff16145b80611cb35750611cb281856115fe565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611cdc82610fc6565b73ffffffffffffffffffffffffffffffffffffffff1614611d32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2990613987565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611da2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9990613827565b60405180910390fd5b611dad83838361253f565b611db8600082611a06565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e089190613b9e565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e5f9190613b17565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000611ff66001600f54611bc890919063ffffffff16565b905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561206b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206290613907565b60405180910390fd5b6120748161198b565b156120b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ab90613807565b60405180910390fd5b6120c06000838361253f565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121109190613b17565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600f60008154809291906121dc90613d26565b9190505550565b6121ee848484611cbc565b6121fa84848484612653565b612239576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612230906137a7565b60405180910390fd5b50505050565b60606000821415612287576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061239b565b600082905060005b600082146122b95780806122a290613d26565b915050600a826122b29190613b6d565b915061228f565b60008167ffffffffffffffff8111156122d5576122d4613eb9565b5b6040519080825280601f01601f1916602001820160405280156123075781602001600182028036833780820191505090505b5090505b60008514612394576001826123209190613b9e565b9150600a8561232f9190613d9d565b603061233b9190613b17565b60f81b81838151811061235157612350613e8a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561238d9190613b6d565b945061230b565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060405180608001604052806043815260200161457c6043913980519060200120826000015183602001518460400151805190602001206040516020016124e994939291906136b9565b604051602081830303815290604052805190602001209050919050565b6000612510610d3a565b826040516020016125229291906135a7565b604051602081830303815290604052805190602001209050919050565b61254a8383836127ea565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561258d57612588816127ef565b6125cc565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146125cb576125ca8382612838565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561260f5761260a816129a5565b61264e565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461264d5761264c8282612a76565b5b5b505050565b60006126748473ffffffffffffffffffffffffffffffffffffffff16612af5565b156127dd578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261269d6119f7565b8786866040518563ffffffff1660e01b81526004016126bf9493929190613637565b602060405180830381600087803b1580156126d957600080fd5b505af192505050801561270a57506040513d601f19601f820116820180604052508101906127079190612fba565b60015b61278d573d806000811461273a576040519150601f19603f3d011682016040523d82523d6000602084013e61273f565b606091505b50600081511415612785576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277c906137a7565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506127e2565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161284584611078565b61284f9190613b9e565b9050600060076000848152602001908152602001600020549050818114612934576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506129b99190613b9e565b90506000600960008481526020019081526020016000205490506000600883815481106129e9576129e8613e8a565b5b906000526020600020015490508060088381548110612a0b57612a0a613e8a565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612a5a57612a59613e5b565b5b6001900381819060005260206000200160009055905550505050565b6000612a8183611078565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b828054612b1490613cc3565b90600052602060002090601f016020900481019282612b365760008555612b7d565b82601f10612b4f57805160ff1916838001178555612b7d565b82800160010185558215612b7d579182015b82811115612b7c578251825591602001919060010190612b61565b5b509050612b8a9190612b8e565b5090565b5b80821115612ba7576000816000905550600101612b8f565b5090565b6000612bbe612bb984613a67565b613a42565b905082815260208101848484011115612bda57612bd9613eed565b5b612be5848285613c81565b509392505050565b6000612c00612bfb84613a98565b613a42565b905082815260208101848484011115612c1c57612c1b613eed565b5b612c27848285613c81565b509392505050565b600081359050612c3e816144da565b92915050565b600081359050612c53816144f1565b92915050565b600081359050612c6881614508565b92915050565b600081359050612c7d8161451f565b92915050565b600081519050612c928161451f565b92915050565b600082601f830112612cad57612cac613ee8565b5b8135612cbd848260208601612bab565b91505092915050565b600081519050612cd581614536565b92915050565b600082601f830112612cf057612cef613ee8565b5b8135612d00848260208601612bed565b91505092915050565b600081359050612d188161454d565b92915050565b600081359050612d2d81614564565b92915050565b600060208284031215612d4957612d48613ef7565b5b6000612d5784828501612c2f565b91505092915050565b60008060408385031215612d7757612d76613ef7565b5b6000612d8585828601612c2f565b9250506020612d9685828601612c2f565b9150509250929050565b600080600060608486031215612db957612db8613ef7565b5b6000612dc786828701612c2f565b9350506020612dd886828701612c2f565b9250506040612de986828701612d09565b9150509250925092565b60008060008060808587031215612e0d57612e0c613ef7565b5b6000612e1b87828801612c2f565b9450506020612e2c87828801612c2f565b9350506040612e3d87828801612d09565b925050606085013567ffffffffffffffff811115612e5e57612e5d613ef2565b5b612e6a87828801612c98565b91505092959194509250565b60008060408385031215612e8d57612e8c613ef7565b5b6000612e9b85828601612c2f565b9250506020612eac85828601612c44565b9150509250929050565b600080600080600060a08688031215612ed257612ed1613ef7565b5b6000612ee088828901612c2f565b955050602086013567ffffffffffffffff811115612f0157612f00613ef2565b5b612f0d88828901612c98565b9450506040612f1e88828901612c59565b9350506060612f2f88828901612c59565b9250506080612f4088828901612d1e565b9150509295509295909350565b60008060408385031215612f6457612f63613ef7565b5b6000612f7285828601612c2f565b9250506020612f8385828601612d09565b9150509250929050565b600060208284031215612fa357612fa2613ef7565b5b6000612fb184828501612c6e565b91505092915050565b600060208284031215612fd057612fcf613ef7565b5b6000612fde84828501612c83565b91505092915050565b600060208284031215612ffd57612ffc613ef7565b5b600061300b84828501612cc6565b91505092915050565b60006020828403121561302a57613029613ef7565b5b600082013567ffffffffffffffff81111561304857613047613ef2565b5b61305484828501612cdb565b91505092915050565b6000806040838503121561307457613073613ef7565b5b600083013567ffffffffffffffff81111561309257613091613ef2565b5b61309e85828601612cdb565b92505060206130af85828601612d09565b9150509250929050565b6000602082840312156130cf576130ce613ef7565b5b60006130dd84828501612d09565b91505092915050565b6130ef81613be4565b82525050565b6130fe81613bd2565b82525050565b61311561311082613bd2565b613d6f565b82525050565b61312481613bf6565b82525050565b61313381613c02565b82525050565b61314a61314582613c02565b613d81565b82525050565b600061315b82613ac9565b6131658185613adf565b9350613175818560208601613c90565b61317e81613efc565b840191505092915050565b600061319482613ac9565b61319e8185613af0565b93506131ae818560208601613c90565b80840191505092915050565b60006131c582613ad4565b6131cf8185613afb565b93506131df818560208601613c90565b6131e881613efc565b840191505092915050565b60006131fe82613ad4565b6132088185613b0c565b9350613218818560208601613c90565b80840191505092915050565b6000613231602b83613afb565b915061323c82613f1a565b604082019050919050565b6000613254603283613afb565b915061325f82613f69565b604082019050919050565b6000613277602683613afb565b915061328282613fb8565b604082019050919050565b600061329a601c83613afb565b91506132a582614007565b602082019050919050565b60006132bd601c83613afb565b91506132c882614030565b602082019050919050565b60006132e0600283613b0c565b91506132eb82614059565b600282019050919050565b6000613303602483613afb565b915061330e82614082565b604082019050919050565b6000613326601983613afb565b9150613331826140d1565b602082019050919050565b6000613349602c83613afb565b9150613354826140fa565b604082019050919050565b600061336c602583613afb565b915061337782614149565b604082019050919050565b600061338f603883613afb565b915061339a82614198565b604082019050919050565b60006133b2602a83613afb565b91506133bd826141e7565b604082019050919050565b60006133d5602983613afb565b91506133e082614236565b604082019050919050565b60006133f8602083613afb565b915061340382614285565b602082019050919050565b600061341b601f83613afb565b9150613426826142ae565b602082019050919050565b600061343e602c83613afb565b9150613449826142d7565b604082019050919050565b6000613461602083613afb565b915061346c82614326565b602082019050919050565b6000613484602983613afb565b915061348f8261434f565b604082019050919050565b60006134a7602183613afb565b91506134b28261439e565b604082019050919050565b60006134ca602183613afb565b91506134d5826143ed565b604082019050919050565b60006134ed603183613afb565b91506134f88261443c565b604082019050919050565b6000613510602c83613afb565b915061351b8261448b565b604082019050919050565b61352f81613c6a565b82525050565b61353e81613c74565b82525050565b60006135508284613189565b915081905092915050565b60006135678285613189565b91506135738284613104565b6014820191508190509392505050565b600061358f82856131f3565b915061359b82846131f3565b91508190509392505050565b60006135b2826132d3565b91506135be8285613139565b6020820191506135ce8284613139565b6020820191508190509392505050565b60006020820190506135f360008301846130f5565b92915050565b600060608201905061360e60008301866130f5565b61361b60208301856130e6565b818103604083015261362d8184613150565b9050949350505050565b600060808201905061364c60008301876130f5565b61365960208301866130f5565b6136666040830185613526565b81810360608301526136788184613150565b905095945050505050565b6000602082019050613698600083018461311b565b92915050565b60006020820190506136b3600083018461312a565b92915050565b60006080820190506136ce600083018761312a565b6136db6020830186613526565b6136e860408301856130f5565b6136f5606083018461312a565b95945050505050565b6000608082019050613713600083018761312a565b6137206020830186613535565b61372d604083018561312a565b61373a606083018461312a565b95945050505050565b6000602082019050818103600083015261375d8184613150565b905092915050565b6000602082019050818103600083015261377f81846131ba565b905092915050565b600060208201905081810360008301526137a081613224565b9050919050565b600060208201905081810360008301526137c081613247565b9050919050565b600060208201905081810360008301526137e08161326a565b9050919050565b600060208201905081810360008301526138008161328d565b9050919050565b60006020820190508181036000830152613820816132b0565b9050919050565b60006020820190508181036000830152613840816132f6565b9050919050565b6000602082019050818103600083015261386081613319565b9050919050565b600060208201905081810360008301526138808161333c565b9050919050565b600060208201905081810360008301526138a08161335f565b9050919050565b600060208201905081810360008301526138c081613382565b9050919050565b600060208201905081810360008301526138e0816133a5565b9050919050565b60006020820190508181036000830152613900816133c8565b9050919050565b60006020820190508181036000830152613920816133eb565b9050919050565b600060208201905081810360008301526139408161340e565b9050919050565b6000602082019050818103600083015261396081613431565b9050919050565b6000602082019050818103600083015261398081613454565b9050919050565b600060208201905081810360008301526139a081613477565b9050919050565b600060208201905081810360008301526139c08161349a565b9050919050565b600060208201905081810360008301526139e0816134bd565b9050919050565b60006020820190508181036000830152613a00816134e0565b9050919050565b60006020820190508181036000830152613a2081613503565b9050919050565b6000602082019050613a3c6000830184613526565b92915050565b6000613a4c613a5d565b9050613a588282613cf5565b919050565b6000604051905090565b600067ffffffffffffffff821115613a8257613a81613eb9565b5b613a8b82613efc565b9050602081019050919050565b600067ffffffffffffffff821115613ab357613ab2613eb9565b5b613abc82613efc565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613b2282613c6a565b9150613b2d83613c6a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613b6257613b61613dce565b5b828201905092915050565b6000613b7882613c6a565b9150613b8383613c6a565b925082613b9357613b92613dfd565b5b828204905092915050565b6000613ba982613c6a565b9150613bb483613c6a565b925082821015613bc757613bc6613dce565b5b828203905092915050565b6000613bdd82613c4a565b9050919050565b6000613bef82613c4a565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000613c4382613bd2565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015613cae578082015181840152602081019050613c93565b83811115613cbd576000848401525b50505050565b60006002820490506001821680613cdb57607f821691505b60208210811415613cef57613cee613e2c565b5b50919050565b613cfe82613efc565b810181811067ffffffffffffffff82111715613d1d57613d1c613eb9565b5b80604052505050565b6000613d3182613c6a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613d6457613d63613dce565b5b600182019050919050565b6000613d7a82613d8b565b9050919050565b6000819050919050565b6000613d9682613f0d565b9050919050565b6000613da882613c6a565b9150613db383613c6a565b925082613dc357613dc2613dfd565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4257504e46543a20494e53554646494349454e54205045524d495353494f4e00600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6144e381613bd2565b81146144ee57600080fd5b50565b6144fa81613bf6565b811461450557600080fd5b50565b61451181613c02565b811461451c57600080fd5b50565b61452881613c0c565b811461453357600080fd5b50565b61453f81613c38565b811461454a57600080fd5b50565b61455681613c6a565b811461456157600080fd5b50565b61456d81613c74565b811461457857600080fd5b5056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220a82b99a8c6af6f87997fdace5e3af9b69419148182ee26f82022da312f5651c664736f6c63430008060033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

Deployed Bytecode

0x6080604052600436106101c25760003560e01c806342842e0e116100f757806395d89b4111610095578063d547cfb711610064578063d547cfb71461066b578063e8a3d48514610696578063e985e9c5146106c1578063f2fde38b146106fe576101c2565b806395d89b41146105b1578063a22cb465146105dc578063b88d4fde14610605578063c87b56dd1461062e576101c2565b806370a08231116100d157806370a0823114610509578063715018a614610546578063755edd171461055d5780638da5cb5b14610586576101c2565b806342842e0e146104665780634f6ccce71461048f5780636352211e146104cc576101c2565b806318160ddd116101645780632d0335ab1161013e5780632d0335ab146103985780632f745c59146103d557806330176e13146104125780633408e4701461043b576101c2565b806318160ddd1461031957806320379ee51461034457806323b872dd1461036f576101c2565b8063081812fc116101a0578063081812fc14610258578063095ea7b3146102955780630c53c51c146102be5780630f7e5970146102ee576101c2565b806301920b2c146101c757806301ffc9a7146101f057806306fdde031461022d575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e9919061305d565b610727565b005b3480156101fc57600080fd5b5061021760048036038101906102129190612f8d565b6107d9565b6040516102249190613683565b60405180910390f35b34801561023957600080fd5b50610242610853565b60405161024f9190613765565b60405180910390f35b34801561026457600080fd5b5061027f600480360381019061027a91906130b9565b6108e5565b60405161028c91906135de565b60405180910390f35b3480156102a157600080fd5b506102bc60048036038101906102b79190612f4d565b61096a565b005b6102d860048036038101906102d39190612eb6565b610a82565b6040516102e59190613743565b60405180910390f35b3480156102fa57600080fd5b50610303610cf4565b6040516103109190613765565b60405180910390f35b34801561032557600080fd5b5061032e610d2d565b60405161033b9190613a27565b60405180910390f35b34801561035057600080fd5b50610359610d3a565b604051610366919061369e565b60405180910390f35b34801561037b57600080fd5b5061039660048036038101906103919190612da0565b610d44565b005b3480156103a457600080fd5b506103bf60048036038101906103ba9190612d33565b610da4565b6040516103cc9190613a27565b60405180910390f35b3480156103e157600080fd5b506103fc60048036038101906103f79190612f4d565b610ded565b6040516104099190613a27565b60405180910390f35b34801561041e57600080fd5b5061043960048036038101906104349190613014565b610e92565b005b34801561044757600080fd5b50610450610f28565b60405161045d9190613a27565b60405180910390f35b34801561047257600080fd5b5061048d60048036038101906104889190612da0565b610f35565b005b34801561049b57600080fd5b506104b660048036038101906104b191906130b9565b610f55565b6040516104c39190613a27565b60405180910390f35b3480156104d857600080fd5b506104f360048036038101906104ee91906130b9565b610fc6565b60405161050091906135de565b60405180910390f35b34801561051557600080fd5b50610530600480360381019061052b9190612d33565b611078565b60405161053d9190613a27565b60405180910390f35b34801561055257600080fd5b5061055b611130565b005b34801561056957600080fd5b50610584600480360381019061057f9190612d33565b6111b8565b005b34801561059257600080fd5b5061059b611256565b6040516105a891906135de565b60405180910390f35b3480156105bd57600080fd5b506105c6611280565b6040516105d39190613765565b60405180910390f35b3480156105e857600080fd5b5061060360048036038101906105fe9190612e76565b611312565b005b34801561061157600080fd5b5061062c60048036038101906106279190612df3565b611493565b005b34801561063a57600080fd5b50610655600480360381019061065091906130b9565b6114f5565b6040516106629190613765565b60405180910390f35b34801561067757600080fd5b5061068061152f565b60405161068d9190613765565b60405180910390f35b3480156106a257600080fd5b506106ab6115c1565b6040516106b89190613765565b60405180910390f35b3480156106cd57600080fd5b506106e860048036038101906106e39190612d60565b6115fe565b6040516106f59190613683565b60405180910390f35b34801561070a57600080fd5b5061072560048036038101906107209190612d33565b611700565b005b3373ffffffffffffffffffffffffffffffffffffffff1661074782610fc6565b73ffffffffffffffffffffffffffffffffffffffff161461079d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079490613927565b60405180910390fd5b807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207836040516107cd9190613765565b60405180910390a25050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061084c575061084b826118a9565b5b9050919050565b60606000805461086290613cc3565b80601f016020809104026020016040519081016040528092919081815260200182805461088e90613cc3565b80156108db5780601f106108b0576101008083540402835291602001916108db565b820191906000526020600020905b8154815290600101906020018083116108be57829003601f168201915b5050505050905090565b60006108f08261198b565b61092f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092690613947565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061097582610fc6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109dd906139c7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a056119f7565b73ffffffffffffffffffffffffffffffffffffffff161480610a345750610a3381610a2e6119f7565b6115fe565b5b610a73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6a906138a7565b60405180910390fd5b610a7d8383611a06565b505050565b606060006040518060600160405280600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610b058782878787611abf565b610b44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3b906139a7565b60405180910390fd5b610b976001600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bc890919063ffffffff16565b600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610c0d939291906135f9565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610c4292919061355b565b604051602081830303815290604052604051610c5e9190613544565b6000604051808303816000865af19150503d8060008114610c9b576040519150601f19603f3d011682016040523d82523d6000602084013e610ca0565b606091505b509150915081610ce5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cdc906137e7565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b6000600880549050905090565b6000600b54905090565b610d55610d4f6119f7565b82611bde565b610d94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8b906139e7565b60405180910390fd5b610d9f838383611cbc565b505050565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610df883611078565b8210610e39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3090613787565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610e9a6119f7565b73ffffffffffffffffffffffffffffffffffffffff16610eb8611256565b73ffffffffffffffffffffffffffffffffffffffff1614610f0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0590613967565b60405180910390fd5b8060109080519060200190610f24929190612b08565b5050565b6000804690508091505090565b610f5083838360405180602001604052806000815250611493565b505050565b6000610f5f610d2d565b8210610fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9790613a07565b60405180910390fd5b60088281548110610fb457610fb3613e8a565b5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561106f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611066906138e7565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e0906138c7565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111386119f7565b73ffffffffffffffffffffffffffffffffffffffff16611156611256565b73ffffffffffffffffffffffffffffffffffffffff16146111ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a390613967565b60405180910390fd5b6111b66000611f18565b565b6111c06119f7565b73ffffffffffffffffffffffffffffffffffffffff166111de611256565b73ffffffffffffffffffffffffffffffffffffffff1614611234576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122b90613967565b60405180910390fd5b600061123e611fde565b905061124a8282611ffb565b6112526121c9565b5050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461128f90613cc3565b80601f01602080910402602001604051908101604052809291908181526020018280546112bb90613cc3565b80156113085780601f106112dd57610100808354040283529160200191611308565b820191906000526020600020905b8154815290600101906020018083116112eb57829003601f168201915b5050505050905090565b61131a6119f7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611388576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137f90613847565b60405180910390fd5b80600560006113956119f7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166114426119f7565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516114879190613683565b60405180910390a35050565b6114a461149e6119f7565b83611bde565b6114e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114da906139e7565b60405180910390fd5b6114ef848484846121e3565b50505050565b60606114ff61152f565b6115088361223f565b604051602001611519929190613583565b6040516020818303038152906040529050919050565b60606010805461153e90613cc3565b80601f016020809104026020016040519081016040528092919081815260200182805461156a90613cc3565b80156115b75780601f1061158c576101008083540402835291602001916115b7565b820191906000526020600020905b81548152906001019060200180831161159a57829003601f168201915b5050505050905090565b60606040518060400160405280601481526020017f68747470733a2f2f72666f7876616c742e636f6d000000000000000000000000815250905090565b600080600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161167691906135de565b60206040518083038186803b15801561168e57600080fd5b505afa1580156116a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c69190612fe7565b73ffffffffffffffffffffffffffffffffffffffff1614156116ec5760019150506116fa565b6116f684846123a0565b9150505b92915050565b6117086119f7565b73ffffffffffffffffffffffffffffffffffffffff16611726611256565b73ffffffffffffffffffffffffffffffffffffffff161461177c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177390613967565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156117ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e3906137c7565b60405180910390fd5b6117f581611f18565b50565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156118a257600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff8183015116925050506118a6565b3390505b90565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061197457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611984575061198382612434565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000611a016117f8565b905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611a7983610fc6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415611b30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2790613887565b60405180910390fd5b6001611b43611b3e8761249e565b612506565b83868660405160008152602001604052604051611b6394939291906136fe565b6020604051602081039080840390855afa158015611b85573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b60008183611bd69190613b17565b905092915050565b6000611be98261198b565b611c28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1f90613867565b60405180910390fd5b6000611c3383610fc6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611ca257508373ffffffffffffffffffffffffffffffffffffffff16611c8a846108e5565b73ffffffffffffffffffffffffffffffffffffffff16145b80611cb35750611cb281856115fe565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611cdc82610fc6565b73ffffffffffffffffffffffffffffffffffffffff1614611d32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2990613987565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611da2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9990613827565b60405180910390fd5b611dad83838361253f565b611db8600082611a06565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e089190613b9e565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e5f9190613b17565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000611ff66001600f54611bc890919063ffffffff16565b905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561206b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206290613907565b60405180910390fd5b6120748161198b565b156120b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ab90613807565b60405180910390fd5b6120c06000838361253f565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121109190613b17565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600f60008154809291906121dc90613d26565b9190505550565b6121ee848484611cbc565b6121fa84848484612653565b612239576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612230906137a7565b60405180910390fd5b50505050565b60606000821415612287576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061239b565b600082905060005b600082146122b95780806122a290613d26565b915050600a826122b29190613b6d565b915061228f565b60008167ffffffffffffffff8111156122d5576122d4613eb9565b5b6040519080825280601f01601f1916602001820160405280156123075781602001600182028036833780820191505090505b5090505b60008514612394576001826123209190613b9e565b9150600a8561232f9190613d9d565b603061233b9190613b17565b60f81b81838151811061235157612350613e8a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561238d9190613b6d565b945061230b565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060405180608001604052806043815260200161457c6043913980519060200120826000015183602001518460400151805190602001206040516020016124e994939291906136b9565b604051602081830303815290604052805190602001209050919050565b6000612510610d3a565b826040516020016125229291906135a7565b604051602081830303815290604052805190602001209050919050565b61254a8383836127ea565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561258d57612588816127ef565b6125cc565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146125cb576125ca8382612838565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561260f5761260a816129a5565b61264e565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461264d5761264c8282612a76565b5b5b505050565b60006126748473ffffffffffffffffffffffffffffffffffffffff16612af5565b156127dd578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261269d6119f7565b8786866040518563ffffffff1660e01b81526004016126bf9493929190613637565b602060405180830381600087803b1580156126d957600080fd5b505af192505050801561270a57506040513d601f19601f820116820180604052508101906127079190612fba565b60015b61278d573d806000811461273a576040519150601f19603f3d011682016040523d82523d6000602084013e61273f565b606091505b50600081511415612785576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277c906137a7565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506127e2565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161284584611078565b61284f9190613b9e565b9050600060076000848152602001908152602001600020549050818114612934576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506129b99190613b9e565b90506000600960008481526020019081526020016000205490506000600883815481106129e9576129e8613e8a565b5b906000526020600020015490508060088381548110612a0b57612a0a613e8a565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612a5a57612a59613e5b565b5b6001900381819060005260206000200160009055905550505050565b6000612a8183611078565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b828054612b1490613cc3565b90600052602060002090601f016020900481019282612b365760008555612b7d565b82601f10612b4f57805160ff1916838001178555612b7d565b82800160010185558215612b7d579182015b82811115612b7c578251825591602001919060010190612b61565b5b509050612b8a9190612b8e565b5090565b5b80821115612ba7576000816000905550600101612b8f565b5090565b6000612bbe612bb984613a67565b613a42565b905082815260208101848484011115612bda57612bd9613eed565b5b612be5848285613c81565b509392505050565b6000612c00612bfb84613a98565b613a42565b905082815260208101848484011115612c1c57612c1b613eed565b5b612c27848285613c81565b509392505050565b600081359050612c3e816144da565b92915050565b600081359050612c53816144f1565b92915050565b600081359050612c6881614508565b92915050565b600081359050612c7d8161451f565b92915050565b600081519050612c928161451f565b92915050565b600082601f830112612cad57612cac613ee8565b5b8135612cbd848260208601612bab565b91505092915050565b600081519050612cd581614536565b92915050565b600082601f830112612cf057612cef613ee8565b5b8135612d00848260208601612bed565b91505092915050565b600081359050612d188161454d565b92915050565b600081359050612d2d81614564565b92915050565b600060208284031215612d4957612d48613ef7565b5b6000612d5784828501612c2f565b91505092915050565b60008060408385031215612d7757612d76613ef7565b5b6000612d8585828601612c2f565b9250506020612d9685828601612c2f565b9150509250929050565b600080600060608486031215612db957612db8613ef7565b5b6000612dc786828701612c2f565b9350506020612dd886828701612c2f565b9250506040612de986828701612d09565b9150509250925092565b60008060008060808587031215612e0d57612e0c613ef7565b5b6000612e1b87828801612c2f565b9450506020612e2c87828801612c2f565b9350506040612e3d87828801612d09565b925050606085013567ffffffffffffffff811115612e5e57612e5d613ef2565b5b612e6a87828801612c98565b91505092959194509250565b60008060408385031215612e8d57612e8c613ef7565b5b6000612e9b85828601612c2f565b9250506020612eac85828601612c44565b9150509250929050565b600080600080600060a08688031215612ed257612ed1613ef7565b5b6000612ee088828901612c2f565b955050602086013567ffffffffffffffff811115612f0157612f00613ef2565b5b612f0d88828901612c98565b9450506040612f1e88828901612c59565b9350506060612f2f88828901612c59565b9250506080612f4088828901612d1e565b9150509295509295909350565b60008060408385031215612f6457612f63613ef7565b5b6000612f7285828601612c2f565b9250506020612f8385828601612d09565b9150509250929050565b600060208284031215612fa357612fa2613ef7565b5b6000612fb184828501612c6e565b91505092915050565b600060208284031215612fd057612fcf613ef7565b5b6000612fde84828501612c83565b91505092915050565b600060208284031215612ffd57612ffc613ef7565b5b600061300b84828501612cc6565b91505092915050565b60006020828403121561302a57613029613ef7565b5b600082013567ffffffffffffffff81111561304857613047613ef2565b5b61305484828501612cdb565b91505092915050565b6000806040838503121561307457613073613ef7565b5b600083013567ffffffffffffffff81111561309257613091613ef2565b5b61309e85828601612cdb565b92505060206130af85828601612d09565b9150509250929050565b6000602082840312156130cf576130ce613ef7565b5b60006130dd84828501612d09565b91505092915050565b6130ef81613be4565b82525050565b6130fe81613bd2565b82525050565b61311561311082613bd2565b613d6f565b82525050565b61312481613bf6565b82525050565b61313381613c02565b82525050565b61314a61314582613c02565b613d81565b82525050565b600061315b82613ac9565b6131658185613adf565b9350613175818560208601613c90565b61317e81613efc565b840191505092915050565b600061319482613ac9565b61319e8185613af0565b93506131ae818560208601613c90565b80840191505092915050565b60006131c582613ad4565b6131cf8185613afb565b93506131df818560208601613c90565b6131e881613efc565b840191505092915050565b60006131fe82613ad4565b6132088185613b0c565b9350613218818560208601613c90565b80840191505092915050565b6000613231602b83613afb565b915061323c82613f1a565b604082019050919050565b6000613254603283613afb565b915061325f82613f69565b604082019050919050565b6000613277602683613afb565b915061328282613fb8565b604082019050919050565b600061329a601c83613afb565b91506132a582614007565b602082019050919050565b60006132bd601c83613afb565b91506132c882614030565b602082019050919050565b60006132e0600283613b0c565b91506132eb82614059565b600282019050919050565b6000613303602483613afb565b915061330e82614082565b604082019050919050565b6000613326601983613afb565b9150613331826140d1565b602082019050919050565b6000613349602c83613afb565b9150613354826140fa565b604082019050919050565b600061336c602583613afb565b915061337782614149565b604082019050919050565b600061338f603883613afb565b915061339a82614198565b604082019050919050565b60006133b2602a83613afb565b91506133bd826141e7565b604082019050919050565b60006133d5602983613afb565b91506133e082614236565b604082019050919050565b60006133f8602083613afb565b915061340382614285565b602082019050919050565b600061341b601f83613afb565b9150613426826142ae565b602082019050919050565b600061343e602c83613afb565b9150613449826142d7565b604082019050919050565b6000613461602083613afb565b915061346c82614326565b602082019050919050565b6000613484602983613afb565b915061348f8261434f565b604082019050919050565b60006134a7602183613afb565b91506134b28261439e565b604082019050919050565b60006134ca602183613afb565b91506134d5826143ed565b604082019050919050565b60006134ed603183613afb565b91506134f88261443c565b604082019050919050565b6000613510602c83613afb565b915061351b8261448b565b604082019050919050565b61352f81613c6a565b82525050565b61353e81613c74565b82525050565b60006135508284613189565b915081905092915050565b60006135678285613189565b91506135738284613104565b6014820191508190509392505050565b600061358f82856131f3565b915061359b82846131f3565b91508190509392505050565b60006135b2826132d3565b91506135be8285613139565b6020820191506135ce8284613139565b6020820191508190509392505050565b60006020820190506135f360008301846130f5565b92915050565b600060608201905061360e60008301866130f5565b61361b60208301856130e6565b818103604083015261362d8184613150565b9050949350505050565b600060808201905061364c60008301876130f5565b61365960208301866130f5565b6136666040830185613526565b81810360608301526136788184613150565b905095945050505050565b6000602082019050613698600083018461311b565b92915050565b60006020820190506136b3600083018461312a565b92915050565b60006080820190506136ce600083018761312a565b6136db6020830186613526565b6136e860408301856130f5565b6136f5606083018461312a565b95945050505050565b6000608082019050613713600083018761312a565b6137206020830186613535565b61372d604083018561312a565b61373a606083018461312a565b95945050505050565b6000602082019050818103600083015261375d8184613150565b905092915050565b6000602082019050818103600083015261377f81846131ba565b905092915050565b600060208201905081810360008301526137a081613224565b9050919050565b600060208201905081810360008301526137c081613247565b9050919050565b600060208201905081810360008301526137e08161326a565b9050919050565b600060208201905081810360008301526138008161328d565b9050919050565b60006020820190508181036000830152613820816132b0565b9050919050565b60006020820190508181036000830152613840816132f6565b9050919050565b6000602082019050818103600083015261386081613319565b9050919050565b600060208201905081810360008301526138808161333c565b9050919050565b600060208201905081810360008301526138a08161335f565b9050919050565b600060208201905081810360008301526138c081613382565b9050919050565b600060208201905081810360008301526138e0816133a5565b9050919050565b60006020820190508181036000830152613900816133c8565b9050919050565b60006020820190508181036000830152613920816133eb565b9050919050565b600060208201905081810360008301526139408161340e565b9050919050565b6000602082019050818103600083015261396081613431565b9050919050565b6000602082019050818103600083015261398081613454565b9050919050565b600060208201905081810360008301526139a081613477565b9050919050565b600060208201905081810360008301526139c08161349a565b9050919050565b600060208201905081810360008301526139e0816134bd565b9050919050565b60006020820190508181036000830152613a00816134e0565b9050919050565b60006020820190508181036000830152613a2081613503565b9050919050565b6000602082019050613a3c6000830184613526565b92915050565b6000613a4c613a5d565b9050613a588282613cf5565b919050565b6000604051905090565b600067ffffffffffffffff821115613a8257613a81613eb9565b5b613a8b82613efc565b9050602081019050919050565b600067ffffffffffffffff821115613ab357613ab2613eb9565b5b613abc82613efc565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613b2282613c6a565b9150613b2d83613c6a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613b6257613b61613dce565b5b828201905092915050565b6000613b7882613c6a565b9150613b8383613c6a565b925082613b9357613b92613dfd565b5b828204905092915050565b6000613ba982613c6a565b9150613bb483613c6a565b925082821015613bc757613bc6613dce565b5b828203905092915050565b6000613bdd82613c4a565b9050919050565b6000613bef82613c4a565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000613c4382613bd2565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015613cae578082015181840152602081019050613c93565b83811115613cbd576000848401525b50505050565b60006002820490506001821680613cdb57607f821691505b60208210811415613cef57613cee613e2c565b5b50919050565b613cfe82613efc565b810181811067ffffffffffffffff82111715613d1d57613d1c613eb9565b5b80604052505050565b6000613d3182613c6a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613d6457613d63613dce565b5b600182019050919050565b6000613d7a82613d8b565b9050919050565b6000819050919050565b6000613d9682613f0d565b9050919050565b6000613da882613c6a565b9150613db383613c6a565b925082613dc357613dc2613dfd565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4257504e46543a20494e53554646494349454e54205045524d495353494f4e00600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6144e381613bd2565b81146144ee57600080fd5b50565b6144fa81613bf6565b811461450557600080fd5b50565b61451181613c02565b811461451c57600080fd5b50565b61452881613c0c565b811461453357600080fd5b50565b61453f81613c38565b811461454a57600080fd5b50565b61455681613c6a565b811461456157600080fd5b50565b61456d81613c74565b811461457857600080fd5b5056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220a82b99a8c6af6f87997fdace5e3af9b69419148182ee26f82022da312f5651c664736f6c63430008060033

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

000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1


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.