ETH Price: $2,391.37 (+0.09%)

Token

 

Overview

Max Total Supply

300

Holders

1

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Clans

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : Clans.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./IClans.sol";
import "./IOxygen.sol";

contract Clans is IClans, ERC1155, EIP712, Ownable, ReentrancyGuard {
  using Strings for uint256;
  string private baseURI;
  using Counters for Counters.Counter;
  Counters.Counter public clanIdTracker;
  bool public featureFlagCreateClan = true;
  bool public featureFlagSwitchColony = false;
  uint256 public creatorInitialClanTokens = 100;
  uint256 public changeLeaderPercentage = 10;
  uint256 public createClanCostMultiplier = 100 ether;
  uint256 public switchColonyCost = 10000 ether;
  uint256 public switchClanCostBase = 0;
  uint256 public switchClanCostMultiplier = 0;
  uint256 public minClanInColony = 1;
  uint256 public serverToBlockTimeDelta = 60;
  address public donationAccount;
  address public y2123Nft;
  IOxygen public oxgnToken;

  mapping(address => bool) private admins;
  mapping(uint256 => uint256) public clanToHighestOwnedCount;
  mapping(uint256 => address) public clanToHighestOwnedAccount;
  mapping(uint256 => uint256) public clanToColony;

  event Minted(address indexed addr, uint256 indexed id, uint256 amount, bool recipientOrigin);
  event Burned(address indexed addr, uint256 indexed id, uint256 amount);
  event ClanCreated(address indexed leader, uint256 indexed clanId, uint256 indexed colonyId);
  event SwitchColony(address indexed leader, uint256 indexed clanId, uint256 indexed colonyId);
  event ChangeLeader(address indexed oldLeader, address indexed newLeader, uint256 indexed clanId, uint256 clanTokens);
  event SwitchClan(address indexed addr, uint256 indexed oldClanId, uint256 indexed newClanId, uint256 switchClanCost);
  event Stake(uint256 tokenId, address contractAddress, address owner, uint256 indexed clanId);
  event Unstake(uint256 tokenId, address contractAddress, address owner);
  event Claim(address indexed addr, uint256 oxgnTokenClaim, uint256 oxgnTokenDonate, uint256 indexed clanId, uint256 clanTokenClaim, address indexed benificiaryOfTax, uint256 oxgnTokenTax, uint256 servertime);

  constructor(
    string memory _baseURI,
    address _oxgnToken,
    address _y2123Nft
  ) ERC1155(_baseURI) EIP712("y2123", "1.0") {
    baseURI = _baseURI;
    addAdmin(_msgSender());
    setTokenContract(_oxgnToken);
    addContract(_y2123Nft);
    y2123Nft = _y2123Nft;
    clanIdTracker.increment(); // start with clanId = 1
    createClan(1);
    createClan(2);
    createClan(3);
    featureFlagCreateClan = false;
    setDonationAccount(address(this));
  }

  function uri(uint256 clanId) public view override returns (string memory) {
    return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, clanId.toString())) : baseURI;
  }

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

  function setY2123Nft(address _y2123Nft) public onlyOwner {
    y2123Nft = _y2123Nft;
  }

  function setDonationAccount(address addr) public onlyOwner {
    donationAccount = addr;
  }

  function toggleFeatureFlagCreateClan() external onlyOwner {
    featureFlagCreateClan = !featureFlagCreateClan;
  }

  function toggleFeatureFlagSwitchColony() external onlyOwner {
    featureFlagSwitchColony = !featureFlagSwitchColony;
  }

  function setServerToBlockTimeDelta(uint256 newVal) public onlyOwner {
    serverToBlockTimeDelta = newVal;
  }

  function setChangeLeaderPercentage(uint256 newVal) public onlyOwner {
    require(changeLeaderPercentage > 0, "Value lower then 1");
    changeLeaderPercentage = newVal;
  }

  function setCreatorInitialClanTokens(uint256 newVal) public onlyOwner {
    creatorInitialClanTokens = newVal;
  }

  function setCreateClanCostMultiplier(uint256 newVal) public onlyOwner {
    createClanCostMultiplier = newVal;
  }

  function setSwitchColonyCost(uint256 newVal) public onlyOwner {
    switchColonyCost = newVal;
  }

  function setSwitchClanCostBase(uint256 newVal) public onlyOwner {
    switchClanCostBase = newVal;
  }

  function setSwitchClanCostMultiplier(uint256 newVal) public onlyOwner {
    switchClanCostMultiplier = newVal;
  }

  function setMinClanInColony(uint256 newVal) public onlyOwner {
    minClanInColony = newVal;
  }

  function shouldChangeLeader(
    address member,
    uint256 clanId,
    uint256 amount
  ) public view returns (bool) {
    //Check if already clan leader for this clan
    if (clanToHighestOwnedAccount[clanId] == member) {
      return false;
    }

    //Can't become leader if not in this clan
    if (clanStructs[member].clanId != clanId) {
      return false;
    }

    return amount > getChangeClanLeaderThreshold(clanId);
  }

  /** ADMIN */

  function setTokenContract(address _oxgnToken) public onlyOwner {
    oxgnToken = IOxygen(_oxgnToken);
  }

  function addAdmin(address addr) public onlyOwner {
    require(addr != address(0), "empty address");
    admins[addr] = true;
  }

  function removeAdmin(address addr) public onlyOwner {
    require(addr != address(0), "empty address");
    admins[addr] = false;
  }

  function mint(
    address recipient,
    uint256 id,
    uint256 amount
  ) external {
    require(admins[_msgSender()], "Admins only!");
    emit Minted(recipient, id, amount, tx.origin == recipient);
    _mint(recipient, id, amount, "");
  }

  function burn(uint256 id, uint256 amount) external {
    require(admins[_msgSender()], "Admins only!");
    require(balanceOf(tx.origin, id) != 0, "Oops you don't own that");
    emit Burned(tx.origin, id, amount);
    _burn(tx.origin, id, amount);
  }

  function _hash(
    address account,
    uint256 oxgnTokenClaim,
    uint256 oxgnTokenDonate,
    uint256 clanTokenClaim,
    address benificiaryOfTax,
    uint256 oxgnTokenTax,
    uint256 nonce,
    uint256 timestamp
  ) internal view returns (bytes32) {
    return
      _hashTypedDataV4(
        keccak256(
          abi.encode(
            keccak256("Claim(address account,uint256 oxgnTokenClaim,uint256 oxgnTokenDonate,uint256 clanTokenClaim,address benificiaryOfTax,uint256 oxgnTokenTax,uint256 nonce,uint256 timestamp)"),
            account,
            oxgnTokenClaim,
            oxgnTokenDonate,
            clanTokenClaim,
            benificiaryOfTax,
            oxgnTokenTax,
            nonce,
            timestamp
          )
        )
      );
  }

  function recoverAddress(
    address account,
    uint256 oxgnTokenClaim,
    uint256 oxgnTokenDonate,
    uint256 clanTokenClaim,
    address benificiaryOfTax,
    uint256 oxgnTokenTax,
    uint256 nonce,
    uint256 timestamp,
    bytes calldata signature
  ) public view returns (address) {
    return ECDSA.recover(_hash(account, oxgnTokenClaim, oxgnTokenDonate, clanTokenClaim, benificiaryOfTax, oxgnTokenTax, nonce, timestamp), signature);
  }

  /** CLAIM & DONATE */

  address _signerAddress;

  function setSignerAddress(address signerAddress) external onlyOwner {
    _signerAddress = signerAddress;
  }

  struct ClaimInfo {
    uint256 oxgnTokenClaim;
    uint256 oxgnTokenDonate;
    uint256 clanId;
    uint256 clanTokenClaim;
    address benificiaryOfTax;
    uint256 oxgnTokenTax;
    uint256 nonce;
    uint256 servertime;
    uint256 blocktime;
  }
  mapping(address => ClaimInfo) public accountToLastClaim;
  mapping(address => uint256) public accountTotalClaim;
  mapping(address => uint256) public accountTotalDonate;
  mapping(address => uint256) public accountTotalClanClaim;

  function claim(
    uint256 oxgnTokenClaim,
    uint256 oxgnTokenDonate,
    uint256 clanTokenClaim,
    address benificiaryOfTax,
    uint256 oxgnTokenTax,
    uint256 timestamp,
    bytes calldata signature
  ) external nonReentrant {
    require(oxgnTokenClaim > 0, "empty claim");
    require(_signerAddress == recoverAddress(_msgSender(), oxgnTokenClaim, oxgnTokenDonate, clanTokenClaim, benificiaryOfTax, oxgnTokenTax, accountNonce(_msgSender()), timestamp, signature), "invalid signature");
    if (serverToBlockTimeDelta > 0) {
      require(timestamp > block.timestamp - serverToBlockTimeDelta, "session expired");
    }

    oxgnToken.reward(_msgSender(), oxgnTokenClaim * 1 ether);
    addressToNonce[_msgSender()].increment();
    uint256 clanId = clanStructs[_msgSender()].clanId;
    accountToLastClaim[_msgSender()] = ClaimInfo(oxgnTokenClaim, oxgnTokenDonate, clanId, clanTokenClaim, benificiaryOfTax, oxgnTokenTax, accountNonce(_msgSender()), timestamp, block.timestamp);
    accountTotalClaim[_msgSender()] = accountTotalClaim[_msgSender()] + oxgnTokenClaim;

    if (oxgnTokenDonate > 0) {
      oxgnToken.donate(donationAccount, oxgnTokenDonate * 1 ether);
      accountTotalDonate[_msgSender()] = accountTotalDonate[_msgSender()] + oxgnTokenDonate;
    }
    if (benificiaryOfTax != address(0) && oxgnTokenTax > 0) {
      oxgnToken.tax(benificiaryOfTax, oxgnTokenTax * 1 ether);
    }
    if (clanId > 0 && clanId < clanIdTracker.current() && clanTokenClaim > 0) {
      _mint(_msgSender(), clanId, clanTokenClaim, "");
      accountTotalClanClaim[_msgSender()] = accountTotalClanClaim[_msgSender()] + clanTokenClaim;
    }

    emit Claim(_msgSender(), oxgnTokenClaim, oxgnTokenDonate, clanId, clanTokenClaim, benificiaryOfTax, oxgnTokenTax, timestamp);
  }

  function withdrawForDonation(uint256 amount) external onlyOwner {
    require(amount <= oxgnToken.balanceOf(address(this)), "amount exceeds balance");
    oxgnToken.transfer(_msgSender(), amount);
  }

  /** CLAN */

  function createClan(uint256 colonyId) public nonReentrant {
    require(featureFlagCreateClan, "feature not enabled");
    require(colonyId > 0 && colonyId < 4, "only 3 colonies ever");
    require(!isClanLeader(_msgSender()), "clan leader can't create new clan");

    if (!admins[_msgSender()]) {
      require(isEntity(_msgSender()), "must be in a clan");

      uint256 cost = getCreateClanCost();
      if (cost > 0) {
        oxgnToken.burn(_msgSender(), cost);
      }
    }

    uint256 clanId = clanIdTracker.current();
    clanToColony[clanId] = colonyId;
    clanIdTracker.increment();
    emit ClanCreated(_msgSender(), clanId, colonyId);

    // Switch to created clan
    clanStructs[_msgSender()].clanId = clanId;
    clanStructs[_msgSender()].updateClanTimestamp = block.timestamp;

    // Clan leader assigned to _msgSender() thru mint
    _mint(_msgSender(), clanId, creatorInitialClanTokens, "");
  }

  function switchColony(uint256 clanId, uint256 colonyId) external nonReentrant {
    require(featureFlagSwitchColony, "feature not enabled");
    require(colonyId > 0 && colonyId < 4, "only 3 colonies ever");
    require(clanId > 0 && clanId < clanIdTracker.current(), "invalid clan");
    require(clanToColony[clanId] != colonyId, "clan already belongs to this colony");
    uint256 currentColony = clanToColony[clanId];
    uint256 currentColonyCount = getClanCountInColony(currentColony);
    require(currentColonyCount > minClanInColony, "colony needs to have at least some clan");
    if (!admins[_msgSender()]) {
      require(clanToHighestOwnedAccount[clanId] == _msgSender(), "clan leader only");
      oxgnToken.burn(_msgSender(), switchColonyCost);
    }

    emit SwitchColony(_msgSender(), clanId, colonyId);
    clanToColony[clanId] = colonyId;
  }

  function getClanCountInColony(uint256 colonyId) public view returns (uint256 clans) {
    require(colonyId > 0 && colonyId < 4, "only 3 colonies ever");
    uint256 clanCount = 0;
    for (uint256 i = 0; i < clanIdTracker.current(); i++) {
      if (clanToColony[i] == colonyId) {
        clanCount++;
      }
    }
    return clanCount;
  }

  function getClansInColony(uint256 colonyId) public view returns (uint256[] memory) {
    require(colonyId > 0 && colonyId < 4, "only 3 colonies ever");
    uint256 clanCount = getClanCountInColony(colonyId);
    uint256[] memory clans = new uint256[](clanCount);
    uint256 clanIndex = 0;
    for (uint256 i = 0; i < clanIdTracker.current(); i++) {
      if (clanToColony[i] == colonyId) {
        clans[clanIndex] = i;
        clanIndex++;
      }
    }
    return clans;
  }

  function _beforeTokenTransfer(
    address operator,
    address from,
    address to,
    uint256[] memory ids,
    uint256[] memory amounts,
    bytes memory data
  ) internal virtual override(ERC1155) {
    for (uint256 i = 0; i < ids.length; ++i) {
      uint256 id = ids[i];
      uint256 newAmount = balanceOf(to, id) + amounts[i];

      //console.log("After transfer, %s will have %s tokens.", to, newAmount);
      // If an account in ClanID1, but holds the highest ClanID2Token, upon switch to ClanID2 will only be the new leader after performing a buy/sell/transfer ClanID2Token transaction
      if (shouldChangeLeader(to, id, newAmount)) {
        // Tracking address start and stop being a clan leader
        address oldLeader = clanToHighestOwnedAccount[id];
        emit ChangeLeader(oldLeader, to, id, newAmount);

        clanToHighestOwnedCount[id] = newAmount;
        clanToHighestOwnedAccount[id] = to;
      }
    }

    super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
  }

  /** CLAN RECORDS */

  struct ClanStruct {
    uint256 clanId;
    uint256 updateClanTimestamp;
    bool isEntity;
  }

  mapping(address => ClanStruct) public clanStructs;
  address[] public entityList;

  function isEntity(address entityAddress) public view returns (bool isIndeed) {
    return clanStructs[entityAddress].isEntity;
  }

  function getEntityCount() public view returns (uint256 entityCount) {
    return entityList.length;
  }

  function getEntityClanCount(uint256 clanId) public view returns (uint256 entityCount) {
    uint256 clanCount = 0;
    for (uint256 i = 0; i < entityList.length; i++) {
      if (clanStructs[entityList[i]].clanId == clanId) {
        clanCount++;
      }
    }
    return clanCount;
  }

  function getAccountsInClan(uint256 clanId) public view returns (address[] memory) {
    uint256 clanCount = getEntityClanCount(clanId);
    address[] memory e = new address[](clanCount);
    uint256 clanIndex = 0;
    for (uint256 i = 0; i < entityList.length; i++) {
      if (clanStructs[entityList[i]].clanId == clanId) {
        e[clanIndex] = entityList[i];
        clanIndex++;
      }
    }
    return e;
  }

  function getClanRecords(uint256 clanId) public view returns (address[] memory entity, uint256[] memory updateClanTimestamp) {
    uint256 clanCount = getEntityClanCount(clanId);
    address[] memory addr = new address[](clanCount);
    uint256[] memory timestamp = new uint256[](clanCount);

    uint256 clanIndex = 0;
    for (uint256 i = 0; i < entityList.length; i++) {
      if (clanStructs[entityList[i]].clanId == clanId) {
        addr[clanIndex] = entityList[i];
        timestamp[clanIndex] = clanStructs[entityList[i]].updateClanTimestamp;
        clanIndex++;
      }
    }
    return (addr, timestamp);
  }

  function isClanLeader(address entityAddress) public view returns (bool) {
    if (clanStructs[entityAddress].isEntity) {
      return clanToHighestOwnedAccount[clanStructs[entityAddress].clanId] == entityAddress;
    }
    return false;
  }

  function getChangeClanLeaderThreshold(uint256 clanId) public view returns (uint256 amount) {
    return (clanToHighestOwnedCount[clanId] * (changeLeaderPercentage + 100)) / 100;
  }

  function getCreateClanCost() public view returns (uint256 amount) {
    return clanIdTracker.current() * createClanCostMultiplier;
  }

  function getSwitchClanCost(uint256 clanId) public view returns (uint256 amount) {
    return switchClanCostBase + (getEntityClanCount(clanId) * switchClanCostMultiplier);
  }

  function updateEntityClan(address entityAddress, uint256 clanId) internal {
    require(clanId > 0 && clanId < clanIdTracker.current(), "invalid clan");

    if (isEntity(entityAddress)) {
      //switch clan flow
      if (clanStructs[entityAddress].clanId != clanId) {
        uint256 switchClanCost = getSwitchClanCost(clanId);
        if (switchClanCost > 0) {
          oxgnToken.burn(_msgSender(), switchClanCost);
        }

        emit SwitchClan(entityAddress, clanStructs[entityAddress].clanId, clanId, switchClanCost);

        clanStructs[entityAddress].clanId = clanId;
        clanStructs[entityAddress].updateClanTimestamp = block.timestamp;
      }
    } else {
      //create clan record flow
      clanStructs[entityAddress].clanId = clanId;
      clanStructs[entityAddress].updateClanTimestamp = block.timestamp;
      clanStructs[entityAddress].isEntity = true;
      entityList.push(entityAddress);
    }
  }

  /** STAKING */

  using EnumerableSet for EnumerableSet.AddressSet;
  using EnumerableSet for EnumerableSet.UintSet;

  struct StakedContract {
    bool active;
    IERC721 instance;
  }

  mapping(address => mapping(address => EnumerableSet.UintSet)) addressToStakedTokensSet;
  mapping(address => mapping(uint256 => address)) contractTokenIdToOwner;
  mapping(address => mapping(uint256 => uint256)) contractTokenIdToStakedTimestamp;
  mapping(address => StakedContract) public contracts;
  mapping(address => Counters.Counter) addressToNonce;

  EnumerableSet.AddressSet activeContracts;

  modifier ifContractExists(address contractAddress) {
    require(activeContracts.contains(contractAddress), "contract does not exists");
    _;
  }

  modifier incrementNonce() {
    addressToNonce[_msgSender()].increment();
    _;
  }

  function stake(
    address contractAddress,
    uint256[] memory tokenIds,
    uint256 clanId
  ) external incrementNonce nonReentrant {
    StakedContract storage _contract = contracts[contractAddress];
    require(_contract.active, "token contract is not active");
    if (isClanLeader(_msgSender())) {
      require(clanStructs[_msgSender()].clanId == clanId, "clan leader can't switch clans!");
    }

    updateEntityClan(_msgSender(), clanId);

    for (uint256 i = 0; i < tokenIds.length; i++) {
      uint256 tokenId = tokenIds[i];
      contractTokenIdToOwner[contractAddress][tokenId] = _msgSender();
      _contract.instance.transferFrom(_msgSender(), address(this), tokenId);
      addressToStakedTokensSet[contractAddress][_msgSender()].add(tokenId);
      contractTokenIdToStakedTimestamp[contractAddress][tokenId] = block.timestamp;

      emit Stake(tokenId, contractAddress, _msgSender(), clanId);
    }
  }

  function unstake(address contractAddress, uint256[] memory tokenIds) external incrementNonce ifContractExists(contractAddress) nonReentrant {
    StakedContract storage _contract = contracts[contractAddress];

    for (uint256 i = 0; i < tokenIds.length; i++) {
      uint256 tokenId = tokenIds[i];
      require(addressToStakedTokensSet[contractAddress][_msgSender()].contains(tokenId), "token is not staked");

      delete contractTokenIdToOwner[contractAddress][tokenId];
      _contract.instance.transferFrom(address(this), _msgSender(), tokenId);
      addressToStakedTokensSet[contractAddress][_msgSender()].remove(tokenId);
      delete contractTokenIdToStakedTimestamp[contractAddress][tokenId];

      emit Unstake(tokenId, contractAddress, _msgSender());
    }
  }

  function stakedTokensOfOwner(address contractAddress, address owner) public view ifContractExists(contractAddress) returns (uint256[] memory) {
    EnumerableSet.UintSet storage userTokens = addressToStakedTokensSet[contractAddress][owner];
    uint256[] memory tokenIds = new uint256[](userTokens.length());

    for (uint256 i = 0; i < userTokens.length(); i++) {
      tokenIds[i] = userTokens.at(i);
    }

    return tokenIds;
  }

  function claimableOfOwner(address contractAddress, address owner) public view ifContractExists(contractAddress) returns (uint256[] memory stakedTimestamps, uint256[] memory claimableTimestamps) {
    EnumerableSet.UintSet storage userTokens = addressToStakedTokensSet[contractAddress][owner];
    uint256[] memory stakedTs = new uint256[](userTokens.length());
    uint256[] memory claimableTs = new uint256[](userTokens.length());
    uint256 lastClaimTs = accountToLastClaim[owner].servertime;

    for (uint256 i = 0; i < userTokens.length(); i++) {
      uint256 tokenId = userTokens.at(i);
      stakedTs[i] = contractTokenIdToStakedTimestamp[contractAddress][tokenId];
      if (lastClaimTs > stakedTs[i]) {
        claimableTs[i] = lastClaimTs;
      } else {
        claimableTs[i] = stakedTs[i];
      }
    }

    return (stakedTs, claimableTs);
  }

  function stakedTokenTimestamp(address contractAddress, uint256 tokenId) public view ifContractExists(contractAddress) returns (uint256) {
    return contractTokenIdToStakedTimestamp[contractAddress][tokenId];
  }

  function addContract(address contractAddress) public onlyOwner {
    contracts[contractAddress].active = true;
    contracts[contractAddress].instance = IERC721(contractAddress);
    activeContracts.add(contractAddress);
  }

  function updateContract(address contractAddress, bool active) public onlyOwner ifContractExists(contractAddress) {
    require(activeContracts.contains(contractAddress), "contract not added");
    contracts[contractAddress].active = active;
  }

  function accountNonce(address accountAddress) public view returns (uint256) {
    return addressToNonce[accountAddress].current();
  }

  /** COLLAB.LAND */

  function balanceOf(address owner) public view returns (uint256) {
    EnumerableSet.UintSet storage userTokens = addressToStakedTokensSet[y2123Nft][owner];
    return userTokens.length();
  }

  function ownerOf(uint256 tokenId) public view returns (address) {
    return contractTokenIdToOwner[y2123Nft][tokenId];
  }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 20 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 20 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 6 of 20 : draft-EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 7 of 20 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 9 of 20 : IClans.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.11;

interface IClans {
  function stake(
    address contractAddress,
    uint256[] memory tokenIds,
    uint256 clanId
  ) external;

  function claim(
    uint256 oxgnTokenClaim,
    uint256 oxgnTokenDonate,
    uint256 clanTokenClaim,
    address benificiaryOfTax,
    uint256 oxgnTokenTax,
    uint256 timestamp,
    bytes calldata signature
  ) external;

  function mint(
    address recipient,
    uint256 id,
    uint256 amount
  ) external;

  function burn(uint256 id, uint256 amount) external;

  function getAccountsInClan(uint256 clanId) external view returns (address[] memory);

  function getClanRecords(uint256 clanId) external view returns (address[] memory entity, uint256[] memory updateClanTimestamp);

  function isClanLeader(address entityAddress) external view returns (bool);

  function stakedTokensOfOwner(address contractAddress, address owner) external view returns (uint256[] memory);

  function claimableOfOwner(address contractAddress, address owner) external view returns (uint256[] memory stakedTimestamps, uint256[] memory claimableTimestamps);
}

File 10 of 20 : IOxygen.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.11;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IOxygen is IERC20 {
  function mint(address to, uint256 amount) external;

  function reward(address to, uint256 amount) external;

  function donate(address to, uint256 amount) external;

  function tax(address to, uint256 amount) external;

  function burn(address from, uint256 amount) external;

  function transferFrom(
    address sender,
    address recipient,
    uint256 amount
  ) external returns (bool);
}

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

pragma solidity ^0.8.0;

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

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

File 12 of 20 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 13 of 20 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

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

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

File 14 of 20 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 15 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 17 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 18 of 20 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 20 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"address","name":"_oxgnToken","type":"address"},{"internalType":"address","name":"_y2123Nft","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldLeader","type":"address"},{"indexed":true,"internalType":"address","name":"newLeader","type":"address"},{"indexed":true,"internalType":"uint256","name":"clanId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"clanTokens","type":"uint256"}],"name":"ChangeLeader","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"oxgnTokenClaim","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oxgnTokenDonate","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"clanId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"clanTokenClaim","type":"uint256"},{"indexed":true,"internalType":"address","name":"benificiaryOfTax","type":"address"},{"indexed":false,"internalType":"uint256","name":"oxgnTokenTax","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"servertime","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"leader","type":"address"},{"indexed":true,"internalType":"uint256","name":"clanId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"colonyId","type":"uint256"}],"name":"ClanCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"recipientOrigin","type":"bool"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"clanId","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":true,"internalType":"uint256","name":"oldClanId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"newClanId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"switchClanCost","type":"uint256"}],"name":"SwitchClan","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"leader","type":"address"},{"indexed":true,"internalType":"uint256","name":"clanId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"colonyId","type":"uint256"}],"name":"SwitchColony","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"Unstake","type":"event"},{"inputs":[{"internalType":"address","name":"accountAddress","type":"address"}],"name":"accountNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountToLastClaim","outputs":[{"internalType":"uint256","name":"oxgnTokenClaim","type":"uint256"},{"internalType":"uint256","name":"oxgnTokenDonate","type":"uint256"},{"internalType":"uint256","name":"clanId","type":"uint256"},{"internalType":"uint256","name":"clanTokenClaim","type":"uint256"},{"internalType":"address","name":"benificiaryOfTax","type":"address"},{"internalType":"uint256","name":"oxgnTokenTax","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"servertime","type":"uint256"},{"internalType":"uint256","name":"blocktime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountTotalClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountTotalClanClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountTotalDonate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"addContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"changeLeaderPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"oxgnTokenClaim","type":"uint256"},{"internalType":"uint256","name":"oxgnTokenDonate","type":"uint256"},{"internalType":"uint256","name":"clanTokenClaim","type":"uint256"},{"internalType":"address","name":"benificiaryOfTax","type":"address"},{"internalType":"uint256","name":"oxgnTokenTax","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"claimableOfOwner","outputs":[{"internalType":"uint256[]","name":"stakedTimestamps","type":"uint256[]"},{"internalType":"uint256[]","name":"claimableTimestamps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clanIdTracker","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"clanStructs","outputs":[{"internalType":"uint256","name":"clanId","type":"uint256"},{"internalType":"uint256","name":"updateClanTimestamp","type":"uint256"},{"internalType":"bool","name":"isEntity","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"clanToColony","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"clanToHighestOwnedAccount","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"clanToHighestOwnedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"contracts","outputs":[{"internalType":"bool","name":"active","type":"bool"},{"internalType":"contract IERC721","name":"instance","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"colonyId","type":"uint256"}],"name":"createClan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"createClanCostMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creatorInitialClanTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"donationAccount","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"entityList","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"featureFlagCreateClan","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"featureFlagSwitchColony","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"clanId","type":"uint256"}],"name":"getAccountsInClan","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"clanId","type":"uint256"}],"name":"getChangeClanLeaderThreshold","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"colonyId","type":"uint256"}],"name":"getClanCountInColony","outputs":[{"internalType":"uint256","name":"clans","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"clanId","type":"uint256"}],"name":"getClanRecords","outputs":[{"internalType":"address[]","name":"entity","type":"address[]"},{"internalType":"uint256[]","name":"updateClanTimestamp","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"colonyId","type":"uint256"}],"name":"getClansInColony","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCreateClanCost","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"clanId","type":"uint256"}],"name":"getEntityClanCount","outputs":[{"internalType":"uint256","name":"entityCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEntityCount","outputs":[{"internalType":"uint256","name":"entityCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"clanId","type":"uint256"}],"name":"getSwitchClanCost","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entityAddress","type":"address"}],"name":"isClanLeader","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entityAddress","type":"address"}],"name":"isEntity","outputs":[{"internalType":"bool","name":"isIndeed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minClanInColony","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oxgnToken","outputs":[{"internalType":"contract IOxygen","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"oxgnTokenClaim","type":"uint256"},{"internalType":"uint256","name":"oxgnTokenDonate","type":"uint256"},{"internalType":"uint256","name":"clanTokenClaim","type":"uint256"},{"internalType":"address","name":"benificiaryOfTax","type":"address"},{"internalType":"uint256","name":"oxgnTokenTax","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"recoverAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"serverToBlockTimeDelta","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVal","type":"uint256"}],"name":"setChangeLeaderPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVal","type":"uint256"}],"name":"setCreateClanCostMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVal","type":"uint256"}],"name":"setCreatorInitialClanTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setDonationAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVal","type":"uint256"}],"name":"setMinClanInColony","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVal","type":"uint256"}],"name":"setServerToBlockTimeDelta","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVal","type":"uint256"}],"name":"setSwitchClanCostBase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVal","type":"uint256"}],"name":"setSwitchClanCostMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVal","type":"uint256"}],"name":"setSwitchColonyCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oxgnToken","type":"address"}],"name":"setTokenContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_y2123Nft","type":"address"}],"name":"setY2123Nft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"member","type":"address"},{"internalType":"uint256","name":"clanId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"shouldChangeLeader","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"clanId","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stakedTokenTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"stakedTokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"switchClanCostBase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"switchClanCostMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"clanId","type":"uint256"},{"internalType":"uint256","name":"colonyId","type":"uint256"}],"name":"switchColony","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"switchColonyCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleFeatureFlagCreateClan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleFeatureFlagSwitchColony","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"bool","name":"active","type":"bool"}],"name":"updateContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"clanId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawForDonation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"y2123Nft","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6101406040526007805461ffff191660019081179091556064600855600a600981905568056bc75e2d63100000905569021e19e0c9bab2400000600b556000600c819055600d55600e55603c600f553480156200005b57600080fd5b5060405162006b3538038062006b358339810160408190526200007e9162001018565b60405180604001604052806005815260200164793231323360d81b815250604051806040016040528060038152602001620312e360ec1b81525084620000ca81620001f060201b60201c565b50815160208084019190912082519183019190912060e08290526101008190524660a0527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6200011c81848462000209565b6080523060c05261012052506200013f9250620001399150503390565b62000253565b600160045582516200015990600590602086019062000edd565b506200016533620002a5565b620001708262000360565b6200017b81620003cd565b601180546001600160a01b0319166001600160a01b038316179055620001ae60066200046a602090811b6200349517901c565b620001ba600162000473565b620001c6600262000473565b620001d2600362000473565b6007805460ff19169055620001e7306200079a565b50505062001329565b80516200020590600290602084019062000edd565b5050565b6040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090505b9392505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6003546001600160a01b03163314620002f45760405162461bcd60e51b8152602060048201819052602482015260008051602062006b1583398151915260448201526064015b60405180910390fd5b6001600160a01b0381166200033c5760405162461bcd60e51b815260206004820152600d60248201526c656d707479206164647265737360981b6044820152606401620002eb565b6001600160a01b03166000908152601360205260409020805460ff19166001179055565b6003546001600160a01b03163314620003ab5760405162461bcd60e51b8152602060048201819052602482015260008051602062006b158339815191526044820152606401620002eb565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03163314620004185760405162461bcd60e51b8152602060048201819052602482015260008051602062006b158339815191526044820152606401620002eb565b6001600160a01b038116600081815260216020908152604090912080546101009093026001600160a81b031990931692909217600117909155620002059060239083906200349e62000807821b17901c565b80546001019055565b60026004541415620004c85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401620002eb565b600260045560075460ff16620005215760405162461bcd60e51b815260206004820152601360248201527f66656174757265206e6f7420656e61626c6564000000000000000000000000006044820152606401620002eb565b600081118015620005325750600481105b620005805760405162461bcd60e51b815260206004820152601460248201527f6f6e6c79203320636f6c6f6e69657320657665720000000000000000000000006044820152606401620002eb565b6200058b3362000827565b15620005e45760405162461bcd60e51b815260206004820152602160248201527f636c616e206c65616465722063616e277420637265617465206e657720636c616044820152603760f91b6064820152608401620002eb565b3360009081526013602052604090205460ff16620006e057336000908152601c602052604090206002015460ff16620006545760405162461bcd60e51b815260206004820152601160248201527036bab9ba1031329034b710309031b630b760791b6044820152606401620002eb565b60006200066062000883565b90508015620006de576012546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b158015620006c457600080fd5b505af1158015620006d9573d6000803e3d6000fd5b505050505b505b6000620006f96006620008b060201b620034b31760201c565b90508160166000838152602001908152602001600020819055506200072a60066200046a60201b620034951760201c565b6040518290829033907f098df9d435f5abb718c2804ce7d7b6550ff16ebbabc96ba0da01d4860e2c4b6590600090a4336000818152601c602090815260408083208581554260019091015560085481519283019091529181526200079192918491620008b4565b50506001600455565b6003546001600160a01b03163314620007e55760405162461bcd60e51b8152602060048201819052602482015260008051602062006b158339815191526044820152606401620002eb565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b60006200081e836001600160a01b038416620009d7565b90505b92915050565b6001600160a01b0381166000908152601c602052604081206002015460ff16156200087b57506001600160a01b039081166000818152601c6020908152604080832054835260159091529020549091161490565b506000919050565b6000600a546200089f6006620008b060201b620034b31760201c565b620008ab9190620010f6565b905090565b5490565b6001600160a01b038416620009165760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401620002eb565b336200093c816000876200092a8862000a29565b620009358862000a29565b8762000a77565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906200096e90849062001118565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4620009d08160008787878762000bbe565b5050505050565b600081815260018301602052604081205462000a205750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000821565b50600062000821565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811062000a665762000a6662001133565b602090810291909101015292915050565b60005b835181101562000b9a57600084828151811062000a9b5762000a9b62001133565b60200260200101519050600084838151811062000abc5762000abc62001133565b602002602001015162000ad6888462000d9460201b60201c565b62000ae2919062001118565b905062000af187838362000e28565b1562000b84576000828152601560209081526040918290205491518381526001600160a01b03928316928592908b169184917fe5de49455cbc88f3dd9d0d5cb562cc7e6513716e573a5be2023a8b3a42a733ee910160405180910390a45060008281526014602090815260408083208490556015909152902080546001600160a01b0319166001600160a01b0389161790555b50508062000b929062001149565b905062000a7a565b5062000bb686868686868662000bb660201b620034b71760201c565b505050505050565b62000bdd846001600160a01b031662000e9260201b620034bf1760201c565b1562000bb65760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619062000c19908990899088908890889060040162001195565b6020604051808303816000875af192505050801562000c57575060408051601f3d908101601f1916820190925262000c5491810190620011dc565b60015b62000d185762000c6662001208565b806308c379a0141562000ca7575062000c7e62001225565b8062000c8b575062000ca9565b8060405162461bcd60e51b8152600401620002eb9190620012b4565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401620002eb565b6001600160e01b0319811663f23a6e6160e01b1462000d8b5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401620002eb565b50505050505050565b60006001600160a01b03831662000e025760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401620002eb565b506000908152602081815260408083206001600160a01b03949094168352929052205490565b6000828152601560205260408120546001600160a01b038581169116141562000e54575060006200024c565b6001600160a01b0384166000908152601c6020526040902054831462000e7d575060006200024c565b62000e888362000ea1565b9091119392505050565b6001600160a01b03163b151590565b60006064600954606462000eb6919062001118565b60008481526014602052604090205462000ed19190620010f6565b620008219190620012c9565b82805462000eeb90620012ec565b90600052602060002090601f01602090048101928262000f0f576000855562000f5a565b82601f1062000f2a57805160ff191683800117855562000f5a565b8280016001018555821562000f5a579182015b8281111562000f5a57825182559160200191906001019062000f3d565b5062000f6892915062000f6c565b5090565b5b8082111562000f68576000815560010162000f6d565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b038111828210171562000fc15762000fc162000f83565b6040525050565b60005b8381101562000fe557818101518382015260200162000fcb565b8381111562000ff5576000848401525b50505050565b80516001600160a01b03811681146200101357600080fd5b919050565b6000806000606084860312156200102e57600080fd5b83516001600160401b03808211156200104657600080fd5b818601915086601f8301126200105b57600080fd5b81518181111562001070576200107062000f83565b60405191506200108b601f8201601f19166020018362000f99565b808252876020828501011115620010a157600080fd5b620010b481602084016020860162000fc8565b509350620010c790506020850162000ffb565b9150620010d76040850162000ffb565b90509250925092565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615620011135762001113620010e0565b500290565b600082198211156200112e576200112e620010e0565b500190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415620011605762001160620010e0565b5060010190565b600081518084526200118181602086016020860162000fc8565b601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090620011d19083018462001167565b979650505050505050565b600060208284031215620011ef57600080fd5b81516001600160e01b0319811681146200024c57600080fd5b600060033d1115620012225760046000803e5060005160e01c5b90565b600060443d1015620012345790565b6040516003193d81016004833e81513d6001600160401b0380831160248401831017156200126457505050505090565b82850191508151818111156200127d5750505050505090565b843d8701016020828501011115620012985750505050505090565b620012a96020828601018762000f99565b509095945050505050565b6020815260006200081e602083018462001167565b600082620012e757634e487b7160e01b600052601260045260246000fd5b500490565b600181811c908216806200130157607f821691505b602082108114156200132357634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610100516101205161579c62001379600039600061479c015260006147eb015260006147c60152600061471f0152600061474901526000614773015261579c6000f3fe608060405234801561001057600080fd5b506004361061048a5760003560e01c8063715018a611610262578063b390c0ab11610151578063db4b9b6c116100ce578063f212d51011610092578063f212d51014610bee578063f242432a14610c01578063f2fde38b14610c14578063f327a62c14610c27578063fbbbec0a14610c2f578063fbe5df7414610c4257600080fd5b8063db4b9b6c14610b6c578063df79823514610b75578063e407724414610b88578063e985e9c514610b91578063eace48cb14610bcd57600080fd5b8063c36ace5a11610115578063c36ace5a14610af3578063cb1ca66314610b13578063d05df8d714610b26578063d824559014610b39578063d828d51614610b4c57600080fd5b8063b390c0ab14610aa8578063b948843014610abb578063bbcd5bbe14610ac4578063bef704ff14610ad7578063c004d49814610aea57600080fd5b8063a2e3d9e3116101df578063a971ea06116101a3578063a971ea0614610a2f578063abaf764814610a42578063ad0d052414610a55578063ae910f5f14610a75578063af1d5f0914610a9557600080fd5b8063a2e3d9e314610930578063a47f3b701461093a578063a491445b1461094d578063a686eb5f1461096d578063a7757c9c1461098057600080fd5b80638933fb85116102265780638933fb85146108bd5780638da5cb5b146108d05780639dd1e9d0146108e1578063a0becea01461090a578063a22cb4651461091d57600080fd5b8063715018a61461082d57806371c10cae14610835578063754b069f14610884578063772638741461089757806380ee4460146108aa57600080fd5b80634b56a7071161037e578063620dee42116102fb5780636a85a2fb116102bf5780636a85a2fb146107d95780636cbc168c146107ec57806370480275146107ff57806370a082311461081257806370fde7e01461082557600080fd5b8063620dee421461070f5780636352211e14610718578063640906151461075457806367a46f731461076757806369dc9ff31461078757600080fd5b806355f804b31161034257806355f804b3146106bb5780635d1b45b5146106ce5780635dbe4756146106d65780635f539d69146106e95780636154ec1d146106fc57600080fd5b80634b56a7071461065f5780634e1273f41461067257806354fa7b6e14610692578063552c5b3c146106a557806355c0beaa146106b257600080fd5b806324d16a1c1161040c57806336d814ff116103d057806336d814ff146105f35780633b091756146106145780633b6e8919146106265780633ddb9e8514610639578063404cbffb1461064c57600080fd5b806324d16a1c1461058657806329d36a5b1461058f5780632bc61549146105a25780632eb2c2d6146105cd578063369e0e09146105e057600080fd5b80631324b10f116104535780631324b10f1461052057806314887c58146105295780631506a40c14610558578063156e29f6146105605780631785f53c1461057357600080fd5b8062fdd58e1461048f57806301ffc9a7146104b5578063046dc166146104d85780630e89341c146104ed578063106cffe21461050d575b600080fd5b6104a261049d366004614a17565b610c55565b6040519081526020015b60405180910390f35b6104c86104c3366004614a57565b610cef565b60405190151581526020016104ac565b6104eb6104e6366004614a74565b610d3f565b005b6105006104fb366004614a8f565b610d8b565b6040516104ac9190614b04565b6104a261051b366004614a74565b610e64565b6104a260085481565b6104c8610537366004614a74565b6001600160a01b03166000908152601c602052604090206002015460ff1690565b6104eb610e82565b6104eb61056e366004614b17565b610ec0565b6104eb610581366004614a74565b610f76565b6104a2600b5481565b6104eb61059d366004614a8f565b611007565b6105b56105b0366004614b8b565b611036565b6040516001600160a01b0390911681526020016104ac565b6104eb6105db366004614d80565b611096565b6104a26105ee366004614a8f565b61112d565b610606610601366004614a8f565b6111a5565b6040516104ac929190614e9d565b6007546104c890610100900460ff1681565b6104eb610634366004614ecb565b611380565b6011546105b5906001600160a01b031681565b6105b561065a366004614a8f565b61167f565b6104eb61066d366004614a8f565b6116a9565b610685610680366004614eed565b6116d8565b6040516104ac9190614fb7565b6104eb6106a0366004614fca565b611801565b6007546104c89060ff1681565b6104a2600a5481565b6104eb6106c9366004615020565b611ae1565b601d546104a2565b6104eb6106e4366004615068565b611b22565b6104eb6106f7366004614a74565b611db4565b6104a261070a366004614a8f565b611e1e565b6104a2600c5481565b6105b5610726366004614a8f565b6011546001600160a01b039081166000908152601f6020908152604080832094835293905291909120541690565b6104eb610762366004614a8f565b611e90565b6104a2610775366004614a8f565b60146020526000908152604090205481565b6107ba610795366004614a74565b60216020526000908152604090205460ff81169061010090046001600160a01b031682565b6040805192151583526001600160a01b039091166020830152016104ac565b6010546105b5906001600160a01b031681565b6104eb6107fa366004614a8f565b611ebf565b6104eb61080d366004614a74565b611eee565b6104a2610820366004614a74565b611f82565b6104a2611fbc565b6104eb611fd9565b610867610843366004614a74565b601c6020526000908152604090208054600182015460029092015490919060ff1683565b6040805193845260208401929092521515908201526060016104ac565b6106856108923660046150ab565b61200f565b6104c86108a5366004614a74565b612103565b6012546105b5906001600160a01b031681565b6104eb6108cb366004614a74565b61215e565b6003546001600160a01b03166105b5565b6105b56108ef366004614a8f565b6015602052600090815260409020546001600160a01b031681565b6104c8610918366004614b17565b6121aa565b6104eb61092b3660046150ec565b61220e565b6006546104a29081565b6104a2610948366004614a8f565b612219565b61096061095b366004614a8f565b61223e565b6040516104ac9190615123565b6104a261097b366004614a17565b612369565b6109e361098e366004614a74565b60186020526000908152604090208054600182015460028301546003840154600485015460058601546006870154600788015460089098015496979596949593946001600160a01b0390931693919290919089565b60408051998a5260208a01989098529688019590955260608701939093526001600160a01b03909116608086015260a085015260c084015260e0830152610100820152610120016104ac565b6104eb610a3d3660046150ec565b6123bb565b6104eb610a50366004614a8f565b612485565b6104a2610a63366004614a74565b60196020526000908152604090205481565b6104a2610a83366004614a8f565b60166020526000908152604090205481565b6104eb610aa3366004614a8f565b612702565b6104eb610ab6366004614ecb565b612863565b6104a2600e5481565b6104eb610ad2366004614a74565b612949565b6104eb610ae5366004614a8f565b612995565b6104a2600d5481565b6104a2610b01366004614a74565b601a6020526000908152604090205481565b6104eb610b21366004614a8f565b6129c4565b6104eb610b34366004615136565b612a3a565b6104eb610b47366004614a8f565b612f5c565b6104a2610b5a366004614a74565b601b6020526000908152604090205481565b6104a2600f5481565b6104eb610b83366004614a8f565b612f8b565b6104a260095481565b6104c8610b9f3660046150ab565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b610be0610bdb3660046150ab565b612fba565b6040516104ac9291906151b9565b6104eb610bfc366004614a74565b6131c7565b6104eb610c0f3660046151cc565b613213565b6104eb610c22366004614a74565b61329a565b6104eb613335565b610685610c3d366004614a8f565b61337c565b6104a2610c50366004614a8f565b61345f565b60006001600160a01b038316610cc65760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b1480610d2057506001600160e01b031982166303a24d0760e21b145b80610ce957506301ffc9a760e01b6001600160e01b0319831614610ce9565b6003546001600160a01b03163314610d695760405162461bcd60e51b8152600401610cbd90615230565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b6060600060058054610d9c90615265565b905011610e335760058054610db090615265565b80601f0160208091040260200160405190810160405280929190818152602001828054610ddc90615265565b8015610e295780601f10610dfe57610100808354040283529160200191610e29565b820191906000526020600020905b815481529060010190602001808311610e0c57829003601f168201915b5050505050610ce9565b6005610e3e836134ce565b604051602001610e4f9291906152bc565b60405160208183030381529060405292915050565b6001600160a01b038116600090815260226020526040812054610ce9565b6003546001600160a01b03163314610eac5760405162461bcd60e51b8152600401610cbd90615230565b6007805460ff19811660ff90911615179055565b3360009081526013602052604090205460ff16610f0e5760405162461bcd60e51b815260206004820152600c60248201526b41646d696e73206f6e6c792160a01b6044820152606401610cbd565b604080518281526001600160a01b0385163281146020830152849290917f69dff97591dfad68d690a0deccd16ef2aaf0b65205732bf647a9e5b129b77099910160405180910390a3610f71838383604051806020016040528060008152506135d3565b505050565b6003546001600160a01b03163314610fa05760405162461bcd60e51b8152600401610cbd90615230565b6001600160a01b038116610fe65760405162461bcd60e51b815260206004820152600d60248201526c656d707479206164647265737360981b6044820152606401610cbd565b6001600160a01b03166000908152601360205260409020805460ff19169055565b6003546001600160a01b031633146110315760405162461bcd60e51b8152600401610cbd90615230565b600855565b600061108761104b8c8c8c8c8c8c8c8c6136e3565b84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061378692505050565b9b9a5050505050505050505050565b6001600160a01b0385163314806110b257506110b28533610b9f565b6111195760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610cbd565b61112685858585856137a2565b5050505050565b6000808211801561113e5750600482105b61115a5760405162461bcd60e51b8152600401610cbd9061535a565b6000805b60065481101561119e5760008181526016602052604090205484141561118c57816111888161539e565b9250505b806111968161539e565b91505061115e565b5092915050565b60608060006111b384611e1e565b90506000816001600160401b038111156111cf576111cf614c2d565b6040519080825280602002602001820160405280156111f8578160200160208202803683370190505b5090506000826001600160401b0381111561121557611215614c2d565b60405190808252806020026020018201604052801561123e578160200160208202803683370190505b5090506000805b601d548110156113735787601c6000601d8481548110611267576112676153b9565b60009182526020808320909101546001600160a01b03168352820192909252604001902054141561136157601d81815481106112a5576112a56153b9565b9060005260206000200160009054906101000a90046001600160a01b03168483815181106112d5576112d56153b9565b60200260200101906001600160a01b031690816001600160a01b031681525050601c6000601d838154811061130c5761130c6153b9565b60009182526020808320909101546001600160a01b031683528201929092526040019020600101548351849084908110611348576113486153b9565b60209081029190910101528161135d8161539e565b9250505b8061136b8161539e565b915050611245565b5091969095509350505050565b600260045414156113a35760405162461bcd60e51b8152600401610cbd906153cf565b6002600455600754610100900460ff166113f55760405162461bcd60e51b81526020600482015260136024820152721999585d1d5c99481b9bdd08195b98589b1959606a1b6044820152606401610cbd565b6000811180156114055750600481105b6114215760405162461bcd60e51b8152600401610cbd9061535a565b600082118015611432575060065482105b61146d5760405162461bcd60e51b815260206004820152600c60248201526b34b73b30b634b21031b630b760a11b6044820152606401610cbd565b6000828152601660205260409020548114156114d75760405162461bcd60e51b815260206004820152602360248201527f636c616e20616c72656164792062656c6f6e677320746f207468697320636f6c6044820152626f6e7960e81b6064820152608401610cbd565b600082815260166020526040812054906114f08261112d565b9050600e5481116115535760405162461bcd60e51b815260206004820152602760248201527f636f6c6f6e79206e6565647320746f2068617665206174206c6561737420736f60448201526636b29031b630b760c91b6064820152608401610cbd565b3360009081526013602052604090205460ff16611637576000848152601560205260409020546001600160a01b031633146115c35760405162461bcd60e51b815260206004820152601060248201526f636c616e206c6561646572206f6e6c7960801b6044820152606401610cbd565b6012546001600160a01b0316639dc29fac33600b546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561161e57600080fd5b505af1158015611632573d6000803e3d6000fd5b505050505b6040518390859033907f11e18d222af18722d0ce2b9363cf0777a37b4de62d4bac0494bf9a9e9137138890600090a45050600091825260166020526040909120556001600455565b601d818154811061168f57600080fd5b6000918252602090912001546001600160a01b0316905081565b6003546001600160a01b031633146116d35760405162461bcd60e51b8152600401610cbd90615230565b600e55565b6060815183511461173d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610cbd565b600083516001600160401b0381111561175857611758614c2d565b604051908082528060200260200182016040528015611781578160200160208202803683370190505b50905060005b84518110156117f9576117cc8582815181106117a5576117a56153b9565b60200260200101518583815181106117bf576117bf6153b9565b6020026020010151610c55565b8282815181106117de576117de6153b9565b60209081029190910101526117f28161539e565b9050611787565b509392505050565b61183360226000335b6001600160a01b03166001600160a01b0316815260200190815260200160002080546001019055565b600260045414156118565760405162461bcd60e51b8152600401610cbd906153cf565b60026004556001600160a01b0383166000908152602160205260409020805460ff166118c45760405162461bcd60e51b815260206004820152601c60248201527f746f6b656e20636f6e7472616374206973206e6f7420616374697665000000006044820152606401610cbd565b6118cd33612103565b1561193057336000908152601c602052604090205482146119305760405162461bcd60e51b815260206004820152601f60248201527f636c616e206c65616465722063616e27742073776974636820636c616e7321006044820152606401610cbd565b61193a3383613985565b60005b8351811015611ad557600084828151811061195a5761195a6153b9565b6020026020010151905061196b3390565b6001600160a01b038781166000908152601f60209081526040808320868452909152902080546001600160a01b0319169282169290921790915583546101009004166323b872dd336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401600060405180830381600087803b158015611a0157600080fd5b505af1158015611a15573d6000803e3d6000fd5b5050506001600160a01b0387166000908152601e60205260408120611a5d92508391611a3e3390565b6001600160a01b03168152602081019190915260400160002090613b88565b506001600160a01b03861660008181526020808052604080832085845282529182902042905581518481529081019290925233828201525185917ff7373f56c201647feae85a62d3cf56286ed3a43d20c5eb7f9883d6ea690ef7c0919081900360600190a25080611acd8161539e565b91505061193d565b50506001600455505050565b6003546001600160a01b03163314611b0b5760405162461bcd60e51b8152600401610cbd90615230565b8051611b1e906005906020840190614962565b5050565b611b2f602260003361180a565b81611b3b602382613b94565b611b575760405162461bcd60e51b8152600401610cbd90615406565b60026004541415611b7a5760405162461bcd60e51b8152600401610cbd906153cf565b60026004556001600160a01b0383166000908152602160205260408120905b8351811015611ad5576000848281518110611bb657611bb66153b9565b60200260200101519050611c1181601e6000896001600160a01b03166001600160a01b031681526020019081526020016000206000611bf23390565b6001600160a01b03168152602081019190915260400160002090613bb6565b611c535760405162461bcd60e51b81526020600482015260136024820152721d1bdad95b881a5cc81b9bdd081cdd185ad959606a1b6044820152606401610cbd565b6001600160a01b038681166000908152601f60209081526040808320858452909152902080546001600160a01b031916905583546101009004166323b872dd30336040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260448101849052606401600060405180830381600087803b158015611ce357600080fd5b505af1158015611cf7573d6000803e3d6000fd5b5050506001600160a01b0387166000908152601e60205260408120611d3f92508391611d203390565b6001600160a01b03168152602081019190915260400160002090613bce565b506001600160a01b0386166000818152602080805260408083208584528252808320929092558151848152908101929092523382820152517fda7b3993b5962cc80555cf305cbd92948048874e1a76a22272bdaaff09baeb659181900360600190a15080611dac8161539e565b915050611b99565b6003546001600160a01b03163314611dde5760405162461bcd60e51b8152600401610cbd90615230565b6001600160a01b038116600081815260216020526040902080546101009092026001600160a81b0319909216919091176001179055611b1e60238261349e565b600080805b601d5481101561119e5783601c6000601d8481548110611e4557611e456153b9565b60009182526020808320909101546001600160a01b031683528201929092526040019020541415611e7e5781611e7a8161539e565b9250505b80611e888161539e565b915050611e23565b6003546001600160a01b03163314611eba5760405162461bcd60e51b8152600401610cbd90615230565b600d55565b6003546001600160a01b03163314611ee95760405162461bcd60e51b8152600401610cbd90615230565b600b55565b6003546001600160a01b03163314611f185760405162461bcd60e51b8152600401610cbd90615230565b6001600160a01b038116611f5e5760405162461bcd60e51b815260206004820152600d60248201526c656d707479206164647265737360981b6044820152606401610cbd565b6001600160a01b03166000908152601360205260409020805460ff19166001179055565b6011546001600160a01b039081166000908152601e602090815260408083209385168352929052908120611fb581613bda565b9392505050565b6000600a54611fca60065490565b611fd4919061543d565b905090565b6003546001600160a01b031633146120035760405162461bcd60e51b8152600401610cbd90615230565b61200d6000613be4565b565b60608261201d602382613b94565b6120395760405162461bcd60e51b8152600401610cbd90615406565b6001600160a01b038085166000908152601e6020908152604080832093871683529290529081209061206a82613bda565b6001600160401b0381111561208157612081614c2d565b6040519080825280602002602001820160405280156120aa578160200160208202803683370190505b50905060005b6120b983613bda565b8110156120f9576120ca8382613c36565b8282815181106120dc576120dc6153b9565b6020908102919091010152806120f18161539e565b9150506120b0565b5095945050505050565b6001600160a01b0381166000908152601c602052604081206002015460ff161561215657506001600160a01b039081166000818152601c6020908152604080832054835260159091529020549091161490565b506000919050565b6003546001600160a01b031633146121885760405162461bcd60e51b8152600401610cbd90615230565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152601560205260408120546001600160a01b03858116911614156121d457506000611fb5565b6001600160a01b0384166000908152601c602052604090205483146121fb57506000611fb5565b6122048361345f565b9091119392505050565b611b1e338383613c42565b6000600d5461222783611e1e565b612231919061543d565b600c54610ce9919061545c565b6060600061224b83611e1e565b90506000816001600160401b0381111561226757612267614c2d565b604051908082528060200260200182016040528015612290578160200160208202803683370190505b5090506000805b601d5481101561235f5785601c6000601d84815481106122b9576122b96153b9565b60009182526020808320909101546001600160a01b03168352820192909252604001902054141561234d57601d81815481106122f7576122f76153b9565b9060005260206000200160009054906101000a90046001600160a01b0316838381518110612327576123276153b9565b6001600160a01b0390921660209283029190910190910152816123498161539e565b9250505b806123578161539e565b915050612297565b5090949350505050565b600082612377602382613b94565b6123935760405162461bcd60e51b8152600401610cbd90615406565b50506001600160a01b0391909116600090815260208080526040808320938352929052205490565b6003546001600160a01b031633146123e55760405162461bcd60e51b8152600401610cbd90615230565b816123f1602382613b94565b61240d5760405162461bcd60e51b8152600401610cbd90615406565b612418602384613b94565b6124595760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081b9bdd08185919195960721b6044820152606401610cbd565b506001600160a01b03919091166000908152602160205260409020805460ff1916911515919091179055565b600260045414156124a85760405162461bcd60e51b8152600401610cbd906153cf565b600260045560075460ff166124f55760405162461bcd60e51b81526020600482015260136024820152721999585d1d5c99481b9bdd08195b98589b1959606a1b6044820152606401610cbd565b6000811180156125055750600481105b6125215760405162461bcd60e51b8152600401610cbd9061535a565b61252a33612103565b156125815760405162461bcd60e51b815260206004820152602160248201527f636c616e206c65616465722063616e277420637265617465206e657720636c616044820152603760f91b6064820152608401610cbd565b3360009081526013602052604090205460ff16612668576125a133610537565b6125e15760405162461bcd60e51b815260206004820152601160248201527036bab9ba1031329034b710309031b630b760791b6044820152606401610cbd565b60006125eb611fbc565b90508015612666576012546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561264d57600080fd5b505af1158015612661573d6000803e3d6000fd5b505050505b505b600061267360065490565b60008181526016602052604090208390559050612694600680546001019055565b6040518290829033907f098df9d435f5abb718c2804ce7d7b6550ff16ebbabc96ba0da01d4860e2c4b6590600090a4336000818152601c602090815260408083208581554260019091015560085481519283019091529181526126f9929184916135d3565b50506001600455565b6003546001600160a01b0316331461272c5760405162461bcd60e51b8152600401610cbd90615230565b6012546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612774573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127989190615474565b8111156127e05760405162461bcd60e51b8152602060048201526016602482015275616d6f756e7420657863656564732062616c616e636560501b6044820152606401610cbd565b6012546001600160a01b031663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af115801561283f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1e919061548d565b3360009081526013602052604090205460ff166128b15760405162461bcd60e51b815260206004820152600c60248201526b41646d696e73206f6e6c792160a01b6044820152606401610cbd565b6128bb3283610c55565b6129075760405162461bcd60e51b815260206004820152601760248201527f4f6f707320796f7520646f6e2774206f776e20746861740000000000000000006044820152606401610cbd565b604051818152829032907f23ff0e75edf108e3d0392d92e13e8c8a868ef19001bd49f9e94876dc46dff87f9060200160405180910390a3611b1e328383613d23565b6003546001600160a01b031633146129735760405162461bcd60e51b8152600401610cbd90615230565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031633146129bf5760405162461bcd60e51b8152600401610cbd90615230565b600c55565b6003546001600160a01b031633146129ee5760405162461bcd60e51b8152600401610cbd90615230565b600060095411612a355760405162461bcd60e51b815260206004820152601260248201527156616c7565206c6f776572207468656e203160701b6044820152606401610cbd565b600955565b60026004541415612a5d5760405162461bcd60e51b8152600401610cbd906153cf565b600260045587612a9d5760405162461bcd60e51b815260206004820152600b60248201526a656d70747920636c61696d60a81b6044820152606401610cbd565b612ab7338989898989612aaf33610e64565b8a8a8a611036565b6017546001600160a01b03908116911614612b085760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b6044820152606401610cbd565b600f5415612b5d57600f54612b1d90426154aa565b8311612b5d5760405162461bcd60e51b815260206004820152600f60248201526e1cd95cdcda5bdb88195e1c1a5c9959608a1b6044820152606401610cbd565b6012546001600160a01b03166321670f2233612b818b670de0b6b3a764000061543d565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015612bc757600080fd5b505af1158015612bdb573d6000803e3d6000fd5b50505050612bed6022600061180a3390565b336000818152601c6020908152604091829020548251610120810184528c81529182018b9052918101829052606081018990526001600160a01b038816608082015260a08101879052909160c0820190612c4690610e64565b81526020018581526020014281525060186000612c603390565b6001600160a01b03908116825260208083019390935260409182016000908120855181558585015160018201558584015160028201556060860151600382015560808601516004820180546001600160a01b031916919094161790925560a0850151600583015560c0850151600683015560e08501516007830155610100909401516008909101553383526019909152902054612cfe908a9061545c565b336000908152601960205260409020558715612de5576012546010546001600160a01b039182169163e69d849d9116612d3f8b670de0b6b3a764000061543d565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015612d8557600080fd5b505af1158015612d99573d6000803e3d6000fd5b5050505087601a6000612da93390565b6001600160a01b03166001600160a01b0316815260200190815260200160002054612dd4919061545c565b336000908152601a60205260409020555b6001600160a01b03861615801590612dfd5750600085115b15612e85576012546001600160a01b031663d9b5778987612e2688670de0b6b3a764000061543d565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015612e6c57600080fd5b505af1158015612e80573d6000803e3d6000fd5b505050505b600081118015612e96575060065481105b8015612ea25750600087115b15612eee57612ec2338289604051806020016040528060008152506135d3565b336000908152601b6020526040902054612edd90889061545c565b336000908152601b60205260409020555b604080518a8152602081018a9052808201899052606081018790526080810186905290516001600160a01b03881691839133917ffdeb11e92ba41fbc0a90341ff28c438012e6a3e840c45400a9ada007a4f2d33c919081900360a00190a45050600160045550505050505050565b6003546001600160a01b03163314612f865760405162461bcd60e51b8152600401610cbd90615230565b600f55565b6003546001600160a01b03163314612fb55760405162461bcd60e51b8152600401610cbd90615230565b600a55565b60608083612fc9602382613b94565b612fe55760405162461bcd60e51b8152600401610cbd90615406565b6001600160a01b038086166000908152601e6020908152604080832093881683529290529081209061301682613bda565b6001600160401b0381111561302d5761302d614c2d565b604051908082528060200260200182016040528015613056578160200160208202803683370190505b509050600061306483613bda565b6001600160401b0381111561307b5761307b614c2d565b6040519080825280602002602001820160405280156130a4578160200160208202803683370190505b506001600160a01b0388166000908152601860205260408120600701549192505b6130ce85613bda565b8110156131b85760006130e18683613c36565b6001600160a01b038c1660009081526020808052604080832084845290915290205486519192509086908490811061311b5761311b6153b9565b602002602001018181525050848281518110613139576131396153b9565b602002602001015183111561316c578284838151811061315b5761315b6153b9565b6020026020010181815250506131a5565b84828151811061317e5761317e6153b9565b6020026020010151848381518110613198576131986153b9565b6020026020010181815250505b50806131b08161539e565b9150506130c5565b50919890975095505050505050565b6003546001600160a01b031633146131f15760405162461bcd60e51b8152600401610cbd90615230565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03851633148061322f575061322f8533610b9f565b61328d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610cbd565b6111268585858585613e9c565b6003546001600160a01b031633146132c45760405162461bcd60e51b8152600401610cbd90615230565b6001600160a01b0381166133295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cbd565b61333281613be4565b50565b6003546001600160a01b0316331461335f5760405162461bcd60e51b8152600401610cbd90615230565b6007805461ff001981166101009182900460ff1615909102179055565b606060008211801561338e5750600482105b6133aa5760405162461bcd60e51b8152600401610cbd9061535a565b60006133b58361112d565b90506000816001600160401b038111156133d1576133d1614c2d565b6040519080825280602002602001820160405280156133fa578160200160208202803683370190505b5090506000805b60065481101561235f5760008181526016602052604090205486141561344d5780838381518110613434576134346153b9565b6020908102919091010152816134498161539e565b9250505b806134578161539e565b915050613401565b600060646009546064613472919061545c565b60008481526014602052604090205461348b919061543d565b610ce991906154d7565b80546001019055565b6000611fb5836001600160a01b038416613fb9565b5490565b505050505050565b6001600160a01b03163b151590565b6060816134f25750506040805180820190915260018152600360fc1b602082015290565b8160005b811561351c57806135068161539e565b91506135159050600a836154d7565b91506134f6565b6000816001600160401b0381111561353657613536614c2d565b6040519080825280601f01601f191660200182016040528015613560576020820181803683370190505b5090505b84156135cb576135756001836154aa565b9150613582600a866154eb565b61358d90603061545c565b60f81b8183815181106135a2576135a26153b9565b60200101906001600160f81b031916908160001a9053506135c4600a866154d7565b9450613564565b949350505050565b6001600160a01b0384166136335760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610cbd565b336136538160008761364488614008565b61364d88614008565b87614053565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061368390849061545c565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461112681600087878787614165565b604080517f90b2ccba250cd548893316a97144625f4b7fdd7df41e4de2cf98a6ef077987b960208201526001600160a01b03808b1692820192909252606081018990526080810188905260a0810187905290851660c082015260e08101849052610100810183905261012081018290526000906137799061014001604051602081830303815290604052805190602001206142c1565b9998505050505050505050565b6000806000613795858561430f565b915091506117f98161437f565b81518351146138045760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610cbd565b6001600160a01b03841661382a5760405162461bcd60e51b8152600401610cbd906154ff565b33613839818787878787614053565b60005b845181101561391f576000858281518110613859576138596153b9565b602002602001015190506000858381518110613877576138776153b9565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156138c75760405162461bcd60e51b8152600401610cbd90615544565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061390490849061545c565b92505081905550505050806139189061539e565b905061383c565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161396f9291906151b9565b60405180910390a46134b781878787878761453a565b600081118015613996575060065481105b6139d15760405162461bcd60e51b815260206004820152600c60248201526b34b73b30b634b21031b630b760a11b6044820152606401610cbd565b6001600160a01b0382166000908152601c602052604090206002015460ff1615613b11576001600160a01b0382166000908152601c60205260409020548114611b1e576000613a1f82612219565b90508015613a9a576012546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b158015613a8157600080fd5b505af1158015613a95573d6000803e3d6000fd5b505050505b6001600160a01b0383166000818152601c60209081526040918290205491518481528593917f128f8187fdb209b274c54d01b145ffae6942993c055272a988ec0c86d9432dab910160405180910390a4506001600160a01b0382166000908152601c60205260409020818155426001909101555050565b6001600160a01b0382166000818152601c60205260408120838155426001808301919091556002909101805460ff191682179055601d805491820181559091527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f0180546001600160a01b03191690911790555050565b6000611fb58383613fb9565b6001600160a01b03811660009081526001830160205260408120541515611fb5565b60008181526001830160205260408120541515611fb5565b6000611fb583836145f5565b6000610ce9825490565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611fb583836146e8565b816001600160a01b0316836001600160a01b03161415613cb65760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610cbd565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038316613d855760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610cbd565b33613db481856000613d9687614008565b613d9f87614008565b60405180602001604052806000815250614053565b6000838152602081815260408083206001600160a01b038816845290915290205482811015613e315760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610cbd565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b038416613ec25760405162461bcd60e51b8152600401610cbd906154ff565b33613ed281878761364488614008565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015613f135760405162461bcd60e51b8152600401610cbd90615544565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290613f5090849061545c565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613fb0828888888888614165565b50505050505050565b600081815260018301602052604081205461400057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610ce9565b506000610ce9565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110614042576140426153b9565b602090810291909101015292915050565b60005b835181101561415f576000848281518110614073576140736153b9565b602002602001015190506000848381518110614091576140916153b9565b60200260200101516140a38884610c55565b6140ad919061545c565b90506140ba8783836121aa565b1561414c576000828152601560209081526040918290205491518381526001600160a01b03928316928592908b169184917fe5de49455cbc88f3dd9d0d5cb562cc7e6513716e573a5be2023a8b3a42a733ee910160405180910390a45060008281526014602090815260408083208490556015909152902080546001600160a01b0319166001600160a01b0389161790555b5050806141589061539e565b9050614056565b506134b7565b6001600160a01b0384163b156134b75760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906141a9908990899088908890889060040161558e565b6020604051808303816000875af19250505080156141e4575060408051601f3d908101601f191682019092526141e1918101906155d3565b60015b614291576141f06155f0565b806308c379a0141561422a575061420561560b565b80614210575061422c565b8060405162461bcd60e51b8152600401610cbd9190614b04565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610cbd565b6001600160e01b0319811663f23a6e6160e01b14613fb05760405162461bcd60e51b8152600401610cbd90615694565b6000610ce96142ce614712565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000808251604114156143465760208301516040840151606085015160001a61433a8782858561483c565b94509450505050614378565b8251604014156143705760208301516040840151614365868383614929565b935093505050614378565b506000905060025b9250929050565b6000816004811115614393576143936156dc565b141561439c5750565b60018160048111156143b0576143b06156dc565b14156143fe5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610cbd565b6002816004811115614412576144126156dc565b14156144605760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610cbd565b6003816004811115614474576144746156dc565b14156144cd5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610cbd565b60048160048111156144e1576144e16156dc565b14156133325760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610cbd565b6001600160a01b0384163b156134b75760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061457e90899089908890889088906004016156f2565b6020604051808303816000875af19250505080156145b9575060408051601f3d908101601f191682019092526145b6918101906155d3565b60015b6145c5576141f06155f0565b6001600160e01b0319811663bc197c8160e01b14613fb05760405162461bcd60e51b8152600401610cbd90615694565b600081815260018301602052604081205480156146de5760006146196001836154aa565b855490915060009061462d906001906154aa565b905081811461469257600086600001828154811061464d5761464d6153b9565b9060005260206000200154905080876000018481548110614670576146706153b9565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806146a3576146a3615750565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610ce9565b6000915050610ce9565b60008260000182815481106146ff576146ff6153b9565b9060005260206000200154905092915050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561476b57507f000000000000000000000000000000000000000000000000000000000000000046145b1561479557507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b90565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156148735750600090506003614920565b8460ff16601b1415801561488b57508460ff16601c14155b1561489c5750600090506004614920565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156148f0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661491957600060019250925050614920565b9150600090505b94509492505050565b6000806001600160ff1b0383168161494660ff86901c601b61545c565b90506149548782888561483c565b935093505050935093915050565b82805461496e90615265565b90600052602060002090601f01602090048101928261499057600085556149d6565b82601f106149a957805160ff19168380011785556149d6565b828001600101855582156149d6579182015b828111156149d65782518255916020019190600101906149bb565b506149e29291506149e6565b5090565b5b808211156149e257600081556001016149e7565b80356001600160a01b0381168114614a1257600080fd5b919050565b60008060408385031215614a2a57600080fd5b614a33836149fb565b946020939093013593505050565b6001600160e01b03198116811461333257600080fd5b600060208284031215614a6957600080fd5b8135611fb581614a41565b600060208284031215614a8657600080fd5b611fb5826149fb565b600060208284031215614aa157600080fd5b5035919050565b60005b83811015614ac3578181015183820152602001614aab565b83811115614ad2576000848401525b50505050565b60008151808452614af0816020860160208601614aa8565b601f01601f19169290920160200192915050565b602081526000611fb56020830184614ad8565b600080600060608486031215614b2c57600080fd5b614b35846149fb565b95602085013595506040909401359392505050565b60008083601f840112614b5c57600080fd5b5081356001600160401b03811115614b7357600080fd5b60208301915083602082850101111561437857600080fd5b6000806000806000806000806000806101208b8d031215614bab57600080fd5b614bb48b6149fb565b995060208b0135985060408b0135975060608b01359650614bd760808c016149fb565b955060a08b0135945060c08b0135935060e08b013592506101008b01356001600160401b03811115614c0857600080fd5b614c148d828e01614b4a565b915080935050809150509295989b9194979a5092959850565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715614c6857614c68614c2d565b6040525050565b60006001600160401b03821115614c8857614c88614c2d565b5060051b60200190565b600082601f830112614ca357600080fd5b81356020614cb082614c6f565b604051614cbd8282614c43565b83815260059390931b8501820192828101915086841115614cdd57600080fd5b8286015b84811015614cf85780358352918301918301614ce1565b509695505050505050565b60006001600160401b03831115614d1c57614d1c614c2d565b604051614d33601f8501601f191660200182614c43565b809150838152848484011115614d4857600080fd5b83836020830137600060208583010152509392505050565b600082601f830112614d7157600080fd5b611fb583833560208501614d03565b600080600080600060a08688031215614d9857600080fd5b614da1866149fb565b9450614daf602087016149fb565b935060408601356001600160401b0380821115614dcb57600080fd5b614dd789838a01614c92565b94506060880135915080821115614ded57600080fd5b614df989838a01614c92565b93506080880135915080821115614e0f57600080fd5b50614e1c88828901614d60565b9150509295509295909350565b600081518084526020808501945080840160005b83811015614e625781516001600160a01b031687529582019590820190600101614e3d565b509495945050505050565b600081518084526020808501945080840160005b83811015614e6257815187529582019590820190600101614e81565b604081526000614eb06040830185614e29565b8281036020840152614ec28185614e6d565b95945050505050565b60008060408385031215614ede57600080fd5b50508035926020909101359150565b60008060408385031215614f0057600080fd5b82356001600160401b0380821115614f1757600080fd5b818501915085601f830112614f2b57600080fd5b81356020614f3882614c6f565b604051614f458282614c43565b83815260059390931b8501820192828101915089841115614f6557600080fd5b948201945b83861015614f8a57614f7b866149fb565b82529482019490820190614f6a565b96505086013592505080821115614fa057600080fd5b50614fad85828601614c92565b9150509250929050565b602081526000611fb56020830184614e6d565b600080600060608486031215614fdf57600080fd5b614fe8846149fb565b925060208401356001600160401b0381111561500357600080fd5b61500f86828701614c92565b925050604084013590509250925092565b60006020828403121561503257600080fd5b81356001600160401b0381111561504857600080fd5b8201601f8101841361505957600080fd5b6135cb84823560208401614d03565b6000806040838503121561507b57600080fd5b615084836149fb565b915060208301356001600160401b0381111561509f57600080fd5b614fad85828601614c92565b600080604083850312156150be57600080fd5b6150c7836149fb565b91506150d5602084016149fb565b90509250929050565b801515811461333257600080fd5b600080604083850312156150ff57600080fd5b615108836149fb565b91506020830135615118816150de565b809150509250929050565b602081526000611fb56020830184614e29565b60008060008060008060008060e0898b03121561515257600080fd5b88359750602089013596506040890135955061517060608a016149fb565b94506080890135935060a0890135925060c08901356001600160401b0381111561519957600080fd5b6151a58b828c01614b4a565b999c989b5096995094979396929594505050565b604081526000614eb06040830185614e6d565b600080600080600060a086880312156151e457600080fd5b6151ed866149fb565b94506151fb602087016149fb565b9350604086013592506060860135915060808601356001600160401b0381111561522457600080fd5b614e1c88828901614d60565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061527957607f821691505b6020821081141561529a57634e487b7160e01b600052602260045260246000fd5b50919050565b600081516152b2818560208601614aa8565b9290920192915050565b600080845481600182811c9150808316806152d857607f831692505b60208084108214156152f857634e487b7160e01b86526022600452602486fd5b81801561530c576001811461531d5761534a565b60ff1986168952848901965061534a565b60008b81526020902060005b868110156153425781548b820152908501908301615329565b505084890196505b505050505050614ec281856152a0565b60208082526014908201527337b7363c90199031b7b637b734b2b99032bb32b960611b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60006000198214156153b2576153b2615388565b5060010190565b634e487b7160e01b600052603260045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526018908201527f636f6e747261637420646f6573206e6f74206578697374730000000000000000604082015260600190565b600081600019048311821515161561545757615457615388565b500290565b6000821982111561546f5761546f615388565b500190565b60006020828403121561548657600080fd5b5051919050565b60006020828403121561549f57600080fd5b8151611fb5816150de565b6000828210156154bc576154bc615388565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826154e6576154e66154c1565b500490565b6000826154fa576154fa6154c1565b500690565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906155c890830184614ad8565b979650505050505050565b6000602082840312156155e557600080fd5b8151611fb581614a41565b600060033d11156148395760046000803e5060005160e01c90565b600060443d10156156195790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561564857505050505090565b82850191508151818111156156605750505050505090565b843d870101602082850101111561567a5750505050505090565b61568960208286010187614c43565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b0386811682528516602082015260a06040820181905260009061571e90830186614e6d565b82810360608401526157308186614e6d565b905082810360808401526157448185614ad8565b98975050505050505050565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220a474c5a4736dcdaa1f7b6f9609c2f08f7cfdd389c4457d9f135ee3d2e083783c64736f6c634300080b00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572000000000000000000000000000000000000000000000000000000000000006000000000000000000000000008db6fe68edd5a9f26502f5de274baf1573d9222000000000000000000000000ad20084e30624f5eb5d2346ea509c35a86e8f9eb000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f6170692e79323132332e696f2f61737365742d636c616e733f69643d00000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061048a5760003560e01c8063715018a611610262578063b390c0ab11610151578063db4b9b6c116100ce578063f212d51011610092578063f212d51014610bee578063f242432a14610c01578063f2fde38b14610c14578063f327a62c14610c27578063fbbbec0a14610c2f578063fbe5df7414610c4257600080fd5b8063db4b9b6c14610b6c578063df79823514610b75578063e407724414610b88578063e985e9c514610b91578063eace48cb14610bcd57600080fd5b8063c36ace5a11610115578063c36ace5a14610af3578063cb1ca66314610b13578063d05df8d714610b26578063d824559014610b39578063d828d51614610b4c57600080fd5b8063b390c0ab14610aa8578063b948843014610abb578063bbcd5bbe14610ac4578063bef704ff14610ad7578063c004d49814610aea57600080fd5b8063a2e3d9e3116101df578063a971ea06116101a3578063a971ea0614610a2f578063abaf764814610a42578063ad0d052414610a55578063ae910f5f14610a75578063af1d5f0914610a9557600080fd5b8063a2e3d9e314610930578063a47f3b701461093a578063a491445b1461094d578063a686eb5f1461096d578063a7757c9c1461098057600080fd5b80638933fb85116102265780638933fb85146108bd5780638da5cb5b146108d05780639dd1e9d0146108e1578063a0becea01461090a578063a22cb4651461091d57600080fd5b8063715018a61461082d57806371c10cae14610835578063754b069f14610884578063772638741461089757806380ee4460146108aa57600080fd5b80634b56a7071161037e578063620dee42116102fb5780636a85a2fb116102bf5780636a85a2fb146107d95780636cbc168c146107ec57806370480275146107ff57806370a082311461081257806370fde7e01461082557600080fd5b8063620dee421461070f5780636352211e14610718578063640906151461075457806367a46f731461076757806369dc9ff31461078757600080fd5b806355f804b31161034257806355f804b3146106bb5780635d1b45b5146106ce5780635dbe4756146106d65780635f539d69146106e95780636154ec1d146106fc57600080fd5b80634b56a7071461065f5780634e1273f41461067257806354fa7b6e14610692578063552c5b3c146106a557806355c0beaa146106b257600080fd5b806324d16a1c1161040c57806336d814ff116103d057806336d814ff146105f35780633b091756146106145780633b6e8919146106265780633ddb9e8514610639578063404cbffb1461064c57600080fd5b806324d16a1c1461058657806329d36a5b1461058f5780632bc61549146105a25780632eb2c2d6146105cd578063369e0e09146105e057600080fd5b80631324b10f116104535780631324b10f1461052057806314887c58146105295780631506a40c14610558578063156e29f6146105605780631785f53c1461057357600080fd5b8062fdd58e1461048f57806301ffc9a7146104b5578063046dc166146104d85780630e89341c146104ed578063106cffe21461050d575b600080fd5b6104a261049d366004614a17565b610c55565b6040519081526020015b60405180910390f35b6104c86104c3366004614a57565b610cef565b60405190151581526020016104ac565b6104eb6104e6366004614a74565b610d3f565b005b6105006104fb366004614a8f565b610d8b565b6040516104ac9190614b04565b6104a261051b366004614a74565b610e64565b6104a260085481565b6104c8610537366004614a74565b6001600160a01b03166000908152601c602052604090206002015460ff1690565b6104eb610e82565b6104eb61056e366004614b17565b610ec0565b6104eb610581366004614a74565b610f76565b6104a2600b5481565b6104eb61059d366004614a8f565b611007565b6105b56105b0366004614b8b565b611036565b6040516001600160a01b0390911681526020016104ac565b6104eb6105db366004614d80565b611096565b6104a26105ee366004614a8f565b61112d565b610606610601366004614a8f565b6111a5565b6040516104ac929190614e9d565b6007546104c890610100900460ff1681565b6104eb610634366004614ecb565b611380565b6011546105b5906001600160a01b031681565b6105b561065a366004614a8f565b61167f565b6104eb61066d366004614a8f565b6116a9565b610685610680366004614eed565b6116d8565b6040516104ac9190614fb7565b6104eb6106a0366004614fca565b611801565b6007546104c89060ff1681565b6104a2600a5481565b6104eb6106c9366004615020565b611ae1565b601d546104a2565b6104eb6106e4366004615068565b611b22565b6104eb6106f7366004614a74565b611db4565b6104a261070a366004614a8f565b611e1e565b6104a2600c5481565b6105b5610726366004614a8f565b6011546001600160a01b039081166000908152601f6020908152604080832094835293905291909120541690565b6104eb610762366004614a8f565b611e90565b6104a2610775366004614a8f565b60146020526000908152604090205481565b6107ba610795366004614a74565b60216020526000908152604090205460ff81169061010090046001600160a01b031682565b6040805192151583526001600160a01b039091166020830152016104ac565b6010546105b5906001600160a01b031681565b6104eb6107fa366004614a8f565b611ebf565b6104eb61080d366004614a74565b611eee565b6104a2610820366004614a74565b611f82565b6104a2611fbc565b6104eb611fd9565b610867610843366004614a74565b601c6020526000908152604090208054600182015460029092015490919060ff1683565b6040805193845260208401929092521515908201526060016104ac565b6106856108923660046150ab565b61200f565b6104c86108a5366004614a74565b612103565b6012546105b5906001600160a01b031681565b6104eb6108cb366004614a74565b61215e565b6003546001600160a01b03166105b5565b6105b56108ef366004614a8f565b6015602052600090815260409020546001600160a01b031681565b6104c8610918366004614b17565b6121aa565b6104eb61092b3660046150ec565b61220e565b6006546104a29081565b6104a2610948366004614a8f565b612219565b61096061095b366004614a8f565b61223e565b6040516104ac9190615123565b6104a261097b366004614a17565b612369565b6109e361098e366004614a74565b60186020526000908152604090208054600182015460028301546003840154600485015460058601546006870154600788015460089098015496979596949593946001600160a01b0390931693919290919089565b60408051998a5260208a01989098529688019590955260608701939093526001600160a01b03909116608086015260a085015260c084015260e0830152610100820152610120016104ac565b6104eb610a3d3660046150ec565b6123bb565b6104eb610a50366004614a8f565b612485565b6104a2610a63366004614a74565b60196020526000908152604090205481565b6104a2610a83366004614a8f565b60166020526000908152604090205481565b6104eb610aa3366004614a8f565b612702565b6104eb610ab6366004614ecb565b612863565b6104a2600e5481565b6104eb610ad2366004614a74565b612949565b6104eb610ae5366004614a8f565b612995565b6104a2600d5481565b6104a2610b01366004614a74565b601a6020526000908152604090205481565b6104eb610b21366004614a8f565b6129c4565b6104eb610b34366004615136565b612a3a565b6104eb610b47366004614a8f565b612f5c565b6104a2610b5a366004614a74565b601b6020526000908152604090205481565b6104a2600f5481565b6104eb610b83366004614a8f565b612f8b565b6104a260095481565b6104c8610b9f3660046150ab565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b610be0610bdb3660046150ab565b612fba565b6040516104ac9291906151b9565b6104eb610bfc366004614a74565b6131c7565b6104eb610c0f3660046151cc565b613213565b6104eb610c22366004614a74565b61329a565b6104eb613335565b610685610c3d366004614a8f565b61337c565b6104a2610c50366004614a8f565b61345f565b60006001600160a01b038316610cc65760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b1480610d2057506001600160e01b031982166303a24d0760e21b145b80610ce957506301ffc9a760e01b6001600160e01b0319831614610ce9565b6003546001600160a01b03163314610d695760405162461bcd60e51b8152600401610cbd90615230565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b6060600060058054610d9c90615265565b905011610e335760058054610db090615265565b80601f0160208091040260200160405190810160405280929190818152602001828054610ddc90615265565b8015610e295780601f10610dfe57610100808354040283529160200191610e29565b820191906000526020600020905b815481529060010190602001808311610e0c57829003601f168201915b5050505050610ce9565b6005610e3e836134ce565b604051602001610e4f9291906152bc565b60405160208183030381529060405292915050565b6001600160a01b038116600090815260226020526040812054610ce9565b6003546001600160a01b03163314610eac5760405162461bcd60e51b8152600401610cbd90615230565b6007805460ff19811660ff90911615179055565b3360009081526013602052604090205460ff16610f0e5760405162461bcd60e51b815260206004820152600c60248201526b41646d696e73206f6e6c792160a01b6044820152606401610cbd565b604080518281526001600160a01b0385163281146020830152849290917f69dff97591dfad68d690a0deccd16ef2aaf0b65205732bf647a9e5b129b77099910160405180910390a3610f71838383604051806020016040528060008152506135d3565b505050565b6003546001600160a01b03163314610fa05760405162461bcd60e51b8152600401610cbd90615230565b6001600160a01b038116610fe65760405162461bcd60e51b815260206004820152600d60248201526c656d707479206164647265737360981b6044820152606401610cbd565b6001600160a01b03166000908152601360205260409020805460ff19169055565b6003546001600160a01b031633146110315760405162461bcd60e51b8152600401610cbd90615230565b600855565b600061108761104b8c8c8c8c8c8c8c8c6136e3565b84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061378692505050565b9b9a5050505050505050505050565b6001600160a01b0385163314806110b257506110b28533610b9f565b6111195760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610cbd565b61112685858585856137a2565b5050505050565b6000808211801561113e5750600482105b61115a5760405162461bcd60e51b8152600401610cbd9061535a565b6000805b60065481101561119e5760008181526016602052604090205484141561118c57816111888161539e565b9250505b806111968161539e565b91505061115e565b5092915050565b60608060006111b384611e1e565b90506000816001600160401b038111156111cf576111cf614c2d565b6040519080825280602002602001820160405280156111f8578160200160208202803683370190505b5090506000826001600160401b0381111561121557611215614c2d565b60405190808252806020026020018201604052801561123e578160200160208202803683370190505b5090506000805b601d548110156113735787601c6000601d8481548110611267576112676153b9565b60009182526020808320909101546001600160a01b03168352820192909252604001902054141561136157601d81815481106112a5576112a56153b9565b9060005260206000200160009054906101000a90046001600160a01b03168483815181106112d5576112d56153b9565b60200260200101906001600160a01b031690816001600160a01b031681525050601c6000601d838154811061130c5761130c6153b9565b60009182526020808320909101546001600160a01b031683528201929092526040019020600101548351849084908110611348576113486153b9565b60209081029190910101528161135d8161539e565b9250505b8061136b8161539e565b915050611245565b5091969095509350505050565b600260045414156113a35760405162461bcd60e51b8152600401610cbd906153cf565b6002600455600754610100900460ff166113f55760405162461bcd60e51b81526020600482015260136024820152721999585d1d5c99481b9bdd08195b98589b1959606a1b6044820152606401610cbd565b6000811180156114055750600481105b6114215760405162461bcd60e51b8152600401610cbd9061535a565b600082118015611432575060065482105b61146d5760405162461bcd60e51b815260206004820152600c60248201526b34b73b30b634b21031b630b760a11b6044820152606401610cbd565b6000828152601660205260409020548114156114d75760405162461bcd60e51b815260206004820152602360248201527f636c616e20616c72656164792062656c6f6e677320746f207468697320636f6c6044820152626f6e7960e81b6064820152608401610cbd565b600082815260166020526040812054906114f08261112d565b9050600e5481116115535760405162461bcd60e51b815260206004820152602760248201527f636f6c6f6e79206e6565647320746f2068617665206174206c6561737420736f60448201526636b29031b630b760c91b6064820152608401610cbd565b3360009081526013602052604090205460ff16611637576000848152601560205260409020546001600160a01b031633146115c35760405162461bcd60e51b815260206004820152601060248201526f636c616e206c6561646572206f6e6c7960801b6044820152606401610cbd565b6012546001600160a01b0316639dc29fac33600b546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561161e57600080fd5b505af1158015611632573d6000803e3d6000fd5b505050505b6040518390859033907f11e18d222af18722d0ce2b9363cf0777a37b4de62d4bac0494bf9a9e9137138890600090a45050600091825260166020526040909120556001600455565b601d818154811061168f57600080fd5b6000918252602090912001546001600160a01b0316905081565b6003546001600160a01b031633146116d35760405162461bcd60e51b8152600401610cbd90615230565b600e55565b6060815183511461173d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610cbd565b600083516001600160401b0381111561175857611758614c2d565b604051908082528060200260200182016040528015611781578160200160208202803683370190505b50905060005b84518110156117f9576117cc8582815181106117a5576117a56153b9565b60200260200101518583815181106117bf576117bf6153b9565b6020026020010151610c55565b8282815181106117de576117de6153b9565b60209081029190910101526117f28161539e565b9050611787565b509392505050565b61183360226000335b6001600160a01b03166001600160a01b0316815260200190815260200160002080546001019055565b600260045414156118565760405162461bcd60e51b8152600401610cbd906153cf565b60026004556001600160a01b0383166000908152602160205260409020805460ff166118c45760405162461bcd60e51b815260206004820152601c60248201527f746f6b656e20636f6e7472616374206973206e6f7420616374697665000000006044820152606401610cbd565b6118cd33612103565b1561193057336000908152601c602052604090205482146119305760405162461bcd60e51b815260206004820152601f60248201527f636c616e206c65616465722063616e27742073776974636820636c616e7321006044820152606401610cbd565b61193a3383613985565b60005b8351811015611ad557600084828151811061195a5761195a6153b9565b6020026020010151905061196b3390565b6001600160a01b038781166000908152601f60209081526040808320868452909152902080546001600160a01b0319169282169290921790915583546101009004166323b872dd336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401600060405180830381600087803b158015611a0157600080fd5b505af1158015611a15573d6000803e3d6000fd5b5050506001600160a01b0387166000908152601e60205260408120611a5d92508391611a3e3390565b6001600160a01b03168152602081019190915260400160002090613b88565b506001600160a01b03861660008181526020808052604080832085845282529182902042905581518481529081019290925233828201525185917ff7373f56c201647feae85a62d3cf56286ed3a43d20c5eb7f9883d6ea690ef7c0919081900360600190a25080611acd8161539e565b91505061193d565b50506001600455505050565b6003546001600160a01b03163314611b0b5760405162461bcd60e51b8152600401610cbd90615230565b8051611b1e906005906020840190614962565b5050565b611b2f602260003361180a565b81611b3b602382613b94565b611b575760405162461bcd60e51b8152600401610cbd90615406565b60026004541415611b7a5760405162461bcd60e51b8152600401610cbd906153cf565b60026004556001600160a01b0383166000908152602160205260408120905b8351811015611ad5576000848281518110611bb657611bb66153b9565b60200260200101519050611c1181601e6000896001600160a01b03166001600160a01b031681526020019081526020016000206000611bf23390565b6001600160a01b03168152602081019190915260400160002090613bb6565b611c535760405162461bcd60e51b81526020600482015260136024820152721d1bdad95b881a5cc81b9bdd081cdd185ad959606a1b6044820152606401610cbd565b6001600160a01b038681166000908152601f60209081526040808320858452909152902080546001600160a01b031916905583546101009004166323b872dd30336040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260448101849052606401600060405180830381600087803b158015611ce357600080fd5b505af1158015611cf7573d6000803e3d6000fd5b5050506001600160a01b0387166000908152601e60205260408120611d3f92508391611d203390565b6001600160a01b03168152602081019190915260400160002090613bce565b506001600160a01b0386166000818152602080805260408083208584528252808320929092558151848152908101929092523382820152517fda7b3993b5962cc80555cf305cbd92948048874e1a76a22272bdaaff09baeb659181900360600190a15080611dac8161539e565b915050611b99565b6003546001600160a01b03163314611dde5760405162461bcd60e51b8152600401610cbd90615230565b6001600160a01b038116600081815260216020526040902080546101009092026001600160a81b0319909216919091176001179055611b1e60238261349e565b600080805b601d5481101561119e5783601c6000601d8481548110611e4557611e456153b9565b60009182526020808320909101546001600160a01b031683528201929092526040019020541415611e7e5781611e7a8161539e565b9250505b80611e888161539e565b915050611e23565b6003546001600160a01b03163314611eba5760405162461bcd60e51b8152600401610cbd90615230565b600d55565b6003546001600160a01b03163314611ee95760405162461bcd60e51b8152600401610cbd90615230565b600b55565b6003546001600160a01b03163314611f185760405162461bcd60e51b8152600401610cbd90615230565b6001600160a01b038116611f5e5760405162461bcd60e51b815260206004820152600d60248201526c656d707479206164647265737360981b6044820152606401610cbd565b6001600160a01b03166000908152601360205260409020805460ff19166001179055565b6011546001600160a01b039081166000908152601e602090815260408083209385168352929052908120611fb581613bda565b9392505050565b6000600a54611fca60065490565b611fd4919061543d565b905090565b6003546001600160a01b031633146120035760405162461bcd60e51b8152600401610cbd90615230565b61200d6000613be4565b565b60608261201d602382613b94565b6120395760405162461bcd60e51b8152600401610cbd90615406565b6001600160a01b038085166000908152601e6020908152604080832093871683529290529081209061206a82613bda565b6001600160401b0381111561208157612081614c2d565b6040519080825280602002602001820160405280156120aa578160200160208202803683370190505b50905060005b6120b983613bda565b8110156120f9576120ca8382613c36565b8282815181106120dc576120dc6153b9565b6020908102919091010152806120f18161539e565b9150506120b0565b5095945050505050565b6001600160a01b0381166000908152601c602052604081206002015460ff161561215657506001600160a01b039081166000818152601c6020908152604080832054835260159091529020549091161490565b506000919050565b6003546001600160a01b031633146121885760405162461bcd60e51b8152600401610cbd90615230565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152601560205260408120546001600160a01b03858116911614156121d457506000611fb5565b6001600160a01b0384166000908152601c602052604090205483146121fb57506000611fb5565b6122048361345f565b9091119392505050565b611b1e338383613c42565b6000600d5461222783611e1e565b612231919061543d565b600c54610ce9919061545c565b6060600061224b83611e1e565b90506000816001600160401b0381111561226757612267614c2d565b604051908082528060200260200182016040528015612290578160200160208202803683370190505b5090506000805b601d5481101561235f5785601c6000601d84815481106122b9576122b96153b9565b60009182526020808320909101546001600160a01b03168352820192909252604001902054141561234d57601d81815481106122f7576122f76153b9565b9060005260206000200160009054906101000a90046001600160a01b0316838381518110612327576123276153b9565b6001600160a01b0390921660209283029190910190910152816123498161539e565b9250505b806123578161539e565b915050612297565b5090949350505050565b600082612377602382613b94565b6123935760405162461bcd60e51b8152600401610cbd90615406565b50506001600160a01b0391909116600090815260208080526040808320938352929052205490565b6003546001600160a01b031633146123e55760405162461bcd60e51b8152600401610cbd90615230565b816123f1602382613b94565b61240d5760405162461bcd60e51b8152600401610cbd90615406565b612418602384613b94565b6124595760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081b9bdd08185919195960721b6044820152606401610cbd565b506001600160a01b03919091166000908152602160205260409020805460ff1916911515919091179055565b600260045414156124a85760405162461bcd60e51b8152600401610cbd906153cf565b600260045560075460ff166124f55760405162461bcd60e51b81526020600482015260136024820152721999585d1d5c99481b9bdd08195b98589b1959606a1b6044820152606401610cbd565b6000811180156125055750600481105b6125215760405162461bcd60e51b8152600401610cbd9061535a565b61252a33612103565b156125815760405162461bcd60e51b815260206004820152602160248201527f636c616e206c65616465722063616e277420637265617465206e657720636c616044820152603760f91b6064820152608401610cbd565b3360009081526013602052604090205460ff16612668576125a133610537565b6125e15760405162461bcd60e51b815260206004820152601160248201527036bab9ba1031329034b710309031b630b760791b6044820152606401610cbd565b60006125eb611fbc565b90508015612666576012546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561264d57600080fd5b505af1158015612661573d6000803e3d6000fd5b505050505b505b600061267360065490565b60008181526016602052604090208390559050612694600680546001019055565b6040518290829033907f098df9d435f5abb718c2804ce7d7b6550ff16ebbabc96ba0da01d4860e2c4b6590600090a4336000818152601c602090815260408083208581554260019091015560085481519283019091529181526126f9929184916135d3565b50506001600455565b6003546001600160a01b0316331461272c5760405162461bcd60e51b8152600401610cbd90615230565b6012546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612774573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127989190615474565b8111156127e05760405162461bcd60e51b8152602060048201526016602482015275616d6f756e7420657863656564732062616c616e636560501b6044820152606401610cbd565b6012546001600160a01b031663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af115801561283f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1e919061548d565b3360009081526013602052604090205460ff166128b15760405162461bcd60e51b815260206004820152600c60248201526b41646d696e73206f6e6c792160a01b6044820152606401610cbd565b6128bb3283610c55565b6129075760405162461bcd60e51b815260206004820152601760248201527f4f6f707320796f7520646f6e2774206f776e20746861740000000000000000006044820152606401610cbd565b604051818152829032907f23ff0e75edf108e3d0392d92e13e8c8a868ef19001bd49f9e94876dc46dff87f9060200160405180910390a3611b1e328383613d23565b6003546001600160a01b031633146129735760405162461bcd60e51b8152600401610cbd90615230565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031633146129bf5760405162461bcd60e51b8152600401610cbd90615230565b600c55565b6003546001600160a01b031633146129ee5760405162461bcd60e51b8152600401610cbd90615230565b600060095411612a355760405162461bcd60e51b815260206004820152601260248201527156616c7565206c6f776572207468656e203160701b6044820152606401610cbd565b600955565b60026004541415612a5d5760405162461bcd60e51b8152600401610cbd906153cf565b600260045587612a9d5760405162461bcd60e51b815260206004820152600b60248201526a656d70747920636c61696d60a81b6044820152606401610cbd565b612ab7338989898989612aaf33610e64565b8a8a8a611036565b6017546001600160a01b03908116911614612b085760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b6044820152606401610cbd565b600f5415612b5d57600f54612b1d90426154aa565b8311612b5d5760405162461bcd60e51b815260206004820152600f60248201526e1cd95cdcda5bdb88195e1c1a5c9959608a1b6044820152606401610cbd565b6012546001600160a01b03166321670f2233612b818b670de0b6b3a764000061543d565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015612bc757600080fd5b505af1158015612bdb573d6000803e3d6000fd5b50505050612bed6022600061180a3390565b336000818152601c6020908152604091829020548251610120810184528c81529182018b9052918101829052606081018990526001600160a01b038816608082015260a08101879052909160c0820190612c4690610e64565b81526020018581526020014281525060186000612c603390565b6001600160a01b03908116825260208083019390935260409182016000908120855181558585015160018201558584015160028201556060860151600382015560808601516004820180546001600160a01b031916919094161790925560a0850151600583015560c0850151600683015560e08501516007830155610100909401516008909101553383526019909152902054612cfe908a9061545c565b336000908152601960205260409020558715612de5576012546010546001600160a01b039182169163e69d849d9116612d3f8b670de0b6b3a764000061543d565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015612d8557600080fd5b505af1158015612d99573d6000803e3d6000fd5b5050505087601a6000612da93390565b6001600160a01b03166001600160a01b0316815260200190815260200160002054612dd4919061545c565b336000908152601a60205260409020555b6001600160a01b03861615801590612dfd5750600085115b15612e85576012546001600160a01b031663d9b5778987612e2688670de0b6b3a764000061543d565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015612e6c57600080fd5b505af1158015612e80573d6000803e3d6000fd5b505050505b600081118015612e96575060065481105b8015612ea25750600087115b15612eee57612ec2338289604051806020016040528060008152506135d3565b336000908152601b6020526040902054612edd90889061545c565b336000908152601b60205260409020555b604080518a8152602081018a9052808201899052606081018790526080810186905290516001600160a01b03881691839133917ffdeb11e92ba41fbc0a90341ff28c438012e6a3e840c45400a9ada007a4f2d33c919081900360a00190a45050600160045550505050505050565b6003546001600160a01b03163314612f865760405162461bcd60e51b8152600401610cbd90615230565b600f55565b6003546001600160a01b03163314612fb55760405162461bcd60e51b8152600401610cbd90615230565b600a55565b60608083612fc9602382613b94565b612fe55760405162461bcd60e51b8152600401610cbd90615406565b6001600160a01b038086166000908152601e6020908152604080832093881683529290529081209061301682613bda565b6001600160401b0381111561302d5761302d614c2d565b604051908082528060200260200182016040528015613056578160200160208202803683370190505b509050600061306483613bda565b6001600160401b0381111561307b5761307b614c2d565b6040519080825280602002602001820160405280156130a4578160200160208202803683370190505b506001600160a01b0388166000908152601860205260408120600701549192505b6130ce85613bda565b8110156131b85760006130e18683613c36565b6001600160a01b038c1660009081526020808052604080832084845290915290205486519192509086908490811061311b5761311b6153b9565b602002602001018181525050848281518110613139576131396153b9565b602002602001015183111561316c578284838151811061315b5761315b6153b9565b6020026020010181815250506131a5565b84828151811061317e5761317e6153b9565b6020026020010151848381518110613198576131986153b9565b6020026020010181815250505b50806131b08161539e565b9150506130c5565b50919890975095505050505050565b6003546001600160a01b031633146131f15760405162461bcd60e51b8152600401610cbd90615230565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03851633148061322f575061322f8533610b9f565b61328d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610cbd565b6111268585858585613e9c565b6003546001600160a01b031633146132c45760405162461bcd60e51b8152600401610cbd90615230565b6001600160a01b0381166133295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cbd565b61333281613be4565b50565b6003546001600160a01b0316331461335f5760405162461bcd60e51b8152600401610cbd90615230565b6007805461ff001981166101009182900460ff1615909102179055565b606060008211801561338e5750600482105b6133aa5760405162461bcd60e51b8152600401610cbd9061535a565b60006133b58361112d565b90506000816001600160401b038111156133d1576133d1614c2d565b6040519080825280602002602001820160405280156133fa578160200160208202803683370190505b5090506000805b60065481101561235f5760008181526016602052604090205486141561344d5780838381518110613434576134346153b9565b6020908102919091010152816134498161539e565b9250505b806134578161539e565b915050613401565b600060646009546064613472919061545c565b60008481526014602052604090205461348b919061543d565b610ce991906154d7565b80546001019055565b6000611fb5836001600160a01b038416613fb9565b5490565b505050505050565b6001600160a01b03163b151590565b6060816134f25750506040805180820190915260018152600360fc1b602082015290565b8160005b811561351c57806135068161539e565b91506135159050600a836154d7565b91506134f6565b6000816001600160401b0381111561353657613536614c2d565b6040519080825280601f01601f191660200182016040528015613560576020820181803683370190505b5090505b84156135cb576135756001836154aa565b9150613582600a866154eb565b61358d90603061545c565b60f81b8183815181106135a2576135a26153b9565b60200101906001600160f81b031916908160001a9053506135c4600a866154d7565b9450613564565b949350505050565b6001600160a01b0384166136335760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610cbd565b336136538160008761364488614008565b61364d88614008565b87614053565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061368390849061545c565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461112681600087878787614165565b604080517f90b2ccba250cd548893316a97144625f4b7fdd7df41e4de2cf98a6ef077987b960208201526001600160a01b03808b1692820192909252606081018990526080810188905260a0810187905290851660c082015260e08101849052610100810183905261012081018290526000906137799061014001604051602081830303815290604052805190602001206142c1565b9998505050505050505050565b6000806000613795858561430f565b915091506117f98161437f565b81518351146138045760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610cbd565b6001600160a01b03841661382a5760405162461bcd60e51b8152600401610cbd906154ff565b33613839818787878787614053565b60005b845181101561391f576000858281518110613859576138596153b9565b602002602001015190506000858381518110613877576138776153b9565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156138c75760405162461bcd60e51b8152600401610cbd90615544565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061390490849061545c565b92505081905550505050806139189061539e565b905061383c565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161396f9291906151b9565b60405180910390a46134b781878787878761453a565b600081118015613996575060065481105b6139d15760405162461bcd60e51b815260206004820152600c60248201526b34b73b30b634b21031b630b760a11b6044820152606401610cbd565b6001600160a01b0382166000908152601c602052604090206002015460ff1615613b11576001600160a01b0382166000908152601c60205260409020548114611b1e576000613a1f82612219565b90508015613a9a576012546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b158015613a8157600080fd5b505af1158015613a95573d6000803e3d6000fd5b505050505b6001600160a01b0383166000818152601c60209081526040918290205491518481528593917f128f8187fdb209b274c54d01b145ffae6942993c055272a988ec0c86d9432dab910160405180910390a4506001600160a01b0382166000908152601c60205260409020818155426001909101555050565b6001600160a01b0382166000818152601c60205260408120838155426001808301919091556002909101805460ff191682179055601d805491820181559091527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f0180546001600160a01b03191690911790555050565b6000611fb58383613fb9565b6001600160a01b03811660009081526001830160205260408120541515611fb5565b60008181526001830160205260408120541515611fb5565b6000611fb583836145f5565b6000610ce9825490565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611fb583836146e8565b816001600160a01b0316836001600160a01b03161415613cb65760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610cbd565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038316613d855760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610cbd565b33613db481856000613d9687614008565b613d9f87614008565b60405180602001604052806000815250614053565b6000838152602081815260408083206001600160a01b038816845290915290205482811015613e315760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610cbd565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b038416613ec25760405162461bcd60e51b8152600401610cbd906154ff565b33613ed281878761364488614008565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015613f135760405162461bcd60e51b8152600401610cbd90615544565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290613f5090849061545c565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613fb0828888888888614165565b50505050505050565b600081815260018301602052604081205461400057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610ce9565b506000610ce9565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110614042576140426153b9565b602090810291909101015292915050565b60005b835181101561415f576000848281518110614073576140736153b9565b602002602001015190506000848381518110614091576140916153b9565b60200260200101516140a38884610c55565b6140ad919061545c565b90506140ba8783836121aa565b1561414c576000828152601560209081526040918290205491518381526001600160a01b03928316928592908b169184917fe5de49455cbc88f3dd9d0d5cb562cc7e6513716e573a5be2023a8b3a42a733ee910160405180910390a45060008281526014602090815260408083208490556015909152902080546001600160a01b0319166001600160a01b0389161790555b5050806141589061539e565b9050614056565b506134b7565b6001600160a01b0384163b156134b75760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906141a9908990899088908890889060040161558e565b6020604051808303816000875af19250505080156141e4575060408051601f3d908101601f191682019092526141e1918101906155d3565b60015b614291576141f06155f0565b806308c379a0141561422a575061420561560b565b80614210575061422c565b8060405162461bcd60e51b8152600401610cbd9190614b04565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610cbd565b6001600160e01b0319811663f23a6e6160e01b14613fb05760405162461bcd60e51b8152600401610cbd90615694565b6000610ce96142ce614712565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000808251604114156143465760208301516040840151606085015160001a61433a8782858561483c565b94509450505050614378565b8251604014156143705760208301516040840151614365868383614929565b935093505050614378565b506000905060025b9250929050565b6000816004811115614393576143936156dc565b141561439c5750565b60018160048111156143b0576143b06156dc565b14156143fe5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610cbd565b6002816004811115614412576144126156dc565b14156144605760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610cbd565b6003816004811115614474576144746156dc565b14156144cd5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610cbd565b60048160048111156144e1576144e16156dc565b14156133325760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610cbd565b6001600160a01b0384163b156134b75760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061457e90899089908890889088906004016156f2565b6020604051808303816000875af19250505080156145b9575060408051601f3d908101601f191682019092526145b6918101906155d3565b60015b6145c5576141f06155f0565b6001600160e01b0319811663bc197c8160e01b14613fb05760405162461bcd60e51b8152600401610cbd90615694565b600081815260018301602052604081205480156146de5760006146196001836154aa565b855490915060009061462d906001906154aa565b905081811461469257600086600001828154811061464d5761464d6153b9565b9060005260206000200154905080876000018481548110614670576146706153b9565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806146a3576146a3615750565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610ce9565b6000915050610ce9565b60008260000182815481106146ff576146ff6153b9565b9060005260206000200154905092915050565b6000306001600160a01b037f00000000000000000000000001e8efb0429f102ea104681849265459532231ab1614801561476b57507f000000000000000000000000000000000000000000000000000000000000000146145b1561479557507f34c597e326bd5569648571a7cf07233b357f9b6c9c20453646c9a1e9da98040890565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f266921cdd8b0a60498b571a4ab08bebb2992978f29072d7664869f8ed57f0db6828401527fe6bbd6277e1bf288eed5e8d1780f9a50b239e86b153736bceebccf4ea79d90b360608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b90565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156148735750600090506003614920565b8460ff16601b1415801561488b57508460ff16601c14155b1561489c5750600090506004614920565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156148f0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661491957600060019250925050614920565b9150600090505b94509492505050565b6000806001600160ff1b0383168161494660ff86901c601b61545c565b90506149548782888561483c565b935093505050935093915050565b82805461496e90615265565b90600052602060002090601f01602090048101928261499057600085556149d6565b82601f106149a957805160ff19168380011785556149d6565b828001600101855582156149d6579182015b828111156149d65782518255916020019190600101906149bb565b506149e29291506149e6565b5090565b5b808211156149e257600081556001016149e7565b80356001600160a01b0381168114614a1257600080fd5b919050565b60008060408385031215614a2a57600080fd5b614a33836149fb565b946020939093013593505050565b6001600160e01b03198116811461333257600080fd5b600060208284031215614a6957600080fd5b8135611fb581614a41565b600060208284031215614a8657600080fd5b611fb5826149fb565b600060208284031215614aa157600080fd5b5035919050565b60005b83811015614ac3578181015183820152602001614aab565b83811115614ad2576000848401525b50505050565b60008151808452614af0816020860160208601614aa8565b601f01601f19169290920160200192915050565b602081526000611fb56020830184614ad8565b600080600060608486031215614b2c57600080fd5b614b35846149fb565b95602085013595506040909401359392505050565b60008083601f840112614b5c57600080fd5b5081356001600160401b03811115614b7357600080fd5b60208301915083602082850101111561437857600080fd5b6000806000806000806000806000806101208b8d031215614bab57600080fd5b614bb48b6149fb565b995060208b0135985060408b0135975060608b01359650614bd760808c016149fb565b955060a08b0135945060c08b0135935060e08b013592506101008b01356001600160401b03811115614c0857600080fd5b614c148d828e01614b4a565b915080935050809150509295989b9194979a5092959850565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715614c6857614c68614c2d565b6040525050565b60006001600160401b03821115614c8857614c88614c2d565b5060051b60200190565b600082601f830112614ca357600080fd5b81356020614cb082614c6f565b604051614cbd8282614c43565b83815260059390931b8501820192828101915086841115614cdd57600080fd5b8286015b84811015614cf85780358352918301918301614ce1565b509695505050505050565b60006001600160401b03831115614d1c57614d1c614c2d565b604051614d33601f8501601f191660200182614c43565b809150838152848484011115614d4857600080fd5b83836020830137600060208583010152509392505050565b600082601f830112614d7157600080fd5b611fb583833560208501614d03565b600080600080600060a08688031215614d9857600080fd5b614da1866149fb565b9450614daf602087016149fb565b935060408601356001600160401b0380821115614dcb57600080fd5b614dd789838a01614c92565b94506060880135915080821115614ded57600080fd5b614df989838a01614c92565b93506080880135915080821115614e0f57600080fd5b50614e1c88828901614d60565b9150509295509295909350565b600081518084526020808501945080840160005b83811015614e625781516001600160a01b031687529582019590820190600101614e3d565b509495945050505050565b600081518084526020808501945080840160005b83811015614e6257815187529582019590820190600101614e81565b604081526000614eb06040830185614e29565b8281036020840152614ec28185614e6d565b95945050505050565b60008060408385031215614ede57600080fd5b50508035926020909101359150565b60008060408385031215614f0057600080fd5b82356001600160401b0380821115614f1757600080fd5b818501915085601f830112614f2b57600080fd5b81356020614f3882614c6f565b604051614f458282614c43565b83815260059390931b8501820192828101915089841115614f6557600080fd5b948201945b83861015614f8a57614f7b866149fb565b82529482019490820190614f6a565b96505086013592505080821115614fa057600080fd5b50614fad85828601614c92565b9150509250929050565b602081526000611fb56020830184614e6d565b600080600060608486031215614fdf57600080fd5b614fe8846149fb565b925060208401356001600160401b0381111561500357600080fd5b61500f86828701614c92565b925050604084013590509250925092565b60006020828403121561503257600080fd5b81356001600160401b0381111561504857600080fd5b8201601f8101841361505957600080fd5b6135cb84823560208401614d03565b6000806040838503121561507b57600080fd5b615084836149fb565b915060208301356001600160401b0381111561509f57600080fd5b614fad85828601614c92565b600080604083850312156150be57600080fd5b6150c7836149fb565b91506150d5602084016149fb565b90509250929050565b801515811461333257600080fd5b600080604083850312156150ff57600080fd5b615108836149fb565b91506020830135615118816150de565b809150509250929050565b602081526000611fb56020830184614e29565b60008060008060008060008060e0898b03121561515257600080fd5b88359750602089013596506040890135955061517060608a016149fb565b94506080890135935060a0890135925060c08901356001600160401b0381111561519957600080fd5b6151a58b828c01614b4a565b999c989b5096995094979396929594505050565b604081526000614eb06040830185614e6d565b600080600080600060a086880312156151e457600080fd5b6151ed866149fb565b94506151fb602087016149fb565b9350604086013592506060860135915060808601356001600160401b0381111561522457600080fd5b614e1c88828901614d60565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061527957607f821691505b6020821081141561529a57634e487b7160e01b600052602260045260246000fd5b50919050565b600081516152b2818560208601614aa8565b9290920192915050565b600080845481600182811c9150808316806152d857607f831692505b60208084108214156152f857634e487b7160e01b86526022600452602486fd5b81801561530c576001811461531d5761534a565b60ff1986168952848901965061534a565b60008b81526020902060005b868110156153425781548b820152908501908301615329565b505084890196505b505050505050614ec281856152a0565b60208082526014908201527337b7363c90199031b7b637b734b2b99032bb32b960611b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60006000198214156153b2576153b2615388565b5060010190565b634e487b7160e01b600052603260045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526018908201527f636f6e747261637420646f6573206e6f74206578697374730000000000000000604082015260600190565b600081600019048311821515161561545757615457615388565b500290565b6000821982111561546f5761546f615388565b500190565b60006020828403121561548657600080fd5b5051919050565b60006020828403121561549f57600080fd5b8151611fb5816150de565b6000828210156154bc576154bc615388565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826154e6576154e66154c1565b500490565b6000826154fa576154fa6154c1565b500690565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906155c890830184614ad8565b979650505050505050565b6000602082840312156155e557600080fd5b8151611fb581614a41565b600060033d11156148395760046000803e5060005160e01c90565b600060443d10156156195790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561564857505050505090565b82850191508151818111156156605750505050505090565b843d870101602082850101111561567a5750505050505090565b61568960208286010187614c43565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b0386811682528516602082015260a06040820181905260009061571e90830186614e6d565b82810360608401526157308186614e6d565b905082810360808401526157448185614ad8565b98975050505050505050565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220a474c5a4736dcdaa1f7b6f9609c2f08f7cfdd389c4457d9f135ee3d2e083783c64736f6c634300080b0033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000008db6fe68edd5a9f26502f5de274baf1573d9222000000000000000000000000ad20084e30624f5eb5d2346ea509c35a86e8f9eb000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f6170692e79323132332e696f2f61737365742d636c616e733f69643d00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _baseURI (string): https://api.y2123.io/asset-clans?id=
Arg [1] : _oxgnToken (address): 0x08dB6FE68EDD5A9f26502f5dE274bAF1573D9222
Arg [2] : _y2123Nft (address): 0xAd20084e30624F5eB5d2346ea509C35A86E8f9eB

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000008db6fe68edd5a9f26502f5de274baf1573d9222
Arg [2] : 000000000000000000000000ad20084e30624f5eb5d2346ea509c35a86e8f9eb
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000024
Arg [4] : 68747470733a2f2f6170692e79323132332e696f2f61737365742d636c616e73
Arg [5] : 3f69643d00000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.