ETH Price: $3,303.72 (-3.56%)
Gas: 7 Gwei

Contract

0xc2d296311C041332946EC8DCE90b40127d217836
 

Overview

ETH Balance

0.365001 ETH

Eth Value

$1,205.86 (@ $3,303.72/ETH)

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Approval For...199306772024-05-23 6:05:1141 days ago1716444311IN
0xc2d29631...27d217836
0 ETH0.00022184.7577509
Scratch Knees198948082024-05-18 5:39:5946 days ago1716010799IN
0xc2d29631...27d217836
0 ETH0.001606952.989353
Scratch Knees198948052024-05-18 5:39:2346 days ago1716010763IN
0xc2d29631...27d217836
0 ETH0.000895573.07961138
Scratch Knees198945902024-05-18 4:55:5946 days ago1716008159IN
0xc2d29631...27d217836
0 ETH0.001149582.92758978
Scratch Knees198945852024-05-18 4:54:5946 days ago1716008099IN
0xc2d29631...27d217836
0 ETH0.001133943.02632388
Scratch Knee198945752024-05-18 4:52:5946 days ago1716007979IN
0xc2d29631...27d217836
0 ETH0.000238112.85174108
Scratch Knees198145622024-05-07 0:16:5957 days ago1715041019IN
0xc2d29631...27d217836
0 ETH0.001181174.1335852
Scratch Knees198145592024-05-07 0:16:2357 days ago1715040983IN
0xc2d29631...27d217836
0 ETH0.001175534.30437578
Scratch Knee197996412024-05-04 22:11:5959 days ago1714860719IN
0xc2d29631...27d217836
0 ETH0.000557134.40016315
Scratch Knee197996382024-05-04 22:11:2359 days ago1714860683IN
0xc2d29631...27d217836
0 ETH0.000534634.52087942
Scratch Knees197996332024-05-04 22:10:2359 days ago1714860623IN
0xc2d29631...27d217836
0 ETH0.001261244.41379466
Scratch Knees197996302024-05-04 22:09:4759 days ago1714860587IN
0xc2d29631...27d217836
0 ETH0.000879584.68254685
Scratch Knees197874512024-05-03 5:18:3561 days ago1714713515IN
0xc2d29631...27d217836
0 ETH0.001065884.7208503
Scratch Knees197494102024-04-27 21:40:4766 days ago1714254047IN
0xc2d29631...27d217836
0 ETH0.000916074.46378893
Scratch Knees197492142024-04-27 21:01:2366 days ago1714251683IN
0xc2d29631...27d217836
0 ETH0.000921624.90634835
Scratch Knees197492072024-04-27 20:59:5966 days ago1714251599IN
0xc2d29631...27d217836
0 ETH0.001050225.29906295
Scratch Knee197418112024-04-26 20:09:4767 days ago1714162187IN
0xc2d29631...27d217836
0 ETH0.000723955.71759919
Scratch Knee197363552024-04-26 1:47:3568 days ago1714096055IN
0xc2d29631...27d217836
0 ETH0.000504135.54312847
Scratch Knee197363382024-04-26 1:44:1168 days ago1714095851IN
0xc2d29631...27d217836
0 ETH0.000502976.02375282
Scratch Knees197363272024-04-26 1:41:5968 days ago1714095719IN
0xc2d29631...27d217836
0 ETH0.002531595.41282699
Scratch Knees197363222024-04-26 1:40:5968 days ago1714095659IN
0xc2d29631...27d217836
0 ETH0.002397175.43055605
Scratch Knees197140082024-04-22 22:46:2371 days ago1713825983IN
0xc2d29631...27d217836
0 ETH0.002391036.88685165
Scratch Knees197068062024-04-21 22:36:3572 days ago1713738995IN
0xc2d29631...27d217836
0 ETH0.002941866.87113133
Scratch Knees197007232024-04-21 2:12:1173 days ago1713665531IN
0xc2d29631...27d217836
0 ETH0.00142385.9492686
Scratch Knees197005162024-04-21 1:30:4773 days ago1713663047IN
0xc2d29631...27d217836
0 ETH0.002730085.42664774
View all transactions

Latest 6 internal transactions

Advanced mode:
Parent Transaction Hash Block From To Value
130578632021-08-19 20:20:371048 days ago1629404437
0xc2d29631...27d217836
0.705 ETH
129935972021-08-09 22:12:551058 days ago1628547175
0xc2d29631...27d217836
1.02 ETH
129835442021-08-08 9:16:031060 days ago1628414163
0xc2d29631...27d217836
0.615 ETH
129574462021-08-04 7:54:471064 days ago1628063687
0xc2d29631...27d217836
2.469 ETH
127090332021-06-26 10:01:571103 days ago1624701717
0xc2d29631...27d217836
8.085 ETH
126850822021-06-22 16:27:271107 days ago1624379247
0xc2d29631...27d217836
0.066 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Kneecaps

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : Kneecaps.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

contract Kneecaps is ERC1155, Ownable {
	
	using SafeMath for uint256;
	using Strings for string;
	
	uint256 public startBlock = 12681276;
	uint256 public kneecaps = 0;
	uint256 public maxKneecaps = 5536;
	string public _baseURI = "https://kneecaps.io/metadata/";
	string public _contractURI = "https://kneecaps.io/contract.json";
	uint256 public legs;

	mapping(uint256 => uint256) private _totalSupply;

	constructor() ERC1155(_baseURI) {
		legs = 33000000000000000;
	}

	function refillLotion(uint256 _price) public onlyOwner {
		legs = _price;
	}

	function dispenseLotion() public view returns (uint256) {
		return legs;
	}

	function scratchKnee() public payable {
		require(msg.value >= legs, "trying to sneak one by eh?");
		scratch();
	}

	function scratchKnees(uint256 _quantity) public payable {
		uint256 remaining = maxKneecaps - kneecaps;
		require(_quantity <= 13, "13 max. Can you read?");
		require(_quantity <= remaining, "Not enough kneecaps remaining.");
		require(legs.mul(_quantity) <= msg.value, "trying to sneak one by eh?");

		for (uint32 i = 0; i < _quantity; i++) {
			scratch();
		}
	}

	function scratch() private {
		require(kneecaps < maxKneecaps, "No more kneecaps.");
		require(block.number >= startBlock);
			
		uint256 idx = getSockFromDrawer(uint256(maxKneecaps - 1));
		require(idx >= 0 && idx < maxKneecaps, "No matching sock found.");

		// Try on socks for one foot, then the other foot

		for (uint256 i = idx; i < maxKneecaps; i++) {
			if (_totalSupply[i] == 0) {
				relief(i);
				return;
			}
		}

		for (uint256 i = idx; i >= 0; i--) {
			if (_totalSupply[i] == 0) {
				relief(i);
				return;
			}
		}

		revert("shave your legs");
	}

	function relief(uint256 idx) private {
		if (_totalSupply[idx] == 0) {
			_totalSupply[idx] = 1;
			_mint(msg.sender, idx, 1, "0x0000");
			kneecaps = kneecaps + 1;
			return;
		}
		revert('No cap');
	}

	function getSockFromDrawer(uint max) private returns (uint256 result){
		uint256 lastBlockNumber = block.number - 1;
		uint256 hashVal = uint256(blockhash(lastBlockNumber)) + uint256(uint160(address(msg.sender))) + kneecaps;
		return uint256(hashVal % (max + 1));
	}

	function setBaseURI(string memory newuri) public onlyOwner {
		_baseURI = newuri;
	}

	function setContractURI(string memory newuri) public onlyOwner {
		_contractURI = newuri;
	}

	function uri(uint256 tokenId) public view override returns (string memory) {
		return string(abi.encodePacked(_baseURI, uint2str(tokenId)));
	}

	function tokenURI(uint256 tokenId) public view returns (string memory) {
		return string(abi.encodePacked(_baseURI, uint2str(tokenId)));
	}

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

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

	/**
	 * @dev given id, returns number of instances of token
	 */
	function totalSupply(uint256 id) public view virtual returns (uint256) {
		return _totalSupply[id];
	}

	/**
	 * @dev returns if a token exists with a given id
	 */
	function exists(uint256 id) public view virtual returns (bool) {
		return totalSupply(id) > 0;
	}

	function removeSocks() public onlyOwner {
		uint256 balance = address(this).balance;
		payable(msg.sender).transfer(balance);
	}

	/* Reclaim tokens if accidentally sent */
	function reclaimToken(IERC20 token) public onlyOwner {
		require(address(token) != address(0));
		uint256 balance = token.balanceOf(address(this));
		token.transfer(msg.sender, balance);
	}
}

File 2 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        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 3 of 13 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    )
        public
        virtual
        override
    {
        require(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);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        _balances[id][from] = fromBalance - amount;
        _balances[id][to] += 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];

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

        return array;
    }
}

File 4 of 13 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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);
}

File 8 of 13 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        uint256 size;
        // 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 9 of 13 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 10 of 13 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"_baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dispenseLotion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kneecaps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"legs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxKneecaps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"reclaimToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"refillLotion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeSocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","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":[],"name":"scratchKnee","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"scratchKnees","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

608060405262c1803c60045560006005556115a06006556040518060400160405280601d81526020017f68747470733a2f2f6b6e6565636170732e696f2f6d657461646174612f000000815250600790805190602001906200006392919062000232565b506040518060600160405280602181526020016200484860219139600890805190602001906200009592919062000232565b50348015620000a357600080fd5b5060078054620000b390620002e2565b80601f0160208091040260200160405190810160405280929190818152602001828054620000e190620002e2565b8015620001325780601f10620001065761010080835404028352916020019162000132565b820191906000526020600020905b8154815290600101906020018083116200011457829003601f168201915b505050505062000148816200020e60201b60201c565b5060006200015b6200022a60201b60201c565b905080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35066753d533d96800060098190555062000347565b80600290805190602001906200022692919062000232565b5050565b600033905090565b8280546200024090620002e2565b90600052602060002090601f016020900481019282620002645760008555620002b0565b82601f106200027f57805160ff1916838001178555620002b0565b82800160010185558215620002b0579182015b82811115620002af57825182559160200191906001019062000292565b5b509050620002bf9190620002c3565b5090565b5b80821115620002de576000816000905550600101620002c4565b5090565b60006002820490506001821680620002fb57607f821691505b6020821081141562000312576200031162000318565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6144f180620003576000396000f3fe6080604052600436106101c15760003560e01c8063938e3d7b116100f7578063c87b56dd11610095578063e985e9c511610064578063e985e9c514610613578063f242432a14610650578063f2fde38b14610679578063f4f33094146106a2576101c1565b8063c87b56dd14610578578063d202d74b146105b5578063d3850575146105de578063e8a3d485146105e8576101c1565b8063a22cb465116100d1578063a22cb465146104d0578063acf93d88146104f9578063bd85b03914610510578063c0e727401461054d576101c1565b8063938e3d7b14610451578063965abbe81461047a5780639d835d95146104a5576101c1565b806349e858091161016457806355f804b31161013e57806355f804b3146103bb578063715018a6146103e4578063743976a0146103fb5780638da5cb5b14610426576101c1565b806349e85809146103165780634e1273f4146103415780634f558e791461037e576101c1565b806317ffc320116101a057806317ffc3201461027d5780632eb2c2d6146102a657806348cd4cb1146102cf5780634983c691146102fa576101c1565b8062fdd58e146101c657806301ffc9a7146102035780630e89341c14610240575b600080fd5b3480156101d257600080fd5b506101ed60048036038101906101e89190612f0b565b6106cd565b6040516101fa9190613dc6565b60405180910390f35b34801561020f57600080fd5b5061022a60048036038101906102259190612fdc565b610796565b6040516102379190613b09565b60405180910390f35b34801561024c57600080fd5b5061026760048036038101906102629190613098565b610878565b6040516102749190613b24565b60405180910390f35b34801561028957600080fd5b506102a4600480360381019061029f919061302e565b6108ac565b005b3480156102b257600080fd5b506102cd60048036038101906102c89190612d81565b610a81565b005b3480156102db57600080fd5b506102e4610e77565b6040516102f19190613dc6565b60405180910390f35b610314600480360381019061030f9190613098565b610e7d565b005b34801561032257600080fd5b5061032b610fa0565b6040516103389190613dc6565b60405180910390f35b34801561034d57600080fd5b5061036860048036038101906103639190612f47565b610fa6565b6040516103759190613ab0565b60405180910390f35b34801561038a57600080fd5b506103a560048036038101906103a09190613098565b611157565b6040516103b29190613b09565b60405180910390f35b3480156103c757600080fd5b506103e260048036038101906103dd9190613057565b61116b565b005b3480156103f057600080fd5b506103f9611201565b005b34801561040757600080fd5b5061041061133e565b60405161041d9190613b24565b60405180910390f35b34801561043257600080fd5b5061043b6113cc565b60405161044891906139aa565b60405180910390f35b34801561045d57600080fd5b5061047860048036038101906104739190613057565b6113f6565b005b34801561048657600080fd5b5061048f61148c565b60405161049c9190613dc6565b60405180910390f35b3480156104b157600080fd5b506104ba611492565b6040516104c79190613dc6565b60405180910390f35b3480156104dc57600080fd5b506104f760048036038101906104f29190612ecf565b61149c565b005b34801561050557600080fd5b5061050e61161d565b005b34801561051c57600080fd5b5061053760048036038101906105329190613098565b6116e8565b6040516105449190613dc6565b60405180910390f35b34801561055957600080fd5b50610562611705565b60405161056f9190613b24565b60405180910390f35b34801561058457600080fd5b5061059f600480360381019061059a9190613098565b611793565b6040516105ac9190613b24565b60405180910390f35b3480156105c157600080fd5b506105dc60048036038101906105d79190613098565b6117c7565b005b6105e661184d565b005b3480156105f457600080fd5b506105fd61189c565b60405161060a9190613b24565b60405180910390f35b34801561061f57600080fd5b5061063a60048036038101906106359190612d45565b61192e565b6040516106479190613b09565b60405180910390f35b34801561065c57600080fd5b5061067760048036038101906106729190612e40565b6119c2565b005b34801561068557600080fd5b506106a0600480360381019061069b9190612d1c565b611cda565b005b3480156106ae57600080fd5b506106b7611e86565b6040516106c49190613dc6565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561073e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073590613b86565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061086157507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610871575061087082611e8c565b5b9050919050565b6060600761088583611ef6565b604051602001610896929190613986565b6040516020818303038152906040529050919050565b6108b46120cb565b73ffffffffffffffffffffffffffffffffffffffff166108d26113cc565b73ffffffffffffffffffffffffffffffffffffffff1614610928576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091f90613ce6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561096257600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161099d91906139aa565b60206040518083038186803b1580156109b557600080fd5b505afa1580156109c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ed91906130c1565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610a2a929190613a87565b602060405180830381600087803b158015610a4457600080fd5b505af1158015610a58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7c9190612fb3565b505050565b8151835114610ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abc90613d86565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610b35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2c90613c46565b60405180910390fd5b610b3d6120cb565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610b835750610b8285610b7d6120cb565b61192e565b5b610bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb990613c66565b60405180910390fd5b6000610bcc6120cb565b9050610bdc8187878787876120d3565b60005b8451811015610de2576000858281518110610c23577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000858381518110610c68577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610d09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0090613cc6565b60405180910390fd5b8181610d15919061409c565b60008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610dc79190613f84565b9250508190555050505080610ddb90614211565b9050610bdf565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610e59929190613ad2565b60405180910390a4610e6f8187878787876120db565b505050505050565b60045481565b6000600554600654610e8f919061409c565b9050600d821115610ed5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecc90613d26565b60405180910390fd5b80821115610f18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0f90613ca6565b60405180910390fd5b34610f2e836009546122ab90919063ffffffff16565b1115610f6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6690613c06565b60405180910390fd5b60005b828163ffffffff161015610f9b57610f886122c1565b8080610f939061425a565b915050610f72565b505050565b60065481565b60608151835114610fec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe390613d66565b60405180910390fd5b6000835167ffffffffffffffff81111561102f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561105d5781602001602082028036833780820191505090505b50905060005b845181101561114c576110f68582815181106110a8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101518583815181106110e9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516106cd565b82828151811061112f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508061114590614211565b9050611063565b508091505092915050565b600080611163836116e8565b119050919050565b6111736120cb565b73ffffffffffffffffffffffffffffffffffffffff166111916113cc565b73ffffffffffffffffffffffffffffffffffffffff16146111e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111de90613ce6565b60405180910390fd5b80600790805190602001906111fd9291906129d5565b5050565b6112096120cb565b73ffffffffffffffffffffffffffffffffffffffff166112276113cc565b73ffffffffffffffffffffffffffffffffffffffff161461127d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127490613ce6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6007805461134b906141df565b80601f0160208091040260200160405190810160405280929190818152602001828054611377906141df565b80156113c45780601f10611399576101008083540402835291602001916113c4565b820191906000526020600020905b8154815290600101906020018083116113a757829003601f168201915b505050505081565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6113fe6120cb565b73ffffffffffffffffffffffffffffffffffffffff1661141c6113cc565b73ffffffffffffffffffffffffffffffffffffffff1614611472576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146990613ce6565b60405180910390fd5b80600890805190602001906114889291906129d5565b5050565b60055481565b6000600954905090565b8173ffffffffffffffffffffffffffffffffffffffff166114bb6120cb565b73ffffffffffffffffffffffffffffffffffffffff161415611512576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150990613d46565b60405180910390fd5b806001600061151f6120cb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166115cc6120cb565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116119190613b09565b60405180910390a35050565b6116256120cb565b73ffffffffffffffffffffffffffffffffffffffff166116436113cc565b73ffffffffffffffffffffffffffffffffffffffff1614611699576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169090613ce6565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156116e4573d6000803e3d6000fd5b5050565b6000600a6000838152602001908152602001600020549050919050565b60088054611712906141df565b80601f016020809104026020016040519081016040528092919081815260200182805461173e906141df565b801561178b5780601f106117605761010080835404028352916020019161178b565b820191906000526020600020905b81548152906001019060200180831161176e57829003601f168201915b505050505081565b606060076117a083611ef6565b6040516020016117b1929190613986565b6040516020818303038152906040529050919050565b6117cf6120cb565b73ffffffffffffffffffffffffffffffffffffffff166117ed6113cc565b73ffffffffffffffffffffffffffffffffffffffff1614611843576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183a90613ce6565b60405180910390fd5b8060098190555050565b600954341015611892576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188990613c06565b60405180910390fd5b61189a6122c1565b565b6060600880546118ab906141df565b80601f01602080910402602001604051908101604052809291908181526020018280546118d7906141df565b80156119245780601f106118f957610100808354040283529160200191611924565b820191906000526020600020905b81548152906001019060200180831161190757829003601f168201915b5050505050905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611a32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2990613c46565b60405180910390fd5b611a3a6120cb565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611a805750611a7f85611a7a6120cb565b61192e565b5b611abf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab690613bc6565b60405180910390fd5b6000611ac96120cb565b9050611ae9818787611ada8861245d565b611ae38861245d565b876120d3565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015611b80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7790613cc6565b60405180910390fd5b8381611b8c919061409c565b60008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c3e9190613f84565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051611cbb929190613de1565b60405180910390a4611cd1828888888888612523565b50505050505050565b611ce26120cb565b73ffffffffffffffffffffffffffffffffffffffff16611d006113cc565b73ffffffffffffffffffffffffffffffffffffffff1614611d56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4d90613ce6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611dc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbd90613ba6565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60095481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60606000821415611f3e576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506120c6565b600082905060005b60008214611f70578080611f5990614211565b915050600a82611f699190614011565b9150611f46565b60008167ffffffffffffffff811115611fb2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611fe45781602001600182028036833780820191505090505b50905060008290505b600086146120be57600181612002919061409c565b90506000600a80886120149190614011565b61201e9190614042565b87612029919061409c565b60306120359190613fda565b905060008160f81b905080848481518110612079577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a886120b59190614011565b97505050611fed565b819450505050505b919050565b600033905090565b505050505050565b6120fa8473ffffffffffffffffffffffffffffffffffffffff166126f3565b156122a3578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016121409594939291906139c5565b602060405180830381600087803b15801561215a57600080fd5b505af192505050801561218b57506040513d601f19601f820116820180604052508101906121889190613005565b60015b61221a57612197614392565b806121a257506121df565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d69190613b24565b60405180910390fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221190613b46565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146122a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229890613b66565b60405180910390fd5b505b505050505050565b600081836122b99190614042565b905092915050565b60065460055410612307576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122fe90613be6565b60405180910390fd5b60045443101561231657600080fd5b600061232f600160065461232a919061409c565b612706565b905060008110158015612343575060065481105b612382576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237990613d06565b60405180910390fd5b60008190505b6006548110156123d1576000600a60008381526020019081526020016000205414156123be576123b781612770565b505061245b565b80806123c990614211565b915050612388565b5060008190505b6000811061241f576000600a600083815260200190815260200160002054141561240c5761240581612770565b505061245b565b8080612417906141b5565b9150506123d8565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245290613c86565b60405180910390fd5b565b60606000600167ffffffffffffffff8111156124a2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156124d05781602001602082028036833780820191505090505b509050828160008151811061250e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b6125428473ffffffffffffffffffffffffffffffffffffffff166126f3565b156126eb578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612588959493929190613a2d565b602060405180830381600087803b1580156125a257600080fd5b505af19250505080156125d357506040513d601f19601f820116820180604052508101906125d09190613005565b60015b612662576125df614392565b806125ea5750612627565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261e9190613b24565b60405180910390fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265990613b46565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146126e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e090613b66565b60405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b600080600143612716919061409c565b905060006005543373ffffffffffffffffffffffffffffffffffffffff16834060001c6127439190613f84565b61274d9190613f84565b905060018461275c9190613f84565b816127679190614287565b92505050919050565b6000600a6000838152602001908152602001600020541415612801576001600a6000838152602001908152602001600020819055506127e7338260016040518060400160405280600681526020017f307830303030000000000000000000000000000000000000000000000000000081525061283f565b60016005546127f69190613f84565b60058190555061283c565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283390613c26565b60405180910390fd5b50565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156128af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a690613da6565b60405180910390fd5b60006128b96120cb565b90506128da816000876128cb8861245d565b6128d48861245d565b876120d3565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129399190613f84565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516129b7929190613de1565b60405180910390a46129ce81600087878787612523565b5050505050565b8280546129e1906141df565b90600052602060002090601f016020900481019282612a035760008555612a4a565b82601f10612a1c57805160ff1916838001178555612a4a565b82800160010185558215612a4a579182015b82811115612a49578251825591602001919060010190612a2e565b5b509050612a579190612a5b565b5090565b5b80821115612a74576000816000905550600101612a5c565b5090565b6000612a8b612a8684613e3b565b613e0a565b90508083825260208201905082856020860282011115612aaa57600080fd5b60005b85811015612ada5781612ac08882612bcc565b845260208401935060208301925050600181019050612aad565b5050509392505050565b6000612af7612af284613e67565b613e0a565b90508083825260208201905082856020860282011115612b1657600080fd5b60005b85811015612b465781612b2c8882612cf2565b845260208401935060208301925050600181019050612b19565b5050509392505050565b6000612b63612b5e84613e93565b613e0a565b905082815260208101848484011115612b7b57600080fd5b612b86848285614173565b509392505050565b6000612ba1612b9c84613ec3565b613e0a565b905082815260208101848484011115612bb957600080fd5b612bc4848285614173565b509392505050565b600081359050612bdb81614448565b92915050565b600082601f830112612bf257600080fd5b8135612c02848260208601612a78565b91505092915050565b600082601f830112612c1c57600080fd5b8135612c2c848260208601612ae4565b91505092915050565b600081359050612c448161445f565b92915050565b600081519050612c598161445f565b92915050565b600081359050612c6e81614476565b92915050565b600081519050612c8381614476565b92915050565b600082601f830112612c9a57600080fd5b8135612caa848260208601612b50565b91505092915050565b600081359050612cc28161448d565b92915050565b600082601f830112612cd957600080fd5b8135612ce9848260208601612b8e565b91505092915050565b600081359050612d01816144a4565b92915050565b600081519050612d16816144a4565b92915050565b600060208284031215612d2e57600080fd5b6000612d3c84828501612bcc565b91505092915050565b60008060408385031215612d5857600080fd5b6000612d6685828601612bcc565b9250506020612d7785828601612bcc565b9150509250929050565b600080600080600060a08688031215612d9957600080fd5b6000612da788828901612bcc565b9550506020612db888828901612bcc565b945050604086013567ffffffffffffffff811115612dd557600080fd5b612de188828901612c0b565b935050606086013567ffffffffffffffff811115612dfe57600080fd5b612e0a88828901612c0b565b925050608086013567ffffffffffffffff811115612e2757600080fd5b612e3388828901612c89565b9150509295509295909350565b600080600080600060a08688031215612e5857600080fd5b6000612e6688828901612bcc565b9550506020612e7788828901612bcc565b9450506040612e8888828901612cf2565b9350506060612e9988828901612cf2565b925050608086013567ffffffffffffffff811115612eb657600080fd5b612ec288828901612c89565b9150509295509295909350565b60008060408385031215612ee257600080fd5b6000612ef085828601612bcc565b9250506020612f0185828601612c35565b9150509250929050565b60008060408385031215612f1e57600080fd5b6000612f2c85828601612bcc565b9250506020612f3d85828601612cf2565b9150509250929050565b60008060408385031215612f5a57600080fd5b600083013567ffffffffffffffff811115612f7457600080fd5b612f8085828601612be1565b925050602083013567ffffffffffffffff811115612f9d57600080fd5b612fa985828601612c0b565b9150509250929050565b600060208284031215612fc557600080fd5b6000612fd384828501612c4a565b91505092915050565b600060208284031215612fee57600080fd5b6000612ffc84828501612c5f565b91505092915050565b60006020828403121561301757600080fd5b600061302584828501612c74565b91505092915050565b60006020828403121561304057600080fd5b600061304e84828501612cb3565b91505092915050565b60006020828403121561306957600080fd5b600082013567ffffffffffffffff81111561308357600080fd5b61308f84828501612cc8565b91505092915050565b6000602082840312156130aa57600080fd5b60006130b884828501612cf2565b91505092915050565b6000602082840312156130d357600080fd5b60006130e184828501612d07565b91505092915050565b60006130f68383613968565b60208301905092915050565b61310b816140d0565b82525050565b600061311c82613f18565b6131268185613f46565b935061313183613ef3565b8060005b8381101561316257815161314988826130ea565b975061315483613f39565b925050600181019050613135565b5085935050505092915050565b613178816140e2565b82525050565b600061318982613f23565b6131938185613f57565b93506131a3818560208601614182565b6131ac81614374565b840191505092915050565b60006131c282613f2e565b6131cc8185613f68565b93506131dc818560208601614182565b6131e581614374565b840191505092915050565b60006131fb82613f2e565b6132058185613f79565b9350613215818560208601614182565b80840191505092915050565b6000815461322e816141df565b6132388186613f79565b94506001821660008114613253576001811461326457613297565b60ff19831686528186019350613297565b61326d85613f03565b60005b8381101561328f57815481890152600182019150602081019050613270565b838801955050505b50505092915050565b60006132ad603483613f68565b91507f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008301527f526563656976657220696d706c656d656e7465720000000000000000000000006020830152604082019050919050565b6000613313602883613f68565b91507f455243313135353a204552433131353552656365697665722072656a6563746560008301527f6420746f6b656e730000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613379602b83613f68565b91507f455243313135353a2062616c616e636520717565727920666f7220746865207a60008301527f65726f20616464726573730000000000000000000000000000000000000000006020830152604082019050919050565b60006133df602683613f68565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613445602983613f68565b91507f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008301527f20617070726f76656400000000000000000000000000000000000000000000006020830152604082019050919050565b60006134ab601183613f68565b91507f4e6f206d6f7265206b6e6565636170732e0000000000000000000000000000006000830152602082019050919050565b60006134eb601a83613f68565b91507f747279696e6720746f20736e65616b206f6e652062792065683f0000000000006000830152602082019050919050565b600061352b600683613f68565b91507f4e6f2063617000000000000000000000000000000000000000000000000000006000830152602082019050919050565b600061356b602583613f68565b91507f455243313135353a207472616e7366657220746f20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006135d1603283613f68565b91507f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008301527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006020830152604082019050919050565b6000613637600f83613f68565b91507f736861766520796f7572206c65677300000000000000000000000000000000006000830152602082019050919050565b6000613677601e83613f68565b91507f4e6f7420656e6f756768206b6e6565636170732072656d61696e696e672e00006000830152602082019050919050565b60006136b7602a83613f68565b91507f455243313135353a20696e73756666696369656e742062616c616e636520666f60008301527f72207472616e73666572000000000000000000000000000000000000000000006020830152604082019050919050565b600061371d602083613f68565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b600061375d601783613f68565b91507f4e6f206d61746368696e6720736f636b20666f756e642e0000000000000000006000830152602082019050919050565b600061379d601583613f68565b91507f3133206d61782e2043616e20796f7520726561643f00000000000000000000006000830152602082019050919050565b60006137dd602983613f68565b91507f455243313135353a2073657474696e6720617070726f76616c2073746174757360008301527f20666f722073656c6600000000000000000000000000000000000000000000006020830152604082019050919050565b6000613843602983613f68565b91507f455243313135353a206163636f756e747320616e6420696473206c656e67746860008301527f206d69736d6174636800000000000000000000000000000000000000000000006020830152604082019050919050565b60006138a9602883613f68565b91507f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008301527f6d69736d617463680000000000000000000000000000000000000000000000006020830152604082019050919050565b600061390f602183613f68565b91507f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6139718161414c565b82525050565b6139808161414c565b82525050565b60006139928285613221565b915061399e82846131f0565b91508190509392505050565b60006020820190506139bf6000830184613102565b92915050565b600060a0820190506139da6000830188613102565b6139e76020830187613102565b81810360408301526139f98186613111565b90508181036060830152613a0d8185613111565b90508181036080830152613a21818461317e565b90509695505050505050565b600060a082019050613a426000830188613102565b613a4f6020830187613102565b613a5c6040830186613977565b613a696060830185613977565b8181036080830152613a7b818461317e565b90509695505050505050565b6000604082019050613a9c6000830185613102565b613aa96020830184613977565b9392505050565b60006020820190508181036000830152613aca8184613111565b905092915050565b60006040820190508181036000830152613aec8185613111565b90508181036020830152613b008184613111565b90509392505050565b6000602082019050613b1e600083018461316f565b92915050565b60006020820190508181036000830152613b3e81846131b7565b905092915050565b60006020820190508181036000830152613b5f816132a0565b9050919050565b60006020820190508181036000830152613b7f81613306565b9050919050565b60006020820190508181036000830152613b9f8161336c565b9050919050565b60006020820190508181036000830152613bbf816133d2565b9050919050565b60006020820190508181036000830152613bdf81613438565b9050919050565b60006020820190508181036000830152613bff8161349e565b9050919050565b60006020820190508181036000830152613c1f816134de565b9050919050565b60006020820190508181036000830152613c3f8161351e565b9050919050565b60006020820190508181036000830152613c5f8161355e565b9050919050565b60006020820190508181036000830152613c7f816135c4565b9050919050565b60006020820190508181036000830152613c9f8161362a565b9050919050565b60006020820190508181036000830152613cbf8161366a565b9050919050565b60006020820190508181036000830152613cdf816136aa565b9050919050565b60006020820190508181036000830152613cff81613710565b9050919050565b60006020820190508181036000830152613d1f81613750565b9050919050565b60006020820190508181036000830152613d3f81613790565b9050919050565b60006020820190508181036000830152613d5f816137d0565b9050919050565b60006020820190508181036000830152613d7f81613836565b9050919050565b60006020820190508181036000830152613d9f8161389c565b9050919050565b60006020820190508181036000830152613dbf81613902565b9050919050565b6000602082019050613ddb6000830184613977565b92915050565b6000604082019050613df66000830185613977565b613e036020830184613977565b9392505050565b6000604051905081810181811067ffffffffffffffff82111715613e3157613e30614345565b5b8060405250919050565b600067ffffffffffffffff821115613e5657613e55614345565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613e8257613e81614345565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613eae57613ead614345565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff821115613ede57613edd614345565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613f8f8261414c565b9150613f9a8361414c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613fcf57613fce6142b8565b5b828201905092915050565b6000613fe582614166565b9150613ff083614166565b92508260ff03821115614006576140056142b8565b5b828201905092915050565b600061401c8261414c565b91506140278361414c565b925082614037576140366142e7565b5b828204905092915050565b600061404d8261414c565b91506140588361414c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614091576140906142b8565b5b828202905092915050565b60006140a78261414c565b91506140b28361414c565b9250828210156140c5576140c46142b8565b5b828203905092915050565b60006140db8261412c565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000614125826140d0565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156141a0578082015181840152602081019050614185565b838111156141af576000848401525b50505050565b60006141c08261414c565b915060008214156141d4576141d36142b8565b5b600182039050919050565b600060028204905060018216806141f757607f821691505b6020821081141561420b5761420a614316565b5b50919050565b600061421c8261414c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561424f5761424e6142b8565b5b600182019050919050565b600061426582614156565b915063ffffffff82141561427c5761427b6142b8565b5b600182019050919050565b60006142928261414c565b915061429d8361414c565b9250826142ad576142ac6142e7565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d10156143a257614445565b60046000803e6143b3600051614385565b6308c379a081146143c45750614445565b60405160043d036004823e80513d602482011167ffffffffffffffff821117156143f057505050614445565b808201805167ffffffffffffffff81111561440f575050505050614445565b8060208301013d850181111561442a57505050505050614445565b61443382614374565b60208401016040528296505050505050505b90565b614451816140d0565b811461445c57600080fd5b50565b614468816140e2565b811461447357600080fd5b50565b61447f816140ee565b811461448a57600080fd5b50565b6144968161411a565b81146144a157600080fd5b50565b6144ad8161414c565b81146144b857600080fd5b5056fea26469706673582212200bd623fbf3d744135edea5a0d18df4c831ec1979c7e1d9ec6a9be838cf94f59f64736f6c6343000800003368747470733a2f2f6b6e6565636170732e696f2f636f6e74726163742e6a736f6e

Deployed Bytecode

0x6080604052600436106101c15760003560e01c8063938e3d7b116100f7578063c87b56dd11610095578063e985e9c511610064578063e985e9c514610613578063f242432a14610650578063f2fde38b14610679578063f4f33094146106a2576101c1565b8063c87b56dd14610578578063d202d74b146105b5578063d3850575146105de578063e8a3d485146105e8576101c1565b8063a22cb465116100d1578063a22cb465146104d0578063acf93d88146104f9578063bd85b03914610510578063c0e727401461054d576101c1565b8063938e3d7b14610451578063965abbe81461047a5780639d835d95146104a5576101c1565b806349e858091161016457806355f804b31161013e57806355f804b3146103bb578063715018a6146103e4578063743976a0146103fb5780638da5cb5b14610426576101c1565b806349e85809146103165780634e1273f4146103415780634f558e791461037e576101c1565b806317ffc320116101a057806317ffc3201461027d5780632eb2c2d6146102a657806348cd4cb1146102cf5780634983c691146102fa576101c1565b8062fdd58e146101c657806301ffc9a7146102035780630e89341c14610240575b600080fd5b3480156101d257600080fd5b506101ed60048036038101906101e89190612f0b565b6106cd565b6040516101fa9190613dc6565b60405180910390f35b34801561020f57600080fd5b5061022a60048036038101906102259190612fdc565b610796565b6040516102379190613b09565b60405180910390f35b34801561024c57600080fd5b5061026760048036038101906102629190613098565b610878565b6040516102749190613b24565b60405180910390f35b34801561028957600080fd5b506102a4600480360381019061029f919061302e565b6108ac565b005b3480156102b257600080fd5b506102cd60048036038101906102c89190612d81565b610a81565b005b3480156102db57600080fd5b506102e4610e77565b6040516102f19190613dc6565b60405180910390f35b610314600480360381019061030f9190613098565b610e7d565b005b34801561032257600080fd5b5061032b610fa0565b6040516103389190613dc6565b60405180910390f35b34801561034d57600080fd5b5061036860048036038101906103639190612f47565b610fa6565b6040516103759190613ab0565b60405180910390f35b34801561038a57600080fd5b506103a560048036038101906103a09190613098565b611157565b6040516103b29190613b09565b60405180910390f35b3480156103c757600080fd5b506103e260048036038101906103dd9190613057565b61116b565b005b3480156103f057600080fd5b506103f9611201565b005b34801561040757600080fd5b5061041061133e565b60405161041d9190613b24565b60405180910390f35b34801561043257600080fd5b5061043b6113cc565b60405161044891906139aa565b60405180910390f35b34801561045d57600080fd5b5061047860048036038101906104739190613057565b6113f6565b005b34801561048657600080fd5b5061048f61148c565b60405161049c9190613dc6565b60405180910390f35b3480156104b157600080fd5b506104ba611492565b6040516104c79190613dc6565b60405180910390f35b3480156104dc57600080fd5b506104f760048036038101906104f29190612ecf565b61149c565b005b34801561050557600080fd5b5061050e61161d565b005b34801561051c57600080fd5b5061053760048036038101906105329190613098565b6116e8565b6040516105449190613dc6565b60405180910390f35b34801561055957600080fd5b50610562611705565b60405161056f9190613b24565b60405180910390f35b34801561058457600080fd5b5061059f600480360381019061059a9190613098565b611793565b6040516105ac9190613b24565b60405180910390f35b3480156105c157600080fd5b506105dc60048036038101906105d79190613098565b6117c7565b005b6105e661184d565b005b3480156105f457600080fd5b506105fd61189c565b60405161060a9190613b24565b60405180910390f35b34801561061f57600080fd5b5061063a60048036038101906106359190612d45565b61192e565b6040516106479190613b09565b60405180910390f35b34801561065c57600080fd5b5061067760048036038101906106729190612e40565b6119c2565b005b34801561068557600080fd5b506106a0600480360381019061069b9190612d1c565b611cda565b005b3480156106ae57600080fd5b506106b7611e86565b6040516106c49190613dc6565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561073e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073590613b86565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061086157507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610871575061087082611e8c565b5b9050919050565b6060600761088583611ef6565b604051602001610896929190613986565b6040516020818303038152906040529050919050565b6108b46120cb565b73ffffffffffffffffffffffffffffffffffffffff166108d26113cc565b73ffffffffffffffffffffffffffffffffffffffff1614610928576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091f90613ce6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561096257600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161099d91906139aa565b60206040518083038186803b1580156109b557600080fd5b505afa1580156109c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ed91906130c1565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610a2a929190613a87565b602060405180830381600087803b158015610a4457600080fd5b505af1158015610a58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7c9190612fb3565b505050565b8151835114610ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abc90613d86565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610b35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2c90613c46565b60405180910390fd5b610b3d6120cb565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610b835750610b8285610b7d6120cb565b61192e565b5b610bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb990613c66565b60405180910390fd5b6000610bcc6120cb565b9050610bdc8187878787876120d3565b60005b8451811015610de2576000858281518110610c23577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000858381518110610c68577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610d09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0090613cc6565b60405180910390fd5b8181610d15919061409c565b60008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610dc79190613f84565b9250508190555050505080610ddb90614211565b9050610bdf565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610e59929190613ad2565b60405180910390a4610e6f8187878787876120db565b505050505050565b60045481565b6000600554600654610e8f919061409c565b9050600d821115610ed5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecc90613d26565b60405180910390fd5b80821115610f18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0f90613ca6565b60405180910390fd5b34610f2e836009546122ab90919063ffffffff16565b1115610f6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6690613c06565b60405180910390fd5b60005b828163ffffffff161015610f9b57610f886122c1565b8080610f939061425a565b915050610f72565b505050565b60065481565b60608151835114610fec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe390613d66565b60405180910390fd5b6000835167ffffffffffffffff81111561102f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561105d5781602001602082028036833780820191505090505b50905060005b845181101561114c576110f68582815181106110a8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101518583815181106110e9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516106cd565b82828151811061112f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508061114590614211565b9050611063565b508091505092915050565b600080611163836116e8565b119050919050565b6111736120cb565b73ffffffffffffffffffffffffffffffffffffffff166111916113cc565b73ffffffffffffffffffffffffffffffffffffffff16146111e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111de90613ce6565b60405180910390fd5b80600790805190602001906111fd9291906129d5565b5050565b6112096120cb565b73ffffffffffffffffffffffffffffffffffffffff166112276113cc565b73ffffffffffffffffffffffffffffffffffffffff161461127d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127490613ce6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6007805461134b906141df565b80601f0160208091040260200160405190810160405280929190818152602001828054611377906141df565b80156113c45780601f10611399576101008083540402835291602001916113c4565b820191906000526020600020905b8154815290600101906020018083116113a757829003601f168201915b505050505081565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6113fe6120cb565b73ffffffffffffffffffffffffffffffffffffffff1661141c6113cc565b73ffffffffffffffffffffffffffffffffffffffff1614611472576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146990613ce6565b60405180910390fd5b80600890805190602001906114889291906129d5565b5050565b60055481565b6000600954905090565b8173ffffffffffffffffffffffffffffffffffffffff166114bb6120cb565b73ffffffffffffffffffffffffffffffffffffffff161415611512576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150990613d46565b60405180910390fd5b806001600061151f6120cb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166115cc6120cb565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116119190613b09565b60405180910390a35050565b6116256120cb565b73ffffffffffffffffffffffffffffffffffffffff166116436113cc565b73ffffffffffffffffffffffffffffffffffffffff1614611699576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169090613ce6565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156116e4573d6000803e3d6000fd5b5050565b6000600a6000838152602001908152602001600020549050919050565b60088054611712906141df565b80601f016020809104026020016040519081016040528092919081815260200182805461173e906141df565b801561178b5780601f106117605761010080835404028352916020019161178b565b820191906000526020600020905b81548152906001019060200180831161176e57829003601f168201915b505050505081565b606060076117a083611ef6565b6040516020016117b1929190613986565b6040516020818303038152906040529050919050565b6117cf6120cb565b73ffffffffffffffffffffffffffffffffffffffff166117ed6113cc565b73ffffffffffffffffffffffffffffffffffffffff1614611843576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183a90613ce6565b60405180910390fd5b8060098190555050565b600954341015611892576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188990613c06565b60405180910390fd5b61189a6122c1565b565b6060600880546118ab906141df565b80601f01602080910402602001604051908101604052809291908181526020018280546118d7906141df565b80156119245780601f106118f957610100808354040283529160200191611924565b820191906000526020600020905b81548152906001019060200180831161190757829003601f168201915b5050505050905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611a32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2990613c46565b60405180910390fd5b611a3a6120cb565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611a805750611a7f85611a7a6120cb565b61192e565b5b611abf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab690613bc6565b60405180910390fd5b6000611ac96120cb565b9050611ae9818787611ada8861245d565b611ae38861245d565b876120d3565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015611b80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7790613cc6565b60405180910390fd5b8381611b8c919061409c565b60008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c3e9190613f84565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051611cbb929190613de1565b60405180910390a4611cd1828888888888612523565b50505050505050565b611ce26120cb565b73ffffffffffffffffffffffffffffffffffffffff16611d006113cc565b73ffffffffffffffffffffffffffffffffffffffff1614611d56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4d90613ce6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611dc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbd90613ba6565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60095481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60606000821415611f3e576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506120c6565b600082905060005b60008214611f70578080611f5990614211565b915050600a82611f699190614011565b9150611f46565b60008167ffffffffffffffff811115611fb2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611fe45781602001600182028036833780820191505090505b50905060008290505b600086146120be57600181612002919061409c565b90506000600a80886120149190614011565b61201e9190614042565b87612029919061409c565b60306120359190613fda565b905060008160f81b905080848481518110612079577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a886120b59190614011565b97505050611fed565b819450505050505b919050565b600033905090565b505050505050565b6120fa8473ffffffffffffffffffffffffffffffffffffffff166126f3565b156122a3578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016121409594939291906139c5565b602060405180830381600087803b15801561215a57600080fd5b505af192505050801561218b57506040513d601f19601f820116820180604052508101906121889190613005565b60015b61221a57612197614392565b806121a257506121df565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d69190613b24565b60405180910390fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221190613b46565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146122a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229890613b66565b60405180910390fd5b505b505050505050565b600081836122b99190614042565b905092915050565b60065460055410612307576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122fe90613be6565b60405180910390fd5b60045443101561231657600080fd5b600061232f600160065461232a919061409c565b612706565b905060008110158015612343575060065481105b612382576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237990613d06565b60405180910390fd5b60008190505b6006548110156123d1576000600a60008381526020019081526020016000205414156123be576123b781612770565b505061245b565b80806123c990614211565b915050612388565b5060008190505b6000811061241f576000600a600083815260200190815260200160002054141561240c5761240581612770565b505061245b565b8080612417906141b5565b9150506123d8565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245290613c86565b60405180910390fd5b565b60606000600167ffffffffffffffff8111156124a2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156124d05781602001602082028036833780820191505090505b509050828160008151811061250e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b6125428473ffffffffffffffffffffffffffffffffffffffff166126f3565b156126eb578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612588959493929190613a2d565b602060405180830381600087803b1580156125a257600080fd5b505af19250505080156125d357506040513d601f19601f820116820180604052508101906125d09190613005565b60015b612662576125df614392565b806125ea5750612627565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261e9190613b24565b60405180910390fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265990613b46565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146126e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e090613b66565b60405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b600080600143612716919061409c565b905060006005543373ffffffffffffffffffffffffffffffffffffffff16834060001c6127439190613f84565b61274d9190613f84565b905060018461275c9190613f84565b816127679190614287565b92505050919050565b6000600a6000838152602001908152602001600020541415612801576001600a6000838152602001908152602001600020819055506127e7338260016040518060400160405280600681526020017f307830303030000000000000000000000000000000000000000000000000000081525061283f565b60016005546127f69190613f84565b60058190555061283c565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283390613c26565b60405180910390fd5b50565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156128af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a690613da6565b60405180910390fd5b60006128b96120cb565b90506128da816000876128cb8861245d565b6128d48861245d565b876120d3565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129399190613f84565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516129b7929190613de1565b60405180910390a46129ce81600087878787612523565b5050505050565b8280546129e1906141df565b90600052602060002090601f016020900481019282612a035760008555612a4a565b82601f10612a1c57805160ff1916838001178555612a4a565b82800160010185558215612a4a579182015b82811115612a49578251825591602001919060010190612a2e565b5b509050612a579190612a5b565b5090565b5b80821115612a74576000816000905550600101612a5c565b5090565b6000612a8b612a8684613e3b565b613e0a565b90508083825260208201905082856020860282011115612aaa57600080fd5b60005b85811015612ada5781612ac08882612bcc565b845260208401935060208301925050600181019050612aad565b5050509392505050565b6000612af7612af284613e67565b613e0a565b90508083825260208201905082856020860282011115612b1657600080fd5b60005b85811015612b465781612b2c8882612cf2565b845260208401935060208301925050600181019050612b19565b5050509392505050565b6000612b63612b5e84613e93565b613e0a565b905082815260208101848484011115612b7b57600080fd5b612b86848285614173565b509392505050565b6000612ba1612b9c84613ec3565b613e0a565b905082815260208101848484011115612bb957600080fd5b612bc4848285614173565b509392505050565b600081359050612bdb81614448565b92915050565b600082601f830112612bf257600080fd5b8135612c02848260208601612a78565b91505092915050565b600082601f830112612c1c57600080fd5b8135612c2c848260208601612ae4565b91505092915050565b600081359050612c448161445f565b92915050565b600081519050612c598161445f565b92915050565b600081359050612c6e81614476565b92915050565b600081519050612c8381614476565b92915050565b600082601f830112612c9a57600080fd5b8135612caa848260208601612b50565b91505092915050565b600081359050612cc28161448d565b92915050565b600082601f830112612cd957600080fd5b8135612ce9848260208601612b8e565b91505092915050565b600081359050612d01816144a4565b92915050565b600081519050612d16816144a4565b92915050565b600060208284031215612d2e57600080fd5b6000612d3c84828501612bcc565b91505092915050565b60008060408385031215612d5857600080fd5b6000612d6685828601612bcc565b9250506020612d7785828601612bcc565b9150509250929050565b600080600080600060a08688031215612d9957600080fd5b6000612da788828901612bcc565b9550506020612db888828901612bcc565b945050604086013567ffffffffffffffff811115612dd557600080fd5b612de188828901612c0b565b935050606086013567ffffffffffffffff811115612dfe57600080fd5b612e0a88828901612c0b565b925050608086013567ffffffffffffffff811115612e2757600080fd5b612e3388828901612c89565b9150509295509295909350565b600080600080600060a08688031215612e5857600080fd5b6000612e6688828901612bcc565b9550506020612e7788828901612bcc565b9450506040612e8888828901612cf2565b9350506060612e9988828901612cf2565b925050608086013567ffffffffffffffff811115612eb657600080fd5b612ec288828901612c89565b9150509295509295909350565b60008060408385031215612ee257600080fd5b6000612ef085828601612bcc565b9250506020612f0185828601612c35565b9150509250929050565b60008060408385031215612f1e57600080fd5b6000612f2c85828601612bcc565b9250506020612f3d85828601612cf2565b9150509250929050565b60008060408385031215612f5a57600080fd5b600083013567ffffffffffffffff811115612f7457600080fd5b612f8085828601612be1565b925050602083013567ffffffffffffffff811115612f9d57600080fd5b612fa985828601612c0b565b9150509250929050565b600060208284031215612fc557600080fd5b6000612fd384828501612c4a565b91505092915050565b600060208284031215612fee57600080fd5b6000612ffc84828501612c5f565b91505092915050565b60006020828403121561301757600080fd5b600061302584828501612c74565b91505092915050565b60006020828403121561304057600080fd5b600061304e84828501612cb3565b91505092915050565b60006020828403121561306957600080fd5b600082013567ffffffffffffffff81111561308357600080fd5b61308f84828501612cc8565b91505092915050565b6000602082840312156130aa57600080fd5b60006130b884828501612cf2565b91505092915050565b6000602082840312156130d357600080fd5b60006130e184828501612d07565b91505092915050565b60006130f68383613968565b60208301905092915050565b61310b816140d0565b82525050565b600061311c82613f18565b6131268185613f46565b935061313183613ef3565b8060005b8381101561316257815161314988826130ea565b975061315483613f39565b925050600181019050613135565b5085935050505092915050565b613178816140e2565b82525050565b600061318982613f23565b6131938185613f57565b93506131a3818560208601614182565b6131ac81614374565b840191505092915050565b60006131c282613f2e565b6131cc8185613f68565b93506131dc818560208601614182565b6131e581614374565b840191505092915050565b60006131fb82613f2e565b6132058185613f79565b9350613215818560208601614182565b80840191505092915050565b6000815461322e816141df565b6132388186613f79565b94506001821660008114613253576001811461326457613297565b60ff19831686528186019350613297565b61326d85613f03565b60005b8381101561328f57815481890152600182019150602081019050613270565b838801955050505b50505092915050565b60006132ad603483613f68565b91507f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008301527f526563656976657220696d706c656d656e7465720000000000000000000000006020830152604082019050919050565b6000613313602883613f68565b91507f455243313135353a204552433131353552656365697665722072656a6563746560008301527f6420746f6b656e730000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613379602b83613f68565b91507f455243313135353a2062616c616e636520717565727920666f7220746865207a60008301527f65726f20616464726573730000000000000000000000000000000000000000006020830152604082019050919050565b60006133df602683613f68565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613445602983613f68565b91507f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008301527f20617070726f76656400000000000000000000000000000000000000000000006020830152604082019050919050565b60006134ab601183613f68565b91507f4e6f206d6f7265206b6e6565636170732e0000000000000000000000000000006000830152602082019050919050565b60006134eb601a83613f68565b91507f747279696e6720746f20736e65616b206f6e652062792065683f0000000000006000830152602082019050919050565b600061352b600683613f68565b91507f4e6f2063617000000000000000000000000000000000000000000000000000006000830152602082019050919050565b600061356b602583613f68565b91507f455243313135353a207472616e7366657220746f20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006135d1603283613f68565b91507f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008301527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006020830152604082019050919050565b6000613637600f83613f68565b91507f736861766520796f7572206c65677300000000000000000000000000000000006000830152602082019050919050565b6000613677601e83613f68565b91507f4e6f7420656e6f756768206b6e6565636170732072656d61696e696e672e00006000830152602082019050919050565b60006136b7602a83613f68565b91507f455243313135353a20696e73756666696369656e742062616c616e636520666f60008301527f72207472616e73666572000000000000000000000000000000000000000000006020830152604082019050919050565b600061371d602083613f68565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b600061375d601783613f68565b91507f4e6f206d61746368696e6720736f636b20666f756e642e0000000000000000006000830152602082019050919050565b600061379d601583613f68565b91507f3133206d61782e2043616e20796f7520726561643f00000000000000000000006000830152602082019050919050565b60006137dd602983613f68565b91507f455243313135353a2073657474696e6720617070726f76616c2073746174757360008301527f20666f722073656c6600000000000000000000000000000000000000000000006020830152604082019050919050565b6000613843602983613f68565b91507f455243313135353a206163636f756e747320616e6420696473206c656e67746860008301527f206d69736d6174636800000000000000000000000000000000000000000000006020830152604082019050919050565b60006138a9602883613f68565b91507f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008301527f6d69736d617463680000000000000000000000000000000000000000000000006020830152604082019050919050565b600061390f602183613f68565b91507f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6139718161414c565b82525050565b6139808161414c565b82525050565b60006139928285613221565b915061399e82846131f0565b91508190509392505050565b60006020820190506139bf6000830184613102565b92915050565b600060a0820190506139da6000830188613102565b6139e76020830187613102565b81810360408301526139f98186613111565b90508181036060830152613a0d8185613111565b90508181036080830152613a21818461317e565b90509695505050505050565b600060a082019050613a426000830188613102565b613a4f6020830187613102565b613a5c6040830186613977565b613a696060830185613977565b8181036080830152613a7b818461317e565b90509695505050505050565b6000604082019050613a9c6000830185613102565b613aa96020830184613977565b9392505050565b60006020820190508181036000830152613aca8184613111565b905092915050565b60006040820190508181036000830152613aec8185613111565b90508181036020830152613b008184613111565b90509392505050565b6000602082019050613b1e600083018461316f565b92915050565b60006020820190508181036000830152613b3e81846131b7565b905092915050565b60006020820190508181036000830152613b5f816132a0565b9050919050565b60006020820190508181036000830152613b7f81613306565b9050919050565b60006020820190508181036000830152613b9f8161336c565b9050919050565b60006020820190508181036000830152613bbf816133d2565b9050919050565b60006020820190508181036000830152613bdf81613438565b9050919050565b60006020820190508181036000830152613bff8161349e565b9050919050565b60006020820190508181036000830152613c1f816134de565b9050919050565b60006020820190508181036000830152613c3f8161351e565b9050919050565b60006020820190508181036000830152613c5f8161355e565b9050919050565b60006020820190508181036000830152613c7f816135c4565b9050919050565b60006020820190508181036000830152613c9f8161362a565b9050919050565b60006020820190508181036000830152613cbf8161366a565b9050919050565b60006020820190508181036000830152613cdf816136aa565b9050919050565b60006020820190508181036000830152613cff81613710565b9050919050565b60006020820190508181036000830152613d1f81613750565b9050919050565b60006020820190508181036000830152613d3f81613790565b9050919050565b60006020820190508181036000830152613d5f816137d0565b9050919050565b60006020820190508181036000830152613d7f81613836565b9050919050565b60006020820190508181036000830152613d9f8161389c565b9050919050565b60006020820190508181036000830152613dbf81613902565b9050919050565b6000602082019050613ddb6000830184613977565b92915050565b6000604082019050613df66000830185613977565b613e036020830184613977565b9392505050565b6000604051905081810181811067ffffffffffffffff82111715613e3157613e30614345565b5b8060405250919050565b600067ffffffffffffffff821115613e5657613e55614345565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613e8257613e81614345565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613eae57613ead614345565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff821115613ede57613edd614345565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613f8f8261414c565b9150613f9a8361414c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613fcf57613fce6142b8565b5b828201905092915050565b6000613fe582614166565b9150613ff083614166565b92508260ff03821115614006576140056142b8565b5b828201905092915050565b600061401c8261414c565b91506140278361414c565b925082614037576140366142e7565b5b828204905092915050565b600061404d8261414c565b91506140588361414c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614091576140906142b8565b5b828202905092915050565b60006140a78261414c565b91506140b28361414c565b9250828210156140c5576140c46142b8565b5b828203905092915050565b60006140db8261412c565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000614125826140d0565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156141a0578082015181840152602081019050614185565b838111156141af576000848401525b50505050565b60006141c08261414c565b915060008214156141d4576141d36142b8565b5b600182039050919050565b600060028204905060018216806141f757607f821691505b6020821081141561420b5761420a614316565b5b50919050565b600061421c8261414c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561424f5761424e6142b8565b5b600182019050919050565b600061426582614156565b915063ffffffff82141561427c5761427b6142b8565b5b600182019050919050565b60006142928261414c565b915061429d8361414c565b9250826142ad576142ac6142e7565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d10156143a257614445565b60046000803e6143b3600051614385565b6308c379a081146143c45750614445565b60405160043d036004823e80513d602482011167ffffffffffffffff821117156143f057505050614445565b808201805167ffffffffffffffff81111561440f575050505050614445565b8060208301013d850181111561442a57505050505050614445565b61443382614374565b60208401016040528296505050505050505b90565b614451816140d0565b811461445c57600080fd5b50565b614468816140e2565b811461447357600080fd5b50565b61447f816140ee565b811461448a57600080fd5b50565b6144968161411a565b81146144a157600080fd5b50565b6144ad8161414c565b81146144b857600080fd5b5056fea26469706673582212200bd623fbf3d744135edea5a0d18df4c831ec1979c7e1d9ec6a9be838cf94f59f64736f6c63430008000033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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