ETH Price: $3,430.68 (+3.94%)

Token

 

Overview

Max Total Supply

0

Holders

508

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
omr.eth
0x88c9ada911e01f3a6879a8e6066d2da45ce8bf1b
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:
AniftyERC1155

Compiler Version
v0.7.3+commit.9bfce1f6

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : AniftyERC1155.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "./util/ERC1155Pausable.sol";
import "./util/ERC1155.sol";
import "./AniftyERC20.sol";

contract AniftyERC1155 is AccessControl, ERC1155Pausable {
    using Counters for Counters.Counter;
    Counters.Counter private _adminTokenIds;
    Counters.Counter private _tokenIds;

    // Mapping of whitelisted addresses, addresses include lootbox contracts
    mapping(address => bool) public whitelist;
    mapping (uint256 => address) public creators;

    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");

    event TokenERC1155Mint(
        address account,
        uint256 id,
        uint256 amount,
        uint256 timestamp,
        string name,
        string creatorName,
        string description,
        string mediaUri
    );
    event TokenERC1155MintBatch(
        address to,
        uint256[] ids,
        uint256[] amounts,
        uint256 timestamp,
        string[] name,
        string[] creatorName,
        string[] description,
        string[] mediaUri
    );

    constructor(address _admin,
        string memory _uri)
        public
        ERC1155(_uri)
    {
        _tokenIds._value = 1000000;
        _setRoleAdmin(DEFAULT_ADMIN_ROLE, ADMIN_ROLE);
        _setupRole(ADMIN_ROLE, _admin);
        _setupRole(PAUSER_ROLE, _admin);
    }

    modifier onlyWhitelist() {
        require(
            whitelist[msg.sender] == true,
            "Caller is not from a whitelist address"
        );
        _;
    }

    modifier onlyAdmin() {
        require(
            hasRole(ADMIN_ROLE, _msgSender()),
            "Caller must be admin"
        );
        _;
    }

    function pause() public {
        require(
            hasRole(PAUSER_ROLE, _msgSender()),
            "AniftyERC1155: must have pauser role to pause"
        );
        _pause();
    }

    function unpause() public {
        require(
            hasRole(PAUSER_ROLE, _msgSender()),
            "AniftyERC1155: must have pauser role to unpause"
        );
        _unpause();
    }

    function mint(
        uint256 amount,
        string memory name,
        string memory creatorName,
        string memory description,
        string memory mediaUri,
        bytes calldata data
    ) external whenNotPaused returns(uint256) {
        _tokenIds.increment();
        uint256 tokenId = _tokenIds.current();
        creators[tokenId] = msg.sender;
        _mint(msg.sender, tokenId, amount, data);
        emit TokenERC1155Mint(
            msg.sender,
            tokenId,
            amount,
            block.timestamp,
            name,
            creatorName,
            description,
            mediaUri
        );
        return tokenId;
    }

    function mintBatch(
        uint256[] memory amounts,
        string[] memory names,
        string[] memory creatorNames,
        string[] memory descriptions,
        string[] memory mediaUris,
        bytes calldata data
    ) external whenNotPaused returns(uint256[] memory) {
        require(amounts.length == names.length && amounts.length == creatorNames.length && amounts.length == descriptions.length && amounts.length == mediaUris.length, "AniftyERC1155: Incorrect parameter length");
        uint256[] memory tokenIds = new uint256[](amounts.length);
        for (uint256 j = 0; j < amounts.length; j++) {
            _tokenIds.increment();
            tokenIds[j] = _tokenIds.current();
            creators[tokenIds[j]] = msg.sender;
        }
        _mintBatch(msg.sender, tokenIds, amounts, data);
        emit TokenERC1155MintBatch(
            msg.sender,
            tokenIds,
            amounts,
            block.timestamp,
            names,
            creatorNames,
            descriptions,
            mediaUris
        );
        return tokenIds;
    }

    function whitelistMint(
        uint256 amount,
        string memory name,
        string memory creatorName,
        string memory description,
        string memory mediaUri,
        bytes calldata data
    ) external whenNotPaused onlyWhitelist returns(uint256) {
        _adminTokenIds.increment();
        uint256 tokenId = _adminTokenIds.current();
        creators[tokenId] = msg.sender;
        _mint(msg.sender, tokenId, amount, data);
        emit TokenERC1155Mint(
            msg.sender,
            tokenId,
            amount,
            block.timestamp,
            name,
            creatorName,
            description,
            mediaUri
        );
        return tokenId;
    }

    function whitelistMintBatch(
        uint256[] memory amounts,
        string[] memory names,
        string[] memory creatorNames,
        string[] memory descriptions,
        string[] memory mediaUris,
        bytes calldata data
    ) external whenNotPaused onlyWhitelist returns(uint256[] memory) {
        require(amounts.length == names.length && amounts.length == creatorNames.length && amounts.length == descriptions.length && amounts.length == mediaUris.length, "AniftyERC1155: Incorrect parameter length");
        uint256[] memory tokenIds = new uint256[](amounts.length);
        for (uint256 j = 0; j < amounts.length; j++) {
            _adminTokenIds.increment();
            tokenIds[j] = _adminTokenIds.current();
            creators[tokenIds[j]] = msg.sender;
        }
        _mintBatch(msg.sender, tokenIds, amounts, data);
        emit TokenERC1155MintBatch(
            msg.sender,
            tokenIds,
            amounts,
            block.timestamp,
            names,
            creatorNames,
            descriptions,
            mediaUris
        );
        return tokenIds;
    }

    function burn(uint256 _id, uint256 _amount) external whenNotPaused {
        _burn(msg.sender, _id, _amount);
    }

    function burnBatch(uint256[] memory _ids, uint256[] memory _amounts) external whenNotPaused {
        _burnBatch(msg.sender, _ids, _amounts);
    }

    function setURI(string memory newuri) external onlyAdmin {
        _setURI(newuri);
    }

    function removeWhitelistAddress(address[] memory _whitelistAddresses)
        external
        onlyAdmin
    {
        for (uint256 i = 0; i < _whitelistAddresses.length; i++) {
            whitelist[_whitelistAddresses[i]] = false;
        }
    }

    function addWhitelistAddress(address[] memory _whitelistAddresses)
        external
        onlyAdmin
    {
        for (uint256 i = 0; i < _whitelistAddresses.length; i++) {
            whitelist[_whitelistAddresses[i]] = true;
        }
    }
}

File 2 of 20 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../math/SafeMath.sol";

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
 * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
 * directly accessed.
 */
library Counters {
    using SafeMath for uint256;

    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

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

    function increment(Counter storage counter) internal {
        // The {SafeMath} overflow check can be skipped here, see the comment at the top
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}

File 3 of 20 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * 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 {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @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 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 {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _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 {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _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 {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

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

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

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

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

File 4 of 20 : ERC1155Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./ERC1155.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";

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

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

File 5 of 20 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155MetadataURI.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/introspection/ERC165.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./Strings.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 SafeMath for uint256;
    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;

    /*
     *     bytes4(keccak256('balanceOf(address,uint256)')) == 0x00fdd58e
     *     bytes4(keccak256('balanceOfBatch(address[],uint256[])')) == 0x4e1273f4
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,uint256,bytes)')) == 0xf242432a
     *     bytes4(keccak256('safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)')) == 0x2eb2c2d6
     *
     *     => 0x00fdd58e ^ 0x4e1273f4 ^ 0xa22cb465 ^
     *        0xe985e9c5 ^ 0xf242432a ^ 0x2eb2c2d6 == 0xd9b67a26
     */
    bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26;

    /*
     *     bytes4(keccak256('uri(uint256)')) == 0x0e89341c
     */
    bytes4 private constant _INTERFACE_ID_ERC1155_METADATA_URI = 0x0e89341c;

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

        // register the supported interfaces to conform to ERC1155 via ERC165
        _registerInterface(_INTERFACE_ID_ERC1155);

        // register the supported interfaces to conform to ERC1155MetadataURI via ERC165
        _registerInterface(_INTERFACE_ID_ERC1155_METADATA_URI);
    }

    /**
     * @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 _id) external view virtual override returns (string memory) {
      return Strings.strConcat(_uri, Strings.uint2str(_id));
    }

    /**
     * @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(to != address(0), "ERC1155: transfer to the zero address");
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        address operator = _msgSender();

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

        _balances[id][from] = _balances[id][from].sub(amount, "ERC1155: insufficient balance for transfer");
        _balances[id][to] = _balances[id][to].add(amount);

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

        _doSafeTransferAcceptanceCheck(operator, 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(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );

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

            _balances[id][from] = _balances[id][from].sub(
                amount,
                "ERC1155: insufficient balance for transfer"
            );
            _balances[id][to] = _balances[id][to].add(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] = _balances[id][account].add(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 (uint i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] = amounts[i].add(_balances[ids[i]][to]);
        }

        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), "");

        _balances[id][account] = _balances[id][account].sub(
            amount,
            "ERC1155: burn amount exceeds balance"
        );

        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 (uint i = 0; i < ids.length; i++) {
            _balances[ids[i]][account] = _balances[ids[i]][account].sub(
                amounts[i],
                "ERC1155: burn amount exceeds balance"
            );
        }

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

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

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

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

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

        return array;
    }
}

File 6 of 20 : AniftyERC20.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.7.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract AniftyERC20 is ERC20, Ownable {
  using SafeMath for uint256;
  mapping(address => bool) public whitelist;

  constructor(uint256 initialSupply) public ERC20("Anifty", "ANI") { 
    _mint(msg.sender, initialSupply*10**decimals());
  }

  function burn(uint256 _amount) public {
    _burn(msg.sender, _amount);
  }

  function burn(address _account, uint256 _amount) public onlyWhitelist {
    _burn(_account, _amount);
  }

  function removeWhitelistAddress(address[] memory _whitelistAddresses) public onlyOwner {
    for (uint256 i = 0; i < _whitelistAddresses.length; i++) {
    whitelist[_whitelistAddresses[i]] = false;
    }
  }

  function addWhitelistAddress(address[] memory _whitelistAddresses) public onlyOwner {
    for (uint256 i = 0; i < _whitelistAddresses.length; i++) {
    whitelist[_whitelistAddresses[i]] = true;
    }
  }

  // Only whitelist can burn, e.g Anifty Lootbox contract
  modifier onlyWhitelist() {
    require(whitelist[msg.sender] == true, "Caller is not from a whitelist address");
    _;
  }
}

File 7 of 20 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
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) {
        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) {
        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) {
        // 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) {
        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) {
        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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        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) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @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. 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) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        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) {
        require(b > 0, "SafeMath: modulo by zero");
        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) {
        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.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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) {
        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) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 8 of 20 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

    struct Set {
        // Storage of set values
        bytes32[] _values;

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

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

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

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

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

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

pragma solidity >=0.6.2 <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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 10 of 20 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

import "./Context.sol";

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

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

    bool private _paused;

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

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

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

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

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

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

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

pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 13 of 20 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <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 14 of 20 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

/**
 * _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 15 of 20 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

File 16 of 20 : Strings.sol
pragma solidity ^0.7.0;

library Strings {
  function strConcat(string memory _a, string memory _b, string memory _c, string memory _d, string memory _e) internal pure returns (string memory) {
      bytes memory _ba = bytes(_a);
      bytes memory _bb = bytes(_b);
      bytes memory _bc = bytes(_c);
      bytes memory _bd = bytes(_d);
      bytes memory _be = bytes(_e);
      string memory abcde = new string(_ba.length + _bb.length + _bc.length + _bd.length + _be.length);
      bytes memory babcde = bytes(abcde);
      uint k = 0;
      for (uint i = 0; i < _ba.length; i++) babcde[k++] = _ba[i];
      for (uint i = 0; i < _bb.length; i++) babcde[k++] = _bb[i];
      for (uint i = 0; i < _bc.length; i++) babcde[k++] = _bc[i];
      for (uint i = 0; i < _bd.length; i++) babcde[k++] = _bd[i];
      for (uint i = 0; i < _be.length; i++) babcde[k++] = _be[i];
      return string(babcde);
    }

    function strConcat(string memory _a, string memory _b, string memory _c, string memory _d) internal pure returns (string memory) {
        return strConcat(_a, _b, _c, _d, "");
    }

    function strConcat(string memory _a, string memory _b, string memory _c) internal pure returns (string memory) {
        return strConcat(_a, _b, _c, "", "");
    }

    function strConcat(string memory _a, string memory _b) internal pure returns (string memory) {
        return strConcat(_a, _b, "", "", "");
    }

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

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

pragma solidity >=0.6.0 <0.8.0;

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

File 18 of 20 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../../utils/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

File 19 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 20 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"string","name":"_uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"creatorName","type":"string"},{"indexed":false,"internalType":"string","name":"description","type":"string"},{"indexed":false,"internalType":"string","name":"mediaUri","type":"string"}],"name":"TokenERC1155Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"string[]","name":"name","type":"string[]"},{"indexed":false,"internalType":"string[]","name":"creatorName","type":"string[]"},{"indexed":false,"internalType":"string[]","name":"description","type":"string[]"},{"indexed":false,"internalType":"string[]","name":"mediaUri","type":"string[]"}],"name":"TokenERC1155MintBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelistAddresses","type":"address[]"}],"name":"addWhitelistAddress","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":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"creators","outputs":[{"internalType":"address","name":"","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"creatorName","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"mediaUri","type":"string"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"string[]","name":"names","type":"string[]"},{"internalType":"string[]","name":"creatorNames","type":"string[]"},{"internalType":"string[]","name":"descriptions","type":"string[]"},{"internalType":"string[]","name":"mediaUris","type":"string[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelistAddresses","type":"address[]"}],"name":"removeWhitelistAddress","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":[{"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":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"creatorName","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"mediaUri","type":"string"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"whitelistMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"string[]","name":"names","type":"string[]"},{"internalType":"string[]","name":"creatorNames","type":"string[]"},{"internalType":"string[]","name":"descriptions","type":"string[]"},{"internalType":"string[]","name":"mediaUris","type":"string[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"whitelistMintBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200610b3803806200610b833981810160405281019062000037919062000560565b80620000506301ffc9a760e01b6200015b60201b60201c565b62000061816200023360201b60201c565b6200007963d9b67a2660e01b6200015b60201b60201c565b62000091630e89341c60e01b6200015b60201b60201c565b506000600560006101000a81548160ff021916908315150217905550620f4240600760000181905550620000ef6000801b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756200024f60201b60201c565b620001217fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177583620002b160201b60201c565b620001537f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a83620002b160201b60201c565b50506200071c565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415620001c7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001be90620005fc565b60405180910390fd5b6001806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b80600490805190602001906200024b92919062000447565b5050565b8060008084815260200190815260200160002060020154837fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff60405160405180910390a480600080848152602001908152602001600020600201819055505050565b620002c38282620002c760201b60201c565b5050565b620002f5816000808581526020019081526020016000206000016200036a60201b620021cd1790919060201c565b1562000366576200030b620003a260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006200039a836000018373ffffffffffffffffffffffffffffffffffffffff1660001b620003aa60201b60201c565b905092915050565b600033905090565b6000620003be83836200042460201b60201c565b620004195782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506200041e565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200048a57805160ff1916838001178555620004bb565b82800160010185558215620004bb579182015b82811115620004ba5782518255916020019190600101906200049d565b5b509050620004ca9190620004ce565b5090565b5b80821115620004e9576000816000905550600101620004cf565b5090565b600081519050620004fe8162000702565b92915050565b600082601f8301126200051657600080fd5b81516200052d620005278262000652565b6200061e565b915080825260208301602083018583830111156200054a57600080fd5b62000557838284620006ca565b50505092915050565b600080604083850312156200057457600080fd5b60006200058485828601620004ed565b925050602083015167ffffffffffffffff811115620005a257600080fd5b620005b08582860162000504565b9150509250929050565b6000620005c9601c8362000685565b91507f4552433136353a20696e76616c696420696e74657266616365206964000000006000830152602082019050919050565b600060208201905081810360008301526200061781620005ba565b9050919050565b6000604051905081810181811067ffffffffffffffff8211171562000648576200064762000700565b5b8060405250919050565b600067ffffffffffffffff82111562000670576200066f62000700565b5b601f19601f8301169050602081019050919050565b600082825260208201905092915050565b6000620006a382620006aa565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b83811015620006ea578082015181840152602081019050620006cd565b83811115620006fa576000848401525b50505050565bfe5b6200070d8162000696565b81146200071957600080fd5b50565b6159df806200072c6000396000f3fe608060405234801561001057600080fd5b50600436106101ef5760003560e01c80638456cb591161010f578063c1adb02f116100a2578063d547741f11610071578063d547741f146105fe578063e63ab1e91461061a578063e985e9c514610638578063f242432a14610668576101ef565b8063c1adb02f1461053e578063c2ecc7e11461056e578063ca15c8731461059e578063cd53d08e146105ce576101ef565b80639bf5bf96116100de5780639bf5bf96146104cc578063a217fddf146104e8578063a22cb46514610506578063b390c0ab14610522576101ef565b80638456cb59146104325780639010d07c1461043c57806391d148541461046c5780639b19251a1461049c576101ef565b80632eb2c2d6116101875780634e1273f4116101565780634e1273f4146103aa5780635c975abb146103da57806375b238fc146103f857806383ca4b6f14610416576101ef565b80632eb2c2d61461034c5780632f2ff15d1461036857806336568abe146103845780633f4ba83a146103a0576101ef565b806313916a12116101c357806313916a12146102a057806314912ae9146102d0578063248a9ca3146103005780632b1dd8e514610330576101ef565b8062fdd58e146101f457806301ffc9a71461022457806302fe5305146102545780630e89341c14610270575b600080fd5b61020e60048036038101906102099190613f0d565b610684565b60405161021b9190615508565b60405180910390f35b61023e60048036038101906102399190614222565b61074e565b60405161024b91906151b0565b60405180910390f35b61026e60048036038101906102699190614274565b6107b6565b005b61028a600480360381019061028591906142b5565b610832565b60405161029791906151e6565b60405180910390f35b6102ba60048036038101906102b591906142de565b6108e7565b6040516102c79190615508565b60405180910390f35b6102ea60048036038101906102e591906142de565b610ad2565b6040516102f79190615508565b60405180910390f35b61031a60048036038101906103159190614181565b610c2a565b60405161032791906151cb565b60405180910390f35b61034a60048036038101906103459190613f49565b610c49565b005b61036660048036038101906103619190613d83565b610d41565b005b610382600480360381019061037d91906141aa565b611102565b005b61039e600480360381019061039991906141aa565b611175565b005b6103a86111f8565b005b6103c460048036038101906103bf9190613f8a565b611272565b6040516103d19190615157565b60405180910390f35b6103e261136e565b6040516103ef91906151b0565b60405180910390f35b610400611385565b60405161040d91906151cb565b60405180910390f35b610430600480360381019061042b9190614115565b6113a9565b005b61043a611400565b005b610456600480360381019061045191906141e6565b61147a565b6040516104639190614f1d565b60405180910390f35b610486600480360381019061048191906141aa565b6114ab565b60405161049391906151b0565b60405180910390f35b6104b660048036038101906104b19190613d1e565b6114dc565b6040516104c391906151b0565b60405180910390f35b6104e660048036038101906104e19190613f49565b6114fc565b005b6104f06115f4565b6040516104fd91906151cb565b60405180910390f35b610520600480360381019061051b9190613ed1565b6115fb565b005b61053c600480360381019061053791906143e5565b61177c565b005b61055860048036038101906105539190613ff6565b6117d3565b6040516105659190615157565b60405180910390f35b61058860048036038101906105839190613ff6565b611a23565b6040516105959190615157565b60405180910390f35b6105b860048036038101906105b39190614181565b611d06565b6040516105c59190615508565b60405180910390f35b6105e860048036038101906105e391906142b5565b611d2c565b6040516105f59190614f1d565b60405180910390f35b610618600480360381019061061391906141aa565b611d5f565b005b610622611dd2565b60405161062f91906151cb565b60405180910390f35b610652600480360381019061064d9190613d47565b611df6565b60405161065f91906151b0565b60405180910390f35b610682600480360381019061067d9190613e42565b611e8a565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156106f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ec906152c8565b60405180910390fd5b6002600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600060016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b6107e77fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756107e26121fd565b6114ab565b610826576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081d90615428565b60405180910390fd5b61082f81612205565b50565b60606108e060048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108cd5780601f106108a2576101008083540402835291602001916108cd565b820191906000526020600020905b8154815290600101906020018083116108b057829003601f168201915b50505050506108db8461221f565b612363565b9050919050565b60006108f161136e565b15610931576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092890615368565b60405180910390fd5b60011515600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146109c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bb906152a8565b60405180910390fd5b6109ce60066123a7565b60006109da60066123bd565b9050336009600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610a7e33828b87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506123cb565b7fb486d620dada6b35c31016fb410006daa5369f4f47d5bb6d086bf3a11771aacd33828b428c8c8c8c604051610abb989796959493929190614ffb565b60405180910390a180915050979650505050505050565b6000610adc61136e565b15610b1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1390615368565b60405180910390fd5b610b2660076123a7565b6000610b3260076123bd565b9050336009600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610bd633828b87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506123cb565b7fb486d620dada6b35c31016fb410006daa5369f4f47d5bb6d086bf3a11771aacd33828b428c8c8c8c604051610c13989796959493929190614ffb565b60405180910390a180915050979650505050505050565b6000806000838152602001908152602001600020600201549050919050565b610c7a7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610c756121fd565b6114ab565b610cb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb090615428565b60405180910390fd5b60005b8151811015610d3d57600160086000848481518110610cd757fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080600101915050610cbc565b5050565b8151835114610d85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7c906154a8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610df5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dec90615388565b60405180910390fd5b610dfd6121fd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610e435750610e4285610e3d6121fd565b611df6565b5b610e82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e79906153a8565b60405180910390fd5b6000610e8c6121fd565b9050610e9c8187878787876125b2565b60005b845181101561106d576000858281518110610eb657fe5b602002602001015190506000858381518110610ece57fe5b60200260200101519050610f55816040518060600160405280602a8152602001615980602a91396002600086815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126109092919063ffffffff16565b6002600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061100c816002600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461266590919063ffffffff16565b6002600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050806001019050610e9f565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516110e4929190615179565b60405180910390a46110fa8187878787876126ba565b505050505050565b611128600080848152602001908152602001600020600201546111236121fd565b6114ab565b611167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115e90615268565b60405180910390fd5b611171828261288a565b5050565b61117d6121fd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146111ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e1906154e8565b60405180910390fd5b6111f4828261291d565b5050565b6112297f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6112246121fd565b6114ab565b611268576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125f90615448565b60405180910390fd5b6112706129b0565b565b606081518351146112b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112af90615488565b60405180910390fd5b6060835167ffffffffffffffff811180156112d257600080fd5b506040519080825280602002602001820160405280156113015781602001602082028036833780820191505090505b50905060005b84518110156113635761134085828151811061131f57fe5b602002602001015185838151811061133357fe5b6020026020010151610684565b82828151811061134c57fe5b602002602001018181525050806001019050611307565b508091505092915050565b6000600560009054906101000a900460ff16905090565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6113b161136e565b156113f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e890615368565b60405180910390fd5b6113fc338383612a52565b5050565b6114317f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61142c6121fd565b6114ab565b611470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146790615408565b60405180910390fd5b611478612cd9565b565b60006114a382600080868152602001908152602001600020600001612d7c90919063ffffffff16565b905092915050565b60006114d482600080868152602001908152602001600020600001612d9690919063ffffffff16565b905092915050565b60086020528060005260406000206000915054906101000a900460ff1681565b61152d7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756115286121fd565b6114ab565b61156c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156390615428565b60405180910390fd5b60005b81518110156115f05760006008600084848151811061158a57fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550808060010191505061156f565b5050565b6000801b81565b8173ffffffffffffffffffffffffffffffffffffffff1661161a6121fd565b73ffffffffffffffffffffffffffffffffffffffff161415611671576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166890615468565b60405180910390fd5b806003600061167e6121fd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661172b6121fd565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161177091906151b0565b60405180910390a35050565b61178461136e565b156117c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117bb90615368565b60405180910390fd5b6117cf338383612dc6565b5050565b60606117dd61136e565b1561181d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181490615368565b60405180910390fd5b8651885114801561182f575085518851145b801561183c575084518851145b8015611849575083518851145b611888576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187f906153c8565b60405180910390fd5b6060885167ffffffffffffffff811180156118a257600080fd5b506040519080825280602002602001820160405280156118d15781602001602082028036833780820191505090505b50905060005b895181101561197e576118ea60076123a7565b6118f460076123bd565b82828151811061190057fe5b602002602001018181525050336009600084848151811061191d57fe5b6020026020010151815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080806001019150506118d7565b506119cf33828b87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612fc6565b7f627a3908bf2de5b122eb91d7e06daaea1755eb5e2e51e0057e9f41d66206bb4633828b428c8c8c8c604051611a0c989796959493929190614f53565b60405180910390a180915050979650505050505050565b6060611a2d61136e565b15611a6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6490615368565b60405180910390fd5b60011515600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611b00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af7906152a8565b60405180910390fd5b86518851148015611b12575085518851145b8015611b1f575084518851145b8015611b2c575083518851145b611b6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b62906153c8565b60405180910390fd5b6060885167ffffffffffffffff81118015611b8557600080fd5b50604051908082528060200260200182016040528015611bb45781602001602082028036833780820191505090505b50905060005b8951811015611c6157611bcd60066123a7565b611bd760066123bd565b828281518110611be357fe5b6020026020010181815250503360096000848481518110611c0057fe5b6020026020010151815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508080600101915050611bba565b50611cb233828b87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612fc6565b7f627a3908bf2de5b122eb91d7e06daaea1755eb5e2e51e0057e9f41d66206bb4633828b428c8c8c8c604051611cef989796959493929190614f53565b60405180910390a180915050979650505050505050565b6000611d25600080848152602001908152602001600020600001613234565b9050919050565b60096020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611d8560008084815260200190815260200160002060020154611d806121fd565b6114ab565b611dc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbb90615348565b60405180910390fd5b611dce828261291d565b5050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611efa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef190615388565b60405180910390fd5b611f026121fd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611f485750611f4785611f426121fd565b611df6565b5b611f87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7e90615328565b60405180910390fd5b6000611f916121fd565b9050611fb1818787611fa288613249565b611fab88613249565b876125b2565b61202e836040518060600160405280602a8152602001615980602a91396002600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126109092919063ffffffff16565b6002600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506120e5836002600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461266590919063ffffffff16565b6002600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516121af929190615523565b60405180910390a46121c58187878787876132b9565b505050505050565b60006121f5836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613489565b905092915050565b600033905090565b806004908051906020019061221b929190613997565b5050565b60606000821415612267576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061235e565b600082905060005b60008214612291578080600101915050600a828161228957fe5b04915061226f565b60608167ffffffffffffffff811180156122aa57600080fd5b506040519080825280601f01601f1916602001820160405280156122dd5781602001600182028036833780820191505090505b50905060006001830390505b6000861461235657600a86816122fb57fe5b0660300160f81b8282806001900393508151811061231557fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a868161234e57fe5b0495506122e9565b819450505050505b919050565b606061239f83836040518060200160405280600081525060405180602001604052806000815250604051806020016040528060008152506134f9565b905092915050565b6001816000016000828254019250508190555050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561243b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612432906154c8565b60405180910390fd5b60006124456121fd565b90506124668160008761245788613249565b61246088613249565b876125b2565b6124c9836002600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461266590919063ffffffff16565b6002600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051612594929190615523565b60405180910390a46125ab816000878787876132b9565b5050505050565b6125c08686868686866137c3565b6125c861136e565b15612608576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ff90615308565b60405180910390fd5b505050505050565b6000838311158290612658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264f91906151e6565b60405180910390fd5b5082840390509392505050565b6000808284019050838110156126b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126a7906152e8565b60405180910390fd5b8091505092915050565b6126d98473ffffffffffffffffffffffffffffffffffffffff166137cb565b15612882578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b815260040161271f959493929190615095565b602060405180830381600087803b15801561273957600080fd5b505af192505050801561276a57506040513d601f19601f82011682018060405250810190612767919061424b565b60015b6127f957612776615832565b8061278157506127be565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b591906151e6565b60405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f090615208565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612880576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287790615248565b60405180910390fd5b505b505050505050565b6128b1816000808581526020019081526020016000206000016121cd90919063ffffffff16565b15612919576128be6121fd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b612944816000808581526020019081526020016000206000016137de90919063ffffffff16565b156129ac576129516121fd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6129b861136e565b6129f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ee90615288565b60405180910390fd5b6000600560006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612a3b6121fd565b604051612a489190614f38565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ac2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab9906153e8565b60405180910390fd5b8051825114612b06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612afd906154a8565b60405180910390fd5b6000612b106121fd565b9050612b30818560008686604051806020016040528060008152506125b2565b60005b8351811015612c5357612bdf838281518110612b4b57fe5b602002602001015160405180606001604052806024815260200161595c6024913960026000888681518110612b7c57fe5b6020026020010151815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126109092919063ffffffff16565b60026000868481518110612bef57fe5b6020026020010151815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080600101915050612b33565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612ccb929190615179565b60405180910390a450505050565b612ce161136e565b15612d21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1890615368565b60405180910390fd5b6001600560006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d656121fd565b604051612d729190614f38565b60405180910390a1565b6000612d8b836000018361380e565b60001c905092915050565b6000612dbe836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61387b565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612e36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2d906153e8565b60405180910390fd5b6000612e406121fd565b9050612e7081856000612e5287613249565b612e5b87613249565b604051806020016040528060008152506125b2565b612eed8260405180606001604052806024815260200161595c602491396002600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126109092919063ffffffff16565b6002600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628686604051612fb8929190615523565b60405180910390a450505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613036576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302d906154c8565b60405180910390fd5b815183511461307a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613071906154a8565b60405180910390fd5b60006130846121fd565b9050613095816000878787876125b2565b60005b845181101561319e5761312a600260008784815181106130b457fe5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485838151811061311457fe5b602002602001015161266590919063ffffffff16565b6002600087848151811061313a57fe5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080600101915050613098565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613216929190615179565b60405180910390a461322d816000878787876126ba565b5050505050565b60006132428260000161389e565b9050919050565b606080600167ffffffffffffffff8111801561326457600080fd5b506040519080825280602002602001820160405280156132935781602001602082028036833780820191505090505b50905082816000815181106132a457fe5b60200260200101818152505080915050919050565b6132d88473ffffffffffffffffffffffffffffffffffffffff166137cb565b15613481578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b815260040161331e9594939291906150fd565b602060405180830381600087803b15801561333857600080fd5b505af192505050801561336957506040513d601f19601f82011682018060405250810190613366919061424b565b60015b6133f857613375615832565b8061338057506133bd565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133b491906151e6565b60405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133ef90615208565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461347f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347690615248565b60405180910390fd5b505b505050505050565b6000613495838361387b565b6134ee5782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506134f3565b600090505b92915050565b60608086905060608690506060869050606086905060608690506060815183518551875189510101010167ffffffffffffffff8111801561353957600080fd5b506040519080825280601f01601f19166020018201604052801561356c5781602001600182028036833780820191505090505b50905060608190506000805b88518110156135e65788818151811061358d57fe5b602001015160f81c60f81b8383806001019450815181106135aa57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050613578565b5060005b8751811015613658578781815181106135ff57fe5b602001015160f81c60f81b83838060010194508151811061361c57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506135ea565b5060005b86518110156136ca5786818151811061367157fe5b602001015160f81c60f81b83838060010194508151811061368e57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350808060010191505061365c565b5060005b855181101561373c578581815181106136e357fe5b602001015160f81c60f81b83838060010194508151811061370057fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506136ce565b5060005b84518110156137ae5784818151811061375557fe5b602001015160f81c60f81b83838060010194508151811061377257fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050613740565b50819850505050505050505095945050505050565b505050505050565b600080823b905060008111915050919050565b6000613806836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6138af565b905092915050565b600081836000018054905011613859576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161385090615228565b60405180910390fd5b82600001828154811061386857fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b6000808360010160008481526020019081526020016000205490506000811461398b57600060018203905060006001866000018054905003905060008660000182815481106138fa57fe5b906000526020600020015490508087600001848154811061391757fe5b906000526020600020018190555060018301876001016000838152602001908152602001600020819055508660000180548061394f57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050613991565b60009150505b92915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106139d857805160ff1916838001178555613a06565b82800160010185558215613a06579182015b82811115613a055782518255916020019190600101906139ea565b5b509050613a139190613a17565b5090565b5b80821115613a30576000816000905550600101613a18565b5090565b600081359050613a43816158e8565b92915050565b600082601f830112613a5a57600080fd5b8135613a6d613a688261557d565b61554c565b91508181835260208401935060208101905083856020840282011115613a9257600080fd5b60005b83811015613ac25781613aa88882613a34565b845260208401935060208301925050600181019050613a95565b5050505092915050565b600082601f830112613add57600080fd5b8135613af0613aeb826155a9565b61554c565b9150818183526020840193506020810190508360005b83811015613b365781358601613b1c8882613cb5565b845260208401935060208301925050600181019050613b06565b5050505092915050565b600082601f830112613b5157600080fd5b8135613b64613b5f826155d5565b61554c565b91508181835260208401935060208101905083856020840282011115613b8957600080fd5b60005b83811015613bb95781613b9f8882613d09565b845260208401935060208301925050600181019050613b8c565b5050505092915050565b600081359050613bd2816158ff565b92915050565b600081359050613be781615916565b92915050565b600081359050613bfc8161592d565b92915050565b600081519050613c118161592d565b92915050565b60008083601f840112613c2957600080fd5b8235905067ffffffffffffffff811115613c4257600080fd5b602083019150836001820283011115613c5a57600080fd5b9250929050565b600082601f830112613c7257600080fd5b8135613c85613c8082615601565b61554c565b91508082526020830160208301858383011115613ca157600080fd5b613cac8382846157d0565b50505092915050565b600082601f830112613cc657600080fd5b8135613cd9613cd482615631565b61554c565b91508082526020830160208301858383011115613cf557600080fd5b613d008382846157d0565b50505092915050565b600081359050613d1881615944565b92915050565b600060208284031215613d3057600080fd5b6000613d3e84828501613a34565b91505092915050565b60008060408385031215613d5a57600080fd5b6000613d6885828601613a34565b9250506020613d7985828601613a34565b9150509250929050565b600080600080600060a08688031215613d9b57600080fd5b6000613da988828901613a34565b9550506020613dba88828901613a34565b945050604086013567ffffffffffffffff811115613dd757600080fd5b613de388828901613b40565b935050606086013567ffffffffffffffff811115613e0057600080fd5b613e0c88828901613b40565b925050608086013567ffffffffffffffff811115613e2957600080fd5b613e3588828901613c61565b9150509295509295909350565b600080600080600060a08688031215613e5a57600080fd5b6000613e6888828901613a34565b9550506020613e7988828901613a34565b9450506040613e8a88828901613d09565b9350506060613e9b88828901613d09565b925050608086013567ffffffffffffffff811115613eb857600080fd5b613ec488828901613c61565b9150509295509295909350565b60008060408385031215613ee457600080fd5b6000613ef285828601613a34565b9250506020613f0385828601613bc3565b9150509250929050565b60008060408385031215613f2057600080fd5b6000613f2e85828601613a34565b9250506020613f3f85828601613d09565b9150509250929050565b600060208284031215613f5b57600080fd5b600082013567ffffffffffffffff811115613f7557600080fd5b613f8184828501613a49565b91505092915050565b60008060408385031215613f9d57600080fd5b600083013567ffffffffffffffff811115613fb757600080fd5b613fc385828601613a49565b925050602083013567ffffffffffffffff811115613fe057600080fd5b613fec85828601613b40565b9150509250929050565b600080600080600080600060c0888a03121561401157600080fd5b600088013567ffffffffffffffff81111561402b57600080fd5b6140378a828b01613b40565b975050602088013567ffffffffffffffff81111561405457600080fd5b6140608a828b01613acc565b965050604088013567ffffffffffffffff81111561407d57600080fd5b6140898a828b01613acc565b955050606088013567ffffffffffffffff8111156140a657600080fd5b6140b28a828b01613acc565b945050608088013567ffffffffffffffff8111156140cf57600080fd5b6140db8a828b01613acc565b93505060a088013567ffffffffffffffff8111156140f857600080fd5b6141048a828b01613c17565b925092505092959891949750929550565b6000806040838503121561412857600080fd5b600083013567ffffffffffffffff81111561414257600080fd5b61414e85828601613b40565b925050602083013567ffffffffffffffff81111561416b57600080fd5b61417785828601613b40565b9150509250929050565b60006020828403121561419357600080fd5b60006141a184828501613bd8565b91505092915050565b600080604083850312156141bd57600080fd5b60006141cb85828601613bd8565b92505060206141dc85828601613a34565b9150509250929050565b600080604083850312156141f957600080fd5b600061420785828601613bd8565b925050602061421885828601613d09565b9150509250929050565b60006020828403121561423457600080fd5b600061424284828501613bed565b91505092915050565b60006020828403121561425d57600080fd5b600061426b84828501613c02565b91505092915050565b60006020828403121561428657600080fd5b600082013567ffffffffffffffff8111156142a057600080fd5b6142ac84828501613cb5565b91505092915050565b6000602082840312156142c757600080fd5b60006142d584828501613d09565b91505092915050565b600080600080600080600060c0888a0312156142f957600080fd5b60006143078a828b01613d09565b975050602088013567ffffffffffffffff81111561432457600080fd5b6143308a828b01613cb5565b965050604088013567ffffffffffffffff81111561434d57600080fd5b6143598a828b01613cb5565b955050606088013567ffffffffffffffff81111561437657600080fd5b6143828a828b01613cb5565b945050608088013567ffffffffffffffff81111561439f57600080fd5b6143ab8a828b01613cb5565b93505060a088013567ffffffffffffffff8111156143c857600080fd5b6143d48a828b01613c17565b925092505092959891949750929550565b600080604083850312156143f857600080fd5b600061440685828601613d09565b925050602061441785828601613d09565b9150509250929050565b600061442d8383614595565b905092915050565b60006144418383614eff565b60208301905092915050565b6144568161579a565b82525050565b6144658161571c565b82525050565b600061447682615681565b61448081856156c7565b93508360208202850161449285615661565b8060005b858110156144ce57848403895281516144af8582614421565b94506144ba836156ad565b925060208a01995050600181019050614496565b50829750879550505050505092915050565b60006144eb8261568c565b6144f581856156d8565b935061450083615671565b8060005b838110156145315781516145188882614435565b9750614523836156ba565b925050600181019050614504565b5085935050505092915050565b6145478161572e565b82525050565b6145568161573a565b82525050565b600061456782615697565b61457181856156e9565b93506145818185602086016157df565b61458a81615814565b840191505092915050565b60006145a0826156a2565b6145aa81856156fa565b93506145ba8185602086016157df565b6145c381615814565b840191505092915050565b60006145d9826156a2565b6145e3818561570b565b93506145f38185602086016157df565b6145fc81615814565b840191505092915050565b600061461460348361570b565b91507f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008301527f526563656976657220696d706c656d656e7465720000000000000000000000006020830152604082019050919050565b600061467a60228361570b565b91507f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60008301527f64730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006146e060288361570b565b91507f455243313135353a204552433131353552656365697665722072656a6563746560008301527f6420746f6b656e730000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614746602f8361570b565b91507f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008301527f2061646d696e20746f206772616e7400000000000000000000000000000000006020830152604082019050919050565b60006147ac60148361570b565b91507f5061757361626c653a206e6f74207061757365640000000000000000000000006000830152602082019050919050565b60006147ec60268361570b565b91507f43616c6c6572206973206e6f742066726f6d20612077686974656c697374206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614852602b8361570b565b91507f455243313135353a2062616c616e636520717565727920666f7220746865207a60008301527f65726f20616464726573730000000000000000000000000000000000000000006020830152604082019050919050565b60006148b8601b8361570b565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b60006148f8602c8361570b565b91507f455243313135355061757361626c653a20746f6b656e207472616e736665722060008301527f7768696c652070617573656400000000000000000000000000000000000000006020830152604082019050919050565b600061495e60298361570b565b91507f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008301527f20617070726f76656400000000000000000000000000000000000000000000006020830152604082019050919050565b60006149c460308361570b565b91507f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008301527f2061646d696e20746f207265766f6b65000000000000000000000000000000006020830152604082019050919050565b6000614a2a60108361570b565b91507f5061757361626c653a20706175736564000000000000000000000000000000006000830152602082019050919050565b6000614a6a60258361570b565b91507f455243313135353a207472616e7366657220746f20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ad060328361570b565b91507f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008301527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006020830152604082019050919050565b6000614b3660298361570b565b91507f416e69667479455243313135353a20496e636f727265637420706172616d657460008301527f6572206c656e67746800000000000000000000000000000000000000000000006020830152604082019050919050565b6000614b9c60238361570b565b91507f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614c02602d8361570b565b91507f416e69667479455243313135353a206d7573742068617665207061757365722060008301527f726f6c6520746f207061757365000000000000000000000000000000000000006020830152604082019050919050565b6000614c6860148361570b565b91507f43616c6c6572206d7573742062652061646d696e0000000000000000000000006000830152602082019050919050565b6000614ca8602f8361570b565b91507f416e69667479455243313135353a206d7573742068617665207061757365722060008301527f726f6c6520746f20756e706175736500000000000000000000000000000000006020830152604082019050919050565b6000614d0e60298361570b565b91507f455243313135353a2073657474696e6720617070726f76616c2073746174757360008301527f20666f722073656c6600000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d7460298361570b565b91507f455243313135353a206163636f756e747320616e6420696473206c656e67746860008301527f206d69736d6174636800000000000000000000000000000000000000000000006020830152604082019050919050565b6000614dda60288361570b565b91507f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008301527f6d69736d617463680000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614e4060218361570b565b91507f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ea6602f8361570b565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b614f0881615790565b82525050565b614f1781615790565b82525050565b6000602082019050614f32600083018461445c565b92915050565b6000602082019050614f4d600083018461444d565b92915050565b600061010082019050614f69600083018b61444d565b8181036020830152614f7b818a6144e0565b90508181036040830152614f8f81896144e0565b9050614f9e6060830188614f0e565b8181036080830152614fb0818761446b565b905081810360a0830152614fc4818661446b565b905081810360c0830152614fd8818561446b565b905081810360e0830152614fec818461446b565b90509998505050505050505050565b600061010082019050615011600083018b61444d565b61501e602083018a614f0e565b61502b6040830189614f0e565b6150386060830188614f0e565b818103608083015261504a81876145ce565b905081810360a083015261505e81866145ce565b905081810360c083015261507281856145ce565b905081810360e083015261508681846145ce565b90509998505050505050505050565b600060a0820190506150aa600083018861445c565b6150b7602083018761445c565b81810360408301526150c981866144e0565b905081810360608301526150dd81856144e0565b905081810360808301526150f1818461455c565b90509695505050505050565b600060a082019050615112600083018861445c565b61511f602083018761445c565b61512c6040830186614f0e565b6151396060830185614f0e565b818103608083015261514b818461455c565b90509695505050505050565b6000602082019050818103600083015261517181846144e0565b905092915050565b6000604082019050818103600083015261519381856144e0565b905081810360208301526151a781846144e0565b90509392505050565b60006020820190506151c5600083018461453e565b92915050565b60006020820190506151e0600083018461454d565b92915050565b6000602082019050818103600083015261520081846145ce565b905092915050565b6000602082019050818103600083015261522181614607565b9050919050565b600060208201905081810360008301526152418161466d565b9050919050565b60006020820190508181036000830152615261816146d3565b9050919050565b6000602082019050818103600083015261528181614739565b9050919050565b600060208201905081810360008301526152a18161479f565b9050919050565b600060208201905081810360008301526152c1816147df565b9050919050565b600060208201905081810360008301526152e181614845565b9050919050565b60006020820190508181036000830152615301816148ab565b9050919050565b60006020820190508181036000830152615321816148eb565b9050919050565b6000602082019050818103600083015261534181614951565b9050919050565b60006020820190508181036000830152615361816149b7565b9050919050565b6000602082019050818103600083015261538181614a1d565b9050919050565b600060208201905081810360008301526153a181614a5d565b9050919050565b600060208201905081810360008301526153c181614ac3565b9050919050565b600060208201905081810360008301526153e181614b29565b9050919050565b6000602082019050818103600083015261540181614b8f565b9050919050565b6000602082019050818103600083015261542181614bf5565b9050919050565b6000602082019050818103600083015261544181614c5b565b9050919050565b6000602082019050818103600083015261546181614c9b565b9050919050565b6000602082019050818103600083015261548181614d01565b9050919050565b600060208201905081810360008301526154a181614d67565b9050919050565b600060208201905081810360008301526154c181614dcd565b9050919050565b600060208201905081810360008301526154e181614e33565b9050919050565b6000602082019050818103600083015261550181614e99565b9050919050565b600060208201905061551d6000830184614f0e565b92915050565b60006040820190506155386000830185614f0e565b6155456020830184614f0e565b9392505050565b6000604051905081810181811067ffffffffffffffff8211171561557357615572615812565b5b8060405250919050565b600067ffffffffffffffff82111561559857615597615812565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156155c4576155c3615812565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156155f0576155ef615812565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561561c5761561b615812565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff82111561564c5761564b615812565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061572782615770565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006157a5826157ac565b9050919050565b60006157b7826157be565b9050919050565b60006157c982615770565b9050919050565b82818337600083830152505050565b60005b838110156157fd5780820151818401526020810190506157e2565b8381111561580c576000848401525b50505050565bfe5b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d1015615842576158e5565b60046000803e615853600051615825565b6308c379a0811461586457506158e5565b60405160043d036004823e80513d602482011167ffffffffffffffff82111715615890575050506158e5565b808201805167ffffffffffffffff8111156158af5750505050506158e5565b8060208301013d85018111156158ca575050505050506158e5565b6158d382615814565b60208401016040528296505050505050505b90565b6158f18161571c565b81146158fc57600080fd5b50565b6159088161572e565b811461591357600080fd5b50565b61591f8161573a565b811461592a57600080fd5b50565b61593681615744565b811461594157600080fd5b50565b61594d81615790565b811461595857600080fd5b5056fe455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572a2646970667358221220549e28e357cac6a50df24fbeaa88f232d152b77b6cc3033350f0e69f87b5fc6164736f6c63430007030033000000000000000000000000e68642af41461528bab9668579a6c16015d8af660000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f617369612d6e6f72746865617374312d616e696674792d35393635352e636c6f756466756e6374696f6e732e6e65742f6170692f65787465726e616c5f746f6b656e5f646174612f00000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ef5760003560e01c80638456cb591161010f578063c1adb02f116100a2578063d547741f11610071578063d547741f146105fe578063e63ab1e91461061a578063e985e9c514610638578063f242432a14610668576101ef565b8063c1adb02f1461053e578063c2ecc7e11461056e578063ca15c8731461059e578063cd53d08e146105ce576101ef565b80639bf5bf96116100de5780639bf5bf96146104cc578063a217fddf146104e8578063a22cb46514610506578063b390c0ab14610522576101ef565b80638456cb59146104325780639010d07c1461043c57806391d148541461046c5780639b19251a1461049c576101ef565b80632eb2c2d6116101875780634e1273f4116101565780634e1273f4146103aa5780635c975abb146103da57806375b238fc146103f857806383ca4b6f14610416576101ef565b80632eb2c2d61461034c5780632f2ff15d1461036857806336568abe146103845780633f4ba83a146103a0576101ef565b806313916a12116101c357806313916a12146102a057806314912ae9146102d0578063248a9ca3146103005780632b1dd8e514610330576101ef565b8062fdd58e146101f457806301ffc9a71461022457806302fe5305146102545780630e89341c14610270575b600080fd5b61020e60048036038101906102099190613f0d565b610684565b60405161021b9190615508565b60405180910390f35b61023e60048036038101906102399190614222565b61074e565b60405161024b91906151b0565b60405180910390f35b61026e60048036038101906102699190614274565b6107b6565b005b61028a600480360381019061028591906142b5565b610832565b60405161029791906151e6565b60405180910390f35b6102ba60048036038101906102b591906142de565b6108e7565b6040516102c79190615508565b60405180910390f35b6102ea60048036038101906102e591906142de565b610ad2565b6040516102f79190615508565b60405180910390f35b61031a60048036038101906103159190614181565b610c2a565b60405161032791906151cb565b60405180910390f35b61034a60048036038101906103459190613f49565b610c49565b005b61036660048036038101906103619190613d83565b610d41565b005b610382600480360381019061037d91906141aa565b611102565b005b61039e600480360381019061039991906141aa565b611175565b005b6103a86111f8565b005b6103c460048036038101906103bf9190613f8a565b611272565b6040516103d19190615157565b60405180910390f35b6103e261136e565b6040516103ef91906151b0565b60405180910390f35b610400611385565b60405161040d91906151cb565b60405180910390f35b610430600480360381019061042b9190614115565b6113a9565b005b61043a611400565b005b610456600480360381019061045191906141e6565b61147a565b6040516104639190614f1d565b60405180910390f35b610486600480360381019061048191906141aa565b6114ab565b60405161049391906151b0565b60405180910390f35b6104b660048036038101906104b19190613d1e565b6114dc565b6040516104c391906151b0565b60405180910390f35b6104e660048036038101906104e19190613f49565b6114fc565b005b6104f06115f4565b6040516104fd91906151cb565b60405180910390f35b610520600480360381019061051b9190613ed1565b6115fb565b005b61053c600480360381019061053791906143e5565b61177c565b005b61055860048036038101906105539190613ff6565b6117d3565b6040516105659190615157565b60405180910390f35b61058860048036038101906105839190613ff6565b611a23565b6040516105959190615157565b60405180910390f35b6105b860048036038101906105b39190614181565b611d06565b6040516105c59190615508565b60405180910390f35b6105e860048036038101906105e391906142b5565b611d2c565b6040516105f59190614f1d565b60405180910390f35b610618600480360381019061061391906141aa565b611d5f565b005b610622611dd2565b60405161062f91906151cb565b60405180910390f35b610652600480360381019061064d9190613d47565b611df6565b60405161065f91906151b0565b60405180910390f35b610682600480360381019061067d9190613e42565b611e8a565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156106f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ec906152c8565b60405180910390fd5b6002600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600060016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b6107e77fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756107e26121fd565b6114ab565b610826576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081d90615428565b60405180910390fd5b61082f81612205565b50565b60606108e060048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108cd5780601f106108a2576101008083540402835291602001916108cd565b820191906000526020600020905b8154815290600101906020018083116108b057829003601f168201915b50505050506108db8461221f565b612363565b9050919050565b60006108f161136e565b15610931576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092890615368565b60405180910390fd5b60011515600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146109c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bb906152a8565b60405180910390fd5b6109ce60066123a7565b60006109da60066123bd565b9050336009600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610a7e33828b87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506123cb565b7fb486d620dada6b35c31016fb410006daa5369f4f47d5bb6d086bf3a11771aacd33828b428c8c8c8c604051610abb989796959493929190614ffb565b60405180910390a180915050979650505050505050565b6000610adc61136e565b15610b1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1390615368565b60405180910390fd5b610b2660076123a7565b6000610b3260076123bd565b9050336009600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610bd633828b87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506123cb565b7fb486d620dada6b35c31016fb410006daa5369f4f47d5bb6d086bf3a11771aacd33828b428c8c8c8c604051610c13989796959493929190614ffb565b60405180910390a180915050979650505050505050565b6000806000838152602001908152602001600020600201549050919050565b610c7a7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610c756121fd565b6114ab565b610cb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb090615428565b60405180910390fd5b60005b8151811015610d3d57600160086000848481518110610cd757fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080600101915050610cbc565b5050565b8151835114610d85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7c906154a8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610df5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dec90615388565b60405180910390fd5b610dfd6121fd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610e435750610e4285610e3d6121fd565b611df6565b5b610e82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e79906153a8565b60405180910390fd5b6000610e8c6121fd565b9050610e9c8187878787876125b2565b60005b845181101561106d576000858281518110610eb657fe5b602002602001015190506000858381518110610ece57fe5b60200260200101519050610f55816040518060600160405280602a8152602001615980602a91396002600086815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126109092919063ffffffff16565b6002600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061100c816002600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461266590919063ffffffff16565b6002600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050806001019050610e9f565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516110e4929190615179565b60405180910390a46110fa8187878787876126ba565b505050505050565b611128600080848152602001908152602001600020600201546111236121fd565b6114ab565b611167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115e90615268565b60405180910390fd5b611171828261288a565b5050565b61117d6121fd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146111ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e1906154e8565b60405180910390fd5b6111f4828261291d565b5050565b6112297f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6112246121fd565b6114ab565b611268576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125f90615448565b60405180910390fd5b6112706129b0565b565b606081518351146112b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112af90615488565b60405180910390fd5b6060835167ffffffffffffffff811180156112d257600080fd5b506040519080825280602002602001820160405280156113015781602001602082028036833780820191505090505b50905060005b84518110156113635761134085828151811061131f57fe5b602002602001015185838151811061133357fe5b6020026020010151610684565b82828151811061134c57fe5b602002602001018181525050806001019050611307565b508091505092915050565b6000600560009054906101000a900460ff16905090565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6113b161136e565b156113f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e890615368565b60405180910390fd5b6113fc338383612a52565b5050565b6114317f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61142c6121fd565b6114ab565b611470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146790615408565b60405180910390fd5b611478612cd9565b565b60006114a382600080868152602001908152602001600020600001612d7c90919063ffffffff16565b905092915050565b60006114d482600080868152602001908152602001600020600001612d9690919063ffffffff16565b905092915050565b60086020528060005260406000206000915054906101000a900460ff1681565b61152d7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756115286121fd565b6114ab565b61156c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156390615428565b60405180910390fd5b60005b81518110156115f05760006008600084848151811061158a57fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550808060010191505061156f565b5050565b6000801b81565b8173ffffffffffffffffffffffffffffffffffffffff1661161a6121fd565b73ffffffffffffffffffffffffffffffffffffffff161415611671576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166890615468565b60405180910390fd5b806003600061167e6121fd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661172b6121fd565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161177091906151b0565b60405180910390a35050565b61178461136e565b156117c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117bb90615368565b60405180910390fd5b6117cf338383612dc6565b5050565b60606117dd61136e565b1561181d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181490615368565b60405180910390fd5b8651885114801561182f575085518851145b801561183c575084518851145b8015611849575083518851145b611888576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187f906153c8565b60405180910390fd5b6060885167ffffffffffffffff811180156118a257600080fd5b506040519080825280602002602001820160405280156118d15781602001602082028036833780820191505090505b50905060005b895181101561197e576118ea60076123a7565b6118f460076123bd565b82828151811061190057fe5b602002602001018181525050336009600084848151811061191d57fe5b6020026020010151815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080806001019150506118d7565b506119cf33828b87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612fc6565b7f627a3908bf2de5b122eb91d7e06daaea1755eb5e2e51e0057e9f41d66206bb4633828b428c8c8c8c604051611a0c989796959493929190614f53565b60405180910390a180915050979650505050505050565b6060611a2d61136e565b15611a6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6490615368565b60405180910390fd5b60011515600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611b00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af7906152a8565b60405180910390fd5b86518851148015611b12575085518851145b8015611b1f575084518851145b8015611b2c575083518851145b611b6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b62906153c8565b60405180910390fd5b6060885167ffffffffffffffff81118015611b8557600080fd5b50604051908082528060200260200182016040528015611bb45781602001602082028036833780820191505090505b50905060005b8951811015611c6157611bcd60066123a7565b611bd760066123bd565b828281518110611be357fe5b6020026020010181815250503360096000848481518110611c0057fe5b6020026020010151815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508080600101915050611bba565b50611cb233828b87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612fc6565b7f627a3908bf2de5b122eb91d7e06daaea1755eb5e2e51e0057e9f41d66206bb4633828b428c8c8c8c604051611cef989796959493929190614f53565b60405180910390a180915050979650505050505050565b6000611d25600080848152602001908152602001600020600001613234565b9050919050565b60096020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611d8560008084815260200190815260200160002060020154611d806121fd565b6114ab565b611dc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbb90615348565b60405180910390fd5b611dce828261291d565b5050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611efa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef190615388565b60405180910390fd5b611f026121fd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611f485750611f4785611f426121fd565b611df6565b5b611f87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7e90615328565b60405180910390fd5b6000611f916121fd565b9050611fb1818787611fa288613249565b611fab88613249565b876125b2565b61202e836040518060600160405280602a8152602001615980602a91396002600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126109092919063ffffffff16565b6002600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506120e5836002600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461266590919063ffffffff16565b6002600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516121af929190615523565b60405180910390a46121c58187878787876132b9565b505050505050565b60006121f5836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613489565b905092915050565b600033905090565b806004908051906020019061221b929190613997565b5050565b60606000821415612267576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061235e565b600082905060005b60008214612291578080600101915050600a828161228957fe5b04915061226f565b60608167ffffffffffffffff811180156122aa57600080fd5b506040519080825280601f01601f1916602001820160405280156122dd5781602001600182028036833780820191505090505b50905060006001830390505b6000861461235657600a86816122fb57fe5b0660300160f81b8282806001900393508151811061231557fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a868161234e57fe5b0495506122e9565b819450505050505b919050565b606061239f83836040518060200160405280600081525060405180602001604052806000815250604051806020016040528060008152506134f9565b905092915050565b6001816000016000828254019250508190555050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561243b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612432906154c8565b60405180910390fd5b60006124456121fd565b90506124668160008761245788613249565b61246088613249565b876125b2565b6124c9836002600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461266590919063ffffffff16565b6002600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051612594929190615523565b60405180910390a46125ab816000878787876132b9565b5050505050565b6125c08686868686866137c3565b6125c861136e565b15612608576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ff90615308565b60405180910390fd5b505050505050565b6000838311158290612658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264f91906151e6565b60405180910390fd5b5082840390509392505050565b6000808284019050838110156126b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126a7906152e8565b60405180910390fd5b8091505092915050565b6126d98473ffffffffffffffffffffffffffffffffffffffff166137cb565b15612882578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b815260040161271f959493929190615095565b602060405180830381600087803b15801561273957600080fd5b505af192505050801561276a57506040513d601f19601f82011682018060405250810190612767919061424b565b60015b6127f957612776615832565b8061278157506127be565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b591906151e6565b60405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f090615208565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612880576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287790615248565b60405180910390fd5b505b505050505050565b6128b1816000808581526020019081526020016000206000016121cd90919063ffffffff16565b15612919576128be6121fd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b612944816000808581526020019081526020016000206000016137de90919063ffffffff16565b156129ac576129516121fd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6129b861136e565b6129f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ee90615288565b60405180910390fd5b6000600560006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612a3b6121fd565b604051612a489190614f38565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ac2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab9906153e8565b60405180910390fd5b8051825114612b06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612afd906154a8565b60405180910390fd5b6000612b106121fd565b9050612b30818560008686604051806020016040528060008152506125b2565b60005b8351811015612c5357612bdf838281518110612b4b57fe5b602002602001015160405180606001604052806024815260200161595c6024913960026000888681518110612b7c57fe5b6020026020010151815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126109092919063ffffffff16565b60026000868481518110612bef57fe5b6020026020010151815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080600101915050612b33565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612ccb929190615179565b60405180910390a450505050565b612ce161136e565b15612d21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1890615368565b60405180910390fd5b6001600560006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d656121fd565b604051612d729190614f38565b60405180910390a1565b6000612d8b836000018361380e565b60001c905092915050565b6000612dbe836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61387b565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612e36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2d906153e8565b60405180910390fd5b6000612e406121fd565b9050612e7081856000612e5287613249565b612e5b87613249565b604051806020016040528060008152506125b2565b612eed8260405180606001604052806024815260200161595c602491396002600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126109092919063ffffffff16565b6002600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628686604051612fb8929190615523565b60405180910390a450505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613036576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302d906154c8565b60405180910390fd5b815183511461307a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613071906154a8565b60405180910390fd5b60006130846121fd565b9050613095816000878787876125b2565b60005b845181101561319e5761312a600260008784815181106130b457fe5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485838151811061311457fe5b602002602001015161266590919063ffffffff16565b6002600087848151811061313a57fe5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080600101915050613098565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613216929190615179565b60405180910390a461322d816000878787876126ba565b5050505050565b60006132428260000161389e565b9050919050565b606080600167ffffffffffffffff8111801561326457600080fd5b506040519080825280602002602001820160405280156132935781602001602082028036833780820191505090505b50905082816000815181106132a457fe5b60200260200101818152505080915050919050565b6132d88473ffffffffffffffffffffffffffffffffffffffff166137cb565b15613481578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b815260040161331e9594939291906150fd565b602060405180830381600087803b15801561333857600080fd5b505af192505050801561336957506040513d601f19601f82011682018060405250810190613366919061424b565b60015b6133f857613375615832565b8061338057506133bd565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133b491906151e6565b60405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133ef90615208565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461347f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347690615248565b60405180910390fd5b505b505050505050565b6000613495838361387b565b6134ee5782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506134f3565b600090505b92915050565b60608086905060608690506060869050606086905060608690506060815183518551875189510101010167ffffffffffffffff8111801561353957600080fd5b506040519080825280601f01601f19166020018201604052801561356c5781602001600182028036833780820191505090505b50905060608190506000805b88518110156135e65788818151811061358d57fe5b602001015160f81c60f81b8383806001019450815181106135aa57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050613578565b5060005b8751811015613658578781815181106135ff57fe5b602001015160f81c60f81b83838060010194508151811061361c57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506135ea565b5060005b86518110156136ca5786818151811061367157fe5b602001015160f81c60f81b83838060010194508151811061368e57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350808060010191505061365c565b5060005b855181101561373c578581815181106136e357fe5b602001015160f81c60f81b83838060010194508151811061370057fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506136ce565b5060005b84518110156137ae5784818151811061375557fe5b602001015160f81c60f81b83838060010194508151811061377257fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050613740565b50819850505050505050505095945050505050565b505050505050565b600080823b905060008111915050919050565b6000613806836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6138af565b905092915050565b600081836000018054905011613859576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161385090615228565b60405180910390fd5b82600001828154811061386857fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b6000808360010160008481526020019081526020016000205490506000811461398b57600060018203905060006001866000018054905003905060008660000182815481106138fa57fe5b906000526020600020015490508087600001848154811061391757fe5b906000526020600020018190555060018301876001016000838152602001908152602001600020819055508660000180548061394f57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050613991565b60009150505b92915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106139d857805160ff1916838001178555613a06565b82800160010185558215613a06579182015b82811115613a055782518255916020019190600101906139ea565b5b509050613a139190613a17565b5090565b5b80821115613a30576000816000905550600101613a18565b5090565b600081359050613a43816158e8565b92915050565b600082601f830112613a5a57600080fd5b8135613a6d613a688261557d565b61554c565b91508181835260208401935060208101905083856020840282011115613a9257600080fd5b60005b83811015613ac25781613aa88882613a34565b845260208401935060208301925050600181019050613a95565b5050505092915050565b600082601f830112613add57600080fd5b8135613af0613aeb826155a9565b61554c565b9150818183526020840193506020810190508360005b83811015613b365781358601613b1c8882613cb5565b845260208401935060208301925050600181019050613b06565b5050505092915050565b600082601f830112613b5157600080fd5b8135613b64613b5f826155d5565b61554c565b91508181835260208401935060208101905083856020840282011115613b8957600080fd5b60005b83811015613bb95781613b9f8882613d09565b845260208401935060208301925050600181019050613b8c565b5050505092915050565b600081359050613bd2816158ff565b92915050565b600081359050613be781615916565b92915050565b600081359050613bfc8161592d565b92915050565b600081519050613c118161592d565b92915050565b60008083601f840112613c2957600080fd5b8235905067ffffffffffffffff811115613c4257600080fd5b602083019150836001820283011115613c5a57600080fd5b9250929050565b600082601f830112613c7257600080fd5b8135613c85613c8082615601565b61554c565b91508082526020830160208301858383011115613ca157600080fd5b613cac8382846157d0565b50505092915050565b600082601f830112613cc657600080fd5b8135613cd9613cd482615631565b61554c565b91508082526020830160208301858383011115613cf557600080fd5b613d008382846157d0565b50505092915050565b600081359050613d1881615944565b92915050565b600060208284031215613d3057600080fd5b6000613d3e84828501613a34565b91505092915050565b60008060408385031215613d5a57600080fd5b6000613d6885828601613a34565b9250506020613d7985828601613a34565b9150509250929050565b600080600080600060a08688031215613d9b57600080fd5b6000613da988828901613a34565b9550506020613dba88828901613a34565b945050604086013567ffffffffffffffff811115613dd757600080fd5b613de388828901613b40565b935050606086013567ffffffffffffffff811115613e0057600080fd5b613e0c88828901613b40565b925050608086013567ffffffffffffffff811115613e2957600080fd5b613e3588828901613c61565b9150509295509295909350565b600080600080600060a08688031215613e5a57600080fd5b6000613e6888828901613a34565b9550506020613e7988828901613a34565b9450506040613e8a88828901613d09565b9350506060613e9b88828901613d09565b925050608086013567ffffffffffffffff811115613eb857600080fd5b613ec488828901613c61565b9150509295509295909350565b60008060408385031215613ee457600080fd5b6000613ef285828601613a34565b9250506020613f0385828601613bc3565b9150509250929050565b60008060408385031215613f2057600080fd5b6000613f2e85828601613a34565b9250506020613f3f85828601613d09565b9150509250929050565b600060208284031215613f5b57600080fd5b600082013567ffffffffffffffff811115613f7557600080fd5b613f8184828501613a49565b91505092915050565b60008060408385031215613f9d57600080fd5b600083013567ffffffffffffffff811115613fb757600080fd5b613fc385828601613a49565b925050602083013567ffffffffffffffff811115613fe057600080fd5b613fec85828601613b40565b9150509250929050565b600080600080600080600060c0888a03121561401157600080fd5b600088013567ffffffffffffffff81111561402b57600080fd5b6140378a828b01613b40565b975050602088013567ffffffffffffffff81111561405457600080fd5b6140608a828b01613acc565b965050604088013567ffffffffffffffff81111561407d57600080fd5b6140898a828b01613acc565b955050606088013567ffffffffffffffff8111156140a657600080fd5b6140b28a828b01613acc565b945050608088013567ffffffffffffffff8111156140cf57600080fd5b6140db8a828b01613acc565b93505060a088013567ffffffffffffffff8111156140f857600080fd5b6141048a828b01613c17565b925092505092959891949750929550565b6000806040838503121561412857600080fd5b600083013567ffffffffffffffff81111561414257600080fd5b61414e85828601613b40565b925050602083013567ffffffffffffffff81111561416b57600080fd5b61417785828601613b40565b9150509250929050565b60006020828403121561419357600080fd5b60006141a184828501613bd8565b91505092915050565b600080604083850312156141bd57600080fd5b60006141cb85828601613bd8565b92505060206141dc85828601613a34565b9150509250929050565b600080604083850312156141f957600080fd5b600061420785828601613bd8565b925050602061421885828601613d09565b9150509250929050565b60006020828403121561423457600080fd5b600061424284828501613bed565b91505092915050565b60006020828403121561425d57600080fd5b600061426b84828501613c02565b91505092915050565b60006020828403121561428657600080fd5b600082013567ffffffffffffffff8111156142a057600080fd5b6142ac84828501613cb5565b91505092915050565b6000602082840312156142c757600080fd5b60006142d584828501613d09565b91505092915050565b600080600080600080600060c0888a0312156142f957600080fd5b60006143078a828b01613d09565b975050602088013567ffffffffffffffff81111561432457600080fd5b6143308a828b01613cb5565b965050604088013567ffffffffffffffff81111561434d57600080fd5b6143598a828b01613cb5565b955050606088013567ffffffffffffffff81111561437657600080fd5b6143828a828b01613cb5565b945050608088013567ffffffffffffffff81111561439f57600080fd5b6143ab8a828b01613cb5565b93505060a088013567ffffffffffffffff8111156143c857600080fd5b6143d48a828b01613c17565b925092505092959891949750929550565b600080604083850312156143f857600080fd5b600061440685828601613d09565b925050602061441785828601613d09565b9150509250929050565b600061442d8383614595565b905092915050565b60006144418383614eff565b60208301905092915050565b6144568161579a565b82525050565b6144658161571c565b82525050565b600061447682615681565b61448081856156c7565b93508360208202850161449285615661565b8060005b858110156144ce57848403895281516144af8582614421565b94506144ba836156ad565b925060208a01995050600181019050614496565b50829750879550505050505092915050565b60006144eb8261568c565b6144f581856156d8565b935061450083615671565b8060005b838110156145315781516145188882614435565b9750614523836156ba565b925050600181019050614504565b5085935050505092915050565b6145478161572e565b82525050565b6145568161573a565b82525050565b600061456782615697565b61457181856156e9565b93506145818185602086016157df565b61458a81615814565b840191505092915050565b60006145a0826156a2565b6145aa81856156fa565b93506145ba8185602086016157df565b6145c381615814565b840191505092915050565b60006145d9826156a2565b6145e3818561570b565b93506145f38185602086016157df565b6145fc81615814565b840191505092915050565b600061461460348361570b565b91507f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008301527f526563656976657220696d706c656d656e7465720000000000000000000000006020830152604082019050919050565b600061467a60228361570b565b91507f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60008301527f64730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006146e060288361570b565b91507f455243313135353a204552433131353552656365697665722072656a6563746560008301527f6420746f6b656e730000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614746602f8361570b565b91507f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008301527f2061646d696e20746f206772616e7400000000000000000000000000000000006020830152604082019050919050565b60006147ac60148361570b565b91507f5061757361626c653a206e6f74207061757365640000000000000000000000006000830152602082019050919050565b60006147ec60268361570b565b91507f43616c6c6572206973206e6f742066726f6d20612077686974656c697374206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614852602b8361570b565b91507f455243313135353a2062616c616e636520717565727920666f7220746865207a60008301527f65726f20616464726573730000000000000000000000000000000000000000006020830152604082019050919050565b60006148b8601b8361570b565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b60006148f8602c8361570b565b91507f455243313135355061757361626c653a20746f6b656e207472616e736665722060008301527f7768696c652070617573656400000000000000000000000000000000000000006020830152604082019050919050565b600061495e60298361570b565b91507f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008301527f20617070726f76656400000000000000000000000000000000000000000000006020830152604082019050919050565b60006149c460308361570b565b91507f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008301527f2061646d696e20746f207265766f6b65000000000000000000000000000000006020830152604082019050919050565b6000614a2a60108361570b565b91507f5061757361626c653a20706175736564000000000000000000000000000000006000830152602082019050919050565b6000614a6a60258361570b565b91507f455243313135353a207472616e7366657220746f20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ad060328361570b565b91507f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008301527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006020830152604082019050919050565b6000614b3660298361570b565b91507f416e69667479455243313135353a20496e636f727265637420706172616d657460008301527f6572206c656e67746800000000000000000000000000000000000000000000006020830152604082019050919050565b6000614b9c60238361570b565b91507f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614c02602d8361570b565b91507f416e69667479455243313135353a206d7573742068617665207061757365722060008301527f726f6c6520746f207061757365000000000000000000000000000000000000006020830152604082019050919050565b6000614c6860148361570b565b91507f43616c6c6572206d7573742062652061646d696e0000000000000000000000006000830152602082019050919050565b6000614ca8602f8361570b565b91507f416e69667479455243313135353a206d7573742068617665207061757365722060008301527f726f6c6520746f20756e706175736500000000000000000000000000000000006020830152604082019050919050565b6000614d0e60298361570b565b91507f455243313135353a2073657474696e6720617070726f76616c2073746174757360008301527f20666f722073656c6600000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d7460298361570b565b91507f455243313135353a206163636f756e747320616e6420696473206c656e67746860008301527f206d69736d6174636800000000000000000000000000000000000000000000006020830152604082019050919050565b6000614dda60288361570b565b91507f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008301527f6d69736d617463680000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614e4060218361570b565b91507f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ea6602f8361570b565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b614f0881615790565b82525050565b614f1781615790565b82525050565b6000602082019050614f32600083018461445c565b92915050565b6000602082019050614f4d600083018461444d565b92915050565b600061010082019050614f69600083018b61444d565b8181036020830152614f7b818a6144e0565b90508181036040830152614f8f81896144e0565b9050614f9e6060830188614f0e565b8181036080830152614fb0818761446b565b905081810360a0830152614fc4818661446b565b905081810360c0830152614fd8818561446b565b905081810360e0830152614fec818461446b565b90509998505050505050505050565b600061010082019050615011600083018b61444d565b61501e602083018a614f0e565b61502b6040830189614f0e565b6150386060830188614f0e565b818103608083015261504a81876145ce565b905081810360a083015261505e81866145ce565b905081810360c083015261507281856145ce565b905081810360e083015261508681846145ce565b90509998505050505050505050565b600060a0820190506150aa600083018861445c565b6150b7602083018761445c565b81810360408301526150c981866144e0565b905081810360608301526150dd81856144e0565b905081810360808301526150f1818461455c565b90509695505050505050565b600060a082019050615112600083018861445c565b61511f602083018761445c565b61512c6040830186614f0e565b6151396060830185614f0e565b818103608083015261514b818461455c565b90509695505050505050565b6000602082019050818103600083015261517181846144e0565b905092915050565b6000604082019050818103600083015261519381856144e0565b905081810360208301526151a781846144e0565b90509392505050565b60006020820190506151c5600083018461453e565b92915050565b60006020820190506151e0600083018461454d565b92915050565b6000602082019050818103600083015261520081846145ce565b905092915050565b6000602082019050818103600083015261522181614607565b9050919050565b600060208201905081810360008301526152418161466d565b9050919050565b60006020820190508181036000830152615261816146d3565b9050919050565b6000602082019050818103600083015261528181614739565b9050919050565b600060208201905081810360008301526152a18161479f565b9050919050565b600060208201905081810360008301526152c1816147df565b9050919050565b600060208201905081810360008301526152e181614845565b9050919050565b60006020820190508181036000830152615301816148ab565b9050919050565b60006020820190508181036000830152615321816148eb565b9050919050565b6000602082019050818103600083015261534181614951565b9050919050565b60006020820190508181036000830152615361816149b7565b9050919050565b6000602082019050818103600083015261538181614a1d565b9050919050565b600060208201905081810360008301526153a181614a5d565b9050919050565b600060208201905081810360008301526153c181614ac3565b9050919050565b600060208201905081810360008301526153e181614b29565b9050919050565b6000602082019050818103600083015261540181614b8f565b9050919050565b6000602082019050818103600083015261542181614bf5565b9050919050565b6000602082019050818103600083015261544181614c5b565b9050919050565b6000602082019050818103600083015261546181614c9b565b9050919050565b6000602082019050818103600083015261548181614d01565b9050919050565b600060208201905081810360008301526154a181614d67565b9050919050565b600060208201905081810360008301526154c181614dcd565b9050919050565b600060208201905081810360008301526154e181614e33565b9050919050565b6000602082019050818103600083015261550181614e99565b9050919050565b600060208201905061551d6000830184614f0e565b92915050565b60006040820190506155386000830185614f0e565b6155456020830184614f0e565b9392505050565b6000604051905081810181811067ffffffffffffffff8211171561557357615572615812565b5b8060405250919050565b600067ffffffffffffffff82111561559857615597615812565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156155c4576155c3615812565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156155f0576155ef615812565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561561c5761561b615812565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff82111561564c5761564b615812565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061572782615770565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006157a5826157ac565b9050919050565b60006157b7826157be565b9050919050565b60006157c982615770565b9050919050565b82818337600083830152505050565b60005b838110156157fd5780820151818401526020810190506157e2565b8381111561580c576000848401525b50505050565bfe5b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d1015615842576158e5565b60046000803e615853600051615825565b6308c379a0811461586457506158e5565b60405160043d036004823e80513d602482011167ffffffffffffffff82111715615890575050506158e5565b808201805167ffffffffffffffff8111156158af5750505050506158e5565b8060208301013d85018111156158ca575050505050506158e5565b6158d382615814565b60208401016040528296505050505050505b90565b6158f18161571c565b81146158fc57600080fd5b50565b6159088161572e565b811461591357600080fd5b50565b61591f8161573a565b811461592a57600080fd5b50565b61593681615744565b811461594157600080fd5b50565b61594d81615790565b811461595857600080fd5b5056fe455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572a2646970667358221220549e28e357cac6a50df24fbeaa88f232d152b77b6cc3033350f0e69f87b5fc6164736f6c63430007030033

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

000000000000000000000000e68642af41461528bab9668579a6c16015d8af660000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f617369612d6e6f72746865617374312d616e696674792d35393635352e636c6f756466756e6374696f6e732e6e65742f6170692f65787465726e616c5f746f6b656e5f646174612f00000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _admin (address): 0xE68642Af41461528bAB9668579A6c16015d8AF66
Arg [1] : _uri (string): https://asia-northeast1-anifty-59655.cloudfunctions.net/api/external_token_data/

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000e68642af41461528bab9668579a6c16015d8af66
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [3] : 68747470733a2f2f617369612d6e6f72746865617374312d616e696674792d35
Arg [4] : 393635352e636c6f756466756e6374696f6e732e6e65742f6170692f65787465
Arg [5] : 726e616c5f746f6b656e5f646174612f00000000000000000000000000000000


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.