ETH Price: $2,232.83 (-4.13%)

Contract

0xdE101C890c3f2B8A63C7Fca59656ecf6844Fe5F4
 

Overview

ETH Balance

2.48 ETH

Eth Value

$5,537.43 (@ $2,232.83/ETH)

Token Holdings

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer From178250922023-08-02 5:01:47959 days ago1690952507IN
0xdE101C89...6844Fe5F4
0 ETH0.0084966516.21561015
Set Approval For...157809252022-10-19 8:21:111246 days ago1666167671IN
0xdE101C89...6844Fe5F4
0 ETH0.0008898919.30158565
Transfer155583412022-09-18 5:26:111277 days ago1663478771IN
0xdE101C89...6844Fe5F4
0.99594 ETH0.000093434.43954817
Transfer From154206892022-08-27 9:05:461299 days ago1661591146IN
0xdE101C89...6844Fe5F4
0 ETH0.002619134.99778175
Set Approval For...148220222022-05-22 7:09:181396 days ago1653203358IN
0xdE101C89...6844Fe5F4
0 ETH0.000599112.97077319
Set Approval For...146360262022-04-22 17:31:281425 days ago1650648688IN
0xdE101C89...6844Fe5F4
0 ETH0.002944463.74689714
Gift146349902022-04-22 13:37:381425 days ago1650634658IN
0xdE101C89...6844Fe5F4
0 ETH0.1602041225
Gift146344352022-04-22 11:36:451426 days ago1650627405IN
0xdE101C89...6844Fe5F4
0 ETH0.1160166225
Get Reward146086432022-04-18 10:29:101430 days ago1650277750IN
0xdE101C89...6844Fe5F4
0 ETH0.0085186932.85165498
Mint146086302022-04-18 10:25:101430 days ago1650277510IN
0xdE101C89...6844Fe5F4
0.14 ETH0.0085413624.9227972
Set Approval For...146021452022-04-17 10:04:571431 days ago1650189897IN
0xdE101C89...6844Fe5F4
0 ETH0.0008216517.78897812
Gift145271862022-04-05 17:01:451442 days ago1649178105IN
0xdE101C89...6844Fe5F4
0 ETH0.0081365370.44866065
Set Status145199362022-04-04 14:03:511443 days ago1649081031IN
0xdE101C89...6844Fe5F4
0 ETH0.0020595971.62803767
Presale145178422022-04-04 6:16:161444 days ago1649052976IN
0xdE101C89...6844Fe5F4
0.12 ETH0.0179935951.73755341
Presale145175842022-04-04 5:18:361444 days ago1649049516IN
0xdE101C89...6844Fe5F4
0.12 ETH0.0195697956.96926184
Presale145172292022-04-04 3:50:551444 days ago1649044255IN
0xdE101C89...6844Fe5F4
0.12 ETH0.0150076544.35789413
Presale145170242022-04-04 3:08:251444 days ago1649041705IN
0xdE101C89...6844Fe5F4
0.12 ETH0.0157376947.23808196
Presale145170022022-04-04 3:03:591444 days ago1649041439IN
0xdE101C89...6844Fe5F4
0.12 ETH0.0203187160.35111058
Presale145167862022-04-04 2:03:311444 days ago1649037811IN
0xdE101C89...6844Fe5F4
0.06 ETH0.0056168237.89060997
Set Merkle Root145166202022-04-04 1:26:131444 days ago1649035573IN
0xdE101C89...6844Fe5F4
0 ETH0.0014152448.74955093
Presale145134952022-04-03 13:47:291444 days ago1648993649IN
0xdE101C89...6844Fe5F4
0.12 ETH0.0097792629.81327517
Presale145132982022-04-03 13:05:471445 days ago1648991147IN
0xdE101C89...6844Fe5F4
0.24 ETH0.0331732374.64389499
Presale145130232022-04-03 12:01:081445 days ago1648987268IN
0xdE101C89...6844Fe5F4
0.12 ETH0.016047551.49586182
Presale145119662022-04-03 7:55:231445 days ago1648972523IN
0xdE101C89...6844Fe5F4
0.12 ETH0.0123549640.1977024
Presale145119272022-04-03 7:45:581445 days ago1648971958IN
0xdE101C89...6844Fe5F4
0.24 ETH0.0125632430.32197825
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Set Approval For...224094802025-05-04 9:23:23318 days ago1746350603
0xdE101C89...6844Fe5F4
0 ETH
Set Approval For...224093952025-05-04 9:05:59318 days ago1746349559
0xdE101C89...6844Fe5F4
0 ETH
Balance Of First...178250922023-08-02 5:01:47959 days ago1690952507
0xdE101C89...6844Fe5F4
0 ETH
Update Reward178250922023-08-02 5:01:47959 days ago1690952507
0xdE101C89...6844Fe5F4
0 ETH
Balance Of First...154206892022-08-27 9:05:461299 days ago1661591146
0xdE101C89...6844Fe5F4
0 ETH
Update Reward154206892022-08-27 9:05:461299 days ago1661591146
0xdE101C89...6844Fe5F4
0 ETH
Balance Of First...150635132022-07-02 14:00:441354 days ago1656770444
0xdE101C89...6844Fe5F4
0 ETH
Update Reward150635132022-07-02 14:00:441354 days ago1656770444
0xdE101C89...6844Fe5F4
0 ETH
Transfer From150635132022-07-02 14:00:441354 days ago1656770444
0xdE101C89...6844Fe5F4
0 ETH
Balance Of First...146349902022-04-22 13:37:381425 days ago1650634658
0xdE101C89...6844Fe5F4
0 ETH
Update Reward146349902022-04-22 13:37:381425 days ago1650634658
0xdE101C89...6844Fe5F4
0 ETH
Balance Of First...146349902022-04-22 13:37:381425 days ago1650634658
0xdE101C89...6844Fe5F4
0 ETH
Update Reward146349902022-04-22 13:37:381425 days ago1650634658
0xdE101C89...6844Fe5F4
0 ETH
Balance Of First...146349902022-04-22 13:37:381425 days ago1650634658
0xdE101C89...6844Fe5F4
0 ETH
Update Reward146349902022-04-22 13:37:381425 days ago1650634658
0xdE101C89...6844Fe5F4
0 ETH
Balance Of First...146349902022-04-22 13:37:381425 days ago1650634658
0xdE101C89...6844Fe5F4
0 ETH
Update Reward146349902022-04-22 13:37:381425 days ago1650634658
0xdE101C89...6844Fe5F4
0 ETH
Balance Of First...146349902022-04-22 13:37:381425 days ago1650634658
0xdE101C89...6844Fe5F4
0 ETH
Update Reward146349902022-04-22 13:37:381425 days ago1650634658
0xdE101C89...6844Fe5F4
0 ETH
Balance Of First...146349902022-04-22 13:37:381425 days ago1650634658
0xdE101C89...6844Fe5F4
0 ETH
Update Reward146349902022-04-22 13:37:381425 days ago1650634658
0xdE101C89...6844Fe5F4
0 ETH
Balance Of First...146349902022-04-22 13:37:381425 days ago1650634658
0xdE101C89...6844Fe5F4
0 ETH
Update Reward146349902022-04-22 13:37:381425 days ago1650634658
0xdE101C89...6844Fe5F4
0 ETH
Balance Of First...146349902022-04-22 13:37:381425 days ago1650634658
0xdE101C89...6844Fe5F4
0 ETH
Update Reward146349902022-04-22 13:37:381425 days ago1650634658
0xdE101C89...6844Fe5F4
0 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Tekyan

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "./library/ERC721.sol";
import "./library/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

import "./library/extensions/ERC721Nameable.sol";
import "./library/extensions/Royalty.sol";

interface IWatu {
  function updateReward(
    address from,
    address to,
    uint256 tokenId
  ) external;

  function getReward(address to) external;
}

contract Tekyan is ERC721, ERC721Enumerable, ERC721Nameable, Royalty, Ownable {
  enum Status {
    Close,
    Presale,
    Sale,
    Breed
  }

  uint256 public constant TOTAL = 10_000;
  uint256 public constant FIRST_TRIBE = 1_000;
  uint256 public constant FIRST_TRIBE_PRICE = 0.07 ether;
  uint256 public constant FIRST_TRIBE_MAX_MINT = 2;
  uint256 public constant FIRST_TRIBE_PRESALE = 700;
  uint256 public constant FIRST_TRIBE_PRESALE_PRICE = 0.06 ether;
  uint256 public BREED_PRICE = 500 ether; // $WATU
  uint256 public reservedMinted;
  uint256 public presaleMinted;

  Status public status;

  bytes32 public root;

  address public WATU_ADDRESS;
  address public TEAM_ADDRESS;

  mapping(address => uint256) public presalePurchases;
  mapping(address => uint256) public purchases;

  string public PROVENANCE;

  string private _contractURI;
  string private _tokenBaseURI;

  constructor() ERC721("Tekyan Tribe", "TEKYAN") {}

  function presale(
    uint256 quantity,
    uint256 allowance,
    bytes32[] calldata proof
  ) public payable {
    require(status == Status.Presale, "PRESALE_CLOSED");
    uint256 _totalSupply = totalSupply();
    require(_totalSupply + quantity <= FIRST_TRIBE, "EXCEED_STOCK");
    require(
      presaleMinted + quantity <= FIRST_TRIBE_PRESALE - reservedMinted,
      "EXCEED_PRESALE_STOCK"
    );
    require(
      _verify(_leaf(msg.sender, allowance), proof),
      "INVALID_MERKLE_PROOF"
    );
    require(
      presalePurchases[msg.sender] + quantity <= allowance,
      "EXCEED_ALLOWANCE"
    );
    require(
      msg.value == FIRST_TRIBE_PRESALE_PRICE * quantity,
      "INSUFFICIENT_ETH"
    );

    presalePurchases[msg.sender] += quantity;

    for (uint256 i; i < quantity; i++) {
      presaleMinted++;
      _safeMint(msg.sender, _totalSupply++);
    }
  }

  function mint(uint256 quantity) public payable {
    require(status == Status.Sale, "SALE_CLOSED");
    require(
      purchases[msg.sender] + quantity <= FIRST_TRIBE_MAX_MINT,
      "EXCEED_MAX_MINT"
    );
    uint256 _totalSupply = totalSupply();
    require(_totalSupply + quantity <= FIRST_TRIBE, "EXCEED_STOCK");
    require(msg.value == FIRST_TRIBE_PRICE * quantity, "INSUFFICIENT_ETH");

    purchases[msg.sender] += quantity;

    for (uint256 i; i < quantity; i++) {
      _safeMint(msg.sender, _totalSupply++);
    }
  }

  function breed(uint256 even, uint256 odd) public {
    require(status == Status.Breed, "BREED_CLOSED");
    uint256 _totalSupply = totalSupply();
    require(_totalSupply + 1 <= TOTAL, "EXCEED_STOCK");
    require(even < 1000 && odd < 1000, "ONLY_FIRST_TRIBE");
    uint256 evenRemain = even % 2;
    uint256 oddRemain = odd % 2;
    require(evenRemain == 0 && oddRemain != 0, "NEED_EVEN_AND_ODD");
    require(
      ownerOf(even) == msg.sender && ownerOf(odd) == msg.sender,
      "NOT_YOUR_OWN"
    );

    ERC20Burnable(WATU_ADDRESS).burnFrom(msg.sender, BREED_PRICE);

    _safeMint(msg.sender, _totalSupply++);
  }

  function getReward() public {
    IWatu(WATU_ADDRESS).updateReward(msg.sender, address(0), 0);
    IWatu(WATU_ADDRESS).getReward(msg.sender);
  }

  function changeName(uint256 tokenId, string memory newName) public override {
    ERC20Burnable(WATU_ADDRESS).burnFrom(msg.sender, NAME_CHANGE_PRICE);
    super.changeName(tokenId, newName);
  }

  function balanceOfFirstTribe(address owner) public view returns (uint256) {
    require(owner != address(0), "ERC721: balance query for the zero address");

    uint256 count;
    for (uint256 i; i < _owners.length; i++) {
      if (i < 1000 && owner == _owners[i]) count++;
    }

    return count;
  }

  function contractURI() public view returns (string memory) {
    return _contractURI;
  }

  function gift(address[] calldata receivers, uint256[] calldata amounts)
    external
    onlyOwner
  {
    uint256 _totalSupply = totalSupply();
    require(_totalSupply <= FIRST_TRIBE, "EXCEED_STOCK");

    for (uint256 i; i < receivers.length; i++) {
      for (uint256 j; j < amounts[i]; j++) {
        reservedMinted++;
        _safeMint(receivers[i], _totalSupply++);
      }
    }
  }

  function setStatus(Status _status) external onlyOwner {
    status = _status;
  }

  function setContractURI(string memory uri) external onlyOwner {
    _contractURI = uri;
  }

  function setBaseURI(string memory uri) external onlyOwner {
    _tokenBaseURI = uri;
  }

  function setWatuAddress(address tokenAddress) external onlyOwner {
    WATU_ADDRESS = tokenAddress;
  }

  function setRoyaltyAddress(address royalty, uint256 value)
    external
    onlyOwner
  {
    TEAM_ADDRESS = royalty;
    _setRoyalty(royalty, value);
  }

  function setBreedPrice(uint256 price) external onlyOwner {
    BREED_PRICE = price;
  }

  function setNameChangePrice(uint256 price) external override onlyOwner {
    NAME_CHANGE_PRICE = price;
  }

  function setProvenance(string memory provenance) external onlyOwner {
    PROVENANCE = provenance;
  }

  function setMerkleRoot(bytes32 merkleRoot) external onlyOwner {
    root = merkleRoot;
  }

  function withdraw() external onlyOwner {
    Address.sendValue(payable(TEAM_ADDRESS), address(this).balance);
  }

  function _leaf(address account, uint256 allowance)
    internal
    pure
    returns (bytes32)
  {
    return keccak256(abi.encodePacked(account, allowance));
  }

  function _verify(bytes32 leaf, bytes32[] memory proof)
    internal
    view
    returns (bool)
  {
    return MerkleProof.verify(proof, root, leaf);
  }

  // The following functions are overrides required by Solidity.

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

  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 tokenId
  ) internal override(ERC721) {
    if (tokenId < 1000) {
      IWatu(WATU_ADDRESS).updateReward(from, to, tokenId);
    }

    super._beforeTokenTransfer(from, to, tokenId);
  }

  function supportsInterface(bytes4 interfaceId)
    public
    view
    override(ERC721, ERC721Enumerable, Royalty)
    returns (bool)
  {
    return super.supportsInterface(interfaceId);
  }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

  // Token name
  string private _name;

  // Token symbol
  string private _symbol;

  // Mapping from token ID to owner address
  address[] _owners;

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

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

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

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

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

    uint256 count;
    for (uint256 i; i < _owners.length; i++) {
      if (owner == _owners[i]) count++;
    }

    return count;
  }

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

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

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

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

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

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

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

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

    _approve(to, tokenId);
  }

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

    return _tokenApprovals[tokenId];
  }

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

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

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

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

    _transfer(from, to, tokenId);
  }

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

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

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

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

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

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

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

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

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

    _owners.push(to);

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

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

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

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

    _owners[tokenId] = address(0);

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

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

    _beforeTokenTransfer(from, to, tokenId);

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

    _owners[tokenId] = to;

    emit Transfer(from, to, tokenId);
  }

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
  /**
   * @dev See {IERC165-supportsInterface}.
   */
  function supportsInterface(bytes4 interfaceId)
    public
    view
    virtual
    override(IERC165, ERC721)
    returns (bool)
  {
    return
      interfaceId == type(IERC721Enumerable).interfaceId ||
      super.supportsInterface(interfaceId);
  }

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

    uint256 count;
    uint256 tokenId;
    for (uint256 i; i < _owners.length; i++) {
      if (owner == _owners[i])
        if (count == index) {
          return tokenId = i;
        } else {
          count++;
        }
    }

    return tokenId;
  }

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        unchecked {
            _approve(account, _msgSender(), currentAllowance - amount);
        }
        _burn(account, amount);
    }
}

// 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);
    }
}

// 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 7 of 20 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "../ERC721.sol";

abstract contract ERC721Nameable is ERC721 {
  uint256 public NAME_CHANGE_PRICE = 50 ether;

  mapping(uint256 => string) public names;
  mapping(string => bool) private _reservedNames;

  event NameChange(uint256 indexed tokenId, string newName);

  function changeName(uint256 tokenId, string memory newName) public virtual {
    require(msg.sender == ownerOf(tokenId), "ONLY_OWNER_ALLOWED");
    require(validateName(newName) == true, "NOT_VALID_NEW_NAME");
    require(
      sha256(bytes(newName)) != sha256(bytes(names[tokenId])),
      "SAME_NAME"
    );
    require(isNameReserved(newName) == false, "ALREADY_RESERVED");

    if (bytes(names[tokenId]).length > 0) {
      toggleReserveName(names[tokenId], false);
    }

    toggleReserveName(newName, true);
    names[tokenId] = newName;
    emit NameChange(tokenId, newName);
  }

  function setNameChangePrice(uint256 price) external virtual {
    NAME_CHANGE_PRICE = price;
  }

  /**
   * @dev Reserves the name if isReserve is set to true, de-reserves if set to false
   */
  function toggleReserveName(string memory str, bool isReserve) internal {
    _reservedNames[toLower(str)] = isReserve;
  }

  /**
   * @dev Returns if the name has been reserved.
   */
  function isNameReserved(string memory nameString) public view returns (bool) {
    return _reservedNames[toLower(nameString)];
  }

  /**
   * @dev Returns name of the NFT at index.
   */
  function tokenNameByIndex(uint256 index) public view returns (string memory) {
    return names[index];
  }

  function validateName(string memory str) public pure returns (bool) {
    bytes memory b = bytes(str);
    if (b.length < 1) return false;
    if (b.length > 25) return false; // Cannot be longer than 25 characters
    if (b[0] == 0x20) return false; // Leading space
    if (b[b.length - 1] == 0x20) return false; // Trailing space

    bytes1 lastChar = b[0];

    for (uint256 i; i < b.length; i++) {
      bytes1 char = b[i];

      if (char == 0x20 && lastChar == 0x20) return false; // Cannot contain continous spaces

      if (
        !(char >= 0x30 && char <= 0x39) && //9-0
        !(char >= 0x41 && char <= 0x5A) && //A-Z
        !(char >= 0x61 && char <= 0x7A) && //a-z
        !(char == 0x20) //space
      ) return false;

      lastChar = char;
    }

    return true;
  }

  /**
   * @dev Converts the string to lowercase
   */
  function toLower(string memory str) public pure returns (string memory) {
    bytes memory bStr = bytes(str);
    bytes memory bLower = new bytes(bStr.length);
    for (uint256 i = 0; i < bStr.length; i++) {
      // Uppercase character
      if ((uint8(bStr[i]) >= 65) && (uint8(bStr[i]) <= 90)) {
        bLower[i] = bytes1(uint8(bStr[i]) + 32);
      } else {
        bLower[i] = bStr[i];
      }
    }
    return string(bLower);
  }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

abstract contract Royalty is ERC165 {
  address private _royaltyReceiver;
  uint256 private _royaltyBps;

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

  function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
    public
    view
    returns (address receiver, uint256 royaltyAmount)
  {
    if (_royaltyReceiver == address(0)) {
      return (address(0), 0);
    }

    return (_royaltyReceiver, (_salePrice * _royaltyBps) / 10000);
  }

  function getFeeRecipients(uint256 id)
    public
    view
    returns (address payable[] memory)
  {
    address payable[] memory result = new address payable[](1);
    result[0] = payable(address(_royaltyReceiver));
    return result;
  }

  function getFeeBps(uint256 id) public view returns (uint256[] memory) {
    uint256[] memory result = new uint256[](1);
    result[0] = _royaltyBps;
    return result;
  }

  function _setRoyalty(address _receiver, uint256 _value) internal virtual {
    _royaltyReceiver = _receiver;
    _royaltyBps = _value;
  }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 20 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

// 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;
    }
}

// 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);
    }
}

// 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;
    }
}

// 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);
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

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

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"newName","type":"string"}],"name":"NameChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BREED_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FIRST_TRIBE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FIRST_TRIBE_MAX_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FIRST_TRIBE_PRESALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FIRST_TRIBE_PRESALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FIRST_TRIBE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NAME_CHANGE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WATU_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOfFirstTribe","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"even","type":"uint256"},{"internalType":"uint256","name":"odd","type":"uint256"}],"name":"breed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"newName","type":"string"}],"name":"changeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"nameString","type":"string"}],"name":"isNameReserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"names","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presalePurchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"purchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setBreedPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setNameChangePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenance","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royalty","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setRoyaltyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Tekyan.Status","name":"_status","type":"uint8"}],"name":"setStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"setWatuAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"status","outputs":[{"internalType":"enum Tekyan.Status","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"toLower","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenNameByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"validateName","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526802b5e3af16b1880000600555681b1ae4d6e2ef500000600b553480156200002b57600080fd5b50604080518082018252600c81526b54656b79616e20547269626560a01b6020808301918252835180850190945260068452652a22a5aca0a760d11b9084015281519192916200007e916000916200010d565b508051620000949060019060208401906200010d565b505050620000b1620000ab620000b760201b60201c565b620000bb565b620001f0565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200011b90620001b3565b90600052602060002090601f0160209004810192826200013f57600085556200018a565b82601f106200015a57805160ff19168380011785556200018a565b828001600101855582156200018a579182015b828111156200018a5782518255916020019190600101906200016d565b50620001989291506200019c565b5090565b5b808211156200019857600081556001016200019d565b600181811c90821680620001c857607f821691505b60208210811415620001ea57634e487b7160e01b600052602260045260246000fd5b50919050565b613c6480620002006000396000f3fe6080604052600436106103ad5760003560e01c80637705f9b5116101e7578063a6bc4a1b1161010d578063e316ada6116100a0578063e985e9c51161006f578063e985e9c514610ac3578063ebf0c71714610b0c578063f2fde38b14610b22578063ffe630b514610b4257600080fd5b8063e316ada614610a58578063e34ea03314610a73578063e463e7e414610a8e578063e8a3d48514610aae57600080fd5b8063c39cbef1116100dc578063c39cbef1146109e2578063c87b56dd14610a02578063d43cdb5614610a22578063d9ecad7b14610a3857600080fd5b8063a6bc4a1b1461096a578063b88d4fde1461097f578063b9c4d9fb1461099f578063bf424e7e146109cc57600080fd5b8063938e3d7b11610185578063a0712d6811610154578063a0712d68146108f7578063a22cb4651461090a578063a3e9ecb91461092a578063a68574d31461093d57600080fd5b8063938e3d7b146108825780639416b423146108a257806395d89b41146108c25780639ffdb65a146108d757600080fd5b806384a1b902116101c157806384a1b9021461080457806384a75d981461082457806386835145146108445780638da5cb5b1461086457600080fd5b80637705f9b5146107975780637cb64759146107b7578063842a77d3146107d757600080fd5b80633515b955116102d757806355f804b31161026a57806370a082311161023957806370a082311461072c578063715018a61461074c57806371beeba11461076157806373aee9291461078157600080fd5b806355f804b3146106b75780636352211e146106d75780636373a6b1146106f75780636d5224181461070c57600080fd5b80634622ab03116102a65780634622ab031461064b5780634f297ccc1461066b5780634f6ccce71461068157806354b6f161146106a157600080fd5b80633515b955146105eb5780633ccfd60b146106015780633d18b9121461061657806342842e0e1461062b57600080fd5b8063200d2ed21161034f5780632c5967181161031e5780632c5967181461056b5780632e49d78b1461058b5780632f745c59146105ab578063351509a8146105cb57600080fd5b8063200d2ed2146104cf57806323b872dd146104f657806327efc086146105165780632a55205a1461052c57600080fd5b8063095ea7b31161038b578063095ea7b3146104415780630ebd4c7f1461046357806315b56d101461049057806318160ddd146104b057600080fd5b806301ffc9a7146103b257806306fdde03146103e7578063081812fc14610409575b600080fd5b3480156103be57600080fd5b506103d26103cd36600461330a565b610b62565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b506103fc610b73565b6040516103de919061337f565b34801561041557600080fd5b50610429610424366004613392565b610c05565b6040516001600160a01b0390911681526020016103de565b34801561044d57600080fd5b5061046161045c3660046133c7565b610c92565b005b34801561046f57600080fd5b5061048361047e366004613392565b610da8565b6040516103de91906133f1565b34801561049c57600080fd5b506103d26104ab3660046134e1565b610df5565b3480156104bc57600080fd5b506002545b6040519081526020016103de565b3480156104db57600080fd5b50600e546104e99060ff1681565b6040516103de919061352c565b34801561050257600080fd5b50610461610511366004613554565b610e28565b34801561052257600080fd5b506104c161271081565b34801561053857600080fd5b5061054c610547366004613590565b610e59565b604080516001600160a01b0390931683526020830191909152016103de565b34801561057757600080fd5b506104c16105863660046135b2565b610eaf565b34801561059757600080fd5b506104616105a63660046135cd565b610f4b565b3480156105b757600080fd5b506104c16105c63660046133c7565b610f9c565b3480156105d757600080fd5b50601154610429906001600160a01b031681565b3480156105f757600080fd5b506104c16102bc81565b34801561060d57600080fd5b50610461611086565b34801561062257600080fd5b506104616110c8565b34801561063757600080fd5b50610461610646366004613554565b611192565b34801561065757600080fd5b506103fc610666366004613392565b6111ad565b34801561067757600080fd5b506104c1600c5481565b34801561068d57600080fd5b506104c161069c366004613392565b611247565b3480156106ad57600080fd5b506104c160055481565b3480156106c357600080fd5b506104616106d23660046134e1565b6112b9565b3480156106e357600080fd5b506104296106f2366004613392565b6112fa565b34801561070357600080fd5b506103fc611391565b34801561071857600080fd5b506103fc610727366004613392565b61139e565b34801561073857600080fd5b506104c16107473660046135b2565b611440565b34801561075857600080fd5b506104616114c8565b34801561076d57600080fd5b5061046161077c366004613392565b6114fc565b34801561078d57600080fd5b506104c1600d5481565b3480156107a357600080fd5b506104616107b2366004613633565b61152b565b3480156107c357600080fd5b506104616107d2366004613392565b61162f565b3480156107e357600080fd5b506104c16107f23660046135b2565b60136020526000908152604090205481565b34801561081057600080fd5b5061046161081f366004613392565b61165e565b34801561083057600080fd5b5061046161083f3660046135b2565b61168d565b34801561085057600080fd5b50601054610429906001600160a01b031681565b34801561087057600080fd5b50600a546001600160a01b0316610429565b34801561088e57600080fd5b5061046161089d3660046134e1565b6116d9565b3480156108ae57600080fd5b506103fc6108bd3660046134e1565b611716565b3480156108ce57600080fd5b506103fc611879565b3480156108e357600080fd5b506103d26108f23660046134e1565b611888565b610461610905366004613392565b611a97565b34801561091657600080fd5b5061046161092536600461369f565b611c2a565b6104616109383660046136db565b611cef565b34801561094957600080fd5b506104c16109583660046135b2565b60126020526000908152604090205481565b34801561097657600080fd5b506104c1600281565b34801561098b57600080fd5b5061046161099a366004613722565b611fb5565b3480156109ab57600080fd5b506109bf6109ba366004613392565b611fe7565b6040516103de919061379e565b3480156109d857600080fd5b506104c1600b5481565b3480156109ee57600080fd5b506104616109fd3660046137df565b61204b565b348015610a0e57600080fd5b506103fc610a1d366004613392565b6120bd565b348015610a2e57600080fd5b506104c16103e881565b348015610a4457600080fd5b50610461610a53366004613590565b612188565b348015610a6457600080fd5b506104c166d529ae9e86000081565b348015610a7f57600080fd5b506104c166f8b0a10e47000081565b348015610a9a57600080fd5b50610461610aa93660046133c7565b6123bb565b348015610aba57600080fd5b506103fc612416565b348015610acf57600080fd5b506103d2610ade366004613826565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b348015610b1857600080fd5b506104c1600f5481565b348015610b2e57600080fd5b50610461610b3d3660046135b2565b612425565b348015610b4e57600080fd5b50610461610b5d3660046134e1565b6124c0565b6000610b6d826124fd565b92915050565b606060008054610b8290613859565b80601f0160208091040260200160405190810160405280929190818152602001828054610bae90613859565b8015610bfb5780601f10610bd057610100808354040283529160200191610bfb565b820191906000526020600020905b815481529060010190602001808311610bde57829003601f168201915b5050505050905090565b6000610c108261253d565b610c765760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610c9d826112fa565b9050806001600160a01b0316836001600160a01b03161415610d0b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c6d565b336001600160a01b0382161480610d275750610d278133610ade565b610d995760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c6d565b610da38383612587565b505050565b604080516001808252818301909252606091600091906020808301908036833701905050905060095481600081518110610de457610de4613894565b602090810291909101015292915050565b60006007610e0283611716565b604051610e0f91906138aa565b9081526040519081900360200190205460ff1692915050565b610e3233826125f5565b610e4e5760405162461bcd60e51b8152600401610c6d906138c6565b610da38383836126df565b60085460009081906001600160a01b0316610e7957506000905080610ea8565b6008546009546001600160a01b039091169061271090610e99908661392d565b610ea39190613962565b915091505b9250929050565b60006001600160a01b038216610ed75760405162461bcd60e51b8152600401610c6d90613976565b6000805b600254811015610f44576103e881108015610f1f575060028181548110610f0457610f04613894565b6000918252602090912001546001600160a01b038581169116145b15610f325781610f2e816139c0565b9250505b80610f3c816139c0565b915050610edb565b5092915050565b600a546001600160a01b03163314610f755760405162461bcd60e51b8152600401610c6d906139db565b600e805482919060ff19166001836003811115610f9457610f94613516565b021790555050565b6000610fa783611440565b82106110095760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c6d565b60008060005b60025481101561107d576002818154811061102c5761102c613894565b6000918252602090912001546001600160a01b038781169116141561106b578483141561105d579250610b6d915050565b82611067816139c0565b9350505b80611075816139c0565b91505061100f565b50949350505050565b600a546001600160a01b031633146110b05760405162461bcd60e51b8152600401610c6d906139db565b6011546110c6906001600160a01b031647612840565b565b60105460405163164746fd60e11b815233600482015260006024820181905260448201526001600160a01b0390911690632c8e8dfa90606401600060405180830381600087803b15801561111b57600080fd5b505af115801561112f573d6000803e3d6000fd5b5050601054604051630c00007b60e41b81523360048201526001600160a01b03909116925063c00007b09150602401600060405180830381600087803b15801561117857600080fd5b505af115801561118c573d6000803e3d6000fd5b50505050565b610da383838360405180602001604052806000815250611fb5565b600660205260009081526040902080546111c690613859565b80601f01602080910402602001604051908101604052809291908181526020018280546111f290613859565b801561123f5780601f106112145761010080835404028352916020019161123f565b820191906000526020600020905b81548152906001019060200180831161122257829003601f168201915b505050505081565b600061125260025490565b82106112b55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610c6d565b5090565b600a546001600160a01b031633146112e35760405162461bcd60e51b8152600401610c6d906139db565b80516112f6906016906020840190613264565b5050565b60025460009082106113605760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c6d565b60006002838154811061137557611375613894565b6000918252602090912001546001600160a01b03169392505050565b601480546111c690613859565b60008181526006602052604090208054606091906113bb90613859565b80601f01602080910402602001604051908101604052809291908181526020018280546113e790613859565b80156114345780601f1061140957610100808354040283529160200191611434565b820191906000526020600020905b81548152906001019060200180831161141757829003601f168201915b50505050509050919050565b60006001600160a01b0382166114685760405162461bcd60e51b8152600401610c6d90613976565b6000805b600254811015610f44576002818154811061148957611489613894565b6000918252602090912001546001600160a01b03858116911614156114b657816114b2816139c0565b9250505b806114c0816139c0565b91505061146c565b600a546001600160a01b031633146114f25760405162461bcd60e51b8152600401610c6d906139db565b6110c66000612959565b600a546001600160a01b031633146115265760405162461bcd60e51b8152600401610c6d906139db565b600b55565b600a546001600160a01b031633146115555760405162461bcd60e51b8152600401610c6d906139db565b600061156060025490565b90506103e88111156115845760405162461bcd60e51b8152600401610c6d90613a10565b60005b848110156116275760005b8484838181106115a4576115a4613894565b9050602002013581101561161457600c80549060006115c2836139c0565b91905055506116028787848181106115dc576115dc613894565b90506020020160208101906115f191906135b2565b846115fb816139c0565b95506129ab565b8061160c816139c0565b915050611592565b508061161f816139c0565b915050611587565b505050505050565b600a546001600160a01b031633146116595760405162461bcd60e51b8152600401610c6d906139db565b600f55565b600a546001600160a01b031633146116885760405162461bcd60e51b8152600401610c6d906139db565b600555565b600a546001600160a01b031633146116b75760405162461bcd60e51b8152600401610c6d906139db565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146117035760405162461bcd60e51b8152600401610c6d906139db565b80516112f6906015906020840190613264565b606060008290506000815167ffffffffffffffff81111561173957611739613435565b6040519080825280601f01601f191660200182016040528015611763576020820181803683370190505b50905060005b825181101561187157604183828151811061178657611786613894565b016020015160f81c108015906117b65750605a8382815181106117ab576117ab613894565b016020015160f81c11155b15611818578281815181106117cd576117cd613894565b602001015160f81c60f81b60f81c60206117e79190613a36565b60f81b8282815181106117fc576117fc613894565b60200101906001600160f81b031916908160001a90535061185f565b82818151811061182a5761182a613894565b602001015160f81c60f81b82828151811061184757611847613894565b60200101906001600160f81b031916908160001a9053505b80611869816139c0565b915050611769565b509392505050565b606060018054610b8290613859565b6000808290506001815110156118a15750600092915050565b6019815111156118b45750600092915050565b806000815181106118c7576118c7613894565b6020910101516001600160f81b031916600160fd1b14156118eb5750600092915050565b80600182516118fa9190613a5b565b8151811061190a5761190a613894565b6020910101516001600160f81b031916600160fd1b141561192e5750600092915050565b60008160008151811061194357611943613894565b01602001516001600160f81b031916905060005b8251811015611a8c57600083828151811061197457611974613894565b01602001516001600160f81b0319169050600160fd1b811480156119a55750600160fd1b6001600160f81b03198416145b156119b65750600095945050505050565b600360fc1b6001600160f81b03198216108015906119e25750603960f81b6001600160f81b0319821611155b158015611a185750604160f81b6001600160f81b0319821610801590611a165750602d60f91b6001600160f81b0319821611155b155b8015611a4d5750606160f81b6001600160f81b0319821610801590611a4b5750603d60f91b6001600160f81b0319821611155b155b8015611a675750600160fd1b6001600160f81b0319821614155b15611a785750600095945050505050565b915080611a84816139c0565b915050611957565b506001949350505050565b6002600e5460ff166003811115611ab057611ab0613516565b14611aeb5760405162461bcd60e51b815260206004820152600b60248201526a14d0531157d0d313d4d15160aa1b6044820152606401610c6d565b33600090815260136020526040902054600290611b09908390613a72565b1115611b495760405162461bcd60e51b815260206004820152600f60248201526e115610d1515117d3505617d3525395608a1b6044820152606401610c6d565b6000611b5460025490565b90506103e8611b638383613a72565b1115611b815760405162461bcd60e51b8152600401610c6d90613a10565b611b928266f8b0a10e47000061392d565b3414611bd35760405162461bcd60e51b815260206004820152601060248201526f0929ca6aa8c8c9286928a9ca8be8aa8960831b6044820152606401610c6d565b3360009081526013602052604081208054849290611bf2908490613a72565b90915550600090505b82811015610da357611c183383611c11816139c0565b94506129ab565b80611c22816139c0565b915050611bfb565b6001600160a01b038216331415611c835760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c6d565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6001600e5460ff166003811115611d0857611d08613516565b14611d465760405162461bcd60e51b815260206004820152600e60248201526d14149154d0531157d0d313d4d15160921b6044820152606401610c6d565b6000611d5160025490565b90506103e8611d608683613a72565b1115611d7e5760405162461bcd60e51b8152600401610c6d90613a10565b600c54611d8d906102bc613a5b565b85600d54611d9b9190613a72565b1115611de05760405162461bcd60e51b81526020600482015260146024820152734558434545445f50524553414c455f53544f434b60601b6044820152606401610c6d565b604080513360601b6bffffffffffffffffffffffff191660208083019190915260348083018890528351808403909101815260549092019092528051910120611e5c908484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506129c592505050565b611e9f5760405162461bcd60e51b815260206004820152601460248201527324a72b20a624a22fa6a2a925a622afa82927a7a360611b6044820152606401610c6d565b336000908152601260205260409020548490611ebc908790613a72565b1115611efd5760405162461bcd60e51b815260206004820152601060248201526f4558434545445f414c4c4f57414e434560801b6044820152606401610c6d565b611f0e8566d529ae9e86000061392d565b3414611f4f5760405162461bcd60e51b815260206004820152601060248201526f0929ca6aa8c8c9286928a9ca8be8aa8960831b6044820152606401610c6d565b3360009081526012602052604081208054879290611f6e908490613a72565b90915550600090505b8581101561162757600d8054906000611f8f836139c0565b9190505550611fa3338380611c11906139c0565b80611fad816139c0565b915050611f77565b611fbf33836125f5565b611fdb5760405162461bcd60e51b8152600401610c6d906138c6565b61118c848484846129d4565b6040805160018082528183019092526060916000919060208083019080368337505060085482519293506001600160a01b03169183915060009061202d5761202d613894565b6001600160a01b039092166020928302919091019091015292915050565b60105460055460405163079cc67960e41b815233600482015260248101919091526001600160a01b03909116906379cc679090604401600060405180830381600087803b15801561209b57600080fd5b505af11580156120af573d6000803e3d6000fd5b505050506112f68282612a07565b60606120c88261253d565b61212c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c6d565b6000612136612d10565b905060008151116121565760405180602001604052806000815250612181565b8061216084612d1f565b604051602001612171929190613a8a565b6040516020818303038152906040525b9392505050565b6003600e5460ff1660038111156121a1576121a1613516565b146121dd5760405162461bcd60e51b815260206004820152600c60248201526b109491515117d0d313d4d15160a21b6044820152606401610c6d565b60006121e860025490565b90506127106121f8826001613a72565b11156122165760405162461bcd60e51b8152600401610c6d90613a10565b6103e88310801561222857506103e882105b6122675760405162461bcd60e51b815260206004820152601060248201526f4f4e4c595f46495253545f545249424560801b6044820152606401610c6d565b6000612274600285613ab9565b90506000612283600285613ab9565b90508115801561229257508015155b6122d25760405162461bcd60e51b81526020600482015260116024820152701391515117d155915397d0539117d3d111607a1b6044820152606401610c6d565b336122dc866112fa565b6001600160a01b03161480156123025750336122f7856112fa565b6001600160a01b0316145b61233d5760405162461bcd60e51b815260206004820152600c60248201526b2727aa2faca7aaa92fa7aba760a11b6044820152606401610c6d565b601054600b5460405163079cc67960e41b815233600482015260248101919091526001600160a01b03909116906379cc679090604401600060405180830381600087803b15801561238d57600080fd5b505af11580156123a1573d6000803e3d6000fd5b505050506123b43384806115fb906139c0565b5050505050565b600a546001600160a01b031633146123e55760405162461bcd60e51b8152600401610c6d906139db565b601180546001600160a01b03939093166001600160a01b031993841681179091556008805490931617909155600955565b606060158054610b8290613859565b600a546001600160a01b0316331461244f5760405162461bcd60e51b8152600401610c6d906139db565b6001600160a01b0381166124b45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c6d565b6124bd81612959565b50565b600a546001600160a01b031633146124ea5760405162461bcd60e51b8152600401610c6d906139db565b80516112f6906014906020840190613264565b600063152a902d60e11b6001600160e01b03198316148061252e5750632dde656160e21b6001600160e01b03198316145b80610b6d5750610b6d82612e1d565b60025460009082108015610b6d575060006001600160a01b03166002838154811061256a5761256a613894565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125bc826112fa565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006126008261253d565b6126615760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c6d565b600061266c836112fa565b9050806001600160a01b0316846001600160a01b031614806126a75750836001600160a01b031661269c84610c05565b6001600160a01b0316145b806126d757506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166126f2826112fa565b6001600160a01b03161461275a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c6d565b6001600160a01b0382166127bc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c6d565b6127c7838383612e42565b6127d2600082612587565b81600282815481106127e6576127e6613894565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b804710156128905760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c6d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146128dd576040519150601f19603f3d011682016040523d82523d6000602084013e6128e2565b606091505b5050905080610da35760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c6d565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6112f6828260405180602001604052806000815250612ebf565b600061218182600f5485612ef2565b6129df8484846126df565b6129eb84848484612fa1565b61118c5760405162461bcd60e51b8152600401610c6d90613acd565b612a10826112fa565b6001600160a01b0316336001600160a01b031614612a655760405162461bcd60e51b815260206004820152601260248201527113d3931657d3d5d3915497d0531313d5d15160721b6044820152606401610c6d565b612a6e81611888565b1515600114612ab45760405162461bcd60e51b81526020600482015260126024820152714e4f545f56414c49445f4e45575f4e414d4560701b6044820152606401610c6d565b600082815260066020526040908190209051600291612ad291613b1f565b602060405180830381855afa158015612aef573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190612b129190613bbb565b600282604051612b2291906138aa565b602060405180830381855afa158015612b3f573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190612b629190613bbb565b1415612b9c5760405162461bcd60e51b815260206004820152600960248201526853414d455f4e414d4560b81b6044820152606401610c6d565b612ba581610df5565b15612be55760405162461bcd60e51b815260206004820152601060248201526f1053149150511657d49154d15495915160821b6044820152606401610c6d565b60008281526006602052604081208054612bfe90613859565b90501115612ca95760008281526006602052604090208054612ca99190612c2490613859565b80601f0160208091040260200160405190810160405280929190818152602001828054612c5090613859565b8015612c9d5780601f10612c7257610100808354040283529160200191612c9d565b820191906000526020600020905b815481529060010190602001808311612c8057829003601f168201915b505050505060006130a3565b612cb48160016130a3565b60008281526006602090815260409091208251612cd392840190613264565b50817f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b82604051612d04919061337f565b60405180910390a25050565b606060168054610b8290613859565b606081612d435750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d6d5780612d57816139c0565b9150612d669050600a83613962565b9150612d47565b60008167ffffffffffffffff811115612d8857612d88613435565b6040519080825280601f01601f191660200182016040528015612db2576020820181803683370190505b5090505b84156126d757612dc7600183613a5b565b9150612dd4600a86613ab9565b612ddf906030613a72565b60f81b818381518110612df457612df4613894565b60200101906001600160f81b031916908160001a905350612e16600a86613962565b9450612db6565b60006001600160e01b0319821663780e9d6360e01b1480610b6d5750610b6d826130e0565b6103e8811015610da35760105460405163164746fd60e11b81526001600160a01b03858116600483015284811660248301526044820184905290911690632c8e8dfa90606401600060405180830381600087803b158015612ea257600080fd5b505af1158015612eb6573d6000803e3d6000fd5b50505050505050565b612ec98383613130565b612ed66000848484612fa1565b610da35760405162461bcd60e51b8152600401610c6d90613acd565b600081815b8551811015612f96576000868281518110612f1457612f14613894565b60200260200101519050808311612f56576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612f83565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612f8e816139c0565b915050612ef7565b509092149392505050565b60006001600160a01b0384163b15611a8c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612fe5903390899088908890600401613bd4565b602060405180830381600087803b158015612fff57600080fd5b505af192505050801561302f575060408051601f3d908101601f1916820190925261302c91810190613c11565b60015b613089573d80801561305d576040519150601f19603f3d011682016040523d82523d6000602084013e613062565b606091505b5080516130815760405162461bcd60e51b8152600401610c6d90613acd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506126d7565b8060076130af84611716565b6040516130bc91906138aa565b908152604051908190036020019020805491151560ff199092169190911790555050565b60006001600160e01b031982166380ac58cd60e01b148061311157506001600160e01b03198216635b5e139f60e01b145b80610b6d57506301ffc9a760e01b6001600160e01b0319831614610b6d565b6001600160a01b0382166131865760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c6d565b61318f8161253d565b156131dc5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c6d565b6131e860008383612e42565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461327090613859565b90600052602060002090601f01602090048101928261329257600085556132d8565b82601f106132ab57805160ff19168380011785556132d8565b828001600101855582156132d8579182015b828111156132d85782518255916020019190600101906132bd565b506112b59291505b808211156112b557600081556001016132e0565b6001600160e01b0319811681146124bd57600080fd5b60006020828403121561331c57600080fd5b8135612181816132f4565b60005b8381101561334257818101518382015260200161332a565b8381111561118c5750506000910152565b6000815180845261336b816020860160208601613327565b601f01601f19169290920160200192915050565b6020815260006121816020830184613353565b6000602082840312156133a457600080fd5b5035919050565b80356001600160a01b03811681146133c257600080fd5b919050565b600080604083850312156133da57600080fd5b6133e3836133ab565b946020939093013593505050565b6020808252825182820181905260009190848201906040850190845b818110156134295783518352928401929184019160010161340d565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561346657613466613435565b604051601f8501601f19908116603f0116810190828211818310171561348e5761348e613435565b816040528093508581528686860111156134a757600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126134d257600080fd5b6121818383356020850161344b565b6000602082840312156134f357600080fd5b813567ffffffffffffffff81111561350a57600080fd5b6126d7848285016134c1565b634e487b7160e01b600052602160045260246000fd5b602081016004831061354e57634e487b7160e01b600052602160045260246000fd5b91905290565b60008060006060848603121561356957600080fd5b613572846133ab565b9250613580602085016133ab565b9150604084013590509250925092565b600080604083850312156135a357600080fd5b50508035926020909101359150565b6000602082840312156135c457600080fd5b612181826133ab565b6000602082840312156135df57600080fd5b81356004811061218157600080fd5b60008083601f84011261360057600080fd5b50813567ffffffffffffffff81111561361857600080fd5b6020830191508360208260051b8501011115610ea857600080fd5b6000806000806040858703121561364957600080fd5b843567ffffffffffffffff8082111561366157600080fd5b61366d888389016135ee565b9096509450602087013591508082111561368657600080fd5b50613693878288016135ee565b95989497509550505050565b600080604083850312156136b257600080fd5b6136bb836133ab565b9150602083013580151581146136d057600080fd5b809150509250929050565b600080600080606085870312156136f157600080fd5b8435935060208501359250604085013567ffffffffffffffff81111561371657600080fd5b613693878288016135ee565b6000806000806080858703121561373857600080fd5b613741856133ab565b935061374f602086016133ab565b925060408501359150606085013567ffffffffffffffff81111561377257600080fd5b8501601f8101871361378357600080fd5b6137928782356020840161344b565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b818110156134295783516001600160a01b0316835292840192918401916001016137ba565b600080604083850312156137f257600080fd5b82359150602083013567ffffffffffffffff81111561381057600080fd5b61381c858286016134c1565b9150509250929050565b6000806040838503121561383957600080fd5b613842836133ab565b9150613850602084016133ab565b90509250929050565b600181811c9082168061386d57607f821691505b6020821081141561388e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b600082516138bc818460208701613327565b9190910192915050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561394757613947613917565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826139715761397161394c565b500490565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60006000198214156139d4576139d4613917565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600c908201526b4558434545445f53544f434b60a01b604082015260600190565b600060ff821660ff84168060ff03821115613a5357613a53613917565b019392505050565b600082821015613a6d57613a6d613917565b500390565b60008219821115613a8557613a85613917565b500190565b60008351613a9c818460208801613327565b835190830190613ab0818360208801613327565b01949350505050565b600082613ac857613ac861394c565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600080835481600182811c915080831680613b3b57607f831692505b6020808410821415613b5b57634e487b7160e01b86526022600452602486fd5b818015613b6f5760018114613b8057613bad565b60ff19861689528489019650613bad565b60008a81526020902060005b86811015613ba55781548b820152908501908301613b8c565b505084890196505b509498975050505050505050565b600060208284031215613bcd57600080fd5b5051919050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613c0790830184613353565b9695505050505050565b600060208284031215613c2357600080fd5b8151612181816132f456fea2646970667358221220b53f19138d73feee8f8057d3eca2655646a08f14d006520d7cbb64c0598594c364736f6c63430008090033

Deployed Bytecode

0x6080604052600436106103ad5760003560e01c80637705f9b5116101e7578063a6bc4a1b1161010d578063e316ada6116100a0578063e985e9c51161006f578063e985e9c514610ac3578063ebf0c71714610b0c578063f2fde38b14610b22578063ffe630b514610b4257600080fd5b8063e316ada614610a58578063e34ea03314610a73578063e463e7e414610a8e578063e8a3d48514610aae57600080fd5b8063c39cbef1116100dc578063c39cbef1146109e2578063c87b56dd14610a02578063d43cdb5614610a22578063d9ecad7b14610a3857600080fd5b8063a6bc4a1b1461096a578063b88d4fde1461097f578063b9c4d9fb1461099f578063bf424e7e146109cc57600080fd5b8063938e3d7b11610185578063a0712d6811610154578063a0712d68146108f7578063a22cb4651461090a578063a3e9ecb91461092a578063a68574d31461093d57600080fd5b8063938e3d7b146108825780639416b423146108a257806395d89b41146108c25780639ffdb65a146108d757600080fd5b806384a1b902116101c157806384a1b9021461080457806384a75d981461082457806386835145146108445780638da5cb5b1461086457600080fd5b80637705f9b5146107975780637cb64759146107b7578063842a77d3146107d757600080fd5b80633515b955116102d757806355f804b31161026a57806370a082311161023957806370a082311461072c578063715018a61461074c57806371beeba11461076157806373aee9291461078157600080fd5b806355f804b3146106b75780636352211e146106d75780636373a6b1146106f75780636d5224181461070c57600080fd5b80634622ab03116102a65780634622ab031461064b5780634f297ccc1461066b5780634f6ccce71461068157806354b6f161146106a157600080fd5b80633515b955146105eb5780633ccfd60b146106015780633d18b9121461061657806342842e0e1461062b57600080fd5b8063200d2ed21161034f5780632c5967181161031e5780632c5967181461056b5780632e49d78b1461058b5780632f745c59146105ab578063351509a8146105cb57600080fd5b8063200d2ed2146104cf57806323b872dd146104f657806327efc086146105165780632a55205a1461052c57600080fd5b8063095ea7b31161038b578063095ea7b3146104415780630ebd4c7f1461046357806315b56d101461049057806318160ddd146104b057600080fd5b806301ffc9a7146103b257806306fdde03146103e7578063081812fc14610409575b600080fd5b3480156103be57600080fd5b506103d26103cd36600461330a565b610b62565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b506103fc610b73565b6040516103de919061337f565b34801561041557600080fd5b50610429610424366004613392565b610c05565b6040516001600160a01b0390911681526020016103de565b34801561044d57600080fd5b5061046161045c3660046133c7565b610c92565b005b34801561046f57600080fd5b5061048361047e366004613392565b610da8565b6040516103de91906133f1565b34801561049c57600080fd5b506103d26104ab3660046134e1565b610df5565b3480156104bc57600080fd5b506002545b6040519081526020016103de565b3480156104db57600080fd5b50600e546104e99060ff1681565b6040516103de919061352c565b34801561050257600080fd5b50610461610511366004613554565b610e28565b34801561052257600080fd5b506104c161271081565b34801561053857600080fd5b5061054c610547366004613590565b610e59565b604080516001600160a01b0390931683526020830191909152016103de565b34801561057757600080fd5b506104c16105863660046135b2565b610eaf565b34801561059757600080fd5b506104616105a63660046135cd565b610f4b565b3480156105b757600080fd5b506104c16105c63660046133c7565b610f9c565b3480156105d757600080fd5b50601154610429906001600160a01b031681565b3480156105f757600080fd5b506104c16102bc81565b34801561060d57600080fd5b50610461611086565b34801561062257600080fd5b506104616110c8565b34801561063757600080fd5b50610461610646366004613554565b611192565b34801561065757600080fd5b506103fc610666366004613392565b6111ad565b34801561067757600080fd5b506104c1600c5481565b34801561068d57600080fd5b506104c161069c366004613392565b611247565b3480156106ad57600080fd5b506104c160055481565b3480156106c357600080fd5b506104616106d23660046134e1565b6112b9565b3480156106e357600080fd5b506104296106f2366004613392565b6112fa565b34801561070357600080fd5b506103fc611391565b34801561071857600080fd5b506103fc610727366004613392565b61139e565b34801561073857600080fd5b506104c16107473660046135b2565b611440565b34801561075857600080fd5b506104616114c8565b34801561076d57600080fd5b5061046161077c366004613392565b6114fc565b34801561078d57600080fd5b506104c1600d5481565b3480156107a357600080fd5b506104616107b2366004613633565b61152b565b3480156107c357600080fd5b506104616107d2366004613392565b61162f565b3480156107e357600080fd5b506104c16107f23660046135b2565b60136020526000908152604090205481565b34801561081057600080fd5b5061046161081f366004613392565b61165e565b34801561083057600080fd5b5061046161083f3660046135b2565b61168d565b34801561085057600080fd5b50601054610429906001600160a01b031681565b34801561087057600080fd5b50600a546001600160a01b0316610429565b34801561088e57600080fd5b5061046161089d3660046134e1565b6116d9565b3480156108ae57600080fd5b506103fc6108bd3660046134e1565b611716565b3480156108ce57600080fd5b506103fc611879565b3480156108e357600080fd5b506103d26108f23660046134e1565b611888565b610461610905366004613392565b611a97565b34801561091657600080fd5b5061046161092536600461369f565b611c2a565b6104616109383660046136db565b611cef565b34801561094957600080fd5b506104c16109583660046135b2565b60126020526000908152604090205481565b34801561097657600080fd5b506104c1600281565b34801561098b57600080fd5b5061046161099a366004613722565b611fb5565b3480156109ab57600080fd5b506109bf6109ba366004613392565b611fe7565b6040516103de919061379e565b3480156109d857600080fd5b506104c1600b5481565b3480156109ee57600080fd5b506104616109fd3660046137df565b61204b565b348015610a0e57600080fd5b506103fc610a1d366004613392565b6120bd565b348015610a2e57600080fd5b506104c16103e881565b348015610a4457600080fd5b50610461610a53366004613590565b612188565b348015610a6457600080fd5b506104c166d529ae9e86000081565b348015610a7f57600080fd5b506104c166f8b0a10e47000081565b348015610a9a57600080fd5b50610461610aa93660046133c7565b6123bb565b348015610aba57600080fd5b506103fc612416565b348015610acf57600080fd5b506103d2610ade366004613826565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b348015610b1857600080fd5b506104c1600f5481565b348015610b2e57600080fd5b50610461610b3d3660046135b2565b612425565b348015610b4e57600080fd5b50610461610b5d3660046134e1565b6124c0565b6000610b6d826124fd565b92915050565b606060008054610b8290613859565b80601f0160208091040260200160405190810160405280929190818152602001828054610bae90613859565b8015610bfb5780601f10610bd057610100808354040283529160200191610bfb565b820191906000526020600020905b815481529060010190602001808311610bde57829003601f168201915b5050505050905090565b6000610c108261253d565b610c765760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610c9d826112fa565b9050806001600160a01b0316836001600160a01b03161415610d0b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c6d565b336001600160a01b0382161480610d275750610d278133610ade565b610d995760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c6d565b610da38383612587565b505050565b604080516001808252818301909252606091600091906020808301908036833701905050905060095481600081518110610de457610de4613894565b602090810291909101015292915050565b60006007610e0283611716565b604051610e0f91906138aa565b9081526040519081900360200190205460ff1692915050565b610e3233826125f5565b610e4e5760405162461bcd60e51b8152600401610c6d906138c6565b610da38383836126df565b60085460009081906001600160a01b0316610e7957506000905080610ea8565b6008546009546001600160a01b039091169061271090610e99908661392d565b610ea39190613962565b915091505b9250929050565b60006001600160a01b038216610ed75760405162461bcd60e51b8152600401610c6d90613976565b6000805b600254811015610f44576103e881108015610f1f575060028181548110610f0457610f04613894565b6000918252602090912001546001600160a01b038581169116145b15610f325781610f2e816139c0565b9250505b80610f3c816139c0565b915050610edb565b5092915050565b600a546001600160a01b03163314610f755760405162461bcd60e51b8152600401610c6d906139db565b600e805482919060ff19166001836003811115610f9457610f94613516565b021790555050565b6000610fa783611440565b82106110095760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c6d565b60008060005b60025481101561107d576002818154811061102c5761102c613894565b6000918252602090912001546001600160a01b038781169116141561106b578483141561105d579250610b6d915050565b82611067816139c0565b9350505b80611075816139c0565b91505061100f565b50949350505050565b600a546001600160a01b031633146110b05760405162461bcd60e51b8152600401610c6d906139db565b6011546110c6906001600160a01b031647612840565b565b60105460405163164746fd60e11b815233600482015260006024820181905260448201526001600160a01b0390911690632c8e8dfa90606401600060405180830381600087803b15801561111b57600080fd5b505af115801561112f573d6000803e3d6000fd5b5050601054604051630c00007b60e41b81523360048201526001600160a01b03909116925063c00007b09150602401600060405180830381600087803b15801561117857600080fd5b505af115801561118c573d6000803e3d6000fd5b50505050565b610da383838360405180602001604052806000815250611fb5565b600660205260009081526040902080546111c690613859565b80601f01602080910402602001604051908101604052809291908181526020018280546111f290613859565b801561123f5780601f106112145761010080835404028352916020019161123f565b820191906000526020600020905b81548152906001019060200180831161122257829003601f168201915b505050505081565b600061125260025490565b82106112b55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610c6d565b5090565b600a546001600160a01b031633146112e35760405162461bcd60e51b8152600401610c6d906139db565b80516112f6906016906020840190613264565b5050565b60025460009082106113605760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c6d565b60006002838154811061137557611375613894565b6000918252602090912001546001600160a01b03169392505050565b601480546111c690613859565b60008181526006602052604090208054606091906113bb90613859565b80601f01602080910402602001604051908101604052809291908181526020018280546113e790613859565b80156114345780601f1061140957610100808354040283529160200191611434565b820191906000526020600020905b81548152906001019060200180831161141757829003601f168201915b50505050509050919050565b60006001600160a01b0382166114685760405162461bcd60e51b8152600401610c6d90613976565b6000805b600254811015610f44576002818154811061148957611489613894565b6000918252602090912001546001600160a01b03858116911614156114b657816114b2816139c0565b9250505b806114c0816139c0565b91505061146c565b600a546001600160a01b031633146114f25760405162461bcd60e51b8152600401610c6d906139db565b6110c66000612959565b600a546001600160a01b031633146115265760405162461bcd60e51b8152600401610c6d906139db565b600b55565b600a546001600160a01b031633146115555760405162461bcd60e51b8152600401610c6d906139db565b600061156060025490565b90506103e88111156115845760405162461bcd60e51b8152600401610c6d90613a10565b60005b848110156116275760005b8484838181106115a4576115a4613894565b9050602002013581101561161457600c80549060006115c2836139c0565b91905055506116028787848181106115dc576115dc613894565b90506020020160208101906115f191906135b2565b846115fb816139c0565b95506129ab565b8061160c816139c0565b915050611592565b508061161f816139c0565b915050611587565b505050505050565b600a546001600160a01b031633146116595760405162461bcd60e51b8152600401610c6d906139db565b600f55565b600a546001600160a01b031633146116885760405162461bcd60e51b8152600401610c6d906139db565b600555565b600a546001600160a01b031633146116b75760405162461bcd60e51b8152600401610c6d906139db565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146117035760405162461bcd60e51b8152600401610c6d906139db565b80516112f6906015906020840190613264565b606060008290506000815167ffffffffffffffff81111561173957611739613435565b6040519080825280601f01601f191660200182016040528015611763576020820181803683370190505b50905060005b825181101561187157604183828151811061178657611786613894565b016020015160f81c108015906117b65750605a8382815181106117ab576117ab613894565b016020015160f81c11155b15611818578281815181106117cd576117cd613894565b602001015160f81c60f81b60f81c60206117e79190613a36565b60f81b8282815181106117fc576117fc613894565b60200101906001600160f81b031916908160001a90535061185f565b82818151811061182a5761182a613894565b602001015160f81c60f81b82828151811061184757611847613894565b60200101906001600160f81b031916908160001a9053505b80611869816139c0565b915050611769565b509392505050565b606060018054610b8290613859565b6000808290506001815110156118a15750600092915050565b6019815111156118b45750600092915050565b806000815181106118c7576118c7613894565b6020910101516001600160f81b031916600160fd1b14156118eb5750600092915050565b80600182516118fa9190613a5b565b8151811061190a5761190a613894565b6020910101516001600160f81b031916600160fd1b141561192e5750600092915050565b60008160008151811061194357611943613894565b01602001516001600160f81b031916905060005b8251811015611a8c57600083828151811061197457611974613894565b01602001516001600160f81b0319169050600160fd1b811480156119a55750600160fd1b6001600160f81b03198416145b156119b65750600095945050505050565b600360fc1b6001600160f81b03198216108015906119e25750603960f81b6001600160f81b0319821611155b158015611a185750604160f81b6001600160f81b0319821610801590611a165750602d60f91b6001600160f81b0319821611155b155b8015611a4d5750606160f81b6001600160f81b0319821610801590611a4b5750603d60f91b6001600160f81b0319821611155b155b8015611a675750600160fd1b6001600160f81b0319821614155b15611a785750600095945050505050565b915080611a84816139c0565b915050611957565b506001949350505050565b6002600e5460ff166003811115611ab057611ab0613516565b14611aeb5760405162461bcd60e51b815260206004820152600b60248201526a14d0531157d0d313d4d15160aa1b6044820152606401610c6d565b33600090815260136020526040902054600290611b09908390613a72565b1115611b495760405162461bcd60e51b815260206004820152600f60248201526e115610d1515117d3505617d3525395608a1b6044820152606401610c6d565b6000611b5460025490565b90506103e8611b638383613a72565b1115611b815760405162461bcd60e51b8152600401610c6d90613a10565b611b928266f8b0a10e47000061392d565b3414611bd35760405162461bcd60e51b815260206004820152601060248201526f0929ca6aa8c8c9286928a9ca8be8aa8960831b6044820152606401610c6d565b3360009081526013602052604081208054849290611bf2908490613a72565b90915550600090505b82811015610da357611c183383611c11816139c0565b94506129ab565b80611c22816139c0565b915050611bfb565b6001600160a01b038216331415611c835760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c6d565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6001600e5460ff166003811115611d0857611d08613516565b14611d465760405162461bcd60e51b815260206004820152600e60248201526d14149154d0531157d0d313d4d15160921b6044820152606401610c6d565b6000611d5160025490565b90506103e8611d608683613a72565b1115611d7e5760405162461bcd60e51b8152600401610c6d90613a10565b600c54611d8d906102bc613a5b565b85600d54611d9b9190613a72565b1115611de05760405162461bcd60e51b81526020600482015260146024820152734558434545445f50524553414c455f53544f434b60601b6044820152606401610c6d565b604080513360601b6bffffffffffffffffffffffff191660208083019190915260348083018890528351808403909101815260549092019092528051910120611e5c908484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506129c592505050565b611e9f5760405162461bcd60e51b815260206004820152601460248201527324a72b20a624a22fa6a2a925a622afa82927a7a360611b6044820152606401610c6d565b336000908152601260205260409020548490611ebc908790613a72565b1115611efd5760405162461bcd60e51b815260206004820152601060248201526f4558434545445f414c4c4f57414e434560801b6044820152606401610c6d565b611f0e8566d529ae9e86000061392d565b3414611f4f5760405162461bcd60e51b815260206004820152601060248201526f0929ca6aa8c8c9286928a9ca8be8aa8960831b6044820152606401610c6d565b3360009081526012602052604081208054879290611f6e908490613a72565b90915550600090505b8581101561162757600d8054906000611f8f836139c0565b9190505550611fa3338380611c11906139c0565b80611fad816139c0565b915050611f77565b611fbf33836125f5565b611fdb5760405162461bcd60e51b8152600401610c6d906138c6565b61118c848484846129d4565b6040805160018082528183019092526060916000919060208083019080368337505060085482519293506001600160a01b03169183915060009061202d5761202d613894565b6001600160a01b039092166020928302919091019091015292915050565b60105460055460405163079cc67960e41b815233600482015260248101919091526001600160a01b03909116906379cc679090604401600060405180830381600087803b15801561209b57600080fd5b505af11580156120af573d6000803e3d6000fd5b505050506112f68282612a07565b60606120c88261253d565b61212c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c6d565b6000612136612d10565b905060008151116121565760405180602001604052806000815250612181565b8061216084612d1f565b604051602001612171929190613a8a565b6040516020818303038152906040525b9392505050565b6003600e5460ff1660038111156121a1576121a1613516565b146121dd5760405162461bcd60e51b815260206004820152600c60248201526b109491515117d0d313d4d15160a21b6044820152606401610c6d565b60006121e860025490565b90506127106121f8826001613a72565b11156122165760405162461bcd60e51b8152600401610c6d90613a10565b6103e88310801561222857506103e882105b6122675760405162461bcd60e51b815260206004820152601060248201526f4f4e4c595f46495253545f545249424560801b6044820152606401610c6d565b6000612274600285613ab9565b90506000612283600285613ab9565b90508115801561229257508015155b6122d25760405162461bcd60e51b81526020600482015260116024820152701391515117d155915397d0539117d3d111607a1b6044820152606401610c6d565b336122dc866112fa565b6001600160a01b03161480156123025750336122f7856112fa565b6001600160a01b0316145b61233d5760405162461bcd60e51b815260206004820152600c60248201526b2727aa2faca7aaa92fa7aba760a11b6044820152606401610c6d565b601054600b5460405163079cc67960e41b815233600482015260248101919091526001600160a01b03909116906379cc679090604401600060405180830381600087803b15801561238d57600080fd5b505af11580156123a1573d6000803e3d6000fd5b505050506123b43384806115fb906139c0565b5050505050565b600a546001600160a01b031633146123e55760405162461bcd60e51b8152600401610c6d906139db565b601180546001600160a01b03939093166001600160a01b031993841681179091556008805490931617909155600955565b606060158054610b8290613859565b600a546001600160a01b0316331461244f5760405162461bcd60e51b8152600401610c6d906139db565b6001600160a01b0381166124b45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c6d565b6124bd81612959565b50565b600a546001600160a01b031633146124ea5760405162461bcd60e51b8152600401610c6d906139db565b80516112f6906014906020840190613264565b600063152a902d60e11b6001600160e01b03198316148061252e5750632dde656160e21b6001600160e01b03198316145b80610b6d5750610b6d82612e1d565b60025460009082108015610b6d575060006001600160a01b03166002838154811061256a5761256a613894565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125bc826112fa565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006126008261253d565b6126615760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c6d565b600061266c836112fa565b9050806001600160a01b0316846001600160a01b031614806126a75750836001600160a01b031661269c84610c05565b6001600160a01b0316145b806126d757506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166126f2826112fa565b6001600160a01b03161461275a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c6d565b6001600160a01b0382166127bc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c6d565b6127c7838383612e42565b6127d2600082612587565b81600282815481106127e6576127e6613894565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b804710156128905760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c6d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146128dd576040519150601f19603f3d011682016040523d82523d6000602084013e6128e2565b606091505b5050905080610da35760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c6d565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6112f6828260405180602001604052806000815250612ebf565b600061218182600f5485612ef2565b6129df8484846126df565b6129eb84848484612fa1565b61118c5760405162461bcd60e51b8152600401610c6d90613acd565b612a10826112fa565b6001600160a01b0316336001600160a01b031614612a655760405162461bcd60e51b815260206004820152601260248201527113d3931657d3d5d3915497d0531313d5d15160721b6044820152606401610c6d565b612a6e81611888565b1515600114612ab45760405162461bcd60e51b81526020600482015260126024820152714e4f545f56414c49445f4e45575f4e414d4560701b6044820152606401610c6d565b600082815260066020526040908190209051600291612ad291613b1f565b602060405180830381855afa158015612aef573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190612b129190613bbb565b600282604051612b2291906138aa565b602060405180830381855afa158015612b3f573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190612b629190613bbb565b1415612b9c5760405162461bcd60e51b815260206004820152600960248201526853414d455f4e414d4560b81b6044820152606401610c6d565b612ba581610df5565b15612be55760405162461bcd60e51b815260206004820152601060248201526f1053149150511657d49154d15495915160821b6044820152606401610c6d565b60008281526006602052604081208054612bfe90613859565b90501115612ca95760008281526006602052604090208054612ca99190612c2490613859565b80601f0160208091040260200160405190810160405280929190818152602001828054612c5090613859565b8015612c9d5780601f10612c7257610100808354040283529160200191612c9d565b820191906000526020600020905b815481529060010190602001808311612c8057829003601f168201915b505050505060006130a3565b612cb48160016130a3565b60008281526006602090815260409091208251612cd392840190613264565b50817f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b82604051612d04919061337f565b60405180910390a25050565b606060168054610b8290613859565b606081612d435750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d6d5780612d57816139c0565b9150612d669050600a83613962565b9150612d47565b60008167ffffffffffffffff811115612d8857612d88613435565b6040519080825280601f01601f191660200182016040528015612db2576020820181803683370190505b5090505b84156126d757612dc7600183613a5b565b9150612dd4600a86613ab9565b612ddf906030613a72565b60f81b818381518110612df457612df4613894565b60200101906001600160f81b031916908160001a905350612e16600a86613962565b9450612db6565b60006001600160e01b0319821663780e9d6360e01b1480610b6d5750610b6d826130e0565b6103e8811015610da35760105460405163164746fd60e11b81526001600160a01b03858116600483015284811660248301526044820184905290911690632c8e8dfa90606401600060405180830381600087803b158015612ea257600080fd5b505af1158015612eb6573d6000803e3d6000fd5b50505050505050565b612ec98383613130565b612ed66000848484612fa1565b610da35760405162461bcd60e51b8152600401610c6d90613acd565b600081815b8551811015612f96576000868281518110612f1457612f14613894565b60200260200101519050808311612f56576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612f83565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612f8e816139c0565b915050612ef7565b509092149392505050565b60006001600160a01b0384163b15611a8c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612fe5903390899088908890600401613bd4565b602060405180830381600087803b158015612fff57600080fd5b505af192505050801561302f575060408051601f3d908101601f1916820190925261302c91810190613c11565b60015b613089573d80801561305d576040519150601f19603f3d011682016040523d82523d6000602084013e613062565b606091505b5080516130815760405162461bcd60e51b8152600401610c6d90613acd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506126d7565b8060076130af84611716565b6040516130bc91906138aa565b908152604051908190036020019020805491151560ff199092169190911790555050565b60006001600160e01b031982166380ac58cd60e01b148061311157506001600160e01b03198216635b5e139f60e01b145b80610b6d57506301ffc9a760e01b6001600160e01b0319831614610b6d565b6001600160a01b0382166131865760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c6d565b61318f8161253d565b156131dc5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c6d565b6131e860008383612e42565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461327090613859565b90600052602060002090601f01602090048101928261329257600085556132d8565b82601f106132ab57805160ff19168380011785556132d8565b828001600101855582156132d8579182015b828111156132d85782518255916020019190600101906132bd565b506112b59291505b808211156112b557600081556001016132e0565b6001600160e01b0319811681146124bd57600080fd5b60006020828403121561331c57600080fd5b8135612181816132f4565b60005b8381101561334257818101518382015260200161332a565b8381111561118c5750506000910152565b6000815180845261336b816020860160208601613327565b601f01601f19169290920160200192915050565b6020815260006121816020830184613353565b6000602082840312156133a457600080fd5b5035919050565b80356001600160a01b03811681146133c257600080fd5b919050565b600080604083850312156133da57600080fd5b6133e3836133ab565b946020939093013593505050565b6020808252825182820181905260009190848201906040850190845b818110156134295783518352928401929184019160010161340d565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561346657613466613435565b604051601f8501601f19908116603f0116810190828211818310171561348e5761348e613435565b816040528093508581528686860111156134a757600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126134d257600080fd5b6121818383356020850161344b565b6000602082840312156134f357600080fd5b813567ffffffffffffffff81111561350a57600080fd5b6126d7848285016134c1565b634e487b7160e01b600052602160045260246000fd5b602081016004831061354e57634e487b7160e01b600052602160045260246000fd5b91905290565b60008060006060848603121561356957600080fd5b613572846133ab565b9250613580602085016133ab565b9150604084013590509250925092565b600080604083850312156135a357600080fd5b50508035926020909101359150565b6000602082840312156135c457600080fd5b612181826133ab565b6000602082840312156135df57600080fd5b81356004811061218157600080fd5b60008083601f84011261360057600080fd5b50813567ffffffffffffffff81111561361857600080fd5b6020830191508360208260051b8501011115610ea857600080fd5b6000806000806040858703121561364957600080fd5b843567ffffffffffffffff8082111561366157600080fd5b61366d888389016135ee565b9096509450602087013591508082111561368657600080fd5b50613693878288016135ee565b95989497509550505050565b600080604083850312156136b257600080fd5b6136bb836133ab565b9150602083013580151581146136d057600080fd5b809150509250929050565b600080600080606085870312156136f157600080fd5b8435935060208501359250604085013567ffffffffffffffff81111561371657600080fd5b613693878288016135ee565b6000806000806080858703121561373857600080fd5b613741856133ab565b935061374f602086016133ab565b925060408501359150606085013567ffffffffffffffff81111561377257600080fd5b8501601f8101871361378357600080fd5b6137928782356020840161344b565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b818110156134295783516001600160a01b0316835292840192918401916001016137ba565b600080604083850312156137f257600080fd5b82359150602083013567ffffffffffffffff81111561381057600080fd5b61381c858286016134c1565b9150509250929050565b6000806040838503121561383957600080fd5b613842836133ab565b9150613850602084016133ab565b90509250929050565b600181811c9082168061386d57607f821691505b6020821081141561388e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b600082516138bc818460208701613327565b9190910192915050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561394757613947613917565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826139715761397161394c565b500490565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60006000198214156139d4576139d4613917565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600c908201526b4558434545445f53544f434b60a01b604082015260600190565b600060ff821660ff84168060ff03821115613a5357613a53613917565b019392505050565b600082821015613a6d57613a6d613917565b500390565b60008219821115613a8557613a85613917565b500190565b60008351613a9c818460208801613327565b835190830190613ab0818360208801613327565b01949350505050565b600082613ac857613ac861394c565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600080835481600182811c915080831680613b3b57607f831692505b6020808410821415613b5b57634e487b7160e01b86526022600452602486fd5b818015613b6f5760018114613b8057613bad565b60ff19861689528489019650613bad565b60008a81526020902060005b86811015613ba55781548b820152908501908301613b8c565b505084890196505b509498975050505050505050565b600060208284031215613bcd57600080fd5b5051919050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613c0790830184613353565b9695505050505050565b600060208284031215613c2357600080fd5b8151612181816132f456fea2646970667358221220b53f19138d73feee8f8057d3eca2655646a08f14d006520d7cbb64c0598594c364736f6c63430008090033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.