ETH Price: $3,394.32 (+1.64%)
Gas: 3.03 Gwei

Token

RainiNFT1155v2 ()
 

Overview

Max Total Supply

0

Holders

328

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x245b51b64be7ea3bf5cf71fdededd4f7550eb54b
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:
RainiNFT1155v2

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : RainiNft1155v2.sol
// "SPDX-License-Identifier: MIT"

pragma solidity ^0.8.3;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

interface IStakingPool {
  function balanceOf(address _owner) external view returns (uint256 balance);
  function burn(address _owner, uint256 _amount) external;
}

interface INftStakingPool {
  function getTokenStamina(uint256 _tokenId, address _nftContractAddress) external view returns (uint256 stamina);
  function mergeTokens(uint256 _newTokenId, uint256[] memory _tokenIds, address _nftContractAddress) external;
}

interface IRainiCustomNFT {
  function onTransfered(address from, address to, uint256 id, uint256 amount, bytes memory data) external;
  function onMerged(uint256 _newTokenId, uint256[] memory _tokenId, address _nftContractAddress, uint256[] memory data) external;
  function onMinted(address _to, uint256 _tokenId, uint256 _cardId, uint256 _cardLevel, uint256 _amount, bytes1 _mintedContractChar, uint256 _number, uint256[] memory _data) external;
  function uri(uint256 id) external view returns (string memory);
}

contract RainiNFT1155v2 is ERC1155, AccessControl {

  bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
  bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");

  address public nftStakingPoolAddress;

  struct CardLevel {
    uint64 conversionRate; // number of base tokens required to create
    uint32 numberMinted;
    uint128 tokenId; // ID of token if grouped, 0 if not
    uint32 maxStamina; // The initial and maxiumum stamina for a token
  }

  struct Card {
    uint64 costInUnicorns;
    uint64 costInRainbows;
    uint16 maxMintsPerAddress;
    uint32 maxSupply; // number of base tokens mintable
    uint32 allocation; // number of base tokens mintable with points on this contract
    uint32 mintTimeStart; // the timestamp from which the card can be minted
    bool locked;
    address subContract;
  }

  struct TokenVars {
    uint128 cardId;
    uint32 level;
    uint32 number; // to assign a numbering to NFTs
    bytes1 mintedContractChar;
  }

  string public baseUri;
  bytes1 public contractChar;
  string public contractURIString;

  // userId => cardId => count
  mapping(address => mapping(uint256 => uint256)) public numberMintedByAddress; // Number of a card minted by an address

  mapping(address => bool) public rainbowPools;
  mapping(address => bool) public unicornPools;

  uint256 public maxTokenId;
  uint256 public maxCardId;

  address private contractOwner;

  mapping(uint256 => Card) public cards;
  mapping(uint256 => string) public cardPathUri;
  mapping(uint256 => CardLevel[]) public cardLevels;
  mapping(uint256 => uint256) public mergeFees;
  uint256 public mintingFeeBasisPoints;

  mapping(uint256 => TokenVars) public tokenVars;


  constructor(string memory _uri, bytes1 _contractChar, string memory _contractURIString, address _contractOwner) 
    ERC1155(_uri) {
      _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
      _setupRole(DEFAULT_ADMIN_ROLE, _contractOwner);
      _setupRole(MINTER_ROLE, _msgSender());
      _setupRole(BURNER_ROLE, _msgSender());
    baseUri = _uri;
    contractOwner = _contractOwner;
    contractChar = _contractChar;
    contractURIString = _contractURIString;
  }

  modifier onlyOwner() {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()));
    _;
  }

  modifier onlyMinter() {
    require(hasRole(MINTER_ROLE, _msgSender()), "caller is not a minter");
    _;
  }

  modifier onlyBurner() {
    require(hasRole(BURNER_ROLE, _msgSender()), "caller is not a burner");
    _;
  }

  function setcontractURI(string memory _contractURIString)
    external onlyOwner {
      contractURIString = _contractURIString;
  }

  function setFees(uint256 _mintingFeeBasisPoints, uint256[] memory _mergeFees) 
    external onlyOwner {
      mintingFeeBasisPoints =_mintingFeeBasisPoints;
      for (uint256 i = 1; i < _mergeFees.length; i++) {
        mergeFees[i] = _mergeFees[i];
      }
  }

  function setNftStakingPoolAddress(address _nftStakingPoolAddress)
    external onlyOwner {
      nftStakingPoolAddress = (_nftStakingPoolAddress);
  }

  function getTokenStamina(uint256 _tokenId)
    external view returns (uint256) {
      if (nftStakingPoolAddress == address(0)) {
        TokenVars memory _tokenVars =  tokenVars[_tokenId];
        require(_tokenVars.cardId != 0, "No token for given ID");
        return cardLevels[_tokenVars.cardId][_tokenVars.level].maxStamina;
      } else {
        INftStakingPool nftStakingPool = INftStakingPool(nftStakingPoolAddress);
        return nftStakingPool.getTokenStamina(_tokenId, address(this));
      }
  }

  function getTotalBalance(address _address) 
    external view returns (uint256[][] memory amounts) {
      uint256[][] memory _amounts = new uint256[][](maxTokenId);
      uint256 count;
      for (uint256 i = 1; i <= maxTokenId; i++) {
        uint256 balance = balanceOf(_address, i);
        if (balance != 0) {
          _amounts[count] = new uint256[](2);
          _amounts[count][0] = i;
          _amounts[count][1] = balance;
          count++;
        }
      }

      uint256[][] memory _amounts2 = new uint256[][](count);
      for (uint256 i = 0; i < count; i++) {
        _amounts2[i] = new uint256[](2);
        _amounts2[i][0] = _amounts[i][0];
        _amounts2[i][1] = _amounts[i][1];
      }

      return _amounts2;
  }


  struct MergeData {
    uint256 cost;
    uint256 totalPointsBurned;
    uint256 currentTokenToMint;
    bool willCallPool;
    bool willCallSubContract;
  }

  function initCards(uint256[] memory _costInUnicorns, uint256[] memory _costInRainbows, uint256[] memory _maxMintsPerAddress,  uint16[] memory _maxSupply, uint256[] memory _allocation, string[] memory _pathUri, address[] memory _subContract, uint32[] memory _mintTimeStart, uint16[][] memory _conversionRates, bool[][] memory _isGrouped, uint256[][] memory _maxStamina)
    external onlyOwner() {

      uint256 _maxCardId = maxCardId;
      uint256 _maxTokenId = maxTokenId;

      for (uint256 i; i < _costInUnicorns.length; i++) {
        require(_conversionRates[i].length == _isGrouped[i].length);

        _maxCardId++;
        cards[_maxCardId] = Card({
            costInUnicorns: uint64(_costInUnicorns[i]),
            costInRainbows: uint64(_costInRainbows[i]),
            maxMintsPerAddress: uint16(_maxMintsPerAddress[i]),
            maxSupply: uint32(_maxSupply[i]),
            allocation: uint32(_allocation[i]),
            mintTimeStart: uint32(_mintTimeStart[i]),
            locked: false,
            subContract: _subContract[i]
          });

        cardPathUri[_maxCardId] = _pathUri[i];
        
        for (uint256 j = 0; j < _conversionRates[i].length; j++) {
          uint256 _tokenId = 0;

          if (_isGrouped[i][j]) {
            _maxTokenId++;
            _tokenId = _maxTokenId;
            tokenVars[_maxTokenId] = TokenVars({
              cardId: uint128(_maxCardId),
              level: uint32(j),
              number: 0,
              mintedContractChar: contractChar
            });
          }

          cardLevels[_maxCardId].push(CardLevel({
            conversionRate: uint64(_conversionRates[i][j]),
            numberMinted: 0,
            tokenId: uint128(_tokenId),
            maxStamina: uint32(_maxStamina[i][j])
          }));
        }
        
      }

      maxTokenId = _maxTokenId;
      maxCardId = _maxCardId;
  }
  
  function _mintToken(address _to, uint256 _cardId, uint256 _cardLevel, uint256 _amount, bytes1 _mintedContractChar, uint256 _number, uint256[] memory _data) private {
    Card memory card = cards[_cardId];
    CardLevel memory cardLevel = cardLevels[_cardId][_cardLevel];


    require(_cardLevel > 0 || cardLevel.numberMinted + _amount <= card.maxSupply, "total supply reached.");
    require(_cardLevel == 0 || cardLevel.numberMinted * cardLevel.conversionRate + _amount <= card.maxSupply, "total supply reached.");

    uint256 _tokenId;

    if (cardLevel.tokenId != 0) {
      _tokenId = cardLevel.tokenId;
      _mint(_to, _tokenId, _amount, "");
    } else {
      for (uint256 i = 0; i < _amount; i++) {
        uint256 num;
        if (_number == 0) {
          cardLevel.numberMinted += 1;
          num = cardLevel.numberMinted;
        } else {
          num = _number;
        }

        uint256 _maxTokenId = maxTokenId;
        _maxTokenId++;
        _tokenId = _maxTokenId;
        _mint(_to, _tokenId, 1, "");
        tokenVars[_maxTokenId] = TokenVars({
          cardId: uint128(_cardId),
          level: uint32(_cardLevel),
          number: uint32(num),
          mintedContractChar: _mintedContractChar
        });

        maxTokenId = _maxTokenId;
      }
    }

    if (card.subContract != address(0)) {
      IRainiCustomNFT subContract = IRainiCustomNFT(card.subContract);
      subContract.onMinted(_to, _tokenId, _cardId, _cardLevel, _amount, _mintedContractChar, _number, _data);
    }

    cardLevels[_cardId][_cardLevel].numberMinted += uint32(_amount);
  }

  function mint(address _to, uint256 _cardId, uint256 _cardLevel, uint256 _amount, bytes1 _mintedContractChar, uint256 _number, uint256[] memory _data) 
    external onlyMinter {
      _mintToken(_to, _cardId, _cardLevel, _amount, _mintedContractChar, _number, _data);
  }

  function burn(address _owner, uint256 _tokenId, uint256 _amount, bool _isBridged) 
    external onlyBurner {
      if (_isBridged) {
        TokenVars memory _tokenVars =  tokenVars[_tokenId];
        cardLevels[_tokenVars.cardId][_tokenVars.level].numberMinted -= uint32(_amount);
      }
      _burn(_owner, _tokenId, _amount);
  }

  function lockCard(uint256 _cardId) external onlyOwner {
    cards[_cardId].locked = true;
  }

  function updateCardPathUri(uint256 _cardId, string memory _pathUri) external onlyOwner {
    require(!cards[_cardId].locked, 'card locked');
    cardPathUri[_cardId] = _pathUri;
  }

  function updateCardSubContract(uint256 _cardId, address _contractAddress) external onlyOwner {
    require(!cards[_cardId].locked, 'card locked');
    cards[_cardId].subContract = _contractAddress;
  }

  function addToNumberMintedByAddress(address _address, uint256 _cardId, uint256 _amount) external onlyMinter {
    numberMintedByAddress[_address][_cardId] += _amount;
  }

  function supportsInterface(bytes4 interfaceId) 
    public virtual override(ERC1155, AccessControl) view returns (bool) {
        return interfaceId == type(IERC1155).interfaceId
            || interfaceId == type(IERC1155MetadataURI).interfaceId
            || interfaceId == type(IAccessControl).interfaceId
            || super.supportsInterface(interfaceId);
  }

  function uri(uint256 id) public view virtual override returns (string memory) {
    TokenVars memory _tokenVars =  tokenVars[id];
    require(_tokenVars.cardId != 0, "No token for given ID");

    if (cards[_tokenVars.cardId].subContract == address(0)) {
      return string(abi.encodePacked(baseUri, cardPathUri[_tokenVars.cardId], "/", _tokenVars.mintedContractChar, "l", uint2str(_tokenVars.level), "n", uint2str(_tokenVars.number), ".json"));
    } else {
      IRainiCustomNFT subContract = IRainiCustomNFT(cards[_tokenVars.cardId].subContract);
      return subContract.uri(id);
    }
  }

  function uint2str(uint _i) internal pure returns (string memory _uintAsString) {
    if (_i == 0) {
        return "0";
    }
    uint j = _i;
    uint len;
    while (j != 0) {
        len++;
        j /= 10;
    }
    bytes memory bstr = new bytes(len);
    uint k = len;
    while (_i != 0) {
        k = k-1;
        uint8 temp = (48 + uint8(_i - _i / 10 * 10));
        bytes1 b1 = bytes1(temp);
        bstr[k] = b1;
        _i /= 10;
    }
    return string(bstr);
  }

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

  function owner() public view virtual returns (address) {
    return contractOwner;
  }

  // Allow the owner to withdraw Ether payed into the contract
  function withdrawEth(uint256 _amount)
    external onlyOwner {
      require(_amount <= address(this).balance, "not enough balance");
      (bool success, ) = _msgSender().call{ value: _amount }("");
      require(success, "transfer failed");
  }

  function _beforeTokenTransfer(address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data)
    internal virtual override
  {
    for (uint256 i = 0; i < ids.length; i++) {
      TokenVars memory _tokenVars = tokenVars[ids[i]];
      if (cards[_tokenVars.cardId].subContract != address(0)) {
        IRainiCustomNFT subContract = IRainiCustomNFT(cards[_tokenVars.cardId].subContract);
        subContract.onTransfered(from, to, ids[i], amounts[i], data);
      }
    }
  }

}

File 2 of 11 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    function hasRole(bytes32 role, address account) external view returns (bool);

    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    function grantRole(bytes32 role, address account) external;

    function revokeRole(bytes32 role, address account) external;

    function renounceRole(bytes32 role, address account) external;
}

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, getRoleAdmin(role), adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 11 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver(to).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(to).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 11 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

File 6 of 11 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 7 of 11 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private 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 8 of 11 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 10 of 11 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"bytes1","name":"_contractChar","type":"bytes1"},{"internalType":"string","name":"_contractURIString","type":"string"},{"internalType":"address","name":"_contractOwner","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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_cardId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addToNumberMintedByAddress","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":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_isBridged","type":"bool"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"cardLevels","outputs":[{"internalType":"uint64","name":"conversionRate","type":"uint64"},{"internalType":"uint32","name":"numberMinted","type":"uint32"},{"internalType":"uint128","name":"tokenId","type":"uint128"},{"internalType":"uint32","name":"maxStamina","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cardPathUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cards","outputs":[{"internalType":"uint64","name":"costInUnicorns","type":"uint64"},{"internalType":"uint64","name":"costInRainbows","type":"uint64"},{"internalType":"uint16","name":"maxMintsPerAddress","type":"uint16"},{"internalType":"uint32","name":"maxSupply","type":"uint32"},{"internalType":"uint32","name":"allocation","type":"uint32"},{"internalType":"uint32","name":"mintTimeStart","type":"uint32"},{"internalType":"bool","name":"locked","type":"bool"},{"internalType":"address","name":"subContract","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractChar","outputs":[{"internalType":"bytes1","name":"","type":"bytes1"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURIString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTokenStamina","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getTotalBalance","outputs":[{"internalType":"uint256[][]","name":"amounts","type":"uint256[][]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_costInUnicorns","type":"uint256[]"},{"internalType":"uint256[]","name":"_costInRainbows","type":"uint256[]"},{"internalType":"uint256[]","name":"_maxMintsPerAddress","type":"uint256[]"},{"internalType":"uint16[]","name":"_maxSupply","type":"uint16[]"},{"internalType":"uint256[]","name":"_allocation","type":"uint256[]"},{"internalType":"string[]","name":"_pathUri","type":"string[]"},{"internalType":"address[]","name":"_subContract","type":"address[]"},{"internalType":"uint32[]","name":"_mintTimeStart","type":"uint32[]"},{"internalType":"uint16[][]","name":"_conversionRates","type":"uint16[][]"},{"internalType":"bool[][]","name":"_isGrouped","type":"bool[][]"},{"internalType":"uint256[][]","name":"_maxStamina","type":"uint256[][]"}],"name":"initCards","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"_cardId","type":"uint256"}],"name":"lockCard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxCardId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mergeFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_cardId","type":"uint256"},{"internalType":"uint256","name":"_cardLevel","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes1","name":"_mintedContractChar","type":"bytes1"},{"internalType":"uint256","name":"_number","type":"uint256"},{"internalType":"uint256[]","name":"_data","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintingFeeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftStakingPoolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"numberMintedByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rainbowPools","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintingFeeBasisPoints","type":"uint256"},{"internalType":"uint256[]","name":"_mergeFees","type":"uint256[]"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftStakingPoolAddress","type":"address"}],"name":"setNftStakingPoolAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURIString","type":"string"}],"name":"setcontractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenVars","outputs":[{"internalType":"uint128","name":"cardId","type":"uint128"},{"internalType":"uint32","name":"level","type":"uint32"},{"internalType":"uint32","name":"number","type":"uint32"},{"internalType":"bytes1","name":"mintedContractChar","type":"bytes1"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"unicornPools","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"},{"internalType":"string","name":"_pathUri","type":"string"}],"name":"updateCardPathUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"},{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"updateCardSubContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162004dd238038062004dd2833981016040819052620000349162000334565b83620000408162000115565b506200004f6000335b6200012e565b6200005c6000826200012e565b620000887f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000049565b620000b47f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8483362000049565b8351620000c9906005906020870190620001db565b50600d80546001600160a01b0319166001600160a01b0383161790556006805460ff191660f885901c17905581516200010a906007906020850190620001db565b505050505062000448565b80516200012a906002906020840190620001db565b5050565b60008281526003602090815260408083206001600160a01b03851684529091529020546200012a908390839060ff166200012a5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001973390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620001e990620003f5565b90600052602060002090601f0160209004810192826200020d576000855562000258565b82601f106200022857805160ff191683800117855562000258565b8280016001018555821562000258579182015b82811115620002585782518255916020019190600101906200023b565b50620002669291506200026a565b5090565b5b808211156200026657600081556001016200026b565b600082601f83011262000292578081fd5b81516001600160401b0380821115620002af57620002af62000432565b604051601f8301601f19908116603f01168101908282118183101715620002da57620002da62000432565b81604052838152602092508683858801011115620002f6578485fd5b8491505b83821015620003195785820183015181830184015290820190620002fa565b838211156200032a57848385830101525b9695505050505050565b600080600080608085870312156200034a578384fd5b84516001600160401b038082111562000361578586fd5b6200036f8883890162000281565b602088015190965091507fff0000000000000000000000000000000000000000000000000000000000000082168214620003a7578485fd5b604087015191945080821115620003bc578384fd5b50620003cb8782880162000281565b606087015190935090506001600160a01b0381168114620003ea578182fd5b939692955090935050565b600181811c908216806200040a57607f821691505b602082108114156200042c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61497a80620004586000396000f3fe608060405234801561001057600080fd5b50600436106102895760003560e01c80638da5cb5b1161015c578063bf0e8c0d116100ce578063d547741f11610087578063d547741f146107b9578063e8a3d485146107cc578063e985e9c5146107d4578063efa00ce714610810578063f242432a14610823578063f9f98af61461083657610289565b8063bf0e8c0d14610726578063c2fa401914610739578063c311d0491461074c578063d3d381931461075f578063d50345c91461077f578063d53913931461079257610289565b80639abc8320116101205780639abc8320146106bd578063a217fddf146106c5578063a22cb465146106cd578063a39501df146106e0578063b12b99a0146106f3578063bda3ed071461070657610289565b80638da5cb5b146105ac5780638dc10768146105b457806391ba317a1461069857806391d14854146106a157806392d62ccd146106b457610289565b8063282c51f3116102005780634e1273f4116101b95780634e1273f4146104f1578063582f706f146105115780636bb2e32d1461051a57806370e7d274146105405780637e41d8351461059157806388f7c16c1461059957610289565b8063282c51f31461046b5780632eb2c2d6146104925780632f2ff15d146104a557806331126dd1146104b857806336568abe146104cb5780633c369ebe146104de57610289565b80630c024776116102525780630c024776146103b25780630e89341c146103dd57806313f43160146103fd57806317c0f08e146104205780631d9083f314610435578063248a9ca31461044857610289565b8062fdd58e1461028e57806301870f02146102b457806301ffc9a71461034157806308a55a6e146103645780630a3de45114610387575b600080fd5b6102a161029c366004613ca0565b610849565b6040519081526020015b60405180910390f35b6103036102c2366004613fe0565b6013602052600090815260409020546001600160801b0381169063ffffffff600160801b8204811691600160a01b810490911690600160c01b900460f81b84565b604080516001600160801b0395909516855263ffffffff938416602086015291909216908301526001600160f81b03191660608201526080016102ab565b61035461034f36600461401a565b6108e0565b60405190151581526020016102ab565b610354610372366004613b24565b60096020526000908152604090205460ff1681565b6102a1610395366004613ca0565b600860209081526000928352604080842090915290825290205481565b6004546103c5906001600160a01b031681565b6040516001600160a01b0390911681526020016102ab565b6103f06103eb366004613fe0565b610943565b6040516102ab9190614555565b61035461040b366004613b24565b600a6020526000908152604090205460ff1681565b61043361042e366004613e30565b610b45565b005b610433610443366004613b24565b6111c5565b6102a1610456366004613fe0565b60009081526003602052604090206001015490565b6102a17f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b6104336104a0366004613b70565b6111fb565b6104336104b3366004613ff8565b611292565b6104336104c6366004613cfb565b6112be565b6104336104d9366004613ff8565b611423565b6104336104ec36600461415b565b6114a1565b6105046104ff366004613dd0565b611528565b6040516102ab9190614514565b6102a160125481565b6006546105279060f81b81565b6040516001600160f81b031990911681526020016102ab565b61055361054e366004614195565b611689565b604080516001600160401b03909516855263ffffffff93841660208601526001600160801b03909216918401919091521660608201526080016102ab565b6103f06116e9565b6104336105a7366004613fe0565b611777565b6103c56117ac565b6106376105c2366004613fe0565b600e60205260009081526040902080546001909101546001600160401b0380831692600160401b81049091169161ffff600160801b8304169163ffffffff600160901b8204811692600160b01b8304821692600160d01b81049092169160ff600160f01b90910416906001600160a01b031688565b604080516001600160401b03998a16815298909716602089015261ffff9095169587019590955263ffffffff928316606087015290821660808601521660a084015290151560c08301526001600160a01b031660e0820152610100016102ab565b6102a1600b5481565b6103546106af366004613ff8565b6117bc565b6102a1600c5481565b6103f06117e7565b6102a1600081565b6104336106db366004613c77565b6117f4565b6104336106ee366004613d40565b6118d8565b610433610701366004613ff8565b61195f565b6102a1610714366004613fe0565b60116020526000908152604090205481565b6102a1610734366004613fe0565b6119f8565b610433610747366004613cc9565b611bae565b61043361075a366004613fe0565b611c5a565b61077261076d366004613b24565b611d3d565b6040516102ab91906144b3565b6103f061078d366004613fe0565b6120e9565b6102a17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6104336107c7366004613ff8565b612102565b6103f0612128565b6103546107e2366004613b3e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61043361081e366004614052565b6121ba565b610433610831366004613c15565b6121e1565b610433610844366004614121565b612268565b60006001600160a01b0383166108ba5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061091157506001600160e01b031982166303a24d0760e21b145b8061092c57506001600160e01b03198216637965db0b60e01b145b8061093b575061093b826122db565b90505b919050565b600081815260136020908152604091829020825160808101845290546001600160801b038116808352600160801b820463ffffffff90811694840194909452600160a01b820490931693820193909352600160c01b90920460f81b6001600160f81b03191660608084019190915291906109f75760405162461bcd60e51b8152602060048201526015602482015274139bc81d1bdad95b88199bdc8819da5d995b881251605a1b60448201526064016108b1565b80516001600160801b03166000908152600e60205260409020600101546001600160a01b0316610a99576005600f600083600001516001600160801b031681526020019081526020016000208260600151610a5b846020015163ffffffff16612300565b610a6e856040015163ffffffff16612300565b604051602001610a829594939291906142b4565b60405160208183030381529060405291505061093e565b80516001600160801b03166000908152600e6020526040908190206001015490516303a24d0760e21b8152600481018590526001600160a01b03909116908190630e89341c9060240160006040518083038186803b158015610afa57600080fd5b505afa158015610b0e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b36919081019061408c565b9250505061093e565b50919050565b610b506000336106af565b610b5957600080fd5b600c54600b5460005b8d518110156111b157848181518110610b8b57634e487b7160e01b600052603260045260246000fd5b602002602001015151868281518110610bb457634e487b7160e01b600052603260045260246000fd5b60200260200101515114610bc757600080fd5b82610bd18161483c565b9350506040518061010001604052808f8381518110610c0057634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160401b031681526020018e8381518110610c3657634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160401b031681526020018d8381518110610c6c57634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff1681526020018c8381518110610c9d57634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff1663ffffffff1681526020018b8381518110610cd457634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff168152602001888381518110610d0757634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff168152602001600015158152602001898381518110610d4357634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b039081169092526000868152600e82526040908190208451815493860151928601516060870151608088015160a089015160c08a01516001600160401b039586166fffffffffffffffffffffffffffffffff1990991698909817600160401b95909716949094029590951765ffffffffffff60801b1916600160801b61ffff9093169290920263ffffffff60901b191691909117600160901b63ffffffff928316021767ffffffffffffffff60b01b1916600160b01b9482169490940263ffffffff60d01b191693909317600160d01b93909116929092029190911760ff60f01b1916600160f01b9215159290920291909117815560e090920151600190920180546001600160a01b031916929091169190911790558851899082908110610e8e57634e487b7160e01b600052603260045260246000fd5b6020026020010151600f60008581526020019081526020016000209080519060200190610ebc929190613646565b5060005b868281518110610ee057634e487b7160e01b600052603260045260246000fd5b60200260200101515181101561119e576000868381518110610f1257634e487b7160e01b600052603260045260246000fd5b60200260200101518281518110610f3957634e487b7160e01b600052603260045260246000fd5b6020026020010151156110045783610f508161483c565b604080516080810182526001600160801b03898116825263ffffffff8781166020808501918252600085870181815260065460f890811b6001600160f81b031916606089019081528a84526013909452979091209551865493519151925195166001600160a01b031990931692909217600160801b928416929092029190911764ffffffffff60a01b1916600160a01b919092160260ff60c01b191617600160c01b9190931c029190911790559450849150505b6010600086815260200190815260200160002060405180608001604052808a868151811061104257634e487b7160e01b600052603260045260246000fd5b6020026020010151858151811061106957634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff166001600160401b03168152602001600063ffffffff168152602001836001600160801b031681526020018886815181106110bf57634e487b7160e01b600052603260045260246000fd5b602002602001015185815181106110e657634e487b7160e01b600052603260045260246000fd5b60209081029190910181015163ffffffff90811690925283546001810185556000948552938190208351940180549184015160408501516060909501518416600160e01b026001600160e01b036001600160801b03909616600160601b02959095166bffffffffffffffffffffffff91909416600160401b026bffffffffffffffffffffffff199093166001600160401b039096169590951791909117939093161717905550806111968161483c565b915050610ec0565b50806111a98161483c565b915050610b62565b50600b55600c555050505050505050505050565b6111d06000336106af565b6111d957600080fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038516331480611217575061121785336107e2565b61127e5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016108b1565b61128b858585858561243c565b5050505050565b6000828152600360205260409020600101546112af81335b612643565b6112b983836126a7565b505050565b6112e87f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848336106af565b61132d5760405162461bcd60e51b815260206004820152601660248201527531b0b63632b91034b9903737ba103090313ab93732b960511b60448201526064016108b1565b8015611412576000838152601360209081526040808320815160808101835290546001600160801b038116808352600160801b820463ffffffff908116848701908152600160a01b8404821685870152600160c01b90930460f81b6001600160f81b0319166060850152908652601090945291909320905181548693919091169081106113ca57634e487b7160e01b600052603260045260246000fd5b600091825260209091200180546008906113f2908490600160401b900463ffffffff16614773565b92506101000a81548163ffffffff021916908363ffffffff160217905550505b61141d84848461272d565b50505050565b6001600160a01b03811633146114935760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016108b1565b61149d82826128a6565b5050565b6114ac6000336106af565b6114b557600080fd5b6000828152600e6020526040902054600160f01b900460ff16156115095760405162461bcd60e51b815260206004820152600b60248201526a18d85c99081b1bd8dad95960aa1b60448201526064016108b1565b6000828152600f6020908152604090912082516112b992840190613646565b6060815183511461158d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016108b1565b600083516001600160401b038111156115b657634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156115df578160200160208202803683370190505b50905060005b84518110156116815761164685828151811061161157634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061163957634e487b7160e01b600052603260045260246000fd5b6020026020010151610849565b82828151811061166657634e487b7160e01b600052603260045260246000fd5b602090810291909101015261167a8161483c565b90506115e5565b509392505050565b601060205281600052604060002081815481106116a557600080fd5b6000918252602090912001546001600160401b038116925063ffffffff600160401b8204811692506001600160801b03600160601b83041691600160e01b90041684565b600780546116f6906147db565b80601f0160208091040260200160405190810160405280929190818152602001828054611722906147db565b801561176f5780601f106117445761010080835404028352916020019161176f565b820191906000526020600020905b81548152906001019060200180831161175257829003601f168201915b505050505081565b6117826000336106af565b61178b57600080fd5b6000908152600e60205260409020805460ff60f01b1916600160f01b179055565b600d546001600160a01b03165b90565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600580546116f6906147db565b336001600160a01b038316141561185f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016108b1565b3360008181526001602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118cc911515815260200190565b60405180910390a35050565b6119027f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336106af565b6119475760405162461bcd60e51b815260206004820152601660248201527531b0b63632b91034b9903737ba10309036b4b73a32b960511b60448201526064016108b1565b6119568787878787878761290d565b50505050505050565b61196a6000336106af565b61197357600080fd5b6000828152600e6020526040902054600160f01b900460ff16156119c75760405162461bcd60e51b815260206004820152600b60248201526a18d85c99081b1bd8dad95960aa1b60448201526064016108b1565b6000918252600e602052604090912060010180546001600160a01b0319166001600160a01b03909216919091179055565b6004546000906001600160a01b0316611b2457600082815260136020908152604091829020825160808101845290546001600160801b038116808352600160801b820463ffffffff90811694840194909452600160a01b820490931693820193909352600160c01b90920460f81b6001600160f81b0319166060830152611ab95760405162461bcd60e51b8152602060048201526015602482015274139bc81d1bdad95b88199bdc8819da5d995b881251605a1b60448201526064016108b1565b6010600082600001516001600160801b03168152602001908152602001600020816020015163ffffffff1681548110611b0257634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600160e01b900463ffffffff16915061093e9050565b600480546040516367bb908760e01b81529182018490523060248301526001600160a01b03169081906367bb90879060440160206040518083038186803b158015611b6e57600080fd5b505afa158015611b82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba69190614109565b91505061093e565b611bd87f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336106af565b611c1d5760405162461bcd60e51b815260206004820152601660248201527531b0b63632b91034b9903737ba10309036b4b73a32b960511b60448201526064016108b1565b6001600160a01b038316600090815260086020908152604080832085845290915281208054839290611c50908490614689565b9091555050505050565b611c656000336106af565b611c6e57600080fd5b47811115611cb35760405162461bcd60e51b81526020600482015260126024820152716e6f7420656e6f7567682062616c616e636560701b60448201526064016108b1565b604051600090339083908381818185875af1925050503d8060008114611cf5576040519150601f19603f3d011682016040523d82523d6000602084013e611cfa565b606091505b505090508061149d5760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b60448201526064016108b1565b60606000600b546001600160401b03811115611d6957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611d9c57816020015b6060815260200190600190039081611d875790505b509050600060015b600b548111611ed4576000611db98683610849565b90508015611ec157604080516002808252606082018352909160208301908036833701905050848481518110611dff57634e487b7160e01b600052603260045260246000fd5b602002602001018190525081848481518110611e2b57634e487b7160e01b600052603260045260246000fd5b6020026020010151600081518110611e5357634e487b7160e01b600052603260045260246000fd5b60200260200101818152505080848481518110611e8057634e487b7160e01b600052603260045260246000fd5b6020026020010151600181518110611ea857634e487b7160e01b600052603260045260246000fd5b602090810291909101015282611ebd8161483c565b9350505b5080611ecc8161483c565b915050611da4565b506000816001600160401b03811115611efd57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611f3057816020015b6060815260200190600190039081611f1b5790505b50905060005b828110156120e057604080516002808252606082018352909160208301908036833701905050828281518110611f7c57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250838181518110611fa757634e487b7160e01b600052603260045260246000fd5b6020026020010151600081518110611fcf57634e487b7160e01b600052603260045260246000fd5b6020026020010151828281518110611ff757634e487b7160e01b600052603260045260246000fd5b602002602001015160008151811061201f57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505083818151811061204b57634e487b7160e01b600052603260045260246000fd5b602002602001015160018151811061207357634e487b7160e01b600052603260045260246000fd5b602002602001015182828151811061209b57634e487b7160e01b600052603260045260246000fd5b60200260200101516001815181106120c357634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806120d88161483c565b915050611f36565b50949350505050565b600f60205260009081526040902080546116f6906147db565b60008281526003602052604090206001015461211e81336112aa565b6112b983836128a6565b606060078054612137906147db565b80601f0160208091040260200160405190810160405280929190818152602001828054612163906147db565b80156121b05780601f10612185576101008083540402835291602001916121b0565b820191906000526020600020905b81548152906001019060200180831161219357829003601f168201915b5050505050905090565b6121c56000336106af565b6121ce57600080fd5b805161149d906007906020840190613646565b6001600160a01b0385163314806121fd57506121fd85336107e2565b61225b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016108b1565b61128b8585858585612db3565b6122736000336106af565b61227c57600080fd5b601282905560015b81518110156112b9578181815181106122ad57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008381526011909252604090912055806122d38161483c565b915050612284565b60006001600160e01b03198216637965db0b60e01b148061093b575061093b82612ed6565b60608161232557506040805180820190915260018152600360fc1b602082015261093e565b8160005b811561234f57806123398161483c565b91506123489050600a836146ee565b9150612329565b6000816001600160401b0381111561237757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156123a1576020820181803683370190505b509050815b85156120e0576123b760018261475c565b905060006123c6600a886146ee565b6123d190600a61470e565b6123db908861475c565b6123e69060306146c9565b905060008160f81b90508084848151811061241157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612433600a896146ee565b975050506123a6565b815183511461249e5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016108b1565b6001600160a01b0384166124c45760405162461bcd60e51b81526004016108b1906145b0565b336124d3818787878787612f26565b60005b84518110156125d557600085828151811061250157634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061252d57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561257d5760405162461bcd60e51b81526004016108b1906145f5565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906125ba908490614689565b92505081905550505050806125ce9061483c565b90506124d6565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612625929190614527565b60405180910390a461263b8187878787876130d3565b505050505050565b61264d82826117bc565b61149d57612665816001600160a01b0316601461323e565b61267083602061323e565b604051602001612681929190614340565b60408051601f198184030181529082905262461bcd60e51b82526108b191600401614555565b6126b182826117bc565b61149d5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff191660011790556126e93390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03831661278f5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b60648201526084016108b1565b336127be818560006127a087613426565b6127a987613426565b60405180602001604052806000815250612f26565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561283b5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b60648201526084016108b1565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6128b082826117bc565b1561149d5760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000868152600e6020908152604080832081516101008101835281546001600160401b038082168352600160401b8204168286015261ffff600160801b8204168285015263ffffffff600160901b820481166060840152600160b01b820481166080840152600160d01b82041660a083015260ff600160f01b90910416151560c08201526001909101546001600160a01b031660e0820152898452601090925282208054919291889081106129d257634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805160808101825291909201546001600160401b038116825263ffffffff600160401b82048116948301949094526001600160801b03600160601b82041692820192909252600160e01b9091049091166060820152905086151580612a635750816060015163ffffffff1686826020015163ffffffff16612a609190614689565b11155b612aa75760405162461bcd60e51b81526020600482015260156024820152743a37ba30b61039bab838363c903932b0b1b432b21760591b60448201526064016108b1565b861580612aeb5750816060015163ffffffff16868260000151836020015163ffffffff16612ad5919061472d565b6001600160401b0316612ae89190614689565b11155b612b2f5760405162461bcd60e51b81526020600482015260156024820152743a37ba30b61039bab838363c903932b0b1b432b21760591b60448201526064016108b1565b600081604001516001600160801b0316600014612b765781604001516001600160801b03169050612b718a82896040518060200160405280600081525061347f565b612caa565b60005b87811015612ca857600086612bb557600184602001818151612b9b91906146a1565b63ffffffff9081169091526020860151169150612bb89050565b50855b600b5480612bc58161483c565b915050809350612be78d8560016040518060200160405280600081525061347f565b604080516080810182526001600160801b03808f16825263ffffffff808f1660208085019182529682168486019081526001600160f81b03198f166060860190815260008881526013909952959097209351845491519751955160f81c600160c01b0260ff60c01b19968416600160a01b029690961664ffffffffff60a01b1998909316600160801b026001600160a01b031990921693169290921791909117949094169390931717909155600b5580612ca08161483c565b915050612b79565b505b60e08301516001600160a01b031615612d305760e08301516040516360cb9a0d60e11b81526001600160a01b0382169063c197341a90612cfc908e9086908f908f908f908f908f908f90600401614458565b600060405180830381600087803b158015612d1657600080fd5b505af1158015612d2a573d6000803e3d6000fd5b50505050505b600089815260106020526040902080548891908a908110612d6157634e487b7160e01b600052603260045260246000fd5b60009182526020909120018054600890612d89908490600160401b900463ffffffff166146a1565b92506101000a81548163ffffffff021916908363ffffffff16021790555050505050505050505050565b6001600160a01b038416612dd95760405162461bcd60e51b81526004016108b1906145b0565b33612df8818787612de988613426565b612df288613426565b87612f26565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015612e395760405162461bcd60e51b81526004016108b1906145f5565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612e76908490614689565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461195682888888888861357c565b60006001600160e01b03198216636cdb3d1360e11b1480612f0757506001600160e01b031982166303a24d0760e21b145b8061093b57506301ffc9a760e01b6001600160e01b031983161461093b565b60005b835181101561195657600060136000868481518110612f5857634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182528181019290925260409081016000908120825160808101845290546001600160801b038116808352600160801b820463ffffffff90811684880152600160a01b83041683860152600160c01b90910460f81b6001600160f81b03191660608301528252600e90935220600101549091506001600160a01b0316156130c05780516001600160801b03166000908152600e602052604090206001015485516001600160a01b039091169081906399829e29908a908a908a908890811061303b57634e487b7160e01b600052603260045260246000fd5b602002602001015189888151811061306357634e487b7160e01b600052603260045260246000fd5b6020026020010151896040518663ffffffff1660e01b815260040161308c959493929190614413565b600060405180830381600087803b1580156130a657600080fd5b505af11580156130ba573d6000803e3d6000fd5b50505050505b50806130cb8161483c565b915050612f29565b6001600160a01b0384163b1561263b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061311790899089908890889088906004016143b5565b602060405180830381600087803b15801561313157600080fd5b505af1925050508015613161575060408051601f3d908101601f1916820190925261315e91810190614036565b60015b61320e5761316d614883565b806308c379a014156131a7575061318261489a565b8061318d57506131a9565b8060405162461bcd60e51b81526004016108b19190614555565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016108b1565b6001600160e01b0319811663bc197c8160e01b146119565760405162461bcd60e51b81526004016108b190614568565b6060600061324d83600261470e565b613258906002614689565b6001600160401b0381111561327d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132a7576020820181803683370190505b509050600360fc1b816000815181106132d057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061330d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061333184600261470e565b61333c906001614689565b90505b60018111156133d0576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061337e57634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106133a257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936133c9816147c4565b905061333f565b50831561341f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108b1565b9392505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061346e57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384166134df5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016108b1565b336134f081600087612de988613426565b6000848152602081815260408083206001600160a01b038916845290915281208054859290613520908490614689565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461128b816000878787875b6001600160a01b0384163b1561263b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906135c09089908990889088908890600401614413565b602060405180830381600087803b1580156135da57600080fd5b505af192505050801561360a575060408051601f3d908101601f1916820190925261360791810190614036565b60015b6136165761316d614883565b6001600160e01b0319811663f23a6e6160e01b146119565760405162461bcd60e51b81526004016108b190614568565b828054613652906147db565b90600052602060002090601f01602090048101928261367457600085556136ba565b82601f1061368d57805160ff19168380011785556136ba565b828001600101855582156136ba579182015b828111156136ba57825182559160200191906001019061369f565b506136c69291506136ca565b5090565b5b808211156136c657600081556001016136cb565b80356001600160a01b038116811461093e57600080fd5b600082601f830112613706578081fd5b813560206137138261463f565b6040516137208282614810565b8381528281019150858301600585901b8701840188101561373f578586fd5b855b8581101561376457613752826136df565b84529284019290840190600101613741565b5090979650505050505050565b600082601f830112613781578081fd5b8135602061378e8261463f565b6040805161379c8382614810565b8481528381019250868401865b8681101561383a57813589018a603f8201126137c3578889fd5b868101356137d08161463f565b86516137dc8282614810565b8281528981019150838801600584901b850189018f10156137fb578c8dfd5b8c94505b838510156138245761381081613abd565b835260019490940193918a01918a016137ff565b50885250505093850193908501906001016137a9565b509098975050505050505050565b600082601f830112613858578081fd5b813560206138658261463f565b6040516138728282614810565b8381528281019150858301855b8581101561376457613896898684358b0101613968565b8452928401929084019060010161387f565b600082601f8301126138b8578081fd5b813560206138c58261463f565b6040516138d28282614810565b8381528281019150858301855b85811015613764576138f6898684358b01016139de565b845292840192908401906001016138df565b600082601f830112613918578081fd5b813560206139258261463f565b6040516139328282614810565b8381528281019150858301855b8581101561376457613956898684358b0101613acd565b8452928401929084019060010161393f565b600082601f830112613978578081fd5b813560206139858261463f565b6040516139928282614810565b8381528281019150858301600585901b870184018810156139b1578586fd5b855b8581101561376457813561ffff811681146139cc578788fd5b845292840192908401906001016139b3565b600082601f8301126139ee578081fd5b813560206139fb8261463f565b604051613a088282614810565b8381528281019150858301600585901b87018401881015613a27578586fd5b855b8581101561376457813584529284019290840190600101613a29565b600082601f830112613a55578081fd5b81356020613a628261463f565b604051613a6f8282614810565b8381528281019150858301600585901b87018401881015613a8e578586fd5b855b8581101561376457813563ffffffff81168114613aab578788fd5b84529284019290840190600101613a90565b8035801515811461093e57600080fd5b600082601f830112613add578081fd5b8135613ae881614662565b604051613af58282614810565b828152856020848701011115613b09578384fd5b82602086016020830137918201602001929092529392505050565b600060208284031215613b35578081fd5b61341f826136df565b60008060408385031215613b50578081fd5b613b59836136df565b9150613b67602084016136df565b90509250929050565b600080600080600060a08688031215613b87578081fd5b613b90866136df565b9450613b9e602087016136df565b935060408601356001600160401b0380821115613bb9578283fd5b613bc589838a016139de565b94506060880135915080821115613bda578283fd5b613be689838a016139de565b93506080880135915080821115613bfb578283fd5b50613c0888828901613acd565b9150509295509295909350565b600080600080600060a08688031215613c2c578283fd5b613c35866136df565b9450613c43602087016136df565b9350604086013592506060860135915060808601356001600160401b03811115613c6b578182fd5b613c0888828901613acd565b60008060408385031215613c89578182fd5b613c92836136df565b9150613b6760208401613abd565b60008060408385031215613cb2578182fd5b613cbb836136df565b946020939093013593505050565b600080600060608486031215613cdd578081fd5b613ce6846136df565b95602085013595506040909401359392505050565b60008060008060808587031215613d10578182fd5b613d19856136df565b93506020850135925060408501359150613d3560608601613abd565b905092959194509250565b600080600080600080600060e0888a031215613d5a578485fd5b613d63886136df565b965060208801359550604088013594506060880135935060808801356001600160f81b031981168114613d94578283fd5b925060a0880135915060c08801356001600160401b03811115613db5578182fd5b613dc18a828b016139de565b91505092959891949750929550565b60008060408385031215613de2578182fd5b82356001600160401b0380821115613df8578384fd5b613e04868387016136f6565b93506020850135915080821115613e19578283fd5b50613e26858286016139de565b9150509250929050565b60008060008060008060008060008060006101608c8e031215613e51578485fd5b6001600160401b03808d351115613e66578586fd5b613e738e8e358f016139de565b9b508060208e01351115613e85578586fd5b613e958e60208f01358f016139de565b9a508060408e01351115613ea7578586fd5b613eb78e60408f01358f016139de565b99508060608e01351115613ec9578586fd5b613ed98e60608f01358f01613968565b98508060808e01351115613eeb578586fd5b613efb8e60808f01358f016139de565b97508060a08e01351115613f0d578586fd5b613f1d8e60a08f01358f01613908565b96508060c08e01351115613f2f578586fd5b613f3f8e60c08f01358f016136f6565b95508060e08e01351115613f51578485fd5b613f618e60e08f01358f01613a45565b9450806101008e01351115613f74578384fd5b613f858e6101008f01358f01613848565b9350806101208e01351115613f98578283fd5b613fa98e6101208f01358f01613771565b9250806101408e01351115613fbc578182fd5b50613fce8d6101408e01358e016138a8565b90509295989b509295989b9093969950565b600060208284031215613ff1578081fd5b5035919050565b6000806040838503121561400a578182fd5b82359150613b67602084016136df565b60006020828403121561402b578081fd5b813561341f8161492b565b600060208284031215614047578081fd5b815161341f8161492b565b600060208284031215614063578081fd5b81356001600160401b03811115614078578182fd5b61408484828501613acd565b949350505050565b60006020828403121561409d578081fd5b81516001600160401b038111156140b2578182fd5b8201601f810184136140c2578182fd5b80516140cd81614662565b6040516140da8282614810565b8281528660208486010111156140ee578485fd5b6140ff836020830160208701614798565b9695505050505050565b60006020828403121561411a578081fd5b5051919050565b60008060408385031215614133578182fd5b8235915060208301356001600160401b0381111561414f578182fd5b613e26858286016139de565b6000806040838503121561416d578182fd5b8235915060208301356001600160401b03811115614189578182fd5b613e2685828601613acd565b600080604083850312156141a7578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b838110156141e5578151875295820195908201906001016141c9565b509495945050505050565b60008151808452614208816020860160208601614798565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061423657607f831692505b602080841082141561425657634e487b7160e01b86526022600452602486fd5b81801561426a576001811461427b576142a8565b60ff198616895284890196506142a8565b60008881526020902060005b868110156142a05781548b820152908501908301614287565b505084890196505b50505050505092915050565b60006142c96142c3838961421c565b8761421c565b602f60f81b81526001600160f81b031986166001820152601b60fa1b600282015284516142fd816003840160208901614798565b603760f91b60039290910191820152835161431f816004840160208801614798565b64173539b7b760d91b60049290910191820152600901979650505050505050565b60007f416363657373436f6e74726f6c3a206163636f756e742000000000000000000082528351614378816017850160208801614798565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516143a9816028840160208801614798565b01602801949350505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906143e1908301866141b6565b82810360608401526143f381866141b6565b9050828103608084015261440781856141f0565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061444d908301846141f0565b979650505050505050565b600061010060018060a01b038b16835289602084015288604084015287606084015286608084015260ff60f81b861660a08401528460c08401528060e08401526144a4818401856141b6565b9b9a5050505050505050505050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b8281101561450757603f198886030184526144f58583516141b6565b945092850192908501906001016144d9565b5092979650505050505050565b60006020825261341f60208301846141b6565b60006040825261453a60408301856141b6565b828103602084015261454c81856141b6565b95945050505050565b60006020825261341f60208301846141f0565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60006001600160401b038211156146585761465861486d565b5060051b60200190565b60006001600160401b0382111561467b5761467b61486d565b50601f01601f191660200190565b6000821982111561469c5761469c614857565b500190565b600063ffffffff8083168185168083038211156146c0576146c0614857565b01949350505050565b600060ff821660ff84168060ff038211156146e6576146e6614857565b019392505050565b60008261470957634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561472857614728614857565b500290565b60006001600160401b038083168185168183048111821515161561475357614753614857565b02949350505050565b60008282101561476e5761476e614857565b500390565b600063ffffffff8381169083168181101561479057614790614857565b039392505050565b60005b838110156147b357818101518382015260200161479b565b8381111561141d5750506000910152565b6000816147d3576147d3614857565b506000190190565b600181811c908216806147ef57607f821691505b60208210811415610b3f57634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b03811182821017156148355761483561486d565b6040525050565b600060001982141561485057614850614857565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156117b957600481823e5160e01c90565b600060443d10156148aa576117b9565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156148db5750505050506117b9565b82850191508151818111156148f5575050505050506117b9565b843d8701016020828501011115614911575050505050506117b9565b61492060208286010187614810565b509094505050505090565b6001600160e01b03198116811461494157600080fd5b5056fea2646970667358221220b2340e79553b2aba4b1fb5c9c833f8ef5fa2112c9e302af24a53e4b5c5f02c2764736f6c634300080300330000000000000000000000000000000000000000000000000000000000000080450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000082f9d5fe6c46990f3c2536e83b2b4e1c0a91f27f0000000000000000000000000000000000000000000000000000000000000007697066733a2f2f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d6567585278756777644c7a4741517639574663466a6d6f576b634144394e6f796e50354b434a6f56364836460000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102895760003560e01c80638da5cb5b1161015c578063bf0e8c0d116100ce578063d547741f11610087578063d547741f146107b9578063e8a3d485146107cc578063e985e9c5146107d4578063efa00ce714610810578063f242432a14610823578063f9f98af61461083657610289565b8063bf0e8c0d14610726578063c2fa401914610739578063c311d0491461074c578063d3d381931461075f578063d50345c91461077f578063d53913931461079257610289565b80639abc8320116101205780639abc8320146106bd578063a217fddf146106c5578063a22cb465146106cd578063a39501df146106e0578063b12b99a0146106f3578063bda3ed071461070657610289565b80638da5cb5b146105ac5780638dc10768146105b457806391ba317a1461069857806391d14854146106a157806392d62ccd146106b457610289565b8063282c51f3116102005780634e1273f4116101b95780634e1273f4146104f1578063582f706f146105115780636bb2e32d1461051a57806370e7d274146105405780637e41d8351461059157806388f7c16c1461059957610289565b8063282c51f31461046b5780632eb2c2d6146104925780632f2ff15d146104a557806331126dd1146104b857806336568abe146104cb5780633c369ebe146104de57610289565b80630c024776116102525780630c024776146103b25780630e89341c146103dd57806313f43160146103fd57806317c0f08e146104205780631d9083f314610435578063248a9ca31461044857610289565b8062fdd58e1461028e57806301870f02146102b457806301ffc9a71461034157806308a55a6e146103645780630a3de45114610387575b600080fd5b6102a161029c366004613ca0565b610849565b6040519081526020015b60405180910390f35b6103036102c2366004613fe0565b6013602052600090815260409020546001600160801b0381169063ffffffff600160801b8204811691600160a01b810490911690600160c01b900460f81b84565b604080516001600160801b0395909516855263ffffffff938416602086015291909216908301526001600160f81b03191660608201526080016102ab565b61035461034f36600461401a565b6108e0565b60405190151581526020016102ab565b610354610372366004613b24565b60096020526000908152604090205460ff1681565b6102a1610395366004613ca0565b600860209081526000928352604080842090915290825290205481565b6004546103c5906001600160a01b031681565b6040516001600160a01b0390911681526020016102ab565b6103f06103eb366004613fe0565b610943565b6040516102ab9190614555565b61035461040b366004613b24565b600a6020526000908152604090205460ff1681565b61043361042e366004613e30565b610b45565b005b610433610443366004613b24565b6111c5565b6102a1610456366004613fe0565b60009081526003602052604090206001015490565b6102a17f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b6104336104a0366004613b70565b6111fb565b6104336104b3366004613ff8565b611292565b6104336104c6366004613cfb565b6112be565b6104336104d9366004613ff8565b611423565b6104336104ec36600461415b565b6114a1565b6105046104ff366004613dd0565b611528565b6040516102ab9190614514565b6102a160125481565b6006546105279060f81b81565b6040516001600160f81b031990911681526020016102ab565b61055361054e366004614195565b611689565b604080516001600160401b03909516855263ffffffff93841660208601526001600160801b03909216918401919091521660608201526080016102ab565b6103f06116e9565b6104336105a7366004613fe0565b611777565b6103c56117ac565b6106376105c2366004613fe0565b600e60205260009081526040902080546001909101546001600160401b0380831692600160401b81049091169161ffff600160801b8304169163ffffffff600160901b8204811692600160b01b8304821692600160d01b81049092169160ff600160f01b90910416906001600160a01b031688565b604080516001600160401b03998a16815298909716602089015261ffff9095169587019590955263ffffffff928316606087015290821660808601521660a084015290151560c08301526001600160a01b031660e0820152610100016102ab565b6102a1600b5481565b6103546106af366004613ff8565b6117bc565b6102a1600c5481565b6103f06117e7565b6102a1600081565b6104336106db366004613c77565b6117f4565b6104336106ee366004613d40565b6118d8565b610433610701366004613ff8565b61195f565b6102a1610714366004613fe0565b60116020526000908152604090205481565b6102a1610734366004613fe0565b6119f8565b610433610747366004613cc9565b611bae565b61043361075a366004613fe0565b611c5a565b61077261076d366004613b24565b611d3d565b6040516102ab91906144b3565b6103f061078d366004613fe0565b6120e9565b6102a17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6104336107c7366004613ff8565b612102565b6103f0612128565b6103546107e2366004613b3e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61043361081e366004614052565b6121ba565b610433610831366004613c15565b6121e1565b610433610844366004614121565b612268565b60006001600160a01b0383166108ba5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061091157506001600160e01b031982166303a24d0760e21b145b8061092c57506001600160e01b03198216637965db0b60e01b145b8061093b575061093b826122db565b90505b919050565b600081815260136020908152604091829020825160808101845290546001600160801b038116808352600160801b820463ffffffff90811694840194909452600160a01b820490931693820193909352600160c01b90920460f81b6001600160f81b03191660608084019190915291906109f75760405162461bcd60e51b8152602060048201526015602482015274139bc81d1bdad95b88199bdc8819da5d995b881251605a1b60448201526064016108b1565b80516001600160801b03166000908152600e60205260409020600101546001600160a01b0316610a99576005600f600083600001516001600160801b031681526020019081526020016000208260600151610a5b846020015163ffffffff16612300565b610a6e856040015163ffffffff16612300565b604051602001610a829594939291906142b4565b60405160208183030381529060405291505061093e565b80516001600160801b03166000908152600e6020526040908190206001015490516303a24d0760e21b8152600481018590526001600160a01b03909116908190630e89341c9060240160006040518083038186803b158015610afa57600080fd5b505afa158015610b0e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b36919081019061408c565b9250505061093e565b50919050565b610b506000336106af565b610b5957600080fd5b600c54600b5460005b8d518110156111b157848181518110610b8b57634e487b7160e01b600052603260045260246000fd5b602002602001015151868281518110610bb457634e487b7160e01b600052603260045260246000fd5b60200260200101515114610bc757600080fd5b82610bd18161483c565b9350506040518061010001604052808f8381518110610c0057634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160401b031681526020018e8381518110610c3657634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160401b031681526020018d8381518110610c6c57634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff1681526020018c8381518110610c9d57634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff1663ffffffff1681526020018b8381518110610cd457634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff168152602001888381518110610d0757634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff168152602001600015158152602001898381518110610d4357634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b039081169092526000868152600e82526040908190208451815493860151928601516060870151608088015160a089015160c08a01516001600160401b039586166fffffffffffffffffffffffffffffffff1990991698909817600160401b95909716949094029590951765ffffffffffff60801b1916600160801b61ffff9093169290920263ffffffff60901b191691909117600160901b63ffffffff928316021767ffffffffffffffff60b01b1916600160b01b9482169490940263ffffffff60d01b191693909317600160d01b93909116929092029190911760ff60f01b1916600160f01b9215159290920291909117815560e090920151600190920180546001600160a01b031916929091169190911790558851899082908110610e8e57634e487b7160e01b600052603260045260246000fd5b6020026020010151600f60008581526020019081526020016000209080519060200190610ebc929190613646565b5060005b868281518110610ee057634e487b7160e01b600052603260045260246000fd5b60200260200101515181101561119e576000868381518110610f1257634e487b7160e01b600052603260045260246000fd5b60200260200101518281518110610f3957634e487b7160e01b600052603260045260246000fd5b6020026020010151156110045783610f508161483c565b604080516080810182526001600160801b03898116825263ffffffff8781166020808501918252600085870181815260065460f890811b6001600160f81b031916606089019081528a84526013909452979091209551865493519151925195166001600160a01b031990931692909217600160801b928416929092029190911764ffffffffff60a01b1916600160a01b919092160260ff60c01b191617600160c01b9190931c029190911790559450849150505b6010600086815260200190815260200160002060405180608001604052808a868151811061104257634e487b7160e01b600052603260045260246000fd5b6020026020010151858151811061106957634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff166001600160401b03168152602001600063ffffffff168152602001836001600160801b031681526020018886815181106110bf57634e487b7160e01b600052603260045260246000fd5b602002602001015185815181106110e657634e487b7160e01b600052603260045260246000fd5b60209081029190910181015163ffffffff90811690925283546001810185556000948552938190208351940180549184015160408501516060909501518416600160e01b026001600160e01b036001600160801b03909616600160601b02959095166bffffffffffffffffffffffff91909416600160401b026bffffffffffffffffffffffff199093166001600160401b039096169590951791909117939093161717905550806111968161483c565b915050610ec0565b50806111a98161483c565b915050610b62565b50600b55600c555050505050505050505050565b6111d06000336106af565b6111d957600080fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038516331480611217575061121785336107e2565b61127e5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016108b1565b61128b858585858561243c565b5050505050565b6000828152600360205260409020600101546112af81335b612643565b6112b983836126a7565b505050565b6112e87f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848336106af565b61132d5760405162461bcd60e51b815260206004820152601660248201527531b0b63632b91034b9903737ba103090313ab93732b960511b60448201526064016108b1565b8015611412576000838152601360209081526040808320815160808101835290546001600160801b038116808352600160801b820463ffffffff908116848701908152600160a01b8404821685870152600160c01b90930460f81b6001600160f81b0319166060850152908652601090945291909320905181548693919091169081106113ca57634e487b7160e01b600052603260045260246000fd5b600091825260209091200180546008906113f2908490600160401b900463ffffffff16614773565b92506101000a81548163ffffffff021916908363ffffffff160217905550505b61141d84848461272d565b50505050565b6001600160a01b03811633146114935760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016108b1565b61149d82826128a6565b5050565b6114ac6000336106af565b6114b557600080fd5b6000828152600e6020526040902054600160f01b900460ff16156115095760405162461bcd60e51b815260206004820152600b60248201526a18d85c99081b1bd8dad95960aa1b60448201526064016108b1565b6000828152600f6020908152604090912082516112b992840190613646565b6060815183511461158d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016108b1565b600083516001600160401b038111156115b657634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156115df578160200160208202803683370190505b50905060005b84518110156116815761164685828151811061161157634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061163957634e487b7160e01b600052603260045260246000fd5b6020026020010151610849565b82828151811061166657634e487b7160e01b600052603260045260246000fd5b602090810291909101015261167a8161483c565b90506115e5565b509392505050565b601060205281600052604060002081815481106116a557600080fd5b6000918252602090912001546001600160401b038116925063ffffffff600160401b8204811692506001600160801b03600160601b83041691600160e01b90041684565b600780546116f6906147db565b80601f0160208091040260200160405190810160405280929190818152602001828054611722906147db565b801561176f5780601f106117445761010080835404028352916020019161176f565b820191906000526020600020905b81548152906001019060200180831161175257829003601f168201915b505050505081565b6117826000336106af565b61178b57600080fd5b6000908152600e60205260409020805460ff60f01b1916600160f01b179055565b600d546001600160a01b03165b90565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600580546116f6906147db565b336001600160a01b038316141561185f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016108b1565b3360008181526001602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118cc911515815260200190565b60405180910390a35050565b6119027f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336106af565b6119475760405162461bcd60e51b815260206004820152601660248201527531b0b63632b91034b9903737ba10309036b4b73a32b960511b60448201526064016108b1565b6119568787878787878761290d565b50505050505050565b61196a6000336106af565b61197357600080fd5b6000828152600e6020526040902054600160f01b900460ff16156119c75760405162461bcd60e51b815260206004820152600b60248201526a18d85c99081b1bd8dad95960aa1b60448201526064016108b1565b6000918252600e602052604090912060010180546001600160a01b0319166001600160a01b03909216919091179055565b6004546000906001600160a01b0316611b2457600082815260136020908152604091829020825160808101845290546001600160801b038116808352600160801b820463ffffffff90811694840194909452600160a01b820490931693820193909352600160c01b90920460f81b6001600160f81b0319166060830152611ab95760405162461bcd60e51b8152602060048201526015602482015274139bc81d1bdad95b88199bdc8819da5d995b881251605a1b60448201526064016108b1565b6010600082600001516001600160801b03168152602001908152602001600020816020015163ffffffff1681548110611b0257634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600160e01b900463ffffffff16915061093e9050565b600480546040516367bb908760e01b81529182018490523060248301526001600160a01b03169081906367bb90879060440160206040518083038186803b158015611b6e57600080fd5b505afa158015611b82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba69190614109565b91505061093e565b611bd87f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336106af565b611c1d5760405162461bcd60e51b815260206004820152601660248201527531b0b63632b91034b9903737ba10309036b4b73a32b960511b60448201526064016108b1565b6001600160a01b038316600090815260086020908152604080832085845290915281208054839290611c50908490614689565b9091555050505050565b611c656000336106af565b611c6e57600080fd5b47811115611cb35760405162461bcd60e51b81526020600482015260126024820152716e6f7420656e6f7567682062616c616e636560701b60448201526064016108b1565b604051600090339083908381818185875af1925050503d8060008114611cf5576040519150601f19603f3d011682016040523d82523d6000602084013e611cfa565b606091505b505090508061149d5760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b60448201526064016108b1565b60606000600b546001600160401b03811115611d6957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611d9c57816020015b6060815260200190600190039081611d875790505b509050600060015b600b548111611ed4576000611db98683610849565b90508015611ec157604080516002808252606082018352909160208301908036833701905050848481518110611dff57634e487b7160e01b600052603260045260246000fd5b602002602001018190525081848481518110611e2b57634e487b7160e01b600052603260045260246000fd5b6020026020010151600081518110611e5357634e487b7160e01b600052603260045260246000fd5b60200260200101818152505080848481518110611e8057634e487b7160e01b600052603260045260246000fd5b6020026020010151600181518110611ea857634e487b7160e01b600052603260045260246000fd5b602090810291909101015282611ebd8161483c565b9350505b5080611ecc8161483c565b915050611da4565b506000816001600160401b03811115611efd57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611f3057816020015b6060815260200190600190039081611f1b5790505b50905060005b828110156120e057604080516002808252606082018352909160208301908036833701905050828281518110611f7c57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250838181518110611fa757634e487b7160e01b600052603260045260246000fd5b6020026020010151600081518110611fcf57634e487b7160e01b600052603260045260246000fd5b6020026020010151828281518110611ff757634e487b7160e01b600052603260045260246000fd5b602002602001015160008151811061201f57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505083818151811061204b57634e487b7160e01b600052603260045260246000fd5b602002602001015160018151811061207357634e487b7160e01b600052603260045260246000fd5b602002602001015182828151811061209b57634e487b7160e01b600052603260045260246000fd5b60200260200101516001815181106120c357634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806120d88161483c565b915050611f36565b50949350505050565b600f60205260009081526040902080546116f6906147db565b60008281526003602052604090206001015461211e81336112aa565b6112b983836128a6565b606060078054612137906147db565b80601f0160208091040260200160405190810160405280929190818152602001828054612163906147db565b80156121b05780601f10612185576101008083540402835291602001916121b0565b820191906000526020600020905b81548152906001019060200180831161219357829003601f168201915b5050505050905090565b6121c56000336106af565b6121ce57600080fd5b805161149d906007906020840190613646565b6001600160a01b0385163314806121fd57506121fd85336107e2565b61225b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016108b1565b61128b8585858585612db3565b6122736000336106af565b61227c57600080fd5b601282905560015b81518110156112b9578181815181106122ad57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008381526011909252604090912055806122d38161483c565b915050612284565b60006001600160e01b03198216637965db0b60e01b148061093b575061093b82612ed6565b60608161232557506040805180820190915260018152600360fc1b602082015261093e565b8160005b811561234f57806123398161483c565b91506123489050600a836146ee565b9150612329565b6000816001600160401b0381111561237757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156123a1576020820181803683370190505b509050815b85156120e0576123b760018261475c565b905060006123c6600a886146ee565b6123d190600a61470e565b6123db908861475c565b6123e69060306146c9565b905060008160f81b90508084848151811061241157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612433600a896146ee565b975050506123a6565b815183511461249e5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016108b1565b6001600160a01b0384166124c45760405162461bcd60e51b81526004016108b1906145b0565b336124d3818787878787612f26565b60005b84518110156125d557600085828151811061250157634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061252d57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561257d5760405162461bcd60e51b81526004016108b1906145f5565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906125ba908490614689565b92505081905550505050806125ce9061483c565b90506124d6565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612625929190614527565b60405180910390a461263b8187878787876130d3565b505050505050565b61264d82826117bc565b61149d57612665816001600160a01b0316601461323e565b61267083602061323e565b604051602001612681929190614340565b60408051601f198184030181529082905262461bcd60e51b82526108b191600401614555565b6126b182826117bc565b61149d5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff191660011790556126e93390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03831661278f5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b60648201526084016108b1565b336127be818560006127a087613426565b6127a987613426565b60405180602001604052806000815250612f26565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561283b5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b60648201526084016108b1565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6128b082826117bc565b1561149d5760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000868152600e6020908152604080832081516101008101835281546001600160401b038082168352600160401b8204168286015261ffff600160801b8204168285015263ffffffff600160901b820481166060840152600160b01b820481166080840152600160d01b82041660a083015260ff600160f01b90910416151560c08201526001909101546001600160a01b031660e0820152898452601090925282208054919291889081106129d257634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805160808101825291909201546001600160401b038116825263ffffffff600160401b82048116948301949094526001600160801b03600160601b82041692820192909252600160e01b9091049091166060820152905086151580612a635750816060015163ffffffff1686826020015163ffffffff16612a609190614689565b11155b612aa75760405162461bcd60e51b81526020600482015260156024820152743a37ba30b61039bab838363c903932b0b1b432b21760591b60448201526064016108b1565b861580612aeb5750816060015163ffffffff16868260000151836020015163ffffffff16612ad5919061472d565b6001600160401b0316612ae89190614689565b11155b612b2f5760405162461bcd60e51b81526020600482015260156024820152743a37ba30b61039bab838363c903932b0b1b432b21760591b60448201526064016108b1565b600081604001516001600160801b0316600014612b765781604001516001600160801b03169050612b718a82896040518060200160405280600081525061347f565b612caa565b60005b87811015612ca857600086612bb557600184602001818151612b9b91906146a1565b63ffffffff9081169091526020860151169150612bb89050565b50855b600b5480612bc58161483c565b915050809350612be78d8560016040518060200160405280600081525061347f565b604080516080810182526001600160801b03808f16825263ffffffff808f1660208085019182529682168486019081526001600160f81b03198f166060860190815260008881526013909952959097209351845491519751955160f81c600160c01b0260ff60c01b19968416600160a01b029690961664ffffffffff60a01b1998909316600160801b026001600160a01b031990921693169290921791909117949094169390931717909155600b5580612ca08161483c565b915050612b79565b505b60e08301516001600160a01b031615612d305760e08301516040516360cb9a0d60e11b81526001600160a01b0382169063c197341a90612cfc908e9086908f908f908f908f908f908f90600401614458565b600060405180830381600087803b158015612d1657600080fd5b505af1158015612d2a573d6000803e3d6000fd5b50505050505b600089815260106020526040902080548891908a908110612d6157634e487b7160e01b600052603260045260246000fd5b60009182526020909120018054600890612d89908490600160401b900463ffffffff166146a1565b92506101000a81548163ffffffff021916908363ffffffff16021790555050505050505050505050565b6001600160a01b038416612dd95760405162461bcd60e51b81526004016108b1906145b0565b33612df8818787612de988613426565b612df288613426565b87612f26565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015612e395760405162461bcd60e51b81526004016108b1906145f5565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612e76908490614689565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461195682888888888861357c565b60006001600160e01b03198216636cdb3d1360e11b1480612f0757506001600160e01b031982166303a24d0760e21b145b8061093b57506301ffc9a760e01b6001600160e01b031983161461093b565b60005b835181101561195657600060136000868481518110612f5857634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182528181019290925260409081016000908120825160808101845290546001600160801b038116808352600160801b820463ffffffff90811684880152600160a01b83041683860152600160c01b90910460f81b6001600160f81b03191660608301528252600e90935220600101549091506001600160a01b0316156130c05780516001600160801b03166000908152600e602052604090206001015485516001600160a01b039091169081906399829e29908a908a908a908890811061303b57634e487b7160e01b600052603260045260246000fd5b602002602001015189888151811061306357634e487b7160e01b600052603260045260246000fd5b6020026020010151896040518663ffffffff1660e01b815260040161308c959493929190614413565b600060405180830381600087803b1580156130a657600080fd5b505af11580156130ba573d6000803e3d6000fd5b50505050505b50806130cb8161483c565b915050612f29565b6001600160a01b0384163b1561263b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061311790899089908890889088906004016143b5565b602060405180830381600087803b15801561313157600080fd5b505af1925050508015613161575060408051601f3d908101601f1916820190925261315e91810190614036565b60015b61320e5761316d614883565b806308c379a014156131a7575061318261489a565b8061318d57506131a9565b8060405162461bcd60e51b81526004016108b19190614555565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016108b1565b6001600160e01b0319811663bc197c8160e01b146119565760405162461bcd60e51b81526004016108b190614568565b6060600061324d83600261470e565b613258906002614689565b6001600160401b0381111561327d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132a7576020820181803683370190505b509050600360fc1b816000815181106132d057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061330d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061333184600261470e565b61333c906001614689565b90505b60018111156133d0576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061337e57634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106133a257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936133c9816147c4565b905061333f565b50831561341f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108b1565b9392505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061346e57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384166134df5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016108b1565b336134f081600087612de988613426565b6000848152602081815260408083206001600160a01b038916845290915281208054859290613520908490614689565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461128b816000878787875b6001600160a01b0384163b1561263b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906135c09089908990889088908890600401614413565b602060405180830381600087803b1580156135da57600080fd5b505af192505050801561360a575060408051601f3d908101601f1916820190925261360791810190614036565b60015b6136165761316d614883565b6001600160e01b0319811663f23a6e6160e01b146119565760405162461bcd60e51b81526004016108b190614568565b828054613652906147db565b90600052602060002090601f01602090048101928261367457600085556136ba565b82601f1061368d57805160ff19168380011785556136ba565b828001600101855582156136ba579182015b828111156136ba57825182559160200191906001019061369f565b506136c69291506136ca565b5090565b5b808211156136c657600081556001016136cb565b80356001600160a01b038116811461093e57600080fd5b600082601f830112613706578081fd5b813560206137138261463f565b6040516137208282614810565b8381528281019150858301600585901b8701840188101561373f578586fd5b855b8581101561376457613752826136df565b84529284019290840190600101613741565b5090979650505050505050565b600082601f830112613781578081fd5b8135602061378e8261463f565b6040805161379c8382614810565b8481528381019250868401865b8681101561383a57813589018a603f8201126137c3578889fd5b868101356137d08161463f565b86516137dc8282614810565b8281528981019150838801600584901b850189018f10156137fb578c8dfd5b8c94505b838510156138245761381081613abd565b835260019490940193918a01918a016137ff565b50885250505093850193908501906001016137a9565b509098975050505050505050565b600082601f830112613858578081fd5b813560206138658261463f565b6040516138728282614810565b8381528281019150858301855b8581101561376457613896898684358b0101613968565b8452928401929084019060010161387f565b600082601f8301126138b8578081fd5b813560206138c58261463f565b6040516138d28282614810565b8381528281019150858301855b85811015613764576138f6898684358b01016139de565b845292840192908401906001016138df565b600082601f830112613918578081fd5b813560206139258261463f565b6040516139328282614810565b8381528281019150858301855b8581101561376457613956898684358b0101613acd565b8452928401929084019060010161393f565b600082601f830112613978578081fd5b813560206139858261463f565b6040516139928282614810565b8381528281019150858301600585901b870184018810156139b1578586fd5b855b8581101561376457813561ffff811681146139cc578788fd5b845292840192908401906001016139b3565b600082601f8301126139ee578081fd5b813560206139fb8261463f565b604051613a088282614810565b8381528281019150858301600585901b87018401881015613a27578586fd5b855b8581101561376457813584529284019290840190600101613a29565b600082601f830112613a55578081fd5b81356020613a628261463f565b604051613a6f8282614810565b8381528281019150858301600585901b87018401881015613a8e578586fd5b855b8581101561376457813563ffffffff81168114613aab578788fd5b84529284019290840190600101613a90565b8035801515811461093e57600080fd5b600082601f830112613add578081fd5b8135613ae881614662565b604051613af58282614810565b828152856020848701011115613b09578384fd5b82602086016020830137918201602001929092529392505050565b600060208284031215613b35578081fd5b61341f826136df565b60008060408385031215613b50578081fd5b613b59836136df565b9150613b67602084016136df565b90509250929050565b600080600080600060a08688031215613b87578081fd5b613b90866136df565b9450613b9e602087016136df565b935060408601356001600160401b0380821115613bb9578283fd5b613bc589838a016139de565b94506060880135915080821115613bda578283fd5b613be689838a016139de565b93506080880135915080821115613bfb578283fd5b50613c0888828901613acd565b9150509295509295909350565b600080600080600060a08688031215613c2c578283fd5b613c35866136df565b9450613c43602087016136df565b9350604086013592506060860135915060808601356001600160401b03811115613c6b578182fd5b613c0888828901613acd565b60008060408385031215613c89578182fd5b613c92836136df565b9150613b6760208401613abd565b60008060408385031215613cb2578182fd5b613cbb836136df565b946020939093013593505050565b600080600060608486031215613cdd578081fd5b613ce6846136df565b95602085013595506040909401359392505050565b60008060008060808587031215613d10578182fd5b613d19856136df565b93506020850135925060408501359150613d3560608601613abd565b905092959194509250565b600080600080600080600060e0888a031215613d5a578485fd5b613d63886136df565b965060208801359550604088013594506060880135935060808801356001600160f81b031981168114613d94578283fd5b925060a0880135915060c08801356001600160401b03811115613db5578182fd5b613dc18a828b016139de565b91505092959891949750929550565b60008060408385031215613de2578182fd5b82356001600160401b0380821115613df8578384fd5b613e04868387016136f6565b93506020850135915080821115613e19578283fd5b50613e26858286016139de565b9150509250929050565b60008060008060008060008060008060006101608c8e031215613e51578485fd5b6001600160401b03808d351115613e66578586fd5b613e738e8e358f016139de565b9b508060208e01351115613e85578586fd5b613e958e60208f01358f016139de565b9a508060408e01351115613ea7578586fd5b613eb78e60408f01358f016139de565b99508060608e01351115613ec9578586fd5b613ed98e60608f01358f01613968565b98508060808e01351115613eeb578586fd5b613efb8e60808f01358f016139de565b97508060a08e01351115613f0d578586fd5b613f1d8e60a08f01358f01613908565b96508060c08e01351115613f2f578586fd5b613f3f8e60c08f01358f016136f6565b95508060e08e01351115613f51578485fd5b613f618e60e08f01358f01613a45565b9450806101008e01351115613f74578384fd5b613f858e6101008f01358f01613848565b9350806101208e01351115613f98578283fd5b613fa98e6101208f01358f01613771565b9250806101408e01351115613fbc578182fd5b50613fce8d6101408e01358e016138a8565b90509295989b509295989b9093969950565b600060208284031215613ff1578081fd5b5035919050565b6000806040838503121561400a578182fd5b82359150613b67602084016136df565b60006020828403121561402b578081fd5b813561341f8161492b565b600060208284031215614047578081fd5b815161341f8161492b565b600060208284031215614063578081fd5b81356001600160401b03811115614078578182fd5b61408484828501613acd565b949350505050565b60006020828403121561409d578081fd5b81516001600160401b038111156140b2578182fd5b8201601f810184136140c2578182fd5b80516140cd81614662565b6040516140da8282614810565b8281528660208486010111156140ee578485fd5b6140ff836020830160208701614798565b9695505050505050565b60006020828403121561411a578081fd5b5051919050565b60008060408385031215614133578182fd5b8235915060208301356001600160401b0381111561414f578182fd5b613e26858286016139de565b6000806040838503121561416d578182fd5b8235915060208301356001600160401b03811115614189578182fd5b613e2685828601613acd565b600080604083850312156141a7578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b838110156141e5578151875295820195908201906001016141c9565b509495945050505050565b60008151808452614208816020860160208601614798565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061423657607f831692505b602080841082141561425657634e487b7160e01b86526022600452602486fd5b81801561426a576001811461427b576142a8565b60ff198616895284890196506142a8565b60008881526020902060005b868110156142a05781548b820152908501908301614287565b505084890196505b50505050505092915050565b60006142c96142c3838961421c565b8761421c565b602f60f81b81526001600160f81b031986166001820152601b60fa1b600282015284516142fd816003840160208901614798565b603760f91b60039290910191820152835161431f816004840160208801614798565b64173539b7b760d91b60049290910191820152600901979650505050505050565b60007f416363657373436f6e74726f6c3a206163636f756e742000000000000000000082528351614378816017850160208801614798565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516143a9816028840160208801614798565b01602801949350505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906143e1908301866141b6565b82810360608401526143f381866141b6565b9050828103608084015261440781856141f0565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061444d908301846141f0565b979650505050505050565b600061010060018060a01b038b16835289602084015288604084015287606084015286608084015260ff60f81b861660a08401528460c08401528060e08401526144a4818401856141b6565b9b9a5050505050505050505050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b8281101561450757603f198886030184526144f58583516141b6565b945092850192908501906001016144d9565b5092979650505050505050565b60006020825261341f60208301846141b6565b60006040825261453a60408301856141b6565b828103602084015261454c81856141b6565b95945050505050565b60006020825261341f60208301846141f0565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60006001600160401b038211156146585761465861486d565b5060051b60200190565b60006001600160401b0382111561467b5761467b61486d565b50601f01601f191660200190565b6000821982111561469c5761469c614857565b500190565b600063ffffffff8083168185168083038211156146c0576146c0614857565b01949350505050565b600060ff821660ff84168060ff038211156146e6576146e6614857565b019392505050565b60008261470957634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561472857614728614857565b500290565b60006001600160401b038083168185168183048111821515161561475357614753614857565b02949350505050565b60008282101561476e5761476e614857565b500390565b600063ffffffff8381169083168181101561479057614790614857565b039392505050565b60005b838110156147b357818101518382015260200161479b565b8381111561141d5750506000910152565b6000816147d3576147d3614857565b506000190190565b600181811c908216806147ef57607f821691505b60208210811415610b3f57634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b03811182821017156148355761483561486d565b6040525050565b600060001982141561485057614850614857565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156117b957600481823e5160e01c90565b600060443d10156148aa576117b9565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156148db5750505050506117b9565b82850191508151818111156148f5575050505050506117b9565b843d8701016020828501011115614911575050505050506117b9565b61492060208286010187614810565b509094505050505090565b6001600160e01b03198116811461494157600080fd5b5056fea2646970667358221220b2340e79553b2aba4b1fb5c9c833f8ef5fa2112c9e302af24a53e4b5c5f02c2764736f6c63430008030033

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

0000000000000000000000000000000000000000000000000000000000000080450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000082f9d5fe6c46990f3c2536e83b2b4e1c0a91f27f0000000000000000000000000000000000000000000000000000000000000007697066733a2f2f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d6567585278756777644c7a4741517639574663466a6d6f576b634144394e6f796e50354b434a6f56364836460000000000000000000000

-----Decoded View---------------
Arg [0] : _uri (string): ipfs://
Arg [1] : _contractChar (bytes1): 0x45
Arg [2] : _contractURIString (string): ipfs://QmegXRxugwdLzGAQv9WFcFjmoWkcAD9NoynP5KCJoV6H6F
Arg [3] : _contractOwner (address): 0x82F9d5FE6C46990f3C2536e83b2B4e1c0a91F27f

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 4500000000000000000000000000000000000000000000000000000000000000
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 00000000000000000000000082f9d5fe6c46990f3c2536e83b2b4e1c0a91f27f
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [5] : 697066733a2f2f00000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [7] : 697066733a2f2f516d6567585278756777644c7a4741517639574663466a6d6f
Arg [8] : 576b634144394e6f796e50354b434a6f56364836460000000000000000000000


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.