ETH Price: $1,904.07 (-0.71%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw Ether245266822026-02-24 12:12:234 days ago1771935143IN
0x960987Eb...eAF10F978
0 ETH0.000062222.05409837
Set Approval For...236496042025-10-24 20:07:23126 days ago1761336443IN
0x960987Eb...eAF10F978
0 ETH0.000048081.98706696
Set Approval For...236496022025-10-24 20:06:59126 days ago1761336419IN
0x960987Eb...eAF10F978
0 ETH0.000026871.10685965
Set Approval For...235433102025-10-09 22:58:35141 days ago1760050715IN
0x960987Eb...eAF10F978
0 ETH0.00003111.28535615
Set Approval For...234207512025-09-22 19:47:35158 days ago1758570455IN
0x960987Eb...eAF10F978
0 ETH0.000016660.36148949
Set Approval For...232433012025-08-29 0:49:11183 days ago1756428551IN
0x960987Eb...eAF10F978
0 ETH0.00001770.38403408
Set Approval For...230415222025-07-31 20:39:59211 days ago1753994399IN
0x960987Eb...eAF10F978
0 ETH0.000035670.77368232
Set Approval For...224388262025-05-08 12:30:11296 days ago1746707411IN
0x960987Eb...eAF10F978
0 ETH0.0009254820.07033096
Set Approval For...223878682025-05-01 8:39:47303 days ago1746088787IN
0x960987Eb...eAF10F978
0 ETH0.000022470.92564262
Set Approval For...219977162025-03-07 21:35:11357 days ago1741383311IN
0x960987Eb...eAF10F978
0 ETH0.000041760.90581557
Set Approval For...219309832025-02-26 14:03:47367 days ago1740578627IN
0x960987Eb...eAF10F978
0 ETH0.000152543.30290857
Set Approval For...218594572025-02-16 14:08:23377 days ago1739714903IN
0x960987Eb...eAF10F978
0 ETH0.000035830.77711273
Set Approval For...218388002025-02-13 16:38:47380 days ago1739464727IN
0x960987Eb...eAF10F978
0 ETH0.000125735.17768777
Set Approval For...218166142025-02-10 14:07:47383 days ago1739196467IN
0x960987Eb...eAF10F978
0 ETH0.000139123.01709961
Set Approval For...215726492025-01-07 12:39:35417 days ago1736253575IN
0x960987Eb...eAF10F978
0 ETH0.000197558.13515971
Safe Transfer Fr...215470722025-01-03 22:54:47420 days ago1735944887IN
0x960987Eb...eAF10F978
0 ETH0.00051369.88051145
Set Approval For...214285972024-12-18 9:43:11437 days ago1734514991IN
0x960987Eb...eAF10F978
0 ETH0.0002568710.57776473
Set Approval For...213742542024-12-10 19:40:23444 days ago1733859623IN
0x960987Eb...eAF10F978
0 ETH0.0006853628.22284318
Set Approval For...212946902024-11-29 16:58:59456 days ago1732899539IN
0x960987Eb...eAF10F978
0 ETH0.0008219817.79802496
Set Approval For...210282292024-10-23 12:16:47493 days ago1729685807IN
0x960987Eb...eAF10F978
0 ETH0.0006525914.12663513
Set Approval For...205182762024-08-13 7:41:11564 days ago1723534871IN
0x960987Eb...eAF10F978
0 ETH0.000039081.6094938
Set Approval For...201243622024-06-19 7:42:11619 days ago1718782931IN
0x960987Eb...eAF10F978
0 ETH0.000104034.28639383
Set Approval For...191108452024-01-29 7:58:35761 days ago1706515115IN
0x960987Eb...eAF10F978
0 ETH0.000420449.11783469
Set Approval For...190783022024-01-24 18:31:59765 days ago1706121119IN
0x960987Eb...eAF10F978
0 ETH0.0003411814.04965133
Set Approval For...190715622024-01-23 19:51:11766 days ago1706039471IN
0x960987Eb...eAF10F978
0 ETH0.0006621214.35897688
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer245266822026-02-24 12:12:234 days ago1771935143
0x960987Eb...eAF10F978
5.349 ETH
-138478062021-12-21 9:46:301530 days ago1640079990
0x960987Eb...eAF10F978
19.185 ETH
-133936662021-10-10 22:51:551601 days ago1633906315
0x960987Eb...eAF10F978
5.4 ETH
-133876502021-10-10 0:06:301602 days ago1633824390
0x960987Eb...eAF10F978
6 ETH
-133813812021-10-09 0:25:051603 days ago1633739105
0x960987Eb...eAF10F978
6 ETH
-133745982021-10-07 22:59:481604 days ago1633647588
0x960987Eb...eAF10F978
0.4 ETH
-133682192021-10-06 22:58:021605 days ago1633561082
0x960987Eb...eAF10F978
1 ETH
-133618442021-10-05 23:02:441606 days ago1633474964
0x960987Eb...eAF10F978
2 ETH
-133555222021-10-04 23:20:581607 days ago1633389658
0x960987Eb...eAF10F978
6 ETH
-133490772021-10-03 23:03:411608 days ago1633302221
0x960987Eb...eAF10F978
5.8 ETH
-133433932021-10-03 1:40:231609 days ago1633225223
0x960987Eb...eAF10F978
8.6 ETH
-133364522021-10-01 23:31:471610 days ago1633131107
0x960987Eb...eAF10F978
4.7 ETH
-133299762021-09-30 23:31:521611 days ago1633044712
0x960987Eb...eAF10F978
5.2 ETH
-133235142021-09-29 23:04:081612 days ago1632956648
0x960987Eb...eAF10F978
0.8 ETH
-133200762021-09-29 10:18:171613 days ago1632910697
0x960987Eb...eAF10F978
0.7 ETH
-133194602021-09-29 7:56:321613 days ago1632902192
0x960987Eb...eAF10F978
4.2 ETH
-133171322021-09-28 23:11:251613 days ago1632870685
0x960987Eb...eAF10F978
6.1 ETH
-133108172021-09-27 23:24:111614 days ago1632785051
0x960987Eb...eAF10F978
0.2 ETH
-133043442021-09-26 23:18:401615 days ago1632698320
0x960987Eb...eAF10F978
6.9 ETH
-132924382021-09-25 3:07:041617 days ago1632539224
0x960987Eb...eAF10F978
2.9 ETH
-132881962021-09-24 11:21:371618 days ago1632482497
0x960987Eb...eAF10F978
2.4 ETH
-132792742021-09-23 2:19:391619 days ago1632363579
0x960987Eb...eAF10F978
3.7 ETH
-132751602021-09-22 10:55:051620 days ago1632308105
0x960987Eb...eAF10F978
6.1 ETH
-132689582021-09-21 11:50:481621 days ago1632225048
0x960987Eb...eAF10F978
4.7 ETH
-132658252021-09-21 0:14:031621 days ago1632183243
0x960987Eb...eAF10F978
7 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

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

Contract Source Code Verified (Exact Match)

Contract Name:
Modifiers1155

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
// Galaxy Heroes NFT game 
pragma solidity ^0.8.6;

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


contract Modifiers1155 is ERC1155Supply, Ownable {

    using Strings for uint256;

    struct Partners {
        uint256 limit;
        uint256 nftMinted;
    }
    struct TokenReq {
        uint256 mintPrice;
        uint256 maxBuyPerTx;
        uint256 maxMintPerTx;
        uint256 stopMintAfter;
        uint256 maxTotalSupply;
        uint256 reservedForPartners;
    }

    string public name = "SIDUS NFT HEROES - Galaxy Modificators";

    mapping(uint256 => TokenReq) public tokenReq;
    mapping(address => mapping(uint256 => Partners)) public partnersLimit;
    mapping(address => mapping(uint256 => uint256)) public tokensForMint;

    //Event for track mint channel:
    // 2 - With Ethere
    // 3 - Partners White List
    // 4 - With ERC20
    event MintSource(uint256 tokenId, uint256 amount,  uint8 channel);
    event PartnesChanged(uint256 tokenId, address partner, uint256 limit);

    constructor()
       ERC1155("")  {
    }


    function multiMint(uint256 tokenID) external payable {
        require(totalSupply(tokenID) > 0, "Only minted NFT") ;
        uint256 mintAmount = _availableFreeMint(msg.sender, tokenID);
        if(mintAmount > 0) {
            require(msg.value == 0, "No need Ether");
            mintAmount = _checkMintAmount(tokenID, mintAmount, true);
            _multiMint(msg.sender, mintAmount, tokenID, 3);
            partnersLimit[msg.sender][tokenID].nftMinted += mintAmount;
            tokenReq[tokenID].reservedForPartners -= mintAmount;
        }else {
            require(msg.value >= tokenReq[tokenID].mintPrice, "Less ether for mint");
            uint256 estimateAmountForMint = msg.value / tokenReq[tokenID].mintPrice;
            require(estimateAmountForMint <= tokenReq[tokenID].maxBuyPerTx, "So much payable mint");
            require(tokenReq[tokenID].stopMintAfter > tokenReq[tokenID].reservedForPartners, "Minting is paused");
            require(tokenReq[tokenID].stopMintAfter - tokenReq[tokenID].reservedForPartners >= totalSupply(tokenID) + estimateAmountForMint, "Minting is paused");
            _multiMint(msg.sender, estimateAmountForMint, tokenID, 2);
            if ((msg.value - estimateAmountForMint * tokenReq[tokenID].mintPrice) > 0) {
                address payable s = payable(msg.sender);
                s.transfer(msg.value - estimateAmountForMint * tokenReq[tokenID].mintPrice);
            }
        }
    }


    function mintWithERC20(address _withToken, uint256 _tokenID, uint256 _nftAmountForMint) external {
        require(totalSupply(_tokenID) > 0, "Only minted NFT") ;
        require(tokensForMint[_withToken][_tokenID]> 0, "No mint with this token");
        require(_nftAmountForMint <= tokenReq[_tokenID].maxBuyPerTx, "So much payable mint");
        require(tokenReq[_tokenID].stopMintAfter > tokenReq[_tokenID].reservedForPartners, "Minting is paused");
        require(tokenReq[_tokenID].stopMintAfter - tokenReq[_tokenID].reservedForPartners >= totalSupply(_tokenID) + _nftAmountForMint, "Minting is paused");
        IERC20(_withToken).transferFrom(
            msg.sender,
            address(this),
            tokensForMint[_withToken][_tokenID] * _nftAmountForMint
        );
        _multiMint(msg.sender, _nftAmountForMint, _tokenID, 4);
    }

    // function burn(address account, uint256 _tokenID, uint256 amount) external {
    //     require(account == msg.sender || isApprovedForAll(account, msg.sender),
    //     "ERC1155: caller is not owner nor approved");
    //     _burn(account, _tokenID, amount);

    // }

    function availableFreeMint(address _partner, uint256 _tokenID) external view returns (uint256) {
        return _availableFreeMint(_partner, _tokenID);
    }

    function getMintPrice(uint256 id) external  view returns (uint256) {
         return tokenReq[id].mintPrice;
    }

    function getTokenDetails(uint256 _id) external view returns (TokenReq memory) {
        return tokenReq[_id];
    }
//    function checkMintAmount(uint256 _tokenID, uint256 _amount, bool isFree) external view returns (uint256) {
//        return _checkMintAmount(_tokenID, _amount, isFree);
//    }




    ///////////////////////////////////////////////////////////////////
    /////  Owners Functions ///////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////
    function setPartner(address _partner, uint256 _tokenID, uint256 _limit) external onlyOwner {
        _setPartner(_tokenID, _partner, _limit);
    }

    function setPartnerBatch(uint256 _tokenID,  address[] memory _partners, uint256[] memory _limits) external onlyOwner {
        require(_partners.length == _limits.length, "Array params must have equal length");
        require(_partners.length <= 256, "Not more than 256");
        for (uint8 i; i < _partners.length; i ++) {
            _setPartner(_tokenID, _partners[i], _limits[i]);
        }
    }



    function setMintPrice(uint256 id, uint256 _newPrice) external onlyOwner {
        tokenReq[id].mintPrice = _newPrice;
    }

    function setMaxTotalSupply(uint256 id, uint256 _maxSupply) external onlyOwner {
        tokenReq[id].maxTotalSupply = _maxSupply;
    }

    function setStopMinterAfter(uint256 id, uint256 _stopMinter) external onlyOwner {
        tokenReq[id].stopMintAfter = _stopMinter;
    }

    function setPriceInToken(address _token, uint256 _tokenId, uint256 _pricePerMint) external onlyOwner {
        require(_token != address(0), "No zero");
        tokensForMint[_token][_tokenId] = _pricePerMint;
    }

    function withdrawEther() external onlyOwner {
        address payable o = payable(msg.sender);
        o.transfer(address(this).balance);
    }

    function withdrawTokens(address _erc20) external onlyOwner {
        IERC20(_erc20).transfer(msg.sender, IERC20(_erc20).balanceOf(address(this)));
    }


    function createNew(
        address account,
        uint256 id,
        uint256 amount,
        uint256 _mintPrice,
        uint256 _maxBuyPerTx,
        uint256 _maxMintPerTx,
        uint256 _stopMintAfter,
        uint256 _maxTotalSupply) external onlyOwner {
        _mint(account, id, amount, bytes('0'));
        _setTokenReq(id, _mintPrice,_maxBuyPerTx, _maxMintPerTx, _stopMintAfter, _maxTotalSupply);
    }

    function createNewBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts,
        uint256[] memory _mintPrice,
        uint256[] memory _maxBuyPerTx,
        uint256[] memory _maxMintPerTx,
        uint256[] memory _stopMintAfter,
        uint256[] memory _maxTotalSupply) external onlyOwner {
        require(ids.length == _mintPrice.length, "mintPrice params must have equal length");
        require(ids.length == _maxBuyPerTx.length, "maxBuyPerTx params must have equal length");
        require(ids.length == _maxMintPerTx.length, "maxMintPerTx params must have equal length");
        require(ids.length == _stopMintAfter.length, "stopMintAfter params must have equal length");
        require(ids.length == _maxTotalSupply.length, "maxTotalSupply params must have equal length");
        _mintBatch(account, ids, amounts, bytes('0'));

        for(uint256 i=0; i<ids.length; i++) {
            _setTokenReq(ids[i], _mintPrice[i],_maxBuyPerTx[i], _maxMintPerTx[i], _stopMintAfter[i], _maxTotalSupply[i]);
        }

    }

    function editTokenReq(
        uint256 id,
        uint256 _mintPrice,
        uint256 _maxBuyPerTx,
        uint256 _maxMintPerTx,
        uint256 _stopMintAfter,
        uint256 _maxTotalSupply
    ) external onlyOwner {
        _editTokenReq(id, _mintPrice,_maxBuyPerTx, _maxMintPerTx, _stopMintAfter, _maxTotalSupply);
    }

    ///////////////////////////////////////////////////////////////////
    /////  INTERNALS      /////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////
    function _availableFreeMint(address _partner, uint256 _tokenID) internal view returns (uint256) {
        return partnersLimit[_partner][_tokenID].limit - partnersLimit[_partner][_tokenID].nftMinted;
    }

    /// function SET new limit, NOT INCREMENT or DECREMENT
    function _setPartner(uint256 _tokenID, address _partner, uint256 _limit) internal {
        require(_partner != address(0), "No zero");
        require(_limit  >= partnersLimit[_partner][_tokenID].nftMinted, "Cant decrease more then minted");
        if (partnersLimit[_partner][_tokenID].limit < _limit) {
            tokenReq[_tokenID].reservedForPartners += (_limit - partnersLimit[_partner][_tokenID].limit);
        } else {
             tokenReq[_tokenID].reservedForPartners -= (partnersLimit[_partner][_tokenID].limit - _limit);
        }
        partnersLimit[_partner][_tokenID].limit = _limit;
        emit PartnesChanged(_tokenID, _partner, _limit);
    }

    function _setTokenReq(
        uint256 _id, 
        uint256 _mintPrice, 
        uint256 _maxBuyPerTx, 
        uint256 _maxMintPerTx, 
        uint256 _stopMintAfter, 
        uint256 _maxTotalSupply
    ) internal {
        tokenReq[_id] = TokenReq({
            mintPrice: _mintPrice,
            maxBuyPerTx: _maxBuyPerTx,
            maxMintPerTx: _maxMintPerTx,
            stopMintAfter: _stopMintAfter,
            maxTotalSupply: _maxTotalSupply,
            reservedForPartners: 0
            });
    }

    function _editTokenReq(
        uint256 _id, 
        uint256 _mintPrice, 
        uint256 _maxBuyPerTx, 
        uint256 _maxMintPerTx, 
        uint256 _stopMintAfter, 
        uint256 _maxTotalSupply
    ) internal {
            tokenReq[_id].mintPrice      = _mintPrice;
            tokenReq[_id].maxBuyPerTx    = _maxBuyPerTx;
            tokenReq[_id].maxMintPerTx   = _maxMintPerTx;
            tokenReq[_id].stopMintAfter  = _stopMintAfter;
            tokenReq[_id].maxTotalSupply = _maxTotalSupply;
    }


    function _multiMint(address to, uint256 amount, uint256 tokenID, uint8 channel) internal  {
        require(totalSupply(tokenID) + tokenReq[tokenID].reservedForPartners + amount <= tokenReq[tokenID].maxTotalSupply, "No more this tokens");
        _mint(to, tokenID, amount, bytes('0'));
        emit MintSource(tokenID, amount, channel);
    }

    function _checkMintAmount(uint256 _tokenID, uint256 _amount, bool isFree) internal view returns (uint256) {
        if(isFree) {
            return _amount > tokenReq[_tokenID].maxMintPerTx ? tokenReq[_tokenID].maxMintPerTx : _amount;
        }else {
            return _amount > tokenReq[_tokenID].maxBuyPerTx ? tokenReq[_tokenID].maxBuyPerTx : _amount;
        }
    }

    function uri(uint256 _tokenID) public view virtual override returns (string memory) {
        return string(abi.encodePacked(
            "https://nftstars.app/backend/api/v1/nfts/metadata/0x",
            toAsciiString(address(this)),
            "/", _tokenID.toString())
        );
    }

        function toAsciiString(address x) internal view returns (string memory) {
        bytes memory s = new bytes(40);
        for (uint i = 0; i < 20; i++) {
            bytes1 b = bytes1(uint8(uint(uint160(x)) / (2**(8*(19 - i)))));
            bytes1 hi = bytes1(uint8(b) / 16);
            bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi));
            s[2*i] = char(hi);
            s[2*i+1] = char(lo);
        }
        return string(s);
    }

    function char(bytes1 b) internal view returns (bytes1 c) {
        if (uint8(b) < 10) return bytes1(uint8(b) + 0x30);
        else return bytes1(uint8(b) + 0x57);
     }

}

// SPDX-License-Identifier: MIT

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 weither 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-_mint}.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override {
        super._mint(account, id, amount, data);
        _totalSupply[id] += amount;
    }

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

    /**
     * @dev See {ERC1155-_burn}.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override {
        super._burn(account, id, amount);
        _totalSupply[id] -= amount;
    }

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

        return array;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

API
[{"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":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"channel","type":"uint8"}],"name":"MintSource","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"partner","type":"address"},{"indexed":false,"internalType":"uint256","name":"limit","type":"uint256"}],"name":"PartnesChanged","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":[{"internalType":"address","name":"_partner","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"availableFreeMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_maxBuyPerTx","type":"uint256"},{"internalType":"uint256","name":"_maxMintPerTx","type":"uint256"},{"internalType":"uint256","name":"_stopMintAfter","type":"uint256"},{"internalType":"uint256","name":"_maxTotalSupply","type":"uint256"}],"name":"createNew","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256[]","name":"_mintPrice","type":"uint256[]"},{"internalType":"uint256[]","name":"_maxBuyPerTx","type":"uint256[]"},{"internalType":"uint256[]","name":"_maxMintPerTx","type":"uint256[]"},{"internalType":"uint256[]","name":"_stopMintAfter","type":"uint256[]"},{"internalType":"uint256[]","name":"_maxTotalSupply","type":"uint256[]"}],"name":"createNewBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_maxBuyPerTx","type":"uint256"},{"internalType":"uint256","name":"_maxMintPerTx","type":"uint256"},{"internalType":"uint256","name":"_stopMintAfter","type":"uint256"},{"internalType":"uint256","name":"_maxTotalSupply","type":"uint256"}],"name":"editTokenReq","outputs":[],"stateMutability":"nonpayable","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":"getMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getTokenDetails","outputs":[{"components":[{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"maxBuyPerTx","type":"uint256"},{"internalType":"uint256","name":"maxMintPerTx","type":"uint256"},{"internalType":"uint256","name":"stopMintAfter","type":"uint256"},{"internalType":"uint256","name":"maxTotalSupply","type":"uint256"},{"internalType":"uint256","name":"reservedForPartners","type":"uint256"}],"internalType":"struct Modifiers1155.TokenReq","name":"","type":"tuple"}],"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":"_withToken","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"uint256","name":"_nftAmountForMint","type":"uint256"}],"name":"mintWithERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"multiMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"partnersLimit","outputs":[{"internalType":"uint256","name":"limit","type":"uint256"},{"internalType":"uint256","name":"nftMinted","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxTotalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_partner","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setPartner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"address[]","name":"_partners","type":"address[]"},{"internalType":"uint256[]","name":"_limits","type":"uint256[]"}],"name":"setPartnerBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_pricePerMint","type":"uint256"}],"name":"setPriceInToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"_stopMinter","type":"uint256"}],"name":"setStopMinterAfter","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":"","type":"uint256"}],"name":"tokenReq","outputs":[{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"maxBuyPerTx","type":"uint256"},{"internalType":"uint256","name":"maxMintPerTx","type":"uint256"},{"internalType":"uint256","name":"stopMintAfter","type":"uint256"},{"internalType":"uint256","name":"maxTotalSupply","type":"uint256"},{"internalType":"uint256","name":"reservedForPartners","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensForMint","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":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_erc20","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e0604052602660808181529062003a5460a03980516200002991600591602090910190620000cf565b503480156200003757600080fd5b50604080516020810190915260008152620000528162000064565b506200005e336200007d565b620001b2565b805162000079906002906020840190620000cf565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620000dd9062000175565b90600052602060002090601f0160209004810192826200010157600085556200014c565b82601f106200011c57805160ff19168380011785556200014c565b828001600101855582156200014c579182015b828111156200014c5782518255916020019190600101906200012f565b506200015a9291506200015e565b5090565b5b808211156200015a57600081556001016200015f565b600181811c908216806200018a57607f821691505b60208210811415620001ac57634e487b7160e01b600052602260045260246000fd5b50919050565b61389280620001c26000396000f3fe6080604052600436106101ed5760003560e01c80637362377b1161010d578063abc7158e116100a0578063c90c934a1161006f578063c90c934a1461064c578063d25b536f1461066c578063e985e9c5146106e9578063f242432a14610732578063f2fde38b1461075257600080fd5b8063abc7158e14610573578063bd85b03914610593578063c1e03728146105c0578063c3d1840d1461062c57600080fd5b80638da5cb5b116100dc5780638da5cb5b146104f8578063a22cb46514610520578063a4bd207f14610540578063ab00492f1461056057600080fd5b80637362377b14610483578063801b4c0a14610498578063814fe457146104b857806387198cf2146104d857600080fd5b80633a8ed608116101855780634e1273f4116101545780634e1273f4146103e55780634f558e7914610412578063559e775b14610441578063715018a61461046e57600080fd5b80633a8ed6081461034d5780633f0bb0e21461038557806345f3601a146103a557806349df728c146103c557600080fd5b80630c8d02a9116101c15780630c8d02a9146102995780630e89341c146102b95780632a05639e146102d95780632eb2c2d61461032d57600080fd5b8062fdd58e146101f257806301ffc9a7146102255780630442bfa81461025557806306fdde0314610277575b600080fd5b3480156101fe57600080fd5b5061021261020d366004612e43565b610772565b6040519081526020015b60405180910390f35b34801561023157600080fd5b50610245610240366004612f7d565b61080c565b604051901515815260200161021c565b34801561026157600080fd5b50610275610270366004613056565b61085c565b005b34801561028357600080fd5b5061028c610898565b60405161021c9190613288565b3480156102a557600080fd5b506102126102b4366004612e43565b610926565b3480156102c557600080fd5b5061028c6102d4366004612fb7565b610939565b3480156102e557600080fd5b506103186102f4366004612e43565b60076020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161021c565b34801561033957600080fd5b50610275610348366004612bd1565b610974565b34801561035957600080fd5b50610212610368366004612e43565b600860209081526000928352604080842090915290825290205481565b34801561039157600080fd5b506102756103a0366004612e6d565b610a0b565b3480156103b157600080fd5b506102756103c0366004613078565b610a9b565b3480156103d157600080fd5b506102756103e0366004612b83565b610afa565b3480156103f157600080fd5b50610405610400366004612efc565b610c27565b60405161021c9190613247565b34801561041e57600080fd5b5061024561042d366004612fb7565b600090815260036020526040902054151590565b34801561044d57600080fd5b5061021261045c366004612fb7565b60009081526006602052604090205490565b34801561047a57600080fd5b50610275610d51565b34801561048f57600080fd5b50610275610d87565b3480156104a457600080fd5b506102756104b3366004612e6d565b610ddf565b3480156104c457600080fd5b506102756104d3366004612ea0565b611059565b3480156104e457600080fd5b506102756104f3366004613056565b6110c0565b34801561050457600080fd5b506004546040516001600160a01b03909116815260200161021c565b34801561052c57600080fd5b5061027561053b366004612e0c565b6110ff565b34801561054c57600080fd5b5061027561055b366004612ce0565b6111d6565b61027561056e366004612fb7565b6114e5565b34801561057f57600080fd5b5061027561058e366004612fe9565b6117e0565b34801561059f57600080fd5b506102126105ae366004612fb7565b60009081526003602052604090205490565b3480156105cc57600080fd5b506105e06105db366004612fb7565b611918565b60405161021c9190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b34801561063857600080fd5b50610275610647366004612e6d565b6119aa565b34801561065857600080fd5b50610275610667366004613056565b6119df565b34801561067857600080fd5b506106bc610687366004612fb7565b600660205260009081526040902080546001820154600283015460038401546004850154600590950154939492939192909186565b604080519687526020870195909552938501929092526060840152608083015260a082015260c00161021c565b3480156106f557600080fd5b50610245610704366004612b9e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561073e57600080fd5b5061027561074d366004612c7b565b611a1e565b34801561075e57600080fd5b5061027561076d366004612b83565b611aa5565b60006001600160a01b0383166107e35760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061083d57506001600160e01b031982166303a24d0760e21b145b8061080657506301ffc9a760e01b6001600160e01b0319831614610806565b6004546001600160a01b031633146108865760405162461bcd60e51b81526004016107da90613372565b60009182526006602052604090912055565b600580546108a590613683565b80601f01602080910402602001604051908101604052809291908181526020018280546108d190613683565b801561091e5780601f106108f35761010080835404028352916020019161091e565b820191906000526020600020905b81548152906001019060200180831161090157829003601f168201915b505050505081565b60006109328383611b40565b9392505050565b606061094430611b74565b61094d83611cbb565b60405160200161095e929190613122565b6040516020818303038152906040529050919050565b6001600160a01b03851633148061099057506109908533610704565b6109f75760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016107da565b610a048585858585611dc1565b5050505050565b6004546001600160a01b03163314610a355760405162461bcd60e51b81526004016107da90613372565b6001600160a01b038316610a755760405162461bcd60e51b81526020600482015260076024820152664e6f207a65726f60c81b60448201526064016107da565b6001600160a01b0390921660009081526008602090815260408083209383529290522055565b6004546001600160a01b03163314610ac55760405162461bcd60e51b81526004016107da90613372565b60008681526006602052604090208581556001810185905560028101849055600381018390556004018190555b505050505050565b6004546001600160a01b03163314610b245760405162461bcd60e51b81526004016107da90613372565b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b158015610b6d57600080fd5b505afa158015610b81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba59190612fd0565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015610beb57600080fd5b505af1158015610bff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c239190612f60565b5050565b60608151835114610c8c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107da565b6000835167ffffffffffffffff811115610ca857610ca861377c565b604051908082528060200260200182016040528015610cd1578160200160208202803683370190505b50905060005b8451811015610d4957610d1c858281518110610cf557610cf5613766565b6020026020010151858381518110610d0f57610d0f613766565b6020026020010151610772565b828281518110610d2e57610d2e613766565b6020908102919091010152610d42816136eb565b9050610cd7565b509392505050565b6004546001600160a01b03163314610d7b5760405162461bcd60e51b81526004016107da90613372565b610d856000611f55565b565b6004546001600160a01b03163314610db15760405162461bcd60e51b81526004016107da90613372565b604051339081904780156108fc02916000818181858888f19350505050158015610c23573d6000803e3d6000fd5b60008281526003602052604081205411610e2d5760405162461bcd60e51b815260206004820152600f60248201526e13db9b1e481b5a5b9d195908139195608a1b60448201526064016107da565b6001600160a01b0383166000908152600860209081526040808320858452909152902054610e9d5760405162461bcd60e51b815260206004820152601760248201527f4e6f206d696e742077697468207468697320746f6b656e00000000000000000060448201526064016107da565b600082815260066020526040902060010154811115610ef55760405162461bcd60e51b815260206004820152601460248201527314dbc81b5d58da081c185e58589b19481b5a5b9d60621b60448201526064016107da565b6000828152600660205260409020600581015460039091015411610f2b5760405162461bcd60e51b81526004016107da906133a7565b600082815260036020526040902054610f4590829061347f565b60008381526006602052604090206005810154600390910154610f68919061361d565b1015610f865760405162461bcd60e51b81526004016107da906133a7565b6001600160a01b03831660008181526008602090815260408083208684529091529020546323b872dd9033903090610fbf9086906135dd565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b15801561100e57600080fd5b505af1158015611022573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110469190612f60565b506110543382846004611fa7565b505050565b6004546001600160a01b031633146110835760405162461bcd60e51b81526004016107da90613372565b6110a8888888604051806040016040528060018152602001600360fc1b815250612091565b6110b68786868686866120c6565b5050505050505050565b6004546001600160a01b031633146110ea5760405162461bcd60e51b81526004016107da90613372565b60009182526006602052604090912060040155565b336001600160a01b038316141561116a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107da565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6004546001600160a01b031633146112005760405162461bcd60e51b81526004016107da90613372565b84518751146112615760405162461bcd60e51b815260206004820152602760248201527f6d696e74507269636520706172616d73206d757374206861766520657175616c604482015266040d8cadccee8d60cb1b60648201526084016107da565b83518751146112c45760405162461bcd60e51b815260206004820152602960248201527f6d6178427579506572547820706172616d73206d7573742068617665206571756044820152680c2d840d8cadccee8d60bb1b60648201526084016107da565b82518751146113285760405162461bcd60e51b815260206004820152602a60248201527f6d61784d696e74506572547820706172616d73206d75737420686176652065716044820152690eac2d840d8cadccee8d60b31b60648201526084016107da565b815187511461138d5760405162461bcd60e51b815260206004820152602b60248201527f73746f704d696e74416674657220706172616d73206d7573742068617665206560448201526a0e2eac2d840d8cadccee8d60ab1b60648201526084016107da565b80518751146113f35760405162461bcd60e51b815260206004820152602c60248201527f6d6178546f74616c537570706c7920706172616d73206d75737420686176652060448201526b0cae2eac2d840d8cadccee8d60a31b60648201526084016107da565b611418888888604051806040016040528060018152602001600360fc1b815250612129565b60005b87518110156114da576114c888828151811061143957611439613766565b602002602001015187838151811061145357611453613766565b602002602001015187848151811061146d5761146d613766565b602002602001015187858151811061148757611487613766565b60200260200101518786815181106114a1576114a1613766565b60200260200101518787815181106114bb576114bb613766565b60200260200101516120c6565b806114d2816136eb565b91505061141b565b505050505050505050565b600081815260036020526040812054116115335760405162461bcd60e51b815260206004820152600f60248201526e13db9b1e481b5a5b9d195908139195608a1b60448201526064016107da565b600061153f3383611b40565b905080156115fe5734156115855760405162461bcd60e51b815260206004820152600d60248201526c2737903732b2b21022ba3432b960991b60448201526064016107da565b611591828260016121ac565b90506115a03382846003611fa7565b336000908152600760209081526040808320858452909152812060010180548392906115cd90849061347f565b9091555050600082815260066020526040812060050180548392906115f390849061361d565b90915550610c239050565b6000828152600660205260409020543410156116525760405162461bcd60e51b815260206004820152601360248201527213195cdcc8195d1a195c88199bdc881b5a5b9d606a1b60448201526064016107da565b60008281526006602052604081205461166b90346134bc565b6000848152600660205260409020600101549091508111156116c65760405162461bcd60e51b815260206004820152601460248201527314dbc81b5d58da081c185e58589b19481b5a5b9d60621b60448201526064016107da565b60008381526006602052604090206005810154600390910154116116fc5760405162461bcd60e51b81526004016107da906133a7565b60008381526003602052604090205461171690829061347f565b60008481526006602052604090206005810154600390910154611739919061361d565b10156117575760405162461bcd60e51b81526004016107da906133a7565b6117643382856002611fa7565b60008381526006602052604081205461177d90836135dd565b611787903461361d565b111561105457600083815260066020526040902054339081906108fc906117ae90856135dd565b6117b8903461361d565b6040518115909202916000818181858888f19350505050158015610a04573d6000803e3d6000fd5b6004546001600160a01b0316331461180a5760405162461bcd60e51b81526004016107da90613372565b80518251146118675760405162461bcd60e51b815260206004820152602360248201527f417272617920706172616d73206d757374206861766520657175616c206c656e6044820152620cee8d60eb1b60648201526084016107da565b610100825111156118ae5760405162461bcd60e51b81526020600482015260116024820152702737ba1036b7b932903a3430b710191a9b60791b60448201526064016107da565b60005b82518160ff1610156119125761190084848360ff16815181106118d6576118d6613766565b6020026020010151848460ff16815181106118f3576118f3613766565b6020026020010151612222565b8061190a81613706565b9150506118b1565b50505050565b6119516040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b50600090815260066020908152604091829020825160c08101845281548152600182015492810192909252600281015492820192909252600382015460608201526004820154608082015260059091015460a082015290565b6004546001600160a01b031633146119d45760405162461bcd60e51b81526004016107da90613372565b611054828483612222565b6004546001600160a01b03163314611a095760405162461bcd60e51b81526004016107da90613372565b60009182526006602052604090912060030155565b6001600160a01b038516331480611a3a5750611a3a8533610704565b611a985760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016107da565b610a04858585858561241d565b6004546001600160a01b03163314611acf5760405162461bcd60e51b81526004016107da90613372565b6001600160a01b038116611b345760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107da565b611b3d81611f55565b50565b6001600160a01b0382166000908152600760209081526040808320848452909152812060018101549054610932919061361d565b60408051602880825260608281019093526000919060208201818036833701905050905060005b6014811015611cb4576000611bb182601361361d565b611bbc9060086135dd565b611bc7906002613535565b611bda906001600160a01b0387166134bc565b60f81b9050600060108260f81c611bf191906134d0565b60f81b905060008160f81c6010611c0891906135fc565b8360f81c611c169190613634565b60f81b9050611c2482612543565b85611c308660026135dd565b81518110611c4057611c40613766565b60200101906001600160f81b031916908160001a905350611c6081612543565b85611c6c8660026135dd565b611c7790600161347f565b81518110611c8757611c87613766565b60200101906001600160f81b031916908160001a9053505050508080611cac906136eb565b915050611b9b565b5092915050565b606081611cdf5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d095780611cf3816136eb565b9150611d029050600a836134bc565b9150611ce3565b60008167ffffffffffffffff811115611d2457611d2461377c565b6040519080825280601f01601f191660200182016040528015611d4e576020820181803683370190505b5090505b8415611db957611d6360018361361d565b9150611d70600a86613726565b611d7b90603061347f565b60f81b818381518110611d9057611d90613766565b60200101906001600160f81b031916908160001a905350611db2600a866134bc565b9450611d52565b949350505050565b8151835114611de25760405162461bcd60e51b81526004016107da906133d2565b6001600160a01b038416611e085760405162461bcd60e51b81526004016107da906132e3565b3360005b8451811015611eef576000858281518110611e2957611e29613766565b602002602001015190506000858381518110611e4757611e47613766565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611e975760405162461bcd60e51b81526004016107da90613328565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611ed490849061347f565b9250508190555050505080611ee8906136eb565b9050611e0c565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611f3f92919061325a565b60405180910390a4610af281878787878761257e565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000828152600660209081526040808320600481015460059091015460039093529220548591611fd69161347f565b611fe0919061347f565b11156120245760405162461bcd60e51b81526020600482015260136024820152724e6f206d6f7265207468697320746f6b656e7360681b60448201526064016107da565b612049848385604051806040016040528060018152602001600360fc1b815250612091565b604080518381526020810185905260ff83168183015290517f7b881d936ff51ac84a956af91b7db25c1b7d9bd61372534c809254750233592d9181900360600190a150505050565b61209d848484846126e9565b600083815260036020526040812080548492906120bb90849061347f565b909155505050505050565b6040805160c08101825295865260208087019586528682019485526060870193845260808701928352600060a088018181529881526006909152209451855592516001850155905160028401555160038301555160048201559051600590910155565b612135848484846127b0565b60005b8351811015610a045782818151811061215357612153613766565b60200260200101516003600086848151811061217157612171613766565b602002602001015181526020019081526020016000206000828254612196919061347f565b909155506121a59050816136eb565b9050612138565b600081156121ec5760008481526006602052604090206002015483116121d257826121e5565b6000848152600660205260409020600201545b9050610932565b600084815260066020526040902060010154831161220a57826121e5565b50505060009081526006602052604090206001015490565b6001600160a01b0382166122625760405162461bcd60e51b81526020600482015260076024820152664e6f207a65726f60c81b60448201526064016107da565b6001600160a01b03821660009081526007602090815260408083208684529091529020600101548110156122d85760405162461bcd60e51b815260206004820152601e60248201527f43616e74206465637265617365206d6f7265207468656e206d696e746564000060448201526064016107da565b6001600160a01b038216600090815260076020908152604080832086845290915290205481111561235d576001600160a01b0382166000908152600760209081526040808320868452909152902054612331908261361d565b6000848152600660205260408120600501805490919061235290849061347f565b909155506123b39050565b6001600160a01b038216600090815260076020908152604080832086845290915290205461238c90829061361d565b600084815260066020526040812060050180549091906123ad90849061361d565b90915550505b6001600160a01b038216600081815260076020908152604080832087845282529182902084905581518681529081019290925281018290527f1380f703a2c7454bf695fcec38a2d975826e1ca7f1fd210a6564d80e92d7502a9060600160405180910390a1505050565b6001600160a01b0384166124435760405162461bcd60e51b81526004016107da906132e3565b3361245c818787612453886128fb565b610a04886128fb565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561249d5760405162461bcd60e51b81526004016107da90613328565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906124da90849061347f565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461253a828888888888612946565b50505050505050565b6000600a60f883901c101561256a5761256160f883901c6030613497565b60f81b92915050565b61256160f883901c6057613497565b919050565b6001600160a01b0384163b15610af25760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906125c290899089908890889088906004016131a4565b602060405180830381600087803b1580156125dc57600080fd5b505af192505050801561260c575060408051601f3d908101601f1916820190925261260991810190612f9a565b60015b6126b957612618613792565b806308c379a01415612652575061262d6137ae565b806126385750612654565b8060405162461bcd60e51b81526004016107da9190613288565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107da565b6001600160e01b0319811663bc197c8160e01b1461253a5760405162461bcd60e51b81526004016107da9061329b565b6001600160a01b03841661270f5760405162461bcd60e51b81526004016107da9061341a565b3361272081600087612453886128fb565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061275090849061347f565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a0481600087878787612946565b6001600160a01b0384166127d65760405162461bcd60e51b81526004016107da9061341a565b81518351146127f75760405162461bcd60e51b81526004016107da906133d2565b3360005b84518110156128935783818151811061281657612816613766565b602002602001015160008087848151811061283357612833613766565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461287b919061347f565b9091555081905061288b816136eb565b9150506127fb565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516128e492919061325a565b60405180910390a4610a048160008787878761257e565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061293557612935613766565b602090810291909101015292915050565b6001600160a01b0384163b15610af25760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061298a9089908990889088908890600401613202565b602060405180830381600087803b1580156129a457600080fd5b505af19250505080156129d4575060408051601f3d908101601f191682019092526129d191810190612f9a565b60015b6129e057612618613792565b6001600160e01b0319811663f23a6e6160e01b1461253a5760405162461bcd60e51b81526004016107da9061329b565b80356001600160a01b038116811461257957600080fd5b600082601f830112612a3857600080fd5b81356020612a458261345b565b604051612a5282826136be565b8381528281019150858301600585901b87018401881015612a7257600080fd5b60005b85811015612a9857612a8682612a10565b84529284019290840190600101612a75565b5090979650505050505050565b600082601f830112612ab657600080fd5b81356020612ac38261345b565b604051612ad082826136be565b8381528281019150858301600585901b87018401881015612af057600080fd5b60005b85811015612a9857813584529284019290840190600101612af3565b600082601f830112612b2057600080fd5b813567ffffffffffffffff811115612b3a57612b3a61377c565b604051612b51601f8301601f1916602001826136be565b818152846020838601011115612b6657600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215612b9557600080fd5b61093282612a10565b60008060408385031215612bb157600080fd5b612bba83612a10565b9150612bc860208401612a10565b90509250929050565b600080600080600060a08688031215612be957600080fd5b612bf286612a10565b9450612c0060208701612a10565b9350604086013567ffffffffffffffff80821115612c1d57600080fd5b612c2989838a01612aa5565b94506060880135915080821115612c3f57600080fd5b612c4b89838a01612aa5565b93506080880135915080821115612c6157600080fd5b50612c6e88828901612b0f565b9150509295509295909350565b600080600080600060a08688031215612c9357600080fd5b612c9c86612a10565b9450612caa60208701612a10565b93506040860135925060608601359150608086013567ffffffffffffffff811115612cd457600080fd5b612c6e88828901612b0f565b600080600080600080600080610100898b031215612cfd57600080fd5b612d0689612a10565b9750602089013567ffffffffffffffff80821115612d2357600080fd5b612d2f8c838d01612aa5565b985060408b0135915080821115612d4557600080fd5b612d518c838d01612aa5565b975060608b0135915080821115612d6757600080fd5b612d738c838d01612aa5565b965060808b0135915080821115612d8957600080fd5b612d958c838d01612aa5565b955060a08b0135915080821115612dab57600080fd5b612db78c838d01612aa5565b945060c08b0135915080821115612dcd57600080fd5b612dd98c838d01612aa5565b935060e08b0135915080821115612def57600080fd5b50612dfc8b828c01612aa5565b9150509295985092959890939650565b60008060408385031215612e1f57600080fd5b612e2883612a10565b91506020830135612e3881613838565b809150509250929050565b60008060408385031215612e5657600080fd5b612e5f83612a10565b946020939093013593505050565b600080600060608486031215612e8257600080fd5b612e8b84612a10565b95602085013595506040909401359392505050565b600080600080600080600080610100898b031215612ebd57600080fd5b612ec689612a10565b9a60208a01359a5060408a013599606081013599506080810135985060a0810135975060c0810135965060e00135945092505050565b60008060408385031215612f0f57600080fd5b823567ffffffffffffffff80821115612f2757600080fd5b612f3386838701612a27565b93506020850135915080821115612f4957600080fd5b50612f5685828601612aa5565b9150509250929050565b600060208284031215612f7257600080fd5b815161093281613838565b600060208284031215612f8f57600080fd5b813561093281613846565b600060208284031215612fac57600080fd5b815161093281613846565b600060208284031215612fc957600080fd5b5035919050565b600060208284031215612fe257600080fd5b5051919050565b600080600060608486031215612ffe57600080fd5b83359250602084013567ffffffffffffffff8082111561301d57600080fd5b61302987838801612a27565b9350604086013591508082111561303f57600080fd5b5061304c86828701612aa5565b9150509250925092565b6000806040838503121561306957600080fd5b50508035926020909101359150565b60008060008060008060c0878903121561309157600080fd5b505084359660208601359650604086013595606081013595506080810135945060a0013592509050565b600081518084526020808501945080840160005b838110156130eb578151875295820195908201906001016130cf565b509495945050505050565b6000815180845261310e816020860160208601613657565b601f01601f19169290920160200192915050565b7f68747470733a2f2f6e667473746172732e6170702f6261636b656e642f61706981527305eec625edccce8e65edacae8c2c8c2e8c25e60f60631b602082015260008351613177816034850160208801613657565b602f60f81b6034918401918201528351613198816035840160208801613657565b01603501949350505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906131d0908301866130bb565b82810360608401526131e281866130bb565b905082810360808401526131f681856130f6565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061323c908301846130f6565b979650505050505050565b60208152600061093260208301846130bb565b60408152600061326d60408301856130bb565b828103602084015261327f81856130bb565b95945050505050565b60208152600061093260208301846130f6565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260119082015270135a5b9d1a5b99c81a5cc81c185d5cd959607a1b604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b600067ffffffffffffffff8211156134755761347561377c565b5060051b60200190565b600082198211156134925761349261373a565b500190565b600060ff821660ff84168060ff038211156134b4576134b461373a565b019392505050565b6000826134cb576134cb613750565b500490565b600060ff8316806134e3576134e3613750565b8060ff84160491505092915050565b600181815b8085111561352d5781600019048211156135135761351361373a565b8085161561352057918102915b93841c93908002906134f7565b509250929050565b6000610932838360008261354b57506001610806565b8161355857506000610806565b816001811461356e576002811461357857613594565b6001915050610806565b60ff8411156135895761358961373a565b50506001821b610806565b5060208310610133831016604e8410600b84101617156135b7575081810a610806565b6135c183836134f2565b80600019048211156135d5576135d561373a565b029392505050565b60008160001904831182151516156135f7576135f761373a565b500290565b600060ff821660ff84168160ff04811182151516156135d5576135d561373a565b60008282101561362f5761362f61373a565b500390565b600060ff821660ff84168082101561364e5761364e61373a565b90039392505050565b60005b8381101561367257818101518382015260200161365a565b838111156119125750506000910152565b600181811c9082168061369757607f821691505b602082108114156136b857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff811182821017156136e4576136e461377c565b6040525050565b60006000198214156136ff576136ff61373a565b5060010190565b600060ff821660ff81141561371d5761371d61373a565b60010192915050565b60008261373557613735613750565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156137ab5760046000803e5060005160e01c5b90565b600060443d10156137bc5790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156137ec57505050505090565b82850191508151818111156138045750505050505090565b843d870101602082850101111561381e5750505050505090565b61382d602082860101876136be565b509095945050505050565b8015158114611b3d57600080fd5b6001600160e01b031981168114611b3d57600080fdfea26469706673582212209b2ef014d45f1fbe079dc5e92b36b2047a9acba96de0cc6d843c5190defe26ee64736f6c634300080700335349445553204e4654204845524f4553202d2047616c617879204d6f646966696361746f7273

Deployed Bytecode

0x6080604052600436106101ed5760003560e01c80637362377b1161010d578063abc7158e116100a0578063c90c934a1161006f578063c90c934a1461064c578063d25b536f1461066c578063e985e9c5146106e9578063f242432a14610732578063f2fde38b1461075257600080fd5b8063abc7158e14610573578063bd85b03914610593578063c1e03728146105c0578063c3d1840d1461062c57600080fd5b80638da5cb5b116100dc5780638da5cb5b146104f8578063a22cb46514610520578063a4bd207f14610540578063ab00492f1461056057600080fd5b80637362377b14610483578063801b4c0a14610498578063814fe457146104b857806387198cf2146104d857600080fd5b80633a8ed608116101855780634e1273f4116101545780634e1273f4146103e55780634f558e7914610412578063559e775b14610441578063715018a61461046e57600080fd5b80633a8ed6081461034d5780633f0bb0e21461038557806345f3601a146103a557806349df728c146103c557600080fd5b80630c8d02a9116101c15780630c8d02a9146102995780630e89341c146102b95780632a05639e146102d95780632eb2c2d61461032d57600080fd5b8062fdd58e146101f257806301ffc9a7146102255780630442bfa81461025557806306fdde0314610277575b600080fd5b3480156101fe57600080fd5b5061021261020d366004612e43565b610772565b6040519081526020015b60405180910390f35b34801561023157600080fd5b50610245610240366004612f7d565b61080c565b604051901515815260200161021c565b34801561026157600080fd5b50610275610270366004613056565b61085c565b005b34801561028357600080fd5b5061028c610898565b60405161021c9190613288565b3480156102a557600080fd5b506102126102b4366004612e43565b610926565b3480156102c557600080fd5b5061028c6102d4366004612fb7565b610939565b3480156102e557600080fd5b506103186102f4366004612e43565b60076020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161021c565b34801561033957600080fd5b50610275610348366004612bd1565b610974565b34801561035957600080fd5b50610212610368366004612e43565b600860209081526000928352604080842090915290825290205481565b34801561039157600080fd5b506102756103a0366004612e6d565b610a0b565b3480156103b157600080fd5b506102756103c0366004613078565b610a9b565b3480156103d157600080fd5b506102756103e0366004612b83565b610afa565b3480156103f157600080fd5b50610405610400366004612efc565b610c27565b60405161021c9190613247565b34801561041e57600080fd5b5061024561042d366004612fb7565b600090815260036020526040902054151590565b34801561044d57600080fd5b5061021261045c366004612fb7565b60009081526006602052604090205490565b34801561047a57600080fd5b50610275610d51565b34801561048f57600080fd5b50610275610d87565b3480156104a457600080fd5b506102756104b3366004612e6d565b610ddf565b3480156104c457600080fd5b506102756104d3366004612ea0565b611059565b3480156104e457600080fd5b506102756104f3366004613056565b6110c0565b34801561050457600080fd5b506004546040516001600160a01b03909116815260200161021c565b34801561052c57600080fd5b5061027561053b366004612e0c565b6110ff565b34801561054c57600080fd5b5061027561055b366004612ce0565b6111d6565b61027561056e366004612fb7565b6114e5565b34801561057f57600080fd5b5061027561058e366004612fe9565b6117e0565b34801561059f57600080fd5b506102126105ae366004612fb7565b60009081526003602052604090205490565b3480156105cc57600080fd5b506105e06105db366004612fb7565b611918565b60405161021c9190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b34801561063857600080fd5b50610275610647366004612e6d565b6119aa565b34801561065857600080fd5b50610275610667366004613056565b6119df565b34801561067857600080fd5b506106bc610687366004612fb7565b600660205260009081526040902080546001820154600283015460038401546004850154600590950154939492939192909186565b604080519687526020870195909552938501929092526060840152608083015260a082015260c00161021c565b3480156106f557600080fd5b50610245610704366004612b9e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561073e57600080fd5b5061027561074d366004612c7b565b611a1e565b34801561075e57600080fd5b5061027561076d366004612b83565b611aa5565b60006001600160a01b0383166107e35760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061083d57506001600160e01b031982166303a24d0760e21b145b8061080657506301ffc9a760e01b6001600160e01b0319831614610806565b6004546001600160a01b031633146108865760405162461bcd60e51b81526004016107da90613372565b60009182526006602052604090912055565b600580546108a590613683565b80601f01602080910402602001604051908101604052809291908181526020018280546108d190613683565b801561091e5780601f106108f35761010080835404028352916020019161091e565b820191906000526020600020905b81548152906001019060200180831161090157829003601f168201915b505050505081565b60006109328383611b40565b9392505050565b606061094430611b74565b61094d83611cbb565b60405160200161095e929190613122565b6040516020818303038152906040529050919050565b6001600160a01b03851633148061099057506109908533610704565b6109f75760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016107da565b610a048585858585611dc1565b5050505050565b6004546001600160a01b03163314610a355760405162461bcd60e51b81526004016107da90613372565b6001600160a01b038316610a755760405162461bcd60e51b81526020600482015260076024820152664e6f207a65726f60c81b60448201526064016107da565b6001600160a01b0390921660009081526008602090815260408083209383529290522055565b6004546001600160a01b03163314610ac55760405162461bcd60e51b81526004016107da90613372565b60008681526006602052604090208581556001810185905560028101849055600381018390556004018190555b505050505050565b6004546001600160a01b03163314610b245760405162461bcd60e51b81526004016107da90613372565b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b158015610b6d57600080fd5b505afa158015610b81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba59190612fd0565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015610beb57600080fd5b505af1158015610bff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c239190612f60565b5050565b60608151835114610c8c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107da565b6000835167ffffffffffffffff811115610ca857610ca861377c565b604051908082528060200260200182016040528015610cd1578160200160208202803683370190505b50905060005b8451811015610d4957610d1c858281518110610cf557610cf5613766565b6020026020010151858381518110610d0f57610d0f613766565b6020026020010151610772565b828281518110610d2e57610d2e613766565b6020908102919091010152610d42816136eb565b9050610cd7565b509392505050565b6004546001600160a01b03163314610d7b5760405162461bcd60e51b81526004016107da90613372565b610d856000611f55565b565b6004546001600160a01b03163314610db15760405162461bcd60e51b81526004016107da90613372565b604051339081904780156108fc02916000818181858888f19350505050158015610c23573d6000803e3d6000fd5b60008281526003602052604081205411610e2d5760405162461bcd60e51b815260206004820152600f60248201526e13db9b1e481b5a5b9d195908139195608a1b60448201526064016107da565b6001600160a01b0383166000908152600860209081526040808320858452909152902054610e9d5760405162461bcd60e51b815260206004820152601760248201527f4e6f206d696e742077697468207468697320746f6b656e00000000000000000060448201526064016107da565b600082815260066020526040902060010154811115610ef55760405162461bcd60e51b815260206004820152601460248201527314dbc81b5d58da081c185e58589b19481b5a5b9d60621b60448201526064016107da565b6000828152600660205260409020600581015460039091015411610f2b5760405162461bcd60e51b81526004016107da906133a7565b600082815260036020526040902054610f4590829061347f565b60008381526006602052604090206005810154600390910154610f68919061361d565b1015610f865760405162461bcd60e51b81526004016107da906133a7565b6001600160a01b03831660008181526008602090815260408083208684529091529020546323b872dd9033903090610fbf9086906135dd565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b15801561100e57600080fd5b505af1158015611022573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110469190612f60565b506110543382846004611fa7565b505050565b6004546001600160a01b031633146110835760405162461bcd60e51b81526004016107da90613372565b6110a8888888604051806040016040528060018152602001600360fc1b815250612091565b6110b68786868686866120c6565b5050505050505050565b6004546001600160a01b031633146110ea5760405162461bcd60e51b81526004016107da90613372565b60009182526006602052604090912060040155565b336001600160a01b038316141561116a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107da565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6004546001600160a01b031633146112005760405162461bcd60e51b81526004016107da90613372565b84518751146112615760405162461bcd60e51b815260206004820152602760248201527f6d696e74507269636520706172616d73206d757374206861766520657175616c604482015266040d8cadccee8d60cb1b60648201526084016107da565b83518751146112c45760405162461bcd60e51b815260206004820152602960248201527f6d6178427579506572547820706172616d73206d7573742068617665206571756044820152680c2d840d8cadccee8d60bb1b60648201526084016107da565b82518751146113285760405162461bcd60e51b815260206004820152602a60248201527f6d61784d696e74506572547820706172616d73206d75737420686176652065716044820152690eac2d840d8cadccee8d60b31b60648201526084016107da565b815187511461138d5760405162461bcd60e51b815260206004820152602b60248201527f73746f704d696e74416674657220706172616d73206d7573742068617665206560448201526a0e2eac2d840d8cadccee8d60ab1b60648201526084016107da565b80518751146113f35760405162461bcd60e51b815260206004820152602c60248201527f6d6178546f74616c537570706c7920706172616d73206d75737420686176652060448201526b0cae2eac2d840d8cadccee8d60a31b60648201526084016107da565b611418888888604051806040016040528060018152602001600360fc1b815250612129565b60005b87518110156114da576114c888828151811061143957611439613766565b602002602001015187838151811061145357611453613766565b602002602001015187848151811061146d5761146d613766565b602002602001015187858151811061148757611487613766565b60200260200101518786815181106114a1576114a1613766565b60200260200101518787815181106114bb576114bb613766565b60200260200101516120c6565b806114d2816136eb565b91505061141b565b505050505050505050565b600081815260036020526040812054116115335760405162461bcd60e51b815260206004820152600f60248201526e13db9b1e481b5a5b9d195908139195608a1b60448201526064016107da565b600061153f3383611b40565b905080156115fe5734156115855760405162461bcd60e51b815260206004820152600d60248201526c2737903732b2b21022ba3432b960991b60448201526064016107da565b611591828260016121ac565b90506115a03382846003611fa7565b336000908152600760209081526040808320858452909152812060010180548392906115cd90849061347f565b9091555050600082815260066020526040812060050180548392906115f390849061361d565b90915550610c239050565b6000828152600660205260409020543410156116525760405162461bcd60e51b815260206004820152601360248201527213195cdcc8195d1a195c88199bdc881b5a5b9d606a1b60448201526064016107da565b60008281526006602052604081205461166b90346134bc565b6000848152600660205260409020600101549091508111156116c65760405162461bcd60e51b815260206004820152601460248201527314dbc81b5d58da081c185e58589b19481b5a5b9d60621b60448201526064016107da565b60008381526006602052604090206005810154600390910154116116fc5760405162461bcd60e51b81526004016107da906133a7565b60008381526003602052604090205461171690829061347f565b60008481526006602052604090206005810154600390910154611739919061361d565b10156117575760405162461bcd60e51b81526004016107da906133a7565b6117643382856002611fa7565b60008381526006602052604081205461177d90836135dd565b611787903461361d565b111561105457600083815260066020526040902054339081906108fc906117ae90856135dd565b6117b8903461361d565b6040518115909202916000818181858888f19350505050158015610a04573d6000803e3d6000fd5b6004546001600160a01b0316331461180a5760405162461bcd60e51b81526004016107da90613372565b80518251146118675760405162461bcd60e51b815260206004820152602360248201527f417272617920706172616d73206d757374206861766520657175616c206c656e6044820152620cee8d60eb1b60648201526084016107da565b610100825111156118ae5760405162461bcd60e51b81526020600482015260116024820152702737ba1036b7b932903a3430b710191a9b60791b60448201526064016107da565b60005b82518160ff1610156119125761190084848360ff16815181106118d6576118d6613766565b6020026020010151848460ff16815181106118f3576118f3613766565b6020026020010151612222565b8061190a81613706565b9150506118b1565b50505050565b6119516040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b50600090815260066020908152604091829020825160c08101845281548152600182015492810192909252600281015492820192909252600382015460608201526004820154608082015260059091015460a082015290565b6004546001600160a01b031633146119d45760405162461bcd60e51b81526004016107da90613372565b611054828483612222565b6004546001600160a01b03163314611a095760405162461bcd60e51b81526004016107da90613372565b60009182526006602052604090912060030155565b6001600160a01b038516331480611a3a5750611a3a8533610704565b611a985760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016107da565b610a04858585858561241d565b6004546001600160a01b03163314611acf5760405162461bcd60e51b81526004016107da90613372565b6001600160a01b038116611b345760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107da565b611b3d81611f55565b50565b6001600160a01b0382166000908152600760209081526040808320848452909152812060018101549054610932919061361d565b60408051602880825260608281019093526000919060208201818036833701905050905060005b6014811015611cb4576000611bb182601361361d565b611bbc9060086135dd565b611bc7906002613535565b611bda906001600160a01b0387166134bc565b60f81b9050600060108260f81c611bf191906134d0565b60f81b905060008160f81c6010611c0891906135fc565b8360f81c611c169190613634565b60f81b9050611c2482612543565b85611c308660026135dd565b81518110611c4057611c40613766565b60200101906001600160f81b031916908160001a905350611c6081612543565b85611c6c8660026135dd565b611c7790600161347f565b81518110611c8757611c87613766565b60200101906001600160f81b031916908160001a9053505050508080611cac906136eb565b915050611b9b565b5092915050565b606081611cdf5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d095780611cf3816136eb565b9150611d029050600a836134bc565b9150611ce3565b60008167ffffffffffffffff811115611d2457611d2461377c565b6040519080825280601f01601f191660200182016040528015611d4e576020820181803683370190505b5090505b8415611db957611d6360018361361d565b9150611d70600a86613726565b611d7b90603061347f565b60f81b818381518110611d9057611d90613766565b60200101906001600160f81b031916908160001a905350611db2600a866134bc565b9450611d52565b949350505050565b8151835114611de25760405162461bcd60e51b81526004016107da906133d2565b6001600160a01b038416611e085760405162461bcd60e51b81526004016107da906132e3565b3360005b8451811015611eef576000858281518110611e2957611e29613766565b602002602001015190506000858381518110611e4757611e47613766565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611e975760405162461bcd60e51b81526004016107da90613328565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611ed490849061347f565b9250508190555050505080611ee8906136eb565b9050611e0c565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611f3f92919061325a565b60405180910390a4610af281878787878761257e565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000828152600660209081526040808320600481015460059091015460039093529220548591611fd69161347f565b611fe0919061347f565b11156120245760405162461bcd60e51b81526020600482015260136024820152724e6f206d6f7265207468697320746f6b656e7360681b60448201526064016107da565b612049848385604051806040016040528060018152602001600360fc1b815250612091565b604080518381526020810185905260ff83168183015290517f7b881d936ff51ac84a956af91b7db25c1b7d9bd61372534c809254750233592d9181900360600190a150505050565b61209d848484846126e9565b600083815260036020526040812080548492906120bb90849061347f565b909155505050505050565b6040805160c08101825295865260208087019586528682019485526060870193845260808701928352600060a088018181529881526006909152209451855592516001850155905160028401555160038301555160048201559051600590910155565b612135848484846127b0565b60005b8351811015610a045782818151811061215357612153613766565b60200260200101516003600086848151811061217157612171613766565b602002602001015181526020019081526020016000206000828254612196919061347f565b909155506121a59050816136eb565b9050612138565b600081156121ec5760008481526006602052604090206002015483116121d257826121e5565b6000848152600660205260409020600201545b9050610932565b600084815260066020526040902060010154831161220a57826121e5565b50505060009081526006602052604090206001015490565b6001600160a01b0382166122625760405162461bcd60e51b81526020600482015260076024820152664e6f207a65726f60c81b60448201526064016107da565b6001600160a01b03821660009081526007602090815260408083208684529091529020600101548110156122d85760405162461bcd60e51b815260206004820152601e60248201527f43616e74206465637265617365206d6f7265207468656e206d696e746564000060448201526064016107da565b6001600160a01b038216600090815260076020908152604080832086845290915290205481111561235d576001600160a01b0382166000908152600760209081526040808320868452909152902054612331908261361d565b6000848152600660205260408120600501805490919061235290849061347f565b909155506123b39050565b6001600160a01b038216600090815260076020908152604080832086845290915290205461238c90829061361d565b600084815260066020526040812060050180549091906123ad90849061361d565b90915550505b6001600160a01b038216600081815260076020908152604080832087845282529182902084905581518681529081019290925281018290527f1380f703a2c7454bf695fcec38a2d975826e1ca7f1fd210a6564d80e92d7502a9060600160405180910390a1505050565b6001600160a01b0384166124435760405162461bcd60e51b81526004016107da906132e3565b3361245c818787612453886128fb565b610a04886128fb565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561249d5760405162461bcd60e51b81526004016107da90613328565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906124da90849061347f565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461253a828888888888612946565b50505050505050565b6000600a60f883901c101561256a5761256160f883901c6030613497565b60f81b92915050565b61256160f883901c6057613497565b919050565b6001600160a01b0384163b15610af25760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906125c290899089908890889088906004016131a4565b602060405180830381600087803b1580156125dc57600080fd5b505af192505050801561260c575060408051601f3d908101601f1916820190925261260991810190612f9a565b60015b6126b957612618613792565b806308c379a01415612652575061262d6137ae565b806126385750612654565b8060405162461bcd60e51b81526004016107da9190613288565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107da565b6001600160e01b0319811663bc197c8160e01b1461253a5760405162461bcd60e51b81526004016107da9061329b565b6001600160a01b03841661270f5760405162461bcd60e51b81526004016107da9061341a565b3361272081600087612453886128fb565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061275090849061347f565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a0481600087878787612946565b6001600160a01b0384166127d65760405162461bcd60e51b81526004016107da9061341a565b81518351146127f75760405162461bcd60e51b81526004016107da906133d2565b3360005b84518110156128935783818151811061281657612816613766565b602002602001015160008087848151811061283357612833613766565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461287b919061347f565b9091555081905061288b816136eb565b9150506127fb565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516128e492919061325a565b60405180910390a4610a048160008787878761257e565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061293557612935613766565b602090810291909101015292915050565b6001600160a01b0384163b15610af25760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061298a9089908990889088908890600401613202565b602060405180830381600087803b1580156129a457600080fd5b505af19250505080156129d4575060408051601f3d908101601f191682019092526129d191810190612f9a565b60015b6129e057612618613792565b6001600160e01b0319811663f23a6e6160e01b1461253a5760405162461bcd60e51b81526004016107da9061329b565b80356001600160a01b038116811461257957600080fd5b600082601f830112612a3857600080fd5b81356020612a458261345b565b604051612a5282826136be565b8381528281019150858301600585901b87018401881015612a7257600080fd5b60005b85811015612a9857612a8682612a10565b84529284019290840190600101612a75565b5090979650505050505050565b600082601f830112612ab657600080fd5b81356020612ac38261345b565b604051612ad082826136be565b8381528281019150858301600585901b87018401881015612af057600080fd5b60005b85811015612a9857813584529284019290840190600101612af3565b600082601f830112612b2057600080fd5b813567ffffffffffffffff811115612b3a57612b3a61377c565b604051612b51601f8301601f1916602001826136be565b818152846020838601011115612b6657600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215612b9557600080fd5b61093282612a10565b60008060408385031215612bb157600080fd5b612bba83612a10565b9150612bc860208401612a10565b90509250929050565b600080600080600060a08688031215612be957600080fd5b612bf286612a10565b9450612c0060208701612a10565b9350604086013567ffffffffffffffff80821115612c1d57600080fd5b612c2989838a01612aa5565b94506060880135915080821115612c3f57600080fd5b612c4b89838a01612aa5565b93506080880135915080821115612c6157600080fd5b50612c6e88828901612b0f565b9150509295509295909350565b600080600080600060a08688031215612c9357600080fd5b612c9c86612a10565b9450612caa60208701612a10565b93506040860135925060608601359150608086013567ffffffffffffffff811115612cd457600080fd5b612c6e88828901612b0f565b600080600080600080600080610100898b031215612cfd57600080fd5b612d0689612a10565b9750602089013567ffffffffffffffff80821115612d2357600080fd5b612d2f8c838d01612aa5565b985060408b0135915080821115612d4557600080fd5b612d518c838d01612aa5565b975060608b0135915080821115612d6757600080fd5b612d738c838d01612aa5565b965060808b0135915080821115612d8957600080fd5b612d958c838d01612aa5565b955060a08b0135915080821115612dab57600080fd5b612db78c838d01612aa5565b945060c08b0135915080821115612dcd57600080fd5b612dd98c838d01612aa5565b935060e08b0135915080821115612def57600080fd5b50612dfc8b828c01612aa5565b9150509295985092959890939650565b60008060408385031215612e1f57600080fd5b612e2883612a10565b91506020830135612e3881613838565b809150509250929050565b60008060408385031215612e5657600080fd5b612e5f83612a10565b946020939093013593505050565b600080600060608486031215612e8257600080fd5b612e8b84612a10565b95602085013595506040909401359392505050565b600080600080600080600080610100898b031215612ebd57600080fd5b612ec689612a10565b9a60208a01359a5060408a013599606081013599506080810135985060a0810135975060c0810135965060e00135945092505050565b60008060408385031215612f0f57600080fd5b823567ffffffffffffffff80821115612f2757600080fd5b612f3386838701612a27565b93506020850135915080821115612f4957600080fd5b50612f5685828601612aa5565b9150509250929050565b600060208284031215612f7257600080fd5b815161093281613838565b600060208284031215612f8f57600080fd5b813561093281613846565b600060208284031215612fac57600080fd5b815161093281613846565b600060208284031215612fc957600080fd5b5035919050565b600060208284031215612fe257600080fd5b5051919050565b600080600060608486031215612ffe57600080fd5b83359250602084013567ffffffffffffffff8082111561301d57600080fd5b61302987838801612a27565b9350604086013591508082111561303f57600080fd5b5061304c86828701612aa5565b9150509250925092565b6000806040838503121561306957600080fd5b50508035926020909101359150565b60008060008060008060c0878903121561309157600080fd5b505084359660208601359650604086013595606081013595506080810135945060a0013592509050565b600081518084526020808501945080840160005b838110156130eb578151875295820195908201906001016130cf565b509495945050505050565b6000815180845261310e816020860160208601613657565b601f01601f19169290920160200192915050565b7f68747470733a2f2f6e667473746172732e6170702f6261636b656e642f61706981527305eec625edccce8e65edacae8c2c8c2e8c25e60f60631b602082015260008351613177816034850160208801613657565b602f60f81b6034918401918201528351613198816035840160208801613657565b01603501949350505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906131d0908301866130bb565b82810360608401526131e281866130bb565b905082810360808401526131f681856130f6565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061323c908301846130f6565b979650505050505050565b60208152600061093260208301846130bb565b60408152600061326d60408301856130bb565b828103602084015261327f81856130bb565b95945050505050565b60208152600061093260208301846130f6565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260119082015270135a5b9d1a5b99c81a5cc81c185d5cd959607a1b604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b600067ffffffffffffffff8211156134755761347561377c565b5060051b60200190565b600082198211156134925761349261373a565b500190565b600060ff821660ff84168060ff038211156134b4576134b461373a565b019392505050565b6000826134cb576134cb613750565b500490565b600060ff8316806134e3576134e3613750565b8060ff84160491505092915050565b600181815b8085111561352d5781600019048211156135135761351361373a565b8085161561352057918102915b93841c93908002906134f7565b509250929050565b6000610932838360008261354b57506001610806565b8161355857506000610806565b816001811461356e576002811461357857613594565b6001915050610806565b60ff8411156135895761358961373a565b50506001821b610806565b5060208310610133831016604e8410600b84101617156135b7575081810a610806565b6135c183836134f2565b80600019048211156135d5576135d561373a565b029392505050565b60008160001904831182151516156135f7576135f761373a565b500290565b600060ff821660ff84168160ff04811182151516156135d5576135d561373a565b60008282101561362f5761362f61373a565b500390565b600060ff821660ff84168082101561364e5761364e61373a565b90039392505050565b60005b8381101561367257818101518382015260200161365a565b838111156119125750506000910152565b600181811c9082168061369757607f821691505b602082108114156136b857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff811182821017156136e4576136e461377c565b6040525050565b60006000198214156136ff576136ff61373a565b5060010190565b600060ff821660ff81141561371d5761371d61373a565b60010192915050565b60008261373557613735613750565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156137ab5760046000803e5060005160e01c5b90565b600060443d10156137bc5790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156137ec57505050505090565b82850191508151818111156138045750505050505090565b843d870101602082850101111561381e5750505050505090565b61382d602082860101876136be565b509095945050505050565b8015158114611b3d57600080fd5b6001600160e01b031981168114611b3d57600080fdfea26469706673582212209b2ef014d45f1fbe079dc5e92b36b2047a9acba96de0cc6d843c5190defe26ee64736f6c63430008070033

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

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