ETH Price: $2,445.91 (+5.85%)

Token

Sanshu INU Limited Edition Yokai Cards (SIYC)
 

Overview

Max Total Supply

2,096 SIYC

Holders

92

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0xb24cce37597812125022b580fc65a6c71be92fd2
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:
SanshuInuYokaiCards

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1 runs

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

pragma solidity 0.8.4;

import { ERC1155Tradable } from '../shared/ERC1155/ERC1155Tradable.sol';

contract SanshuInuYokaiCards is ERC1155Tradable {
  constructor(address _proxyRegistryAddress)
    ERC1155Tradable(
      'Sanshu INU Limited Edition Yokai Cards',
      'SIYC',
      'https://dogpark.sanshuinufinance.com/api/yokaicards/',
      _proxyRegistryAddress
    )
  {}
}

File 2 of 17 : ERC1155Tradable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import { Ownable } from '@openzeppelin/contracts/access/Ownable.sol';
import { ERC1155 } from '@openzeppelin/contracts/token/ERC1155/ERC1155.sol';
import { SafeMath } from '@openzeppelin/contracts/utils/math/SafeMath.sol';
import { Strings } from '@openzeppelin/contracts/utils/Strings.sol';

import { ContextMixin } from './common/ContentMixin.sol';
import { NativeMetaTransaction } from './common/NativeMetaTransaction.sol';

contract OwnableDelegateProxy {}

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

/**
 * @title ERC1155Tradable
 * ERC1155Tradable - ERC1155 contract that whitelists an operator address, has create and mint functionality, and supports useful standards from OpenZeppelin,
  like _exists(), name(), symbol(), and totalSupply()
 */
contract ERC1155Tradable is
  ContextMixin,
  ERC1155,
  NativeMetaTransaction,
  Ownable
{
  using Strings for string;
  using SafeMath for uint256;

  address proxyRegistryAddress;
  mapping(uint256 => address) public creators;
  mapping(uint256 => uint256) public tokenSupply;
  mapping(uint256 => string) customUri;
  // Contract name
  string public name;
  // Contract symbol
  string public symbol;

  /**
   * @dev Require _msgSender() to be the creator of the token id
   */
  modifier creatorOnly(uint256 _id) {
    require(
      creators[_id] == _msgSender(),
      'ERC1155Tradable#creatorOnly: ONLY_CREATOR_ALLOWED'
    );
    _;
  }

  /**
   * @dev Require _msgSender() to own more than 0 of the token id
   */
  modifier ownersOnly(uint256 _id) {
    require(
      balanceOf(_msgSender(), _id) > 0,
      'ERC1155Tradable#ownersOnly: ONLY_OWNERS_ALLOWED'
    );
    _;
  }

  constructor(
    string memory _name,
    string memory _symbol,
    string memory _uri,
    address _proxyRegistryAddress
  ) ERC1155(_uri) {
    name = _name;
    symbol = _symbol;
    proxyRegistryAddress = _proxyRegistryAddress;
    _initialiseEIP712(name);
  }

  function uri(uint256 _id) public view override returns (string memory) {
    require(_exists(_id), 'ERC1155Tradable#uri: NONEXISTENT_TOKEN');
    // We have to convert string to bytes to check for existence
    bytes memory customUriBytes = bytes(customUri[_id]);
    if (customUriBytes.length > 0) {
      return customUri[_id];
    } else {
      return string(abi.encodePacked(super.uri(_id), Strings.toString(_id)));
    }
  }

  /**
   * @dev Returns the total quantity for a token ID
   * @param _id uint256 ID of the token to query
   * @return amount of token in existence
   */
  function totalSupply(uint256 _id) public view returns (uint256) {
    return tokenSupply[_id];
  }

  /**
   * @dev Sets a new URI for all token types, by relying on the token type ID
   * substitution mechanism
   * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
   * @param _newURI New URI for all tokens
   */
  function setURI(string memory _newURI) public onlyOwner {
    _setURI(_newURI);
  }

  /**
   * @dev Will update the base URI for the token
   * @param _tokenId The token to update. _msgSender() must be its creator.
   * @param _newURI New URI for the token.
   */
  function setCustomURI(uint256 _tokenId, string memory _newURI)
    public
    creatorOnly(_tokenId)
  {
    customUri[_tokenId] = _newURI;
    emit URI(_newURI, _tokenId);
  }

  /**
   * @dev Creates a new token type and assigns _initialSupply to an address
   * NOTE: remove onlyOwner if you want third parties to create new tokens on
   *       your contract (which may change your IDs)
   * NOTE: The token id must be passed. This allows lazy creation of tokens or
   *       creating NFTs by setting the id's high bits with the method
   *       described in ERC1155 or to use ids representing values other than
   *       successive small integers. If you wish to create ids as successive
   *       small integers you can either subclass this class to count onchain
   *       or maintain the offchain cache of identifiers recommended in
   *       ERC1155 and calculate successive ids from that.
   * @param _initialOwner address of the first owner of the token
   * @param _id The id of the token to create (must not currenty exist).
   * @param _initialSupply amount to supply the first owner
   * @param _uri Optional URI for this token type
   * @param _data Data to pass if receiver is contract
   * @return The newly created token ID
   */
  function create(
    address _initialOwner,
    uint256 _id,
    uint256 _initialSupply,
    string memory _uri,
    bytes memory _data
  ) public onlyOwner returns (uint256) {
    require(!_exists(_id), 'token _id already exists');
    creators[_id] = _msgSender();

    if (bytes(_uri).length > 0) {
      customUri[_id] = _uri;
      emit URI(_uri, _id);
    }

    _mint(_initialOwner, _id, _initialSupply, _data);

    tokenSupply[_id] = _initialSupply;
    return _id;
  }

  /**
   * @dev Mints some amount of tokens to an address
   * @param _to          Address of the future owner of the token
   * @param _id          Token ID to mint
   * @param _quantity    Amount of tokens to mint
   * @param _data        Data to pass if receiver is contract
   */
  function mint(
    address _to,
    uint256 _id,
    uint256 _quantity,
    bytes memory _data
  ) public virtual creatorOnly(_id) {
    _mint(_to, _id, _quantity, _data);
    tokenSupply[_id] = tokenSupply[_id].add(_quantity);
  }

  /**
   * @dev Mint tokens for each id in _ids
   * @param _to          The address to mint tokens to
   * @param _ids         Array of ids to mint
   * @param _quantities  Array of amounts of tokens to mint per id
   * @param _data        Data to pass if receiver is contract
   */
  function batchMint(
    address _to,
    uint256[] memory _ids,
    uint256[] memory _quantities,
    bytes memory _data
  ) public {
    for (uint256 i = 0; i < _ids.length; i++) {
      uint256 _id = _ids[i];
      require(
        creators[_id] == _msgSender(),
        'ERC1155Tradable#batchMint: ONLY_CREATOR_ALLOWED'
      );
      uint256 quantity = _quantities[i];
      tokenSupply[_id] = tokenSupply[_id].add(quantity);
    }
    _mintBatch(_to, _ids, _quantities, _data);
  }

  /**
   * @dev Change the creator address for given tokens
   * @param _to   Address of the new creator
   * @param _ids  Array of Token IDs to change creator
   */
  function setCreator(address _to, uint256[] memory _ids) public {
    require(_to != address(0), 'ERC1155Tradable#setCreator: INVALID_ADDRESS.');
    for (uint256 i = 0; i < _ids.length; i++) {
      uint256 id = _ids[i];
      _setCreator(_to, id);
    }
  }

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

    return ERC1155.isApprovedForAll(_owner, _operator);
  }

  /**
   * @dev Change the creator address for given token
   * @param _to   Address of the new creator
   * @param _id  Token IDs to change creator of
   */
  function _setCreator(address _to, uint256 _id) internal creatorOnly(_id) {
    creators[_id] = _to;
  }

  /**
   * @dev Returns whether the specified token exists by checking to see if it has a creator
   * @param _id uint256 ID of the token to query the existence of
   * @return bool whether the token exists
   */
  function _exists(uint256 _id) internal view returns (bool) {
    return creators[_id] != address(0);
  }

  function exists(uint256 _id) external view returns (bool) {
    return _exists(_id);
  }

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

File 3 of 17 : 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 4 of 17 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][account] += amount;
        emit TransferSingle(operator, address(0), account, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 accountBalance = _balances[id][account];
        require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][account] = accountBalance - amount;
        }

        emit TransferSingle(operator, account, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 accountBalance = _balances[id][account];
            require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][account] = accountBalance - amount;
            }
        }

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 5 of 17 : 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 6 of 17 : 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 7 of 17 : 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 8 of 17 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import { SafeMath } from '@openzeppelin/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
      );
  }
}

File 9 of 17 : 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 10 of 17 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 11 of 17 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 12 of 17 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 13 of 17 : 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 14 of 17 : 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 15 of 17 : 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 16 of 17 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import { Initialisable } from './Initialisable.sol';

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

  string public constant 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 initialising.
  // one of the contracts that inherits this contract follows proxy pattern
  // so it is not possible to do this in a constructor
  function _initialiseEIP712(string memory name) internal initialiser {
    _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 17 of 17 : Initialisable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract Initialisable {
  bool inited = false;

  modifier initialiser() {
    require(!inited, 'already inited');
    _;
    inited = true;
  }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_quantities","type":"uint256[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_initialOwner","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_initialSupply","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"create","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"creators","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"uint256","name":"_id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"mint","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"setCreator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_newURI","type":"string"}],"name":"setCustomURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"setURI","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":"","type":"uint256"}],"name":"tokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040526003805460ff191690553480156200001b57600080fd5b506040516200341d3803806200341d8339810160408190526200003e9162000435565b604051806060016040528060268152602001620033c360269139604051806040016040528060048152602001635349594360e01b815250604051806060016040528060348152602001620033e96034913983816200009c81620001a3565b50620000b1620000ab620001bc565b620001d8565b8351620000c690600b9060208701906200038f565b508251620000dc90600c9060208601906200038f565b50600780546001600160a01b0319166001600160a01b038316179055600b80546200019891906200010d9062000465565b80601f01602080910402602001604051908101604052809291908181526020018280546200013b9062000465565b80156200018c5780601f1062000160576101008083540402835291602001916200018c565b820191906000526020600020905b8154815290600101906020018083116200016e57829003601f168201915b50506200022a92505050565b5050505050620004a2565b8051620001b89060029060208401906200038f565b5050565b6000620001d36200028e60201b620014ac1760201c565b905090565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60035460ff1615620002735760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015260640160405180910390fd5b6200027e81620002ed565b506003805460ff19166001179055565b600033301415620002e757600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620002ea9050565b50335b90565b6040518060800160405280604f815260200162003374604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600455565b8280546200039d9062000465565b90600052602060002090601f016020900481019282620003c157600085556200040c565b82601f10620003dc57805160ff19168380011785556200040c565b828001600101855582156200040c579182015b828111156200040c578251825591602001919060010190620003ef565b506200041a9291506200041e565b5090565b5b808211156200041a57600081556001016200041f565b60006020828403121562000447578081fd5b81516001600160a01b03811681146200045e578182fd5b9392505050565b600181811c908216806200047a57607f821691505b602082108114156200049c57634e487b7160e01b600052602260045260246000fd5b50919050565b612ec280620004b26000396000f3fe6080604052600436106101465760003560e01c8062fdd58e1461014b57806301ffc9a71461017e57806302fe5305146101ae57806306fdde03146101d05780630c53c51c146101f25780630e89341c146102055780630f7e59701461022557806320379ee5146102525780632693ebf2146102675780632d0335ab146102945780632eb2c2d6146102ca5780633408e470146102ea57806336a100d5146102fd5780633adf80b41461031d5780634e1273f41461033d5780634f558e791461036a578063715018a61461038a578063731133e91461039f5780638da5cb5b146103bf57806395d89b41146103e1578063a22cb465146103f6578063b48ab8b614610416578063bd85b03914610436578063cd53d08e14610463578063d2a6b51a14610499578063e985e9c5146104b9578063f242432a146104d9578063f2fde38b146104f9575b600080fd5b34801561015757600080fd5b5061016b610166366004612556565b610519565b6040519081526020015b60405180910390f35b34801561018a57600080fd5b5061019e6101993660046126ee565b6105b3565b6040519015158152602001610175565b3480156101ba57600080fd5b506101ce6101c9366004612742565b610603565b005b3480156101dc57600080fd5b506101e561064e565b60405161017591906129c1565b6101e56102003660046124dc565b6106dc565b34801561021157600080fd5b506101e5610220366004612774565b6108c5565b34801561023157600080fd5b506101e5604051806040016040528060018152602001603160f81b81525081565b34801561025e57600080fd5b5060045461016b565b34801561027357600080fd5b5061016b610282366004612774565b60096020526000908152604090205481565b3480156102a057600080fd5b5061016b6102af366004612265565b6001600160a01b031660009081526005602052604090205490565b3480156102d657600080fd5b506101ce6102e53660046122b9565b610aad565b3480156102f657600080fd5b504661016b565b34801561030957600080fd5b5061016b6103183660046125d5565b610b56565b34801561032957600080fd5b506101ce61033836600461278c565b610c8d565b34801561034957600080fd5b5061035d61035836600461262c565b610d1a565b6040516101759190612989565b34801561037657600080fd5b5061019e610385366004612774565b610e7b565b34801561039657600080fd5b506101ce610e86565b3480156103ab57600080fd5b506101ce6103ba366004612581565b610ed1565b3480156103cb57600080fd5b506103d4610f51565b60405161017591906128a9565b3480156103ed57600080fd5b506101e5610f60565b34801561040257600080fd5b506101ce6104113660046124ab565b610f6d565b34801561042257600080fd5b506101ce610431366004612415565b611081565b34801561044257600080fd5b5061016b610451366004612774565b60009081526009602052604090205490565b34801561046f57600080fd5b506103d461047e366004612774565b6008602052600090815260409020546001600160a01b031681565b3480156104a557600080fd5b506101ce6104b43660046123c8565b6111cd565b3480156104c557600080fd5b5061019e6104d4366004612281565b611292565b3480156104e557600080fd5b506101ce6104f4366004612362565b611366565b34801561050557600080fd5b506101ce610514366004612265565b6113ff565b60006001600160a01b03831661058a5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b14806105e457506001600160e01b031982166303a24d0760e21b145b806105ad57506301ffc9a760e01b6001600160e01b03198316146105ad565b61060b611509565b6001600160a01b031661061c610f51565b6001600160a01b0316146106425760405162461bcd60e51b815260040161058190612aab565b61064b81611518565b50565b600b805461065b90612c4c565b80601f016020809104026020016040519081016040528092919081815260200182805461068790612c4c565b80156106d45780601f106106a9576101008083540402835291602001916106d4565b820191906000526020600020905b8154815290600101906020018083116106b757829003601f168201915b505050505081565b60408051606081810183526001600160a01b0388166000818152600560209081529085902054845283015291810186905261071a878287878761152f565b6107705760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610581565b6001600160a01b03871660009081526005602052604090205461079490600161161f565b6001600160a01b0388166000908152600560205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b906107e490899033908a906128bd565b60405180910390a1600080306001600160a01b0316888a60405160200161080c929190612848565b60408051601f19818403018152908290526108269161282c565b6000604051808303816000865af19150503d8060008114610863576040519150601f19603f3d011682016040523d82523d6000602084013e610868565b606091505b5091509150816108b95760405162461bcd60e51b815260206004820152601c60248201527b119d5b98dd1a5bdb8818d85b1b081b9bdd081cdd58d8d95cdcd99d5b60221b6044820152606401610581565b98975050505050505050565b60606108d082611632565b61092b5760405162461bcd60e51b815260206004820152602660248201527f455243313135355472616461626c65237572693a204e4f4e4558495354454e546044820152652faa27a5a2a760d11b6064820152608401610581565b6000828152600a60205260408120805461094490612c4c565b80601f016020809104026020016040519081016040528092919081815260200182805461097090612c4c565b80156109bd5780601f10610992576101008083540402835291602001916109bd565b820191906000526020600020905b8154815290600101906020018083116109a057829003601f168201915b50505050509050600081511115610a6d576000838152600a6020526040902080546109e790612c4c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1390612c4c565b8015610a605780601f10610a3557610100808354040283529160200191610a60565b820191906000526020600020905b815481529060010190602001808311610a4357829003601f168201915b5050505050915050919050565b610a768361164f565b610a7f846116e3565b604051602001610a9092919061287a565b604051602081830303815290604052915050919050565b50919050565b610ab5611509565b6001600160a01b0316856001600160a01b03161480610adb5750610adb856104d4611509565b610b425760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610581565b610b4f85858585856117fc565b5050505050565b6000610b60611509565b6001600160a01b0316610b71610f51565b6001600160a01b031614610b975760405162461bcd60e51b815260040161058190612aab565b610ba085611632565b15610be85760405162461bcd60e51b8152602060048201526018602482015277746f6b656e205f696420616c72656164792065786973747360401b6044820152606401610581565b610bf0611509565b600086815260086020526040902080546001600160a01b0319166001600160a01b0392909216919091179055825115610c6a576000858152600a602090815260409091208451610c42928601906120ea565b5084600080516020612e6d83398151915284604051610c6191906129c1565b60405180910390a25b610c76868686856119ad565b505050600082815260096020526040902055919050565b81610c96611509565b6000828152600860205260409020546001600160a01b03908116911614610ccf5760405162461bcd60e51b815260040161058190612b69565b6000838152600a602090815260409091208351610cee928501906120ea565b5082600080516020612e6d83398151915283604051610d0d91906129c1565b60405180910390a2505050565b60608151835114610d7f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610581565b600083516001600160401b03811115610da857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610dd1578160200160208202803683370190505b50905060005b8451811015610e7357610e38858281518110610e0357634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610e2b57634e487b7160e01b600052603260045260246000fd5b6020026020010151610519565b828281518110610e5857634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610e6c81612cad565b9050610dd7565b509392505050565b60006105ad82611632565b610e8e611509565b6001600160a01b0316610e9f610f51565b6001600160a01b031614610ec55760405162461bcd60e51b815260040161058190612aab565b610ecf6000611a76565b565b82610eda611509565b6000828152600860205260409020546001600160a01b03908116911614610f135760405162461bcd60e51b815260040161058190612b69565b610f1f858585856119ad565b600084815260096020526040902054610f38908461161f565b6000948552600960205260409094209390935550505050565b6006546001600160a01b031690565b600c805461065b90612c4c565b816001600160a01b0316610f7f611509565b6001600160a01b03161415610fe85760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610581565b8060016000610ff5611509565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611039611509565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611075911515815260200190565b60405180910390a35050565b60005b83518110156111ba5760008482815181106110af57634e487b7160e01b600052603260045260246000fd5b602002602001015190506110c1611509565b6000828152600860205260409020546001600160a01b039081169116146111425760405162461bcd60e51b815260206004820152602f60248201527f455243313135355472616461626c652362617463684d696e743a204f4e4c595f60448201526e10d491505513d497d0531313d5d151608a1b6064820152608401610581565b600084838151811061116457634e487b7160e01b600052603260045260246000fd5b6020026020010151905061119481600960008581526020019081526020016000205461161f90919063ffffffff16565b6000928352600960205260409092209190915550806111b281612cad565b915050611084565b506111c784848484611ac8565b50505050565b6001600160a01b0382166112385760405162461bcd60e51b815260206004820152602c60248201527f455243313135355472616461626c652373657443726561746f723a20494e564160448201526b2624a22fa0a2222922a9a99760a11b6064820152608401610581565b60005b815181101561128d57600082828151811061126657634e487b7160e01b600052603260045260246000fd5b6020026020010151905061127a8482611c28565b508061128581612cad565b91505061123b565b505050565b60075460405163c455279160e01b81526000916001600160a01b039081169190841690829063c4552791906112cb9088906004016128a9565b60206040518083038186803b1580156112e357600080fd5b505afa1580156112f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061131b9190612726565b6001600160a01b031614156113345760019150506105ad565b6001600160a01b0380851660009081526001602090815260408083209387168352929052205460ff165b949350505050565b61136e611509565b6001600160a01b0316856001600160a01b031614806113945750611394856104d4611509565b6113f25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610581565b610b4f8585858585611c99565b611407611509565b6001600160a01b0316611418610f51565b6001600160a01b03161461143e5760405162461bcd60e51b815260040161058190612aab565b6001600160a01b0381166114a35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610581565b61064b81611a76565b60003330141561150357600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506115069050565b50335b90565b60006115136114ac565b905090565b805161152b9060029060208401906120ea565b5050565b60006001600160a01b0386166115955760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610581565b60016115a86115a387611daf565b611e2c565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa1580156115f6573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b600061162b8284612bdd565b9392505050565b6000908152600860205260409020546001600160a01b0316151590565b60606002805461165e90612c4c565b80601f016020809104026020016040519081016040528092919081815260200182805461168a90612c4c565b80156116d75780601f106116ac576101008083540402835291602001916116d7565b820191906000526020600020905b8154815290600101906020018083116116ba57829003601f168201915b50505050509050919050565b6060816117075750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611731578061171b81612cad565b915061172a9050600a83612bf5565b915061170b565b6000816001600160401b0381111561175957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611783576020820181803683370190505b5090505b841561135e57611798600183612c09565b91506117a5600a86612cc8565b6117b0906030612bdd565b60f81b8183815181106117d357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506117f5600a86612bf5565b9450611787565b815183511461181d5760405162461bcd60e51b815260040161058190612ae0565b6001600160a01b0384166118435760405162461bcd60e51b815260040161058190612a1c565b600061184d611509565b905060005b845181101561195157600085828151811061187d57634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106118a957634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156118f95760405162461bcd60e51b815260040161058190612a61565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611936908490612bdd565b925050819055505050508061194a90612cad565b9050611852565b50846001600160a01b0316866001600160a01b0316826001600160a01b0316600080516020612dea833981519152878760405161198f92919061299c565b60405180910390a46119a5818787878787611e5c565b505050505050565b6001600160a01b0384166119d35760405162461bcd60e51b815260040161058190612b28565b60006119dd611509565b90506119f8816000876119ef88611fc7565b610b4f88611fc7565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611a28908490612bdd565b909155505060408051858152602081018590526001600160a01b038088169260009291851691600080516020612e0a833981519152910160405180910390a4610b4f81600087878787612020565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416611aee5760405162461bcd60e51b815260040161058190612b28565b8151835114611b0f5760405162461bcd60e51b815260040161058190612ae0565b6000611b19611509565b905060005b8451811015611bd257838181518110611b4757634e487b7160e01b600052603260045260246000fd5b6020026020010151600080878481518110611b7257634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254611bba9190612bdd565b90915550819050611bca81612cad565b915050611b1e565b50846001600160a01b031660006001600160a01b0316826001600160a01b0316600080516020612dea8339815191528787604051611c1192919061299c565b60405180910390a4610b4f81600087878787611e5c565b80611c31611509565b6000828152600860205260409020546001600160a01b03908116911614611c6a5760405162461bcd60e51b815260040161058190612b69565b50600090815260086020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038416611cbf5760405162461bcd60e51b815260040161058190612a1c565b6000611cc9611509565b9050611cda8187876119ef88611fc7565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611d1b5760405162461bcd60e51b815260040161058190612a61565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611d58908490612bdd565b909155505060408051868152602081018690526001600160a01b03808916928a82169291861691600080516020612e0a833981519152910160405180910390a4611da6828888888888612020565b50505050505050565b6000604051806080016040528060438152602001612e2a6043913980516020918201208351848301516040808701518051908601209051611e0f950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000611e3760045490565b60405161190160f01b6020820152602281019190915260428101839052606201611e0f565b6001600160a01b0384163b156119a55760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611ea090899089908890889088906004016128f2565b602060405180830381600087803b158015611eba57600080fd5b505af1925050508015611eea575060408051601f3d908101601f19168201909252611ee79181019061270a565b60015b611f9757611ef6612d1e565b806308c379a01415611f305750611f0b612d35565b80611f165750611f32565b8060405162461bcd60e51b815260040161058191906129c1565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610581565b6001600160e01b0319811663bc197c8160e01b14611da65760405162461bcd60e51b8152600401610581906129d4565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061200f57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156119a55760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906120649089908990889088908890600401612944565b602060405180830381600087803b15801561207e57600080fd5b505af19250505080156120ae575060408051601f3d908101601f191682019092526120ab9181019061270a565b60015b6120ba57611ef6612d1e565b6001600160e01b0319811663f23a6e6160e01b14611da65760405162461bcd60e51b8152600401610581906129d4565b8280546120f690612c4c565b90600052602060002090601f016020900481019282612118576000855561215e565b82601f1061213157805160ff191683800117855561215e565b8280016001018555821561215e579182015b8281111561215e578251825591602001919060010190612143565b5061216a92915061216e565b5090565b5b8082111561216a576000815560010161216f565b600082601f830112612193578081fd5b813560206121a082612bba565b6040516121ad8282612c81565b8381528281019150858301600585901b870184018810156121cc578586fd5b855b858110156121ea578135845292840192908401906001016121ce565b5090979650505050505050565b600082601f830112612207578081fd5b81356001600160401b0381111561222057612220612d08565b604051612237601f8301601f191660200182612c81565b81815284602083860101111561224b578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215612276578081fd5b813561162b81612dbe565b60008060408385031215612293578081fd5b823561229e81612dbe565b915060208301356122ae81612dbe565b809150509250929050565b600080600080600060a086880312156122d0578081fd5b85356122db81612dbe565b945060208601356122eb81612dbe565b935060408601356001600160401b0380821115612306578283fd5b61231289838a01612183565b94506060880135915080821115612327578283fd5b61233389838a01612183565b93506080880135915080821115612348578283fd5b50612355888289016121f7565b9150509295509295909350565b600080600080600060a08688031215612379578081fd5b853561238481612dbe565b9450602086013561239481612dbe565b9350604086013592506060860135915060808601356001600160401b038111156123bc578182fd5b612355888289016121f7565b600080604083850312156123da578182fd5b82356123e581612dbe565b915060208301356001600160401b038111156123ff578182fd5b61240b85828601612183565b9150509250929050565b6000806000806080858703121561242a578384fd5b843561243581612dbe565b935060208501356001600160401b0380821115612450578485fd5b61245c88838901612183565b94506040870135915080821115612471578384fd5b61247d88838901612183565b93506060870135915080821115612492578283fd5b5061249f878288016121f7565b91505092959194509250565b600080604083850312156124bd578182fd5b82356124c881612dbe565b9150602083013580151581146122ae578182fd5b600080600080600060a086880312156124f3578283fd5b85356124fe81612dbe565b945060208601356001600160401b03811115612518578384fd5b612524888289016121f7565b9450506040860135925060608601359150608086013560ff81168114612548578182fd5b809150509295509295909350565b60008060408385031215612568578182fd5b823561257381612dbe565b946020939093013593505050565b60008060008060808587031215612596578182fd5b84356125a181612dbe565b9350602085013592506040850135915060608501356001600160401b038111156125c9578182fd5b61249f878288016121f7565b600080600080600060a086880312156125ec578283fd5b85356125f781612dbe565b9450602086013593506040860135925060608601356001600160401b0380821115612620578283fd5b61233389838a016121f7565b6000806040838503121561263e578182fd5b82356001600160401b0380821115612654578384fd5b818501915085601f830112612667578384fd5b8135602061267482612bba565b6040516126818282612c81565b8381528281019150858301600585901b870184018b10156126a0578889fd5b8896505b848710156126cb5780356126b781612dbe565b8352600196909601959183019183016126a4565b50965050860135925050808211156126e1578283fd5b5061240b85828601612183565b6000602082840312156126ff578081fd5b813561162b81612dd3565b60006020828403121561271b578081fd5b815161162b81612dd3565b600060208284031215612737578081fd5b815161162b81612dbe565b600060208284031215612753578081fd5b81356001600160401b03811115612768578182fd5b61135e848285016121f7565b600060208284031215612785578081fd5b5035919050565b6000806040838503121561279e578182fd5b8235915060208301356001600160401b038111156127ba578182fd5b61240b858286016121f7565b6000815180845260208085019450808401835b838110156127f5578151875295820195908201906001016127d9565b509495945050505050565b60008151808452612818816020860160208601612c20565b601f01601f19169290920160200192915050565b6000825161283e818460208701612c20565b9190910192915050565b6000835161285a818460208801612c20565b60609390931b6001600160601b0319169190920190815260140192915050565b6000835161288c818460208801612c20565b8351908301906128a0818360208801612c20565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038481168252831660208201526060604082018190526000906128e990830184612800565b95945050505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061291e908301866127c6565b828103606084015261293081866127c6565b905082810360808401526108b98185612800565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061297e90830184612800565b979650505050505050565b60208152600061162b60208301846127c6565b6040815260006129af60408301856127c6565b82810360208401526128e981856127c6565b60208152600061162b6020830184612800565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526031908201527f455243313135355472616461626c652363726561746f724f6e6c793a204f4e4c6040820152701657d0d491505513d497d0531313d5d151607a1b606082015260800190565b60006001600160401b03821115612bd357612bd3612d08565b5060051b60200190565b60008219821115612bf057612bf0612cdc565b500190565b600082612c0457612c04612cf2565b500490565b600082821015612c1b57612c1b612cdc565b500390565b60005b83811015612c3b578181015183820152602001612c23565b838111156111c75750506000910152565b600181811c90821680612c6057607f821691505b60208210811415610aa757634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b0381118282101715612ca657612ca6612d08565b6040525050565b6000600019821415612cc157612cc1612cdc565b5060010190565b600082612cd757612cd7612cf2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561150657600481823e5160e01c90565b600060443d1015612d435790565b6040516003193d81016004833e81513d6001600160401b038083116024840183101715612d7257505050505090565b8285019150815181811115612d8a5750505050505090565b843d8701016020828501011115612da45750505050505090565b612db360208286010187612c81565b509095945050505050565b6001600160a01b038116811461064b57600080fd5b6001600160e01b03198116811461064b57600080fdfe4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fbc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f624d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265296bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529ba264697066735822122018961e6ad21517bba7822a4a1da062cd6f7a1850a3204e2517e4d839046c9efa64736f6c63430008040033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c742953616e73687520494e55204c696d697465642045646974696f6e20596f6b616920436172647368747470733a2f2f646f677061726b2e73616e736875696e7566696e616e63652e636f6d2f6170692f796f6b616963617264732f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

Deployed Bytecode

0x6080604052600436106101465760003560e01c8062fdd58e1461014b57806301ffc9a71461017e57806302fe5305146101ae57806306fdde03146101d05780630c53c51c146101f25780630e89341c146102055780630f7e59701461022557806320379ee5146102525780632693ebf2146102675780632d0335ab146102945780632eb2c2d6146102ca5780633408e470146102ea57806336a100d5146102fd5780633adf80b41461031d5780634e1273f41461033d5780634f558e791461036a578063715018a61461038a578063731133e91461039f5780638da5cb5b146103bf57806395d89b41146103e1578063a22cb465146103f6578063b48ab8b614610416578063bd85b03914610436578063cd53d08e14610463578063d2a6b51a14610499578063e985e9c5146104b9578063f242432a146104d9578063f2fde38b146104f9575b600080fd5b34801561015757600080fd5b5061016b610166366004612556565b610519565b6040519081526020015b60405180910390f35b34801561018a57600080fd5b5061019e6101993660046126ee565b6105b3565b6040519015158152602001610175565b3480156101ba57600080fd5b506101ce6101c9366004612742565b610603565b005b3480156101dc57600080fd5b506101e561064e565b60405161017591906129c1565b6101e56102003660046124dc565b6106dc565b34801561021157600080fd5b506101e5610220366004612774565b6108c5565b34801561023157600080fd5b506101e5604051806040016040528060018152602001603160f81b81525081565b34801561025e57600080fd5b5060045461016b565b34801561027357600080fd5b5061016b610282366004612774565b60096020526000908152604090205481565b3480156102a057600080fd5b5061016b6102af366004612265565b6001600160a01b031660009081526005602052604090205490565b3480156102d657600080fd5b506101ce6102e53660046122b9565b610aad565b3480156102f657600080fd5b504661016b565b34801561030957600080fd5b5061016b6103183660046125d5565b610b56565b34801561032957600080fd5b506101ce61033836600461278c565b610c8d565b34801561034957600080fd5b5061035d61035836600461262c565b610d1a565b6040516101759190612989565b34801561037657600080fd5b5061019e610385366004612774565b610e7b565b34801561039657600080fd5b506101ce610e86565b3480156103ab57600080fd5b506101ce6103ba366004612581565b610ed1565b3480156103cb57600080fd5b506103d4610f51565b60405161017591906128a9565b3480156103ed57600080fd5b506101e5610f60565b34801561040257600080fd5b506101ce6104113660046124ab565b610f6d565b34801561042257600080fd5b506101ce610431366004612415565b611081565b34801561044257600080fd5b5061016b610451366004612774565b60009081526009602052604090205490565b34801561046f57600080fd5b506103d461047e366004612774565b6008602052600090815260409020546001600160a01b031681565b3480156104a557600080fd5b506101ce6104b43660046123c8565b6111cd565b3480156104c557600080fd5b5061019e6104d4366004612281565b611292565b3480156104e557600080fd5b506101ce6104f4366004612362565b611366565b34801561050557600080fd5b506101ce610514366004612265565b6113ff565b60006001600160a01b03831661058a5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b14806105e457506001600160e01b031982166303a24d0760e21b145b806105ad57506301ffc9a760e01b6001600160e01b03198316146105ad565b61060b611509565b6001600160a01b031661061c610f51565b6001600160a01b0316146106425760405162461bcd60e51b815260040161058190612aab565b61064b81611518565b50565b600b805461065b90612c4c565b80601f016020809104026020016040519081016040528092919081815260200182805461068790612c4c565b80156106d45780601f106106a9576101008083540402835291602001916106d4565b820191906000526020600020905b8154815290600101906020018083116106b757829003601f168201915b505050505081565b60408051606081810183526001600160a01b0388166000818152600560209081529085902054845283015291810186905261071a878287878761152f565b6107705760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610581565b6001600160a01b03871660009081526005602052604090205461079490600161161f565b6001600160a01b0388166000908152600560205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b906107e490899033908a906128bd565b60405180910390a1600080306001600160a01b0316888a60405160200161080c929190612848565b60408051601f19818403018152908290526108269161282c565b6000604051808303816000865af19150503d8060008114610863576040519150601f19603f3d011682016040523d82523d6000602084013e610868565b606091505b5091509150816108b95760405162461bcd60e51b815260206004820152601c60248201527b119d5b98dd1a5bdb8818d85b1b081b9bdd081cdd58d8d95cdcd99d5b60221b6044820152606401610581565b98975050505050505050565b60606108d082611632565b61092b5760405162461bcd60e51b815260206004820152602660248201527f455243313135355472616461626c65237572693a204e4f4e4558495354454e546044820152652faa27a5a2a760d11b6064820152608401610581565b6000828152600a60205260408120805461094490612c4c565b80601f016020809104026020016040519081016040528092919081815260200182805461097090612c4c565b80156109bd5780601f10610992576101008083540402835291602001916109bd565b820191906000526020600020905b8154815290600101906020018083116109a057829003601f168201915b50505050509050600081511115610a6d576000838152600a6020526040902080546109e790612c4c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1390612c4c565b8015610a605780601f10610a3557610100808354040283529160200191610a60565b820191906000526020600020905b815481529060010190602001808311610a4357829003601f168201915b5050505050915050919050565b610a768361164f565b610a7f846116e3565b604051602001610a9092919061287a565b604051602081830303815290604052915050919050565b50919050565b610ab5611509565b6001600160a01b0316856001600160a01b03161480610adb5750610adb856104d4611509565b610b425760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610581565b610b4f85858585856117fc565b5050505050565b6000610b60611509565b6001600160a01b0316610b71610f51565b6001600160a01b031614610b975760405162461bcd60e51b815260040161058190612aab565b610ba085611632565b15610be85760405162461bcd60e51b8152602060048201526018602482015277746f6b656e205f696420616c72656164792065786973747360401b6044820152606401610581565b610bf0611509565b600086815260086020526040902080546001600160a01b0319166001600160a01b0392909216919091179055825115610c6a576000858152600a602090815260409091208451610c42928601906120ea565b5084600080516020612e6d83398151915284604051610c6191906129c1565b60405180910390a25b610c76868686856119ad565b505050600082815260096020526040902055919050565b81610c96611509565b6000828152600860205260409020546001600160a01b03908116911614610ccf5760405162461bcd60e51b815260040161058190612b69565b6000838152600a602090815260409091208351610cee928501906120ea565b5082600080516020612e6d83398151915283604051610d0d91906129c1565b60405180910390a2505050565b60608151835114610d7f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610581565b600083516001600160401b03811115610da857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610dd1578160200160208202803683370190505b50905060005b8451811015610e7357610e38858281518110610e0357634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610e2b57634e487b7160e01b600052603260045260246000fd5b6020026020010151610519565b828281518110610e5857634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610e6c81612cad565b9050610dd7565b509392505050565b60006105ad82611632565b610e8e611509565b6001600160a01b0316610e9f610f51565b6001600160a01b031614610ec55760405162461bcd60e51b815260040161058190612aab565b610ecf6000611a76565b565b82610eda611509565b6000828152600860205260409020546001600160a01b03908116911614610f135760405162461bcd60e51b815260040161058190612b69565b610f1f858585856119ad565b600084815260096020526040902054610f38908461161f565b6000948552600960205260409094209390935550505050565b6006546001600160a01b031690565b600c805461065b90612c4c565b816001600160a01b0316610f7f611509565b6001600160a01b03161415610fe85760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610581565b8060016000610ff5611509565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611039611509565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611075911515815260200190565b60405180910390a35050565b60005b83518110156111ba5760008482815181106110af57634e487b7160e01b600052603260045260246000fd5b602002602001015190506110c1611509565b6000828152600860205260409020546001600160a01b039081169116146111425760405162461bcd60e51b815260206004820152602f60248201527f455243313135355472616461626c652362617463684d696e743a204f4e4c595f60448201526e10d491505513d497d0531313d5d151608a1b6064820152608401610581565b600084838151811061116457634e487b7160e01b600052603260045260246000fd5b6020026020010151905061119481600960008581526020019081526020016000205461161f90919063ffffffff16565b6000928352600960205260409092209190915550806111b281612cad565b915050611084565b506111c784848484611ac8565b50505050565b6001600160a01b0382166112385760405162461bcd60e51b815260206004820152602c60248201527f455243313135355472616461626c652373657443726561746f723a20494e564160448201526b2624a22fa0a2222922a9a99760a11b6064820152608401610581565b60005b815181101561128d57600082828151811061126657634e487b7160e01b600052603260045260246000fd5b6020026020010151905061127a8482611c28565b508061128581612cad565b91505061123b565b505050565b60075460405163c455279160e01b81526000916001600160a01b039081169190841690829063c4552791906112cb9088906004016128a9565b60206040518083038186803b1580156112e357600080fd5b505afa1580156112f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061131b9190612726565b6001600160a01b031614156113345760019150506105ad565b6001600160a01b0380851660009081526001602090815260408083209387168352929052205460ff165b949350505050565b61136e611509565b6001600160a01b0316856001600160a01b031614806113945750611394856104d4611509565b6113f25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610581565b610b4f8585858585611c99565b611407611509565b6001600160a01b0316611418610f51565b6001600160a01b03161461143e5760405162461bcd60e51b815260040161058190612aab565b6001600160a01b0381166114a35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610581565b61064b81611a76565b60003330141561150357600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506115069050565b50335b90565b60006115136114ac565b905090565b805161152b9060029060208401906120ea565b5050565b60006001600160a01b0386166115955760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610581565b60016115a86115a387611daf565b611e2c565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa1580156115f6573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b600061162b8284612bdd565b9392505050565b6000908152600860205260409020546001600160a01b0316151590565b60606002805461165e90612c4c565b80601f016020809104026020016040519081016040528092919081815260200182805461168a90612c4c565b80156116d75780601f106116ac576101008083540402835291602001916116d7565b820191906000526020600020905b8154815290600101906020018083116116ba57829003601f168201915b50505050509050919050565b6060816117075750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611731578061171b81612cad565b915061172a9050600a83612bf5565b915061170b565b6000816001600160401b0381111561175957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611783576020820181803683370190505b5090505b841561135e57611798600183612c09565b91506117a5600a86612cc8565b6117b0906030612bdd565b60f81b8183815181106117d357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506117f5600a86612bf5565b9450611787565b815183511461181d5760405162461bcd60e51b815260040161058190612ae0565b6001600160a01b0384166118435760405162461bcd60e51b815260040161058190612a1c565b600061184d611509565b905060005b845181101561195157600085828151811061187d57634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106118a957634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156118f95760405162461bcd60e51b815260040161058190612a61565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611936908490612bdd565b925050819055505050508061194a90612cad565b9050611852565b50846001600160a01b0316866001600160a01b0316826001600160a01b0316600080516020612dea833981519152878760405161198f92919061299c565b60405180910390a46119a5818787878787611e5c565b505050505050565b6001600160a01b0384166119d35760405162461bcd60e51b815260040161058190612b28565b60006119dd611509565b90506119f8816000876119ef88611fc7565b610b4f88611fc7565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611a28908490612bdd565b909155505060408051858152602081018590526001600160a01b038088169260009291851691600080516020612e0a833981519152910160405180910390a4610b4f81600087878787612020565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416611aee5760405162461bcd60e51b815260040161058190612b28565b8151835114611b0f5760405162461bcd60e51b815260040161058190612ae0565b6000611b19611509565b905060005b8451811015611bd257838181518110611b4757634e487b7160e01b600052603260045260246000fd5b6020026020010151600080878481518110611b7257634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254611bba9190612bdd565b90915550819050611bca81612cad565b915050611b1e565b50846001600160a01b031660006001600160a01b0316826001600160a01b0316600080516020612dea8339815191528787604051611c1192919061299c565b60405180910390a4610b4f81600087878787611e5c565b80611c31611509565b6000828152600860205260409020546001600160a01b03908116911614611c6a5760405162461bcd60e51b815260040161058190612b69565b50600090815260086020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038416611cbf5760405162461bcd60e51b815260040161058190612a1c565b6000611cc9611509565b9050611cda8187876119ef88611fc7565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611d1b5760405162461bcd60e51b815260040161058190612a61565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611d58908490612bdd565b909155505060408051868152602081018690526001600160a01b03808916928a82169291861691600080516020612e0a833981519152910160405180910390a4611da6828888888888612020565b50505050505050565b6000604051806080016040528060438152602001612e2a6043913980516020918201208351848301516040808701518051908601209051611e0f950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000611e3760045490565b60405161190160f01b6020820152602281019190915260428101839052606201611e0f565b6001600160a01b0384163b156119a55760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611ea090899089908890889088906004016128f2565b602060405180830381600087803b158015611eba57600080fd5b505af1925050508015611eea575060408051601f3d908101601f19168201909252611ee79181019061270a565b60015b611f9757611ef6612d1e565b806308c379a01415611f305750611f0b612d35565b80611f165750611f32565b8060405162461bcd60e51b815260040161058191906129c1565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610581565b6001600160e01b0319811663bc197c8160e01b14611da65760405162461bcd60e51b8152600401610581906129d4565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061200f57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156119a55760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906120649089908990889088908890600401612944565b602060405180830381600087803b15801561207e57600080fd5b505af19250505080156120ae575060408051601f3d908101601f191682019092526120ab9181019061270a565b60015b6120ba57611ef6612d1e565b6001600160e01b0319811663f23a6e6160e01b14611da65760405162461bcd60e51b8152600401610581906129d4565b8280546120f690612c4c565b90600052602060002090601f016020900481019282612118576000855561215e565b82601f1061213157805160ff191683800117855561215e565b8280016001018555821561215e579182015b8281111561215e578251825591602001919060010190612143565b5061216a92915061216e565b5090565b5b8082111561216a576000815560010161216f565b600082601f830112612193578081fd5b813560206121a082612bba565b6040516121ad8282612c81565b8381528281019150858301600585901b870184018810156121cc578586fd5b855b858110156121ea578135845292840192908401906001016121ce565b5090979650505050505050565b600082601f830112612207578081fd5b81356001600160401b0381111561222057612220612d08565b604051612237601f8301601f191660200182612c81565b81815284602083860101111561224b578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215612276578081fd5b813561162b81612dbe565b60008060408385031215612293578081fd5b823561229e81612dbe565b915060208301356122ae81612dbe565b809150509250929050565b600080600080600060a086880312156122d0578081fd5b85356122db81612dbe565b945060208601356122eb81612dbe565b935060408601356001600160401b0380821115612306578283fd5b61231289838a01612183565b94506060880135915080821115612327578283fd5b61233389838a01612183565b93506080880135915080821115612348578283fd5b50612355888289016121f7565b9150509295509295909350565b600080600080600060a08688031215612379578081fd5b853561238481612dbe565b9450602086013561239481612dbe565b9350604086013592506060860135915060808601356001600160401b038111156123bc578182fd5b612355888289016121f7565b600080604083850312156123da578182fd5b82356123e581612dbe565b915060208301356001600160401b038111156123ff578182fd5b61240b85828601612183565b9150509250929050565b6000806000806080858703121561242a578384fd5b843561243581612dbe565b935060208501356001600160401b0380821115612450578485fd5b61245c88838901612183565b94506040870135915080821115612471578384fd5b61247d88838901612183565b93506060870135915080821115612492578283fd5b5061249f878288016121f7565b91505092959194509250565b600080604083850312156124bd578182fd5b82356124c881612dbe565b9150602083013580151581146122ae578182fd5b600080600080600060a086880312156124f3578283fd5b85356124fe81612dbe565b945060208601356001600160401b03811115612518578384fd5b612524888289016121f7565b9450506040860135925060608601359150608086013560ff81168114612548578182fd5b809150509295509295909350565b60008060408385031215612568578182fd5b823561257381612dbe565b946020939093013593505050565b60008060008060808587031215612596578182fd5b84356125a181612dbe565b9350602085013592506040850135915060608501356001600160401b038111156125c9578182fd5b61249f878288016121f7565b600080600080600060a086880312156125ec578283fd5b85356125f781612dbe565b9450602086013593506040860135925060608601356001600160401b0380821115612620578283fd5b61233389838a016121f7565b6000806040838503121561263e578182fd5b82356001600160401b0380821115612654578384fd5b818501915085601f830112612667578384fd5b8135602061267482612bba565b6040516126818282612c81565b8381528281019150858301600585901b870184018b10156126a0578889fd5b8896505b848710156126cb5780356126b781612dbe565b8352600196909601959183019183016126a4565b50965050860135925050808211156126e1578283fd5b5061240b85828601612183565b6000602082840312156126ff578081fd5b813561162b81612dd3565b60006020828403121561271b578081fd5b815161162b81612dd3565b600060208284031215612737578081fd5b815161162b81612dbe565b600060208284031215612753578081fd5b81356001600160401b03811115612768578182fd5b61135e848285016121f7565b600060208284031215612785578081fd5b5035919050565b6000806040838503121561279e578182fd5b8235915060208301356001600160401b038111156127ba578182fd5b61240b858286016121f7565b6000815180845260208085019450808401835b838110156127f5578151875295820195908201906001016127d9565b509495945050505050565b60008151808452612818816020860160208601612c20565b601f01601f19169290920160200192915050565b6000825161283e818460208701612c20565b9190910192915050565b6000835161285a818460208801612c20565b60609390931b6001600160601b0319169190920190815260140192915050565b6000835161288c818460208801612c20565b8351908301906128a0818360208801612c20565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038481168252831660208201526060604082018190526000906128e990830184612800565b95945050505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061291e908301866127c6565b828103606084015261293081866127c6565b905082810360808401526108b98185612800565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061297e90830184612800565b979650505050505050565b60208152600061162b60208301846127c6565b6040815260006129af60408301856127c6565b82810360208401526128e981856127c6565b60208152600061162b6020830184612800565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526031908201527f455243313135355472616461626c652363726561746f724f6e6c793a204f4e4c6040820152701657d0d491505513d497d0531313d5d151607a1b606082015260800190565b60006001600160401b03821115612bd357612bd3612d08565b5060051b60200190565b60008219821115612bf057612bf0612cdc565b500190565b600082612c0457612c04612cf2565b500490565b600082821015612c1b57612c1b612cdc565b500390565b60005b83811015612c3b578181015183820152602001612c23565b838111156111c75750506000910152565b600181811c90821680612c6057607f821691505b60208210811415610aa757634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b0381118282101715612ca657612ca6612d08565b6040525050565b6000600019821415612cc157612cc1612cdc565b5060010190565b600082612cd757612cd7612cf2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561150657600481823e5160e01c90565b600060443d1015612d435790565b6040516003193d81016004833e81513d6001600160401b038083116024840183101715612d7257505050505090565b8285019150815181811115612d8a5750505050505090565b843d8701016020828501011115612da45750505050505090565b612db360208286010187612c81565b509095945050505050565b6001600160a01b038116811461064b57600080fd5b6001600160e01b03198116811461064b57600080fdfe4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fbc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f624d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265296bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529ba264697066735822122018961e6ad21517bba7822a4a1da062cd6f7a1850a3204e2517e4d839046c9efa64736f6c63430008040033

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.