ETH Price: $3,344.02 (-0.93%)

Token

 

Overview

Max Total Supply

30,366

Holders

1,078

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

0xb4c87b4904232381CA7De52C2E9fe2Ff194B61df
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:
RainiCards

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : RainiCards.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";
import "@openzeppelin/contracts/utils/Strings.sol";

interface IStakingPool {
  function balanceOf(address _owner) external view returns (uint256 balance);
  function burn(address _owner, uint256 _amount) 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 RainiCards is ERC1155, AccessControl {

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

  address public nftStakingPoolAddress;

  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;

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

  uint256 public maxTokenId = 1000000;

  address private contractOwner;

  mapping(uint256 => Card) public cards;
  
  mapping(uint256 => uint256) public numLevel1Minted;

  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 setNftStakingPoolAddress(address _nftStakingPoolAddress)
    external onlyOwner {
      nftStakingPoolAddress = (_nftStakingPoolAddress);
  }

  function setBaseURI(string memory _baseURIString)
    external onlyOwner {
      baseUri = _baseURIString;
  }

  function getTotalBalance(address _address, uint256 _cardCount) 
    external view returns (uint256[][] memory amounts) {
      uint256[][] memory _amounts = new uint256[][](maxTokenId - 1000000 + _cardCount);
      uint256 count;
      for (uint256 i = 1; i <= maxTokenId; i++) {
        if (tokenVars[i].cardId == 0 && i < 1000001) {
          i = 1000001;
        }
        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 _cardId, uint16[] memory _maxSupply, address[] memory _subContract)
    external onlyOwner() {

      for (uint256 i; i < _cardId.length; i++) {

        cards[_cardId[i]] = Card({
            costInUnicorns: 0,
            costInRainbows: 0,
            maxMintsPerAddress: 0,
            maxSupply: uint32(_maxSupply[i]),
            allocation: uint32(_maxSupply[i]),
            mintTimeStart: 0,
            locked: false,
            subContract: _subContract[i]
          });
        
        uint256 _tokenId = 0;

        _tokenId = _cardId[i];
        tokenVars[_tokenId] = TokenVars({
          cardId: uint128(_cardId[i]),
          level: 0,
          number: 0,
          mintedContractChar: contractChar
        });
      }
  }
  
  function _mintToken(address _to, uint256 _cardId, uint256 _cardLevel, uint256 _amount, bytes1 _mintedContractChar, uint256 _number, uint256[] memory _data) private {
    Card memory card = cards[_cardId];
    uint256 _level1Minted = numLevel1Minted[_cardId];
    
    uint256 _tokenId;

    if (_cardLevel == 0) {
      _mint(_to, _cardId, _amount, "");
    } else {
      for (uint256 i = 0; i < _amount; i++) {
        uint256 num;
        if (_number == 0) {
          _level1Minted += 1;
          num = _level1Minted;
        } 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;
        numLevel1Minted[_cardId] += uint32(_amount);
      }
    }

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

  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) 
    external onlyBurner {
      _burn(_owner, _tokenId, _amount);
  }

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

  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, "?cid=", Strings.toString(_tokenVars.cardId), "&chain=", _tokenVars.mintedContractChar, "&t=", Strings.toString(id), "&l=", Strings.toString(_tokenVars.level), "&n=", Strings.toString(_tokenVars.number) ));
    } else {
      IRainiCustomNFT subContract = IRainiCustomNFT(cards[_tokenVars.cardId].subContract);
      return subContract.uri(id);
    }
  }

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

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

  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 12 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @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 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]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _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]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    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 {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, 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 12 : IAccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @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 {AccessControl-_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 Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @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) external;

    /**
     * @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) external;

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

File 4 of 12 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 12 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 10 of 12 : 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 11 of 12 : 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 12 of 12 : 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":"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"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","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":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_cardCount","type":"uint256"}],"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":"_cardId","type":"uint256[]"},{"internalType":"uint16[]","name":"_maxSupply","type":"uint16[]"},{"internalType":"address[]","name":"_subContract","type":"address[]"}],"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":[],"name":"maxTokenId","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":"nftStakingPoolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"numLevel1Minted","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":"string","name":"_baseURIString","type":"string"}],"name":"setBaseURI","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":"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"}]

6080604052620f4240600a553480156200001857600080fd5b5060405162003d1338038062003d138339810160408190526200003b916200033b565b8362000047816200011c565b50620000566000335b62000135565b6200006360008262000135565b6200008f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000050565b620000bb7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8483362000050565b8351620000d0906005906020870190620001e2565b50600b80546001600160a01b0319166001600160a01b0383161790556006805460ff191660f885901c179055815162000111906007906020850190620001e2565b50505050506200044f565b805162000131906002906020840190620001e2565b5050565b60008281526003602090815260408083206001600160a01b038516845290915290205462000131908390839060ff16620001315760008281526003602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200019e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620001f090620003fc565b90600052602060002090601f0160209004810192826200021457600085556200025f565b82601f106200022f57805160ff19168380011785556200025f565b828001600101855582156200025f579182015b828111156200025f57825182559160200191906001019062000242565b506200026d92915062000271565b5090565b5b808211156200026d576000815560010162000272565b600082601f83011262000299578081fd5b81516001600160401b0380821115620002b657620002b662000439565b604051601f8301601f19908116603f01168101908282118183101715620002e157620002e162000439565b81604052838152602092508683858801011115620002fd578485fd5b8491505b8382101562000320578582018301518183018401529082019062000301565b838211156200033157848385830101525b9695505050505050565b6000806000806080858703121562000351578384fd5b84516001600160401b038082111562000368578586fd5b620003768883890162000288565b602088015190965091507fff0000000000000000000000000000000000000000000000000000000000000082168214620003ae578485fd5b604087015191945080821115620003c3578384fd5b50620003d28782880162000288565b606087015190935090506001600160a01b0381168114620003f1578182fd5b939692955090935050565b600181811c908216806200041157607f821691505b602082108114156200043357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6138b4806200045f6000396000f3fe608060405234801561001057600080fd5b506004361061021b5760003560e01c80638da5cb5b11610125578063b12b99a0116100ad578063e8a3d4851161007c578063e8a3d4851461065e578063e985e9c514610666578063efa00ce7146106a2578063f242432a146106b5578063f5298aca146106c85761021b565b8063b12b99a0146105f1578063d539139314610604578063d547741f1461062b578063dc8d65741461063e5761021b565b80639592c996116100f45780639592c9961461059b5780639abc8320146105bb578063a217fddf146105c3578063a22cb465146105cb578063a39501df146105de5761021b565b80638da5cb5b146104935780638dc107681461049b57806391ba317a1461057f57806391d14854146105885761021b565b8063282c51f3116101a8578063489d467311610177578063489d46731461041f5780634e1273f41461043257806355f804b3146104525780636bb2e32d146104655780637e41d8351461048b5761021b565b8063282c51f3146103bf5780632eb2c2d6146103e65780632f2ff15d146103f957806336568abe1461040c5761021b565b80630c024776116101ef5780630c024776146103195780630e89341c1461034457806313f43160146103645780631d9083f314610387578063248a9ca31461039c5761021b565b8062fdd58e1461022057806301870f021461024657806301ffc9a7146102d357806308a55a6e146102f6575b600080fd5b61023361022e366004612dd7565b6106db565b6040519081526020015b60405180910390f35b610295610254366004613016565b600e602052600090815260409020546001600160801b0381169063ffffffff600160801b8204811691600160a01b810490911690600160c01b900460f81b84565b604080516001600160801b0395909516855263ffffffff938416602086015291909216908301526001600160f81b031916606082015260800161023d565b6102e66102e1366004613050565b610772565b604051901515815260200161023d565b6102e6610304366004612c4a565b60086020526000908152604090205460ff1681565b60045461032c906001600160a01b031681565b6040516001600160a01b03909116815260200161023d565b610357610352366004613016565b6107d5565b60405161023d9190613512565b6102e6610372366004612c4a565b60096020526000908152604090205460ff1681565b61039a610395366004612c4a565b6109d7565b005b6102336103aa366004613016565b60009081526003602052604090206001015490565b6102337f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b61039a6103f4366004612c96565b610a0d565b61039a61040736600461302e565b610aa4565b61039a61041a36600461302e565b610ad0565b61039a61042d366004612f22565b610b4e565b610445610440366004612ec2565b610ec9565b60405161023d91906134d1565b61039a610460366004613088565b61102a565b6006546104729060f81b81565b6040516001600160f81b0319909116815260200161023d565b610357611051565b61032c6110df565b61051e6104a9366004613016565b600c60205260009081526040902080546001909101546001600160401b0380831692600160401b81049091169161ffff600160801b8304169163ffffffff600160901b8204811692600160b01b8304821692600160d01b81049092169160ff600160f01b90910416906001600160a01b031688565b604080516001600160401b03998a16815298909716602089015261ffff9095169587019590955263ffffffff928316606087015290821660808601521660a084015290151560c08301526001600160a01b031660e08201526101000161023d565b610233600a5481565b6102e661059636600461302e565b6110ef565b6105ae6105a9366004612dd7565b61111a565b60405161023d9190613470565b610357611512565b610233600081565b61039a6105d9366004612d9d565b61151f565b61039a6105ec366004612e32565b611603565b61039a6105ff36600461302e565b61168a565b6102337f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61039a61063936600461302e565b6116cf565b61023361064c366004613016565b600d6020526000908152604090205481565b6103576116f5565b6102e6610674366004612c64565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61039a6106b0366004613088565b611787565b61039a6106c3366004612d3b565b6117ae565b61039a6106d6366004612e00565b611835565b60006001600160a01b03831661074c5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806107a357506001600160e01b031982166303a24d0760e21b145b806107be57506001600160e01b03198216637965db0b60e01b145b806107cd57506107cd826118af565b90505b919050565b6000818152600e6020908152604091829020825160808101845290546001600160801b038116808352600160801b820463ffffffff90811694840194909452600160a01b820490931693820193909352600160c01b90920460f81b6001600160f81b03191660608084019190915291906108895760405162461bcd60e51b8152602060048201526015602482015274139bc81d1bdad95b88199bdc8819da5d995b881251605a1b6044820152606401610743565b80516001600160801b03166000908152600c60205260409020600101546001600160a01b031661092b5760056108cb82600001516001600160801b03166118d4565b82606001516108d9866118d4565b6108ec856020015163ffffffff166118d4565b6108ff866040015163ffffffff166118d4565b604051602001610914969594939291906131cc565b6040516020818303038152906040529150506107d0565b80516001600160801b03166000908152600c6020526040908190206001015490516303a24d0760e21b8152600481018590526001600160a01b03909116908190630e89341c9060240160006040518083038186803b15801561098c57600080fd5b505afa1580156109a0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109c891908101906130cd565b925050506107d0565b50919050565b6109e2600033610596565b6109eb57600080fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038516331480610a295750610a298533610674565b610a905760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610743565b610a9d85858585856119f6565b5050505050565b600082815260036020526040902060010154610ac181335b611bfd565b610acb8383611c61565b505050565b6001600160a01b0381163314610b405760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610743565b610b4a8282611ce7565b5050565b610b59600033610596565b610b6257600080fd5b60005b8351811015610ec35760405180610100016040528060006001600160401b0316815260200160006001600160401b03168152602001600061ffff168152602001848381518110610bc557634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff1663ffffffff168152602001848381518110610bfc57634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff1663ffffffff168152602001600063ffffffff168152602001600015158152602001838381518110610c4957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316815250600c6000868481518110610c8157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825281810192909252604090810160009081208451815494860151938601516060870151608088015160a089015160c08a01516001600160401b039586166fffffffffffffffffffffffffffffffff19909a1699909917600160401b95909816949094029690961765ffffffffffff60801b1916600160801b61ffff9093169290920263ffffffff60901b191691909117600160901b63ffffffff928316021767ffffffffffffffff60b01b1916600160b01b9582169590950263ffffffff60d01b191694909417600160d01b94909116939093029290921760ff60f01b1916600160f01b9315159390930292909217815560e090920151600190920180546001600160a01b0319166001600160a01b03909316929092179091558451859083908110610dca57634e487b7160e01b600052603260045260246000fd5b602002602001015190506040518060800160405280868481518110610dff57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160801b039081168352600083830181905260408085018290526006546001600160f81b031960f891821b16606096870152968252600e845290819020855181549487015192870151969095015190961c600160c01b0260ff60c01b1963ffffffff968716600160a01b021664ffffffffff60a01b1992909616600160801b026001600160a01b0319909416949092169390931791909117919091169190911717905580610ebb8161374c565b915050610b65565b50505050565b60608151835114610f2e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610743565b600083516001600160401b03811115610f5757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f80578160200160208202803683370190505b50905060005b845181101561102257610fe7858281518110610fb257634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610fda57634e487b7160e01b600052603260045260246000fd5b60200260200101516106db565b82828151811061100757634e487b7160e01b600052603260045260246000fd5b602090810291909101015261101b8161374c565b9050610f86565b509392505050565b611035600033610596565b61103e57600080fd5b8051610b4a906005906020840190612a53565b6007805461105e906136eb565b80601f016020809104026020016040519081016040528092919081815260200182805461108a906136eb565b80156110d75780601f106110ac576101008083540402835291602001916110d7565b820191906000526020600020905b8154815290600101906020018083116110ba57829003601f168201915b505050505081565b600b546001600160a01b03165b90565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600082620f4240600a546111309190613691565b61113a9190613646565b6001600160401b0381111561115f57634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561119257816020015b606081526020019060019003908161117d5790505b509050600060015b600a5481116112fc576000818152600e60205260409020546001600160801b03161580156111ca5750620f424181105b156111d55750620f42415b60006111e187836106db565b905080156112e95760408051600280825260608201835290916020830190803683370190505084848151811061122757634e487b7160e01b600052603260045260246000fd5b60200260200101819052508184848151811061125357634e487b7160e01b600052603260045260246000fd5b602002602001015160008151811061127b57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050808484815181106112a857634e487b7160e01b600052603260045260246000fd5b60200260200101516001815181106112d057634e487b7160e01b600052603260045260246000fd5b6020908102919091010152826112e58161374c565b9350505b50806112f48161374c565b91505061119a565b506000816001600160401b0381111561132557634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561135857816020015b60608152602001906001900390816113435790505b50905060005b82811015611508576040805160028082526060820183529091602083019080368337019050508282815181106113a457634e487b7160e01b600052603260045260246000fd5b60200260200101819052508381815181106113cf57634e487b7160e01b600052603260045260246000fd5b60200260200101516000815181106113f757634e487b7160e01b600052603260045260246000fd5b602002602001015182828151811061141f57634e487b7160e01b600052603260045260246000fd5b602002602001015160008151811061144757634e487b7160e01b600052603260045260246000fd5b60200260200101818152505083818151811061147357634e487b7160e01b600052603260045260246000fd5b602002602001015160018151811061149b57634e487b7160e01b600052603260045260246000fd5b60200260200101518282815181106114c357634e487b7160e01b600052603260045260246000fd5b60200260200101516001815181106114eb57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806115008161374c565b91505061135e565b5095945050505050565b6005805461105e906136eb565b336001600160a01b038316141561158a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610743565b3360008181526001602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516115f7911515815260200190565b60405180910390a35050565b61162d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610596565b6116725760405162461bcd60e51b815260206004820152601660248201527531b0b63632b91034b9903737ba10309036b4b73a32b960511b6044820152606401610743565b61168187878787878787611d4e565b50505050505050565b611695600033610596565b61169e57600080fd5b6000918252600c602052604090912060010180546001600160a01b0319166001600160a01b03909216919091179055565b6000828152600360205260409020600101546116eb8133610abc565b610acb8383611ce7565b606060078054611704906136eb565b80601f0160208091040260200160405190810160405280929190818152602001828054611730906136eb565b801561177d5780601f106117525761010080835404028352916020019161177d565b820191906000526020600020905b81548152906001019060200180831161176057829003601f168201915b5050505050905090565b611792600033610596565b61179b57600080fd5b8051610b4a906007906020840190612a53565b6001600160a01b0385163314806117ca57506117ca8533610674565b6118285760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610743565b610a9d8585858585612043565b61185f7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84833610596565b6118a45760405162461bcd60e51b815260206004820152601660248201527531b0b63632b91034b9903737ba103090313ab93732b960511b6044820152606401610743565b610acb838383612166565b60006001600160e01b03198216637965db0b60e01b14806107cd57506107cd826122df565b6060816118f957506040805180820190915260018152600360fc1b60208201526107d0565b8160005b8115611923578061190d8161374c565b915061191c9050600a8361365e565b91506118fd565b6000816001600160401b0381111561194b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611975576020820181803683370190505b5090505b84156119ee5761198a600183613691565b9150611997600a86613767565b6119a2906030613646565b60f81b8183815181106119c557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506119e7600a8661365e565b9450611979565b949350505050565b8151835114611a585760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610743565b6001600160a01b038416611a7e5760405162461bcd60e51b81526004016107439061356d565b33611a8d81878787878761232f565b60005b8451811015611b8f576000858281518110611abb57634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110611ae757634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611b375760405162461bcd60e51b8152600401610743906135b2565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611b74908490613646565b9250508190555050505080611b889061374c565b9050611a90565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611bdf9291906134e4565b60405180910390a4611bf58187878787876124dc565b505050505050565b611c0782826110ef565b610b4a57611c1f816001600160a01b03166014612647565b611c2a836020612647565b604051602001611c3b9291906132fd565b60408051601f198184030181529082905262461bcd60e51b825261074391600401613512565b611c6b82826110ef565b610b4a5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611ca33390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611cf182826110ef565b15610b4a5760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000868152600c6020908152604080832081516101008101835281546001600160401b038082168352600160401b8204168286015261ffff600160801b8204168285015263ffffffff600160901b820481166060840152600160b01b820481166080840152600160d01b82041660a083015260ff600160f01b90910416151560c08201526001909101546001600160a01b031660e0820152898452600d909252822054909187611e1857611e138a8a896040518060200160405280600081525061282f565b611fb1565b60005b87811015611faf57600086611e3f57611e35600185613646565b9350839050611e42565b50855b600a5480611e4f8161374c565b915050809350611e718d8560016040518060200160405280600081525061282f565b60405180608001604052808d6001600160801b031681526020018c63ffffffff1681526020018363ffffffff1681526020018a6001600160f81b031916815250600e600083815260200190815260200160002060008201518160000160006101000a8154816001600160801b0302191690836001600160801b0316021790555060208201518160000160106101000a81548163ffffffff021916908363ffffffff16021790555060408201518160000160146101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160186101000a81548160ff021916908360f81c021790555090505080600a819055508963ffffffff16600d60008e81526020019081526020016000206000828254611f939190613646565b9250508190555050508080611fa79061374c565b915050611e1b565b505b60e08301516001600160a01b0316156120375760e08301516040516360cb9a0d60e11b81526001600160a01b0382169063c197341a90612003908e9086908f908f908f908f908f908f90600401613415565b600060405180830381600087803b15801561201d57600080fd5b505af1158015612031573d6000803e3d6000fd5b50505050505b50505050505050505050565b6001600160a01b0384166120695760405162461bcd60e51b81526004016107439061356d565b3361208881878761207988612930565b61208288612930565b8761232f565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156120c95760405162461bcd60e51b8152600401610743906135b2565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612106908490613646565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611681828888888888612989565b6001600160a01b0383166121c85760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610743565b336121f7818560006121d987612930565b6121e287612930565b6040518060200160405280600081525061232f565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156122745760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610743565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b60006001600160e01b03198216636cdb3d1360e11b148061231057506001600160e01b031982166303a24d0760e21b145b806107cd57506301ffc9a760e01b6001600160e01b03198316146107cd565b60005b8351811015611681576000600e600086848151811061236157634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182528181019290925260409081016000908120825160808101845290546001600160801b038116808352600160801b820463ffffffff90811684880152600160a01b83041683860152600160c01b90910460f81b6001600160f81b03191660608301528252600c90935220600101549091506001600160a01b0316156124c95780516001600160801b03166000908152600c602052604090206001015485516001600160a01b039091169081906399829e29908a908a908a908890811061244457634e487b7160e01b600052603260045260246000fd5b602002602001015189888151811061246c57634e487b7160e01b600052603260045260246000fd5b6020026020010151896040518663ffffffff1660e01b81526004016124959594939291906133d0565b600060405180830381600087803b1580156124af57600080fd5b505af11580156124c3573d6000803e3d6000fd5b50505050505b50806124d48161374c565b915050612332565b6001600160a01b0384163b15611bf55760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906125209089908990889088908890600401613372565b602060405180830381600087803b15801561253a57600080fd5b505af192505050801561256a575060408051601f3d908101601f191682019092526125679181019061306c565b60015b612617576125766137bd565b806308c379a014156125b0575061258b6137d4565b8061259657506125b2565b8060405162461bcd60e51b81526004016107439190613512565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610743565b6001600160e01b0319811663bc197c8160e01b146116815760405162461bcd60e51b815260040161074390613525565b60606000612656836002613672565b612661906002613646565b6001600160401b0381111561268657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156126b0576020820181803683370190505b509050600360fc1b816000815181106126d957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061271657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061273a846002613672565b612745906001613646565b90505b60018111156127d9576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061278757634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106127ab57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936127d2816136d4565b9050612748565b5083156128285760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610743565b9392505050565b6001600160a01b03841661288f5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610743565b336128a08160008761207988612930565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906128d0908490613646565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a9d81600087878787612989565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061297857634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15611bf55760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906129cd90899089908890889088906004016133d0565b602060405180830381600087803b1580156129e757600080fd5b505af1925050508015612a17575060408051601f3d908101601f19168201909252612a149181019061306c565b60015b612a23576125766137bd565b6001600160e01b0319811663f23a6e6160e01b146116815760405162461bcd60e51b815260040161074390613525565b828054612a5f906136eb565b90600052602060002090601f016020900481019282612a815760008555612ac7565b82601f10612a9a57805160ff1916838001178555612ac7565b82800160010185558215612ac7579182015b82811115612ac7578251825591602001919060010190612aac565b50612ad3929150612ad7565b5090565b5b80821115612ad35760008155600101612ad8565b6000612af78361361f565b604051612b048282613720565b809250848152858585011115612b1957600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b03811681146107d057600080fd5b600082601f830112612b59578081fd5b81356020612b66826135fc565b604051612b738282613720565b8381528281019150858301600585901b87018401881015612b92578586fd5b855b85811015612bb757612ba582612b32565b84529284019290840190600101612b94565b5090979650505050505050565b600082601f830112612bd4578081fd5b81356020612be1826135fc565b604051612bee8282613720565b8381528281019150858301600585901b87018401881015612c0d578586fd5b855b85811015612bb757813584529284019290840190600101612c0f565b600082601f830112612c3b578081fd5b61282883833560208501612aec565b600060208284031215612c5b578081fd5b61282882612b32565b60008060408385031215612c76578081fd5b612c7f83612b32565b9150612c8d60208401612b32565b90509250929050565b600080600080600060a08688031215612cad578081fd5b612cb686612b32565b9450612cc460208701612b32565b935060408601356001600160401b0380821115612cdf578283fd5b612ceb89838a01612bc4565b94506060880135915080821115612d00578283fd5b612d0c89838a01612bc4565b93506080880135915080821115612d21578283fd5b50612d2e88828901612c2b565b9150509295509295909350565b600080600080600060a08688031215612d52578081fd5b612d5b86612b32565b9450612d6960208701612b32565b9350604086013592506060860135915060808601356001600160401b03811115612d91578182fd5b612d2e88828901612c2b565b60008060408385031215612daf578182fd5b612db883612b32565b915060208301358015158114612dcc578182fd5b809150509250929050565b60008060408385031215612de9578182fd5b612df283612b32565b946020939093013593505050565b600080600060608486031215612e14578081fd5b612e1d84612b32565b95602085013595506040909401359392505050565b600080600080600080600060e0888a031215612e4c578485fd5b612e5588612b32565b965060208801359550604088013594506060880135935060808801356001600160f81b031981168114612e86578283fd5b925060a0880135915060c08801356001600160401b03811115612ea7578182fd5b612eb38a828b01612bc4565b91505092959891949750929550565b60008060408385031215612ed4578182fd5b82356001600160401b0380821115612eea578384fd5b612ef686838701612b49565b93506020850135915080821115612f0b578283fd5b50612f1885828601612bc4565b9150509250929050565b600080600060608486031215612f36578081fd5b83356001600160401b0380821115612f4c578283fd5b612f5887838801612bc4565b9450602091508186013581811115612f6e578384fd5b8601601f81018813612f7e578384fd5b8035612f89816135fc565b604051612f968282613720565b8281528581019150838601600584901b850187018c1015612fb5578788fd5b8794505b83851015612fe657803561ffff81168114612fd2578889fd5b835260019490940193918601918601612fb9565b5096505050506040860135915080821115612fff578283fd5b5061300c86828701612b49565b9150509250925092565b600060208284031215613027578081fd5b5035919050565b60008060408385031215613040578182fd5b82359150612c8d60208401612b32565b600060208284031215613061578081fd5b813561282881613865565b60006020828403121561307d578081fd5b815161282881613865565b600060208284031215613099578081fd5b81356001600160401b038111156130ae578182fd5b8201601f810184136130be578182fd5b6119ee84823560208401612aec565b6000602082840312156130de578081fd5b81516001600160401b038111156130f3578182fd5b8201601f81018413613103578182fd5b805161310e8161361f565b60405161311b8282613720565b82815286602084860101111561312f578485fd5b6131408360208301602087016136a8565b9695505050505050565b6000815180845260208085019450808401835b838110156131795781518752958201959082019060010161315d565b509495945050505050565b6000815180845261319c8160208601602086016136a8565b601f01601f19169290920160200192915050565b600081516131c28185602086016136a8565b9290920192915050565b600080885482600182811c9150808316806131e857607f831692505b602080841082141561320857634e487b7160e01b87526022600452602487fd5b81801561321c576001811461322d57613259565b60ff19861689528489019650613259565b60008f815260209020885b868110156132515781548b820152908501908301613238565b505084890196505b5050643f6369643d60d81b85525061328a613277600586018d6131b0565b6626636861696e3d60c81b815260070190565b6001600160f81b03198b16815293506132ed6132e76132d86132d26132c36132bd868a016226743d60e81b815260030190565b8e6131b0565b62266c3d60e81b815260030190565b8b6131b0565b62266e3d60e81b815260030190565b886131b0565b9c9b505050505050505050505050565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516133358160178501602088016136a8565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516133668160288401602088016136a8565b01602801949350505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061339e9083018661314a565b82810360608401526133b0818661314a565b905082810360808401526133c48185613184565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061340a90830184613184565b979650505050505050565b600061010060018060a01b038b16835289602084015288604084015287606084015286608084015260ff60f81b861660a08401528460c08401528060e08401526134618184018561314a565b9b9a5050505050505050505050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b828110156134c457603f198886030184526134b285835161314a565b94509285019290850190600101613496565b5092979650505050505050565b600060208252612828602083018461314a565b6000604082526134f7604083018561314a565b8281036020840152613509818561314a565b95945050505050565b6000602082526128286020830184613184565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60006001600160401b03821115613615576136156137a7565b5060051b60200190565b60006001600160401b03821115613638576136386137a7565b50601f01601f191660200190565b600082198211156136595761365961377b565b500190565b60008261366d5761366d613791565b500490565b600081600019048311821515161561368c5761368c61377b565b500290565b6000828210156136a3576136a361377b565b500390565b60005b838110156136c35781810151838201526020016136ab565b83811115610ec35750506000910152565b6000816136e3576136e361377b565b506000190190565b600181811c908216806136ff57607f821691505b602082108114156109d157634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b0381118282101715613745576137456137a7565b6040525050565b60006000198214156137605761376061377b565b5060010190565b60008261377657613776613791565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156110ec57600481823e5160e01c90565b600060443d10156137e4576110ec565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156138155750505050506110ec565b828501915081518181111561382f575050505050506110ec565b843d870101602082850101111561384b575050505050506110ec565b61385a60208286010187613720565b509094505050505090565b6001600160e01b03198116811461387b57600080fd5b5056fea2646970667358221220b36eb72ac8a76f54d4e64867ae013563f42434dd1abeedbb75fffb985af79ff264736f6c634300080300330000000000000000000000000000000000000000000000000000000000000080450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000082f9d5fe6c46990f3c2536e83b2b4e1c0a91f27f000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f61646d696e2e7261696e692e696f2f6170692f63617264732e70687000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f697066732f516d63465378736d484b534637714c6970696f38527545394d68363162503255355664446735347a435637573567000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061021b5760003560e01c80638da5cb5b11610125578063b12b99a0116100ad578063e8a3d4851161007c578063e8a3d4851461065e578063e985e9c514610666578063efa00ce7146106a2578063f242432a146106b5578063f5298aca146106c85761021b565b8063b12b99a0146105f1578063d539139314610604578063d547741f1461062b578063dc8d65741461063e5761021b565b80639592c996116100f45780639592c9961461059b5780639abc8320146105bb578063a217fddf146105c3578063a22cb465146105cb578063a39501df146105de5761021b565b80638da5cb5b146104935780638dc107681461049b57806391ba317a1461057f57806391d14854146105885761021b565b8063282c51f3116101a8578063489d467311610177578063489d46731461041f5780634e1273f41461043257806355f804b3146104525780636bb2e32d146104655780637e41d8351461048b5761021b565b8063282c51f3146103bf5780632eb2c2d6146103e65780632f2ff15d146103f957806336568abe1461040c5761021b565b80630c024776116101ef5780630c024776146103195780630e89341c1461034457806313f43160146103645780631d9083f314610387578063248a9ca31461039c5761021b565b8062fdd58e1461022057806301870f021461024657806301ffc9a7146102d357806308a55a6e146102f6575b600080fd5b61023361022e366004612dd7565b6106db565b6040519081526020015b60405180910390f35b610295610254366004613016565b600e602052600090815260409020546001600160801b0381169063ffffffff600160801b8204811691600160a01b810490911690600160c01b900460f81b84565b604080516001600160801b0395909516855263ffffffff938416602086015291909216908301526001600160f81b031916606082015260800161023d565b6102e66102e1366004613050565b610772565b604051901515815260200161023d565b6102e6610304366004612c4a565b60086020526000908152604090205460ff1681565b60045461032c906001600160a01b031681565b6040516001600160a01b03909116815260200161023d565b610357610352366004613016565b6107d5565b60405161023d9190613512565b6102e6610372366004612c4a565b60096020526000908152604090205460ff1681565b61039a610395366004612c4a565b6109d7565b005b6102336103aa366004613016565b60009081526003602052604090206001015490565b6102337f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b61039a6103f4366004612c96565b610a0d565b61039a61040736600461302e565b610aa4565b61039a61041a36600461302e565b610ad0565b61039a61042d366004612f22565b610b4e565b610445610440366004612ec2565b610ec9565b60405161023d91906134d1565b61039a610460366004613088565b61102a565b6006546104729060f81b81565b6040516001600160f81b0319909116815260200161023d565b610357611051565b61032c6110df565b61051e6104a9366004613016565b600c60205260009081526040902080546001909101546001600160401b0380831692600160401b81049091169161ffff600160801b8304169163ffffffff600160901b8204811692600160b01b8304821692600160d01b81049092169160ff600160f01b90910416906001600160a01b031688565b604080516001600160401b03998a16815298909716602089015261ffff9095169587019590955263ffffffff928316606087015290821660808601521660a084015290151560c08301526001600160a01b031660e08201526101000161023d565b610233600a5481565b6102e661059636600461302e565b6110ef565b6105ae6105a9366004612dd7565b61111a565b60405161023d9190613470565b610357611512565b610233600081565b61039a6105d9366004612d9d565b61151f565b61039a6105ec366004612e32565b611603565b61039a6105ff36600461302e565b61168a565b6102337f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61039a61063936600461302e565b6116cf565b61023361064c366004613016565b600d6020526000908152604090205481565b6103576116f5565b6102e6610674366004612c64565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61039a6106b0366004613088565b611787565b61039a6106c3366004612d3b565b6117ae565b61039a6106d6366004612e00565b611835565b60006001600160a01b03831661074c5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806107a357506001600160e01b031982166303a24d0760e21b145b806107be57506001600160e01b03198216637965db0b60e01b145b806107cd57506107cd826118af565b90505b919050565b6000818152600e6020908152604091829020825160808101845290546001600160801b038116808352600160801b820463ffffffff90811694840194909452600160a01b820490931693820193909352600160c01b90920460f81b6001600160f81b03191660608084019190915291906108895760405162461bcd60e51b8152602060048201526015602482015274139bc81d1bdad95b88199bdc8819da5d995b881251605a1b6044820152606401610743565b80516001600160801b03166000908152600c60205260409020600101546001600160a01b031661092b5760056108cb82600001516001600160801b03166118d4565b82606001516108d9866118d4565b6108ec856020015163ffffffff166118d4565b6108ff866040015163ffffffff166118d4565b604051602001610914969594939291906131cc565b6040516020818303038152906040529150506107d0565b80516001600160801b03166000908152600c6020526040908190206001015490516303a24d0760e21b8152600481018590526001600160a01b03909116908190630e89341c9060240160006040518083038186803b15801561098c57600080fd5b505afa1580156109a0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109c891908101906130cd565b925050506107d0565b50919050565b6109e2600033610596565b6109eb57600080fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038516331480610a295750610a298533610674565b610a905760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610743565b610a9d85858585856119f6565b5050505050565b600082815260036020526040902060010154610ac181335b611bfd565b610acb8383611c61565b505050565b6001600160a01b0381163314610b405760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610743565b610b4a8282611ce7565b5050565b610b59600033610596565b610b6257600080fd5b60005b8351811015610ec35760405180610100016040528060006001600160401b0316815260200160006001600160401b03168152602001600061ffff168152602001848381518110610bc557634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff1663ffffffff168152602001848381518110610bfc57634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff1663ffffffff168152602001600063ffffffff168152602001600015158152602001838381518110610c4957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316815250600c6000868481518110610c8157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825281810192909252604090810160009081208451815494860151938601516060870151608088015160a089015160c08a01516001600160401b039586166fffffffffffffffffffffffffffffffff19909a1699909917600160401b95909816949094029690961765ffffffffffff60801b1916600160801b61ffff9093169290920263ffffffff60901b191691909117600160901b63ffffffff928316021767ffffffffffffffff60b01b1916600160b01b9582169590950263ffffffff60d01b191694909417600160d01b94909116939093029290921760ff60f01b1916600160f01b9315159390930292909217815560e090920151600190920180546001600160a01b0319166001600160a01b03909316929092179091558451859083908110610dca57634e487b7160e01b600052603260045260246000fd5b602002602001015190506040518060800160405280868481518110610dff57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160801b039081168352600083830181905260408085018290526006546001600160f81b031960f891821b16606096870152968252600e845290819020855181549487015192870151969095015190961c600160c01b0260ff60c01b1963ffffffff968716600160a01b021664ffffffffff60a01b1992909616600160801b026001600160a01b0319909416949092169390931791909117919091169190911717905580610ebb8161374c565b915050610b65565b50505050565b60608151835114610f2e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610743565b600083516001600160401b03811115610f5757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f80578160200160208202803683370190505b50905060005b845181101561102257610fe7858281518110610fb257634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610fda57634e487b7160e01b600052603260045260246000fd5b60200260200101516106db565b82828151811061100757634e487b7160e01b600052603260045260246000fd5b602090810291909101015261101b8161374c565b9050610f86565b509392505050565b611035600033610596565b61103e57600080fd5b8051610b4a906005906020840190612a53565b6007805461105e906136eb565b80601f016020809104026020016040519081016040528092919081815260200182805461108a906136eb565b80156110d75780601f106110ac576101008083540402835291602001916110d7565b820191906000526020600020905b8154815290600101906020018083116110ba57829003601f168201915b505050505081565b600b546001600160a01b03165b90565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600082620f4240600a546111309190613691565b61113a9190613646565b6001600160401b0381111561115f57634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561119257816020015b606081526020019060019003908161117d5790505b509050600060015b600a5481116112fc576000818152600e60205260409020546001600160801b03161580156111ca5750620f424181105b156111d55750620f42415b60006111e187836106db565b905080156112e95760408051600280825260608201835290916020830190803683370190505084848151811061122757634e487b7160e01b600052603260045260246000fd5b60200260200101819052508184848151811061125357634e487b7160e01b600052603260045260246000fd5b602002602001015160008151811061127b57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050808484815181106112a857634e487b7160e01b600052603260045260246000fd5b60200260200101516001815181106112d057634e487b7160e01b600052603260045260246000fd5b6020908102919091010152826112e58161374c565b9350505b50806112f48161374c565b91505061119a565b506000816001600160401b0381111561132557634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561135857816020015b60608152602001906001900390816113435790505b50905060005b82811015611508576040805160028082526060820183529091602083019080368337019050508282815181106113a457634e487b7160e01b600052603260045260246000fd5b60200260200101819052508381815181106113cf57634e487b7160e01b600052603260045260246000fd5b60200260200101516000815181106113f757634e487b7160e01b600052603260045260246000fd5b602002602001015182828151811061141f57634e487b7160e01b600052603260045260246000fd5b602002602001015160008151811061144757634e487b7160e01b600052603260045260246000fd5b60200260200101818152505083818151811061147357634e487b7160e01b600052603260045260246000fd5b602002602001015160018151811061149b57634e487b7160e01b600052603260045260246000fd5b60200260200101518282815181106114c357634e487b7160e01b600052603260045260246000fd5b60200260200101516001815181106114eb57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806115008161374c565b91505061135e565b5095945050505050565b6005805461105e906136eb565b336001600160a01b038316141561158a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610743565b3360008181526001602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516115f7911515815260200190565b60405180910390a35050565b61162d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610596565b6116725760405162461bcd60e51b815260206004820152601660248201527531b0b63632b91034b9903737ba10309036b4b73a32b960511b6044820152606401610743565b61168187878787878787611d4e565b50505050505050565b611695600033610596565b61169e57600080fd5b6000918252600c602052604090912060010180546001600160a01b0319166001600160a01b03909216919091179055565b6000828152600360205260409020600101546116eb8133610abc565b610acb8383611ce7565b606060078054611704906136eb565b80601f0160208091040260200160405190810160405280929190818152602001828054611730906136eb565b801561177d5780601f106117525761010080835404028352916020019161177d565b820191906000526020600020905b81548152906001019060200180831161176057829003601f168201915b5050505050905090565b611792600033610596565b61179b57600080fd5b8051610b4a906007906020840190612a53565b6001600160a01b0385163314806117ca57506117ca8533610674565b6118285760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610743565b610a9d8585858585612043565b61185f7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84833610596565b6118a45760405162461bcd60e51b815260206004820152601660248201527531b0b63632b91034b9903737ba103090313ab93732b960511b6044820152606401610743565b610acb838383612166565b60006001600160e01b03198216637965db0b60e01b14806107cd57506107cd826122df565b6060816118f957506040805180820190915260018152600360fc1b60208201526107d0565b8160005b8115611923578061190d8161374c565b915061191c9050600a8361365e565b91506118fd565b6000816001600160401b0381111561194b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611975576020820181803683370190505b5090505b84156119ee5761198a600183613691565b9150611997600a86613767565b6119a2906030613646565b60f81b8183815181106119c557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506119e7600a8661365e565b9450611979565b949350505050565b8151835114611a585760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610743565b6001600160a01b038416611a7e5760405162461bcd60e51b81526004016107439061356d565b33611a8d81878787878761232f565b60005b8451811015611b8f576000858281518110611abb57634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110611ae757634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611b375760405162461bcd60e51b8152600401610743906135b2565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611b74908490613646565b9250508190555050505080611b889061374c565b9050611a90565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611bdf9291906134e4565b60405180910390a4611bf58187878787876124dc565b505050505050565b611c0782826110ef565b610b4a57611c1f816001600160a01b03166014612647565b611c2a836020612647565b604051602001611c3b9291906132fd565b60408051601f198184030181529082905262461bcd60e51b825261074391600401613512565b611c6b82826110ef565b610b4a5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611ca33390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611cf182826110ef565b15610b4a5760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000868152600c6020908152604080832081516101008101835281546001600160401b038082168352600160401b8204168286015261ffff600160801b8204168285015263ffffffff600160901b820481166060840152600160b01b820481166080840152600160d01b82041660a083015260ff600160f01b90910416151560c08201526001909101546001600160a01b031660e0820152898452600d909252822054909187611e1857611e138a8a896040518060200160405280600081525061282f565b611fb1565b60005b87811015611faf57600086611e3f57611e35600185613646565b9350839050611e42565b50855b600a5480611e4f8161374c565b915050809350611e718d8560016040518060200160405280600081525061282f565b60405180608001604052808d6001600160801b031681526020018c63ffffffff1681526020018363ffffffff1681526020018a6001600160f81b031916815250600e600083815260200190815260200160002060008201518160000160006101000a8154816001600160801b0302191690836001600160801b0316021790555060208201518160000160106101000a81548163ffffffff021916908363ffffffff16021790555060408201518160000160146101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160186101000a81548160ff021916908360f81c021790555090505080600a819055508963ffffffff16600d60008e81526020019081526020016000206000828254611f939190613646565b9250508190555050508080611fa79061374c565b915050611e1b565b505b60e08301516001600160a01b0316156120375760e08301516040516360cb9a0d60e11b81526001600160a01b0382169063c197341a90612003908e9086908f908f908f908f908f908f90600401613415565b600060405180830381600087803b15801561201d57600080fd5b505af1158015612031573d6000803e3d6000fd5b50505050505b50505050505050505050565b6001600160a01b0384166120695760405162461bcd60e51b81526004016107439061356d565b3361208881878761207988612930565b61208288612930565b8761232f565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156120c95760405162461bcd60e51b8152600401610743906135b2565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612106908490613646565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611681828888888888612989565b6001600160a01b0383166121c85760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610743565b336121f7818560006121d987612930565b6121e287612930565b6040518060200160405280600081525061232f565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156122745760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610743565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b60006001600160e01b03198216636cdb3d1360e11b148061231057506001600160e01b031982166303a24d0760e21b145b806107cd57506301ffc9a760e01b6001600160e01b03198316146107cd565b60005b8351811015611681576000600e600086848151811061236157634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182528181019290925260409081016000908120825160808101845290546001600160801b038116808352600160801b820463ffffffff90811684880152600160a01b83041683860152600160c01b90910460f81b6001600160f81b03191660608301528252600c90935220600101549091506001600160a01b0316156124c95780516001600160801b03166000908152600c602052604090206001015485516001600160a01b039091169081906399829e29908a908a908a908890811061244457634e487b7160e01b600052603260045260246000fd5b602002602001015189888151811061246c57634e487b7160e01b600052603260045260246000fd5b6020026020010151896040518663ffffffff1660e01b81526004016124959594939291906133d0565b600060405180830381600087803b1580156124af57600080fd5b505af11580156124c3573d6000803e3d6000fd5b50505050505b50806124d48161374c565b915050612332565b6001600160a01b0384163b15611bf55760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906125209089908990889088908890600401613372565b602060405180830381600087803b15801561253a57600080fd5b505af192505050801561256a575060408051601f3d908101601f191682019092526125679181019061306c565b60015b612617576125766137bd565b806308c379a014156125b0575061258b6137d4565b8061259657506125b2565b8060405162461bcd60e51b81526004016107439190613512565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610743565b6001600160e01b0319811663bc197c8160e01b146116815760405162461bcd60e51b815260040161074390613525565b60606000612656836002613672565b612661906002613646565b6001600160401b0381111561268657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156126b0576020820181803683370190505b509050600360fc1b816000815181106126d957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061271657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061273a846002613672565b612745906001613646565b90505b60018111156127d9576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061278757634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106127ab57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936127d2816136d4565b9050612748565b5083156128285760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610743565b9392505050565b6001600160a01b03841661288f5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610743565b336128a08160008761207988612930565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906128d0908490613646565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a9d81600087878787612989565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061297857634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15611bf55760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906129cd90899089908890889088906004016133d0565b602060405180830381600087803b1580156129e757600080fd5b505af1925050508015612a17575060408051601f3d908101601f19168201909252612a149181019061306c565b60015b612a23576125766137bd565b6001600160e01b0319811663f23a6e6160e01b146116815760405162461bcd60e51b815260040161074390613525565b828054612a5f906136eb565b90600052602060002090601f016020900481019282612a815760008555612ac7565b82601f10612a9a57805160ff1916838001178555612ac7565b82800160010185558215612ac7579182015b82811115612ac7578251825591602001919060010190612aac565b50612ad3929150612ad7565b5090565b5b80821115612ad35760008155600101612ad8565b6000612af78361361f565b604051612b048282613720565b809250848152858585011115612b1957600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b03811681146107d057600080fd5b600082601f830112612b59578081fd5b81356020612b66826135fc565b604051612b738282613720565b8381528281019150858301600585901b87018401881015612b92578586fd5b855b85811015612bb757612ba582612b32565b84529284019290840190600101612b94565b5090979650505050505050565b600082601f830112612bd4578081fd5b81356020612be1826135fc565b604051612bee8282613720565b8381528281019150858301600585901b87018401881015612c0d578586fd5b855b85811015612bb757813584529284019290840190600101612c0f565b600082601f830112612c3b578081fd5b61282883833560208501612aec565b600060208284031215612c5b578081fd5b61282882612b32565b60008060408385031215612c76578081fd5b612c7f83612b32565b9150612c8d60208401612b32565b90509250929050565b600080600080600060a08688031215612cad578081fd5b612cb686612b32565b9450612cc460208701612b32565b935060408601356001600160401b0380821115612cdf578283fd5b612ceb89838a01612bc4565b94506060880135915080821115612d00578283fd5b612d0c89838a01612bc4565b93506080880135915080821115612d21578283fd5b50612d2e88828901612c2b565b9150509295509295909350565b600080600080600060a08688031215612d52578081fd5b612d5b86612b32565b9450612d6960208701612b32565b9350604086013592506060860135915060808601356001600160401b03811115612d91578182fd5b612d2e88828901612c2b565b60008060408385031215612daf578182fd5b612db883612b32565b915060208301358015158114612dcc578182fd5b809150509250929050565b60008060408385031215612de9578182fd5b612df283612b32565b946020939093013593505050565b600080600060608486031215612e14578081fd5b612e1d84612b32565b95602085013595506040909401359392505050565b600080600080600080600060e0888a031215612e4c578485fd5b612e5588612b32565b965060208801359550604088013594506060880135935060808801356001600160f81b031981168114612e86578283fd5b925060a0880135915060c08801356001600160401b03811115612ea7578182fd5b612eb38a828b01612bc4565b91505092959891949750929550565b60008060408385031215612ed4578182fd5b82356001600160401b0380821115612eea578384fd5b612ef686838701612b49565b93506020850135915080821115612f0b578283fd5b50612f1885828601612bc4565b9150509250929050565b600080600060608486031215612f36578081fd5b83356001600160401b0380821115612f4c578283fd5b612f5887838801612bc4565b9450602091508186013581811115612f6e578384fd5b8601601f81018813612f7e578384fd5b8035612f89816135fc565b604051612f968282613720565b8281528581019150838601600584901b850187018c1015612fb5578788fd5b8794505b83851015612fe657803561ffff81168114612fd2578889fd5b835260019490940193918601918601612fb9565b5096505050506040860135915080821115612fff578283fd5b5061300c86828701612b49565b9150509250925092565b600060208284031215613027578081fd5b5035919050565b60008060408385031215613040578182fd5b82359150612c8d60208401612b32565b600060208284031215613061578081fd5b813561282881613865565b60006020828403121561307d578081fd5b815161282881613865565b600060208284031215613099578081fd5b81356001600160401b038111156130ae578182fd5b8201601f810184136130be578182fd5b6119ee84823560208401612aec565b6000602082840312156130de578081fd5b81516001600160401b038111156130f3578182fd5b8201601f81018413613103578182fd5b805161310e8161361f565b60405161311b8282613720565b82815286602084860101111561312f578485fd5b6131408360208301602087016136a8565b9695505050505050565b6000815180845260208085019450808401835b838110156131795781518752958201959082019060010161315d565b509495945050505050565b6000815180845261319c8160208601602086016136a8565b601f01601f19169290920160200192915050565b600081516131c28185602086016136a8565b9290920192915050565b600080885482600182811c9150808316806131e857607f831692505b602080841082141561320857634e487b7160e01b87526022600452602487fd5b81801561321c576001811461322d57613259565b60ff19861689528489019650613259565b60008f815260209020885b868110156132515781548b820152908501908301613238565b505084890196505b5050643f6369643d60d81b85525061328a613277600586018d6131b0565b6626636861696e3d60c81b815260070190565b6001600160f81b03198b16815293506132ed6132e76132d86132d26132c36132bd868a016226743d60e81b815260030190565b8e6131b0565b62266c3d60e81b815260030190565b8b6131b0565b62266e3d60e81b815260030190565b886131b0565b9c9b505050505050505050505050565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516133358160178501602088016136a8565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516133668160288401602088016136a8565b01602801949350505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061339e9083018661314a565b82810360608401526133b0818661314a565b905082810360808401526133c48185613184565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061340a90830184613184565b979650505050505050565b600061010060018060a01b038b16835289602084015288604084015287606084015286608084015260ff60f81b861660a08401528460c08401528060e08401526134618184018561314a565b9b9a5050505050505050505050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b828110156134c457603f198886030184526134b285835161314a565b94509285019290850190600101613496565b5092979650505050505050565b600060208252612828602083018461314a565b6000604082526134f7604083018561314a565b8281036020840152613509818561314a565b95945050505050565b6000602082526128286020830184613184565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60006001600160401b03821115613615576136156137a7565b5060051b60200190565b60006001600160401b03821115613638576136386137a7565b50601f01601f191660200190565b600082198211156136595761365961377b565b500190565b60008261366d5761366d613791565b500490565b600081600019048311821515161561368c5761368c61377b565b500290565b6000828210156136a3576136a361377b565b500390565b60005b838110156136c35781810151838201526020016136ab565b83811115610ec35750506000910152565b6000816136e3576136e361377b565b506000190190565b600181811c908216806136ff57607f821691505b602082108114156109d157634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b0381118282101715613745576137456137a7565b6040525050565b60006000198214156137605761376061377b565b5060010190565b60008261377657613776613791565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156110ec57600481823e5160e01c90565b600060443d10156137e4576110ec565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156138155750505050506110ec565b828501915081518181111561382f575050505050506110ec565b843d870101602082850101111561384b575050505050506110ec565b61385a60208286010187613720565b509094505050505090565b6001600160e01b03198116811461387b57600080fd5b5056fea2646970667358221220b36eb72ac8a76f54d4e64867ae013563f42434dd1abeedbb75fffb985af79ff264736f6c63430008030033

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

0000000000000000000000000000000000000000000000000000000000000080450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000082f9d5fe6c46990f3c2536e83b2b4e1c0a91f27f000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f61646d696e2e7261696e692e696f2f6170692f63617264732e70687000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f697066732f516d63465378736d484b534637714c6970696f38527545394d68363162503255355664446735347a435637573567000000000000

-----Decoded View---------------
Arg [0] : _uri (string): https://admin.raini.io/api/cards.php
Arg [1] : _contractChar (bytes1): 0x45
Arg [2] : _contractURIString (string): ipfs://ipfs/QmcFSxsmHKSF7qLipio8RuE9Mh61bP2U5VdDg54zCV7W5g
Arg [3] : _contractOwner (address): 0x82F9d5FE6C46990f3C2536e83b2B4e1c0a91F27f

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 4500000000000000000000000000000000000000000000000000000000000000
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 00000000000000000000000082f9d5fe6c46990f3c2536e83b2b4e1c0a91f27f
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000024
Arg [5] : 68747470733a2f2f61646d696e2e7261696e692e696f2f6170692f6361726473
Arg [6] : 2e70687000000000000000000000000000000000000000000000000000000000
Arg [7] : 000000000000000000000000000000000000000000000000000000000000003a
Arg [8] : 697066733a2f2f697066732f516d63465378736d484b534637714c6970696f38
Arg [9] : 527545394d68363162503255355664446735347a435637573567000000000000


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.