ETH Price: $3,541.44 (-1.30%)
Gas: 23 Gwei

Contract

0x6Cca5F4f85Bd9eB79189C15b87CA480d57E27490
 

Overview

ETH Balance

1.567359857466409881 ETH

Eth Value

$5,550.71 (@ $3,541.44/ETH)

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Claim Reward Bat...172666992023-05-15 17:36:11318 days ago1684172171IN
0x6Cca5F4f...d57E27490
0 ETH0.0025390259.53733842
Claim Reward Bat...172666942023-05-15 17:35:11318 days ago1684172111IN
0x6Cca5F4f...d57E27490
0 ETH0.0028775867.47611687
Claim Reward Bat...172666882023-05-15 17:33:59318 days ago1684172039IN
0x6Cca5F4f...d57E27490
0 ETH0.0039813959.73857467
Claim Reward172666802023-05-15 17:32:23318 days ago1684171943IN
0x6Cca5F4f...d57E27490
0 ETH0.0025660761.53510956
Claim Reward Bat...167431912023-03-02 20:18:59392 days ago1677788339IN
0x6Cca5F4f...d57E27490
0 ETH0.0159446625.27348518
Claim Reward Bat...167431202023-03-02 20:04:47392 days ago1677787487IN
0x6Cca5F4f...d57E27490
0 ETH0.0099310532.95086026
Claim Reward Bat...167431092023-03-02 20:02:35392 days ago1677787355IN
0x6Cca5F4f...d57E27490
0 ETH0.0116429836.25042463
Claim Reward Bat...167430982023-03-02 20:00:23392 days ago1677787223IN
0x6Cca5F4f...d57E27490
0 ETH0.0080959425.98226577
Claim Tokens155361132022-09-15 1:21:44561 days ago1663204904IN
0x6Cca5F4f...d57E27490
0 ETH0.0007207911.33920454
Claim Reward Bat...155360442022-09-15 1:02:13561 days ago1663203733IN
0x6Cca5F4f...d57E27490
0 ETH0.000409339.59849996
Claim Tokens Bat...155329932022-09-14 12:40:40561 days ago1663159240IN
0x6Cca5F4f...d57E27490
0 ETH0.0010356615
Claim Reward155153232022-09-11 14:21:17564 days ago1662906077IN
0x6Cca5F4f...d57E27490
0 ETH0.000247276.49051379
Claim Tokens154796932022-09-05 19:37:50570 days ago1662406670IN
0x6Cca5F4f...d57E27490
0 ETH0.0008440212.34545847
Set Approval For...154440062022-08-31 2:25:18576 days ago1661912718IN
0x6Cca5F4f...d57E27490
0 ETH0.00045189.79538468
Claim Reward Bat...154046992022-08-24 19:17:49582 days ago1661368669IN
0x6Cca5F4f...d57E27490
0 ETH0.001177397.72214408
Claim Tokens154046982022-08-24 19:17:32582 days ago1661368652IN
0x6Cca5F4f...d57E27490
0 ETH0.000186417.0315605
Claim Tokens154046942022-08-24 19:16:32582 days ago1661368592IN
0x6Cca5F4f...d57E27490
0 ETH0.000509688.01808795
Claim Tokens Bat...153337092022-08-13 13:32:41593 days ago1660397561IN
0x6Cca5F4f...d57E27490
0 ETH0.06597146.51647718
Claim Reward152193562022-07-26 17:11:39611 days ago1658855499IN
0x6Cca5F4f...d57E27490
0 ETH0.0010605725.43278775
Claim Tokens150623322022-07-02 9:32:13636 days ago1656754333IN
0x6Cca5F4f...d57E27490
0 ETH0.000732399.07918438
Claim Tokens Bat...149489502022-06-12 7:29:52656 days ago1655018992IN
0x6Cca5F4f...d57E27490
0 ETH0.0020162824.78719074
Claim Tokens Bat...148133182022-05-20 21:09:24678 days ago1653080964IN
0x6Cca5F4f...d57E27490
0 ETH0.0030206227.12366532
Claim Tokens147963222022-05-18 2:50:14681 days ago1652842214IN
0x6Cca5F4f...d57E27490
0 ETH0.0014411528.11079706
Claim Tokens147929902022-05-17 14:16:10681 days ago1652796970IN
0x6Cca5F4f...d57E27490
0 ETH0.0033264741.23708727
Claim Tokens Bat...147714302022-05-14 3:53:11685 days ago1652500391IN
0x6Cca5F4f...d57E27490
0 ETH0.0015144229.15502107
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Txn Hash Block From To Value
172666992023-05-15 17:36:11318 days ago1684172171
0x6Cca5F4f...d57E27490
0.02657429 ETH
172666942023-05-15 17:35:11318 days ago1684172111
0x6Cca5F4f...d57E27490
0.00583896 ETH
172666882023-05-15 17:33:59318 days ago1684172039
0x6Cca5F4f...d57E27490
0.10782782 ETH
172666802023-05-15 17:32:23318 days ago1684171943
0x6Cca5F4f...d57E27490
0.04241689 ETH
167431912023-03-02 20:18:59392 days ago1677788339
0x6Cca5F4f...d57E27490
0.98225817 ETH
167431202023-03-02 20:04:47392 days ago1677787487
0x6Cca5F4f...d57E27490
0.36537129 ETH
167431092023-03-02 20:02:35392 days ago1677787355
0x6Cca5F4f...d57E27490
0.45143708 ETH
167430982023-03-02 20:00:23392 days ago1677787223
0x6Cca5F4f...d57E27490
0.35708396 ETH
163605652023-01-08 7:25:23446 days ago1673162723
0x6Cca5F4f...d57E27490
0 ETH
159648272022-11-14 0:55:23501 days ago1668387323
0x6Cca5F4f...d57E27490
0 ETH
159184222022-11-07 13:23:35507 days ago1667827415
0x6Cca5F4f...d57E27490
0 ETH
159036442022-11-05 11:53:23509 days ago1667649203
0x6Cca5F4f...d57E27490
0 ETH
158951802022-11-04 7:32:59511 days ago1667547179
0x6Cca5F4f...d57E27490
0.00000039 ETH
158759892022-11-01 15:11:59513 days ago1667315519
0x6Cca5F4f...d57E27490
0 ETH
158759862022-11-01 15:11:23513 days ago1667315483
0x6Cca5F4f...d57E27490
0 ETH
158759842022-11-01 15:10:59513 days ago1667315459
0x6Cca5F4f...d57E27490
0 ETH
158565892022-10-29 22:07:11516 days ago1667081231
0x6Cca5F4f...d57E27490
0.00000178 ETH
158565752022-10-29 22:04:23516 days ago1667081063
0x6Cca5F4f...d57E27490
0.0000043 ETH
158301842022-10-26 5:33:59520 days ago1666762439
0x6Cca5F4f...d57E27490
0 ETH
158301572022-10-26 5:28:35520 days ago1666762115
0x6Cca5F4f...d57E27490
0 ETH
158230022022-10-25 5:27:11521 days ago1666675631
0x6Cca5F4f...d57E27490
0.00000011 ETH
158194432022-10-24 17:28:59521 days ago1666632539
0x6Cca5F4f...d57E27490
0 ETH
158159832022-10-24 5:49:47522 days ago1666590587
0x6Cca5F4f...d57E27490
0.00000031 ETH
158159712022-10-24 5:47:23522 days ago1666590443
0x6Cca5F4f...d57E27490
0 ETH
158159682022-10-24 5:46:47522 days ago1666590407
0x6Cca5F4f...d57E27490
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DropperToken

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 1000000 runs

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

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "./interfaces/IDropperToken.sol";

contract DropperToken is IDropperToken, ERC1155, AccessControl, ERC1155Supply {
    bytes32 public constant URI_SETTER_ROLE = keccak256("URI_SETTER_ROLE");
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

    event RewardClaimed(address indexed owner, uint256 indexed id, uint256 reward);
    event TokensClaimed(address indexed owner, uint256 indexed id, uint256 amount);

    struct OwnerRewardInfo {
        uint96 updatedAtReward;
        uint40 mintableBalance;
        uint120 rewardBalance;
    }

    string private _contractUri;
    mapping(address => mapping(uint256 => bool)) private _addressToMintedForToken;
    mapping(uint256 => mapping(address => OwnerRewardInfo)) private _ownerRewardInfo;
    mapping(uint256 => uint256) private _rewardPerShare;
    mapping(uint256 => uint256) private _totalMintableSupply;

    constructor() ERC1155("") {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(URI_SETTER_ROLE, msg.sender);
        _grantRole(MINTER_ROLE, msg.sender);
    }

    function setURI(string memory newUri) external onlyRole(URI_SETTER_ROLE) {
        _setURI(newUri);
    }

    function setContractURI(string memory contractUri) external onlyRole(URI_SETTER_ROLE) {
        _setContractURI(contractUri);
    }

    function tryAddMintable(
        address[] memory to,
        uint256[] memory amounts,
        address tokenAddress,
        uint256 tokenId)
        external
        onlyRole(MINTER_ROLE)
    {
        bool isMinted = _addressToMintedForToken[tokenAddress][tokenId];
        if (isMinted == true) {
            return;
        }

        _addressToMintedForToken[tokenAddress][tokenId] = true;
        _addMintableTokens(to, amounts, tokenAddress, 1);
    }

    function tryAddMintableBatch(
        address[] memory to,
        uint256[] memory amounts,
        address tokenAddress,
        uint256[] memory tokenIds)
        external
        onlyRole(MINTER_ROLE)
    {
        uint256 count;
        for(uint256 i = 0; i < tokenIds.length; i++) {
            bool isMinted = _addressToMintedForToken[tokenAddress][tokenIds[i]];
            if (isMinted == false) {
                _addressToMintedForToken[tokenAddress][tokenIds[i]] = true;
                count++;
            }
        }

        if (count == 0) {
            return;
        }

        _addMintableTokens(to, amounts, tokenAddress, count);
    }

    function addReward(address tokenAddress) external payable { 
        require(msg.value > 0, "DropperToken: reward cannot be 0");

        uint256 id = _getId(tokenAddress);
        uint256 totalSupplyValue = totalSupply(id) + _totalMintableSupply[id];
        require(totalSupplyValue > 0, "DropperToken: no reward recipients");

        _rewardPerShare[id] += msg.value / totalSupplyValue;
    }

    function claimReward(uint256 id) external {
        OwnerRewardInfo storage info = _ownerRewardInfo[id][msg.sender];
        _updateOwnerReward(info, msg.sender, id);

        uint256 rewardBalance = info.rewardBalance;
        require(rewardBalance > 0, "DropperToken: nothing to claim");

        info.rewardBalance = 0;

        payable(msg.sender).transfer(rewardBalance);
        emit RewardClaimed(msg.sender, id, rewardBalance);
    }

    function claimRewardBatch(uint256[] calldata ids) external {
        uint256 total = 0;
        for(uint256 i = 0; i < ids.length; i++) {
            OwnerRewardInfo storage info = _ownerRewardInfo[ids[i]][msg.sender];
            _updateOwnerReward(info, msg.sender, ids[i]);

            uint256 rewardBalance = info.rewardBalance;
            if (rewardBalance > 0) {
                info.rewardBalance = 0;
                total = total + rewardBalance;
                emit RewardClaimed(msg.sender, ids[i], rewardBalance);
            }
        }

        require(total > 0, "DropperToken: nothing to claim");
        payable(msg.sender).transfer(total);
    }

    function claimTokens(uint256 id) external {
        _claimTokens(id);
    }

    function claimTokensBatch(uint256[] calldata ids) external {
        for(uint256 i = 0; i < ids.length; i++) {
            _claimTokens(ids[i]);
        }
    }

    function rewardBalanceOf(address owner, uint256 id) external view returns (uint256) {
        return _rewardBalanceOf(owner, id);
    }

    function rewardBalanceOfBatch(address[] calldata owners, uint256[] calldata ids) external view returns (uint256[] memory) {
        require(owners.length == ids.length, "DropperToken: owners and ids length mismatch");

        uint256[] memory balances = new uint256[](ids.length);
        for (uint256 i = 0; i < ids.length; i++) {
            balances[i] = _rewardBalanceOf(owners[i], ids[i]);
        }

        return balances;
    }

    function mintableBalanceOf(address owner, uint256 id) external view returns (uint256) {
        return _mintableBalanceOf(owner, id);
    }

    function mintableBalanceOfBatch(address[] calldata owners, uint256[] calldata ids) external view returns (uint256[] memory) {
        require(owners.length == ids.length, "DropperToken: owners and ids length mismatch");

        uint256[] memory balances = new uint256[](ids.length);
        for (uint256 i = 0; i < ids.length; i++) {
            balances[i] = _mintableBalanceOf(owners[i], ids[i]);
        }

        return balances;
    }

    function isMintedForToken(address tokenAddress, uint256 tokenId) external view returns (bool) {
        return _isMintedForToken(tokenAddress, tokenId);
    }

    function isMintedForTokenBatch(address[] calldata tokenAddresses, uint256[] calldata tokenIds) external view returns (bool[] memory) {
        require(tokenAddresses.length == tokenIds.length, "DropperToken: tokenAddresses and tokenIds length mismatch");

        bool[] memory isMinted = new bool[](tokenIds.length);
        for (uint256 i = 0; i < tokenIds.length; i++) {
            isMinted[i] = _isMintedForToken(tokenAddresses[i], tokenIds[i]);
        }

        return isMinted;
    }

    function totalMintableSupply(uint256 id) external view returns (uint256) {
        return _totalMintableSupply[id];
    }

    function totalMintableSupplyBatch(uint256[] calldata ids) external view returns (uint256[] memory) {
        uint256[] memory supply = new uint256[](ids.length);
        for (uint256 i = 0; i < ids.length; i++) {
            supply[i] = _totalMintableSupply[ids[i]];
        }

        return supply;
    }

    function totalSupplyBatch(uint256[] calldata ids) external view returns (uint256[] memory) {
        uint256[] memory supply = new uint256[](ids.length);
        for (uint256 i = 0; i < ids.length; i++) {
            supply[i] = totalSupply(ids[i]);
        }

        return supply;
    }

    function getAddress(uint256 id) external pure returns (address) {
        return _getAddress(id);
    }

    function getAddressBatch(uint256[] calldata ids) external pure returns (address[] memory) {
        address[] memory addresses = new address[](ids.length);
        for (uint256 i = 0; i < ids.length; i++) {
            addresses[i] = _getAddress(ids[i]);
        }

        return addresses;
    }

    function getId(address tokenAddress) external pure returns (uint256) {
        return _getId(tokenAddress);
    }

    function getIdBatch(address[] calldata tokenAddresses) external pure returns (uint256[] memory) {
        uint256[] memory ids = new uint256[](tokenAddresses.length);
        for (uint256 i = 0; i < tokenAddresses.length; i++) {
            ids[i] = _getId(tokenAddresses[i]);
        }

        return ids;
    }
    
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(IERC165, ERC1155, AccessControl)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
    
    function contractURI() public view returns (string memory) {
        return _contractUri;
    }

    function uri(uint256 id) public view override(ERC1155) returns (string memory) { 
        return string(bytes.concat(bytes(super.uri(id)), bytes(Strings.toString(id))));
    }

    function _setContractURI(string memory contractUri) internal {
        _contractUri = contractUri;
    }

    function _addMintableTokens(
        address[] memory to,
        uint256[] memory amounts,
        address tokenAddress,
        uint256 count)
        internal
    {
        uint256 addedSupply;
        uint256 id = _getId(tokenAddress);
        for (uint256 i = 0; i < to.length; i++) {
            OwnerRewardInfo storage info = _ownerRewardInfo[id][to[i]];
            _updateOwnerReward(info, to[i], id);
            uint40 addAmount = uint40(amounts[i] * count);
            info.mintableBalance += addAmount;
            addedSupply += addAmount;
        }

        _totalMintableSupply[id] += addedSupply;
    }

    function _updateOwnerReward(OwnerRewardInfo storage info, address owner, uint256 id) internal {
        uint256 currentReward = _rewardPerShare[id];
        if (info.updatedAtReward == currentReward) {
            return;
        }

        uint256 newRewardBalance = _calculateRewardBalance(info, owner, id, currentReward);
        if (info.rewardBalance != newRewardBalance) {
            info.rewardBalance = uint120(newRewardBalance);
        }

        info.updatedAtReward = uint96(currentReward);
    }

    function _claimTokens(uint256 id) internal {
        OwnerRewardInfo storage info = _ownerRewardInfo[id][msg.sender];
        _updateOwnerReward(info, msg.sender, id);

        uint256 mintableBalance = info.mintableBalance;
        require(mintableBalance > 0, "DropperToken: nothing to claim");

        info.mintableBalance = 0;
        _totalMintableSupply[id] -= mintableBalance;

        _mint(msg.sender, id, mintableBalance, "");
        emit TokensClaimed(msg.sender, id, mintableBalance);
    }

    function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data)
        internal
        override(ERC1155, ERC1155Supply)
    {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from != address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _updateOwnerReward(_ownerRewardInfo[ids[i]][from], from, ids[i]);
            }
        }

        for (uint256 i = 0; i < ids.length; ++i) {
            _updateOwnerReward(_ownerRewardInfo[ids[i]][to], to, ids[i]);
        }
    }

    function _rewardBalanceOf(address owner, uint256 id) internal view returns (uint256) {
        OwnerRewardInfo memory info = _ownerRewardInfo[id][owner];
        return _calculateRewardBalance(info, owner, id, _rewardPerShare[id]);
    }

    function _calculateRewardBalance(OwnerRewardInfo memory info, address owner, uint256 id, uint256 currentReward) internal view returns (uint256) {
        uint256 balance = balanceOf(owner, id) + info.mintableBalance;
        if (balance != 0) {
            uint256 userReward = balance * (currentReward - info.updatedAtReward);
            return info.rewardBalance + userReward;
        }

        return info.rewardBalance;
    }

    function _mintableBalanceOf(address owner, uint256 id) internal view returns (uint256) {
        return _ownerRewardInfo[id][owner].mintableBalance;
    }

    function _isMintedForToken(address tokenAddress, uint256 tokenId) internal view returns (bool) {
        return _addressToMintedForToken[tokenAddress][tokenId];
    }

    function _getId(address tokenAddress) internal pure returns (uint256) {
        return uint256(uint160(tokenAddress));
    }

    function _getAddress(uint256 id) internal pure returns (address) {
        return address(uint160(id));
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 5 of 14 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

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

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] -= amounts[i];
            }
        }
    }
}

File 6 of 14 : IDropperToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

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

interface IDropperToken is IERC1155 {
    function tryAddMintable(address[] memory to, uint256[] memory amounts, address tokenAddress, uint256 tokenId) external;

    function tryAddMintableBatch(address[] memory to, uint256[] memory amounts, address tokenAddress, uint256[] memory tokenIds) external;

    function addReward(address tokenAddress) external payable;

    function claimRewardBatch(uint256[] calldata ids) external;

    function claimTokens(uint256 id) external;

    function claimTokensBatch(uint256[] calldata ids) external;

    function getId(address tokenAddress) external view returns (uint256);

    function mintableBalanceOf(address owner, uint256 id) external view returns (uint256);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

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":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"URI_SETTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"addReward","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"claimRewardBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"claimTokensBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uint256","name":"id","type":"uint256"}],"name":"getAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"getAddressBatch","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"getId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenAddresses","type":"address[]"}],"name":"getIdBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isMintedForToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenAddresses","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"isMintedForTokenBatch","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"mintableBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"mintableBalanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"rewardBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"rewardBalanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractUri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalMintableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"totalMintableSupplyBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"uint256[]","name":"ids","type":"uint256[]"}],"name":"totalSupplyBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tryAddMintable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"tryAddMintableBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506040805160208101909152600081526200002c8162000098565b506200003a600033620000b1565b620000667f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c33620000b1565b620000927f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620000b1565b62000238565b8051620000ad90600290602084019062000155565b5050565b60008281526003602090815260408083206001600160a01b038516845290915290205460ff16620000ad5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001113390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200016390620001fb565b90600052602060002090601f016020900481019282620001875760008555620001d2565b82601f10620001a257805160ff1916838001178555620001d2565b82800160010185558215620001d2579182015b82811115620001d2578251825591602001919060010190620001b5565b50620001e0929150620001e4565b5090565b5b80821115620001e05760008155600101620001e5565b600181811c908216806200021057607f821691505b602082108114156200023257634e487b7160e01b600052602260045260246000fd5b50919050565b6148ee80620002486000396000f3fe6080604052600436106102c55760003560e01c806377954ac211610179578063adbd72cb116100d6578063d53913931161008a578063e985e9c511610064578063e985e9c514610879578063f242432a146108cf578063f9d23002146108ef57600080fd5b8063d539139314610810578063d547741f14610844578063e8a3d4851461086457600080fd5b8063b895393b116100bb578063b895393b14610771578063b93f9b0a1461079e578063bd85b039146107e357600080fd5b8063adbd72cb14610724578063ae169a501461075157600080fd5b8063938e3d7b1161012d578063a217fddf11610112578063a217fddf146106cf578063a22cb465146106e4578063ad7945381461070457600080fd5b8063938e3d7b1461069c5780639c9b2e21146106bc57600080fd5b80638062d0261161015e5780638062d0261461060957806386580bef1461062957806391d148541461064957600080fd5b806377954ac2146105b55780637f345710146105d557600080fd5b806336568abe116102275780634e0ce0f5116101db5780634f558e79116101c05780634f558e79146105465780635794bd8e1461057557806365f68c891461059557600080fd5b80634e0ce0f5146104f95780634e1273f41461052657600080fd5b80633bb68dc41161020c5780633bb68dc41461049957806341243d6b146104b957806346e04a2f146104d957600080fd5b806336568abe1461045957806337da401e1461047957600080fd5b80630e89341c1161027e578063248a9ca311610263578063248a9ca3146103e95780632eb2c2d6146104195780632f2ff15d1461043957600080fd5b80630e89341c1461039c5780631a44f22d146103c957600080fd5b806302276d23116102af57806302276d231461032d57806302fe53051461035a5780630e4c6ea31461037c57600080fd5b8062fdd58e146102ca57806301ffc9a7146102fd575b600080fd5b3480156102d657600080fd5b506102ea6102e5366004613bb2565b61090f565b6040519081526020015b60405180910390f35b34801561030957600080fd5b5061031d610318366004613c0a565b6109ec565b60405190151581526020016102f4565b34801561033957600080fd5b5061034d610348366004613c73565b6109fd565b6040516102f49190613d1a565b34801561036657600080fd5b5061037a610375366004613e23565b610ba9565b005b34801561038857600080fd5b5061037a610397366004613f6e565b610be1565b3480156103a857600080fd5b506103bc6103b7366004613fea565b610cc5565b6040516102f49190614079565b3480156103d557600080fd5b506102ea6103e4366004613bb2565b610d00565b3480156103f557600080fd5b506102ea610404366004613fea565b60009081526003602052604090206001015490565b34801561042557600080fd5b5061037a6104343660046140ac565b610d4f565b34801561044557600080fd5b5061037a610454366004614156565b610e11565b34801561046557600080fd5b5061037a610474366004614156565b610e3c565b34801561048557600080fd5b5061034d610494366004614182565b610eeb565b3480156104a557600080fd5b5061037a6104b43660046141c4565b610fb9565b3480156104c557600080fd5b5061037a6104d4366004614182565b6110f5565b3480156104e557600080fd5b5061037a6104f4366004613fea565b611133565b34801561050557600080fd5b50610519610514366004614182565b61113f565b6040516102f4919061425d565b34801561053257600080fd5b5061034d6105413660046142b7565b6111fb565b34801561055257600080fd5b5061031d610561366004613fea565b600090815260046020526040902054151590565b34801561058157600080fd5b5061037a610590366004614182565b61134b565b3480156105a157600080fd5b506102ea6105b036600461431b565b611554565b3480156105c157600080fd5b5061034d6105d0366004614182565b611572565b3480156105e157600080fd5b506102ea7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c81565b34801561061557600080fd5b506102ea610624366004613bb2565b611623565b34801561063557600080fd5b5061034d610644366004613c73565b61162f565b34801561065557600080fd5b5061031d610664366004614156565b600091825260036020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156106a857600080fd5b5061037a6106b7366004613e23565b611789565b61037a6106ca36600461431b565b6117bd565b3480156106db57600080fd5b506102ea600081565b3480156106f057600080fd5b5061037a6106ff366004614336565b611926565b34801561071057600080fd5b5061031d61071f366004613bb2565b611931565b34801561073057600080fd5b5061074461073f366004613c73565b61196a565b6040516102f49190614372565b34801561075d57600080fd5b5061037a61076c366004613fea565b611afc565b34801561077d57600080fd5b506102ea61078c366004613fea565b60009081526009602052604090205490565b3480156107aa57600080fd5b506107be6107b9366004613fea565b611c34565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102f4565b3480156107ef57600080fd5b506102ea6107fe366004613fea565b60009081526004602052604090205490565b34801561081c57600080fd5b506102ea7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b34801561085057600080fd5b5061037a61085f366004614156565b611c3c565b34801561087057600080fd5b506103bc611c62565b34801561088557600080fd5b5061031d6108943660046143ac565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156108db57600080fd5b5061037a6108ea3660046143d6565b611cf4565b3480156108fb57600080fd5b5061034d61090a366004614182565b611db6565b600073ffffffffffffffffffffffffffffffffffffffff83166109b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526020818152604080832073ffffffffffffffffffffffffffffffffffffffff949094168352929052205490565b60006109f782611e65565b92915050565b6060838214610a8e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f44726f70706572546f6b656e3a206f776e65727320616e6420696473206c656e60448201527f677468206d69736d61746368000000000000000000000000000000000000000060648201526084016109b0565b60008267ffffffffffffffff811115610aa957610aa9613d2d565b604051908082528060200260200182016040528015610ad2578160200160208202803683370190505b50905060005b83811015610b9d57610b6e878783818110610af557610af561443b565b9050602002016020810190610b0a919061431b565b868684818110610b1c57610b1c61443b565b90506020020135600090815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff94909416835292905220546c01000000000000000000000000900464ffffffffff1690565b828281518110610b8057610b8061443b565b602090810291909101015280610b9581614499565b915050610ad8565b5090505b949350505050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c610bd48133611ebb565b610bdd82611f8d565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610c0c8133611ebb565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260066020908152604080832085845290915290205460ff1680151560011415610c515750610cbe565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600660209081526040808320868452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001908117909155610cbc90879087908790611fa0565b505b5050505050565b6060610cd08261211b565b610cd9836121af565b604051602001610cea9291906144d2565b6040516020818303038152906040529050919050565b600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff861684529091528120546c01000000000000000000000000900464ffffffffff165b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8516331480610d785750610d788533610894565b610e04576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016109b0565b610cbe85858585856122e1565b600082815260036020526040902060010154610e2d8133611ebb565b610e378383612621565b505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610ee1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016109b0565b610bdd8282612715565b606060008267ffffffffffffffff811115610f0857610f08613d2d565b604051908082528060200260200182016040528015610f31578160200160208202803683370190505b50905060005b83811015610fb157610f82858583818110610f5457610f5461443b565b9050602002016020810190610f69919061431b565b73ffffffffffffffffffffffffffffffffffffffff1690565b828281518110610f9457610f9461443b565b602090810291909101015280610fa981614499565b915050610f37565b509392505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610fe48133611ebb565b6000805b83518110156110dd5773ffffffffffffffffffffffffffffffffffffffff851660009081526006602052604081208551829087908590811061102c5761102c61443b565b60209081029190910181015182528101919091526040016000205460ff169050806110ca5773ffffffffffffffffffffffffffffffffffffffff8616600090815260066020526040812086516001929088908690811061108e5761108e61443b565b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555082806110c690614499565b9350505b50806110d581614499565b915050610fe8565b50806110e95750610cbe565b610cbc86868684611fa0565b60005b81811015610e37576111218383838181106111155761111561443b565b905060200201356127d0565b8061112b81614499565b9150506110f8565b61113c816127d0565b50565b606060008267ffffffffffffffff81111561115c5761115c613d2d565b604051908082528060200260200182016040528015611185578160200160208202803683370190505b50905060005b83811015610fb1576111b28585838181106111a8576111a861443b565b9050602002013590565b8282815181106111c4576111c461443b565b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152806111f381614499565b91505061118b565b6060815183511461128e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016109b0565b6000835167ffffffffffffffff8111156112aa576112aa613d2d565b6040519080825280602002602001820160405280156112d3578160200160208202803683370190505b50905060005b8451811015610fb15761131e8582815181106112f7576112f761443b565b60200260200101518583815181106113115761131161443b565b602002602001015161090f565b8282815181106113305761133061443b565b602090810291909101015261134481614499565b90506112d9565b6000805b828110156114b65760006007600086868581811061136f5761136f61443b565b90506020020135815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506113e681338787868181106113da576113da61443b565b90506020020135612911565b80547101000000000000000000000000000000000090046effffffffffffffffffffffffffffff1680156114a157815470ffffffffffffffffffffffffffffffffff1682556114358185614501565b93508585848181106114495761144961443b565b905060200201353373ffffffffffffffffffffffffffffffffffffffff167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e27317438360405161149891815260200190565b60405180910390a35b505080806114ae90614499565b91505061134f565b5060008111611521576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f44726f70706572546f6b656e3a206e6f7468696e6720746f20636c61696d000060448201526064016109b0565b604051339082156108fc029083906000818181858888f1935050505015801561154e573d6000803e3d6000fd5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff82166109f7565b606060008267ffffffffffffffff81111561158f5761158f613d2d565b6040519080825280602002602001820160405280156115b8578160200160208202803683370190505b50905060005b83811015610fb1576115f48585838181106115db576115db61443b565b9050602002013560009081526004602052604090205490565b8282815181106116065761160661443b565b60209081029190910101528061161b81614499565b9150506115be565b6000610d488383612a60565b60608382146116c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f44726f70706572546f6b656e3a206f776e65727320616e6420696473206c656e60448201527f677468206d69736d61746368000000000000000000000000000000000000000060648201526084016109b0565b60008267ffffffffffffffff8111156116db576116db613d2d565b604051908082528060200260200182016040528015611704578160200160208202803683370190505b50905060005b83811015610b9d5761175a8787838181106117275761172761443b565b905060200201602081019061173c919061431b565b86868481811061174e5761174e61443b565b90506020020135612a60565b82828151811061176c5761176c61443b565b60209081029190910101528061178181614499565b91505061170a565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c6117b48133611ebb565b610bdd82612b09565b60003411611827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f44726f70706572546f6b656e3a207265776172642063616e6e6f74206265203060448201526064016109b0565b73ffffffffffffffffffffffffffffffffffffffff811660008181526009602090815260408083205460049092528220546118629190614501565b9050600081116118f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f44726f70706572546f6b656e3a206e6f2072657761726420726563697069656e60448201527f747300000000000000000000000000000000000000000000000000000000000060648201526084016109b0565b6118fe8134614548565b6000838152600860205260408120805490919061191c908490614501565b9091555050505050565b610bdd338383612b1c565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260066020908152604080832084845290915281205460ff16610d48565b60608382146119fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603960248201527f44726f70706572546f6b656e3a20746f6b656e41646472657373657320616e6460448201527f20746f6b656e496473206c656e677468206d69736d617463680000000000000060648201526084016109b0565b60008267ffffffffffffffff811115611a1657611a16613d2d565b604051908082528060200260200182016040528015611a3f578160200160208202803683370190505b50905060005b83811015610b9d57611ac8878783818110611a6257611a6261443b565b9050602002016020810190611a77919061431b565b868684818110611a8957611a8961443b565b9050602002013573ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205460ff1690565b828281518110611ada57611ada61443b565b9115156020928302919091019091015280611af481614499565b915050611a45565b600081815260076020908152604080832033808552925290912090611b2390829084612911565b80547101000000000000000000000000000000000090046effffffffffffffffffffffffffffff1680611bb2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f44726f70706572546f6b656e3a206e6f7468696e6720746f20636c61696d000060448201526064016109b0565b815470ffffffffffffffffffffffffffffffffff168255604051339082156108fc029083906000818181858888f19350505050158015611bf6573d6000803e3d6000fd5b50604051818152839033907ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e2731743906020015b60405180910390a3505050565b6000816109f7565b600082815260036020526040902060010154611c588133611ebb565b610e378383612715565b606060058054611c719061455c565b80601f0160208091040260200160405190810160405280929190818152602001828054611c9d9061455c565b8015611cea5780601f10611cbf57610100808354040283529160200191611cea565b820191906000526020600020905b815481529060010190602001808311611ccd57829003601f168201915b5050505050905090565b73ffffffffffffffffffffffffffffffffffffffff8516331480611d1d5750611d1d8533610894565b611da9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016109b0565b610cbe8585858585612c68565b606060008267ffffffffffffffff811115611dd357611dd3613d2d565b604051908082528060200260200182016040528015611dfc578160200160208202803683370190505b50905060005b83811015610fb15760096000868684818110611e2057611e2061443b565b90506020020135815260200190815260200160002054828281518110611e4857611e4861443b565b602090810291909101015280611e5d81614499565b915050611e02565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806109f757506109f782612ea8565b600082815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610bdd57611f138173ffffffffffffffffffffffffffffffffffffffff166014612f8b565b611f1e836020612f8b565b604051602001611f2f9291906145b0565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526109b091600401614079565b8051610bdd906002906020840190613af0565b600073ffffffffffffffffffffffffffffffffffffffff8316815b86518110156120ef576000828152600760205260408120885182908a9085908110611fe857611fe861443b565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050612050818984815181106120425761204261443b565b602002602001015185612911565b6000858884815181106120655761206561443b565b60200260200101516120779190614631565b825490915081908390600c906120a59084906c01000000000000000000000000900464ffffffffff1661466e565b92506101000a81548164ffffffffff021916908364ffffffffff1602179055508064ffffffffff16856120d89190614501565b9450505080806120e790614499565b915050611fbb565b506000818152600960205260408120805484929061210e908490614501565b9091555050505050505050565b60606002805461212a9061455c565b80601f01602080910402602001604051908101604052809291908181526020018280546121569061455c565b80156121a35780601f10612178576101008083540402835291602001916121a3565b820191906000526020600020905b81548152906001019060200180831161218657829003601f168201915b50505050509050919050565b6060816121ef57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612219578061220381614499565b91506122129050600a83614548565b91506121f3565b60008167ffffffffffffffff81111561223457612234613d2d565b6040519080825280601f01601f19166020018201604052801561225e576020820181803683370190505b5090505b8415610ba15761227360018361468e565b9150612280600a866146a5565b61228b906030614501565b60f81b8183815181106122a0576122a061443b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506122da600a86614548565b9450612262565b8151835114612372576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016109b0565b73ffffffffffffffffffffffffffffffffffffffff8416612415576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016109b0565b336124248187878787876131ce565b60005b84518110156125945760008582815181106124445761244461443b565b6020026020010151905060008583815181106124625761246261443b565b6020908102919091018101516000848152808352604080822073ffffffffffffffffffffffffffffffffffffffff8e16835290935291909120549091508181101561252f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e736665720000000000000000000000000000000000000000000060648201526084016109b0565b60008381526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8e8116855292528083208585039055908b16825281208054849290612579908490614501565b925050819055505050508061258d90614499565b9050612427565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161260b9291906146b9565b60405180910390a4610cbc81878787878761333d565b600082815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610bdd57600082815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556126b73390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610bdd57600082815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600760209081526040808320338085529252909120906127f790829084612911565b80546c01000000000000000000000000900464ffffffffff1680612877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f44726f70706572546f6b656e3a206e6f7468696e6720746f20636c61696d000060448201526064016109b0565b81547fffffffffffffffffffffffffffffff0000000000ffffffffffffffffffffffff168255600083815260096020526040812080548392906128bb90849061468e565b925050819055506128dd338483604051806020016040528060008152506135c8565b604051818152839033907f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b90602001611c27565b60008181526008602052604090205483546bffffffffffffffffffffffff1681141561293d5750505050565b6040805160608101825285546bffffffffffffffffffffffff811682526c01000000000000000000000000810464ffffffffff1660208301527101000000000000000000000000000000000090046effffffffffffffffffffffffffffff16918101919091526000906129b290858585613726565b85549091507101000000000000000000000000000000000090046effffffffffffffffffffffffffffff168114612a2257845470ffffffffffffffffffffffffffffffffff16710100000000000000000000000000000000006effffffffffffffffffffffffffffff8316021785555b5083547fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166bffffffffffffffffffffffff91909116179092555050565b600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff861684528252808320815160608101835290546bffffffffffffffffffffffff811682526c01000000000000000000000000810464ffffffffff16828501527101000000000000000000000000000000000090046effffffffffffffffffffffffffffff16818301528484526008909252822054610ba190829086908690613726565b8051610bdd906005906020840190613af0565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612bd8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016109b0565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319101611c27565b73ffffffffffffffffffffffffffffffffffffffff8416612d0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016109b0565b33612d2a818787612d1b886137c4565b612d24886137c4565b876131ce565b60008481526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8a16845290915290205483811015612de8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e736665720000000000000000000000000000000000000000000060648201526084016109b0565b60008581526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8b8116855292528083208785039055908816825281208054869290612e32908490614501565b9091555050604080518681526020810186905273ffffffffffffffffffffffffffffffffffffffff808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612e9f82888888888861380f565b50505050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a26000000000000000000000000000000000000000000000000000000001480612f3b57507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b806109f757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146109f7565b60606000612f9a836002614631565b612fa5906002614501565b67ffffffffffffffff811115612fbd57612fbd613d2d565b6040519080825280601f01601f191660200182016040528015612fe7576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061301e5761301e61443b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106130815761308161443b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006130bd846002614631565b6130c8906001614501565b90505b6001811115613165577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106131095761310961443b565b1a60f81b82828151811061311f5761311f61443b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361315e816146e7565b90506130cb565b508315610d48576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109b0565b6131dc8686868686866139bc565b73ffffffffffffffffffffffffffffffffffffffff8516156132a25760005b83518110156132a0576132906007600086848151811061321d5761321d61443b565b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020878684815181106132835761328361443b565b6020026020010151612911565b61329981614499565b90506131fb565b505b60005b8351811015612e9f5761332d600760008684815181106132c7576132c761443b565b6020026020010151815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020868684815181106132835761328361443b565b61333681614499565b90506132a5565b73ffffffffffffffffffffffffffffffffffffffff84163b15610cbc576040517fbc197c8100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063bc197c81906133b4908990899088908890889060040161471c565b6020604051808303816000875af192505050801561340d575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261340a91810190614787565b60015b6134f7576134196147a4565b806308c379a0141561346d575061342e6147c0565b80613439575061346f565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b09190614079565b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016109b0565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c810000000000000000000000000000000000000000000000000000000014612e9f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e7300000000000000000000000000000000000000000000000060648201526084016109b0565b73ffffffffffffffffffffffffffffffffffffffff841661366b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016109b0565b3361367c81600087612d1b886137c4565b60008481526020818152604080832073ffffffffffffffffffffffffffffffffffffffff89168452909152812080548592906136b9908490614501565b9091555050604080518581526020810185905273ffffffffffffffffffffffffffffffffffffffff80881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610cbe8160008787878761380f565b600080856020015164ffffffffff1661373f868661090f565b6137499190614501565b905080156137a457855160009061376e906bffffffffffffffffffffffff168561468e565b6137789083614631565b90508087604001516effffffffffffffffffffffffffffff1661379b9190614501565b92505050610ba1565b505060408401516effffffffffffffffffffffffffffff16949350505050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106137fe576137fe61443b565b602090810291909101015292915050565b73ffffffffffffffffffffffffffffffffffffffff84163b15610cbc576040517ff23a6e6100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063f23a6e61906138869089908990889088908890600401614868565b6020604051808303816000875af19250505080156138df575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526138dc91810190614787565b60015b6138eb576134196147a4565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e610000000000000000000000000000000000000000000000000000000014612e9f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e7300000000000000000000000000000000000000000000000060648201526084016109b0565b6139ca868686868686610cbc565b73ffffffffffffffffffffffffffffffffffffffff8516613a5e5760005b8351811015613a5c57828181518110613a0357613a0361443b565b602002602001015160046000868481518110613a2157613a2161443b565b602002602001015181526020019081526020016000206000828254613a469190614501565b90915550613a55905081614499565b90506139e8565b505b73ffffffffffffffffffffffffffffffffffffffff8416610cbc5760005b8351811015612e9f57828181518110613a9757613a9761443b565b602002602001015160046000868481518110613ab557613ab561443b565b602002602001015181526020019081526020016000206000828254613ada919061468e565b90915550613ae9905081614499565b9050613a7c565b828054613afc9061455c565b90600052602060002090601f016020900481019282613b1e5760008555613b64565b82601f10613b3757805160ff1916838001178555613b64565b82800160010185558215613b64579182015b82811115613b64578251825591602001919060010190613b49565b50613b70929150613b74565b5090565b5b80821115613b705760008155600101613b75565b803573ffffffffffffffffffffffffffffffffffffffff81168114613bad57600080fd5b919050565b60008060408385031215613bc557600080fd5b613bce83613b89565b946020939093013593505050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461113c57600080fd5b600060208284031215613c1c57600080fd5b8135610d4881613bdc565b60008083601f840112613c3957600080fd5b50813567ffffffffffffffff811115613c5157600080fd5b6020830191508360208260051b8501011115613c6c57600080fd5b9250929050565b60008060008060408587031215613c8957600080fd5b843567ffffffffffffffff80821115613ca157600080fd5b613cad88838901613c27565b90965094506020870135915080821115613cc657600080fd5b50613cd387828801613c27565b95989497509550505050565b600081518084526020808501945080840160005b83811015613d0f57815187529582019590820190600101613cf3565b509495945050505050565b602081526000610d486020830184613cdf565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff82111715613da057613da0613d2d565b6040525050565b600067ffffffffffffffff831115613dc157613dc1613d2d565b604051613df660207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8701160182613d5c565b809150838152848484011115613e0b57600080fd5b83836020830137600060208583010152509392505050565b600060208284031215613e3557600080fd5b813567ffffffffffffffff811115613e4c57600080fd5b8201601f81018413613e5d57600080fd5b610ba184823560208401613da7565b600067ffffffffffffffff821115613e8657613e86613d2d565b5060051b60200190565b600082601f830112613ea157600080fd5b81356020613eae82613e6c565b604051613ebb8282613d5c565b83815260059390931b8501820192828101915086841115613edb57600080fd5b8286015b84811015613efd57613ef081613b89565b8352918301918301613edf565b509695505050505050565b600082601f830112613f1957600080fd5b81356020613f2682613e6c565b604051613f338282613d5c565b83815260059390931b8501820192828101915086841115613f5357600080fd5b8286015b84811015613efd5780358352918301918301613f57565b60008060008060808587031215613f8457600080fd5b843567ffffffffffffffff80821115613f9c57600080fd5b613fa888838901613e90565b95506020870135915080821115613fbe57600080fd5b50613fcb87828801613f08565b935050613fda60408601613b89565b9396929550929360600135925050565b600060208284031215613ffc57600080fd5b5035919050565b60005b8381101561401e578181015183820152602001614006565b8381111561154e5750506000910152565b60008151808452614047816020860160208601614003565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000610d48602083018461402f565b600082601f83011261409d57600080fd5b610d4883833560208501613da7565b600080600080600060a086880312156140c457600080fd5b6140cd86613b89565b94506140db60208701613b89565b9350604086013567ffffffffffffffff808211156140f857600080fd5b61410489838a01613f08565b9450606088013591508082111561411a57600080fd5b61412689838a01613f08565b9350608088013591508082111561413c57600080fd5b506141498882890161408c565b9150509295509295909350565b6000806040838503121561416957600080fd5b8235915061417960208401613b89565b90509250929050565b6000806020838503121561419557600080fd5b823567ffffffffffffffff8111156141ac57600080fd5b6141b885828601613c27565b90969095509350505050565b600080600080608085870312156141da57600080fd5b843567ffffffffffffffff808211156141f257600080fd5b6141fe88838901613e90565b9550602087013591508082111561421457600080fd5b61422088838901613f08565b945061422e60408801613b89565b9350606087013591508082111561424457600080fd5b5061425187828801613f08565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b818110156142ab57835173ffffffffffffffffffffffffffffffffffffffff1683529284019291840191600101614279565b50909695505050505050565b600080604083850312156142ca57600080fd5b823567ffffffffffffffff808211156142e257600080fd5b6142ee86838701613e90565b9350602085013591508082111561430457600080fd5b5061431185828601613f08565b9150509250929050565b60006020828403121561432d57600080fd5b610d4882613b89565b6000806040838503121561434957600080fd5b61435283613b89565b91506020830135801515811461436757600080fd5b809150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156142ab57835115158352928401929184019160010161438e565b600080604083850312156143bf57600080fd5b6143c883613b89565b915061417960208401613b89565b600080600080600060a086880312156143ee57600080fd5b6143f786613b89565b945061440560208701613b89565b93506040860135925060608601359150608086013567ffffffffffffffff81111561442f57600080fd5b6141498882890161408c565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156144cb576144cb61446a565b5060010190565b600083516144e4818460208801614003565b8351908301906144f8818360208801614003565b01949350505050565b600082198211156145145761451461446a565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261455757614557614519565b500490565b600181811c9082168061457057607f821691505b602082108114156145aa577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516145e8816017850160208801614003565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351614625816028840160208801614003565b01602801949350505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156146695761466961446a565b500290565b600064ffffffffff8083168185168083038211156144f8576144f861446a565b6000828210156146a0576146a061446a565b500390565b6000826146b4576146b4614519565b500690565b6040815260006146cc6040830185613cdf565b82810360208401526146de8185613cdf565b95945050505050565b6000816146f6576146f661446a565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525060a0604083015261475560a0830186613cdf565b82810360608401526147678186613cdf565b9050828103608084015261477b818561402f565b98975050505050505050565b60006020828403121561479957600080fd5b8151610d4881613bdc565b600060033d11156147bd5760046000803e5060005160e01c5b90565b600060443d10156147ce5790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff816024840111818411171561481c57505050505090565b82850191508151818111156148345750505050505090565b843d870101602082850101111561484e5750505050505090565b61485d60208286010187613d5c565b509095945050505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a060808301526148ad60a083018461402f565b97965050505050505056fea264697066735822122079220e2210e486910af8c9f2dc1336d747ebe9b248340089d35f32c9ecfb677964736f6c634300080c0033

Deployed Bytecode

0x6080604052600436106102c55760003560e01c806377954ac211610179578063adbd72cb116100d6578063d53913931161008a578063e985e9c511610064578063e985e9c514610879578063f242432a146108cf578063f9d23002146108ef57600080fd5b8063d539139314610810578063d547741f14610844578063e8a3d4851461086457600080fd5b8063b895393b116100bb578063b895393b14610771578063b93f9b0a1461079e578063bd85b039146107e357600080fd5b8063adbd72cb14610724578063ae169a501461075157600080fd5b8063938e3d7b1161012d578063a217fddf11610112578063a217fddf146106cf578063a22cb465146106e4578063ad7945381461070457600080fd5b8063938e3d7b1461069c5780639c9b2e21146106bc57600080fd5b80638062d0261161015e5780638062d0261461060957806386580bef1461062957806391d148541461064957600080fd5b806377954ac2146105b55780637f345710146105d557600080fd5b806336568abe116102275780634e0ce0f5116101db5780634f558e79116101c05780634f558e79146105465780635794bd8e1461057557806365f68c891461059557600080fd5b80634e0ce0f5146104f95780634e1273f41461052657600080fd5b80633bb68dc41161020c5780633bb68dc41461049957806341243d6b146104b957806346e04a2f146104d957600080fd5b806336568abe1461045957806337da401e1461047957600080fd5b80630e89341c1161027e578063248a9ca311610263578063248a9ca3146103e95780632eb2c2d6146104195780632f2ff15d1461043957600080fd5b80630e89341c1461039c5780631a44f22d146103c957600080fd5b806302276d23116102af57806302276d231461032d57806302fe53051461035a5780630e4c6ea31461037c57600080fd5b8062fdd58e146102ca57806301ffc9a7146102fd575b600080fd5b3480156102d657600080fd5b506102ea6102e5366004613bb2565b61090f565b6040519081526020015b60405180910390f35b34801561030957600080fd5b5061031d610318366004613c0a565b6109ec565b60405190151581526020016102f4565b34801561033957600080fd5b5061034d610348366004613c73565b6109fd565b6040516102f49190613d1a565b34801561036657600080fd5b5061037a610375366004613e23565b610ba9565b005b34801561038857600080fd5b5061037a610397366004613f6e565b610be1565b3480156103a857600080fd5b506103bc6103b7366004613fea565b610cc5565b6040516102f49190614079565b3480156103d557600080fd5b506102ea6103e4366004613bb2565b610d00565b3480156103f557600080fd5b506102ea610404366004613fea565b60009081526003602052604090206001015490565b34801561042557600080fd5b5061037a6104343660046140ac565b610d4f565b34801561044557600080fd5b5061037a610454366004614156565b610e11565b34801561046557600080fd5b5061037a610474366004614156565b610e3c565b34801561048557600080fd5b5061034d610494366004614182565b610eeb565b3480156104a557600080fd5b5061037a6104b43660046141c4565b610fb9565b3480156104c557600080fd5b5061037a6104d4366004614182565b6110f5565b3480156104e557600080fd5b5061037a6104f4366004613fea565b611133565b34801561050557600080fd5b50610519610514366004614182565b61113f565b6040516102f4919061425d565b34801561053257600080fd5b5061034d6105413660046142b7565b6111fb565b34801561055257600080fd5b5061031d610561366004613fea565b600090815260046020526040902054151590565b34801561058157600080fd5b5061037a610590366004614182565b61134b565b3480156105a157600080fd5b506102ea6105b036600461431b565b611554565b3480156105c157600080fd5b5061034d6105d0366004614182565b611572565b3480156105e157600080fd5b506102ea7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c81565b34801561061557600080fd5b506102ea610624366004613bb2565b611623565b34801561063557600080fd5b5061034d610644366004613c73565b61162f565b34801561065557600080fd5b5061031d610664366004614156565b600091825260036020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156106a857600080fd5b5061037a6106b7366004613e23565b611789565b61037a6106ca36600461431b565b6117bd565b3480156106db57600080fd5b506102ea600081565b3480156106f057600080fd5b5061037a6106ff366004614336565b611926565b34801561071057600080fd5b5061031d61071f366004613bb2565b611931565b34801561073057600080fd5b5061074461073f366004613c73565b61196a565b6040516102f49190614372565b34801561075d57600080fd5b5061037a61076c366004613fea565b611afc565b34801561077d57600080fd5b506102ea61078c366004613fea565b60009081526009602052604090205490565b3480156107aa57600080fd5b506107be6107b9366004613fea565b611c34565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102f4565b3480156107ef57600080fd5b506102ea6107fe366004613fea565b60009081526004602052604090205490565b34801561081c57600080fd5b506102ea7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b34801561085057600080fd5b5061037a61085f366004614156565b611c3c565b34801561087057600080fd5b506103bc611c62565b34801561088557600080fd5b5061031d6108943660046143ac565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156108db57600080fd5b5061037a6108ea3660046143d6565b611cf4565b3480156108fb57600080fd5b5061034d61090a366004614182565b611db6565b600073ffffffffffffffffffffffffffffffffffffffff83166109b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526020818152604080832073ffffffffffffffffffffffffffffffffffffffff949094168352929052205490565b60006109f782611e65565b92915050565b6060838214610a8e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f44726f70706572546f6b656e3a206f776e65727320616e6420696473206c656e60448201527f677468206d69736d61746368000000000000000000000000000000000000000060648201526084016109b0565b60008267ffffffffffffffff811115610aa957610aa9613d2d565b604051908082528060200260200182016040528015610ad2578160200160208202803683370190505b50905060005b83811015610b9d57610b6e878783818110610af557610af561443b565b9050602002016020810190610b0a919061431b565b868684818110610b1c57610b1c61443b565b90506020020135600090815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff94909416835292905220546c01000000000000000000000000900464ffffffffff1690565b828281518110610b8057610b8061443b565b602090810291909101015280610b9581614499565b915050610ad8565b5090505b949350505050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c610bd48133611ebb565b610bdd82611f8d565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610c0c8133611ebb565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260066020908152604080832085845290915290205460ff1680151560011415610c515750610cbe565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600660209081526040808320868452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001908117909155610cbc90879087908790611fa0565b505b5050505050565b6060610cd08261211b565b610cd9836121af565b604051602001610cea9291906144d2565b6040516020818303038152906040529050919050565b600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff861684529091528120546c01000000000000000000000000900464ffffffffff165b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8516331480610d785750610d788533610894565b610e04576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016109b0565b610cbe85858585856122e1565b600082815260036020526040902060010154610e2d8133611ebb565b610e378383612621565b505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610ee1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016109b0565b610bdd8282612715565b606060008267ffffffffffffffff811115610f0857610f08613d2d565b604051908082528060200260200182016040528015610f31578160200160208202803683370190505b50905060005b83811015610fb157610f82858583818110610f5457610f5461443b565b9050602002016020810190610f69919061431b565b73ffffffffffffffffffffffffffffffffffffffff1690565b828281518110610f9457610f9461443b565b602090810291909101015280610fa981614499565b915050610f37565b509392505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610fe48133611ebb565b6000805b83518110156110dd5773ffffffffffffffffffffffffffffffffffffffff851660009081526006602052604081208551829087908590811061102c5761102c61443b565b60209081029190910181015182528101919091526040016000205460ff169050806110ca5773ffffffffffffffffffffffffffffffffffffffff8616600090815260066020526040812086516001929088908690811061108e5761108e61443b565b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555082806110c690614499565b9350505b50806110d581614499565b915050610fe8565b50806110e95750610cbe565b610cbc86868684611fa0565b60005b81811015610e37576111218383838181106111155761111561443b565b905060200201356127d0565b8061112b81614499565b9150506110f8565b61113c816127d0565b50565b606060008267ffffffffffffffff81111561115c5761115c613d2d565b604051908082528060200260200182016040528015611185578160200160208202803683370190505b50905060005b83811015610fb1576111b28585838181106111a8576111a861443b565b9050602002013590565b8282815181106111c4576111c461443b565b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152806111f381614499565b91505061118b565b6060815183511461128e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016109b0565b6000835167ffffffffffffffff8111156112aa576112aa613d2d565b6040519080825280602002602001820160405280156112d3578160200160208202803683370190505b50905060005b8451811015610fb15761131e8582815181106112f7576112f761443b565b60200260200101518583815181106113115761131161443b565b602002602001015161090f565b8282815181106113305761133061443b565b602090810291909101015261134481614499565b90506112d9565b6000805b828110156114b65760006007600086868581811061136f5761136f61443b565b90506020020135815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506113e681338787868181106113da576113da61443b565b90506020020135612911565b80547101000000000000000000000000000000000090046effffffffffffffffffffffffffffff1680156114a157815470ffffffffffffffffffffffffffffffffff1682556114358185614501565b93508585848181106114495761144961443b565b905060200201353373ffffffffffffffffffffffffffffffffffffffff167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e27317438360405161149891815260200190565b60405180910390a35b505080806114ae90614499565b91505061134f565b5060008111611521576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f44726f70706572546f6b656e3a206e6f7468696e6720746f20636c61696d000060448201526064016109b0565b604051339082156108fc029083906000818181858888f1935050505015801561154e573d6000803e3d6000fd5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff82166109f7565b606060008267ffffffffffffffff81111561158f5761158f613d2d565b6040519080825280602002602001820160405280156115b8578160200160208202803683370190505b50905060005b83811015610fb1576115f48585838181106115db576115db61443b565b9050602002013560009081526004602052604090205490565b8282815181106116065761160661443b565b60209081029190910101528061161b81614499565b9150506115be565b6000610d488383612a60565b60608382146116c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f44726f70706572546f6b656e3a206f776e65727320616e6420696473206c656e60448201527f677468206d69736d61746368000000000000000000000000000000000000000060648201526084016109b0565b60008267ffffffffffffffff8111156116db576116db613d2d565b604051908082528060200260200182016040528015611704578160200160208202803683370190505b50905060005b83811015610b9d5761175a8787838181106117275761172761443b565b905060200201602081019061173c919061431b565b86868481811061174e5761174e61443b565b90506020020135612a60565b82828151811061176c5761176c61443b565b60209081029190910101528061178181614499565b91505061170a565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c6117b48133611ebb565b610bdd82612b09565b60003411611827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f44726f70706572546f6b656e3a207265776172642063616e6e6f74206265203060448201526064016109b0565b73ffffffffffffffffffffffffffffffffffffffff811660008181526009602090815260408083205460049092528220546118629190614501565b9050600081116118f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f44726f70706572546f6b656e3a206e6f2072657761726420726563697069656e60448201527f747300000000000000000000000000000000000000000000000000000000000060648201526084016109b0565b6118fe8134614548565b6000838152600860205260408120805490919061191c908490614501565b9091555050505050565b610bdd338383612b1c565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260066020908152604080832084845290915281205460ff16610d48565b60608382146119fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603960248201527f44726f70706572546f6b656e3a20746f6b656e41646472657373657320616e6460448201527f20746f6b656e496473206c656e677468206d69736d617463680000000000000060648201526084016109b0565b60008267ffffffffffffffff811115611a1657611a16613d2d565b604051908082528060200260200182016040528015611a3f578160200160208202803683370190505b50905060005b83811015610b9d57611ac8878783818110611a6257611a6261443b565b9050602002016020810190611a77919061431b565b868684818110611a8957611a8961443b565b9050602002013573ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205460ff1690565b828281518110611ada57611ada61443b565b9115156020928302919091019091015280611af481614499565b915050611a45565b600081815260076020908152604080832033808552925290912090611b2390829084612911565b80547101000000000000000000000000000000000090046effffffffffffffffffffffffffffff1680611bb2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f44726f70706572546f6b656e3a206e6f7468696e6720746f20636c61696d000060448201526064016109b0565b815470ffffffffffffffffffffffffffffffffff168255604051339082156108fc029083906000818181858888f19350505050158015611bf6573d6000803e3d6000fd5b50604051818152839033907ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e2731743906020015b60405180910390a3505050565b6000816109f7565b600082815260036020526040902060010154611c588133611ebb565b610e378383612715565b606060058054611c719061455c565b80601f0160208091040260200160405190810160405280929190818152602001828054611c9d9061455c565b8015611cea5780601f10611cbf57610100808354040283529160200191611cea565b820191906000526020600020905b815481529060010190602001808311611ccd57829003601f168201915b5050505050905090565b73ffffffffffffffffffffffffffffffffffffffff8516331480611d1d5750611d1d8533610894565b611da9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016109b0565b610cbe8585858585612c68565b606060008267ffffffffffffffff811115611dd357611dd3613d2d565b604051908082528060200260200182016040528015611dfc578160200160208202803683370190505b50905060005b83811015610fb15760096000868684818110611e2057611e2061443b565b90506020020135815260200190815260200160002054828281518110611e4857611e4861443b565b602090810291909101015280611e5d81614499565b915050611e02565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806109f757506109f782612ea8565b600082815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610bdd57611f138173ffffffffffffffffffffffffffffffffffffffff166014612f8b565b611f1e836020612f8b565b604051602001611f2f9291906145b0565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526109b091600401614079565b8051610bdd906002906020840190613af0565b600073ffffffffffffffffffffffffffffffffffffffff8316815b86518110156120ef576000828152600760205260408120885182908a9085908110611fe857611fe861443b565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050612050818984815181106120425761204261443b565b602002602001015185612911565b6000858884815181106120655761206561443b565b60200260200101516120779190614631565b825490915081908390600c906120a59084906c01000000000000000000000000900464ffffffffff1661466e565b92506101000a81548164ffffffffff021916908364ffffffffff1602179055508064ffffffffff16856120d89190614501565b9450505080806120e790614499565b915050611fbb565b506000818152600960205260408120805484929061210e908490614501565b9091555050505050505050565b60606002805461212a9061455c565b80601f01602080910402602001604051908101604052809291908181526020018280546121569061455c565b80156121a35780601f10612178576101008083540402835291602001916121a3565b820191906000526020600020905b81548152906001019060200180831161218657829003601f168201915b50505050509050919050565b6060816121ef57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612219578061220381614499565b91506122129050600a83614548565b91506121f3565b60008167ffffffffffffffff81111561223457612234613d2d565b6040519080825280601f01601f19166020018201604052801561225e576020820181803683370190505b5090505b8415610ba15761227360018361468e565b9150612280600a866146a5565b61228b906030614501565b60f81b8183815181106122a0576122a061443b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506122da600a86614548565b9450612262565b8151835114612372576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016109b0565b73ffffffffffffffffffffffffffffffffffffffff8416612415576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016109b0565b336124248187878787876131ce565b60005b84518110156125945760008582815181106124445761244461443b565b6020026020010151905060008583815181106124625761246261443b565b6020908102919091018101516000848152808352604080822073ffffffffffffffffffffffffffffffffffffffff8e16835290935291909120549091508181101561252f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e736665720000000000000000000000000000000000000000000060648201526084016109b0565b60008381526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8e8116855292528083208585039055908b16825281208054849290612579908490614501565b925050819055505050508061258d90614499565b9050612427565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161260b9291906146b9565b60405180910390a4610cbc81878787878761333d565b600082815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610bdd57600082815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556126b73390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610bdd57600082815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600760209081526040808320338085529252909120906127f790829084612911565b80546c01000000000000000000000000900464ffffffffff1680612877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f44726f70706572546f6b656e3a206e6f7468696e6720746f20636c61696d000060448201526064016109b0565b81547fffffffffffffffffffffffffffffff0000000000ffffffffffffffffffffffff168255600083815260096020526040812080548392906128bb90849061468e565b925050819055506128dd338483604051806020016040528060008152506135c8565b604051818152839033907f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b90602001611c27565b60008181526008602052604090205483546bffffffffffffffffffffffff1681141561293d5750505050565b6040805160608101825285546bffffffffffffffffffffffff811682526c01000000000000000000000000810464ffffffffff1660208301527101000000000000000000000000000000000090046effffffffffffffffffffffffffffff16918101919091526000906129b290858585613726565b85549091507101000000000000000000000000000000000090046effffffffffffffffffffffffffffff168114612a2257845470ffffffffffffffffffffffffffffffffff16710100000000000000000000000000000000006effffffffffffffffffffffffffffff8316021785555b5083547fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166bffffffffffffffffffffffff91909116179092555050565b600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff861684528252808320815160608101835290546bffffffffffffffffffffffff811682526c01000000000000000000000000810464ffffffffff16828501527101000000000000000000000000000000000090046effffffffffffffffffffffffffffff16818301528484526008909252822054610ba190829086908690613726565b8051610bdd906005906020840190613af0565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612bd8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016109b0565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319101611c27565b73ffffffffffffffffffffffffffffffffffffffff8416612d0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016109b0565b33612d2a818787612d1b886137c4565b612d24886137c4565b876131ce565b60008481526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8a16845290915290205483811015612de8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e736665720000000000000000000000000000000000000000000060648201526084016109b0565b60008581526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8b8116855292528083208785039055908816825281208054869290612e32908490614501565b9091555050604080518681526020810186905273ffffffffffffffffffffffffffffffffffffffff808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612e9f82888888888861380f565b50505050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a26000000000000000000000000000000000000000000000000000000001480612f3b57507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b806109f757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146109f7565b60606000612f9a836002614631565b612fa5906002614501565b67ffffffffffffffff811115612fbd57612fbd613d2d565b6040519080825280601f01601f191660200182016040528015612fe7576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061301e5761301e61443b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106130815761308161443b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006130bd846002614631565b6130c8906001614501565b90505b6001811115613165577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106131095761310961443b565b1a60f81b82828151811061311f5761311f61443b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361315e816146e7565b90506130cb565b508315610d48576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109b0565b6131dc8686868686866139bc565b73ffffffffffffffffffffffffffffffffffffffff8516156132a25760005b83518110156132a0576132906007600086848151811061321d5761321d61443b565b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020878684815181106132835761328361443b565b6020026020010151612911565b61329981614499565b90506131fb565b505b60005b8351811015612e9f5761332d600760008684815181106132c7576132c761443b565b6020026020010151815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020868684815181106132835761328361443b565b61333681614499565b90506132a5565b73ffffffffffffffffffffffffffffffffffffffff84163b15610cbc576040517fbc197c8100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063bc197c81906133b4908990899088908890889060040161471c565b6020604051808303816000875af192505050801561340d575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261340a91810190614787565b60015b6134f7576134196147a4565b806308c379a0141561346d575061342e6147c0565b80613439575061346f565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b09190614079565b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016109b0565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c810000000000000000000000000000000000000000000000000000000014612e9f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e7300000000000000000000000000000000000000000000000060648201526084016109b0565b73ffffffffffffffffffffffffffffffffffffffff841661366b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016109b0565b3361367c81600087612d1b886137c4565b60008481526020818152604080832073ffffffffffffffffffffffffffffffffffffffff89168452909152812080548592906136b9908490614501565b9091555050604080518581526020810185905273ffffffffffffffffffffffffffffffffffffffff80881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610cbe8160008787878761380f565b600080856020015164ffffffffff1661373f868661090f565b6137499190614501565b905080156137a457855160009061376e906bffffffffffffffffffffffff168561468e565b6137789083614631565b90508087604001516effffffffffffffffffffffffffffff1661379b9190614501565b92505050610ba1565b505060408401516effffffffffffffffffffffffffffff16949350505050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106137fe576137fe61443b565b602090810291909101015292915050565b73ffffffffffffffffffffffffffffffffffffffff84163b15610cbc576040517ff23a6e6100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063f23a6e61906138869089908990889088908890600401614868565b6020604051808303816000875af19250505080156138df575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526138dc91810190614787565b60015b6138eb576134196147a4565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e610000000000000000000000000000000000000000000000000000000014612e9f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e7300000000000000000000000000000000000000000000000060648201526084016109b0565b6139ca868686868686610cbc565b73ffffffffffffffffffffffffffffffffffffffff8516613a5e5760005b8351811015613a5c57828181518110613a0357613a0361443b565b602002602001015160046000868481518110613a2157613a2161443b565b602002602001015181526020019081526020016000206000828254613a469190614501565b90915550613a55905081614499565b90506139e8565b505b73ffffffffffffffffffffffffffffffffffffffff8416610cbc5760005b8351811015612e9f57828181518110613a9757613a9761443b565b602002602001015160046000868481518110613ab557613ab561443b565b602002602001015181526020019081526020016000206000828254613ada919061468e565b90915550613ae9905081614499565b9050613a7c565b828054613afc9061455c565b90600052602060002090601f016020900481019282613b1e5760008555613b64565b82601f10613b3757805160ff1916838001178555613b64565b82800160010185558215613b64579182015b82811115613b64578251825591602001919060010190613b49565b50613b70929150613b74565b5090565b5b80821115613b705760008155600101613b75565b803573ffffffffffffffffffffffffffffffffffffffff81168114613bad57600080fd5b919050565b60008060408385031215613bc557600080fd5b613bce83613b89565b946020939093013593505050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461113c57600080fd5b600060208284031215613c1c57600080fd5b8135610d4881613bdc565b60008083601f840112613c3957600080fd5b50813567ffffffffffffffff811115613c5157600080fd5b6020830191508360208260051b8501011115613c6c57600080fd5b9250929050565b60008060008060408587031215613c8957600080fd5b843567ffffffffffffffff80821115613ca157600080fd5b613cad88838901613c27565b90965094506020870135915080821115613cc657600080fd5b50613cd387828801613c27565b95989497509550505050565b600081518084526020808501945080840160005b83811015613d0f57815187529582019590820190600101613cf3565b509495945050505050565b602081526000610d486020830184613cdf565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff82111715613da057613da0613d2d565b6040525050565b600067ffffffffffffffff831115613dc157613dc1613d2d565b604051613df660207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8701160182613d5c565b809150838152848484011115613e0b57600080fd5b83836020830137600060208583010152509392505050565b600060208284031215613e3557600080fd5b813567ffffffffffffffff811115613e4c57600080fd5b8201601f81018413613e5d57600080fd5b610ba184823560208401613da7565b600067ffffffffffffffff821115613e8657613e86613d2d565b5060051b60200190565b600082601f830112613ea157600080fd5b81356020613eae82613e6c565b604051613ebb8282613d5c565b83815260059390931b8501820192828101915086841115613edb57600080fd5b8286015b84811015613efd57613ef081613b89565b8352918301918301613edf565b509695505050505050565b600082601f830112613f1957600080fd5b81356020613f2682613e6c565b604051613f338282613d5c565b83815260059390931b8501820192828101915086841115613f5357600080fd5b8286015b84811015613efd5780358352918301918301613f57565b60008060008060808587031215613f8457600080fd5b843567ffffffffffffffff80821115613f9c57600080fd5b613fa888838901613e90565b95506020870135915080821115613fbe57600080fd5b50613fcb87828801613f08565b935050613fda60408601613b89565b9396929550929360600135925050565b600060208284031215613ffc57600080fd5b5035919050565b60005b8381101561401e578181015183820152602001614006565b8381111561154e5750506000910152565b60008151808452614047816020860160208601614003565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000610d48602083018461402f565b600082601f83011261409d57600080fd5b610d4883833560208501613da7565b600080600080600060a086880312156140c457600080fd5b6140cd86613b89565b94506140db60208701613b89565b9350604086013567ffffffffffffffff808211156140f857600080fd5b61410489838a01613f08565b9450606088013591508082111561411a57600080fd5b61412689838a01613f08565b9350608088013591508082111561413c57600080fd5b506141498882890161408c565b9150509295509295909350565b6000806040838503121561416957600080fd5b8235915061417960208401613b89565b90509250929050565b6000806020838503121561419557600080fd5b823567ffffffffffffffff8111156141ac57600080fd5b6141b885828601613c27565b90969095509350505050565b600080600080608085870312156141da57600080fd5b843567ffffffffffffffff808211156141f257600080fd5b6141fe88838901613e90565b9550602087013591508082111561421457600080fd5b61422088838901613f08565b945061422e60408801613b89565b9350606087013591508082111561424457600080fd5b5061425187828801613f08565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b818110156142ab57835173ffffffffffffffffffffffffffffffffffffffff1683529284019291840191600101614279565b50909695505050505050565b600080604083850312156142ca57600080fd5b823567ffffffffffffffff808211156142e257600080fd5b6142ee86838701613e90565b9350602085013591508082111561430457600080fd5b5061431185828601613f08565b9150509250929050565b60006020828403121561432d57600080fd5b610d4882613b89565b6000806040838503121561434957600080fd5b61435283613b89565b91506020830135801515811461436757600080fd5b809150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156142ab57835115158352928401929184019160010161438e565b600080604083850312156143bf57600080fd5b6143c883613b89565b915061417960208401613b89565b600080600080600060a086880312156143ee57600080fd5b6143f786613b89565b945061440560208701613b89565b93506040860135925060608601359150608086013567ffffffffffffffff81111561442f57600080fd5b6141498882890161408c565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156144cb576144cb61446a565b5060010190565b600083516144e4818460208801614003565b8351908301906144f8818360208801614003565b01949350505050565b600082198211156145145761451461446a565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261455757614557614519565b500490565b600181811c9082168061457057607f821691505b602082108114156145aa577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516145e8816017850160208801614003565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351614625816028840160208801614003565b01602801949350505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156146695761466961446a565b500290565b600064ffffffffff8083168185168083038211156144f8576144f861446a565b6000828210156146a0576146a061446a565b500390565b6000826146b4576146b4614519565b500690565b6040815260006146cc6040830185613cdf565b82810360208401526146de8185613cdf565b95945050505050565b6000816146f6576146f661446a565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525060a0604083015261475560a0830186613cdf565b82810360608401526147678186613cdf565b9050828103608084015261477b818561402f565b98975050505050505050565b60006020828403121561479957600080fd5b8151610d4881613bdc565b600060033d11156147bd5760046000803e5060005160e01c5b90565b600060443d10156147ce5790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff816024840111818411171561481c57505050505090565b82850191508151818111156148345750505050505090565b843d870101602082850101111561484e5750505050505090565b61485d60208286010187613d5c565b509095945050505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a060808301526148ad60a083018461402f565b97965050505050505056fea264697066735822122079220e2210e486910af8c9f2dc1336d747ebe9b248340089d35f32c9ecfb677964736f6c634300080c0033

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

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.