ETH Price: $3,292.52 (+4.86%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...168482382023-03-17 14:51:471033 days ago1679064707IN
0xfd39C675...239242327
0 ETH0.0016528535.47666937
Set Approval For...163719332023-01-09 21:29:471100 days ago1673299787IN
0xfd39C675...239242327
0 ETH0.0009035333.85295734
Set Approval For...163719322023-01-09 21:29:351100 days ago1673299775IN
0xfd39C675...239242327
0 ETH0.0014749231.65752613
Safe Transfer Fr...162168902022-12-19 6:16:111122 days ago1671430571IN
0xfd39C675...239242327
0 ETH0.0012956312.95056181
Safe Transfer Fr...162168772022-12-19 6:13:351122 days ago1671430415IN
0xfd39C675...239242327
0 ETH0.0013997713.99149258
Safe Transfer Fr...162168552022-12-19 6:09:111122 days ago1671430151IN
0xfd39C675...239242327
0 ETH0.0017893812.86908139
Mint161801742022-12-14 3:12:471127 days ago1670987567IN
0xfd39C675...239242327
0 ETH0.0023252718.04578636
Mint161801692022-12-14 3:11:471127 days ago1670987507IN
0xfd39C675...239242327
0 ETH0.0023680117.71751588
Mint161801662022-12-14 3:11:111127 days ago1670987471IN
0xfd39C675...239242327
0 ETH0.0024741418.51159686
Mint161801602022-12-14 3:09:591127 days ago1670987399IN
0xfd39C675...239242327
0 ETH0.002897420.1259207
Mint161801562022-12-14 3:09:111127 days ago1670987351IN
0xfd39C675...239242327
0 ETH0.0022889117.12570516
Mint161801502022-12-14 3:07:591127 days ago1670987279IN
0xfd39C675...239242327
0 ETH0.0027840718.46524325
Mint161801322022-12-14 3:04:231127 days ago1670987063IN
0xfd39C675...239242327
0 ETH0.0025801817.11521254
Mint161801262022-12-14 3:03:111127 days ago1670986991IN
0xfd39C675...239242327
0 ETH0.0024169216.03116549
Mint161801212022-12-14 3:02:111127 days ago1670986931IN
0xfd39C675...239242327
0 ETH0.0026433715.74958306
Mint161801162022-12-14 3:01:111127 days ago1670986871IN
0xfd39C675...239242327
0 ETH0.0019393615.28819461
Mint161801112022-12-14 3:00:111127 days ago1670986811IN
0xfd39C675...239242327
0 ETH0.0022691715.05114412
Safe Transfer Fr...158339482022-10-26 18:09:471175 days ago1666807787IN
0xfd39C675...239242327
0 ETH0.0030497122.74801603
Set Approval For...157770232022-10-18 19:16:471183 days ago1666120607IN
0xfd39C675...239242327
0 ETH0.001410330.27050474
Set Approval For...157548332022-10-15 16:52:351186 days ago1665852755IN
0xfd39C675...239242327
0 ETH0.0008385217.99794813
Mint156495082022-09-30 23:42:471201 days ago1664581367IN
0xfd39C675...239242327
0 ETH0.0037294617.11758826
Set Approval For...156216952022-09-27 2:25:111205 days ago1664245511IN
0xfd39C675...239242327
0 ETH0.0005408611.608937
Mint156020512022-09-24 8:33:471208 days ago1664008427IN
0xfd39C675...239242327
0 ETH0.001271526.3331679
Mint154573652022-09-02 5:31:531230 days ago1662096713IN
0xfd39C675...239242327
0 ETH0.00231139.83647405
Mint154573412022-09-02 5:26:221230 days ago1662096382IN
0xfd39C675...239242327
0 ETH0.0029167810.18883861
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

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

Contract Source Code Verified (Exact Match)

Contract Name:
ShibaCards

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./abstracts/ShibaCardsDealable.sol";
import "./abstracts/ShibaCardsPayable.sol";
import "./abstracts/ShibaCardsDividendsDistributable.sol";
import "./interfaces/IDealer.sol";
import "./interfaces/IBank.sol";

contract ShibaCards is
  ERC1155Pausable,
  ShibaCardsDividendsDistributable,
  ShibaCardsPayable,
  ShibaCardsDealable
{
  using SafeMath for uint256;
  using Counters for Counters.Counter;

  Counters.Counter private nonce;

  event Gifted(address indexed to, uint256 amount);
  event Minted(address indexed to, uint256[] ids, uint256 shares);

  uint256[] internal amounts = [1,1,1];
  uint32 public constant BOOSTER = 3;
  mapping(uint256 => address) internal _requestByID;
  mapping(address => uint256) internal _freeMints;

  constructor(string memory _uri) ERC1155(_uri) {}

  /**
   * @dev See {ERC1155-_beforeTokenTransfer}.
   */
  function _beforeTokenTransfer(
    address operator,
    address from,
    address to,
    uint256[] memory ids,
    uint256[] memory _amounts,
    bytes memory data
  ) internal override {
    super._beforeTokenTransfer(operator, from, to, ids, _amounts, data);

    if (from != address(0) && to != address(0)) {
      for (uint256 i; i < ids.length; i++) {
          dividendsDistributer.transferShares(
            from,
            to,
            dealer.getSharesOf(ids[i]) * _amounts[i]
          );
      }
    }
  }

  function mintSpecific(
    address to,
    uint256[] memory ids,
    uint256[] memory _amounts
  ) external onlyWhitelistedOrAdmin {
    uint256 totalShares;
    for (uint256 i = 0; i < ids.length; i++) {
      totalShares += dealer.getSharesOf(ids[i]) * _amounts[i];
    }
    dividendsDistributer.addShares(to, totalShares);
    _mintBatch(to, ids, _amounts, "");
  }

  function burn(
    uint256 id,
    uint256 amount
  ) public {
    _burn(_msgSender(), id, amount);
    dividendsDistributer.removeShares(_msgSender(), dealer.getSharesOf(id).mul(amount));
  }

  function burn(
    address from,
    uint256 id,
    uint256 amount
  ) public onlyWhitelisted {
    _burn(from, id, amount);
    dividendsDistributer.removeShares(from, dealer.getSharesOf(id).mul(amount));
  }

  /**
   * @dev Mints booster packs with multiple random tokens.
   */
  function mint() public payable virtual {
    address to = _msgSender();
    uint256 payment = getFees();

    if (_freeMints[to] > 0) {
      payment = 0;
      _freeMints[to] -= 1;
    }

    if (payment > 0) {
      bank.makePayment(to, payment);
      bank.distribute(payment);
    }

    (uint256[] memory ids, uint256 shares) = dealer.getIdsAndShares(rnds(BOOSTER));

    dividendsDistributer.addShares(to, shares);

    _mintBatch(to, ids, amounts, "");

    emit Minted(to, ids, shares);
  }

  /**
   * @dev Shows free mints of account.
   */
  function getFreeMints(address account) public view returns(uint256) {
    return _freeMints[account];
  }

  /**
   * @dev gifts a free mint token to someone else
   */
  function gift(address to, uint256 amount) public {
    if (!isAdmin(_msgSender()) && !isWhitelisted(_msgSender())) {
      bank.makePayment(_msgSender(), getFees() * amount);
    }
    _freeMints[to] += amount;
    emit Gifted(to, amount);
  }

  function rnds(uint256 amount) internal returns (uint256[] memory) {
    uint256[] memory vals = new uint256[](amount);

    for (uint256 index = 0; index < amount; index++) {  
      vals[index] = uint256(keccak256(abi.encodePacked(nonce.current())));
      nonce.increment();
    }

    return vals;
  }

  /**
   * @dev Pauses transactions.
   */
  function pause() public onlyAdmin {
    _pause();
  }

  /**
   * @dev Continues transactions.
   */
  function unpause() public onlyAdmin {
    _unpause();
  }

  /**
   * @dev See {IERC165-supportsInterface}.
   */
  function supportsInterface(bytes4 interfaceId)
    public
    view
    virtual
    override(AccessControl, ERC1155)
    returns (bool)
  {
    return ERC1155.supportsInterface(interfaceId);
  }

  /**
   * @dev Update URI.
   */
  function setURI(string memory _uri) public onlyAdmin {
    _setURI(_uri);
  }

  function isApprovedForAll(address _owner, address _operator)
    public
    view
    override
    returns (bool isOperator)
  {
    // Whitelist ShibaCards contract for easy trading.
    if (isWhitelisted(_operator)) {
      return true;
    }

    return ERC1155.isApprovedForAll(_owner, _operator);
  }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
import "./IDistributer.sol";

interface ISharesDistributer is IDistributer {
  /**
   * @dev Move shares from one to another
   */
  function moveShares(
    address from,
    address to,
    uint256 shares
  ) external;
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";

interface IMinter is IERC1155 {
  function mintSpecific(
    address to,
    uint256[] memory ids,
    uint256[] memory amounts
  ) external;

  function burn(
    address from,
    uint256 id,
    uint256 amount
  ) external;
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
import "./IDistributer.sol";

interface IDividendsDistributer is IDistributer {
  event SharesAdded(address to, uint256 shares);
  event SharesTransferred(address from, address to, uint256 shares);
  event SharesRemoved(address from, uint256 shares);

  /**
   * @dev Add shares to wallet
   */
  function addShares(address to, uint256 shares) external;

  /**
   * @dev Remove shares from wallet
   */
  function removeShares(address from, uint256 shares) external;

  /**
   * @dev Move shares from one to another
   */
  function transferShares(
    address from,
    address to,
    uint256 shares
  ) external;
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IDistributer {
  /**
   * @dev Distribute money
   */
  function distribute(uint256 amount) external;

  /**
   * @dev Display claimable amount
   */
  function claimable() external view returns (uint256);

  /**
   * @dev Prepares claiming
   */
  function prepareClaim(address account) external returns (uint256);
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
import "./IDistributer.sol";

interface IDealer {
  event CardCreated(uint256[] tokenIds, bool mintable);
  event CardEnabled(uint256[3] tokenIds);
  event CardDisabled(uint256[3] tokenIds);

  function getIdsAndShares(uint256[] memory rnds) external returns (uint256[] memory ids, uint256 shares);

  function getEditionByTokenId(uint256 id) external returns (uint256);

  function getSharesOf(uint256 id) external returns (uint256 shares);
  function getSharesOf(uint256[] memory ids) external returns (uint256 shares);

  function create() external returns (uint256[] memory);
  function createNonMintable() external returns (uint256[] memory);
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IBank {
  event SharesClaimed(address account, uint256 amount);
  event DividendsClaimed(address account, uint256 amount);
  event ERC20Burned(uint256 amount);

  /**
   * @dev Make payment
   */
  function makePayment(address from, uint256 amount) external;

  /**
   * @dev Distribute Shares
   */
  function distribute(uint256 amount) external;

  /**
   * @dev Transfer ERC20
   */
  function transfer(
    address from,
    address to,
    uint256 amount
  ) external;

  /**
   * @dev Claim your shares
   */
    function claimShares() external;

  /**
   * @dev Claim your dividends
   */
  function claimDividends() external;
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
import "./ShibaCardsAccessible.sol";

import "../interfaces/IBank.sol";
import "../interfaces/IMinter.sol";

abstract contract ShibaCardsPayable is ShibaCardsAccessible {
  IBank public bank;

  uint256 private fees;

  event FeesChanged(uint256 fees);

  function getFees() public view returns (uint256) {
    return fees;
  }

  function setFees(uint256 _fees) public onlyAdmin {
    fees = _fees;
    emit FeesChanged(_fees);
  }

  function setBank(address _bank) public onlyAdmin {
    bank = IBank(_bank);
  }
}

File 9 of 28 : ShibaCardsDividendsDistributable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
import "./ShibaCardsAccessible.sol";

import "../interfaces/ISharesDistributer.sol";
import "../interfaces/IDividendsDistributer.sol";

abstract contract ShibaCardsDividendsDistributable is ShibaCardsAccessible {
  IDividendsDistributer public dividendsDistributer;

  function setDividendsDistributer(address distributer)
    public
    onlyAdmin
  {
    dividendsDistributer = IDividendsDistributer(distributer);
  }
}

File 10 of 28 : ShibaCardsDealable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
import "./ShibaCardsAccessible.sol";

import "../interfaces/IDealer.sol";

abstract contract ShibaCardsDealable is ShibaCardsAccessible {
  IDealer public dealer;

  function setDealer(address _dealer) public onlyAdmin {
    dealer = IDealer(_dealer);
  }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/AccessControl.sol";

abstract contract ShibaCardsAccessible is AccessControl {
  address private _owner;
  bytes32 public constant WHITELISTED = keccak256("WHITELISTED");

  constructor() {
    _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
    _owner = _msgSender(); 
  }

  /**
  * @dev Returns the address of the current owner. Required to identify as the owner of the contract on some platforms like Opensea.
  */
  function owner() public view virtual returns (address) {
    return _owner;
  }

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

  /// @dev Restricted to members of the whitelisted or admin role.
  modifier onlyWhitelistedOrAdmin() {
    require(
      isWhitelisted(_msgSender()) || isAdmin(_msgSender()),
      "Restricted to whitelisted or admin"
    );
    _;
  }

  /// @dev Restricted to members of the whitelisted role.
  modifier onlyWhitelisted() {
    require(isWhitelisted(_msgSender()), "Restricted to whitelisted.");
    _;
  }

  /// @dev Return `true` if the account belongs to the whitelisted role.
  function isWhitelisted(address account) public view virtual returns (bool) {
    return hasRole(WHITELISTED, account);
  }

  /// @dev Restricted to members of the admin role.
  modifier onlyAdmin() {
    require(isAdmin(_msgSender()), "Restricted to admins.");
    _;
  }

  /// @dev Return `true` if the account belongs to the admin role.
  function isAdmin(address account) public view virtual returns (bool) {
    return hasRole(DEFAULT_ADMIN_ROLE, account);
  }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 22 of 28 : ERC1155Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Pausable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC1155 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Pausable is ERC1155, Pausable {
    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        require(!paused(), "ERC1155Pausable: token transfer while paused");
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

        return array;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

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 virtual 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 virtual {
        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 virtual 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 revoked `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}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    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);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"fees","type":"uint256"}],"name":"FeesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Gifted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"BOOSTER","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELISTED","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":"bank","outputs":[{"internalType":"contract IBank","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dealer","outputs":[{"internalType":"contract IDealer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendsDistributer","outputs":[{"internalType":"contract IDividendsDistributer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getFreeMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","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":"address","name":"account","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"mintSpecific","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","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":"address","name":"_bank","type":"address"}],"name":"setBank","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_dealer","type":"address"}],"name":"setDealer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"distributer","type":"address"}],"name":"setDividendsDistributer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fees","type":"uint256"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040526040518060600160405280600160ff168152602001600160ff168152602001600160ff16815250600b9060036200003d929190620002b1565b503480156200004b57600080fd5b506040516200619d3803806200619d833981810160405281019062000071919062000436565b8062000083816200011a60201b60201c565b506000600360006101000a81548160ff021916908315150217905550620000c36000801b620000b76200013660201b60201c565b6200013e60201b60201c565b620000d36200013660201b60201c565b600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506200060b565b80600290805190602001906200013292919062000308565b5050565b600033905090565b6200015082826200015460201b60201c565b5050565b6200016682826200024660201b60201c565b620002425760016004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620001e76200013660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b828054828255906000526020600020908101928215620002f5579160200282015b82811115620002f4578251829060ff16905591602001919060010190620002d2565b5b50905062000304919062000399565b5090565b82805462000316906200051c565b90600052602060002090601f0160209004810192826200033a576000855562000386565b82601f106200035557805160ff191683800117855562000386565b8280016001018555821562000386579182015b828111156200038557825182559160200191906001019062000368565b5b50905062000395919062000399565b5090565b5b80821115620003b45760008160009055506001016200039a565b5090565b6000620003cf620003c984620004b0565b62000487565b905082815260208101848484011115620003ee57620003ed620005eb565b5b620003fb848285620004e6565b509392505050565b600082601f8301126200041b576200041a620005e6565b5b81516200042d848260208601620003b8565b91505092915050565b6000602082840312156200044f576200044e620005f5565b5b600082015167ffffffffffffffff81111562000470576200046f620005f0565b5b6200047e8482850162000403565b91505092915050565b600062000493620004a6565b9050620004a1828262000552565b919050565b6000604051905090565b600067ffffffffffffffff821115620004ce57620004cd620005b7565b5b620004d982620005fa565b9050602081019050919050565b60005b8381101562000506578082015181840152602081019050620004e9565b8381111562000516576000848401525b50505050565b600060028204905060018216806200053557607f821691505b602082108114156200054c576200054b62000588565b5b50919050565b6200055d82620005fa565b810181811067ffffffffffffffff821117156200057f576200057e620005b7565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b615b82806200061b6000396000f3fe6080604052600436106102245760003560e01c8063703c2f5a11610123578063a22cb465116100ab578063e985e9c51161006f578063e985e9c5146107e1578063efee35681461081e578063f242432a1461085b578063f2fde38b14610884578063f5298aca146108ad57610224565b8063a22cb46514610712578063b390c0ab1461073b578063cbce4c9714610764578063d547741f1461078d578063db8d55f1146107b657610224565b80638456cb59116100f25780638456cb591461063d5780638da5cb5b1461065457806391d148541461067f5780639de2ee21146106bc578063a217fddf146106e757610224565b8063703c2f5a14610593578063708f1e33146105bc57806375b0ffd1146105e757806376cdb03b1461061257610224565b8063248a9ca3116101b15780633af32abf116101755780633af32abf146104ae5780633d18678e146104eb5780633f4ba83a146105145780634e1273f41461052b5780635c975abb1461056857610224565b8063248a9ca3146103b957806324d7806c146103f65780632eb2c2d6146104335780632f2ff15d1461045c57806336568abe1461048557610224565b80630b71f116116101f85780630b71f116146102f55780630e89341c146103205780631249c58b1461035d5780631e665f321461036757806321c9737d1461039057610224565b8062fdd58e1461022957806301ffc9a71461026657806302fe5305146102a3578063090d23b9146102cc575b600080fd5b34801561023557600080fd5b50610250600480360381019061024b9190614094565b6108d6565b60405161025d9190614e28565b60405180910390f35b34801561027257600080fd5b5061028d60048036038101906102889190614268565b61099f565b60405161029a9190614abf565b60405180910390f35b3480156102af57600080fd5b506102ca60048036038101906102c591906142c2565b6109b1565b005b3480156102d857600080fd5b506102f360048036038101906102ee9190613df6565b610a0c565b005b34801561030157600080fd5b5061030a610a9f565b6040516103179190614ada565b60405180910390f35b34801561032c57600080fd5b506103476004803603810190610342919061430b565b610ac3565b6040516103549190614b46565b60405180910390f35b610365610b57565b005b34801561037357600080fd5b5061038e60048036038101906103899190613df6565b610f51565b005b34801561039c57600080fd5b506103b760048036038101906103b29190613df6565b610fe4565b005b3480156103c557600080fd5b506103e060048036038101906103db91906141fb565b611077565b6040516103ed9190614ada565b60405180910390f35b34801561040257600080fd5b5061041d60048036038101906104189190613df6565b611097565b60405161042a9190614abf565b60405180910390f35b34801561043f57600080fd5b5061045a60048036038101906104559190613e63565b6110ad565b005b34801561046857600080fd5b50610483600480360381019061047e9190614228565b61114e565b005b34801561049157600080fd5b506104ac60048036038101906104a79190614228565b611177565b005b3480156104ba57600080fd5b506104d560048036038101906104d09190613df6565b6111fa565b6040516104e29190614abf565b60405180910390f35b3480156104f757600080fd5b50610512600480360381019061050d919061430b565b61122d565b005b34801561052057600080fd5b506105296112bd565b005b34801561053757600080fd5b50610552600480360381019061054d9190614127565b611316565b60405161055f9190614a36565b60405180910390f35b34801561057457600080fd5b5061057d61142f565b60405161058a9190614abf565b60405180910390f35b34801561059f57600080fd5b506105ba60048036038101906105b59190613fc9565b611446565b005b3480156105c857600080fd5b506105d161167a565b6040516105de9190614b2b565b60405180910390f35b3480156105f357600080fd5b506105fc6116a0565b6040516106099190614e6c565b60405180910390f35b34801561061e57600080fd5b506106276116a5565b6040516106349190614af5565b60405180910390f35b34801561064957600080fd5b506106526116cb565b005b34801561066057600080fd5b50610669611724565b60405161067691906148f9565b60405180910390f35b34801561068b57600080fd5b506106a660048036038101906106a19190614228565b61174e565b6040516106b39190614abf565b60405180910390f35b3480156106c857600080fd5b506106d16117b9565b6040516106de9190614b10565b60405180910390f35b3480156106f357600080fd5b506106fc6117df565b6040516107099190614ada565b60405180910390f35b34801561071e57600080fd5b5061073960048036038101906107349190614054565b6117e6565b005b34801561074757600080fd5b50610762600480360381019061075d9190614365565b6117fc565b005b34801561077057600080fd5b5061078b60048036038101906107869190614094565b611966565b005b34801561079957600080fd5b506107b460048036038101906107af9190614228565b611ae6565b005b3480156107c257600080fd5b506107cb611b0f565b6040516107d89190614e28565b60405180910390f35b3480156107ed57600080fd5b5061080860048036038101906108039190613e23565b611b19565b6040516108159190614abf565b60405180910390f35b34801561082a57600080fd5b5061084560048036038101906108409190613df6565b611b45565b6040516108529190614e28565b60405180910390f35b34801561086757600080fd5b50610882600480360381019061087d9190613f32565b611b8e565b005b34801561089057600080fd5b506108ab60048036038101906108a69190613df6565b611c2f565b005b3480156108b957600080fd5b506108d460048036038101906108cf91906140d4565b611d39565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610947576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093e90614be8565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60006109aa82611ee5565b9050919050565b6109c16109bc611fc7565b611097565b610a00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f790614d68565b60405180910390fd5b610a0981611fcf565b50565b610a1c610a17611fc7565b611097565b610a5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5290614d68565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7fe799c73ff785ac053943f5d98452f7fa0bcf54da67826fc217d6094dec75c5ee81565b606060028054610ad29061521a565b80601f0160208091040260200160405190810160405280929190818152602001828054610afe9061521a565b8015610b4b5780601f10610b2057610100808354040283529160200191610b4b565b820191906000526020600020905b815481529060010190602001808311610b2e57829003601f168201915b50505050509050919050565b6000610b61611fc7565b90506000610b6d611b0f565b90506000600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115610c1357600090506001600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610c0b9190615092565b925050819055505b6000811115610d3957600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f98cf07c83836040518363ffffffff1660e01b8152600401610c79929190614a0d565b600060405180830381600087803b158015610c9357600080fd5b505af1158015610ca7573d6000803e3d6000fd5b50505050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391c05b0b826040518263ffffffff1660e01b8152600401610d069190614e28565b600060405180830381600087803b158015610d2057600080fd5b505af1158015610d34573d6000803e3d6000fd5b505050505b600080600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166371abc64d610d8a600363ffffffff16611fe9565b6040518263ffffffff1660e01b8152600401610da69190614a36565b600060405180830381600087803b158015610dc057600080fd5b505af1158015610dd4573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610dfd919061419f565b91509150600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630e81073c85836040518363ffffffff1660e01b8152600401610e5e929190614a0d565b600060405180830381600087803b158015610e7857600080fd5b505af1158015610e8c573d6000803e3d6000fd5b50505050610efb8483600b805480602002602001604051908101604052809291908181526020018280548015610ee157602002820191906000526020600020905b815481526020019060010190808311610ecd575b5050505050604051806020016040528060008152506120bc565b8373ffffffffffffffffffffffffffffffffffffffff167f3174120a43a511ebe7918168a900261f113b114b0d602b6a1857e4f1963825b38383604051610f43929190614a8f565b60405180910390a250505050565b610f61610f5c611fc7565b611097565b610fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9790614d68565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610ff4610fef611fc7565b611097565b611033576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102a90614d68565b60405180910390fd5b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600060046000838152602001908152602001600020600101549050919050565b60006110a66000801b8361174e565b9050919050565b6110b5611fc7565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110fb57506110fa856110f5611fc7565b611b19565b5b61113a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113190614cc8565b60405180910390fd5b61114785858585856122da565b5050505050565b61115782611077565b61116881611163611fc7565b6125ee565b611172838361268b565b505050565b61117f611fc7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146111ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e390614e08565b60405180910390fd5b6111f6828261276c565b5050565b60006112267fe799c73ff785ac053943f5d98452f7fa0bcf54da67826fc217d6094dec75c5ee8361174e565b9050919050565b61123d611238611fc7565b611097565b61127c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127390614d68565b60405180910390fd5b806008819055507f3dda580d2b9d92da338ef46ec718e7b1dd0a2c505e3df4aa8d40360192a0f822816040516112b29190614e28565b60405180910390a150565b6112cd6112c8611fc7565b611097565b61130c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130390614d68565b60405180910390fd5b61131461284e565b565b6060815183511461135c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135390614da8565b60405180910390fd5b6000835167ffffffffffffffff8111156113795761137861535d565b5b6040519080825280602002602001820160405280156113a75781602001602082028036833780820191505090505b50905060005b8451811015611424576113f48582815181106113cc576113cb61532e565b5b60200260200101518583815181106113e7576113e661532e565b5b60200260200101516108d6565b8282815181106114075761140661532e565b5b6020026020010181815250508061141d9061527d565b90506113ad565b508091505092915050565b6000600360009054906101000a900460ff16905090565b611456611451611fc7565b6111fa565b8061146d575061146c611467611fc7565b611097565b5b6114ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a390614ce8565b60405180910390fd5b600080600090505b83518110156115c9578281815181106114d0576114cf61532e565b5b6020026020010151600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a23d9ff58684815181106115295761152861532e565b5b60200260200101516040518263ffffffff1660e01b815260040161154d9190614e28565b602060405180830381600087803b15801561156757600080fd5b505af115801561157b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159f9190614338565b6115a99190615038565b826115b49190614fe2565b915080806115c19061527d565b9150506114b4565b50600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630e81073c85836040518363ffffffff1660e01b8152600401611627929190614a0d565b600060405180830381600087803b15801561164157600080fd5b505af1158015611655573d6000803e3d6000fd5b50505050611674848484604051806020016040528060008152506120bc565b50505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600381565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6116db6116d6611fc7565b611097565b61171a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171190614d68565b60405180910390fd5b6117226128f0565b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b81565b6117f86117f1611fc7565b8383612993565b5050565b61180e611807611fc7565b8383612b00565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663beffbb89611854611fc7565b61191384600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a23d9ff5886040518263ffffffff1660e01b81526004016118b39190614e28565b602060405180830381600087803b1580156118cd57600080fd5b505af11580156118e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119059190614338565b612d1d90919063ffffffff16565b6040518363ffffffff1660e01b8152600401611930929190614a0d565b600060405180830381600087803b15801561194a57600080fd5b505af115801561195e573d6000803e3d6000fd5b505050505050565b611976611971611fc7565b611097565b158015611990575061198e611989611fc7565b6111fa565b155b15611a3e57600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f98cf07c6119db611fc7565b836119e4611b0f565b6119ee9190615038565b6040518363ffffffff1660e01b8152600401611a0b929190614a0d565b600060405180830381600087803b158015611a2557600080fd5b505af1158015611a39573d6000803e3d6000fd5b505050505b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a8d9190614fe2565b925050819055508173ffffffffffffffffffffffffffffffffffffffff167fd27fb549aa167bf858a1420299ea6b1bbbc78233a5e884498b8b603ae4376b0182604051611ada9190614e28565b60405180910390a25050565b611aef82611077565b611b0081611afb611fc7565b6125ee565b611b0a838361276c565b505050565b6000600854905090565b6000611b24826111fa565b15611b325760019050611b3f565b611b3c8383612d33565b90505b92915050565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611b96611fc7565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611bdc5750611bdb85611bd6611fc7565b611b19565b5b611c1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1290614c68565b60405180910390fd5b611c288585858585612dc7565b5050505050565b611c3f611c3a611fc7565b611097565b611c7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7590614d68565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce590614c08565b60405180910390fd5b611cf6611fc7565b600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611d49611d44611fc7565b6111fa565b611d88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7f90614d28565b60405180910390fd5b611d93838383612b00565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663beffbb8984611e9184600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a23d9ff5886040518263ffffffff1660e01b8152600401611e319190614e28565b602060405180830381600087803b158015611e4b57600080fd5b505af1158015611e5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e839190614338565b612d1d90919063ffffffff16565b6040518363ffffffff1660e01b8152600401611eae929190614a0d565b600060405180830381600087803b158015611ec857600080fd5b505af1158015611edc573d6000803e3d6000fd5b50505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611fb057507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611fc05750611fbf82613049565b5b9050919050565b600033905090565b8060029080519060200190611fe5929190613a06565b5050565b606060008267ffffffffffffffff8111156120075761200661535d565b5b6040519080825280602002602001820160405280156120355781602001602082028036833780820191505090505b50905060005b838110156120b25761204d600a6130b3565b60405160200161205d91906148de565b6040516020818303038152906040528051906020012060001c8282815181106120895761208861532e565b5b60200260200101818152505061209f600a6130c1565b80806120aa9061527d565b91505061203b565b5080915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561212c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212390614de8565b60405180910390fd5b8151835114612170576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216790614dc8565b60405180910390fd5b600061217a611fc7565b905061218b816000878787876130d7565b60005b8451811015612244578381815181106121aa576121a961532e565b5b60200260200101516000808784815181106121c8576121c761532e565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461222a9190614fe2565b92505081905550808061223c9061527d565b91505061218e565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516122bc929190614a58565b60405180910390a46122d3816000878787876132f9565b5050505050565b815183511461231e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231590614dc8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561238e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238590614ca8565b60405180910390fd5b6000612398611fc7565b90506123a88187878787876130d7565b60005b84518110156125595760008582815181106123c9576123c861532e565b5b6020026020010151905060008583815181106123e8576123e761532e565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612489576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248090614d48565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461253e9190614fe2565b92505081905550505050806125529061527d565b90506123ab565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516125d0929190614a58565b60405180910390a46125e68187878787876132f9565b505050505050565b6125f8828261174e565b6126875761261d8173ffffffffffffffffffffffffffffffffffffffff1660146134e0565b61262b8360001c60206134e0565b60405160200161263c9291906148a4565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267e9190614b46565b60405180910390fd5b5050565b612695828261174e565b6127685760016004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061270d611fc7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b612776828261174e565b1561284a5760006004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506127ef611fc7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61285661142f565b612895576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288c90614bc8565b60405180910390fd5b6000600360006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6128d9611fc7565b6040516128e691906148f9565b60405180910390a1565b6128f861142f565b15612938576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292f90614c88565b60405180910390fd5b6001600360006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861297c611fc7565b60405161298991906148f9565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612a02576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f990614d88565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612af39190614abf565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612b70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6790614d08565b60405180910390fd5b6000612b7a611fc7565b9050612baa81856000612b8c8761371c565b612b958761371c565b604051806020016040528060008152506130d7565b600080600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015612c41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3890614c28565b60405180910390fd5b82810360008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051612d0e929190614e43565b60405180910390a45050505050565b60008183612d2b9190615038565b905092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612e37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2e90614ca8565b60405180910390fd5b6000612e41611fc7565b9050612e61818787612e528861371c565b612e5b8861371c565b876130d7565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015612ef8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eef90614d48565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fad9190614fe2565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62888860405161302a929190614e43565b60405180910390a4613040828888888888613796565b50505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081600001549050919050565b6001816000016000828254019250508190555050565b6130e586868686868661397d565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415801561314f5750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b156132f15760005b83518110156132ef57600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bfc77beb87878685815181106131b3576131b261532e565b5b6020026020010151600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a23d9ff58a888151811061320c5761320b61532e565b5b60200260200101516040518263ffffffff1660e01b81526004016132309190614e28565b602060405180830381600087803b15801561324a57600080fd5b505af115801561325e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132829190614338565b61328c9190615038565b6040518463ffffffff1660e01b81526004016132aa9392919061497c565b600060405180830381600087803b1580156132c457600080fd5b505af11580156132d8573d6000803e3d6000fd5b5050505080806132e79061527d565b915050613157565b505b505050505050565b6133188473ffffffffffffffffffffffffffffffffffffffff166139db565b156134d8578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b815260040161335e959493929190614914565b602060405180830381600087803b15801561337857600080fd5b505af19250505080156133a957506040513d601f19601f820116820180604052508101906133a69190614295565b60015b61344f576133b561538c565b806308c379a0141561341257506133ca615a43565b806133d55750613414565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134099190614b46565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161344690614b68565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146134d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134cd90614ba8565b60405180910390fd5b505b505050505050565b6060600060028360026134f39190615038565b6134fd9190614fe2565b67ffffffffffffffff8111156135165761351561535d565b5b6040519080825280601f01601f1916602001820160405280156135485781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106135805761357f61532e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106135e4576135e361532e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026136249190615038565b61362e9190614fe2565b90505b60018111156136ce577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106136705761366f61532e565b5b1a60f81b8282815181106136875761368661532e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806136c7906151f0565b9050613631565b5060008414613712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161370990614b88565b60405180910390fd5b8091505092915050565b60606000600167ffffffffffffffff81111561373b5761373a61535d565b5b6040519080825280602002602001820160405280156137695781602001602082028036833780820191505090505b50905082816000815181106137815761378061532e565b5b60200260200101818152505080915050919050565b6137b58473ffffffffffffffffffffffffffffffffffffffff166139db565b15613975578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016137fb9594939291906149b3565b602060405180830381600087803b15801561381557600080fd5b505af192505050801561384657506040513d601f19601f820116820180604052508101906138439190614295565b60015b6138ec5761385261538c565b806308c379a014156138af5750613867615a43565b8061387257506138b1565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138a69190614b46565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138e390614b68565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613973576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161396a90614ba8565b60405180910390fd5b505b505050505050565b61398b8686868686866139fe565b61399361142f565b156139d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139ca90614c48565b60405180910390fd5b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050505050565b828054613a129061521a565b90600052602060002090601f016020900481019282613a345760008555613a7b565b82601f10613a4d57805160ff1916838001178555613a7b565b82800160010185558215613a7b579182015b82811115613a7a578251825591602001919060010190613a5f565b5b509050613a889190613a8c565b5090565b5b80821115613aa5576000816000905550600101613a8d565b5090565b6000613abc613ab784614eac565b614e87565b90508083825260208201905082856020860282011115613adf57613ade6153b3565b5b60005b85811015613b0f5781613af58882613c7d565b845260208401935060208301925050600181019050613ae2565b5050509392505050565b6000613b2c613b2784614ed8565b614e87565b90508083825260208201905082856020860282011115613b4f57613b4e6153b3565b5b60005b85811015613b7f5781613b658882613dcc565b845260208401935060208301925050600181019050613b52565b5050509392505050565b6000613b9c613b9784614ed8565b614e87565b90508083825260208201905082856020860282011115613bbf57613bbe6153b3565b5b60005b85811015613bef5781613bd58882613de1565b845260208401935060208301925050600181019050613bc2565b5050509392505050565b6000613c0c613c0784614f04565b614e87565b905082815260208101848484011115613c2857613c276153b8565b5b613c338482856151ae565b509392505050565b6000613c4e613c4984614f35565b614e87565b905082815260208101848484011115613c6a57613c696153b8565b5b613c758482856151ae565b509392505050565b600081359050613c8c81615ad9565b92915050565b600082601f830112613ca757613ca66153ae565b5b8135613cb7848260208601613aa9565b91505092915050565b600082601f830112613cd557613cd46153ae565b5b8135613ce5848260208601613b19565b91505092915050565b600082601f830112613d0357613d026153ae565b5b8151613d13848260208601613b89565b91505092915050565b600081359050613d2b81615af0565b92915050565b600081359050613d4081615b07565b92915050565b600081359050613d5581615b1e565b92915050565b600081519050613d6a81615b1e565b92915050565b600082601f830112613d8557613d846153ae565b5b8135613d95848260208601613bf9565b91505092915050565b600082601f830112613db357613db26153ae565b5b8135613dc3848260208601613c3b565b91505092915050565b600081359050613ddb81615b35565b92915050565b600081519050613df081615b35565b92915050565b600060208284031215613e0c57613e0b6153c2565b5b6000613e1a84828501613c7d565b91505092915050565b60008060408385031215613e3a57613e396153c2565b5b6000613e4885828601613c7d565b9250506020613e5985828601613c7d565b9150509250929050565b600080600080600060a08688031215613e7f57613e7e6153c2565b5b6000613e8d88828901613c7d565b9550506020613e9e88828901613c7d565b945050604086013567ffffffffffffffff811115613ebf57613ebe6153bd565b5b613ecb88828901613cc0565b935050606086013567ffffffffffffffff811115613eec57613eeb6153bd565b5b613ef888828901613cc0565b925050608086013567ffffffffffffffff811115613f1957613f186153bd565b5b613f2588828901613d70565b9150509295509295909350565b600080600080600060a08688031215613f4e57613f4d6153c2565b5b6000613f5c88828901613c7d565b9550506020613f6d88828901613c7d565b9450506040613f7e88828901613dcc565b9350506060613f8f88828901613dcc565b925050608086013567ffffffffffffffff811115613fb057613faf6153bd565b5b613fbc88828901613d70565b9150509295509295909350565b600080600060608486031215613fe257613fe16153c2565b5b6000613ff086828701613c7d565b935050602084013567ffffffffffffffff811115614011576140106153bd565b5b61401d86828701613cc0565b925050604084013567ffffffffffffffff81111561403e5761403d6153bd565b5b61404a86828701613cc0565b9150509250925092565b6000806040838503121561406b5761406a6153c2565b5b600061407985828601613c7d565b925050602061408a85828601613d1c565b9150509250929050565b600080604083850312156140ab576140aa6153c2565b5b60006140b985828601613c7d565b92505060206140ca85828601613dcc565b9150509250929050565b6000806000606084860312156140ed576140ec6153c2565b5b60006140fb86828701613c7d565b935050602061410c86828701613dcc565b925050604061411d86828701613dcc565b9150509250925092565b6000806040838503121561413e5761413d6153c2565b5b600083013567ffffffffffffffff81111561415c5761415b6153bd565b5b61416885828601613c92565b925050602083013567ffffffffffffffff811115614189576141886153bd565b5b61419585828601613cc0565b9150509250929050565b600080604083850312156141b6576141b56153c2565b5b600083015167ffffffffffffffff8111156141d4576141d36153bd565b5b6141e085828601613cee565b92505060206141f185828601613de1565b9150509250929050565b600060208284031215614211576142106153c2565b5b600061421f84828501613d31565b91505092915050565b6000806040838503121561423f5761423e6153c2565b5b600061424d85828601613d31565b925050602061425e85828601613c7d565b9150509250929050565b60006020828403121561427e5761427d6153c2565b5b600061428c84828501613d46565b91505092915050565b6000602082840312156142ab576142aa6153c2565b5b60006142b984828501613d5b565b91505092915050565b6000602082840312156142d8576142d76153c2565b5b600082013567ffffffffffffffff8111156142f6576142f56153bd565b5b61430284828501613d9e565b91505092915050565b600060208284031215614321576143206153c2565b5b600061432f84828501613dcc565b91505092915050565b60006020828403121561434e5761434d6153c2565b5b600061435c84828501613de1565b91505092915050565b6000806040838503121561437c5761437b6153c2565b5b600061438a85828601613dcc565b925050602061439b85828601613dcc565b9150509250929050565b60006143b18383614860565b60208301905092915050565b6143c6816150c6565b82525050565b60006143d782614f76565b6143e18185614fa4565b93506143ec83614f66565b8060005b8381101561441d57815161440488826143a5565b975061440f83614f97565b9250506001810190506143f0565b5085935050505092915050565b614433816150d8565b82525050565b614442816150e4565b82525050565b600061445382614f81565b61445d8185614fb5565b935061446d8185602086016151bd565b614476816153c7565b840191505092915050565b61448a81615154565b82525050565b61449981615166565b82525050565b6144a881615178565b82525050565b60006144b982614f8c565b6144c38185614fc6565b93506144d38185602086016151bd565b6144dc816153c7565b840191505092915050565b60006144f282614f8c565b6144fc8185614fd7565b935061450c8185602086016151bd565b80840191505092915050565b6000614525603483614fc6565b9150614530826153e5565b604082019050919050565b6000614548602083614fc6565b915061455382615434565b602082019050919050565b600061456b602883614fc6565b91506145768261545d565b604082019050919050565b600061458e601483614fc6565b9150614599826154ac565b602082019050919050565b60006145b1602b83614fc6565b91506145bc826154d5565b604082019050919050565b60006145d4602683614fc6565b91506145df82615524565b604082019050919050565b60006145f7602483614fc6565b915061460282615573565b604082019050919050565b600061461a602c83614fc6565b9150614625826155c2565b604082019050919050565b600061463d602983614fc6565b915061464882615611565b604082019050919050565b6000614660601083614fc6565b915061466b82615660565b602082019050919050565b6000614683602583614fc6565b915061468e82615689565b604082019050919050565b60006146a6603283614fc6565b91506146b1826156d8565b604082019050919050565b60006146c9602283614fc6565b91506146d482615727565b604082019050919050565b60006146ec602383614fc6565b91506146f782615776565b604082019050919050565b600061470f601a83614fc6565b915061471a826157c5565b602082019050919050565b6000614732602a83614fc6565b915061473d826157ee565b604082019050919050565b6000614755601583614fc6565b91506147608261583d565b602082019050919050565b6000614778601783614fd7565b915061478382615866565b601782019050919050565b600061479b602983614fc6565b91506147a68261588f565b604082019050919050565b60006147be602983614fc6565b91506147c9826158de565b604082019050919050565b60006147e1602883614fc6565b91506147ec8261592d565b604082019050919050565b6000614804602183614fc6565b915061480f8261597c565b604082019050919050565b6000614827601183614fd7565b9150614832826159cb565b601182019050919050565b600061484a602f83614fc6565b9150614855826159f4565b604082019050919050565b6148698161513a565b82525050565b6148788161513a565b82525050565b61488f61488a8261513a565b6152c6565b82525050565b61489e81615144565b82525050565b60006148af8261476b565b91506148bb82856144e7565b91506148c68261481a565b91506148d282846144e7565b91508190509392505050565b60006148ea828461487e565b60208201915081905092915050565b600060208201905061490e60008301846143bd565b92915050565b600060a08201905061492960008301886143bd565b61493660208301876143bd565b818103604083015261494881866143cc565b9050818103606083015261495c81856143cc565b905081810360808301526149708184614448565b90509695505050505050565b600060608201905061499160008301866143bd565b61499e60208301856143bd565b6149ab604083018461486f565b949350505050565b600060a0820190506149c860008301886143bd565b6149d560208301876143bd565b6149e2604083018661486f565b6149ef606083018561486f565b8181036080830152614a018184614448565b90509695505050505050565b6000604082019050614a2260008301856143bd565b614a2f602083018461486f565b9392505050565b60006020820190508181036000830152614a5081846143cc565b905092915050565b60006040820190508181036000830152614a7281856143cc565b90508181036020830152614a8681846143cc565b90509392505050565b60006040820190508181036000830152614aa981856143cc565b9050614ab8602083018461486f565b9392505050565b6000602082019050614ad4600083018461442a565b92915050565b6000602082019050614aef6000830184614439565b92915050565b6000602082019050614b0a6000830184614481565b92915050565b6000602082019050614b256000830184614490565b92915050565b6000602082019050614b40600083018461449f565b92915050565b60006020820190508181036000830152614b6081846144ae565b905092915050565b60006020820190508181036000830152614b8181614518565b9050919050565b60006020820190508181036000830152614ba18161453b565b9050919050565b60006020820190508181036000830152614bc18161455e565b9050919050565b60006020820190508181036000830152614be181614581565b9050919050565b60006020820190508181036000830152614c01816145a4565b9050919050565b60006020820190508181036000830152614c21816145c7565b9050919050565b60006020820190508181036000830152614c41816145ea565b9050919050565b60006020820190508181036000830152614c618161460d565b9050919050565b60006020820190508181036000830152614c8181614630565b9050919050565b60006020820190508181036000830152614ca181614653565b9050919050565b60006020820190508181036000830152614cc181614676565b9050919050565b60006020820190508181036000830152614ce181614699565b9050919050565b60006020820190508181036000830152614d01816146bc565b9050919050565b60006020820190508181036000830152614d21816146df565b9050919050565b60006020820190508181036000830152614d4181614702565b9050919050565b60006020820190508181036000830152614d6181614725565b9050919050565b60006020820190508181036000830152614d8181614748565b9050919050565b60006020820190508181036000830152614da18161478e565b9050919050565b60006020820190508181036000830152614dc1816147b1565b9050919050565b60006020820190508181036000830152614de1816147d4565b9050919050565b60006020820190508181036000830152614e01816147f7565b9050919050565b60006020820190508181036000830152614e218161483d565b9050919050565b6000602082019050614e3d600083018461486f565b92915050565b6000604082019050614e58600083018561486f565b614e65602083018461486f565b9392505050565b6000602082019050614e816000830184614895565b92915050565b6000614e91614ea2565b9050614e9d828261524c565b919050565b6000604051905090565b600067ffffffffffffffff821115614ec757614ec661535d565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614ef357614ef261535d565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614f1f57614f1e61535d565b5b614f28826153c7565b9050602081019050919050565b600067ffffffffffffffff821115614f5057614f4f61535d565b5b614f59826153c7565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614fed8261513a565b9150614ff88361513a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561502d5761502c6152d0565b5b828201905092915050565b60006150438261513a565b915061504e8361513a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615087576150866152d0565b5b828202905092915050565b600061509d8261513a565b91506150a88361513a565b9250828210156150bb576150ba6152d0565b5b828203905092915050565b60006150d18261511a565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600061515f8261518a565b9050919050565b60006151718261518a565b9050919050565b60006151838261518a565b9050919050565b60006151958261519c565b9050919050565b60006151a78261511a565b9050919050565b82818337600083830152505050565b60005b838110156151db5780820151818401526020810190506151c0565b838111156151ea576000848401525b50505050565b60006151fb8261513a565b9150600082141561520f5761520e6152d0565b5b600182039050919050565b6000600282049050600182168061523257607f821691505b60208210811415615246576152456152ff565b5b50919050565b615255826153c7565b810181811067ffffffffffffffff821117156152745761527361535d565b5b80604052505050565b60006152888261513a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156152bb576152ba6152d0565b5b600182019050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156153ab5760046000803e6153a86000516153d8565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135355061757361626c653a20746f6b656e207472616e736665722060008201527f7768696c65207061757365640000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f5265737472696374656420746f2077686974656c6973746564206f722061646d60008201527f696e000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f5265737472696374656420746f2077686974656c69737465642e000000000000600082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f5265737472696374656420746f2061646d696e732e0000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600060443d1015615a5357615ad6565b615a5b614ea2565b60043d036004823e80513d602482011167ffffffffffffffff82111715615a83575050615ad6565b808201805167ffffffffffffffff811115615aa15750505050615ad6565b80602083010160043d038501811115615abe575050505050615ad6565b615acd8260200185018661524c565b82955050505050505b90565b615ae2816150c6565b8114615aed57600080fd5b50565b615af9816150d8565b8114615b0457600080fd5b50565b615b10816150e4565b8114615b1b57600080fd5b50565b615b27816150ee565b8114615b3257600080fd5b50565b615b3e8161513a565b8114615b4957600080fd5b5056fea2646970667358221220365e238247d270f4ebb7508ea858a2e89db678672c993c516fe1efc3b920e4dd64736f6c634300080700330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004168747470733a2f2f736869626163617264732e667261312e63646e2e6469676974616c6f6365616e7370616365732e636f6d2f7b69647d2f6d6574612e6a736f6e00000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102245760003560e01c8063703c2f5a11610123578063a22cb465116100ab578063e985e9c51161006f578063e985e9c5146107e1578063efee35681461081e578063f242432a1461085b578063f2fde38b14610884578063f5298aca146108ad57610224565b8063a22cb46514610712578063b390c0ab1461073b578063cbce4c9714610764578063d547741f1461078d578063db8d55f1146107b657610224565b80638456cb59116100f25780638456cb591461063d5780638da5cb5b1461065457806391d148541461067f5780639de2ee21146106bc578063a217fddf146106e757610224565b8063703c2f5a14610593578063708f1e33146105bc57806375b0ffd1146105e757806376cdb03b1461061257610224565b8063248a9ca3116101b15780633af32abf116101755780633af32abf146104ae5780633d18678e146104eb5780633f4ba83a146105145780634e1273f41461052b5780635c975abb1461056857610224565b8063248a9ca3146103b957806324d7806c146103f65780632eb2c2d6146104335780632f2ff15d1461045c57806336568abe1461048557610224565b80630b71f116116101f85780630b71f116146102f55780630e89341c146103205780631249c58b1461035d5780631e665f321461036757806321c9737d1461039057610224565b8062fdd58e1461022957806301ffc9a71461026657806302fe5305146102a3578063090d23b9146102cc575b600080fd5b34801561023557600080fd5b50610250600480360381019061024b9190614094565b6108d6565b60405161025d9190614e28565b60405180910390f35b34801561027257600080fd5b5061028d60048036038101906102889190614268565b61099f565b60405161029a9190614abf565b60405180910390f35b3480156102af57600080fd5b506102ca60048036038101906102c591906142c2565b6109b1565b005b3480156102d857600080fd5b506102f360048036038101906102ee9190613df6565b610a0c565b005b34801561030157600080fd5b5061030a610a9f565b6040516103179190614ada565b60405180910390f35b34801561032c57600080fd5b506103476004803603810190610342919061430b565b610ac3565b6040516103549190614b46565b60405180910390f35b610365610b57565b005b34801561037357600080fd5b5061038e60048036038101906103899190613df6565b610f51565b005b34801561039c57600080fd5b506103b760048036038101906103b29190613df6565b610fe4565b005b3480156103c557600080fd5b506103e060048036038101906103db91906141fb565b611077565b6040516103ed9190614ada565b60405180910390f35b34801561040257600080fd5b5061041d60048036038101906104189190613df6565b611097565b60405161042a9190614abf565b60405180910390f35b34801561043f57600080fd5b5061045a60048036038101906104559190613e63565b6110ad565b005b34801561046857600080fd5b50610483600480360381019061047e9190614228565b61114e565b005b34801561049157600080fd5b506104ac60048036038101906104a79190614228565b611177565b005b3480156104ba57600080fd5b506104d560048036038101906104d09190613df6565b6111fa565b6040516104e29190614abf565b60405180910390f35b3480156104f757600080fd5b50610512600480360381019061050d919061430b565b61122d565b005b34801561052057600080fd5b506105296112bd565b005b34801561053757600080fd5b50610552600480360381019061054d9190614127565b611316565b60405161055f9190614a36565b60405180910390f35b34801561057457600080fd5b5061057d61142f565b60405161058a9190614abf565b60405180910390f35b34801561059f57600080fd5b506105ba60048036038101906105b59190613fc9565b611446565b005b3480156105c857600080fd5b506105d161167a565b6040516105de9190614b2b565b60405180910390f35b3480156105f357600080fd5b506105fc6116a0565b6040516106099190614e6c565b60405180910390f35b34801561061e57600080fd5b506106276116a5565b6040516106349190614af5565b60405180910390f35b34801561064957600080fd5b506106526116cb565b005b34801561066057600080fd5b50610669611724565b60405161067691906148f9565b60405180910390f35b34801561068b57600080fd5b506106a660048036038101906106a19190614228565b61174e565b6040516106b39190614abf565b60405180910390f35b3480156106c857600080fd5b506106d16117b9565b6040516106de9190614b10565b60405180910390f35b3480156106f357600080fd5b506106fc6117df565b6040516107099190614ada565b60405180910390f35b34801561071e57600080fd5b5061073960048036038101906107349190614054565b6117e6565b005b34801561074757600080fd5b50610762600480360381019061075d9190614365565b6117fc565b005b34801561077057600080fd5b5061078b60048036038101906107869190614094565b611966565b005b34801561079957600080fd5b506107b460048036038101906107af9190614228565b611ae6565b005b3480156107c257600080fd5b506107cb611b0f565b6040516107d89190614e28565b60405180910390f35b3480156107ed57600080fd5b5061080860048036038101906108039190613e23565b611b19565b6040516108159190614abf565b60405180910390f35b34801561082a57600080fd5b5061084560048036038101906108409190613df6565b611b45565b6040516108529190614e28565b60405180910390f35b34801561086757600080fd5b50610882600480360381019061087d9190613f32565b611b8e565b005b34801561089057600080fd5b506108ab60048036038101906108a69190613df6565b611c2f565b005b3480156108b957600080fd5b506108d460048036038101906108cf91906140d4565b611d39565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610947576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093e90614be8565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60006109aa82611ee5565b9050919050565b6109c16109bc611fc7565b611097565b610a00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f790614d68565b60405180910390fd5b610a0981611fcf565b50565b610a1c610a17611fc7565b611097565b610a5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5290614d68565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7fe799c73ff785ac053943f5d98452f7fa0bcf54da67826fc217d6094dec75c5ee81565b606060028054610ad29061521a565b80601f0160208091040260200160405190810160405280929190818152602001828054610afe9061521a565b8015610b4b5780601f10610b2057610100808354040283529160200191610b4b565b820191906000526020600020905b815481529060010190602001808311610b2e57829003601f168201915b50505050509050919050565b6000610b61611fc7565b90506000610b6d611b0f565b90506000600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115610c1357600090506001600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610c0b9190615092565b925050819055505b6000811115610d3957600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f98cf07c83836040518363ffffffff1660e01b8152600401610c79929190614a0d565b600060405180830381600087803b158015610c9357600080fd5b505af1158015610ca7573d6000803e3d6000fd5b50505050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391c05b0b826040518263ffffffff1660e01b8152600401610d069190614e28565b600060405180830381600087803b158015610d2057600080fd5b505af1158015610d34573d6000803e3d6000fd5b505050505b600080600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166371abc64d610d8a600363ffffffff16611fe9565b6040518263ffffffff1660e01b8152600401610da69190614a36565b600060405180830381600087803b158015610dc057600080fd5b505af1158015610dd4573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610dfd919061419f565b91509150600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630e81073c85836040518363ffffffff1660e01b8152600401610e5e929190614a0d565b600060405180830381600087803b158015610e7857600080fd5b505af1158015610e8c573d6000803e3d6000fd5b50505050610efb8483600b805480602002602001604051908101604052809291908181526020018280548015610ee157602002820191906000526020600020905b815481526020019060010190808311610ecd575b5050505050604051806020016040528060008152506120bc565b8373ffffffffffffffffffffffffffffffffffffffff167f3174120a43a511ebe7918168a900261f113b114b0d602b6a1857e4f1963825b38383604051610f43929190614a8f565b60405180910390a250505050565b610f61610f5c611fc7565b611097565b610fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9790614d68565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610ff4610fef611fc7565b611097565b611033576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102a90614d68565b60405180910390fd5b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600060046000838152602001908152602001600020600101549050919050565b60006110a66000801b8361174e565b9050919050565b6110b5611fc7565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110fb57506110fa856110f5611fc7565b611b19565b5b61113a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113190614cc8565b60405180910390fd5b61114785858585856122da565b5050505050565b61115782611077565b61116881611163611fc7565b6125ee565b611172838361268b565b505050565b61117f611fc7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146111ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e390614e08565b60405180910390fd5b6111f6828261276c565b5050565b60006112267fe799c73ff785ac053943f5d98452f7fa0bcf54da67826fc217d6094dec75c5ee8361174e565b9050919050565b61123d611238611fc7565b611097565b61127c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127390614d68565b60405180910390fd5b806008819055507f3dda580d2b9d92da338ef46ec718e7b1dd0a2c505e3df4aa8d40360192a0f822816040516112b29190614e28565b60405180910390a150565b6112cd6112c8611fc7565b611097565b61130c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130390614d68565b60405180910390fd5b61131461284e565b565b6060815183511461135c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135390614da8565b60405180910390fd5b6000835167ffffffffffffffff8111156113795761137861535d565b5b6040519080825280602002602001820160405280156113a75781602001602082028036833780820191505090505b50905060005b8451811015611424576113f48582815181106113cc576113cb61532e565b5b60200260200101518583815181106113e7576113e661532e565b5b60200260200101516108d6565b8282815181106114075761140661532e565b5b6020026020010181815250508061141d9061527d565b90506113ad565b508091505092915050565b6000600360009054906101000a900460ff16905090565b611456611451611fc7565b6111fa565b8061146d575061146c611467611fc7565b611097565b5b6114ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a390614ce8565b60405180910390fd5b600080600090505b83518110156115c9578281815181106114d0576114cf61532e565b5b6020026020010151600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a23d9ff58684815181106115295761152861532e565b5b60200260200101516040518263ffffffff1660e01b815260040161154d9190614e28565b602060405180830381600087803b15801561156757600080fd5b505af115801561157b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159f9190614338565b6115a99190615038565b826115b49190614fe2565b915080806115c19061527d565b9150506114b4565b50600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630e81073c85836040518363ffffffff1660e01b8152600401611627929190614a0d565b600060405180830381600087803b15801561164157600080fd5b505af1158015611655573d6000803e3d6000fd5b50505050611674848484604051806020016040528060008152506120bc565b50505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600381565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6116db6116d6611fc7565b611097565b61171a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171190614d68565b60405180910390fd5b6117226128f0565b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b81565b6117f86117f1611fc7565b8383612993565b5050565b61180e611807611fc7565b8383612b00565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663beffbb89611854611fc7565b61191384600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a23d9ff5886040518263ffffffff1660e01b81526004016118b39190614e28565b602060405180830381600087803b1580156118cd57600080fd5b505af11580156118e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119059190614338565b612d1d90919063ffffffff16565b6040518363ffffffff1660e01b8152600401611930929190614a0d565b600060405180830381600087803b15801561194a57600080fd5b505af115801561195e573d6000803e3d6000fd5b505050505050565b611976611971611fc7565b611097565b158015611990575061198e611989611fc7565b6111fa565b155b15611a3e57600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f98cf07c6119db611fc7565b836119e4611b0f565b6119ee9190615038565b6040518363ffffffff1660e01b8152600401611a0b929190614a0d565b600060405180830381600087803b158015611a2557600080fd5b505af1158015611a39573d6000803e3d6000fd5b505050505b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a8d9190614fe2565b925050819055508173ffffffffffffffffffffffffffffffffffffffff167fd27fb549aa167bf858a1420299ea6b1bbbc78233a5e884498b8b603ae4376b0182604051611ada9190614e28565b60405180910390a25050565b611aef82611077565b611b0081611afb611fc7565b6125ee565b611b0a838361276c565b505050565b6000600854905090565b6000611b24826111fa565b15611b325760019050611b3f565b611b3c8383612d33565b90505b92915050565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611b96611fc7565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611bdc5750611bdb85611bd6611fc7565b611b19565b5b611c1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1290614c68565b60405180910390fd5b611c288585858585612dc7565b5050505050565b611c3f611c3a611fc7565b611097565b611c7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7590614d68565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce590614c08565b60405180910390fd5b611cf6611fc7565b600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611d49611d44611fc7565b6111fa565b611d88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7f90614d28565b60405180910390fd5b611d93838383612b00565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663beffbb8984611e9184600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a23d9ff5886040518263ffffffff1660e01b8152600401611e319190614e28565b602060405180830381600087803b158015611e4b57600080fd5b505af1158015611e5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e839190614338565b612d1d90919063ffffffff16565b6040518363ffffffff1660e01b8152600401611eae929190614a0d565b600060405180830381600087803b158015611ec857600080fd5b505af1158015611edc573d6000803e3d6000fd5b50505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611fb057507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611fc05750611fbf82613049565b5b9050919050565b600033905090565b8060029080519060200190611fe5929190613a06565b5050565b606060008267ffffffffffffffff8111156120075761200661535d565b5b6040519080825280602002602001820160405280156120355781602001602082028036833780820191505090505b50905060005b838110156120b25761204d600a6130b3565b60405160200161205d91906148de565b6040516020818303038152906040528051906020012060001c8282815181106120895761208861532e565b5b60200260200101818152505061209f600a6130c1565b80806120aa9061527d565b91505061203b565b5080915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561212c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212390614de8565b60405180910390fd5b8151835114612170576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216790614dc8565b60405180910390fd5b600061217a611fc7565b905061218b816000878787876130d7565b60005b8451811015612244578381815181106121aa576121a961532e565b5b60200260200101516000808784815181106121c8576121c761532e565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461222a9190614fe2565b92505081905550808061223c9061527d565b91505061218e565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516122bc929190614a58565b60405180910390a46122d3816000878787876132f9565b5050505050565b815183511461231e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231590614dc8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561238e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238590614ca8565b60405180910390fd5b6000612398611fc7565b90506123a88187878787876130d7565b60005b84518110156125595760008582815181106123c9576123c861532e565b5b6020026020010151905060008583815181106123e8576123e761532e565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612489576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248090614d48565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461253e9190614fe2565b92505081905550505050806125529061527d565b90506123ab565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516125d0929190614a58565b60405180910390a46125e68187878787876132f9565b505050505050565b6125f8828261174e565b6126875761261d8173ffffffffffffffffffffffffffffffffffffffff1660146134e0565b61262b8360001c60206134e0565b60405160200161263c9291906148a4565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267e9190614b46565b60405180910390fd5b5050565b612695828261174e565b6127685760016004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061270d611fc7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b612776828261174e565b1561284a5760006004600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506127ef611fc7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61285661142f565b612895576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288c90614bc8565b60405180910390fd5b6000600360006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6128d9611fc7565b6040516128e691906148f9565b60405180910390a1565b6128f861142f565b15612938576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292f90614c88565b60405180910390fd5b6001600360006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861297c611fc7565b60405161298991906148f9565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612a02576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f990614d88565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612af39190614abf565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612b70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6790614d08565b60405180910390fd5b6000612b7a611fc7565b9050612baa81856000612b8c8761371c565b612b958761371c565b604051806020016040528060008152506130d7565b600080600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015612c41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3890614c28565b60405180910390fd5b82810360008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051612d0e929190614e43565b60405180910390a45050505050565b60008183612d2b9190615038565b905092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612e37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2e90614ca8565b60405180910390fd5b6000612e41611fc7565b9050612e61818787612e528861371c565b612e5b8861371c565b876130d7565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015612ef8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eef90614d48565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fad9190614fe2565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62888860405161302a929190614e43565b60405180910390a4613040828888888888613796565b50505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081600001549050919050565b6001816000016000828254019250508190555050565b6130e586868686868661397d565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415801561314f5750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b156132f15760005b83518110156132ef57600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bfc77beb87878685815181106131b3576131b261532e565b5b6020026020010151600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a23d9ff58a888151811061320c5761320b61532e565b5b60200260200101516040518263ffffffff1660e01b81526004016132309190614e28565b602060405180830381600087803b15801561324a57600080fd5b505af115801561325e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132829190614338565b61328c9190615038565b6040518463ffffffff1660e01b81526004016132aa9392919061497c565b600060405180830381600087803b1580156132c457600080fd5b505af11580156132d8573d6000803e3d6000fd5b5050505080806132e79061527d565b915050613157565b505b505050505050565b6133188473ffffffffffffffffffffffffffffffffffffffff166139db565b156134d8578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b815260040161335e959493929190614914565b602060405180830381600087803b15801561337857600080fd5b505af19250505080156133a957506040513d601f19601f820116820180604052508101906133a69190614295565b60015b61344f576133b561538c565b806308c379a0141561341257506133ca615a43565b806133d55750613414565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134099190614b46565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161344690614b68565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146134d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134cd90614ba8565b60405180910390fd5b505b505050505050565b6060600060028360026134f39190615038565b6134fd9190614fe2565b67ffffffffffffffff8111156135165761351561535d565b5b6040519080825280601f01601f1916602001820160405280156135485781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106135805761357f61532e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106135e4576135e361532e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026136249190615038565b61362e9190614fe2565b90505b60018111156136ce577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106136705761366f61532e565b5b1a60f81b8282815181106136875761368661532e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806136c7906151f0565b9050613631565b5060008414613712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161370990614b88565b60405180910390fd5b8091505092915050565b60606000600167ffffffffffffffff81111561373b5761373a61535d565b5b6040519080825280602002602001820160405280156137695781602001602082028036833780820191505090505b50905082816000815181106137815761378061532e565b5b60200260200101818152505080915050919050565b6137b58473ffffffffffffffffffffffffffffffffffffffff166139db565b15613975578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016137fb9594939291906149b3565b602060405180830381600087803b15801561381557600080fd5b505af192505050801561384657506040513d601f19601f820116820180604052508101906138439190614295565b60015b6138ec5761385261538c565b806308c379a014156138af5750613867615a43565b8061387257506138b1565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138a69190614b46565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138e390614b68565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613973576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161396a90614ba8565b60405180910390fd5b505b505050505050565b61398b8686868686866139fe565b61399361142f565b156139d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139ca90614c48565b60405180910390fd5b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050505050565b828054613a129061521a565b90600052602060002090601f016020900481019282613a345760008555613a7b565b82601f10613a4d57805160ff1916838001178555613a7b565b82800160010185558215613a7b579182015b82811115613a7a578251825591602001919060010190613a5f565b5b509050613a889190613a8c565b5090565b5b80821115613aa5576000816000905550600101613a8d565b5090565b6000613abc613ab784614eac565b614e87565b90508083825260208201905082856020860282011115613adf57613ade6153b3565b5b60005b85811015613b0f5781613af58882613c7d565b845260208401935060208301925050600181019050613ae2565b5050509392505050565b6000613b2c613b2784614ed8565b614e87565b90508083825260208201905082856020860282011115613b4f57613b4e6153b3565b5b60005b85811015613b7f5781613b658882613dcc565b845260208401935060208301925050600181019050613b52565b5050509392505050565b6000613b9c613b9784614ed8565b614e87565b90508083825260208201905082856020860282011115613bbf57613bbe6153b3565b5b60005b85811015613bef5781613bd58882613de1565b845260208401935060208301925050600181019050613bc2565b5050509392505050565b6000613c0c613c0784614f04565b614e87565b905082815260208101848484011115613c2857613c276153b8565b5b613c338482856151ae565b509392505050565b6000613c4e613c4984614f35565b614e87565b905082815260208101848484011115613c6a57613c696153b8565b5b613c758482856151ae565b509392505050565b600081359050613c8c81615ad9565b92915050565b600082601f830112613ca757613ca66153ae565b5b8135613cb7848260208601613aa9565b91505092915050565b600082601f830112613cd557613cd46153ae565b5b8135613ce5848260208601613b19565b91505092915050565b600082601f830112613d0357613d026153ae565b5b8151613d13848260208601613b89565b91505092915050565b600081359050613d2b81615af0565b92915050565b600081359050613d4081615b07565b92915050565b600081359050613d5581615b1e565b92915050565b600081519050613d6a81615b1e565b92915050565b600082601f830112613d8557613d846153ae565b5b8135613d95848260208601613bf9565b91505092915050565b600082601f830112613db357613db26153ae565b5b8135613dc3848260208601613c3b565b91505092915050565b600081359050613ddb81615b35565b92915050565b600081519050613df081615b35565b92915050565b600060208284031215613e0c57613e0b6153c2565b5b6000613e1a84828501613c7d565b91505092915050565b60008060408385031215613e3a57613e396153c2565b5b6000613e4885828601613c7d565b9250506020613e5985828601613c7d565b9150509250929050565b600080600080600060a08688031215613e7f57613e7e6153c2565b5b6000613e8d88828901613c7d565b9550506020613e9e88828901613c7d565b945050604086013567ffffffffffffffff811115613ebf57613ebe6153bd565b5b613ecb88828901613cc0565b935050606086013567ffffffffffffffff811115613eec57613eeb6153bd565b5b613ef888828901613cc0565b925050608086013567ffffffffffffffff811115613f1957613f186153bd565b5b613f2588828901613d70565b9150509295509295909350565b600080600080600060a08688031215613f4e57613f4d6153c2565b5b6000613f5c88828901613c7d565b9550506020613f6d88828901613c7d565b9450506040613f7e88828901613dcc565b9350506060613f8f88828901613dcc565b925050608086013567ffffffffffffffff811115613fb057613faf6153bd565b5b613fbc88828901613d70565b9150509295509295909350565b600080600060608486031215613fe257613fe16153c2565b5b6000613ff086828701613c7d565b935050602084013567ffffffffffffffff811115614011576140106153bd565b5b61401d86828701613cc0565b925050604084013567ffffffffffffffff81111561403e5761403d6153bd565b5b61404a86828701613cc0565b9150509250925092565b6000806040838503121561406b5761406a6153c2565b5b600061407985828601613c7d565b925050602061408a85828601613d1c565b9150509250929050565b600080604083850312156140ab576140aa6153c2565b5b60006140b985828601613c7d565b92505060206140ca85828601613dcc565b9150509250929050565b6000806000606084860312156140ed576140ec6153c2565b5b60006140fb86828701613c7d565b935050602061410c86828701613dcc565b925050604061411d86828701613dcc565b9150509250925092565b6000806040838503121561413e5761413d6153c2565b5b600083013567ffffffffffffffff81111561415c5761415b6153bd565b5b61416885828601613c92565b925050602083013567ffffffffffffffff811115614189576141886153bd565b5b61419585828601613cc0565b9150509250929050565b600080604083850312156141b6576141b56153c2565b5b600083015167ffffffffffffffff8111156141d4576141d36153bd565b5b6141e085828601613cee565b92505060206141f185828601613de1565b9150509250929050565b600060208284031215614211576142106153c2565b5b600061421f84828501613d31565b91505092915050565b6000806040838503121561423f5761423e6153c2565b5b600061424d85828601613d31565b925050602061425e85828601613c7d565b9150509250929050565b60006020828403121561427e5761427d6153c2565b5b600061428c84828501613d46565b91505092915050565b6000602082840312156142ab576142aa6153c2565b5b60006142b984828501613d5b565b91505092915050565b6000602082840312156142d8576142d76153c2565b5b600082013567ffffffffffffffff8111156142f6576142f56153bd565b5b61430284828501613d9e565b91505092915050565b600060208284031215614321576143206153c2565b5b600061432f84828501613dcc565b91505092915050565b60006020828403121561434e5761434d6153c2565b5b600061435c84828501613de1565b91505092915050565b6000806040838503121561437c5761437b6153c2565b5b600061438a85828601613dcc565b925050602061439b85828601613dcc565b9150509250929050565b60006143b18383614860565b60208301905092915050565b6143c6816150c6565b82525050565b60006143d782614f76565b6143e18185614fa4565b93506143ec83614f66565b8060005b8381101561441d57815161440488826143a5565b975061440f83614f97565b9250506001810190506143f0565b5085935050505092915050565b614433816150d8565b82525050565b614442816150e4565b82525050565b600061445382614f81565b61445d8185614fb5565b935061446d8185602086016151bd565b614476816153c7565b840191505092915050565b61448a81615154565b82525050565b61449981615166565b82525050565b6144a881615178565b82525050565b60006144b982614f8c565b6144c38185614fc6565b93506144d38185602086016151bd565b6144dc816153c7565b840191505092915050565b60006144f282614f8c565b6144fc8185614fd7565b935061450c8185602086016151bd565b80840191505092915050565b6000614525603483614fc6565b9150614530826153e5565b604082019050919050565b6000614548602083614fc6565b915061455382615434565b602082019050919050565b600061456b602883614fc6565b91506145768261545d565b604082019050919050565b600061458e601483614fc6565b9150614599826154ac565b602082019050919050565b60006145b1602b83614fc6565b91506145bc826154d5565b604082019050919050565b60006145d4602683614fc6565b91506145df82615524565b604082019050919050565b60006145f7602483614fc6565b915061460282615573565b604082019050919050565b600061461a602c83614fc6565b9150614625826155c2565b604082019050919050565b600061463d602983614fc6565b915061464882615611565b604082019050919050565b6000614660601083614fc6565b915061466b82615660565b602082019050919050565b6000614683602583614fc6565b915061468e82615689565b604082019050919050565b60006146a6603283614fc6565b91506146b1826156d8565b604082019050919050565b60006146c9602283614fc6565b91506146d482615727565b604082019050919050565b60006146ec602383614fc6565b91506146f782615776565b604082019050919050565b600061470f601a83614fc6565b915061471a826157c5565b602082019050919050565b6000614732602a83614fc6565b915061473d826157ee565b604082019050919050565b6000614755601583614fc6565b91506147608261583d565b602082019050919050565b6000614778601783614fd7565b915061478382615866565b601782019050919050565b600061479b602983614fc6565b91506147a68261588f565b604082019050919050565b60006147be602983614fc6565b91506147c9826158de565b604082019050919050565b60006147e1602883614fc6565b91506147ec8261592d565b604082019050919050565b6000614804602183614fc6565b915061480f8261597c565b604082019050919050565b6000614827601183614fd7565b9150614832826159cb565b601182019050919050565b600061484a602f83614fc6565b9150614855826159f4565b604082019050919050565b6148698161513a565b82525050565b6148788161513a565b82525050565b61488f61488a8261513a565b6152c6565b82525050565b61489e81615144565b82525050565b60006148af8261476b565b91506148bb82856144e7565b91506148c68261481a565b91506148d282846144e7565b91508190509392505050565b60006148ea828461487e565b60208201915081905092915050565b600060208201905061490e60008301846143bd565b92915050565b600060a08201905061492960008301886143bd565b61493660208301876143bd565b818103604083015261494881866143cc565b9050818103606083015261495c81856143cc565b905081810360808301526149708184614448565b90509695505050505050565b600060608201905061499160008301866143bd565b61499e60208301856143bd565b6149ab604083018461486f565b949350505050565b600060a0820190506149c860008301886143bd565b6149d560208301876143bd565b6149e2604083018661486f565b6149ef606083018561486f565b8181036080830152614a018184614448565b90509695505050505050565b6000604082019050614a2260008301856143bd565b614a2f602083018461486f565b9392505050565b60006020820190508181036000830152614a5081846143cc565b905092915050565b60006040820190508181036000830152614a7281856143cc565b90508181036020830152614a8681846143cc565b90509392505050565b60006040820190508181036000830152614aa981856143cc565b9050614ab8602083018461486f565b9392505050565b6000602082019050614ad4600083018461442a565b92915050565b6000602082019050614aef6000830184614439565b92915050565b6000602082019050614b0a6000830184614481565b92915050565b6000602082019050614b256000830184614490565b92915050565b6000602082019050614b40600083018461449f565b92915050565b60006020820190508181036000830152614b6081846144ae565b905092915050565b60006020820190508181036000830152614b8181614518565b9050919050565b60006020820190508181036000830152614ba18161453b565b9050919050565b60006020820190508181036000830152614bc18161455e565b9050919050565b60006020820190508181036000830152614be181614581565b9050919050565b60006020820190508181036000830152614c01816145a4565b9050919050565b60006020820190508181036000830152614c21816145c7565b9050919050565b60006020820190508181036000830152614c41816145ea565b9050919050565b60006020820190508181036000830152614c618161460d565b9050919050565b60006020820190508181036000830152614c8181614630565b9050919050565b60006020820190508181036000830152614ca181614653565b9050919050565b60006020820190508181036000830152614cc181614676565b9050919050565b60006020820190508181036000830152614ce181614699565b9050919050565b60006020820190508181036000830152614d01816146bc565b9050919050565b60006020820190508181036000830152614d21816146df565b9050919050565b60006020820190508181036000830152614d4181614702565b9050919050565b60006020820190508181036000830152614d6181614725565b9050919050565b60006020820190508181036000830152614d8181614748565b9050919050565b60006020820190508181036000830152614da18161478e565b9050919050565b60006020820190508181036000830152614dc1816147b1565b9050919050565b60006020820190508181036000830152614de1816147d4565b9050919050565b60006020820190508181036000830152614e01816147f7565b9050919050565b60006020820190508181036000830152614e218161483d565b9050919050565b6000602082019050614e3d600083018461486f565b92915050565b6000604082019050614e58600083018561486f565b614e65602083018461486f565b9392505050565b6000602082019050614e816000830184614895565b92915050565b6000614e91614ea2565b9050614e9d828261524c565b919050565b6000604051905090565b600067ffffffffffffffff821115614ec757614ec661535d565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614ef357614ef261535d565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614f1f57614f1e61535d565b5b614f28826153c7565b9050602081019050919050565b600067ffffffffffffffff821115614f5057614f4f61535d565b5b614f59826153c7565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614fed8261513a565b9150614ff88361513a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561502d5761502c6152d0565b5b828201905092915050565b60006150438261513a565b915061504e8361513a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615087576150866152d0565b5b828202905092915050565b600061509d8261513a565b91506150a88361513a565b9250828210156150bb576150ba6152d0565b5b828203905092915050565b60006150d18261511a565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600061515f8261518a565b9050919050565b60006151718261518a565b9050919050565b60006151838261518a565b9050919050565b60006151958261519c565b9050919050565b60006151a78261511a565b9050919050565b82818337600083830152505050565b60005b838110156151db5780820151818401526020810190506151c0565b838111156151ea576000848401525b50505050565b60006151fb8261513a565b9150600082141561520f5761520e6152d0565b5b600182039050919050565b6000600282049050600182168061523257607f821691505b60208210811415615246576152456152ff565b5b50919050565b615255826153c7565b810181811067ffffffffffffffff821117156152745761527361535d565b5b80604052505050565b60006152888261513a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156152bb576152ba6152d0565b5b600182019050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156153ab5760046000803e6153a86000516153d8565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135355061757361626c653a20746f6b656e207472616e736665722060008201527f7768696c65207061757365640000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f5265737472696374656420746f2077686974656c6973746564206f722061646d60008201527f696e000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f5265737472696374656420746f2077686974656c69737465642e000000000000600082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f5265737472696374656420746f2061646d696e732e0000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600060443d1015615a5357615ad6565b615a5b614ea2565b60043d036004823e80513d602482011167ffffffffffffffff82111715615a83575050615ad6565b808201805167ffffffffffffffff811115615aa15750505050615ad6565b80602083010160043d038501811115615abe575050505050615ad6565b615acd8260200185018661524c565b82955050505050505b90565b615ae2816150c6565b8114615aed57600080fd5b50565b615af9816150d8565b8114615b0457600080fd5b50565b615b10816150e4565b8114615b1b57600080fd5b50565b615b27816150ee565b8114615b3257600080fd5b50565b615b3e8161513a565b8114615b4957600080fd5b5056fea2646970667358221220365e238247d270f4ebb7508ea858a2e89db678672c993c516fe1efc3b920e4dd64736f6c63430008070033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004168747470733a2f2f736869626163617264732e667261312e63646e2e6469676974616c6f6365616e7370616365732e636f6d2f7b69647d2f6d6574612e6a736f6e00000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _uri (string): https://shibacards.fra1.cdn.digitaloceanspaces.com/{id}/meta.json

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000041
Arg [2] : 68747470733a2f2f736869626163617264732e667261312e63646e2e64696769
Arg [3] : 74616c6f6365616e7370616365732e636f6d2f7b69647d2f6d6574612e6a736f
Arg [4] : 6e00000000000000000000000000000000000000000000000000000000000000


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

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