ETH Price: $3,780.19 (+5.57%)

Token

AnimightiesJigScene (AMJS)
 

Overview

Max Total Supply

4,496 AMJS

Holders

1,081

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x0aE02E7723FF745Bc759ecfc0726633E09f42c9B
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
AnimightiesJigScene

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 2 runs

Other Settings:
default evmVersion
File 1 of 14 : JigScene_Puzzle.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.sol";


contract AnimightiesJigScene is ERC1155, Ownable, AccessControl {
	using SafeMath for uint256;
	using Strings for uint256;

	bytes32 public constant WHITE_LIST_ROLE = keccak256("WHITE_LIST_ROLE");
    uint256 public constant NUMBER_OF_LAYERS_PER_PUZZLE = 12;
    uint256 public constant MAX_PUZZLES_SUPPLY = 420;
    uint256 public constant PRICE = 0.05 ether;
    string private _base_uri;


    uint256[] public layers_ids = [
            500, 501,
            502, 503,
            504, 505,
            506, 507,
            508, 509,
            510, 511
        ];

    uint256[] private burning_amounts = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];

	uint256 public completedPuzzleCount = 0;
    uint256 public layersLeftToMint = NUMBER_OF_LAYERS_PER_PUZZLE * MAX_PUZZLES_SUPPLY;
    uint256 public reserved = 100;
    bool public paused_mint = true;
    address lolabs_splitter;
    mapping(uint256 => uint256) private _totalSupply;

	modifier whenMintNotPaused() {
        require(!paused_mint, "AnimightiesJigScene: mint is paused");
        _;
    }

	event MintPaused(address account);

    event MintUnpaused(address account);

	constructor(
		string memory uri_,
		address lolabs_splitter_,
		address white_listed
	)
		ERC1155(uri_)
	{
        _base_uri = uri_;
		lolabs_splitter = lolabs_splitter_;
		_setupRole(WHITE_LIST_ROLE, msg.sender);
        _setupRole(WHITE_LIST_ROLE, white_listed);
	}

	function mint(uint256 num) public payable whenMintNotPaused(){
		require( msg.value >= PRICE * num ,                          		"AnimightiesJigScene: Ether sent is less than PRICE*num" );
		require( num <= NUMBER_OF_LAYERS_PER_PUZZLE ,                       "AnimightiesJigScene: Trying to mint more than NUMBER_OF_LAYERS_PER_PUZZLE" );
		require( msg.sender == tx.origin ,                                  "AnimightiesJigScene: contracts cannot mint" );
		for(uint256 i = 0; i < num; i++) {
            _LFG(msg.sender);
        }
    }

	function airdrop(address[] calldata _addresses) external onlyRole(WHITE_LIST_ROLE) {
		for(uint256 i = 0; i < _addresses.length; i++) {
			_LFG(_addresses[i]);
        }
    }

    function giveaway(address account) external onlyRole(WHITE_LIST_ROLE) {
        require(reserved > 0, 	      	"AnimightiesJigScene: Exceeds maximum AnimightiesJigScene giveaway supply" );
        reserved -= 1;
        _LFG(account);
    }

    // remove before production
    function giveawayBatch(address account) external onlyRole(WHITE_LIST_ROLE) {
        layersLeftToMint -= 12;
		_mintBatch(account, layers_ids, burning_amounts, "");
    }

    function _LFG(address account) private {
		require( layersLeftToMint - reserved > 0, 	      	"AnimightiesJigScene: Exceeds maximum AnimightiesJigScene supply" );
		uint256 id = _generateRandomTokenId(account);
		layersLeftToMint -= 1;
		_mint(account, id, 1, "");
	}

	function _generateRandomTokenId(address account) private view returns (uint256) {
		uint256 seed =
			uint256(
				keccak256(
					abi.encodePacked(block.timestamp + block.difficulty + block.gaslimit + (layersLeftToMint*block.number) +
						((uint256(keccak256(abi.encodePacked(account)))) / (block.timestamp+layersLeftToMint))
				)
			));

		uint256 id_index = seed.mod(NUMBER_OF_LAYERS_PER_PUZZLE);
		for (uint256 i = 0; i < NUMBER_OF_LAYERS_PER_PUZZLE; i++) {
			id_index = (id_index+i).mod(NUMBER_OF_LAYERS_PER_PUZZLE);
			if (totalSupply(layers_ids[id_index]) < MAX_PUZZLES_SUPPLY) {
				return layers_ids[id_index];
			}
		}
		return layers_ids[id_index];
	}

    function burnLayersToCompletePuzzle() external {
        require(completedPuzzleCount < MAX_PUZZLES_SUPPLY, 	      	"AnimightiesJigScene: Exceeds maximum MAX_PUZZLES_SUPPLY" );
        require( hasAllPieces(msg.sender) ,                         "AnimightiesJigScene: sender does not have all pieces" );
		require( msg.sender == tx.origin ,                          "AnimightiesJigScene: contracts cannot complete the puzzle" );
		completedPuzzleCount += 1;
        _burnBatch(msg.sender, layers_ids, burning_amounts);
        _mint(msg.sender, completedPuzzleCount, 1, "");
    }

    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    function exists(uint256 id) public view virtual returns (bool) {
        return totalSupply(id) > 0;
    }

    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override {
        super._mint(account, id, amount, data);
        _totalSupply[id] += amount;
    }

    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._mintBatch(to, ids, amounts, data);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] += amounts[i];
        }
    }

    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override {
        super._burn(account, id, amount);
        _totalSupply[id] -= amount;
    }

    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override {
        super._burnBatch(account, ids, amounts);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] -= amounts[i];
        }
    }

	function pauseMint() public onlyRole(WHITE_LIST_ROLE) {
        paused_mint = true;
        emit MintPaused(msg.sender);
    }

    function unpauseMint() public onlyRole(WHITE_LIST_ROLE) {
        paused_mint = false;
        emit MintUnpaused(msg.sender);
    }

	function setBaseURI(string memory newURI) public onlyRole(WHITE_LIST_ROLE) {
		_base_uri = newURI;
	}

	function updateLolaSplitterAddress(address _lolabs_splitter) public onlyRole(WHITE_LIST_ROLE) {
        lolabs_splitter = _lolabs_splitter;
    }

	function getLolabsSplitter() public view onlyRole(WHITE_LIST_ROLE) returns(address splitter) {
        return lolabs_splitter;
    }

    function withdrawAllToSplitter() public onlyRole(WHITE_LIST_ROLE) {
        uint256 _balance = address(this).balance ;
        require(_balance > 0, 							 "AnimightiesJigScene: withdraw all call without balance");
        require(payable(lolabs_splitter).send(_balance), "AnimightiesJigScene: FAILED withdraw all call");
    }

	function tokenURI(uint256 tokenId) public view returns (string memory) {
        require(exists(tokenId), "AnimightiesJigScene: URI query for nonexistent token");
        string memory baseURI = getBaseURI();
        string memory json = ".json";
        return bytes(baseURI).length > 0
            ? string(abi.encodePacked(baseURI, tokenId.toString(), json))
            : '';
	}

    function uri(uint256 tokenId) public view virtual override(ERC1155) returns (string memory) {
        return tokenURI(tokenId);
    }

	function getBaseURI() public view returns (string memory) {
		return _base_uri;
	}

    function hasAllPieces(address account) public view returns (bool) {
        address[] memory accounts = new address[](NUMBER_OF_LAYERS_PER_PUZZLE);

        for(uint256 i; i < NUMBER_OF_LAYERS_PER_PUZZLE; i++){
            accounts[i] = account;
        }

        uint256[] memory balances = balanceOfBatch(accounts, layers_ids);

        for(uint256 i; i < NUMBER_OF_LAYERS_PER_PUZZLE; i++){
            if(balances[i] < 1) {
                return false;
            }
        }

        return true;
    }

	function name() external pure returns (string memory) {
        return "AnimightiesJigScene";
    }

    function symbol() external pure returns (string memory) {
        return "AMJS";
    }

	function supportsInterface(bytes4 interfaceId) public view override(ERC1155, AccessControl) returns (bool) {
        return super.supportsInterface(interfaceId);
    }
}

File 2 of 14 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 3 of 14 : SafeMath.sol
// SPDX-License-Identifier: MIT

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 no longer needed starting with Solidity 0.8. 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;
        }
    }
}

File 4 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 14 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 6 of 14 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

        return array;
    }
}

File 7 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 8 of 14 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 9 of 14 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 14 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

File 12 of 14 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 13 of 14 : IAccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

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

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

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

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

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

pragma solidity ^0.8.0;

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 2
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"uri_","type":"string"},{"internalType":"address","name":"lolabs_splitter_","type":"address"},{"internalType":"address","name":"white_listed","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"MintPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"MintUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PUZZLES_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUMBER_OF_LAYERS_PER_PUZZLE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITE_LIST_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnLayersToCompletePuzzle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"completedPuzzleCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLolabsSplitter","outputs":[{"internalType":"address","name":"splitter","type":"address"}],"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":"account","type":"address"}],"name":"giveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"giveawayBatch","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":"address","name":"account","type":"address"}],"name":"hasAllPieces","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"layersLeftToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"layers_ids","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused_mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setBaseURI","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":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lolabs_splitter","type":"address"}],"name":"updateLolaSplitterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAllToSplitter","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6102006040526101f460809081526101f560a0526101f660c0526101f760e0526101f8610100526101f9610120526101fa610140526101fb610160526101fc610180526101fd6101a0526101fe6101c0526101ff6101e0526200006790600690600c620002d8565b506040805161018081018252600180825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810191909152620000d990600790600c6200032e565b506000600855620000ee6101a4600c6200051f565b6009556064600a55600b805460ff191660011790553480156200011057600080fd5b5060405162003d0638038062003d06833981016040819052620001339162000422565b826200013f81620001c0565b506200014b33620001d9565b82516200016090600590602086019062000371565b50600b8054610100600160a81b0319166101006001600160a01b038516021790556200019c60008051602062003ce6833981519152336200022b565b620001b760008051602062003ce6833981519152826200022b565b5050506200059e565b8051620001d590600290602084019062000371565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008281526004602090815260408083206001600160a01b0385168452909152902054620001d5908390839060ff16620001d55760008281526004602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002943390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280548282559060005260206000209081019282156200031c579160200282015b828111156200031c578251829061ffff16905591602001919060010190620002f9565b506200032a929150620003ee565b5090565b8280548282559060005260206000209081019282156200031c579160200282015b828111156200031c578251829060ff169055916020019190600101906200034f565b8280546200037f906200054b565b90600052602060002090601f016020900481019282620003a357600085556200031c565b82601f10620003be57805160ff19168380011785556200031c565b828001600101855582156200031c579182015b828111156200031c578251825591602001919060010190620003d1565b5b808211156200032a5760008155600101620003ef565b80516001600160a01b03811681146200041d57600080fd5b919050565b60008060006060848603121562000437578283fd5b83516001600160401b03808211156200044e578485fd5b818601915086601f83011262000462578485fd5b81518181111562000477576200047762000588565b604051601f8201601f19908116603f01168101908382118183101715620004a257620004a262000588565b81604052828152602093508984848701011115620004be578788fd5b8791505b82821015620004e15784820184015181830185015290830190620004c2565b82821115620004f257878484830101525b96506200050491505086820162000405565b93505050620005166040850162000405565b90509250925092565b60008160001904831182151516156200054657634e487b7160e01b81526011600452602481fd5b500290565b600181811c908216806200056057607f821691505b602082108114156200058257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61373880620005ae6000396000f3fe6080604052600436106101f65760003560e01c8062fdd58e146101fb57806301ffc9a71461022e57806306fdde031461025e5780630acd12c7146102a35780630e89341c146102ba5780631a8bd2da146102da578063248a9ca3146102ef5780632eb2c2d61461030f5780632f2ff15d1461032f57806332f8ff031461034f57806336568abe146103645780634e1273f4146103845780634f558e79146103b157806355f804b3146103d1578063714c5398146103f1578063715018a614610406578063729ad39e1461041b57806372f92b841461043b5780637e262b351461045b5780638545b9041461047b5780638d859f3e1461049b5780638da5cb5b146104b657806391418680146104d857806391d14854146104ed57806395d89b411461050d578063a0712d681461053a578063a217fddf1461054d578063a22cb46514610562578063b99c661514610582578063bd85b03914610597578063c50a557c146105b7578063c87b56dd146105d9578063cb48d8ee146105f9578063cd4bbe3d14610613578063cd85cdb514610629578063d20adeb71461063e578063d547741f14610654578063dfd233dd14610674578063e985e9c514610694578063f242432a146106dd578063f2fde38b146106fd578063fd77db1d1461071d578063fe60d12c1461073d578063fefcfa2614610753575b600080fd5b34801561020757600080fd5b5061021b610216366004612e3a565b610769565b6040519081526020015b60405180910390f35b34801561023a57600080fd5b5061024e610249366004612fd6565b610800565b6040519015158152602001610225565b34801561026a57600080fd5b50604080518082019091526013815272416e696d696768746965734a69675363656e6560681b60208201525b6040516102259190613263565b3480156102af57600080fd5b506102b8610811565b005b3480156102c657600080fd5b506102966102d5366004612f9c565b61092a565b3480156102e657600080fd5b506102b8610935565b3480156102fb57600080fd5b5061021b61030a366004612f9c565b610993565b34801561031b57600080fd5b506102b861032a366004612cf9565b6109a8565b34801561033b57600080fd5b506102b861034a366004612fb4565b610a3f565b34801561035b57600080fd5b506102b8610a61565b34801561037057600080fd5b506102b861037f366004612fb4565b610c78565b34801561039057600080fd5b506103a461039f366004612ed2565b610cf2565b6040516102259190613222565b3480156103bd57600080fd5b5061024e6103cc366004612f9c565b610e53565b3480156103dd57600080fd5b506102b86103ec36600461300e565b610e66565b3480156103fd57600080fd5b50610296610e92565b34801561041257600080fd5b506102b8610f24565b34801561042757600080fd5b506102b8610436366004612e63565b610f5d565b34801561044757600080fd5b5061021b610456366004612f9c565b610fd6565b34801561046757600080fd5b506102b8610476366004612cad565b610ff7565b34801561048757600080fd5b5061024e610496366004612cad565b611039565b3480156104a757600080fd5b5061021b66b1a2bc2ec5000081565b3480156104c257600080fd5b506104cb61117b565b604051610225919061316b565b3480156104e457600080fd5b506104cb61118a565b3480156104f957600080fd5b5061024e610508366004612fb4565b6111bd565b34801561051957600080fd5b50604080518082019091526004815263414d4a5360e01b6020820152610296565b6102b8610548366004612f9c565b6111e8565b34801561055957600080fd5b5061021b600081565b34801561056e57600080fd5b506102b861057d366004612e00565b6113c5565b34801561058e57600080fd5b5061021b600c81565b3480156105a357600080fd5b5061021b6105b2366004612f9c565b61149c565b3480156105c357600080fd5b5061021b6000805160206136c383398151915281565b3480156105e557600080fd5b506102966105f4366004612f9c565b6114ae565b34801561060557600080fd5b50600b5461024e9060ff1681565b34801561061f57600080fd5b5061021b60095481565b34801561063557600080fd5b506102b861159c565b34801561064a57600080fd5b5061021b60085481565b34801561066057600080fd5b506102b861066f366004612fb4565b6115f2565b34801561068057600080fd5b506102b861068f366004612cad565b61160f565b3480156106a057600080fd5b5061024e6106af366004612cc7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156106e957600080fd5b506102b86106f8366004612d9e565b6116c1565b34801561070957600080fd5b506102b8610718366004612cad565b611748565b34801561072957600080fd5b506102b8610738366004612cad565b6117e8565b34801561074957600080fd5b5061021b600a5481565b34801561075f57600080fd5b5061021b6101a481565b60006001600160a01b0383166107da5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b600061080b826118d6565b92915050565b6000805160206136c383398151915261082a81336118fb565b47806108975760405162461bcd60e51b815260206004820152603660248201527f416e696d696768746965734a69675363656e653a20776974686472617720616c6044820152756c2063616c6c20776974686f75742062616c616e636560501b60648201526084016107d1565b600b546040516101009091046001600160a01b0316906108fc8315029083906000818181858888f193505050506109265760405162461bcd60e51b815260206004820152602d60248201527f416e696d696768746965734a69675363656e653a204641494c4544207769746860448201526c191c985dc8185b1b0818d85b1b609a1b60648201526084016107d1565b5050565b606061080b826114ae565b6000805160206136c383398151915261094e81336118fb565b600b805460ff191690556040517f4edc83796ddd13f7381b8c91ffbca02176782693577083e23486400548aaa8a19061098890339061316b565b60405180910390a150565b60009081526004602052604090206001015490565b6001600160a01b0385163314806109c457506109c485336106af565b610a2b5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016107d1565b610a38858585858561195f565b5050505050565b610a4882610993565b610a5281336118fb565b610a5c8383611b05565b505050565b6101a460085410610ac25760405162461bcd60e51b815260206004820152603760248201526000805160206136e3833981519152604482015276696d756d204d41585f50555a5a4c45535f535550504c5960481b60648201526084016107d1565b610acb33611039565b610b345760405162461bcd60e51b815260206004820152603460248201527f416e696d696768746965734a69675363656e653a2073656e64657220646f6573604482015273206e6f74206861766520616c6c2070696563657360601b60648201526084016107d1565b333214610b935760405162461bcd60e51b81526020600482015260396024820152600080516020613683833981519152604482015278616e6e6f7420636f6d706c657465207468652070757a7a6c6560381b60648201526084016107d1565b600160086000828254610ba6919061342e565b92505081905550610c58336006805480602002602001604051908101604052809291908181526020018280548015610bfd57602002820191906000526020600020905b815481526020019060010190808311610be9575b50505050506007805480602002602001604051908101604052809291908181526020018280548015610c4e57602002820191906000526020600020905b815481526020019060010190808311610c3a575b5050505050611b8b565b610c7633600854600160405180602001604052806000815250611c29565b565b6001600160a01b0381163314610ce85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016107d1565b6109268282611c5e565b60608151835114610d575760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107d1565b600083516001600160401b03811115610d8057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610da9578160200160208202803683370190505b50905060005b8451811015610e4b57610e10858281518110610ddb57634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610e0357634e487b7160e01b600052603260045260246000fd5b6020026020010151610769565b828281518110610e3057634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610e448161353a565b9050610daf565b509392505050565b600080610e5f8361149c565b1192915050565b6000805160206136c3833981519152610e7f81336118fb565b8151610a5c906005906020850190612b11565b606060058054610ea1906134d3565b80601f0160208091040260200160405190810160405280929190818152602001828054610ecd906134d3565b8015610f1a5780601f10610eef57610100808354040283529160200191610f1a565b820191906000526020600020905b815481529060010190602001808311610efd57829003601f168201915b5050505050905090565b33610f2d61117b565b6001600160a01b031614610f535760405162461bcd60e51b81526004016107d19061334d565b610c766000611cc5565b6000805160206136c3833981519152610f7681336118fb565b60005b82811015610fd057610fbe848483818110610fa457634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610fb99190612cad565b611d17565b80610fc88161353a565b915050610f79565b50505050565b60068181548110610fe657600080fd5b600091825260209091200154905081565b6000805160206136c383398151915261101081336118fb565b50600b80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60408051600c8082526101a08201909252600091829190602082016101808036833701905050905060005b600c8110156110b8578382828151811061108e57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0390921660209283029190910190910152806110b08161353a565b915050611064565b50600061111582600680548060200260200160405190810160405280929190818152602001828054801561110b57602002820191906000526020600020905b8154815260200190600101908083116110f7575b5050505050610cf2565b905060005b600c81101561117057600182828151811061114557634e487b7160e01b600052603260045260246000fd5b6020026020010151101561115e57506000949350505050565b806111688161353a565b91505061111a565b506001949350505050565b6003546001600160a01b031690565b60006000805160206136c38339815191526111a581336118fb565b600b5461010090046001600160a01b031691505b5090565b60009182526004602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600b5460ff16156112475760405162461bcd60e51b815260206004820152602360248201527f416e696d696768746965734a69675363656e653a206d696e74206973207061756044820152621cd95960ea1b60648201526084016107d1565b6112588166b1a2bc2ec5000061345a565b3410156112c65760405162461bcd60e51b815260206004820152603660248201527f416e696d696768746965734a69675363656e653a2045746865722073656e74206044820152756973206c657373207468616e2050524943452a6e756d60501b60648201526084016107d1565b600c81111561134f5760405162461bcd60e51b815260206004820152604960248201527f416e696d696768746965734a69675363656e653a20547279696e6720746f206d60448201527f696e74206d6f7265207468616e204e554d4245525f4f465f4c41594552535f5060648201526845525f50555a5a4c4560b81b608482015260a4016107d1565b33321461139f5760405162461bcd60e51b815260206004820152602a6024820152600080516020613683833981519152604482015269185b9b9bdd081b5a5b9d60b21b60648201526084016107d1565b60005b81811015610926576113b333611d17565b806113bd8161353a565b9150506113a2565b336001600160a01b03831614156114305760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107d1565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000908152600c602052604090205490565b60606114b982610e53565b6115225760405162461bcd60e51b815260206004820152603460248201527f416e696d696768746965734a69675363656e653a20555249207175657279206660448201527337b9103737b732bc34b9ba32b73a103a37b5b2b760611b60648201526084016107d1565b600061152c610e92565b604080518082019091526005815264173539b7b760d91b60208201528151919250906115675760405180602001604052806000815250611594565b8161157185611dcd565b82604051602001611584939291906130b9565b6040516020818303038152906040525b949350505050565b6000805160206136c38339815191526115b581336118fb565b600b805460ff191660011790556040517fee9b45d4bbbf616909699035be16f077b7459c8d4db74944d4e27d84f15faf349061098890339061316b565b6115fb82610993565b61160581336118fb565b610a5c8383611c5e565b6000805160206136c383398151915261162881336118fb565b6000600a541161169f5760405162461bcd60e51b815260206004820152604860248201526000805160206136e383398151915260448201527f696d756d20416e696d696768746965734a69675363656e6520676976656177616064820152677920737570706c7960c01b608482015260a4016107d1565b6001600a60008282546116b29190613479565b90915550610926905082611d17565b6001600160a01b0385163314806116dd57506116dd85336106af565b61173b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016107d1565b610a388585858585611ee6565b3361175161117b565b6001600160a01b0316146117775760405162461bcd60e51b81526004016107d19061334d565b6001600160a01b0381166117dc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107d1565b6117e581611cc5565b50565b6000805160206136c383398151915261180181336118fb565b600c600960008282546118149190613479565b9250508190555061092682600680548060200260200160405190810160405280929190818152602001828054801561186b57602002820191906000526020600020905b815481526020019060010190808311611857575b505050505060078054806020026020016040519081016040528092919081815260200182805480156118bc57602002820191906000526020600020905b8154815260200190600101908083116118a8575b505050505060405180602001604052806000815250611ffa565b60006001600160e01b03198216637965db0b60e01b148061080b575061080b82612099565b61190582826111bd565b6109265761191d816001600160a01b031660146120e9565b6119288360206120e9565b6040516020016119399291906130fc565b60408051601f198184030181529082905262461bcd60e51b82526107d191600401613263565b81518351146119805760405162461bcd60e51b81526004016107d190613382565b6001600160a01b0384166119a65760405162461bcd60e51b81526004016107d1906132be565b3360005b8451811015611aa95760008582815181106119d557634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110611a0157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a515760405162461bcd60e51b81526004016107d190613303565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611a8e90849061342e565b9250508190555050505080611aa29061353a565b90506119aa565b50846001600160a01b0316866001600160a01b0316826001600160a01b03166000805160206136638339815191528787604051611ae7929190613235565b60405180910390a4611afd8187878787876122d1565b505050505050565b611b0f82826111bd565b6109265760008281526004602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611b473390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611b9683838361243c565b60005b8251811015610fd057818181518110611bc257634e487b7160e01b600052603260045260246000fd5b6020026020010151600c6000858481518110611bee57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254611c139190613479565b90915550611c2290508161353a565b9050611b99565b611c358484848461263a565b6000838152600c602052604081208054849290611c5390849061342e565b909155505050505050565b611c6882826111bd565b156109265760008281526004602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000600a54600954611d299190613479565b11611d8a5760405162461bcd60e51b815260206004820152603f60248201526000805160206136e383398151915260448201527f696d756d20416e696d696768746965734a69675363656e6520737570706c790060648201526084016107d1565b6000611d95826126ef565b9050600160096000828254611daa9190613479565b925050819055506109268282600160405180602001604052806000815250611c29565b606081611df15750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e1b5780611e058161353a565b9150611e149050600a83613446565b9150611df5565b6000816001600160401b03811115611e4357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611e6d576020820181803683370190505b5090505b841561159457611e82600183613479565b9150611e8f600a86613555565b611e9a90603061342e565b60f81b818381518110611ebd57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611edf600a86613446565b9450611e71565b6001600160a01b038416611f0c5760405162461bcd60e51b81526004016107d1906132be565b33611f25818787611f1c8861288d565b610a388861288d565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611f665760405162461bcd60e51b81526004016107d190613303565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611fa390849061342e565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616916000805160206136a3833981519152910160405180910390a4611ff18288888888886128e6565b50505050505050565b612006848484846129b0565b60005b8351811015610a385782818151811061203257634e487b7160e01b600052603260045260246000fd5b6020026020010151600c600086848151811061205e57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612083919061342e565b9091555061209290508161353a565b9050612009565b60006001600160e01b03198216636cdb3d1360e11b14806120ca57506001600160e01b031982166303a24d0760e21b145b8061080b57506301ffc9a760e01b6001600160e01b031983161461080b565b606060006120f883600261345a565b61210390600261342e565b6001600160401b0381111561212857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612152576020820181803683370190505b509050600360fc1b8160008151811061217b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106121b857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006121dc84600261345a565b6121e790600161342e565b90505b600181111561227b576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061222957634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061224d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93612274816134bc565b90506121ea565b5083156122ca5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016107d1565b9392505050565b6001600160a01b0384163b15611afd5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612315908990899088908890889060040161317f565b602060405180830381600087803b15801561232f57600080fd5b505af192505050801561235f575060408051601f3d908101601f1916820190925261235c91810190612ff2565b60015b61240c5761236b6135ab565b806308c379a014156123a557506123806135c3565b8061238b57506123a7565b8060405162461bcd60e51b81526004016107d19190613263565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107d1565b6001600160e01b0319811663bc197c8160e01b14611ff15760405162461bcd60e51b81526004016107d190613276565b6001600160a01b03831661249e5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b60648201526084016107d1565b80518251146124bf5760405162461bcd60e51b81526004016107d190613382565b604080516020810190915260009081905233905b83518110156125ed5760008482815181106124fe57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600084838151811061252a57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156125b65760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b60648201526084016107d1565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806125e58161353a565b9150506124d3565b5060006001600160a01b0316846001600160a01b0316826001600160a01b0316600080516020613663833981519152868660405161262c929190613235565b60405180910390a450505050565b6001600160a01b0384166126605760405162461bcd60e51b81526004016107d1906133ca565b3361267181600087611f1c8861288d565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906126a190849061342e565b909155505060408051858152602081018590526001600160a01b0380881692600092918516916000805160206136a3833981519152910160405180910390a4610a38816000878787876128e6565b60008060095442612700919061342e565b6040516001600160601b0319606086901b1660208201526034016040516020818303038152906040528051906020012060001c61273d9190613446565b4360095461274b919061345a565b45612756444261342e565b612760919061342e565b61276a919061342e565b612774919061342e565b60405160200161278691815260200190565b60408051601f198184030181529190528051602090910120905060006127ad82600c612b05565b905060005b600c811015612857576127d0600c6127ca838561342e565b90612b05565b91506101a4612809600684815481106127f957634e487b7160e01b600052603260045260246000fd5b906000526020600020015461149c565b1015612845576006828154811061283057634e487b7160e01b600052603260045260246000fd5b90600052602060002001549350505050919050565b8061284f8161353a565b9150506127b2565b506006818154811061287957634e487b7160e01b600052603260045260246000fd5b906000526020600020015492505050919050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106128d557634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15611afd5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061292a90899089908890889088906004016131dd565b602060405180830381600087803b15801561294457600080fd5b505af1925050508015612974575060408051601f3d908101601f1916820190925261297191810190612ff2565b60015b6129805761236b6135ab565b6001600160e01b0319811663f23a6e6160e01b14611ff15760405162461bcd60e51b81526004016107d190613276565b6001600160a01b0384166129d65760405162461bcd60e51b81526004016107d1906133ca565b81518351146129f75760405162461bcd60e51b81526004016107d190613382565b3360005b8451811015612aaf57838181518110612a2457634e487b7160e01b600052603260045260246000fd5b6020026020010151600080878481518110612a4f57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254612a97919061342e565b90915550819050612aa78161353a565b9150506129fb565b50846001600160a01b031660006001600160a01b0316826001600160a01b03166000805160206136638339815191528787604051612aee929190613235565b60405180910390a4610a38816000878787876122d1565b60006122ca8284613555565b828054612b1d906134d3565b90600052602060002090601f016020900481019282612b3f5760008555612b85565b82601f10612b5857805160ff1916838001178555612b85565b82800160010185558215612b85579182015b82811115612b85578251825591602001919060010190612b6a565b506111b99291505b808211156111b95760008155600101612b8d565b60006001600160401b03831115612bba57612bba613595565b604051612bd1601f8501601f19166020018261350e565b809150838152848484011115612be657600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b0381168114612c1557600080fd5b919050565b600082601f830112612c2a578081fd5b81356020612c378261340b565b604051612c44828261350e565b8381528281019150858301600585901b87018401881015612c63578586fd5b855b85811015612c8157813584529284019290840190600101612c65565b5090979650505050505050565b600082601f830112612c9e578081fd5b6122ca83833560208501612ba1565b600060208284031215612cbe578081fd5b6122ca82612bfe565b60008060408385031215612cd9578081fd5b612ce283612bfe565b9150612cf060208401612bfe565b90509250929050565b600080600080600060a08688031215612d10578081fd5b612d1986612bfe565b9450612d2760208701612bfe565b935060408601356001600160401b0380821115612d42578283fd5b612d4e89838a01612c1a565b94506060880135915080821115612d63578283fd5b612d6f89838a01612c1a565b93506080880135915080821115612d84578283fd5b50612d9188828901612c8e565b9150509295509295909350565b600080600080600060a08688031215612db5578081fd5b612dbe86612bfe565b9450612dcc60208701612bfe565b9350604086013592506060860135915060808601356001600160401b03811115612df4578182fd5b612d9188828901612c8e565b60008060408385031215612e12578182fd5b612e1b83612bfe565b915060208301358015158114612e2f578182fd5b809150509250929050565b60008060408385031215612e4c578182fd5b612e5583612bfe565b946020939093013593505050565b60008060208385031215612e75578182fd5b82356001600160401b0380821115612e8b578384fd5b818501915085601f830112612e9e578384fd5b813581811115612eac578485fd5b8660208260051b8501011115612ec0578485fd5b60209290920196919550909350505050565b60008060408385031215612ee4578182fd5b82356001600160401b0380821115612efa578384fd5b818501915085601f830112612f0d578384fd5b81356020612f1a8261340b565b604051612f27828261350e565b8381528281019150858301600585901b870184018b1015612f46578889fd5b8896505b84871015612f6f57612f5b81612bfe565b835260019690960195918301918301612f4a565b5096505086013592505080821115612f85578283fd5b50612f9285828601612c1a565b9150509250929050565b600060208284031215612fad578081fd5b5035919050565b60008060408385031215612fc6578182fd5b82359150612cf060208401612bfe565b600060208284031215612fe7578081fd5b81356122ca8161364c565b600060208284031215613003578081fd5b81516122ca8161364c565b60006020828403121561301f578081fd5b81356001600160401b03811115613034578182fd5b8201601f81018413613044578182fd5b61159484823560208401612ba1565b6000815180845260208085019450808401835b8381101561308257815187529582019590820190600101613066565b509495945050505050565b600081518084526130a5816020860160208601613490565b601f01601f19169290920160200192915050565b600084516130cb818460208901613490565b8451908301906130df818360208901613490565b84519101906130f2818360208801613490565b0195945050505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b81526000835161312e816017850160208801613490565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161315f816028840160208801613490565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0386811682528516602082015260a0604082018190526000906131ab90830186613053565b82810360608401526131bd8186613053565b905082810360808401526131d1818561308d565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906132179083018461308d565b979650505050505050565b6020815260006122ca6020830184613053565b6040815260006132486040830185613053565b828103602084015261325a8185613053565b95945050505050565b6020815260006122ca602083018461308d565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60006001600160401b0382111561342457613424613595565b5060051b60200190565b6000821982111561344157613441613569565b500190565b6000826134555761345561357f565b500490565b600081600019048311821515161561347457613474613569565b500290565b60008282101561348b5761348b613569565b500390565b60005b838110156134ab578181015183820152602001613493565b83811115610fd05750506000910152565b6000816134cb576134cb613569565b506000190190565b600181811c908216806134e757607f821691505b6020821081141561350857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b038111828210171561353357613533613595565b6040525050565b600060001982141561354e5761354e613569565b5060010190565b6000826135645761356461357f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156135c057600481823e5160e01c5b90565b600060443d10156135d15790565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171561360057505050505090565b82850191508151818111156136185750505050505090565b843d87010160208285010111156136325750505050505090565b6136416020828601018761350e565b509095945050505050565b6001600160e01b0319811681146117e557600080fdfe4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb416e696d696768746965734a69675363656e653a20636f6e7472616374732063c3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6286024e89529ee90561d266fe70772355cdf7be9c9e97e3ac6b5d90ddbc853365416e696d696768746965734a69675363656e653a2045786365656473206d6178a26469706673582212209b2df466e250404898fd4b5bf5d0ce18d726378358f62b617fa0b77e6c7dfd3164736f6c6343000804003386024e89529ee90561d266fe70772355cdf7be9c9e97e3ac6b5d90ddbc85336500000000000000000000000000000000000000000000000000000000000000600000000000000000000000008dc2d69e41c5871bc5b14984c3e60ded801ded74000000000000000000000000d739429bfbdef8f25280bee993c6f5fb2e884a3b0000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d52665747704268506a52586f32454d7946524d3263325446554e4c52507077653169635134526148596438682f00000000000000000000

Deployed Bytecode

0x6080604052600436106101f65760003560e01c8062fdd58e146101fb57806301ffc9a71461022e57806306fdde031461025e5780630acd12c7146102a35780630e89341c146102ba5780631a8bd2da146102da578063248a9ca3146102ef5780632eb2c2d61461030f5780632f2ff15d1461032f57806332f8ff031461034f57806336568abe146103645780634e1273f4146103845780634f558e79146103b157806355f804b3146103d1578063714c5398146103f1578063715018a614610406578063729ad39e1461041b57806372f92b841461043b5780637e262b351461045b5780638545b9041461047b5780638d859f3e1461049b5780638da5cb5b146104b657806391418680146104d857806391d14854146104ed57806395d89b411461050d578063a0712d681461053a578063a217fddf1461054d578063a22cb46514610562578063b99c661514610582578063bd85b03914610597578063c50a557c146105b7578063c87b56dd146105d9578063cb48d8ee146105f9578063cd4bbe3d14610613578063cd85cdb514610629578063d20adeb71461063e578063d547741f14610654578063dfd233dd14610674578063e985e9c514610694578063f242432a146106dd578063f2fde38b146106fd578063fd77db1d1461071d578063fe60d12c1461073d578063fefcfa2614610753575b600080fd5b34801561020757600080fd5b5061021b610216366004612e3a565b610769565b6040519081526020015b60405180910390f35b34801561023a57600080fd5b5061024e610249366004612fd6565b610800565b6040519015158152602001610225565b34801561026a57600080fd5b50604080518082019091526013815272416e696d696768746965734a69675363656e6560681b60208201525b6040516102259190613263565b3480156102af57600080fd5b506102b8610811565b005b3480156102c657600080fd5b506102966102d5366004612f9c565b61092a565b3480156102e657600080fd5b506102b8610935565b3480156102fb57600080fd5b5061021b61030a366004612f9c565b610993565b34801561031b57600080fd5b506102b861032a366004612cf9565b6109a8565b34801561033b57600080fd5b506102b861034a366004612fb4565b610a3f565b34801561035b57600080fd5b506102b8610a61565b34801561037057600080fd5b506102b861037f366004612fb4565b610c78565b34801561039057600080fd5b506103a461039f366004612ed2565b610cf2565b6040516102259190613222565b3480156103bd57600080fd5b5061024e6103cc366004612f9c565b610e53565b3480156103dd57600080fd5b506102b86103ec36600461300e565b610e66565b3480156103fd57600080fd5b50610296610e92565b34801561041257600080fd5b506102b8610f24565b34801561042757600080fd5b506102b8610436366004612e63565b610f5d565b34801561044757600080fd5b5061021b610456366004612f9c565b610fd6565b34801561046757600080fd5b506102b8610476366004612cad565b610ff7565b34801561048757600080fd5b5061024e610496366004612cad565b611039565b3480156104a757600080fd5b5061021b66b1a2bc2ec5000081565b3480156104c257600080fd5b506104cb61117b565b604051610225919061316b565b3480156104e457600080fd5b506104cb61118a565b3480156104f957600080fd5b5061024e610508366004612fb4565b6111bd565b34801561051957600080fd5b50604080518082019091526004815263414d4a5360e01b6020820152610296565b6102b8610548366004612f9c565b6111e8565b34801561055957600080fd5b5061021b600081565b34801561056e57600080fd5b506102b861057d366004612e00565b6113c5565b34801561058e57600080fd5b5061021b600c81565b3480156105a357600080fd5b5061021b6105b2366004612f9c565b61149c565b3480156105c357600080fd5b5061021b6000805160206136c383398151915281565b3480156105e557600080fd5b506102966105f4366004612f9c565b6114ae565b34801561060557600080fd5b50600b5461024e9060ff1681565b34801561061f57600080fd5b5061021b60095481565b34801561063557600080fd5b506102b861159c565b34801561064a57600080fd5b5061021b60085481565b34801561066057600080fd5b506102b861066f366004612fb4565b6115f2565b34801561068057600080fd5b506102b861068f366004612cad565b61160f565b3480156106a057600080fd5b5061024e6106af366004612cc7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156106e957600080fd5b506102b86106f8366004612d9e565b6116c1565b34801561070957600080fd5b506102b8610718366004612cad565b611748565b34801561072957600080fd5b506102b8610738366004612cad565b6117e8565b34801561074957600080fd5b5061021b600a5481565b34801561075f57600080fd5b5061021b6101a481565b60006001600160a01b0383166107da5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b600061080b826118d6565b92915050565b6000805160206136c383398151915261082a81336118fb565b47806108975760405162461bcd60e51b815260206004820152603660248201527f416e696d696768746965734a69675363656e653a20776974686472617720616c6044820152756c2063616c6c20776974686f75742062616c616e636560501b60648201526084016107d1565b600b546040516101009091046001600160a01b0316906108fc8315029083906000818181858888f193505050506109265760405162461bcd60e51b815260206004820152602d60248201527f416e696d696768746965734a69675363656e653a204641494c4544207769746860448201526c191c985dc8185b1b0818d85b1b609a1b60648201526084016107d1565b5050565b606061080b826114ae565b6000805160206136c383398151915261094e81336118fb565b600b805460ff191690556040517f4edc83796ddd13f7381b8c91ffbca02176782693577083e23486400548aaa8a19061098890339061316b565b60405180910390a150565b60009081526004602052604090206001015490565b6001600160a01b0385163314806109c457506109c485336106af565b610a2b5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016107d1565b610a38858585858561195f565b5050505050565b610a4882610993565b610a5281336118fb565b610a5c8383611b05565b505050565b6101a460085410610ac25760405162461bcd60e51b815260206004820152603760248201526000805160206136e3833981519152604482015276696d756d204d41585f50555a5a4c45535f535550504c5960481b60648201526084016107d1565b610acb33611039565b610b345760405162461bcd60e51b815260206004820152603460248201527f416e696d696768746965734a69675363656e653a2073656e64657220646f6573604482015273206e6f74206861766520616c6c2070696563657360601b60648201526084016107d1565b333214610b935760405162461bcd60e51b81526020600482015260396024820152600080516020613683833981519152604482015278616e6e6f7420636f6d706c657465207468652070757a7a6c6560381b60648201526084016107d1565b600160086000828254610ba6919061342e565b92505081905550610c58336006805480602002602001604051908101604052809291908181526020018280548015610bfd57602002820191906000526020600020905b815481526020019060010190808311610be9575b50505050506007805480602002602001604051908101604052809291908181526020018280548015610c4e57602002820191906000526020600020905b815481526020019060010190808311610c3a575b5050505050611b8b565b610c7633600854600160405180602001604052806000815250611c29565b565b6001600160a01b0381163314610ce85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016107d1565b6109268282611c5e565b60608151835114610d575760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107d1565b600083516001600160401b03811115610d8057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610da9578160200160208202803683370190505b50905060005b8451811015610e4b57610e10858281518110610ddb57634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610e0357634e487b7160e01b600052603260045260246000fd5b6020026020010151610769565b828281518110610e3057634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610e448161353a565b9050610daf565b509392505050565b600080610e5f8361149c565b1192915050565b6000805160206136c3833981519152610e7f81336118fb565b8151610a5c906005906020850190612b11565b606060058054610ea1906134d3565b80601f0160208091040260200160405190810160405280929190818152602001828054610ecd906134d3565b8015610f1a5780601f10610eef57610100808354040283529160200191610f1a565b820191906000526020600020905b815481529060010190602001808311610efd57829003601f168201915b5050505050905090565b33610f2d61117b565b6001600160a01b031614610f535760405162461bcd60e51b81526004016107d19061334d565b610c766000611cc5565b6000805160206136c3833981519152610f7681336118fb565b60005b82811015610fd057610fbe848483818110610fa457634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610fb99190612cad565b611d17565b80610fc88161353a565b915050610f79565b50505050565b60068181548110610fe657600080fd5b600091825260209091200154905081565b6000805160206136c383398151915261101081336118fb565b50600b80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60408051600c8082526101a08201909252600091829190602082016101808036833701905050905060005b600c8110156110b8578382828151811061108e57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0390921660209283029190910190910152806110b08161353a565b915050611064565b50600061111582600680548060200260200160405190810160405280929190818152602001828054801561110b57602002820191906000526020600020905b8154815260200190600101908083116110f7575b5050505050610cf2565b905060005b600c81101561117057600182828151811061114557634e487b7160e01b600052603260045260246000fd5b6020026020010151101561115e57506000949350505050565b806111688161353a565b91505061111a565b506001949350505050565b6003546001600160a01b031690565b60006000805160206136c38339815191526111a581336118fb565b600b5461010090046001600160a01b031691505b5090565b60009182526004602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600b5460ff16156112475760405162461bcd60e51b815260206004820152602360248201527f416e696d696768746965734a69675363656e653a206d696e74206973207061756044820152621cd95960ea1b60648201526084016107d1565b6112588166b1a2bc2ec5000061345a565b3410156112c65760405162461bcd60e51b815260206004820152603660248201527f416e696d696768746965734a69675363656e653a2045746865722073656e74206044820152756973206c657373207468616e2050524943452a6e756d60501b60648201526084016107d1565b600c81111561134f5760405162461bcd60e51b815260206004820152604960248201527f416e696d696768746965734a69675363656e653a20547279696e6720746f206d60448201527f696e74206d6f7265207468616e204e554d4245525f4f465f4c41594552535f5060648201526845525f50555a5a4c4560b81b608482015260a4016107d1565b33321461139f5760405162461bcd60e51b815260206004820152602a6024820152600080516020613683833981519152604482015269185b9b9bdd081b5a5b9d60b21b60648201526084016107d1565b60005b81811015610926576113b333611d17565b806113bd8161353a565b9150506113a2565b336001600160a01b03831614156114305760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107d1565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000908152600c602052604090205490565b60606114b982610e53565b6115225760405162461bcd60e51b815260206004820152603460248201527f416e696d696768746965734a69675363656e653a20555249207175657279206660448201527337b9103737b732bc34b9ba32b73a103a37b5b2b760611b60648201526084016107d1565b600061152c610e92565b604080518082019091526005815264173539b7b760d91b60208201528151919250906115675760405180602001604052806000815250611594565b8161157185611dcd565b82604051602001611584939291906130b9565b6040516020818303038152906040525b949350505050565b6000805160206136c38339815191526115b581336118fb565b600b805460ff191660011790556040517fee9b45d4bbbf616909699035be16f077b7459c8d4db74944d4e27d84f15faf349061098890339061316b565b6115fb82610993565b61160581336118fb565b610a5c8383611c5e565b6000805160206136c383398151915261162881336118fb565b6000600a541161169f5760405162461bcd60e51b815260206004820152604860248201526000805160206136e383398151915260448201527f696d756d20416e696d696768746965734a69675363656e6520676976656177616064820152677920737570706c7960c01b608482015260a4016107d1565b6001600a60008282546116b29190613479565b90915550610926905082611d17565b6001600160a01b0385163314806116dd57506116dd85336106af565b61173b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016107d1565b610a388585858585611ee6565b3361175161117b565b6001600160a01b0316146117775760405162461bcd60e51b81526004016107d19061334d565b6001600160a01b0381166117dc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107d1565b6117e581611cc5565b50565b6000805160206136c383398151915261180181336118fb565b600c600960008282546118149190613479565b9250508190555061092682600680548060200260200160405190810160405280929190818152602001828054801561186b57602002820191906000526020600020905b815481526020019060010190808311611857575b505050505060078054806020026020016040519081016040528092919081815260200182805480156118bc57602002820191906000526020600020905b8154815260200190600101908083116118a8575b505050505060405180602001604052806000815250611ffa565b60006001600160e01b03198216637965db0b60e01b148061080b575061080b82612099565b61190582826111bd565b6109265761191d816001600160a01b031660146120e9565b6119288360206120e9565b6040516020016119399291906130fc565b60408051601f198184030181529082905262461bcd60e51b82526107d191600401613263565b81518351146119805760405162461bcd60e51b81526004016107d190613382565b6001600160a01b0384166119a65760405162461bcd60e51b81526004016107d1906132be565b3360005b8451811015611aa95760008582815181106119d557634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110611a0157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a515760405162461bcd60e51b81526004016107d190613303565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611a8e90849061342e565b9250508190555050505080611aa29061353a565b90506119aa565b50846001600160a01b0316866001600160a01b0316826001600160a01b03166000805160206136638339815191528787604051611ae7929190613235565b60405180910390a4611afd8187878787876122d1565b505050505050565b611b0f82826111bd565b6109265760008281526004602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611b473390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611b9683838361243c565b60005b8251811015610fd057818181518110611bc257634e487b7160e01b600052603260045260246000fd5b6020026020010151600c6000858481518110611bee57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254611c139190613479565b90915550611c2290508161353a565b9050611b99565b611c358484848461263a565b6000838152600c602052604081208054849290611c5390849061342e565b909155505050505050565b611c6882826111bd565b156109265760008281526004602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000600a54600954611d299190613479565b11611d8a5760405162461bcd60e51b815260206004820152603f60248201526000805160206136e383398151915260448201527f696d756d20416e696d696768746965734a69675363656e6520737570706c790060648201526084016107d1565b6000611d95826126ef565b9050600160096000828254611daa9190613479565b925050819055506109268282600160405180602001604052806000815250611c29565b606081611df15750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e1b5780611e058161353a565b9150611e149050600a83613446565b9150611df5565b6000816001600160401b03811115611e4357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611e6d576020820181803683370190505b5090505b841561159457611e82600183613479565b9150611e8f600a86613555565b611e9a90603061342e565b60f81b818381518110611ebd57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611edf600a86613446565b9450611e71565b6001600160a01b038416611f0c5760405162461bcd60e51b81526004016107d1906132be565b33611f25818787611f1c8861288d565b610a388861288d565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611f665760405162461bcd60e51b81526004016107d190613303565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611fa390849061342e565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616916000805160206136a3833981519152910160405180910390a4611ff18288888888886128e6565b50505050505050565b612006848484846129b0565b60005b8351811015610a385782818151811061203257634e487b7160e01b600052603260045260246000fd5b6020026020010151600c600086848151811061205e57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612083919061342e565b9091555061209290508161353a565b9050612009565b60006001600160e01b03198216636cdb3d1360e11b14806120ca57506001600160e01b031982166303a24d0760e21b145b8061080b57506301ffc9a760e01b6001600160e01b031983161461080b565b606060006120f883600261345a565b61210390600261342e565b6001600160401b0381111561212857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612152576020820181803683370190505b509050600360fc1b8160008151811061217b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106121b857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006121dc84600261345a565b6121e790600161342e565b90505b600181111561227b576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061222957634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061224d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93612274816134bc565b90506121ea565b5083156122ca5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016107d1565b9392505050565b6001600160a01b0384163b15611afd5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612315908990899088908890889060040161317f565b602060405180830381600087803b15801561232f57600080fd5b505af192505050801561235f575060408051601f3d908101601f1916820190925261235c91810190612ff2565b60015b61240c5761236b6135ab565b806308c379a014156123a557506123806135c3565b8061238b57506123a7565b8060405162461bcd60e51b81526004016107d19190613263565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107d1565b6001600160e01b0319811663bc197c8160e01b14611ff15760405162461bcd60e51b81526004016107d190613276565b6001600160a01b03831661249e5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b60648201526084016107d1565b80518251146124bf5760405162461bcd60e51b81526004016107d190613382565b604080516020810190915260009081905233905b83518110156125ed5760008482815181106124fe57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600084838151811061252a57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156125b65760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b60648201526084016107d1565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806125e58161353a565b9150506124d3565b5060006001600160a01b0316846001600160a01b0316826001600160a01b0316600080516020613663833981519152868660405161262c929190613235565b60405180910390a450505050565b6001600160a01b0384166126605760405162461bcd60e51b81526004016107d1906133ca565b3361267181600087611f1c8861288d565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906126a190849061342e565b909155505060408051858152602081018590526001600160a01b0380881692600092918516916000805160206136a3833981519152910160405180910390a4610a38816000878787876128e6565b60008060095442612700919061342e565b6040516001600160601b0319606086901b1660208201526034016040516020818303038152906040528051906020012060001c61273d9190613446565b4360095461274b919061345a565b45612756444261342e565b612760919061342e565b61276a919061342e565b612774919061342e565b60405160200161278691815260200190565b60408051601f198184030181529190528051602090910120905060006127ad82600c612b05565b905060005b600c811015612857576127d0600c6127ca838561342e565b90612b05565b91506101a4612809600684815481106127f957634e487b7160e01b600052603260045260246000fd5b906000526020600020015461149c565b1015612845576006828154811061283057634e487b7160e01b600052603260045260246000fd5b90600052602060002001549350505050919050565b8061284f8161353a565b9150506127b2565b506006818154811061287957634e487b7160e01b600052603260045260246000fd5b906000526020600020015492505050919050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106128d557634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15611afd5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061292a90899089908890889088906004016131dd565b602060405180830381600087803b15801561294457600080fd5b505af1925050508015612974575060408051601f3d908101601f1916820190925261297191810190612ff2565b60015b6129805761236b6135ab565b6001600160e01b0319811663f23a6e6160e01b14611ff15760405162461bcd60e51b81526004016107d190613276565b6001600160a01b0384166129d65760405162461bcd60e51b81526004016107d1906133ca565b81518351146129f75760405162461bcd60e51b81526004016107d190613382565b3360005b8451811015612aaf57838181518110612a2457634e487b7160e01b600052603260045260246000fd5b6020026020010151600080878481518110612a4f57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254612a97919061342e565b90915550819050612aa78161353a565b9150506129fb565b50846001600160a01b031660006001600160a01b0316826001600160a01b03166000805160206136638339815191528787604051612aee929190613235565b60405180910390a4610a38816000878787876122d1565b60006122ca8284613555565b828054612b1d906134d3565b90600052602060002090601f016020900481019282612b3f5760008555612b85565b82601f10612b5857805160ff1916838001178555612b85565b82800160010185558215612b85579182015b82811115612b85578251825591602001919060010190612b6a565b506111b99291505b808211156111b95760008155600101612b8d565b60006001600160401b03831115612bba57612bba613595565b604051612bd1601f8501601f19166020018261350e565b809150838152848484011115612be657600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b0381168114612c1557600080fd5b919050565b600082601f830112612c2a578081fd5b81356020612c378261340b565b604051612c44828261350e565b8381528281019150858301600585901b87018401881015612c63578586fd5b855b85811015612c8157813584529284019290840190600101612c65565b5090979650505050505050565b600082601f830112612c9e578081fd5b6122ca83833560208501612ba1565b600060208284031215612cbe578081fd5b6122ca82612bfe565b60008060408385031215612cd9578081fd5b612ce283612bfe565b9150612cf060208401612bfe565b90509250929050565b600080600080600060a08688031215612d10578081fd5b612d1986612bfe565b9450612d2760208701612bfe565b935060408601356001600160401b0380821115612d42578283fd5b612d4e89838a01612c1a565b94506060880135915080821115612d63578283fd5b612d6f89838a01612c1a565b93506080880135915080821115612d84578283fd5b50612d9188828901612c8e565b9150509295509295909350565b600080600080600060a08688031215612db5578081fd5b612dbe86612bfe565b9450612dcc60208701612bfe565b9350604086013592506060860135915060808601356001600160401b03811115612df4578182fd5b612d9188828901612c8e565b60008060408385031215612e12578182fd5b612e1b83612bfe565b915060208301358015158114612e2f578182fd5b809150509250929050565b60008060408385031215612e4c578182fd5b612e5583612bfe565b946020939093013593505050565b60008060208385031215612e75578182fd5b82356001600160401b0380821115612e8b578384fd5b818501915085601f830112612e9e578384fd5b813581811115612eac578485fd5b8660208260051b8501011115612ec0578485fd5b60209290920196919550909350505050565b60008060408385031215612ee4578182fd5b82356001600160401b0380821115612efa578384fd5b818501915085601f830112612f0d578384fd5b81356020612f1a8261340b565b604051612f27828261350e565b8381528281019150858301600585901b870184018b1015612f46578889fd5b8896505b84871015612f6f57612f5b81612bfe565b835260019690960195918301918301612f4a565b5096505086013592505080821115612f85578283fd5b50612f9285828601612c1a565b9150509250929050565b600060208284031215612fad578081fd5b5035919050565b60008060408385031215612fc6578182fd5b82359150612cf060208401612bfe565b600060208284031215612fe7578081fd5b81356122ca8161364c565b600060208284031215613003578081fd5b81516122ca8161364c565b60006020828403121561301f578081fd5b81356001600160401b03811115613034578182fd5b8201601f81018413613044578182fd5b61159484823560208401612ba1565b6000815180845260208085019450808401835b8381101561308257815187529582019590820190600101613066565b509495945050505050565b600081518084526130a5816020860160208601613490565b601f01601f19169290920160200192915050565b600084516130cb818460208901613490565b8451908301906130df818360208901613490565b84519101906130f2818360208801613490565b0195945050505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b81526000835161312e816017850160208801613490565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161315f816028840160208801613490565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0386811682528516602082015260a0604082018190526000906131ab90830186613053565b82810360608401526131bd8186613053565b905082810360808401526131d1818561308d565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906132179083018461308d565b979650505050505050565b6020815260006122ca6020830184613053565b6040815260006132486040830185613053565b828103602084015261325a8185613053565b95945050505050565b6020815260006122ca602083018461308d565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60006001600160401b0382111561342457613424613595565b5060051b60200190565b6000821982111561344157613441613569565b500190565b6000826134555761345561357f565b500490565b600081600019048311821515161561347457613474613569565b500290565b60008282101561348b5761348b613569565b500390565b60005b838110156134ab578181015183820152602001613493565b83811115610fd05750506000910152565b6000816134cb576134cb613569565b506000190190565b600181811c908216806134e757607f821691505b6020821081141561350857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b038111828210171561353357613533613595565b6040525050565b600060001982141561354e5761354e613569565b5060010190565b6000826135645761356461357f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156135c057600481823e5160e01c5b90565b600060443d10156135d15790565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171561360057505050505090565b82850191508151818111156136185750505050505090565b843d87010160208285010111156136325750505050505090565b6136416020828601018761350e565b509095945050505050565b6001600160e01b0319811681146117e557600080fdfe4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb416e696d696768746965734a69675363656e653a20636f6e7472616374732063c3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6286024e89529ee90561d266fe70772355cdf7be9c9e97e3ac6b5d90ddbc853365416e696d696768746965734a69675363656e653a2045786365656473206d6178a26469706673582212209b2df466e250404898fd4b5bf5d0ce18d726378358f62b617fa0b77e6c7dfd3164736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000600000000000000000000000008dc2d69e41c5871bc5b14984c3e60ded801ded74000000000000000000000000d739429bfbdef8f25280bee993c6f5fb2e884a3b0000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d52665747704268506a52586f32454d7946524d3263325446554e4c52507077653169635134526148596438682f00000000000000000000

-----Decoded View---------------
Arg [0] : uri_ (string): ipfs://QmRfWGpBhPjRXo2EMyFRM2c2TFUNLRPpwe1icQ4RaHYd8h/
Arg [1] : lolabs_splitter_ (address): 0x8dc2d69e41C5871Bc5b14984C3e60ded801DeD74
Arg [2] : white_listed (address): 0xD739429bfBDEF8F25280bee993c6F5FB2E884A3b

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000008dc2d69e41c5871bc5b14984c3e60ded801ded74
Arg [2] : 000000000000000000000000d739429bfbdef8f25280bee993c6f5fb2e884a3b
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [4] : 697066733a2f2f516d52665747704268506a52586f32454d7946524d32633254
Arg [5] : 46554e4c52507077653169635134526148596438682f00000000000000000000


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

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